|
8 | 8 | ├── session.ts # SessionManager — LLM loop, compaction, tool orchestration |
9 | 9 | ├── settings.ts # Settings resolution from ~/.deepcode/settings.json |
10 | 10 | ├── prompt.ts # System prompt builder, tool definitions, agent-drift-guard skill |
11 | | -├── model-capabilities.ts # Model detection and thinking-mode defaults |
| 11 | +├── common/ |
| 12 | +│ ├── model-capabilities.ts # Model detection and thinking-mode defaults |
| 13 | +│ ├── file-utils.ts # File read/write with encoding and diff preview |
| 14 | +│ ├── shell-utils.ts # Shell path resolution (Git Bash, zsh, bash) |
| 15 | +│ ├── state.ts # In-memory file state and snippet tracking |
| 16 | +│ └── runtime.ts # Tool validation runtime helpers |
12 | 17 | ├── ui/ |
13 | 18 | │ ├── App.tsx # Root Ink component — state, routing, session orchestration |
14 | 19 | │ ├── PromptInput.tsx # Multi-line input with slash commands, image paste, skills |
|
20 | 25 | ├── mcp/ |
21 | 26 | │ ├── mcp-client.ts # MCP client — JSON-RPC communication with MCP servers |
22 | 27 | │ └── mcp-manager.ts # MCP manager — lifecycle, tool registration, execution |
23 | | -├── common/ |
24 | | -│ ├── file-utils.ts # File read/write with encoding and diff preview |
25 | | -│ ├── shell-utils.ts # Shell path resolution (Git Bash, zsh, bash) |
26 | | -│ ├── state.ts # In-memory file state and snippet tracking |
27 | | -│ └── runtime.ts # Tool validation runtime helpers |
28 | 28 | ├── tools/ |
29 | 29 | │ ├── executor.ts # ToolExecutor — dispatches tool calls to handlers |
30 | 30 | │ ├── bash-handler.ts # Executes shell commands |
@@ -52,7 +52,7 @@ dist/ # Bundled CLI output (gitignored) |
52 | 52 | | `npm run format:check` | Prettier in check-only mode | |
53 | 53 | | `npm run check` | Runs typecheck + lint + format:check together | |
54 | 54 | | `npm run bundle` | esbuild bundles `src/cli.tsx` → `dist/cli.js` (ESM, Node 18) | |
55 | | -| `npm run build` | `check` + `bundle` — full CI gate before publish | |
| 55 | +| `npm run build` | `check` + `bundle` + chmod 755 — full CI gate before publish | |
56 | 56 | | `npm test` | Runs all tests via `tsx --test src/tests/*.test.ts` | |
57 | 57 | | `npm run test:single -- <file>` | Run a single test file (e.g., `npm run test:single -- src/tests/session.test.ts`) | |
58 | 58 |
|
|
0 commit comments