Skip to content

Commit 2819e09

Browse files
author
chenbo
committed
Add simple capp status commands
1 parent 987e044 commit 2819e09

37 files changed

Lines changed: 24475 additions & 22815 deletions

.agent-context/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ This document is generated from static repository signals. Treat it as a startin
99
- Internal modules: 28
1010

1111
## Important Modules
12-
- `test`: test contains 38 files and depends on analyzers, benchmarks, cli, config, core, harness, integrations, mcp, outputs, retrievers.
12+
- `test`: test contains 39 files and depends on analyzers, benchmarks, cli, config, core, harness, integrations, mcp, outputs, retrievers.
1313
- `outputs`: outputs contains 27 files and depends on core, harness, integrations.
1414
- `core`: core contains 18 files and depends on analyzers, config, llm, outputs.
1515
- `harness`: harness contains 9 files and depends on core, outputs, sandbox.
1616
- `retrievers`: retrievers contains 7 files and depends on core, integrations, outputs.
1717
- `integrations`: integrations contains 5 files and depends on core, outputs, retrievers.
1818
- `benchmarks`: benchmarks contains 25 files and depends on core, harness, outputs.
19+
- `cli`: cli contains 5 files and depends on benchmarks, config, core, harness, integrations, outputs, retrievers.
1920
- `analyzers`: analyzers contains 6 files and depends on core.
2021
- `benchmarks/fixtures/small-ts-app`: benchmarks/fixtures/small-ts-app contains 13 files.
21-
- `cli`: cli contains 4 files and depends on benchmarks, config, core, harness, integrations, outputs, retrievers.
2222

2323
## Agent Guidance
2424
- Start with `AGENTS.md`, then read `key-files.md` for the highest-signal files.

