aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/claude/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix: correct canUseTool callback signatureClawd2026-03-011-5/+6
|
* fix(mcp): use canUseTool callback for MCP permissionClawd2026-03-011-2/+12
| | | | | | The allowedTools glob pattern didn't work for MCP tools. Switch to canUseTool callback that auto-approves tools starting with 'mcp__' in research phase.
* fix(mcp): auto-allow MCP tools in research phaseClawd2026-03-011-0/+4
| | | | | | MCP tools require permission by default. Add mcp__* to allowedTools when MCPs are configured and we're in research phase, since that's where external data sources are most useful.
* feat(settings): add MCP server configurationClawd2026-03-011-0/+5
| | | | | | | | - Add McpSettings component with add/edit/delete server UI - Support stdio (command + args + env) and sse/http (url + headers) transports - Array builder for args, key-value builder for env vars and headers - Pass mcpServers config to SDK query() calls - Store config as JSON in settings table
* feat(settings): add configurable model selectionClawd2026-03-011-0/+4
| | | | | | | | - Add Model settings section with free-text input for model override - Pass configured model through to SDK query() calls - Display active model badge in ActionBar next to token usage - Seed model state from DB on mount, update from system:init events - Empty/unset value uses SDK default (no breaking change)
* feat: **1. `src/main/db/schema.ts`** — add `settings` table … (+10 more)bndw2026-02-281-1/+6
| | | | | | | | | | | | | | - ✅ **1. `src/main/db/schema.ts`** — add `settings` table to `initSchema` - ✅ **2. `src/main/db/settings.ts`** — create file with `getSetting`, `getSettings`, `setSetting`, `deleteSetting` - ✅ **3. `src/main/claude/phases.ts`** — add `customSystemPrompt?` param to `getPhaseConfig`; add `getDefaultSystemPromptTemplate` export - ✅ **4. `src/main/claude/index.ts`** — import `getSetting`; load custom prompt in `sendMessage`; pass to `getPhaseConfig` - ✅ **5. `src/main/ipc/handlers.ts`** — import `settingsDb` + `getDefaultSystemPromptTemplate`; register `settings:get`, `settings:set`, `settings:delete`, `settings:getDefaultPrompts` - ✅ **6. `src/main/preload.ts`** — add `getSettings`, `setSetting`, `deleteSetting`, `getDefaultSystemPrompts` to interface + api object - ✅ **7. `renderer/src/styles/globals.css`** — append all new CSS rules - ✅ **8. `renderer/src/components/settings/SystemPromptsSettings.tsx`** — create file (new directory) - ✅ **9. `renderer/src/components/SettingsPage.tsx`** — create file - ✅ **10. `renderer/src/components/Header.tsx`** — add `onOpenSettings` prop + ⚙ button - ✅ **11. `renderer/src/App.tsx`** — add `showSettings` state; import + render `<SettingsPage>`; pass `onOpenSettings` to Header
* feat: git branchesbndw2026-02-281-0/+26
|
* fix: scope artifacts to sessionsbndw2026-02-281-28/+23
|
* Move artifacts to ~/.claude-flow/ (outside repo)Clawd2026-02-281-40/+25
| | | | | | | | | - Store session artifacts in ~/.claude-flow/projects/{projectId}/sessions/{sessionId}/ - Artifacts no longer live in project directory - can't be accidentally committed - Remove .claude-flow/ from .gitignore (not needed anymore) - Update all IPC handlers and renderer to use projectId instead of projectPath - Update prompts to remove worktree references - Update README with new storage location
* Add session-specific artifacts, CLAUDE.md, and git worktree supportClawd2026-02-281-13/+78
| | | | | | | | | | | - Store artifacts in .claude-flow/sessions/{sessionId}/ - Each session now has isolated research.md and plan.md - Concurrent sessions no longer conflict - Add CLAUDE.md support for shared codebase documentation - Add git worktree creation on session start - Add git commit/status IPC handlers - Update all artifact APIs to be session-specific - Remove artifact clearing on new session (no longer needed)
* Fix: system prompt passing and strengthen phase enforcementClawd2026-02-281-4/+1
| | | | | | | | | | | | | | | - Fix systemPrompt option (was incorrectly using extraArgs) - Rewrite research phase prompt: - Emphasize writing to research.md as PRIMARY output - Explicitly forbid asking about phase transitions - Add document format template - Clarify that chat is for questions only - Rewrite plan phase prompt: - Same emphasis on plan.md as primary output - Include code snippet format examples - Forbid implementation attempts - Change research/plan permissionMode to acceptEdits (was 'plan') - 'plan' mode may have been blocking file writes
* Phase 2: Claude integration layerClawd2026-02-281-0/+142
- Add @anthropic-ai/claude-agent-sdk dependency - Implement src/main/claude/phases.ts with phase configs (research/plan/implement) - Implement src/main/claude/index.ts with SDK wrapper - query() integration with session management - Session resume support - Artifact read/write utilities - Phase advancement logic