Merge origin/main into feature/shared-packages

Resolved conflicts:
- list.ts: Keep @automaker/git-utils import, add worktree-metadata import
- feature-loader.ts: Use Feature type from @automaker/types
- automaker-paths.test.ts: Import from @automaker/platform
- kanban-card.tsx: Accept deletion (split into components/)
- subprocess.test.ts: Keep libs/platform location

Added missing exports to @automaker/platform:
- getGlobalSettingsPath, getCredentialsPath, getProjectSettingsPath, ensureDataDir

Added title and titleGenerating fields to @automaker/types Feature interface.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kacper
2025-12-20 22:20:17 +01:00
108 changed files with 10834 additions and 3489 deletions

View File

@@ -234,6 +234,30 @@ describe("claude-provider.ts", () => {
}),
});
});
it("should handle errors during execution and rethrow", async () => {
const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => {});
const testError = new Error("SDK execution failed");
vi.mocked(sdk.query).mockReturnValue(
(async function* () {
throw testError;
})()
);
const generator = provider.executeQuery({
prompt: "Test",
cwd: "/test",
});
await expect(collectAsyncGenerator(generator)).rejects.toThrow("SDK execution failed");
expect(consoleErrorSpy).toHaveBeenCalledWith(
"[ClaudeProvider] executeQuery() error during execution:",
testError
);
consoleErrorSpy.mockRestore();
});
});
describe("detectInstallation", () => {