@draht/coding-agent 2026.10.20 → 2026.10.23-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +138 -0
- package/agents/advisor.md +2 -2
- package/agents/architect.md +11 -33
- package/agents/debugger.md +13 -54
- package/agents/git-committer.md +18 -42
- package/agents/implementer.md +14 -36
- package/agents/investigator.md +12 -63
- package/agents/reviewer.md +16 -44
- package/agents/security-auditor.md +22 -56
- package/agents/spec-reviewer.md +13 -53
- package/agents/verifier.md +14 -33
- package/bin/drahtbank.mjs +4 -0
- package/dist/agents/advisor.md +2 -2
- package/dist/agents/architect.md +11 -33
- package/dist/agents/debugger.md +13 -54
- package/dist/agents/git-committer.md +18 -42
- package/dist/agents/implementer.md +14 -36
- package/dist/agents/investigator.md +12 -63
- package/dist/agents/reviewer.md +16 -44
- package/dist/agents/security-auditor.md +22 -56
- package/dist/agents/spec-reviewer.md +13 -53
- package/dist/agents/verifier.md +14 -33
- package/dist/bundle/chunks/anthropic-messages-G57VPNTF.js +6 -0
- package/dist/bundle/chunks/anthropic.js +1 -1
- package/dist/bundle/chunks/azure-openai-responses-AYUCZ5WN.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +31 -28
- package/dist/bundle/chunks/chunk-2JZLKNZ4.js +3 -0
- package/dist/bundle/chunks/chunk-3GDEPGTR.js +16 -0
- package/dist/bundle/chunks/chunk-5JW3NSTV.js +2 -0
- package/dist/bundle/chunks/{chunk-KVH4HR57.js → chunk-6WESOD4H.js} +1 -1
- package/dist/bundle/chunks/chunk-76YNMQ57.js +2 -0
- package/dist/bundle/chunks/chunk-AC3MSTC6.js +2 -0
- package/dist/bundle/chunks/chunk-ACLWH5WQ.js +2 -0
- package/dist/bundle/chunks/chunk-BL72B6LV.js +82 -0
- package/dist/bundle/chunks/chunk-CLKG6K6Z.js +7 -0
- package/dist/bundle/chunks/chunk-DN7SM3LX.js +479 -0
- package/dist/bundle/chunks/{chunk-D6TMD5Q2.js → chunk-DOUMZTXH.js} +10 -10
- package/dist/bundle/chunks/chunk-DQ4G4IS4.js +20 -0
- package/dist/bundle/chunks/chunk-E4VZJRJ2.js +9 -0
- package/dist/bundle/chunks/chunk-FOYIPAAD.js +6 -0
- package/dist/bundle/chunks/chunk-FXCTQRNN.js +2 -0
- package/dist/bundle/chunks/chunk-GBFVS2SF.js +12 -0
- package/dist/bundle/chunks/chunk-GQXRTK54.js +20 -0
- package/dist/bundle/chunks/chunk-IGO52ZOY.js +132 -0
- package/dist/bundle/chunks/chunk-IT4RIOZD.js +2 -0
- package/dist/bundle/chunks/chunk-JJKPUMH2.js +1424 -0
- package/dist/bundle/chunks/chunk-JNWRE5F4.js +2 -0
- package/dist/bundle/chunks/chunk-KSGHCBHT.js +2 -0
- package/dist/bundle/chunks/chunk-LO6CVU2L.js +6 -0
- package/dist/bundle/chunks/chunk-MBFTIGLS.js +2 -0
- package/dist/bundle/chunks/chunk-N26RGV3K.js +11 -0
- package/dist/bundle/chunks/{chunk-KPO5375S.js → chunk-RCRGGYLW.js} +1 -1
- package/dist/bundle/chunks/chunk-UCJ7FLSO.js +166 -0
- package/dist/bundle/chunks/chunk-USCN7R2E.js +2 -0
- package/dist/bundle/chunks/chunk-WFHH5SX6.js +4 -0
- package/dist/bundle/chunks/chunk-WYWBXNDO.js +6 -0
- package/dist/bundle/chunks/chunk-ZRPAOMVB.js +2 -0
- package/dist/bundle/chunks/{cli-PYJB6AQ3.js → cli-HTUB6WOG.js} +6 -6
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-RRSO6OXX.js +2 -0
- package/dist/bundle/chunks/codemode-worker.js +188 -21
- package/dist/bundle/chunks/execute-UUPNZJJG.js +31 -0
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/google-generative-ai-VJSS5EBX.js +2 -0
- package/dist/bundle/chunks/google-vertex-K23DBWTT.js +2 -0
- package/dist/bundle/chunks/https-proxy-agent-WQIRL24U.js +13 -0
- package/dist/bundle/chunks/image-resize-worker.js +1 -1
- package/dist/bundle/chunks/lib-ULKZYRGD.js +9 -0
- package/dist/bundle/chunks/{llama-cpp-classify-EJ5XMSQL.js → llama-cpp-classify-3VDXTYVJ.js} +3 -3
- package/dist/bundle/chunks/mistral-conversations-SKVQJGFZ.js +5 -0
- package/dist/bundle/chunks/{multipart-parser-AZP5BX2W.js → multipart-parser-HMCXZ4BD.js} +1 -1
- package/dist/bundle/chunks/node-DXZFQBEO.js +16 -0
- package/dist/bundle/chunks/{node-C2JGH2OB.js → node-LBZLUIBE.js} +1 -1
- package/dist/bundle/chunks/openai-chatgpt.js +1 -1
- package/dist/bundle/chunks/openai-codex-responses-LV4RIZL3.js +10 -0
- package/dist/bundle/chunks/openai-codex.js +1 -1
- package/dist/bundle/chunks/openai-completions-PUIR2V25.js +7 -0
- package/dist/bundle/chunks/openai-decisions-2DJLSYQF.js +5 -0
- package/dist/bundle/chunks/openai-responses-6ESQOXAF.js +4 -0
- package/dist/bundle/chunks/opencode-go.js +1 -1
- package/dist/bundle/chunks/openrouter-images-TVXBMY3V.js +2 -0
- package/dist/bundle/chunks/pi-messages-XS7FDWQI.js +8 -0
- package/dist/bundle/chunks/runtime-IB3XQ7E3.js +2 -0
- package/dist/bundle/chunks/runtime-LB35PK4J.js +3 -0
- package/dist/bundle/chunks/settings-manager-YNY5F4RU.js +2 -0
- package/dist/bundle/chunks/src-KDGO7EGF.js +4 -0
- package/dist/bundle/chunks/typesafe-system-one-67GAWZXE.js +2 -0
- package/dist/bundle/chunks/virtual-modules-U4CBGVMI.js +2 -0
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli/args.d.ts +2 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +30 -8
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/credential-print.d.ts.map +1 -1
- package/dist/cli/credential-print.js +4 -4
- package/dist/cli/credential-print.js.map +1 -1
- package/dist/config.d.ts +18 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +44 -6
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session.d.ts +65 -8
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +240 -102
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +20 -13
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +42 -52
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/bug-report.d.ts +9 -1
- package/dist/core/bug-report.d.ts.map +1 -1
- package/dist/core/builtins/completion-checks.d.ts +3 -0
- package/dist/core/builtins/completion-checks.d.ts.map +1 -0
- package/dist/core/builtins/completion-checks.js +142 -0
- package/dist/core/builtins/completion-checks.js.map +1 -0
- package/dist/core/builtins/duet.d.ts.map +1 -1
- package/dist/core/builtins/duet.js +7 -5
- package/dist/core/builtins/duet.js.map +1 -1
- package/dist/core/builtins/git-safety.d.ts +3 -0
- package/dist/core/builtins/git-safety.d.ts.map +1 -0
- package/dist/core/builtins/git-safety.js +34 -0
- package/dist/core/builtins/git-safety.js.map +1 -0
- package/dist/core/builtins/index.d.ts.map +1 -1
- package/dist/core/builtins/index.js +4 -0
- package/dist/core/builtins/index.js.map +1 -1
- package/dist/core/client-identity.d.ts +8 -0
- package/dist/core/client-identity.d.ts.map +1 -0
- package/dist/core/client-identity.js +15 -0
- package/dist/core/client-identity.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -2
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +2 -2
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +20 -15
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/utils.d.ts +6 -0
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js +7 -8
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +2 -0
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template.html +1 -0
- package/dist/core/export-html/template.js +23 -17
- package/dist/core/export-html/tool-renderer.d.ts +3 -3
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
- package/dist/core/export-html/tool-renderer.js +5 -3
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/dist/core/export-html/vendor/marked.min.js +30 -29
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +7 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +6 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +16 -4
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +61 -7
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/virtual-modules.js +2 -0
- package/dist/core/extensions/virtual-modules.js.map +1 -1
- package/dist/core/key-id-schema.d.ts +6 -0
- package/dist/core/key-id-schema.d.ts.map +1 -0
- package/dist/core/key-id-schema.js +16 -0
- package/dist/core/key-id-schema.js.map +1 -0
- package/dist/core/keybindings-schema.d.ts +4 -0
- package/dist/core/keybindings-schema.d.ts.map +1 -0
- package/dist/core/keybindings-schema.js +16 -0
- package/dist/core/keybindings-schema.js.map +1 -0
- package/dist/core/keybindings.d.ts +242 -75
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +30 -23
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/mcp-servers.d.ts +22 -0
- package/dist/core/mcp-servers.d.ts.map +1 -1
- package/dist/core/mcp-servers.js +72 -11
- package/dist/core/mcp-servers.js.map +1 -1
- package/dist/core/model-config.d.ts +1623 -74
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +70 -184
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-registry.d.ts +3 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +4 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts +56 -43
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +253 -358
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +19 -10
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/nested-tool-calls.d.ts +1 -0
- package/dist/core/nested-tool-calls.d.ts.map +1 -1
- package/dist/core/nested-tool-calls.js +1 -0
- package/dist/core/nested-tool-calls.js.map +1 -1
- package/dist/core/package-manager.js +3 -3
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/polyphase/keyword.js +1 -1
- package/dist/core/polyphase/keyword.js.map +1 -1
- package/dist/core/polyphase/model-selection.d.ts.map +1 -1
- package/dist/core/polyphase/model-selection.js +15 -7
- package/dist/core/polyphase/model-selection.js.map +1 -1
- package/dist/core/polyphase/workflow/prelude.d.ts +2 -0
- package/dist/core/polyphase/workflow/prelude.d.ts.map +1 -1
- package/dist/core/polyphase/workflow/prelude.js +12 -16
- package/dist/core/polyphase/workflow/prelude.js.map +1 -1
- package/dist/core/polyphase/workflow/runtime.d.ts.map +1 -1
- package/dist/core/polyphase/workflow/runtime.js +2 -1
- package/dist/core/polyphase/workflow/runtime.js.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +2 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +7 -2
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-composer.d.ts +2 -1
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +13 -0
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/radius.d.ts +2 -0
- package/dist/core/radius.d.ts.map +1 -1
- package/dist/core/radius.js +2 -0
- package/dist/core/radius.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts +12 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +84 -24
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resource-loader.d.ts +3 -0
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +7 -4
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sdk.d.ts +13 -4
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +27 -15
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +65 -0
- package/dist/core/settings-defaults.d.ts.map +1 -0
- package/dist/core/settings-defaults.js +66 -0
- package/dist/core/settings-defaults.js.map +1 -0
- package/dist/core/settings-manager.d.ts +17 -178
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +86 -57
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +269 -0
- package/dist/core/settings-schema.d.ts.map +1 -0
- package/dist/core/settings-schema.js +318 -0
- package/dist/core/settings-schema.js.map +1 -0
- package/dist/core/skills.d.ts +4 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +6 -1
- package/dist/core/skills.js.map +1 -1
- package/dist/core/system-prompt.d.ts +6 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +10 -5
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +3 -5
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/grep.d.ts +8 -0
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +19 -7
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/index.d.ts +2 -0
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +2 -0
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +4 -10
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/path-utils.d.ts +1 -1
- package/dist/core/tools/path-utils.d.ts.map +1 -1
- package/dist/core/tools/path-utils.js +6 -6
- package/dist/core/tools/path-utils.js.map +1 -1
- package/dist/core/tools/read.d.ts +13 -0
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +32 -2
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +20 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +67 -0
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/bash.d.ts.map +1 -1
- package/dist/core/tools/renderers/bash.js +7 -35
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/renderers/edit.d.ts.map +1 -1
- package/dist/core/tools/renderers/edit.js +5 -4
- package/dist/core/tools/renderers/edit.js.map +1 -1
- package/dist/core/tools/renderers/index.d.ts +2 -2
- package/dist/core/tools/renderers/index.d.ts.map +1 -1
- package/dist/core/tools/renderers/index.js.map +1 -1
- package/dist/core/tools/renderers/read.d.ts.map +1 -1
- package/dist/core/tools/renderers/read.js +7 -11
- package/dist/core/tools/renderers/read.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +391 -80
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/index.d.ts.map +1 -1
- package/dist/extensions/codemode/index.js +3 -1
- package/dist/extensions/codemode/index.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts +2 -2
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +9 -3
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +22 -21
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js +96 -123
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +34 -11
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/extensions/mcp/cli.d.ts.map +1 -1
- package/dist/extensions/mcp/cli.js +27 -33
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/config.d.ts +15 -3
- package/dist/extensions/mcp/config.d.ts.map +1 -1
- package/dist/extensions/mcp/config.js +49 -12
- package/dist/extensions/mcp/config.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts +4 -1
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +279 -129
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/oauth.d.ts +21 -11
- package/dist/extensions/mcp/oauth.d.ts.map +1 -1
- package/dist/extensions/mcp/oauth.js +166 -45
- package/dist/extensions/mcp/oauth.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +3 -10
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +4 -5
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +7 -7
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +31 -45
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +7 -5
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +87 -29
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/extensions/mcp/ui.d.ts +3 -3
- package/dist/extensions/mcp/ui.d.ts.map +1 -1
- package/dist/extensions/mcp/ui.js +18 -6
- package/dist/extensions/mcp/ui.js.map +1 -1
- package/dist/extensions/tool-search/tool.d.ts +0 -2
- package/dist/extensions/tool-search/tool.d.ts.map +1 -1
- package/dist/extensions/tool-search/tool.js +2 -4
- package/dist/extensions/tool-search/tool.js.map +1 -1
- package/dist/hooks/checks/checks-runtime.cjs +215 -0
- package/dist/hooks/checks/git-safety.cjs +198 -0
- package/dist/hooks/checks/git-safety.d.cts +1 -0
- package/dist/hooks/gsd/draht-post-task.js +78 -39
- package/dist/hooks/gsd/draht-quality-gate.js +210 -122
- package/dist/hooks/gsd/package.json +3 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +11 -3
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/auth-url.d.ts +14 -0
- package/dist/modes/interactive/components/auth-url.d.ts.map +1 -0
- package/dist/modes/interactive/components/auth-url.js +37 -0
- package/dist/modes/interactive/components/auth-url.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +5 -1
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js +17 -14
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts +2 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js +5 -2
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +2 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +5 -2
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/custom-entry.d.ts +3 -1
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-entry.js +8 -2
- package/dist/modes/interactive/components/custom-entry.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +1 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +3 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +38 -10
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +8 -2
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +24 -21
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/radius-login-selector.d.ts +15 -0
- package/dist/modes/interactive/components/radius-login-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/radius-login-selector.js +85 -0
- package/dist/modes/interactive/components/radius-login-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +3 -3
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +9 -8
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +2 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +5 -2
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +2 -2
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +12 -13
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +32 -45
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +2 -9
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +5 -4
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +43 -48
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +362 -278
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/program-status-reporter.d.ts +34 -0
- package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -0
- package/dist/modes/interactive/program-status-reporter.js +110 -0
- package/dist/modes/interactive/program-status-reporter.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +1 -1
- package/dist/modes/interactive/theme/light.json +1 -1
- package/dist/modes/interactive/theme/system-theme.d.ts +2 -1
- package/dist/modes/interactive/theme/system-theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/system-theme.js +16 -5
- package/dist/modes/interactive/theme/system-theme.js.map +1 -1
- package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
- package/dist/modes/interactive/theme/theme.d.ts +13 -16
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +22 -29
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +4 -0
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +26 -1
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/prompts/commands/atomic-commit.md +8 -6
- package/dist/prompts/commands/brainstorm.md +5 -149
- package/dist/prompts/commands/create-verification-skill.md +8 -48
- package/dist/prompts/commands/discuss-phase.md +6 -10
- package/dist/prompts/commands/execute-phase.md +18 -45
- package/dist/prompts/commands/fix.md +16 -128
- package/dist/prompts/commands/grill.md +6 -53
- package/dist/prompts/commands/init-project.md +13 -18
- package/dist/prompts/commands/map-codebase.md +3 -3
- package/dist/prompts/commands/new-project.md +12 -17
- package/dist/prompts/commands/next-milestone.md +4 -8
- package/dist/prompts/commands/orchestrate-loop.md +12 -12
- package/dist/prompts/commands/orchestrate.md +12 -11
- package/dist/prompts/commands/pause-work.md +1 -1
- package/dist/prompts/commands/plan-phase.md +15 -37
- package/dist/prompts/commands/quick.md +11 -64
- package/dist/prompts/commands/resolve-conflicts.md +2 -15
- package/dist/prompts/commands/triage.md +3 -14
- package/dist/prompts/commands/verify-work.md +15 -63
- package/dist/prompts/commands/why.md +18 -118
- package/dist/skills/atomic-reasoning/SKILL.md +6 -105
- package/dist/skills/blast-radius/SKILL.md +1 -1
- package/dist/skills/epistemics/SKILL.md +12 -87
- package/dist/skills/explainers/SKILL.md +1 -1
- package/dist/skills/typescript-discipline/SKILL.md +12 -42
- package/dist/skills/typescript-discipline/references/patterns.md +25 -266
- package/dist/skills/unslop/SKILL.md +14 -105
- package/dist/utils/ansi.d.ts +8 -0
- package/dist/utils/ansi.d.ts.map +1 -1
- package/dist/utils/ansi.js +30 -11
- package/dist/utils/ansi.js.map +1 -1
- package/dist/utils/clipboard-command.d.ts.map +1 -1
- package/dist/utils/clipboard-command.js +3 -0
- package/dist/utils/clipboard-command.js.map +1 -1
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +18 -12
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/draht-user-agent.d.ts +1 -0
- package/dist/utils/draht-user-agent.d.ts.map +1 -1
- package/dist/utils/draht-user-agent.js +3 -2
- package/dist/utils/draht-user-agent.js.map +1 -1
- package/dist/utils/image-convert.d.ts +12 -0
- package/dist/utils/image-convert.d.ts.map +1 -1
- package/dist/utils/image-convert.js +45 -6
- package/dist/utils/image-convert.js.map +1 -1
- package/dist/utils/image-resize-core.d.ts +12 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +5 -0
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/image-resize-worker.js +3 -2
- package/dist/utils/image-resize-worker.js.map +1 -1
- package/dist/utils/image-resize.d.ts.map +1 -1
- package/dist/utils/image-resize.js +9 -10
- package/dist/utils/image-resize.js.map +1 -1
- package/dist/utils/output-files.d.ts +15 -0
- package/dist/utils/output-files.d.ts.map +1 -0
- package/dist/utils/output-files.js +30 -0
- package/dist/utils/output-files.js.map +1 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +43 -13
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +6 -1
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +4 -3
- package/dist/utils/tools-manager.js.map +1 -1
- package/docs/cli-integration.md +1 -1
- package/docs/cli.md +30 -26
- package/docs/codemode.md +230 -0
- package/docs/compaction.md +5 -5
- package/docs/containerization.md +1 -1
- package/docs/custom-provider.md +53 -1
- package/docs/docs.json +17 -1
- package/docs/drahtbank.md +163 -0
- package/docs/environment-variables.md +5 -2
- package/docs/extensions.md +143 -13
- package/docs/index.md +1 -1
- package/docs/json.md +3 -3
- package/docs/keybindings.md +9 -5
- package/docs/llama-cpp.md +9 -2
- package/docs/mcp.md +59 -3
- package/docs/message-types.md +22 -4
- package/docs/models-configuration.md +187 -0
- package/docs/models.md +67 -4
- package/docs/nvidia-rtx-llama-cpp.md +96 -0
- package/docs/providers.md +70 -5
- package/docs/sdk.md +1 -1
- package/docs/settings.md +10 -8
- package/docs/terminal-setup.md +14 -0
- package/docs/themes.md +4 -2
- package/docs/tui.md +71 -1
- package/docs/usage.md +1 -1
- package/docs/windows.md +16 -2
- package/eval/drahtbank/adapters.d.mts +35 -0
- package/eval/drahtbank/adapters.mjs +192 -0
- package/eval/drahtbank/bank.d.mts +141 -0
- package/eval/drahtbank/bank.mjs +515 -0
- package/eval/drahtbank/cases-v2.d.mts +28 -0
- package/eval/drahtbank/cases-v2.mjs +164 -0
- package/eval/drahtbank/cases.d.mts +17 -0
- package/eval/drahtbank/cases.mjs +198 -0
- package/eval/drahtbank/cli.mjs +120 -0
- package/eval/drahtbank/grading-v2.d.mts +26 -0
- package/eval/drahtbank/grading-v2.mjs +227 -0
- package/eval/drahtbank/isolated-tools.ts +223 -0
- package/eval/drahtbank/isolation-worker.mjs +53 -0
- package/eval/drahtbank/isolation.d.mts +52 -0
- package/eval/drahtbank/isolation.mjs +345 -0
- package/eval/drahtbank/runtime-checks.d.mts +15 -0
- package/eval/drahtbank/runtime-checks.mjs +187 -0
- package/examples/extensions/dynamic-resources/dynamic.json +1 -1
- package/examples/extensions/minimal-mode.ts +4 -5
- package/examples/extensions/overlay-test.ts +2 -2
- package/examples/extensions/plan-mode/index.ts +6 -2
- package/examples/extensions/subagent/index.ts +4 -6
- package/hooks/checks/checks-runtime.cjs +215 -0
- package/hooks/checks/git-safety.cjs +198 -0
- package/hooks/checks/git-safety.d.cts +1 -0
- package/hooks/gsd/draht-post-task.js +78 -39
- package/hooks/gsd/draht-quality-gate.js +210 -122
- package/hooks/gsd/package.json +3 -0
- package/package.json +21 -16
- package/prompts/commands/atomic-commit.md +8 -6
- package/prompts/commands/brainstorm.md +5 -149
- package/prompts/commands/create-verification-skill.md +8 -48
- package/prompts/commands/discuss-phase.md +6 -10
- package/prompts/commands/execute-phase.md +18 -45
- package/prompts/commands/fix.md +16 -128
- package/prompts/commands/grill.md +6 -53
- package/prompts/commands/init-project.md +13 -18
- package/prompts/commands/map-codebase.md +3 -3
- package/prompts/commands/new-project.md +12 -17
- package/prompts/commands/next-milestone.md +4 -8
- package/prompts/commands/orchestrate-loop.md +12 -12
- package/prompts/commands/orchestrate.md +12 -11
- package/prompts/commands/pause-work.md +1 -1
- package/prompts/commands/plan-phase.md +15 -37
- package/prompts/commands/quick.md +11 -64
- package/prompts/commands/resolve-conflicts.md +2 -15
- package/prompts/commands/triage.md +3 -14
- package/prompts/commands/verify-work.md +15 -63
- package/prompts/commands/why.md +18 -118
- package/schemas/keybindings.schema.json +433 -0
- package/schemas/models.schema.json +1190 -0
- package/schemas/settings.schema.json +849 -0
- package/schemas/theme.schema.json +365 -0
- package/skills/atomic-reasoning/SKILL.md +6 -105
- package/skills/blast-radius/SKILL.md +1 -1
- package/skills/epistemics/SKILL.md +12 -87
- package/skills/explainers/SKILL.md +1 -1
- package/skills/typescript-discipline/SKILL.md +12 -42
- package/skills/typescript-discipline/references/patterns.md +25 -266
- package/skills/unslop/SKILL.md +14 -105
- package/dist/bundle/chunks/anthropic-messages-GAKYXF65.js +0 -6
- package/dist/bundle/chunks/azure-openai-responses-ZIXMK6JO.js +0 -2
- package/dist/bundle/chunks/chunk-2E5VODES.js +0 -2
- package/dist/bundle/chunks/chunk-2VAF4XJI.js +0 -146
- package/dist/bundle/chunks/chunk-4TVQYRQY.js +0 -2
- package/dist/bundle/chunks/chunk-6MSE6LZ3.js +0 -6
- package/dist/bundle/chunks/chunk-6ZJKIMU7.js +0 -2
- package/dist/bundle/chunks/chunk-736QBNUZ.js +0 -12
- package/dist/bundle/chunks/chunk-7TYCZN4Z.js +0 -137
- package/dist/bundle/chunks/chunk-BXSHCX3G.js +0 -11
- package/dist/bundle/chunks/chunk-GVXA72ZA.js +0 -2
- package/dist/bundle/chunks/chunk-I5OKY6RH.js +0 -11
- package/dist/bundle/chunks/chunk-IWTUBX6V.js +0 -4
- package/dist/bundle/chunks/chunk-KU5HAKZL.js +0 -4
- package/dist/bundle/chunks/chunk-MO3SCGBN.js +0 -18
- package/dist/bundle/chunks/chunk-N2QZNJT6.js +0 -65
- package/dist/bundle/chunks/chunk-PGJAHC3R.js +0 -107
- package/dist/bundle/chunks/chunk-QVFELZW2.js +0 -312
- package/dist/bundle/chunks/chunk-RZKPFWMH.js +0 -42
- package/dist/bundle/chunks/chunk-SDRCE6OP.js +0 -2
- package/dist/bundle/chunks/chunk-SVNWI7EV.js +0 -8
- package/dist/bundle/chunks/chunk-TIA2T6EO.js +0 -3
- package/dist/bundle/chunks/chunk-TOWVIJ2O.js +0 -1623
- package/dist/bundle/chunks/chunk-XBUEMKIY.js +0 -2
- package/dist/bundle/chunks/chunk-ZA4QNPJY.js +0 -82
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-MJKOAE5S.js +0 -2
- package/dist/bundle/chunks/execute-6N7T7VLY.js +0 -18
- package/dist/bundle/chunks/google-generative-ai-RPUPQ6PM.js +0 -2
- package/dist/bundle/chunks/google-vertex-EZES5QVQ.js +0 -2
- package/dist/bundle/chunks/https-proxy-agent-O2PVUIOI.js +0 -13
- package/dist/bundle/chunks/lib-XOG5PI3Y.js +0 -9
- package/dist/bundle/chunks/mistral-conversations-AOYGU43Y.js +0 -5
- package/dist/bundle/chunks/node-LQ52KV6B.js +0 -16
- package/dist/bundle/chunks/openai-codex-responses-M2Y77JEQ.js +0 -10
- package/dist/bundle/chunks/openai-completions-A4OKYOYV.js +0 -7
- package/dist/bundle/chunks/openai-responses-6IXV53T3.js +0 -3
- package/dist/bundle/chunks/openrouter-images-LYV4NKFM.js +0 -2
- package/dist/bundle/chunks/pi-messages-KKMEUT3Z.js +0 -8
- package/dist/bundle/chunks/runtime-363BOYEO.js +0 -3
- package/dist/bundle/chunks/runtime-D3KV73AE.js +0 -2
- package/dist/bundle/chunks/settings-manager-GEOZJXFQ.js +0 -2
- package/dist/bundle/chunks/src-TIBHS42X.js +0 -4
- package/dist/bundle/chunks/typesafe-system-one-YBEEY5XU.js +0 -2
- package/dist/bundle/chunks/virtual-modules-RLC4Y5MX.js +0 -2
- package/dist/core/provider-attribution.d.ts +0 -4
- package/dist/core/provider-attribution.d.ts.map +0 -1
- package/dist/core/provider-attribution.js +0 -72
- package/dist/core/provider-attribution.js.map +0 -1
- package/dist/experimental/micro/api.d.ts +0 -81
- package/dist/experimental/micro/api.d.ts.map +0 -1
- package/dist/experimental/micro/api.js +0 -2
- package/dist/experimental/micro/api.js.map +0 -1
- package/dist/experimental/micro/main.d.ts +0 -3
- package/dist/experimental/micro/main.d.ts.map +0 -1
- package/dist/experimental/micro/main.js +0 -21
- package/dist/experimental/micro/main.js.map +0 -1
- package/dist/experimental/micro/models.d.ts +0 -11
- package/dist/experimental/micro/models.d.ts.map +0 -1
- package/dist/experimental/micro/models.js +0 -95
- package/dist/experimental/micro/models.js.map +0 -1
- package/dist/experimental/micro/runtime.d.ts +0 -12
- package/dist/experimental/micro/runtime.d.ts.map +0 -1
- package/dist/experimental/micro/runtime.js +0 -465
- package/dist/experimental/micro/runtime.js.map +0 -1
- package/dist/experimental/micro/sessions.d.ts +0 -10
- package/dist/experimental/micro/sessions.d.ts.map +0 -1
- package/dist/experimental/micro/sessions.js +0 -41
- package/dist/experimental/micro/sessions.js.map +0 -1
- package/dist/experimental/micro/tools.d.ts +0 -10
- package/dist/experimental/micro/tools.d.ts.map +0 -1
- package/dist/experimental/micro/tools.js +0 -96
- package/dist/experimental/micro/tools.js.map +0 -1
- package/dist/experimental/micro/tui.d.ts +0 -3
- package/dist/experimental/micro/tui.d.ts.map +0 -1
- package/dist/experimental/micro/tui.js +0 -510
- package/dist/experimental/micro/tui.js.map +0 -1
- package/dist/experimental/mini/main.d.ts +0 -7
- package/dist/experimental/mini/main.d.ts.map +0 -1
- package/dist/experimental/mini/main.js +0 -21
- package/dist/experimental/mini/main.js.map +0 -1
- package/dist/experimental/mini/server/entry.d.ts +0 -3
- package/dist/experimental/mini/server/entry.d.ts.map +0 -1
- package/dist/experimental/mini/server/entry.js +0 -11
- package/dist/experimental/mini/server/entry.js.map +0 -1
- package/dist/experimental/mini/server/run.d.ts +0 -13
- package/dist/experimental/mini/server/run.d.ts.map +0 -1
- package/dist/experimental/mini/server/run.js +0 -150
- package/dist/experimental/mini/server/run.js.map +0 -1
- package/dist/experimental/mini/shared/protocol.d.ts +0 -127
- package/dist/experimental/mini/shared/protocol.d.ts.map +0 -1
- package/dist/experimental/mini/shared/protocol.js +0 -13
- package/dist/experimental/mini/shared/protocol.js.map +0 -1
- package/dist/experimental/mini/shared/rpc.d.ts +0 -49
- package/dist/experimental/mini/shared/rpc.d.ts.map +0 -1
- package/dist/experimental/mini/shared/rpc.js +0 -171
- package/dist/experimental/mini/shared/rpc.js.map +0 -1
- package/dist/experimental/mini/shared/transport.d.ts +0 -35
- package/dist/experimental/mini/shared/transport.d.ts.map +0 -1
- package/dist/experimental/mini/shared/transport.js +0 -94
- package/dist/experimental/mini/shared/transport.js.map +0 -1
- package/dist/experimental/mini/tui/run.d.ts +0 -9
- package/dist/experimental/mini/tui/run.d.ts.map +0 -1
- package/dist/experimental/mini/tui/run.js +0 -62
- package/dist/experimental/mini/tui/run.js.map +0 -1
- package/dist/experimental/mini/tui/session.d.ts +0 -26
- package/dist/experimental/mini/tui/session.d.ts.map +0 -1
- package/dist/experimental/mini/tui/session.js +0 -94
- package/dist/experimental/mini/tui/session.js.map +0 -1
- package/dist/experimental/mini/tui/view.d.ts +0 -10
- package/dist/experimental/mini/tui/view.d.ts.map +0 -1
- package/dist/experimental/mini/tui/view.js +0 -461
- package/dist/experimental/mini/tui/view.js.map +0 -1
- package/dist/experimental/mini/worker/entry.d.ts +0 -3
- package/dist/experimental/mini/worker/entry.d.ts.map +0 -1
- package/dist/experimental/mini/worker/entry.js +0 -10
- package/dist/experimental/mini/worker/entry.js.map +0 -1
- package/dist/experimental/mini/worker/lane-service.d.ts +0 -44
- package/dist/experimental/mini/worker/lane-service.d.ts.map +0 -1
- package/dist/experimental/mini/worker/lane-service.js +0 -97
- package/dist/experimental/mini/worker/lane-service.js.map +0 -1
- package/dist/experimental/mini/worker/models-service.d.ts +0 -19
- package/dist/experimental/mini/worker/models-service.d.ts.map +0 -1
- package/dist/experimental/mini/worker/models-service.js +0 -136
- package/dist/experimental/mini/worker/models-service.js.map +0 -1
- package/dist/experimental/mini/worker/run.d.ts +0 -14
- package/dist/experimental/mini/worker/run.d.ts.map +0 -1
- package/dist/experimental/mini/worker/run.js +0 -88
- package/dist/experimental/mini/worker/run.js.map +0 -1
- package/dist/modes/interactive/theme/theme-json.d.ts +0 -85
- package/dist/modes/interactive/theme/theme-json.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme-json.js +0 -132
- package/dist/modes/interactive/theme/theme-json.js.map +0 -1
- package/dist/modes/interactive/theme/theme-schema.json +0 -361
- /package/dist/bundle/chunks/{chunk-ZZD35WKM.js → chunk-MOOADNVS.js} +0 -0
|
@@ -6,13 +6,16 @@
|
|
|
6
6
|
* Runs after task completion to enforce quality standards.
|
|
7
7
|
* Called by the build agent after each verify step.
|
|
8
8
|
*
|
|
9
|
-
* Usage: node gsd-quality-gate.js [--strict]
|
|
9
|
+
* Usage: node gsd-quality-gate.js [--strict] [--no-tests]
|
|
10
|
+
* --no-tests skips the test-suite run.
|
|
11
|
+
* --checks-only runs configured type, lint, and test checks without workflow heuristics.
|
|
10
12
|
* Exit 0 = quality OK, Exit 1 = quality issues
|
|
11
13
|
*/
|
|
12
14
|
|
|
13
15
|
const { execSync } = require("node:child_process");
|
|
14
16
|
const fs = require("node:fs");
|
|
15
17
|
const path = require("node:path");
|
|
18
|
+
const { runChecks } = require("../checks/checks-runtime.cjs");
|
|
16
19
|
|
|
17
20
|
// ── Toolchain detection — mirrors src/gsd/hook-utils.ts ──────────────────────
|
|
18
21
|
function detectToolchain(cwd) {
|
|
@@ -29,7 +32,7 @@ function detectToolchain(cwd) {
|
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
function readHookConfig(cwd) {
|
|
32
|
-
const defaults = { coverageThreshold: 80, tddMode: "advisory", qualityGateStrict:
|
|
35
|
+
const defaults = { coverageThreshold: 80, tddMode: "advisory", qualityGateStrict: true };
|
|
33
36
|
const configPath = path.join(cwd, ".planning", "config.json");
|
|
34
37
|
if (!fs.existsSync(configPath)) return defaults;
|
|
35
38
|
try {
|
|
@@ -62,163 +65,248 @@ function loadDomainContent(cwd) {
|
|
|
62
65
|
return "";
|
|
63
66
|
}
|
|
64
67
|
|
|
68
|
+
// Match the compiler's upward search without invoking a missing tool in non-TS projects.
|
|
69
|
+
function hasTypeScriptConfig(cwd) {
|
|
70
|
+
let directory = cwd;
|
|
71
|
+
while (true) {
|
|
72
|
+
if (fs.existsSync(path.join(directory, "tsconfig.json"))) return true;
|
|
73
|
+
const parent = path.dirname(directory);
|
|
74
|
+
if (parent === directory) return false;
|
|
75
|
+
directory = parent;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function lintCommand(cwd, pm) {
|
|
80
|
+
let directory = cwd;
|
|
81
|
+
let biome = false;
|
|
82
|
+
while (true) {
|
|
83
|
+
biome ||= ["biome.json", "biome.jsonc"].some((file) => fs.existsSync(path.join(directory, file)));
|
|
84
|
+
const packagePath = path.join(directory, "package.json");
|
|
85
|
+
if (fs.existsSync(packagePath)) {
|
|
86
|
+
const pkg = JSON.parse(fs.readFileSync(packagePath, "utf8"));
|
|
87
|
+
if (typeof pkg.scripts?.lint === "string" && pkg.scripts.lint.trim()) return `${pm} run lint`;
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
const parent = path.dirname(directory);
|
|
91
|
+
if (parent === directory) break;
|
|
92
|
+
directory = parent;
|
|
93
|
+
}
|
|
94
|
+
return biome ? `${pm === "bun" ? "bunx" : "npx --no-install"} biome check . --error-on-warnings` : null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function hasTestCommand(cwd, pm) {
|
|
98
|
+
if (pm === "bun") return true;
|
|
99
|
+
let directory = cwd;
|
|
100
|
+
while (true) {
|
|
101
|
+
const packagePath = path.join(directory, "package.json");
|
|
102
|
+
if (fs.existsSync(packagePath)) {
|
|
103
|
+
const pkg = JSON.parse(fs.readFileSync(packagePath, "utf-8"));
|
|
104
|
+
return typeof pkg.scripts?.test === "string" && pkg.scripts.test.trim().length > 0;
|
|
105
|
+
}
|
|
106
|
+
const parent = path.dirname(directory);
|
|
107
|
+
if (parent === directory) return false;
|
|
108
|
+
directory = parent;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function commandFailureReason(error) {
|
|
113
|
+
if (error.code === "ETIMEDOUT") return "timed out";
|
|
114
|
+
if (error.signal) return `signal ${error.signal}`;
|
|
115
|
+
if (typeof error.status === "number") return `exit ${error.status}`;
|
|
116
|
+
return error.code || error.message || "unknown process error";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function commandFailureOutput(error) {
|
|
120
|
+
return [error.stdout, error.stderr].filter(Boolean).join("\n").trim();
|
|
121
|
+
}
|
|
122
|
+
|
|
65
123
|
// ── Main ──────────────────────────────────────────────────────────────────────
|
|
66
124
|
const cwd = process.cwd();
|
|
125
|
+
const projectChecks = runChecks({ cwd, force: process.argv.includes("--force") });
|
|
126
|
+
if (projectChecks.configured || projectChecks.status === "failed") {
|
|
127
|
+
console.log(projectChecks.summary);
|
|
128
|
+
for (const check of projectChecks.checks) if (check.output) console.log(`${check.name}: ${check.output}`);
|
|
129
|
+
}
|
|
67
130
|
const toolchain = detectToolchain(cwd);
|
|
68
131
|
const hookConfig = readHookConfig(cwd);
|
|
69
132
|
const strict = process.argv.includes("--strict") || hookConfig.qualityGateStrict;
|
|
70
|
-
const
|
|
133
|
+
const skipTests = process.argv.includes("--no-tests");
|
|
134
|
+
const checksOnly = process.argv.includes("--checks-only");
|
|
135
|
+
const issues = projectChecks.status === "failed" ? [{ severity: "error", message: projectChecks.summary }] : [];
|
|
71
136
|
|
|
137
|
+
if (!projectChecks.configured) {
|
|
72
138
|
// 1. TypeScript check
|
|
139
|
+
if (hasTypeScriptConfig(cwd)) {
|
|
140
|
+
try {
|
|
141
|
+
const tsCmd = toolchain.pm === "bun" ? "bun run tsc --noEmit 2>&1" : "npx tsc --noEmit 2>&1";
|
|
142
|
+
execSync(tsCmd, { timeout: 60000, encoding: "utf-8", cwd });
|
|
143
|
+
} catch (error) {
|
|
144
|
+
const output = commandFailureOutput(error);
|
|
145
|
+
const errorLines = output.split("\n").filter((line) => /error TS/.test(line));
|
|
146
|
+
issues.push({
|
|
147
|
+
severity: strict ? "error" : "warning",
|
|
148
|
+
message: errorLines.length > 0
|
|
149
|
+
? `${errorLines.length} TypeScript error(s)`
|
|
150
|
+
: `TypeScript command failed (${commandFailureReason(error)})`,
|
|
151
|
+
details: (errorLines.length > 0 ? errorLines.join("\n") : output).slice(0, 500),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
} else {
|
|
155
|
+
console.log("TypeScript check skipped: no tsconfig.json");
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// 2. Respect the package's lint command; use Biome directly only when configured.
|
|
73
159
|
try {
|
|
74
|
-
const
|
|
75
|
-
execSync(
|
|
160
|
+
const lint = lintCommand(cwd, toolchain.pm);
|
|
161
|
+
if (lint) execSync(`${lint} 2>&1`, { timeout: 30000, encoding: "utf-8", cwd });
|
|
162
|
+
else console.log("Lint check skipped: no applicable lint script or Biome configuration");
|
|
76
163
|
} catch (error) {
|
|
77
|
-
const output = error
|
|
78
|
-
|
|
79
|
-
if (errorLines.length > 0) {
|
|
80
|
-
issues.push({ severity: strict ? "error" : "warning", message: `${errorLines.length} TypeScript error(s)`, details: errorLines.join("\n").slice(0, 500) });
|
|
81
|
-
}
|
|
164
|
+
const output = commandFailureOutput(error);
|
|
165
|
+
issues.push({ severity: strict ? "error" : "warning", message: "Lint issues", details: output.slice(0, 500) });
|
|
82
166
|
}
|
|
83
167
|
|
|
84
|
-
//
|
|
85
|
-
if (
|
|
168
|
+
// 3. Run tests. Nonzero exits always fail; reporter text adds detail.
|
|
169
|
+
if (!skipTests) {
|
|
86
170
|
try {
|
|
87
|
-
|
|
171
|
+
if (hasTestCommand(cwd, toolchain.pm)) {
|
|
172
|
+
const testOutput = execSync(`${toolchain.testCmd} 2>&1`, { timeout: 120000, encoding: "utf-8", cwd });
|
|
173
|
+
const failMatch = testOutput.match(/(\d+) fail/);
|
|
174
|
+
if (failMatch && parseInt(failMatch[1], 10) > 0) {
|
|
175
|
+
issues.push({ severity: strict ? "error" : "warning", message: `${failMatch[1]} test(s) failing` });
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
console.log("Tests skipped: no package test script");
|
|
179
|
+
}
|
|
88
180
|
} catch (error) {
|
|
89
|
-
const output = error
|
|
90
|
-
|
|
181
|
+
const output = commandFailureOutput(error);
|
|
182
|
+
const failMatch = output.match(/(\d+) fail/);
|
|
183
|
+
issues.push({
|
|
184
|
+
severity: strict ? "error" : "warning",
|
|
185
|
+
message: failMatch && parseInt(failMatch[1], 10) > 0
|
|
186
|
+
? `${failMatch[1]} test(s) failing`
|
|
187
|
+
: `Test command failed (${commandFailureReason(error)})`,
|
|
188
|
+
details: output.slice(0, 500),
|
|
189
|
+
});
|
|
91
190
|
}
|
|
92
191
|
}
|
|
93
192
|
|
|
94
|
-
// 3. Run tests
|
|
95
|
-
try {
|
|
96
|
-
const testOutput = execSync(`${toolchain.testCmd} 2>&1`, { timeout: 120000, encoding: "utf-8", cwd });
|
|
97
|
-
const failMatch = testOutput.match(/(\d+) fail/);
|
|
98
|
-
if (failMatch && parseInt(failMatch[1], 10) > 0) {
|
|
99
|
-
issues.push({ severity: strict ? "error" : "warning", message: `${failMatch[1]} test(s) failing` });
|
|
100
|
-
}
|
|
101
|
-
} catch (error) {
|
|
102
|
-
const output = error.stdout || error.stderr || "";
|
|
103
|
-
const failMatch = output.match(/(\d+) fail/);
|
|
104
|
-
if (failMatch && parseInt(failMatch[1], 10) > 0) {
|
|
105
|
-
issues.push({ severity: strict ? "error" : "warning", message: `${failMatch[1]} test(s) failing` });
|
|
106
|
-
}
|
|
107
193
|
}
|
|
108
194
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
195
|
+
if (!checksOnly) {
|
|
196
|
+
// 4. Check for console.log in source files (not tests)
|
|
197
|
+
try {
|
|
198
|
+
const result = execSync(
|
|
199
|
+
"grep -rn 'console\\.log' src/ --include='*.ts' --include='*.tsx' 2>/dev/null | grep -v '// debug' | head -5",
|
|
200
|
+
{ encoding: "utf-8", cwd }
|
|
201
|
+
).trim();
|
|
202
|
+
if (result) {
|
|
203
|
+
issues.push({ severity: "warning", message: "console.log found in source", details: result });
|
|
204
|
+
}
|
|
205
|
+
} catch { /* grep returns 1 when no match — that's fine */ }
|
|
206
|
+
|
|
207
|
+
// 5. Domain glossary compliance (checks DOMAIN-MODEL.md, falls back to DOMAIN.md)
|
|
208
|
+
const domainContent = loadDomainContent(cwd);
|
|
209
|
+
if (domainContent) {
|
|
210
|
+
try {
|
|
211
|
+
const glossaryTerms = extractGlossaryTerms(domainContent);
|
|
212
|
+
const changedFiles = execSync(
|
|
213
|
+
"git diff --cached --name-only 2>/dev/null || git diff --name-only HEAD~1",
|
|
214
|
+
{ encoding: "utf-8", cwd }
|
|
215
|
+
).trim().split("\n").filter((f) => f.endsWith(".ts") || f.endsWith(".tsx"));
|
|
216
|
+
|
|
217
|
+
const unknownTerms = [];
|
|
218
|
+
for (const file of changedFiles) {
|
|
219
|
+
if (!fs.existsSync(path.join(cwd, file))) continue;
|
|
220
|
+
const src = fs.readFileSync(path.join(cwd, file), "utf-8");
|
|
221
|
+
const declarations = [...src.matchAll(/(?:class|interface|type|enum)\s+([A-Z][a-zA-Z0-9]+)/g)].map((m) => m[1]);
|
|
222
|
+
for (const term of declarations) {
|
|
223
|
+
if (!glossaryTerms.has(term)) unknownTerms.push(`${file}: ${term}`);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
if (unknownTerms.length > 0) {
|
|
227
|
+
issues.push({
|
|
228
|
+
severity: hookConfig.tddMode === "strict" ? "error" : "warning",
|
|
229
|
+
message: `${unknownTerms.length} PascalCase type(s) not in domain glossary (DOMAIN-MODEL.md)`,
|
|
230
|
+
details: unknownTerms.slice(0, 5).join(", "),
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
} catch { /* ignore */ }
|
|
117
234
|
}
|
|
118
|
-
} catch { /* grep returns 1 when no match — that's fine */ }
|
|
119
235
|
|
|
120
|
-
//
|
|
121
|
-
const domainContent = loadDomainContent(cwd);
|
|
122
|
-
if (domainContent) {
|
|
236
|
+
// 6. Bounded context boundary check — flag suspicious cross-directory imports
|
|
123
237
|
try {
|
|
124
|
-
const
|
|
125
|
-
const changedFiles = execSync(
|
|
238
|
+
const changedSrcFiles = execSync(
|
|
126
239
|
"git diff --cached --name-only 2>/dev/null || git diff --name-only HEAD~1",
|
|
127
240
|
{ encoding: "utf-8", cwd }
|
|
128
|
-
).trim().split("\n").filter((f) => f.endsWith(".ts") || f.endsWith(".tsx"));
|
|
241
|
+
).trim().split("\n").filter((f) => /^src\/[^/]+\//.test(f) && (f.endsWith(".ts") || f.endsWith(".tsx")));
|
|
129
242
|
|
|
130
|
-
const
|
|
131
|
-
for (const file of
|
|
243
|
+
const crossContextImports = [];
|
|
244
|
+
for (const file of changedSrcFiles) {
|
|
132
245
|
if (!fs.existsSync(path.join(cwd, file))) continue;
|
|
246
|
+
const ownContext = file.split("/")[1];
|
|
133
247
|
const src = fs.readFileSync(path.join(cwd, file), "utf-8");
|
|
134
|
-
const
|
|
135
|
-
for (const
|
|
136
|
-
|
|
248
|
+
const imports = [...src.matchAll(/from\s+['"](\.\.\/.+?)['"]/g)].map((m) => m[1]);
|
|
249
|
+
for (const imp of imports) {
|
|
250
|
+
const resolved = path.normalize(path.join(path.dirname(file), imp));
|
|
251
|
+
const parts = resolved.split(path.sep);
|
|
252
|
+
const srcIdx = parts.indexOf("src");
|
|
253
|
+
if (srcIdx !== -1 && parts[srcIdx + 1] && parts[srcIdx + 1] !== ownContext) {
|
|
254
|
+
crossContextImports.push(`${file} → ${parts.slice(srcIdx).join("/")}`);
|
|
255
|
+
}
|
|
137
256
|
}
|
|
138
257
|
}
|
|
139
|
-
if (
|
|
258
|
+
if (crossContextImports.length > 0) {
|
|
140
259
|
issues.push({
|
|
141
|
-
severity:
|
|
142
|
-
message: `${
|
|
143
|
-
details:
|
|
260
|
+
severity: "warning",
|
|
261
|
+
message: `${crossContextImports.length} suspicious cross-context import(s) detected`,
|
|
262
|
+
details: crossContextImports.slice(0, 3).join("; "),
|
|
144
263
|
});
|
|
145
264
|
}
|
|
146
265
|
} catch { /* ignore */ }
|
|
147
|
-
}
|
|
148
266
|
|
|
149
|
-
//
|
|
150
|
-
try {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
267
|
+
// 7. TDD health — check test-to-source file ratio
|
|
268
|
+
try {
|
|
269
|
+
const allSrc = execSync(
|
|
270
|
+
"find src -name '*.ts' -not -name '*.test.ts' -not -name '*.spec.ts' 2>/dev/null | wc -l",
|
|
271
|
+
{ encoding: "utf-8", cwd }
|
|
272
|
+
).trim();
|
|
273
|
+
const allTests = execSync(
|
|
274
|
+
"find src -name '*.test.ts' -o -name '*.spec.ts' 2>/dev/null | wc -l",
|
|
275
|
+
{ encoding: "utf-8", cwd }
|
|
276
|
+
).trim();
|
|
277
|
+
const srcCount = parseInt(allSrc, 10) || 0;
|
|
278
|
+
const testCount = parseInt(allTests, 10) || 0;
|
|
279
|
+
if (srcCount > 0) {
|
|
280
|
+
const ratio = testCount / srcCount;
|
|
281
|
+
if (ratio < 0.3) {
|
|
282
|
+
issues.push({
|
|
283
|
+
severity: "warning",
|
|
284
|
+
message: `TDD health: test-to-source ratio is ${(ratio * 100).toFixed(0)}% (${testCount} tests / ${srcCount} sources) — target ≥ 30%`,
|
|
285
|
+
});
|
|
168
286
|
}
|
|
169
287
|
}
|
|
170
|
-
}
|
|
171
|
-
if (crossContextImports.length > 0) {
|
|
172
|
-
issues.push({
|
|
173
|
-
severity: "warning",
|
|
174
|
-
message: `${crossContextImports.length} suspicious cross-context import(s) detected`,
|
|
175
|
-
details: crossContextImports.slice(0, 3).join("; "),
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
} catch { /* ignore */ }
|
|
179
|
-
|
|
180
|
-
// 7. TDD health — check test-to-source file ratio
|
|
181
|
-
try {
|
|
182
|
-
const allSrc = execSync(
|
|
183
|
-
"find src -name '*.ts' -not -name '*.test.ts' -not -name '*.spec.ts' 2>/dev/null | wc -l",
|
|
184
|
-
{ encoding: "utf-8", cwd }
|
|
185
|
-
).trim();
|
|
186
|
-
const allTests = execSync(
|
|
187
|
-
"find src -name '*.test.ts' -o -name '*.spec.ts' 2>/dev/null | wc -l",
|
|
188
|
-
{ encoding: "utf-8", cwd }
|
|
189
|
-
).trim();
|
|
190
|
-
const srcCount = parseInt(allSrc, 10) || 0;
|
|
191
|
-
const testCount = parseInt(allTests, 10) || 0;
|
|
192
|
-
if (srcCount > 0) {
|
|
193
|
-
const ratio = testCount / srcCount;
|
|
194
|
-
if (ratio < 0.3) {
|
|
195
|
-
issues.push({
|
|
196
|
-
severity: "warning",
|
|
197
|
-
message: `TDD health: test-to-source ratio is ${(ratio * 100).toFixed(0)}% (${testCount} tests / ${srcCount} sources) — target ≥ 30%`,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
} catch { /* ignore — src/ may not exist */ }
|
|
288
|
+
} catch { /* ignore — src/ may not exist */ }
|
|
202
289
|
|
|
203
|
-
// 8. Check for TODO/FIXME/HACK comments in changed files
|
|
204
|
-
try {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
290
|
+
// 8. Check for TODO/FIXME/HACK comments in changed files
|
|
291
|
+
try {
|
|
292
|
+
const diff = execSync(
|
|
293
|
+
"git diff --cached --name-only 2>/dev/null || git diff --name-only HEAD~1",
|
|
294
|
+
{ encoding: "utf-8", cwd }
|
|
295
|
+
).trim();
|
|
296
|
+
if (diff) {
|
|
297
|
+
const files = diff.split("\n").filter((f) => f.endsWith(".ts") || f.endsWith(".tsx"));
|
|
298
|
+
for (const file of files) {
|
|
299
|
+
try {
|
|
300
|
+
const content = fs.readFileSync(path.join(cwd, file), "utf-8");
|
|
301
|
+
const todos = content.match(/\/\/\s*(TODO|FIXME|HACK|XXX):/gi) || [];
|
|
302
|
+
if (todos.length > 0) {
|
|
303
|
+
issues.push({ severity: "info", message: `${file}: ${todos.length} TODO/FIXME comment(s)` });
|
|
304
|
+
}
|
|
305
|
+
} catch { /* file may not exist */ }
|
|
306
|
+
}
|
|
219
307
|
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
308
|
+
} catch { /* ignore */ }
|
|
309
|
+
}
|
|
222
310
|
|
|
223
311
|
// Output
|
|
224
312
|
const errors = issues.filter((i) => i.severity === "error");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draht/coding-agent",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.23-1",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"drahtConfig": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"bin": {
|
|
11
11
|
"coding-agent": "dist/bundle/cli.js",
|
|
12
12
|
"draht": "dist/bundle/cli.js",
|
|
13
|
-
"draht-tools": "bin/draht-tools.cjs"
|
|
13
|
+
"draht-tools": "bin/draht-tools.cjs",
|
|
14
|
+
"drahtbank": "bin/drahtbank.mjs"
|
|
14
15
|
},
|
|
15
16
|
"main": "./dist/index.js",
|
|
16
17
|
"types": "./dist/index.d.ts",
|
|
@@ -26,12 +27,14 @@
|
|
|
26
27
|
"files": [
|
|
27
28
|
"dist",
|
|
28
29
|
"docs",
|
|
30
|
+
"schemas",
|
|
29
31
|
"examples",
|
|
30
32
|
"prompts",
|
|
31
33
|
"skills",
|
|
32
34
|
"hooks",
|
|
33
35
|
"agents",
|
|
34
36
|
"bin",
|
|
37
|
+
"eval/drahtbank",
|
|
35
38
|
"CHANGELOG.md"
|
|
36
39
|
],
|
|
37
40
|
"scripts": {
|
|
@@ -39,26 +42,28 @@
|
|
|
39
42
|
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput",
|
|
40
43
|
"build": "bun run build:unbundled && node ../../scripts/build-coding-agent-bundle.mjs",
|
|
41
44
|
"build:unbundled": "tsc -p tsconfig.build.json && shx chmod +x dist/cli.js dist/rpc-entry.js && bun run copy-assets",
|
|
42
|
-
"build:binary": "npm --prefix ../telemetry run build && bun run build && bun build --compile --no-compile-autoload-bunfig ./dist/bun/cli.js ./src/utils/image-resize-worker.ts ./src/extensions/codemode/worker.ts --outfile dist/draht && bun run copy-binary-assets",
|
|
45
|
+
"build:binary": "npm --prefix ../telemetry run build && bun run build && bun build --compile --no-compile-autoload-bunfig --no-compile-autoload-dotenv ./dist/bun/cli.js ./src/utils/image-resize-worker.ts ./src/extensions/codemode/worker.ts --outfile dist/draht && bun run copy-binary-assets",
|
|
43
46
|
"copy-assets": "shx mkdir -p dist/modes/interactive/theme && shx cp src/modes/interactive/theme/*.json dist/modes/interactive/theme/ && shx mkdir -p dist/modes/interactive/assets && shx cp src/modes/interactive/assets/*.png dist/modes/interactive/assets/ && shx mkdir -p dist/core/export-html/vendor && shx cp src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html/ && shx cp src/core/export-html/vendor/*.js dist/core/export-html/vendor/ && shx rm -rf dist/prompts dist/skills dist/hooks dist/agents && shx cp -r prompts dist/prompts && shx cp -r skills dist/skills && shx cp -r hooks dist/hooks && shx cp -r agents dist/agents",
|
|
44
47
|
"copy-binary-assets": "shx cp package.json dist/ && shx cp README.md dist/ && shx cp CHANGELOG.md dist/ && shx mkdir -p dist/theme && shx cp src/modes/interactive/theme/*.json dist/theme/ && shx mkdir -p dist/assets && shx cp src/modes/interactive/assets/*.png dist/assets/ && shx mkdir -p dist/export-html/vendor && shx cp src/core/export-html/template.html dist/export-html/ && shx cp src/core/export-html/vendor/*.js dist/export-html/vendor/ && shx cp -r docs dist/ && shx cp -r examples dist/ && shx cp -r prompts dist/ && shx cp -r skills dist/ && shx cp -r hooks dist/ && shx cp -r agents dist/ && node -e \"require('fs').copyFileSync(require.resolve('@silvia-odwyer/photon-node/photon_rs_bg.wasm'), 'dist/photon_rs_bg.wasm')\"",
|
|
48
|
+
"generate:schemas": "tsx scripts/generate-schemas.ts",
|
|
49
|
+
"generate:references": "tsx scripts/generate-references.ts",
|
|
45
50
|
"sync-tools": "node ../../scripts/sync-draht-tools.mjs",
|
|
46
51
|
"test": "vitest --run",
|
|
47
|
-
"prepublishOnly": "node ../../scripts/sync-draht-tools.mjs && bun run clean && bun run build"
|
|
52
|
+
"prepublishOnly": "node ../../scripts/sync-draht-tools.mjs && node ../../scripts/sync-checks-runtime.mjs --check && bun run clean && bun run build"
|
|
48
53
|
},
|
|
49
54
|
"dependencies": {
|
|
50
|
-
"@draht/chord": "2026.10.20",
|
|
51
55
|
"@mariozechner/jiti": "^2.6.2",
|
|
52
|
-
"@draht/agent-core": "2026.10.
|
|
53
|
-
"@draht/ai": "2026.10.
|
|
54
|
-
"@draht/codemode": "2026.10.
|
|
55
|
-
"@draht/mcp": "2026.10.
|
|
56
|
-
"@draht/rlm": "2026.10.
|
|
57
|
-
"@draht/router": "2026.10.
|
|
58
|
-
"@draht/tools": "2026.10.
|
|
59
|
-
"@draht/tui": "2026.10.
|
|
56
|
+
"@draht/agent-core": "2026.10.23-1",
|
|
57
|
+
"@draht/ai": "2026.10.23-1",
|
|
58
|
+
"@draht/codemode": "2026.10.23-1",
|
|
59
|
+
"@draht/mcp": "2026.10.23-1",
|
|
60
|
+
"@draht/rlm": "2026.10.23-1",
|
|
61
|
+
"@draht/router": "2026.10.23-1",
|
|
62
|
+
"@draht/tools": "2026.10.23-1",
|
|
63
|
+
"@draht/tui": "2026.10.23-1",
|
|
60
64
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
61
65
|
"@sinclair/typebox": "^0.34.41",
|
|
66
|
+
"brace-expansion": "5.0.12",
|
|
62
67
|
"chalk": "^5.6.2",
|
|
63
68
|
"cross-spawn": "7.0.6",
|
|
64
69
|
"diff": "^8.0.2",
|
|
@@ -75,7 +80,7 @@
|
|
|
75
80
|
"semver": "^7.8.5",
|
|
76
81
|
"strip-ansi": "^7.1.0",
|
|
77
82
|
"typebox": "^1.3.27",
|
|
78
|
-
"undici": "^7.
|
|
83
|
+
"undici": "^7.30.1",
|
|
79
84
|
"yaml": "^2.8.2",
|
|
80
85
|
"uuid": "^14.0.0"
|
|
81
86
|
},
|
|
@@ -88,7 +93,7 @@
|
|
|
88
93
|
"@types/node": "^24.3.0",
|
|
89
94
|
"@types/proper-lockfile": "^4.1.4",
|
|
90
95
|
"@types/semver": "^7.7.1",
|
|
91
|
-
"shx": "
|
|
96
|
+
"shx": "0.3.4",
|
|
92
97
|
"typescript": "7.0.2",
|
|
93
98
|
"vitest": "^3.2.4"
|
|
94
99
|
},
|
|
@@ -111,6 +116,6 @@
|
|
|
111
116
|
"directory": "packages/coding-agent"
|
|
112
117
|
},
|
|
113
118
|
"engines": {
|
|
114
|
-
"node": "
|
|
119
|
+
"node": "^22.23.4 || ^24.22.1 || ^26.12.1"
|
|
115
120
|
}
|
|
116
121
|
}
|
|
@@ -4,9 +4,9 @@ description: "Analyze changes and create atomic commits"
|
|
|
4
4
|
|
|
5
5
|
# Git Atomic Commit Analysis
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Commit prerequisites
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Resolve these conditions before committing:
|
|
10
10
|
|
|
11
11
|
- A single proposed commit mixes unrelated concerns (feature + unrelated refactor + config tweak)
|
|
12
12
|
- The change set contains potential secrets (`.env`, credentials, API keys in source)
|
|
@@ -14,7 +14,7 @@ Do NOT proceed with a commit if **any** of these is true:
|
|
|
14
14
|
- Pre-commit hooks fail — fix the cause, never use `--no-verify`
|
|
15
15
|
- You cannot articulate the "why" of a commit in one sentence — split it
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Split unrelated changes and resolve check failures within scope. Report secrets or ownership questions that cannot be safely resolved.
|
|
18
18
|
|
|
19
19
|
## Atomic Reasoning
|
|
20
20
|
|
|
@@ -28,16 +28,16 @@ First, gather the current state:
|
|
|
28
28
|
2. Run `git diff` to see unstaged changes
|
|
29
29
|
3. Run `git diff --cached` to see staged changes
|
|
30
30
|
|
|
31
|
-
Based on the changes, analyze and group them into logical,
|
|
31
|
+
Based on the changes, analyze and group them into logical, atomic commits. Each commit should:
|
|
32
32
|
|
|
33
|
-
1. Contain
|
|
33
|
+
1. Contain one logical change only
|
|
34
34
|
2. Be self-contained and complete
|
|
35
35
|
3. Not break the build if applied independently
|
|
36
36
|
|
|
37
37
|
For each group of changes you identify:
|
|
38
38
|
- List the specific files that belong together
|
|
39
39
|
- Generate a clear, descriptive commit message following conventional commits format
|
|
40
|
-
- Explain
|
|
40
|
+
- Explain why these changes belong in one commit
|
|
41
41
|
|
|
42
42
|
Then execute the `git add` and `git commit` commands for each atomic commit in the order they should be applied.
|
|
43
43
|
|
|
@@ -47,3 +47,5 @@ type(scope): brief description
|
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Common types: feat, fix, refactor, docs, test, chore, style, perf
|
|
50
|
+
|
|
51
|
+
Stage only explicit task files; never use `git add -A` or `git add .`. Never bypass hooks with `--no-verify`. Never force push.
|