diff options
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -45,9 +45,19 @@ All renderer→main communication goes through named IPC channels registered in | |||
| 45 | ### Database | 45 | ### Database |
| 46 | SQLite at `app.getPath("userData")/claude-flow.db`. Tables: `projects`, `sessions`, `messages`. Foreign keys ON, WAL mode enabled. | 46 | SQLite at `app.getPath("userData")/claude-flow.db`. Tables: `projects`, `sessions`, `messages`. Foreign keys ON, WAL mode enabled. |
| 47 | 47 | ||
| 48 | Schema migrations: `db/index.ts::getDb()` calls `initSchema()` which uses `CREATE TABLE IF NOT EXISTS`. **New columns require explicit `ALTER TABLE` migration** run after `initSchema()`. | ||
| 49 | |||
| 50 | ### SDK Permission Modes | ||
| 51 | `PermissionMode` values: `'default' | 'acceptEdits' | 'bypassPermissions' | 'plan' | 'dontAsk'` | ||
| 52 | |||
| 53 | **Known bug**: `permissionMode: 'bypassPermissions'` requires a companion flag `allowDangerouslySkipPermissions: true` in the `query()` options. This flag is currently missing from `claude/index.ts`. | ||
| 54 | |||
| 55 | `allowedTools: string[]` in the SDK maps to Claude Code's `--allowedTools` CLI flag and supports patterns like `'Bash(git *)'` to auto-allow only specific Bash command forms. | ||
| 56 | |||
| 48 | ## Important Notes | 57 | ## Important Notes |
| 49 | 58 | ||
| 50 | - `ANTHROPIC_API_KEY` env var must be set before launching | 59 | - `ANTHROPIC_API_KEY` env var must be set before launching |
| 51 | - Artifacts are stored in `.claude-flow/sessions/` inside the target project | 60 | - Artifacts are stored in `.claude-flow/sessions/` inside the target project |
| 52 | - `bypassPermissions` mode is a user-controlled toggle in implement phase only | 61 | - `bypassPermissions` mode is a user-controlled toggle in implement phase only |
| 53 | - Token usage (from `SDKResultMessage.usage`) is displayed in the ActionBar | 62 | - Token usage (from `SDKResultMessage.usage`) is displayed in the ActionBar |
| 63 | - No git library in dependencies — use Node.js `child_process` (built-in) for git operations | ||