.agent-context/contracts/architecture.contract.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"outputs",
123123
"retrievers"
124124
],
125-
"summary": "test contains 38 files and depends on analyzers, benchmarks, cli, config, core, harness, integrations, mcp, outputs, retrievers."
125+
"summary": "test contains 39 files and depends on analyzers, benchmarks, cli, config, core, harness, integrations, mcp, outputs, retrievers."
126126
},
127127
{
128128
"name": "outputs",
@@ -198,6 +198,22 @@
198198
],
199199
"summary": "benchmarks contains 25 files and depends on core, harness, outputs."
200200
},
201+
{
202+
"name": "cli",
203+
"owns": [
204+
"src/cli/**"
205+
],
206+
"imports": [
207+
"benchmarks",
208+
"config",
209+
"core",
210+
"harness",
211+
"integrations",
212+
"outputs",
213+
"retrievers"
214+
],
215+
"summary": "cli contains 5 files and depends on benchmarks, config, core, harness, integrations, outputs, retrievers."
216+
},
201217
{
202218
"name": "analyzers",
203219
"owns": [
@@ -216,22 +232,6 @@
216232
"imports": [],
217233
"summary": "benchmarks/fixtures/small-ts-app contains 13 files."
218234
},
219-
{
220-
"name": "cli",
221-
"owns": [
222-
"src/cli/**"
223-
],
224-
"imports": [
225-
"benchmarks",
226-
"config",
227-
"core",
228-
"harness",
229-
"integrations",
230-
"outputs",
231-
"retrievers"
232-
],
233-
"summary": "cli contains 4 files and depends on benchmarks, config, core, harness, integrations, outputs, retrievers."
234-
},
235235
{
236236
"name": "benchmarks/fixtures/monorepo/packages/api",
237237
"owns": [

.agent-context/contracts/module-boundaries.json

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,50 @@
313313
"src/benchmarks/benchmark.ts"
314314
]
315315
},
316+
"cli": {
317+
"owns": [
318+
"src/cli/**"
319+
],
320+
"allowedImports": [
321+
"benchmarks/**",
322+
"benchmarks/fixtures/monorepo/packages/config/**",
323+
"benchmarks/fixtures/monorepo/packages/shared/**",
324+
"src/benchmarks/**",
325+
"src/cli/**",
326+
"src/config/**",
327+
"src/core/**",
328+
"src/harness/**",
329+
"src/integrations/**",
330+
"src/outputs/**",
331+
"src/retrievers/**"
332+
],
333+
"forbiddenImports": [
334+
"**/*.generated.*",
335+
"**/generated/**",
336+
"build/**",
337+
"dist/**",
338+
"src/admin/**",
339+
"src/billing/**",
340+
"src/payment/**",
341+
"src/payments/**"
342+
],
343+
"observedImports": [
344+
"benchmarks",
345+
"config",
346+
"core",
347+
"harness",
348+
"integrations",
349+
"outputs",
350+
"retrievers"
351+
],
352+
"publicFiles": [
353+
"src/cli/capp-commands.ts",
354+
"src/cli/default-command.ts",
355+
"src/cli/index.ts",
356+
"src/cli/opencode-preset.ts",
357+
"src/cli/task-args.ts"
358+
]
359+
},
316360
"analyzers": {
317361
"owns": [
318362
"src/analyzers/**"
@@ -377,49 +421,6 @@
377421
"benchmarks/fixtures/small-ts-app/src/index.ts"
378422
]
379423
},
380-
"cli": {
381-
"owns": [
382-
"src/cli/**"
383-
],
384-
"allowedImports": [
385-
"benchmarks/**",
386-
"benchmarks/fixtures/monorepo/packages/config/**",
387-
"benchmarks/fixtures/monorepo/packages/shared/**",
388-
"src/benchmarks/**",
389-
"src/cli/**",
390-
"src/config/**",
391-
"src/core/**",
392-
"src/harness/**",
393-
"src/integrations/**",
394-
"src/outputs/**",
395-
"src/retrievers/**"
396-
],
397-
"forbiddenImports": [
398-
"**/*.generated.*",
399-
"**/generated/**",
400-
"build/**",
401-
"dist/**",
402-
"src/admin/**",
403-
"src/billing/**",
404-
"src/payment/**",
405-
"src/payments/**"
406-
],
407-
"observedImports": [
408-
"benchmarks",
409-
"config",
410-
"core",
411-
"harness",
412-
"integrations",
413-
"outputs",
414-
"retrievers"
415-
],
416-
"publicFiles": [
417-
"src/cli/default-command.ts",
418-
"src/cli/index.ts",
419-
"src/cli/opencode-preset.ts",
420-
"src/cli/task-args.ts"
421-
]
422-
},
423424
"benchmarks/fixtures/monorepo/packages/api": {
424425
"owns": [
425426
"benchmarks/fixtures/monorepo/packages/api/**"

.agent-context/contracts/test.contract.json

Lines changed: 54 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"test/analyzers.test.ts",
1212
"test/benchmark.test.ts",
1313
"test/cache.test.ts",
14+
"test/capp-commands.test.ts",
1415
"test/codegraph.test.ts",
1516
"test/config.test.ts",
1617
"test/context-delta.test.ts",
@@ -108,6 +109,9 @@
108109
"benchmarks/fixtures/monorepo/packages/api/test/config.test.ts",
109110
"benchmarks/fixtures/monorepo/packages/config/test/loader.test.ts"
110111
],
112+
"src/cli/capp-commands.ts": [
113+
"test/capp-commands.test.ts"
114+
],
111115
"src/cli/default-command.ts": [
112116
"test/default-command.test.ts"
113117
],
@@ -220,40 +224,16 @@
220224
"test/contract-validator.test.ts",
221225
"test/validator.test.ts"
222226
],
223-
"src/harness/types.ts": [
224-
"test/task-harness.test.ts"
225-
],
226227
"src/integrations/codegraph.ts": [
227228
"test/codegraph.test.ts"
228229
],
230+
"src/harness/types.ts": [
231+
"test/task-harness.test.ts"
232+
],
229233
"src/llm/provider.ts": [],
230234
"src/mcp/server.ts": [
231235
"test/mcp.test.ts"
232236
],
233-
"src/retrievers/codegraph.ts": [
234-
"test/codegraph.test.ts",
235-
"test/retrievers.test.ts"
236-
],
237-
"src/retrievers/external.ts": [
238-
"test/retrievers.test.ts"
239-
],
240-
"src/retrievers/hybrid.ts": [
241-
"test/retrievers.test.ts"
242-
],
243-
"src/retrievers/index.ts": [
244-
"test/retrievers.test.ts",
245-
"test/fixtures/monorepo/packages/api/src/index.ts",
246-
"test/fixtures/monorepo/packages/web/src/index.ts"
247-
],
248-
"src/retrievers/ripgrep.ts": [
249-
"test/retrievers.test.ts"
250-
],
251-
"src/retrievers/static.ts": [
252-
"test/retrievers.test.ts"
253-
],
254-
"src/retrievers/types.ts": [
255-
"test/retrievers.test.ts"
256-
],
257237
"src/outputs/agent-events.ts": [
258238
"test/agent-events.test.ts"
259239
],
@@ -304,9 +284,50 @@
304284
"src/outputs/token-savings.ts": [
305285
"test/token-savings.test.ts"
306286
],
287+
"src/retrievers/codegraph.ts": [
288+
"test/codegraph.test.ts",
289+
"test/retrievers.test.ts"
290+
],
291+
"src/retrievers/external.ts": [
292+
"test/retrievers.test.ts"
293+
],
294+
"src/retrievers/hybrid.ts": [
295+
"test/retrievers.test.ts"
296+
],
297+
"src/retrievers/index.ts": [
298+
"test/retrievers.test.ts",
299+
"test/fixtures/monorepo/packages/api/src/index.ts",
300+
"test/fixtures/monorepo/packages/web/src/index.ts"
301+
],
302+
"src/retrievers/ripgrep.ts": [
303+
"test/retrievers.test.ts"
304+
],
305+
"src/retrievers/static.ts": [
306+
"test/retrievers.test.ts"
307+
],
308+
"src/retrievers/types.ts": [
309+
"test/retrievers.test.ts"
310+
],
307311
"src/sandbox/git-worktree-sandbox.ts": [],
308312
"src/sandbox/host-sandbox.ts": [],
309313
"src/sandbox/sandbox-adapter.ts": [],
314+
"src/integrations/opencode/launcher.ts": [
315+
"test/opencode-launcher.test.ts",
316+
"test/opencode-preset.test.ts"
317+
],
318+
"src/integrations/opencode/project-init.ts": [
319+
"test/opencode-launcher.test.ts",
320+
"test/opencode-preset.test.ts"
321+
],
322+
"src/integrations/opencode/sidecar-plugin-template.ts": [
323+
"test/opencode-launcher.test.ts",
324+
"test/opencode-preset.test.ts"
325+
],
326+
"src/integrations/opencode/sidecar.ts": [
327+
"test/capp-commands.test.ts",
328+
"test/opencode-launcher.test.ts",
329+
"test/opencode-preset.test.ts"
330+
],
310331
"src/harness/control-plane/decision-engine.ts": [
311332
"test/task-harness.test.ts"
312333
],
@@ -333,22 +354,6 @@
333354
"test/regression-guard.test.ts",
334355
"test/task-harness.test.ts"
335356
],
336-
"src/integrations/opencode/launcher.ts": [
337-
"test/opencode-launcher.test.ts",
338-
"test/opencode-preset.test.ts"
339-
],
340-
"src/integrations/opencode/project-init.ts": [
341-
"test/opencode-launcher.test.ts",
342-
"test/opencode-preset.test.ts"
343-
],
344-
"src/integrations/opencode/sidecar-plugin-template.ts": [
345-
"test/opencode-launcher.test.ts",
346-
"test/opencode-preset.test.ts"
347-
],
348-
"src/integrations/opencode/sidecar.ts": [
349-
"test/opencode-launcher.test.ts",
350-
"test/opencode-preset.test.ts"
351-
],
352357
"src/outputs/renderers/markdown.ts": [],
353358
"src/outputs/renderers/reports.ts": [],
354359
"src/outputs/renderers/writer.ts": [
@@ -513,6 +518,7 @@
513518
"test/fixtures/next-app/src/app/api/login/route.ts"
514519
],
515520
"benchmarks/fixtures/react-app/src/App.tsx": [
521+
"test/capp-commands.test.ts",
516522
"test/fixtures.test.ts",
517523
"test/fixtures/monorepo/package.json",
518524
"test/fixtures/monorepo/pnpm-workspace.yaml",
@@ -876,7 +882,8 @@
876882
"test/fixtures/monorepo/packages/web/src/index.ts",
877883
"test/fixtures/next-app/src/app/api/login/route.ts"
878884
],
879-
"benchmarks/fixtures/monorepo/packages/shared/src/metrics.ts": [
885+
"benchmarks/fixtures/monorepo/packages/web/src/app.ts": [
886+
"test/capp-commands.test.ts",
880887
"test/fixtures.test.ts",
881888
"test/fixtures/monorepo/package.json",
882889
"test/fixtures/monorepo/pnpm-workspace.yaml",
@@ -901,7 +908,8 @@
901908
"test/fixtures/monorepo/packages/web/src/index.ts",
902909
"test/fixtures/next-app/src/app/api/login/route.ts"
903910
],
904-
"benchmarks/fixtures/monorepo/packages/web/src/app.ts": [
911+
"benchmarks/fixtures/monorepo/packages/web/src/config.ts": [
912+
"test/config.test.ts",
905913
"test/fixtures.test.ts",
906914
"test/fixtures/monorepo/package.json",
907915
"test/fixtures/monorepo/pnpm-workspace.yaml",
@@ -926,8 +934,7 @@
926934
"test/fixtures/monorepo/packages/web/src/index.ts",
927935
"test/fixtures/next-app/src/app/api/login/route.ts"
928936
],
929-
"benchmarks/fixtures/monorepo/packages/web/src/config.ts": [
930-
"test/config.test.ts",
937+
"benchmarks/fixtures/monorepo/packages/shared/src/metrics.ts": [
931938
"test/fixtures.test.ts",
932939
"test/fixtures/monorepo/package.json",
933940
"test/fixtures/monorepo/pnpm-workspace.yaml",

.agent-context/dependency-graph.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ graph TD
6565
| cli | config | 1 |
6666
| cli | core | 10 |
6767
| cli | harness | 8 |
68-
| cli | integrations | 4 |
68+
| cli | integrations | 6 |
6969
| cli | outputs | 10 |
7070
| cli | retrievers | 1 |
7171
| config | core | 2 |
@@ -93,11 +93,11 @@ graph TD
9393
| sandbox | core | 4 |
9494
| test | analyzers | 3 |
9595
| test | benchmarks | 2 |
96-
| test | cli | 3 |
96+
| test | cli | 4 |
9797
| test | config | 3 |
9898
| test | core | 45 |
9999
| test | harness | 14 |
100-
| test | integrations | 4 |
100+
| test | integrations | 5 |
101101
| test | mcp | 1 |
102102
| test | outputs | 22 |
103103
| test | retrievers | 1 |

0 commit comments

Comments
 (0)