@aibyzero/byz 0.0.0 → 0.1.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 +15 -0
- package/LICENSE +21 -0
- package/README.md +148 -5
- package/dist/cli.js +55 -0
- package/dist/runtime/bun/cli.d.ts +3 -0
- package/dist/runtime/bun/cli.d.ts.map +1 -0
- package/dist/runtime/bun/cli.js +11 -0
- package/dist/runtime/bun/cli.js.map +1 -0
- package/dist/runtime/bun/register-bedrock.d.ts +2 -0
- package/dist/runtime/bun/register-bedrock.d.ts.map +1 -0
- package/dist/runtime/bun/register-bedrock.js +4 -0
- package/dist/runtime/bun/register-bedrock.js.map +1 -0
- package/dist/runtime/bun/restore-sandbox-env.d.ts +17 -0
- package/dist/runtime/bun/restore-sandbox-env.d.ts.map +1 -0
- package/dist/runtime/bun/restore-sandbox-env.js +36 -0
- package/dist/runtime/bun/restore-sandbox-env.js.map +1 -0
- package/dist/runtime/bundle/chunks/anthropic-messages-JWX2WP65.js +45 -0
- package/dist/runtime/bundle/chunks/anthropic.js +75 -0
- package/dist/runtime/bundle/chunks/azure-openai-responses-5ENVCQ7U.js +2 -0
- package/dist/runtime/bundle/chunks/bedrock-converse-stream.js +74 -0
- package/dist/runtime/bundle/chunks/chunk-4L3WN2XY.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-6CYCI3EJ.js +12 -0
- package/dist/runtime/bundle/chunks/chunk-6R7UI4IY.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-AXIIZGTV.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-CCRJHU72.js +1547 -0
- package/dist/runtime/bundle/chunks/chunk-DRQDKNXA.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-GMWCTUPB.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-GPPBJGBU.js +50 -0
- package/dist/runtime/bundle/chunks/chunk-JUUC5AZY.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-MNAIPA3J.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-NBBFIJUL.js +11 -0
- package/dist/runtime/bundle/chunks/chunk-NUHFSC37.js +25 -0
- package/dist/runtime/bundle/chunks/chunk-PGXDEOVV.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-PJACZCIR.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-PRRNXB7S.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-TEPMHNKQ.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-TRDNDS6A.js +4 -0
- package/dist/runtime/bundle/chunks/chunk-UAQELI3K.js +2 -0
- package/dist/runtime/bundle/chunks/chunk-XDUWOHPL.js +6 -0
- package/dist/runtime/bundle/chunks/chunk-XNGRGP62.js +2 -0
- package/dist/runtime/bundle/chunks/dist-RDWOYWHR.js +13 -0
- package/dist/runtime/bundle/chunks/github-copilot.js +2 -0
- package/dist/runtime/bundle/chunks/google-generative-ai-XDKMGBCJ.js +2 -0
- package/dist/runtime/bundle/chunks/google-vertex-D5FGEO3Y.js +2 -0
- package/dist/runtime/bundle/chunks/image-resize-worker.js +2 -0
- package/dist/runtime/bundle/chunks/kimi-coding.js +2 -0
- package/dist/runtime/bundle/chunks/lib-HGQMNYVT.js +9 -0
- package/dist/runtime/bundle/chunks/mistral-conversations-YK73UAOZ.js +5 -0
- package/dist/runtime/bundle/chunks/multipart-parser-SQ6GDJL7.js +3 -0
- package/dist/runtime/bundle/chunks/openai-codex-responses-GJVBJXLB.js +8 -0
- package/dist/runtime/bundle/chunks/openai-codex.js +75 -0
- package/dist/runtime/bundle/chunks/openai-completions-XGHMB3UO.js +7 -0
- package/dist/runtime/bundle/chunks/openai-responses-BSOJMSEV.js +2 -0
- package/dist/runtime/bundle/chunks/openrouter-images-N4XVVFSD.js +2 -0
- package/dist/runtime/bundle/chunks/openrouter.js +75 -0
- package/dist/runtime/bundle/chunks/pi-messages-TPFH44NP.js +8 -0
- package/dist/runtime/bundle/chunks/radius.js +75 -0
- package/dist/runtime/bundle/chunks/src-UK77SYZE.js +4 -0
- package/dist/runtime/bundle/chunks/xai.js +2 -0
- package/dist/runtime/bundle/cli.js +3 -0
- package/dist/runtime/bundle/client.js +2 -0
- package/dist/runtime/bundle/index.js +2 -0
- package/dist/runtime/bundle/rpc-entry.js +3 -0
- package/dist/runtime/cli/args.d.ts +61 -0
- package/dist/runtime/cli/args.d.ts.map +1 -0
- package/dist/runtime/cli/args.js +439 -0
- package/dist/runtime/cli/args.js.map +1 -0
- package/dist/runtime/cli/auth-check.d.ts +19 -0
- package/dist/runtime/cli/auth-check.d.ts.map +1 -0
- package/dist/runtime/cli/auth-check.js +50 -0
- package/dist/runtime/cli/auth-check.js.map +1 -0
- package/dist/runtime/cli/auth-command.d.ts +24 -0
- package/dist/runtime/cli/auth-command.d.ts.map +1 -0
- package/dist/runtime/cli/auth-command.js +103 -0
- package/dist/runtime/cli/auth-command.js.map +1 -0
- package/dist/runtime/cli/config-selector.d.ts +16 -0
- package/dist/runtime/cli/config-selector.d.ts.map +1 -0
- package/dist/runtime/cli/config-selector.js +31 -0
- package/dist/runtime/cli/config-selector.js.map +1 -0
- package/dist/runtime/cli/credential-print.d.ts +13 -0
- package/dist/runtime/cli/credential-print.d.ts.map +1 -0
- package/dist/runtime/cli/credential-print.js +76 -0
- package/dist/runtime/cli/credential-print.js.map +1 -0
- package/dist/runtime/cli/experimental/auth.d.ts +16 -0
- package/dist/runtime/cli/experimental/auth.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/auth.js +13 -0
- package/dist/runtime/cli/experimental/auth.js.map +1 -0
- package/dist/runtime/cli/experimental/cli.d.ts +6 -0
- package/dist/runtime/cli/experimental/cli.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/cli.js +5 -0
- package/dist/runtime/cli/experimental/cli.js.map +1 -0
- package/dist/runtime/cli/experimental/command-options.d.ts +17 -0
- package/dist/runtime/cli/experimental/command-options.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/command-options.js +35 -0
- package/dist/runtime/cli/experimental/command-options.js.map +1 -0
- package/dist/runtime/cli/experimental/command.d.ts +63 -0
- package/dist/runtime/cli/experimental/command.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/command.js +130 -0
- package/dist/runtime/cli/experimental/command.js.map +1 -0
- package/dist/runtime/cli/experimental/commands/client.d.ts +13 -0
- package/dist/runtime/cli/experimental/commands/client.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/commands/client.js +25 -0
- package/dist/runtime/cli/experimental/commands/client.js.map +1 -0
- package/dist/runtime/cli/experimental/commands/pi.d.ts +15 -0
- package/dist/runtime/cli/experimental/commands/pi.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/commands/pi.js +28 -0
- package/dist/runtime/cli/experimental/commands/pi.js.map +1 -0
- package/dist/runtime/cli/experimental/commands/server.d.ts +13 -0
- package/dist/runtime/cli/experimental/commands/server.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/commands/server.js +25 -0
- package/dist/runtime/cli/experimental/commands/server.js.map +1 -0
- package/dist/runtime/cli/experimental/transport-address.d.ts +10 -0
- package/dist/runtime/cli/experimental/transport-address.d.ts.map +1 -0
- package/dist/runtime/cli/experimental/transport-address.js +38 -0
- package/dist/runtime/cli/experimental/transport-address.js.map +1 -0
- package/dist/runtime/cli/file-processor.d.ts +15 -0
- package/dist/runtime/cli/file-processor.d.ts.map +1 -0
- package/dist/runtime/cli/file-processor.js +71 -0
- package/dist/runtime/cli/file-processor.js.map +1 -0
- package/dist/runtime/cli/initial-message.d.ts +18 -0
- package/dist/runtime/cli/initial-message.d.ts.map +1 -0
- package/dist/runtime/cli/initial-message.js +22 -0
- package/dist/runtime/cli/initial-message.js.map +1 -0
- package/dist/runtime/cli/list-models.d.ts +9 -0
- package/dist/runtime/cli/list-models.d.ts.map +1 -0
- package/dist/runtime/cli/list-models.js +98 -0
- package/dist/runtime/cli/list-models.js.map +1 -0
- package/dist/runtime/cli/project-trust.d.ts +10 -0
- package/dist/runtime/cli/project-trust.d.ts.map +1 -0
- package/dist/runtime/cli/project-trust.js +48 -0
- package/dist/runtime/cli/project-trust.js.map +1 -0
- package/dist/runtime/cli/session-picker.d.ts +10 -0
- package/dist/runtime/cli/session-picker.d.ts.map +1 -0
- package/dist/runtime/cli/session-picker.js +36 -0
- package/dist/runtime/cli/session-picker.js.map +1 -0
- package/dist/runtime/cli/startup-ui.d.ts +20 -0
- package/dist/runtime/cli/startup-ui.d.ts.map +1 -0
- package/dist/runtime/cli/startup-ui.js +184 -0
- package/dist/runtime/cli/startup-ui.js.map +1 -0
- package/dist/runtime/cli.d.ts +3 -0
- package/dist/runtime/cli.d.ts.map +1 -0
- package/dist/runtime/cli.js +19 -0
- package/dist/runtime/cli.js.map +1 -0
- package/dist/runtime/client/index.d.ts +3 -0
- package/dist/runtime/client/index.d.ts.map +1 -0
- package/dist/runtime/client/index.js +3 -0
- package/dist/runtime/client/index.js.map +1 -0
- package/dist/runtime/client/remote-session.d.ts +53 -0
- package/dist/runtime/client/remote-session.d.ts.map +1 -0
- package/dist/runtime/client/remote-session.js +340 -0
- package/dist/runtime/client/remote-session.js.map +1 -0
- package/dist/runtime/client/transcript.d.ts +12 -0
- package/dist/runtime/client/transcript.d.ts.map +1 -0
- package/dist/runtime/client/transcript.js +98 -0
- package/dist/runtime/client/transcript.js.map +1 -0
- package/dist/runtime/config.d.ts +98 -0
- package/dist/runtime/config.d.ts.map +1 -0
- package/dist/runtime/config.js +469 -0
- package/dist/runtime/config.js.map +1 -0
- package/dist/runtime/core/agent-session-runtime.d.ts +119 -0
- package/dist/runtime/core/agent-session-runtime.d.ts.map +1 -0
- package/dist/runtime/core/agent-session-runtime.js +309 -0
- package/dist/runtime/core/agent-session-runtime.js.map +1 -0
- package/dist/runtime/core/agent-session-services.d.ts +86 -0
- package/dist/runtime/core/agent-session-services.d.ts.map +1 -0
- package/dist/runtime/core/agent-session-services.js +134 -0
- package/dist/runtime/core/agent-session-services.js.map +1 -0
- package/dist/runtime/core/agent-session.d.ts +678 -0
- package/dist/runtime/core/agent-session.d.ts.map +1 -0
- package/dist/runtime/core/agent-session.js +2808 -0
- package/dist/runtime/core/agent-session.js.map +1 -0
- package/dist/runtime/core/auth-guidance.d.ts +5 -0
- package/dist/runtime/core/auth-guidance.d.ts.map +1 -0
- package/dist/runtime/core/auth-guidance.js +21 -0
- package/dist/runtime/core/auth-guidance.js.map +1 -0
- package/dist/runtime/core/auth-storage.d.ts +72 -0
- package/dist/runtime/core/auth-storage.d.ts.map +1 -0
- package/dist/runtime/core/auth-storage.js +426 -0
- package/dist/runtime/core/auth-storage.js.map +1 -0
- package/dist/runtime/core/bash-executor.d.ts +32 -0
- package/dist/runtime/core/bash-executor.d.ts.map +1 -0
- package/dist/runtime/core/bash-executor.js +111 -0
- package/dist/runtime/core/bash-executor.js.map +1 -0
- package/dist/runtime/core/cache-stats.d.ts +49 -0
- package/dist/runtime/core/cache-stats.d.ts.map +1 -0
- package/dist/runtime/core/cache-stats.js +101 -0
- package/dist/runtime/core/cache-stats.js.map +1 -0
- package/dist/runtime/core/compaction/branch-summarization.d.ts +98 -0
- package/dist/runtime/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/runtime/core/compaction/branch-summarization.js +250 -0
- package/dist/runtime/core/compaction/branch-summarization.js.map +1 -0
- package/dist/runtime/core/compaction/compaction.d.ts +143 -0
- package/dist/runtime/core/compaction/compaction.d.ts.map +1 -0
- package/dist/runtime/core/compaction/compaction.js +669 -0
- package/dist/runtime/core/compaction/compaction.js.map +1 -0
- package/dist/runtime/core/compaction/index.d.ts +7 -0
- package/dist/runtime/core/compaction/index.d.ts.map +1 -0
- package/dist/runtime/core/compaction/index.js +7 -0
- package/dist/runtime/core/compaction/index.js.map +1 -0
- package/dist/runtime/core/compaction/utils.d.ts +38 -0
- package/dist/runtime/core/compaction/utils.d.ts.map +1 -0
- package/dist/runtime/core/compaction/utils.js +142 -0
- package/dist/runtime/core/compaction/utils.js.map +1 -0
- package/dist/runtime/core/defaults.d.ts +4 -0
- package/dist/runtime/core/defaults.d.ts.map +1 -0
- package/dist/runtime/core/defaults.js +11 -0
- package/dist/runtime/core/defaults.js.map +1 -0
- package/dist/runtime/core/diagnostics.d.ts +15 -0
- package/dist/runtime/core/diagnostics.d.ts.map +1 -0
- package/dist/runtime/core/diagnostics.js +2 -0
- package/dist/runtime/core/diagnostics.js.map +1 -0
- package/dist/runtime/core/event-bus.d.ts +9 -0
- package/dist/runtime/core/event-bus.d.ts.map +1 -0
- package/dist/runtime/core/event-bus.js +25 -0
- package/dist/runtime/core/event-bus.js.map +1 -0
- package/dist/runtime/core/exec.d.ts +29 -0
- package/dist/runtime/core/exec.d.ts.map +1 -0
- package/dist/runtime/core/exec.js +75 -0
- package/dist/runtime/core/exec.js.map +1 -0
- package/dist/runtime/core/experimental.d.ts +6 -0
- package/dist/runtime/core/experimental.d.ts.map +1 -0
- package/dist/runtime/core/experimental.js +8 -0
- package/dist/runtime/core/experimental.js.map +1 -0
- package/dist/runtime/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/runtime/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/runtime/core/export-html/ansi-to-html.js +249 -0
- package/dist/runtime/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/runtime/core/export-html/index.d.ts +37 -0
- package/dist/runtime/core/export-html/index.d.ts.map +1 -0
- package/dist/runtime/core/export-html/index.js +226 -0
- package/dist/runtime/core/export-html/index.js.map +1 -0
- package/dist/runtime/core/export-html/template.css +1066 -0
- package/dist/runtime/core/export-html/template.html +55 -0
- package/dist/runtime/core/export-html/template.js +1864 -0
- package/dist/runtime/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/runtime/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/runtime/core/export-html/tool-renderer.js +108 -0
- package/dist/runtime/core/export-html/tool-renderer.js.map +1 -0
- package/dist/runtime/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/runtime/core/export-html/vendor/marked.min.js +78 -0
- package/dist/runtime/core/extensions/index.d.ts +12 -0
- package/dist/runtime/core/extensions/index.d.ts.map +1 -0
- package/dist/runtime/core/extensions/index.js +9 -0
- package/dist/runtime/core/extensions/index.js.map +1 -0
- package/dist/runtime/core/extensions/loader.d.ts +23 -0
- package/dist/runtime/core/extensions/loader.d.ts.map +1 -0
- package/dist/runtime/core/extensions/loader.js +648 -0
- package/dist/runtime/core/extensions/loader.js.map +1 -0
- package/dist/runtime/core/extensions/runner.d.ts +173 -0
- package/dist/runtime/core/extensions/runner.d.ts.map +1 -0
- package/dist/runtime/core/extensions/runner.js +967 -0
- package/dist/runtime/core/extensions/runner.js.map +1 -0
- package/dist/runtime/core/extensions/types.d.ts +1328 -0
- package/dist/runtime/core/extensions/types.d.ts.map +1 -0
- package/dist/runtime/core/extensions/types.js +48 -0
- package/dist/runtime/core/extensions/types.js.map +1 -0
- package/dist/runtime/core/extensions/wrapper.d.ts +20 -0
- package/dist/runtime/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/runtime/core/extensions/wrapper.js +41 -0
- package/dist/runtime/core/extensions/wrapper.js.map +1 -0
- package/dist/runtime/core/footer-data-provider.d.ts +64 -0
- package/dist/runtime/core/footer-data-provider.d.ts.map +1 -0
- package/dist/runtime/core/footer-data-provider.js +338 -0
- package/dist/runtime/core/footer-data-provider.js.map +1 -0
- package/dist/runtime/core/http-dispatcher.d.ts +22 -0
- package/dist/runtime/core/http-dispatcher.d.ts.map +1 -0
- package/dist/runtime/core/http-dispatcher.js +96 -0
- package/dist/runtime/core/http-dispatcher.js.map +1 -0
- package/dist/runtime/core/index.d.ts +13 -0
- package/dist/runtime/core/index.d.ts.map +1 -0
- package/dist/runtime/core/index.js +13 -0
- package/dist/runtime/core/index.js.map +1 -0
- package/dist/runtime/core/keybindings.d.ts +423 -0
- package/dist/runtime/core/keybindings.d.ts.map +1 -0
- package/dist/runtime/core/keybindings.js +317 -0
- package/dist/runtime/core/keybindings.js.map +1 -0
- package/dist/runtime/core/messages.d.ts +77 -0
- package/dist/runtime/core/messages.d.ts.map +1 -0
- package/dist/runtime/core/messages.js +123 -0
- package/dist/runtime/core/messages.js.map +1 -0
- package/dist/runtime/core/model-config.d.ts +576 -0
- package/dist/runtime/core/model-config.d.ts.map +1 -0
- package/dist/runtime/core/model-config.js +256 -0
- package/dist/runtime/core/model-config.js.map +1 -0
- package/dist/runtime/core/model-registry.d.ts +45 -0
- package/dist/runtime/core/model-registry.d.ts.map +1 -0
- package/dist/runtime/core/model-registry.js +107 -0
- package/dist/runtime/core/model-registry.js.map +1 -0
- package/dist/runtime/core/model-resolver.d.ts +124 -0
- package/dist/runtime/core/model-resolver.d.ts.map +1 -0
- package/dist/runtime/core/model-resolver.js +589 -0
- package/dist/runtime/core/model-resolver.js.map +1 -0
- package/dist/runtime/core/model-runtime.d.ts +100 -0
- package/dist/runtime/core/model-runtime.d.ts.map +1 -0
- package/dist/runtime/core/model-runtime.js +599 -0
- package/dist/runtime/core/model-runtime.js.map +1 -0
- package/dist/runtime/core/models-store.d.ts +22 -0
- package/dist/runtime/core/models-store.d.ts.map +1 -0
- package/dist/runtime/core/models-store.js +115 -0
- package/dist/runtime/core/models-store.js.map +1 -0
- package/dist/runtime/core/output-guard.d.ts +7 -0
- package/dist/runtime/core/output-guard.d.ts.map +1 -0
- package/dist/runtime/core/output-guard.js +89 -0
- package/dist/runtime/core/output-guard.js.map +1 -0
- package/dist/runtime/core/package-manager.d.ts +213 -0
- package/dist/runtime/core/package-manager.d.ts.map +1 -0
- package/dist/runtime/core/package-manager.js +2177 -0
- package/dist/runtime/core/package-manager.js.map +1 -0
- package/dist/runtime/core/pi-manifest.d.ts +8 -0
- package/dist/runtime/core/pi-manifest.d.ts.map +1 -0
- package/dist/runtime/core/pi-manifest.js +26 -0
- package/dist/runtime/core/pi-manifest.js.map +1 -0
- package/dist/runtime/core/project-trust.d.ts +15 -0
- package/dist/runtime/core/project-trust.d.ts.map +1 -0
- package/dist/runtime/core/project-trust.js +59 -0
- package/dist/runtime/core/project-trust.js.map +1 -0
- package/dist/runtime/core/prompt-templates.d.ts +54 -0
- package/dist/runtime/core/prompt-templates.d.ts.map +1 -0
- package/dist/runtime/core/prompt-templates.js +236 -0
- package/dist/runtime/core/prompt-templates.js.map +1 -0
- package/dist/runtime/core/provider-attribution.d.ts +4 -0
- package/dist/runtime/core/provider-attribution.d.ts.map +1 -0
- package/dist/runtime/core/provider-attribution.js +72 -0
- package/dist/runtime/core/provider-attribution.js.map +1 -0
- package/dist/runtime/core/provider-composer.d.ts +58 -0
- package/dist/runtime/core/provider-composer.d.ts.map +1 -0
- package/dist/runtime/core/provider-composer.js +396 -0
- package/dist/runtime/core/provider-composer.js.map +1 -0
- package/dist/runtime/core/radius.d.ts +2 -0
- package/dist/runtime/core/radius.d.ts.map +1 -0
- package/dist/runtime/core/radius.js +2 -0
- package/dist/runtime/core/radius.js.map +1 -0
- package/dist/runtime/core/remote-catalog-provider.d.ts +5 -0
- package/dist/runtime/core/remote-catalog-provider.d.ts.map +1 -0
- package/dist/runtime/core/remote-catalog-provider.js +122 -0
- package/dist/runtime/core/remote-catalog-provider.js.map +1 -0
- package/dist/runtime/core/resolve-config-value.d.ts +30 -0
- package/dist/runtime/core/resolve-config-value.d.ts.map +1 -0
- package/dist/runtime/core/resolve-config-value.js +247 -0
- package/dist/runtime/core/resolve-config-value.js.map +1 -0
- package/dist/runtime/core/resource-loader.d.ts +221 -0
- package/dist/runtime/core/resource-loader.d.ts.map +1 -0
- package/dist/runtime/core/resource-loader.js +875 -0
- package/dist/runtime/core/resource-loader.js.map +1 -0
- package/dist/runtime/core/runtime-credentials.d.ts +15 -0
- package/dist/runtime/core/runtime-credentials.d.ts.map +1 -0
- package/dist/runtime/core/runtime-credentials.js +39 -0
- package/dist/runtime/core/runtime-credentials.js.map +1 -0
- package/dist/runtime/core/sdk.d.ts +108 -0
- package/dist/runtime/core/sdk.d.ts.map +1 -0
- package/dist/runtime/core/sdk.js +275 -0
- package/dist/runtime/core/sdk.js.map +1 -0
- package/dist/runtime/core/session-cwd.d.ts +19 -0
- package/dist/runtime/core/session-cwd.d.ts.map +1 -0
- package/dist/runtime/core/session-cwd.js +38 -0
- package/dist/runtime/core/session-cwd.js.map +1 -0
- package/dist/runtime/core/session-export.d.ts +4 -0
- package/dist/runtime/core/session-export.d.ts.map +1 -0
- package/dist/runtime/core/session-export.js +32 -0
- package/dist/runtime/core/session-export.js.map +1 -0
- package/dist/runtime/core/session-manager.d.ts +356 -0
- package/dist/runtime/core/session-manager.d.ts.map +1 -0
- package/dist/runtime/core/session-manager.js +1341 -0
- package/dist/runtime/core/session-manager.js.map +1 -0
- package/dist/runtime/core/settings-diagnostics.d.ts +9 -0
- package/dist/runtime/core/settings-diagnostics.d.ts.map +1 -0
- package/dist/runtime/core/settings-diagnostics.js +21 -0
- package/dist/runtime/core/settings-diagnostics.js.map +1 -0
- package/dist/runtime/core/settings-manager.d.ts +324 -0
- package/dist/runtime/core/settings-manager.d.ts.map +1 -0
- package/dist/runtime/core/settings-manager.js +980 -0
- package/dist/runtime/core/settings-manager.js.map +1 -0
- package/dist/runtime/core/skills.d.ts +60 -0
- package/dist/runtime/core/skills.d.ts.map +1 -0
- package/dist/runtime/core/skills.js +405 -0
- package/dist/runtime/core/skills.js.map +1 -0
- package/dist/runtime/core/slash-commands.d.ts +15 -0
- package/dist/runtime/core/slash-commands.d.ts.map +1 -0
- package/dist/runtime/core/slash-commands.js +27 -0
- package/dist/runtime/core/slash-commands.js.map +1 -0
- package/dist/runtime/core/source-info.d.ts +18 -0
- package/dist/runtime/core/source-info.d.ts.map +1 -0
- package/dist/runtime/core/source-info.js +19 -0
- package/dist/runtime/core/source-info.js.map +1 -0
- package/dist/runtime/core/system-prompt.d.ts +28 -0
- package/dist/runtime/core/system-prompt.d.ts.map +1 -0
- package/dist/runtime/core/system-prompt.js +119 -0
- package/dist/runtime/core/system-prompt.js.map +1 -0
- package/dist/runtime/core/telemetry.d.ts +3 -0
- package/dist/runtime/core/telemetry.d.ts.map +1 -0
- package/dist/runtime/core/telemetry.js +9 -0
- package/dist/runtime/core/telemetry.js.map +1 -0
- package/dist/runtime/core/timings.d.ts +10 -0
- package/dist/runtime/core/timings.d.ts.map +1 -0
- package/dist/runtime/core/timings.js +41 -0
- package/dist/runtime/core/timings.js.map +1 -0
- package/dist/runtime/core/tools/bash.d.ts +87 -0
- package/dist/runtime/core/tools/bash.d.ts.map +1 -0
- package/dist/runtime/core/tools/bash.js +410 -0
- package/dist/runtime/core/tools/bash.js.map +1 -0
- package/dist/runtime/core/tools/edit-diff.d.ts +101 -0
- package/dist/runtime/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/runtime/core/tools/edit-diff.js +421 -0
- package/dist/runtime/core/tools/edit-diff.js.map +1 -0
- package/dist/runtime/core/tools/edit.d.ts +55 -0
- package/dist/runtime/core/tools/edit.d.ts.map +1 -0
- package/dist/runtime/core/tools/edit.js +306 -0
- package/dist/runtime/core/tools/edit.js.map +1 -0
- package/dist/runtime/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/runtime/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/runtime/core/tools/file-mutation-queue.js +52 -0
- package/dist/runtime/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/runtime/core/tools/find.d.ts +42 -0
- package/dist/runtime/core/tools/find.d.ts.map +1 -0
- package/dist/runtime/core/tools/find.js +302 -0
- package/dist/runtime/core/tools/find.js.map +1 -0
- package/dist/runtime/core/tools/grep.d.ts +41 -0
- package/dist/runtime/core/tools/grep.d.ts.map +1 -0
- package/dist/runtime/core/tools/grep.js +308 -0
- package/dist/runtime/core/tools/grep.js.map +1 -0
- package/dist/runtime/core/tools/index.d.ts +43 -0
- package/dist/runtime/core/tools/index.d.ts.map +1 -0
- package/dist/runtime/core/tools/index.js +129 -0
- package/dist/runtime/core/tools/index.js.map +1 -0
- package/dist/runtime/core/tools/ls.d.ts +41 -0
- package/dist/runtime/core/tools/ls.d.ts.map +1 -0
- package/dist/runtime/core/tools/ls.js +171 -0
- package/dist/runtime/core/tools/ls.js.map +1 -0
- package/dist/runtime/core/tools/output-accumulator.d.ts +52 -0
- package/dist/runtime/core/tools/output-accumulator.d.ts.map +1 -0
- package/dist/runtime/core/tools/output-accumulator.js +184 -0
- package/dist/runtime/core/tools/output-accumulator.js.map +1 -0
- package/dist/runtime/core/tools/path-utils.d.ts +10 -0
- package/dist/runtime/core/tools/path-utils.d.ts.map +1 -0
- package/dist/runtime/core/tools/path-utils.js +99 -0
- package/dist/runtime/core/tools/path-utils.js.map +1 -0
- package/dist/runtime/core/tools/powershell.d.ts +16 -0
- package/dist/runtime/core/tools/powershell.d.ts.map +1 -0
- package/dist/runtime/core/tools/powershell.js +39 -0
- package/dist/runtime/core/tools/powershell.js.map +1 -0
- package/dist/runtime/core/tools/read.d.ts +39 -0
- package/dist/runtime/core/tools/read.d.ts.map +1 -0
- package/dist/runtime/core/tools/read.js +282 -0
- package/dist/runtime/core/tools/read.js.map +1 -0
- package/dist/runtime/core/tools/render-utils.d.ts +24 -0
- package/dist/runtime/core/tools/render-utils.d.ts.map +1 -0
- package/dist/runtime/core/tools/render-utils.js +65 -0
- package/dist/runtime/core/tools/render-utils.js.map +1 -0
- package/dist/runtime/core/tools/tool-definition-wrapper.d.ts +14 -0
- package/dist/runtime/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/runtime/core/tools/tool-definition-wrapper.js +36 -0
- package/dist/runtime/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/runtime/core/tools/truncate.d.ts +70 -0
- package/dist/runtime/core/tools/truncate.d.ts.map +1 -0
- package/dist/runtime/core/tools/truncate.js +215 -0
- package/dist/runtime/core/tools/truncate.js.map +1 -0
- package/dist/runtime/core/tools/write.d.ts +30 -0
- package/dist/runtime/core/tools/write.d.ts.map +1 -0
- package/dist/runtime/core/tools/write.js +203 -0
- package/dist/runtime/core/tools/write.js.map +1 -0
- package/dist/runtime/core/trust-manager.d.ts +36 -0
- package/dist/runtime/core/trust-manager.d.ts.map +1 -0
- package/dist/runtime/core/trust-manager.js +203 -0
- package/dist/runtime/core/trust-manager.js.map +1 -0
- package/dist/runtime/core/usage-totals.d.ts +19 -0
- package/dist/runtime/core/usage-totals.d.ts.map +1 -0
- package/dist/runtime/core/usage-totals.js +52 -0
- package/dist/runtime/core/usage-totals.js.map +1 -0
- package/dist/runtime/extensions/index.d.ts +3 -0
- package/dist/runtime/extensions/index.d.ts.map +1 -0
- package/dist/runtime/extensions/index.js +3 -0
- package/dist/runtime/extensions/index.js.map +1 -0
- package/dist/runtime/extensions/llama/client.d.ts +67 -0
- package/dist/runtime/extensions/llama/client.d.ts.map +1 -0
- package/dist/runtime/extensions/llama/client.js +309 -0
- package/dist/runtime/extensions/llama/client.js.map +1 -0
- package/dist/runtime/extensions/llama/huggingface.d.ts +23 -0
- package/dist/runtime/extensions/llama/huggingface.d.ts.map +1 -0
- package/dist/runtime/extensions/llama/huggingface.js +141 -0
- package/dist/runtime/extensions/llama/huggingface.js.map +1 -0
- package/dist/runtime/extensions/llama/index.d.ts +3 -0
- package/dist/runtime/extensions/llama/index.d.ts.map +1 -0
- package/dist/runtime/extensions/llama/index.js +219 -0
- package/dist/runtime/extensions/llama/index.js.map +1 -0
- package/dist/runtime/extensions/llama/provider.d.ts +12 -0
- package/dist/runtime/extensions/llama/provider.d.ts.map +1 -0
- package/dist/runtime/extensions/llama/provider.js +146 -0
- package/dist/runtime/extensions/llama/provider.js.map +1 -0
- package/dist/runtime/extensions/llama/ui.d.ts +42 -0
- package/dist/runtime/extensions/llama/ui.d.ts.map +1 -0
- package/dist/runtime/extensions/llama/ui.js +416 -0
- package/dist/runtime/extensions/llama/ui.js.map +1 -0
- package/dist/runtime/index.d.ts +37 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +49 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/main.d.ts +16 -0
- package/dist/runtime/main.d.ts.map +1 -0
- package/dist/runtime/main.js +799 -0
- package/dist/runtime/main.js.map +1 -0
- package/dist/runtime/migrations.d.ts +33 -0
- package/dist/runtime/migrations.d.ts.map +1 -0
- package/dist/runtime/migrations.js +282 -0
- package/dist/runtime/migrations.js.map +1 -0
- package/dist/runtime/modes/index.d.ts +10 -0
- package/dist/runtime/modes/index.d.ts.map +1 -0
- package/dist/runtime/modes/index.js +8 -0
- package/dist/runtime/modes/index.js.map +1 -0
- package/dist/runtime/modes/interactive/assets/clankolas.png +0 -0
- package/dist/runtime/modes/interactive/components/armin.d.ts +34 -0
- package/dist/runtime/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/armin.js +333 -0
- package/dist/runtime/modes/interactive/components/armin.js.map +1 -0
- package/dist/runtime/modes/interactive/components/assistant-message.d.ts +25 -0
- package/dist/runtime/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/assistant-message.js +150 -0
- package/dist/runtime/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/runtime/modes/interactive/components/bash-execution.d.ts +34 -0
- package/dist/runtime/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/bash-execution.js +175 -0
- package/dist/runtime/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/runtime/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/runtime/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/bordered-loader.js +54 -0
- package/dist/runtime/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/runtime/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/runtime/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/branch-summary-message.js +44 -0
- package/dist/runtime/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/runtime/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/runtime/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/compaction-summary-message.js +45 -0
- package/dist/runtime/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/runtime/modes/interactive/components/config-selector.d.ts +102 -0
- package/dist/runtime/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/config-selector.js +761 -0
- package/dist/runtime/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/runtime/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/runtime/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/runtime/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/runtime/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/custom-editor.js +77 -0
- package/dist/runtime/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/runtime/modes/interactive/components/custom-entry.d.ts +19 -0
- package/dist/runtime/modes/interactive/components/custom-entry.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/custom-entry.js +52 -0
- package/dist/runtime/modes/interactive/components/custom-entry.js.map +1 -0
- package/dist/runtime/modes/interactive/components/custom-message.d.ts +22 -0
- package/dist/runtime/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/custom-message.js +87 -0
- package/dist/runtime/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/runtime/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/runtime/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/daxnuts.js +140 -0
- package/dist/runtime/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/runtime/modes/interactive/components/diff.d.ts +12 -0
- package/dist/runtime/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/diff.js +133 -0
- package/dist/runtime/modes/interactive/components/diff.js.map +1 -0
- package/dist/runtime/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/runtime/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/runtime/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/runtime/modes/interactive/components/earendil-announcement.d.ts +5 -0
- package/dist/runtime/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/earendil-announcement.js +40 -0
- package/dist/runtime/modes/interactive/components/earendil-announcement.js.map +1 -0
- package/dist/runtime/modes/interactive/components/extension-editor.d.ts +21 -0
- package/dist/runtime/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/extension-editor.js +98 -0
- package/dist/runtime/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/runtime/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/runtime/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/extension-input.js +61 -0
- package/dist/runtime/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/runtime/modes/interactive/components/extension-selector.d.ts +26 -0
- package/dist/runtime/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/extension-selector.js +83 -0
- package/dist/runtime/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/dist/runtime/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/first-time-setup.js +103 -0
- package/dist/runtime/modes/interactive/components/first-time-setup.js.map +1 -0
- package/dist/runtime/modes/interactive/components/footer.d.ts +32 -0
- package/dist/runtime/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/footer.js +222 -0
- package/dist/runtime/modes/interactive/components/footer.js.map +1 -0
- package/dist/runtime/modes/interactive/components/index.d.ts +34 -0
- package/dist/runtime/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/index.js +35 -0
- package/dist/runtime/modes/interactive/components/index.js.map +1 -0
- package/dist/runtime/modes/interactive/components/keybinding-hints.d.ts +13 -0
- package/dist/runtime/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/keybinding-hints.js +36 -0
- package/dist/runtime/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/runtime/modes/interactive/components/login-dialog.d.ts +52 -0
- package/dist/runtime/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/login-dialog.js +188 -0
- package/dist/runtime/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/runtime/modes/interactive/components/markdown-transform.d.ts +3 -0
- package/dist/runtime/modes/interactive/components/markdown-transform.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/markdown-transform.js +19 -0
- package/dist/runtime/modes/interactive/components/markdown-transform.js.map +1 -0
- package/dist/runtime/modes/interactive/components/mermaid.d.ts +11 -0
- package/dist/runtime/modes/interactive/components/mermaid.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/mermaid.js +75 -0
- package/dist/runtime/modes/interactive/components/mermaid.js.map +1 -0
- package/dist/runtime/modes/interactive/components/model-selector.d.ts +60 -0
- package/dist/runtime/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/model-selector.js +370 -0
- package/dist/runtime/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/oauth-selector.d.ts +33 -0
- package/dist/runtime/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/oauth-selector.js +163 -0
- package/dist/runtime/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/scoped-models-selector.d.ts +46 -0
- package/dist/runtime/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/scoped-models-selector.js +328 -0
- package/dist/runtime/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/runtime/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/session-selector-search.js +155 -0
- package/dist/runtime/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/runtime/modes/interactive/components/session-selector.d.ts +95 -0
- package/dist/runtime/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/session-selector.js +867 -0
- package/dist/runtime/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/settings-selector.d.ts +90 -0
- package/dist/runtime/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/settings-selector.js +695 -0
- package/dist/runtime/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/settings-submenu.d.ts +72 -0
- package/dist/runtime/modes/interactive/components/settings-submenu.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/settings-submenu.js +165 -0
- package/dist/runtime/modes/interactive/components/settings-submenu.js.map +1 -0
- package/dist/runtime/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/runtime/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/show-images-selector.js +39 -0
- package/dist/runtime/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/runtime/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/skill-invocation-message.js +47 -0
- package/dist/runtime/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/runtime/modes/interactive/components/status-indicator.d.ts +28 -0
- package/dist/runtime/modes/interactive/components/status-indicator.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/status-indicator.js +60 -0
- package/dist/runtime/modes/interactive/components/status-indicator.js.map +1 -0
- package/dist/runtime/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/runtime/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/theme-selector.js +50 -0
- package/dist/runtime/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/thinking-selector.d.ts +23 -0
- package/dist/runtime/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/thinking-selector.js +109 -0
- package/dist/runtime/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/tool-execution.d.ts +63 -0
- package/dist/runtime/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/tool-execution.js +326 -0
- package/dist/runtime/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/runtime/modes/interactive/components/tree-selector.d.ts +94 -0
- package/dist/runtime/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/tree-selector.js +1245 -0
- package/dist/runtime/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/trust-selector.d.ts +23 -0
- package/dist/runtime/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/trust-selector.js +91 -0
- package/dist/runtime/modes/interactive/components/trust-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/runtime/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/user-message-selector.js +114 -0
- package/dist/runtime/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/runtime/modes/interactive/components/user-message.d.ts +16 -0
- package/dist/runtime/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/user-message.js +49 -0
- package/dist/runtime/modes/interactive/components/user-message.js.map +1 -0
- package/dist/runtime/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/runtime/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/runtime/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/runtime/modes/interactive/external-editor.d.ts +12 -0
- package/dist/runtime/modes/interactive/external-editor.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/external-editor.js +38 -0
- package/dist/runtime/modes/interactive/external-editor.js.map +1 -0
- package/dist/runtime/modes/interactive/interactive-mode.d.ts +446 -0
- package/dist/runtime/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/interactive-mode.js +5509 -0
- package/dist/runtime/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/runtime/modes/interactive/model-catalog-refresh.d.ts +7 -0
- package/dist/runtime/modes/interactive/model-catalog-refresh.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/model-catalog-refresh.js +34 -0
- package/dist/runtime/modes/interactive/model-catalog-refresh.js.map +1 -0
- package/dist/runtime/modes/interactive/model-search.d.ts +12 -0
- package/dist/runtime/modes/interactive/model-search.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/model-search.js +15 -0
- package/dist/runtime/modes/interactive/model-search.js.map +1 -0
- package/dist/runtime/modes/interactive/session-share.d.ts +16 -0
- package/dist/runtime/modes/interactive/session-share.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/session-share.js +188 -0
- package/dist/runtime/modes/interactive/session-share.js.map +1 -0
- package/dist/runtime/modes/interactive/theme/dark.json +90 -0
- package/dist/runtime/modes/interactive/theme/light.json +89 -0
- package/dist/runtime/modes/interactive/theme/theme-controller.d.ts +40 -0
- package/dist/runtime/modes/interactive/theme/theme-controller.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/theme/theme-controller.js +125 -0
- package/dist/runtime/modes/interactive/theme/theme-controller.js.map +1 -0
- package/dist/runtime/modes/interactive/theme/theme-schema.json +352 -0
- package/dist/runtime/modes/interactive/theme/theme.d.ts +122 -0
- package/dist/runtime/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/runtime/modes/interactive/theme/theme.js +1092 -0
- package/dist/runtime/modes/interactive/theme/theme.js.map +1 -0
- package/dist/runtime/modes/json-event.d.ts +34 -0
- package/dist/runtime/modes/json-event.d.ts.map +1 -0
- package/dist/runtime/modes/json-event.js +29 -0
- package/dist/runtime/modes/json-event.js.map +1 -0
- package/dist/runtime/modes/print-mode.d.ts +28 -0
- package/dist/runtime/modes/print-mode.d.ts.map +1 -0
- package/dist/runtime/modes/print-mode.js +142 -0
- package/dist/runtime/modes/print-mode.js.map +1 -0
- package/dist/runtime/modes/rpc/jsonl.d.ts +17 -0
- package/dist/runtime/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/runtime/modes/rpc/jsonl.js +49 -0
- package/dist/runtime/modes/rpc/jsonl.js.map +1 -0
- package/dist/runtime/modes/rpc/rpc-client.d.ts +254 -0
- package/dist/runtime/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/runtime/modes/rpc/rpc-client.js +495 -0
- package/dist/runtime/modes/rpc/rpc-client.js.map +1 -0
- package/dist/runtime/modes/rpc/rpc-mode.d.ts +20 -0
- package/dist/runtime/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/runtime/modes/rpc/rpc-mode.js +657 -0
- package/dist/runtime/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/runtime/modes/rpc/rpc-types.d.ts +469 -0
- package/dist/runtime/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/runtime/modes/rpc/rpc-types.js +8 -0
- package/dist/runtime/modes/rpc/rpc-types.js.map +1 -0
- package/dist/runtime/package-manager-cli.d.ts +9 -0
- package/dist/runtime/package-manager-cli.d.ts.map +1 -0
- package/dist/runtime/package-manager-cli.js +961 -0
- package/dist/runtime/package-manager-cli.js.map +1 -0
- package/dist/runtime/rpc-entry.d.ts +3 -0
- package/dist/runtime/rpc-entry.d.ts.map +1 -0
- package/dist/runtime/rpc-entry.js +11 -0
- package/dist/runtime/rpc-entry.js.map +1 -0
- package/dist/runtime/server/create-harness.d.ts +26 -0
- package/dist/runtime/server/create-harness.d.ts.map +1 -0
- package/dist/runtime/server/create-harness.js +106 -0
- package/dist/runtime/server/create-harness.js.map +1 -0
- package/dist/runtime/utils/abort.d.ts +5 -0
- package/dist/runtime/utils/abort.d.ts.map +1 -0
- package/dist/runtime/utils/abort.js +48 -0
- package/dist/runtime/utils/abort.js.map +1 -0
- package/dist/runtime/utils/ansi.d.ts +2 -0
- package/dist/runtime/utils/ansi.d.ts.map +1 -0
- package/dist/runtime/utils/ansi.js +52 -0
- package/dist/runtime/utils/ansi.js.map +1 -0
- package/dist/runtime/utils/changelog.d.ts +22 -0
- package/dist/runtime/utils/changelog.d.ts.map +1 -0
- package/dist/runtime/utils/changelog.js +165 -0
- package/dist/runtime/utils/changelog.js.map +1 -0
- package/dist/runtime/utils/child-process.d.ts +18 -0
- package/dist/runtime/utils/child-process.d.ts.map +1 -0
- package/dist/runtime/utils/child-process.js +106 -0
- package/dist/runtime/utils/child-process.js.map +1 -0
- package/dist/runtime/utils/clipboard-image.d.ts +11 -0
- package/dist/runtime/utils/clipboard-image.d.ts.map +1 -0
- package/dist/runtime/utils/clipboard-image.js +245 -0
- package/dist/runtime/utils/clipboard-image.js.map +1 -0
- package/dist/runtime/utils/clipboard-native.d.ts +11 -0
- package/dist/runtime/utils/clipboard-native.d.ts.map +1 -0
- package/dist/runtime/utils/clipboard-native.js +20 -0
- package/dist/runtime/utils/clipboard-native.js.map +1 -0
- package/dist/runtime/utils/clipboard.d.ts +4 -0
- package/dist/runtime/utils/clipboard.d.ts.map +1 -0
- package/dist/runtime/utils/clipboard.js +161 -0
- package/dist/runtime/utils/clipboard.js.map +1 -0
- package/dist/runtime/utils/deprecation.d.ts +4 -0
- package/dist/runtime/utils/deprecation.d.ts.map +1 -0
- package/dist/runtime/utils/deprecation.js +13 -0
- package/dist/runtime/utils/deprecation.js.map +1 -0
- package/dist/runtime/utils/exif-orientation.d.ts +5 -0
- package/dist/runtime/utils/exif-orientation.d.ts.map +1 -0
- package/dist/runtime/utils/exif-orientation.js +158 -0
- package/dist/runtime/utils/exif-orientation.js.map +1 -0
- package/dist/runtime/utils/frontmatter.d.ts +8 -0
- package/dist/runtime/utils/frontmatter.d.ts.map +1 -0
- package/dist/runtime/utils/frontmatter.js +27 -0
- package/dist/runtime/utils/frontmatter.js.map +1 -0
- package/dist/runtime/utils/fs-watch.d.ts +5 -0
- package/dist/runtime/utils/fs-watch.d.ts.map +1 -0
- package/dist/runtime/utils/fs-watch.js +25 -0
- package/dist/runtime/utils/fs-watch.js.map +1 -0
- package/dist/runtime/utils/git.d.ts +26 -0
- package/dist/runtime/utils/git.d.ts.map +1 -0
- package/dist/runtime/utils/git.js +195 -0
- package/dist/runtime/utils/git.js.map +1 -0
- package/dist/runtime/utils/html.d.ts +7 -0
- package/dist/runtime/utils/html.d.ts.map +1 -0
- package/dist/runtime/utils/html.js +40 -0
- package/dist/runtime/utils/html.js.map +1 -0
- package/dist/runtime/utils/image-convert.d.ts +10 -0
- package/dist/runtime/utils/image-convert.d.ts.map +1 -0
- package/dist/runtime/utils/image-convert.js +45 -0
- package/dist/runtime/utils/image-convert.js.map +1 -0
- package/dist/runtime/utils/image-process.d.ts +18 -0
- package/dist/runtime/utils/image-process.d.ts.map +1 -0
- package/dist/runtime/utils/image-process.js +83 -0
- package/dist/runtime/utils/image-process.js.map +1 -0
- package/dist/runtime/utils/image-resize-core.d.ts +30 -0
- package/dist/runtime/utils/image-resize-core.d.ts.map +1 -0
- package/dist/runtime/utils/image-resize-core.js +124 -0
- package/dist/runtime/utils/image-resize-core.js.map +1 -0
- package/dist/runtime/utils/image-resize-worker.d.ts +2 -0
- package/dist/runtime/utils/image-resize-worker.d.ts.map +1 -0
- package/dist/runtime/utils/image-resize-worker.js +31 -0
- package/dist/runtime/utils/image-resize-worker.js.map +1 -0
- package/dist/runtime/utils/image-resize.d.ts +16 -0
- package/dist/runtime/utils/image-resize.d.ts.map +1 -0
- package/dist/runtime/utils/image-resize.js +97 -0
- package/dist/runtime/utils/image-resize.js.map +1 -0
- package/dist/runtime/utils/json.d.ts +3 -0
- package/dist/runtime/utils/json.d.ts.map +1 -0
- package/dist/runtime/utils/json.js +7 -0
- package/dist/runtime/utils/json.js.map +1 -0
- package/dist/runtime/utils/management-http.d.ts +25 -0
- package/dist/runtime/utils/management-http.d.ts.map +1 -0
- package/dist/runtime/utils/management-http.js +54 -0
- package/dist/runtime/utils/management-http.js.map +1 -0
- package/dist/runtime/utils/mime.d.ts +3 -0
- package/dist/runtime/utils/mime.d.ts.map +1 -0
- package/dist/runtime/utils/mime.js +110 -0
- package/dist/runtime/utils/mime.js.map +1 -0
- package/dist/runtime/utils/open-browser.d.ts +9 -0
- package/dist/runtime/utils/open-browser.d.ts.map +1 -0
- package/dist/runtime/utils/open-browser.js +22 -0
- package/dist/runtime/utils/open-browser.js.map +1 -0
- package/dist/runtime/utils/paths.d.ts +34 -0
- package/dist/runtime/utils/paths.d.ts.map +1 -0
- package/dist/runtime/utils/paths.js +114 -0
- package/dist/runtime/utils/paths.js.map +1 -0
- package/dist/runtime/utils/photon.d.ts +21 -0
- package/dist/runtime/utils/photon.d.ts.map +1 -0
- package/dist/runtime/utils/photon.js +121 -0
- package/dist/runtime/utils/photon.js.map +1 -0
- package/dist/runtime/utils/pi-user-agent.d.ts +2 -0
- package/dist/runtime/utils/pi-user-agent.d.ts.map +1 -0
- package/dist/runtime/utils/pi-user-agent.js +5 -0
- package/dist/runtime/utils/pi-user-agent.js.map +1 -0
- package/dist/runtime/utils/shell.d.ts +34 -0
- package/dist/runtime/utils/shell.d.ts.map +1 -0
- package/dist/runtime/utils/shell.js +214 -0
- package/dist/runtime/utils/shell.js.map +1 -0
- package/dist/runtime/utils/sleep.d.ts +5 -0
- package/dist/runtime/utils/sleep.d.ts.map +1 -0
- package/dist/runtime/utils/sleep.js +17 -0
- package/dist/runtime/utils/sleep.js.map +1 -0
- package/dist/runtime/utils/syntax-highlight.d.ts +13 -0
- package/dist/runtime/utils/syntax-highlight.d.ts.map +1 -0
- package/dist/runtime/utils/syntax-highlight.js +177 -0
- package/dist/runtime/utils/syntax-highlight.js.map +1 -0
- package/dist/runtime/utils/text.d.ts +8 -0
- package/dist/runtime/utils/text.d.ts.map +1 -0
- package/dist/runtime/utils/text.js +9 -0
- package/dist/runtime/utils/text.js.map +1 -0
- package/dist/runtime/utils/tool-result-images.d.ts +19 -0
- package/dist/runtime/utils/tool-result-images.d.ts.map +1 -0
- package/dist/runtime/utils/tool-result-images.js +45 -0
- package/dist/runtime/utils/tool-result-images.js.map +1 -0
- package/dist/runtime/utils/tools-manager.d.ts +12 -0
- package/dist/runtime/utils/tools-manager.d.ts.map +1 -0
- package/dist/runtime/utils/tools-manager.js +321 -0
- package/dist/runtime/utils/tools-manager.js.map +1 -0
- package/dist/runtime/utils/version-check.d.ts +19 -0
- package/dist/runtime/utils/version-check.d.ts.map +1 -0
- package/dist/runtime/utils/version-check.js +79 -0
- package/dist/runtime/utils/version-check.js.map +1 -0
- package/dist/runtime/utils/windows-self-update.d.ts +3 -0
- package/dist/runtime/utils/windows-self-update.d.ts.map +1 -0
- package/dist/runtime/utils/windows-self-update.js +77 -0
- package/dist/runtime/utils/windows-self-update.js.map +1 -0
- package/dist/update.js +134 -0
- package/dist/workflows.js +391 -0
- package/docs/compaction.md +416 -0
- package/docs/containerization.md +111 -0
- package/docs/custom-provider.md +777 -0
- package/docs/development.md +71 -0
- package/docs/docs.json +156 -0
- package/docs/environment-variables.md +94 -0
- package/docs/extensions.md +3002 -0
- package/docs/images/doom-extension.png +0 -0
- package/docs/images/exy.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/index.md +84 -0
- package/docs/json.md +98 -0
- package/docs/keybindings.md +236 -0
- package/docs/llama-cpp.md +101 -0
- package/docs/models.md +571 -0
- package/docs/packages.md +228 -0
- package/docs/prompt-templates.md +96 -0
- package/docs/providers.md +317 -0
- package/docs/quickstart.md +167 -0
- package/docs/rpc.md +1618 -0
- package/docs/sdk.md +1219 -0
- package/docs/security.md +59 -0
- package/docs/session-format.md +438 -0
- package/docs/sessions.md +145 -0
- package/docs/settings.md +361 -0
- package/docs/shell-aliases.md +13 -0
- package/docs/skills.md +232 -0
- package/docs/terminal-setup.md +165 -0
- package/docs/termux.md +127 -0
- package/docs/themes.md +320 -0
- package/docs/tmux.md +63 -0
- package/docs/tui.md +942 -0
- package/docs/usage.md +310 -0
- package/docs/windows.md +39 -0
- package/examples/README.md +25 -0
- package/examples/extensions/README.md +213 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/border-status-editor.ts +150 -0
- package/examples/extensions/built-in-tool-renderer.ts +249 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +117 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +73 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +611 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/doom-overlay/README.md +46 -0
- package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/examples/extensions/doom-overlay/index.ts +74 -0
- package/examples/extensions/doom-overlay/wad-finder.ts +55 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/entry-renderer.ts +41 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/examples/extensions/gondolin/index.ts +531 -0
- package/examples/extensions/gondolin/package-lock.json +185 -0
- package/examples/extensions/gondolin/package.json +19 -0
- package/examples/extensions/handoff.ts +190 -0
- package/examples/extensions/hello.ts +26 -0
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform-streaming.ts +39 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/kimi-deferred-tools.ts +61 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +426 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +57 -0
- package/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/examples/extensions/overlay-test.ts +153 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +66 -0
- package/examples/extensions/plan-mode/index.ts +390 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +436 -0
- package/examples/extensions/project-trust.ts +64 -0
- package/examples/extensions/prompt-customizer.ts +97 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +18 -0
- package/examples/extensions/qna.ts +118 -0
- package/examples/extensions/question.ts +286 -0
- package/examples/extensions/questionnaire.ts +448 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +37 -0
- package/examples/extensions/rpc-demo.ts +118 -0
- package/examples/extensions/sandbox/index.ts +321 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +32 -0
- package/examples/extensions/structured-output.ts +65 -0
- package/examples/extensions/subagent/README.md +177 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +157 -0
- package/examples/extensions/subagent/index.ts +1038 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +199 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/tic-tac-toe.ts +1008 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +297 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +146 -0
- package/examples/extensions/trigger-compact.ts +50 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +9 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/working-indicator.ts +123 -0
- package/examples/extensions/working-message-test.ts +25 -0
- package/examples/rpc-extension-ui.ts +641 -0
- package/examples/sdk/01-minimal.ts +26 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +75 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/06-extensions.ts +99 -0
- package/examples/sdk/07-context-files.ts +47 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +74 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/README.md +140 -0
- package/package.json +65 -12
- package/upstream.json +6 -0
- package/workflows/cm/LICENSE +21 -0
- package/workflows/cm/README.md +333 -0
- package/workflows/cm/THIRD_PARTY_NOTICES.md +29 -0
- package/workflows/cm/VERSION +1 -0
- package/workflows/cm/agents/cm-backend-agent.md +34 -0
- package/workflows/cm/agents/cm-contract-agent.md +34 -0
- package/workflows/cm/agents/cm-database-agent.md +34 -0
- package/workflows/cm/agents/cm-frontend-agent.md +33 -0
- package/workflows/cm/agents/cm-miniprogram-agent.md +33 -0
- package/workflows/cm/agents/cm-ui-agent.md +34 -0
- package/workflows/cm/assets/docs/command-picker-mobile.svg +56 -0
- package/workflows/cm/assets/docs/command-picker.svg +56 -0
- package/workflows/cm/assets/docs/user-guide-hero-mobile.svg +35 -0
- package/workflows/cm/assets/docs/user-guide-hero.svg +36 -0
- package/workflows/cm/assets/readme/delivery-flow.svg +86 -0
- package/workflows/cm/assets/readme/hero.svg +77 -0
- package/workflows/cm/assets/readme/recovery-record.svg +73 -0
- package/workflows/cm/assets/readme/test-evidence.svg +64 -0
- package/workflows/cm/compat/claude-commands/cm-ai.md +3 -0
- package/workflows/cm/compat/claude-commands/cm-check.md +3 -0
- package/workflows/cm/compat/claude-commands/cm-fix.md +3 -0
- package/workflows/cm/compat/claude-commands/cm-idea.md +3 -0
- package/workflows/cm/compat/claude-commands/cm-init.md +3 -0
- package/workflows/cm/compat/claude-commands/cm-prd.md +3 -0
- package/workflows/cm/compat/claude-commands/cm-refactor.md +3 -0
- package/workflows/cm/compat/claude-commands/cm-test.md +3 -0
- package/workflows/cm/docs/architecture.md +130 -0
- package/workflows/cm/docs/fixes/.reviews/fix-manifest-runtime-checkbox-drift-r1.md +33 -0
- package/workflows/cm/docs/fixes/.reviews/fix-manifest-runtime-checkbox-drift-r2.md +31 -0
- package/workflows/cm/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-a1-handoff.json +56 -0
- package/workflows/cm/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-a2-handoff.json +85 -0
- package/workflows/cm/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-r1.md +53 -0
- package/workflows/cm/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-r2.md +80 -0
- package/workflows/cm/docs/fixes/.reviews/fix-review-evidence-scope-honesty-T-FIX-review-evidence-scope-honesty-a1-handoff.json +35 -0
- package/workflows/cm/docs/fixes/.reviews/fix-review-evidence-scope-honesty-T-FIX-review-evidence-scope-honesty-r1.md +33 -0
- package/workflows/cm/docs/fixes/.reviews/fix-windows-cp1252-log-output-r1.md +30 -0
- package/workflows/cm/docs/fixes/.reviews/fix-windows-cp1252-log-output-r2.md +16 -0
- package/workflows/cm/docs/fixes/.reviews/openai-compatible-depth-fixture-T-FIX-openai-compatible-depth-fixture-a1-handoff.json +40 -0
- package/workflows/cm/docs/fixes/.reviews/openai-compatible-depth-fixture-T-FIX-openai-compatible-depth-fixture-r1.md +30 -0
- package/workflows/cm/docs/fixes/20260729-windows-cp1252-log-output.md +65 -0
- package/workflows/cm/docs/fixes/20260804-manifest-runtime-checkbox-drift.md +67 -0
- package/workflows/cm/docs/fixes/20260806-model-call-boundary-identity.md +80 -0
- package/workflows/cm/docs/fixes/20260807-prelanding-integrity.md +58 -0
- package/workflows/cm/docs/fixes/20260826-openai-compatible-depth-fixture.md +39 -0
- package/workflows/cm/docs/installation.md +149 -0
- package/workflows/cm/docs/sample-prd/prd-funding-rate-alert.md +42 -0
- package/workflows/cm/docs/sample-specs/docs//351/234/200/346/261/202/347/244/272/344/276/213.md +24 -0
- package/workflows/cm/docs/user-guide.md +521 -0
- package/workflows/cm/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/README.md +19 -0
- package/workflows/cm/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.excalidraw +3650 -0
- package/workflows/cm/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.mp4 +0 -0
- package/workflows/cm/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.png +0 -0
- package/workflows/cm/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.spec.json +223 -0
- package/workflows/cm/package.json +45 -0
- package/workflows/cm/runtime/external-expert.md +302 -0
- package/workflows/cm/runtime/logging.md +206 -0
- package/workflows/cm/runtime/model-efficiency.md +201 -0
- package/workflows/cm/runtime/orchestration.md +113 -0
- package/workflows/cm/runtime/project-context.md +37 -0
- package/workflows/cm/runtime/review.md +114 -0
- package/workflows/cm/runtime/task-gates.md +114 -0
- package/workflows/cm/runtime/task-handoff.schema.json +103 -0
- package/workflows/cm/runtime/test-contract.md +212 -0
- package/workflows/cm/runtime/workflow-config.md +115 -0
- package/workflows/cm/runtime/workflow-routing.md +82 -0
- package/workflows/cm/scripts/cm-check-runtime.ps1 +69 -0
- package/workflows/cm/scripts/cm-check-runtime.sh +866 -0
- package/workflows/cm/scripts/cm-log-event.py +1270 -0
- package/workflows/cm/scripts/cm-openai-compatible-call.py +661 -0
- package/workflows/cm/scripts/cm-prd-review-gate.py +319 -0
- package/workflows/cm/scripts/cm-prd-timing.py +272 -0
- package/workflows/cm/scripts/cm-spec-manifest.py +171 -0
- package/workflows/cm/scripts/cm-task-gate.py +760 -0
- package/workflows/cm/scripts/cm-usage-report.py +516 -0
- package/workflows/cm/scripts/cm_workflow_config.py +612 -0
- package/workflows/cm/scripts/scan-public-safety.py +89 -0
- package/workflows/cm/scripts/test-cm-log-event.py +1213 -0
- package/workflows/cm/scripts/test-cm-openai-compatible-call.py +1185 -0
- package/workflows/cm/scripts/test-cm-prd-review-gate.py +243 -0
- package/workflows/cm/scripts/test-cm-prd-timing.py +168 -0
- package/workflows/cm/scripts/test-cm-usage-report.py +584 -0
- package/workflows/cm/scripts/test-shell-compat.sh +338 -0
- package/workflows/cm/scripts/test-spec-manifest.py +220 -0
- package/workflows/cm/scripts/test-task-gate.py +540 -0
- package/workflows/cm/scripts/test-workflow-config.py +394 -0
- package/workflows/cm/scripts/validate-public-repo.py +200 -0
- package/workflows/cm/scripts/validate-test-cases.py +127 -0
- package/workflows/cm/skills/cm-ai/SKILL.md +120 -0
- package/workflows/cm/skills/cm-ai/references/N1-init.md +92 -0
- package/workflows/cm/skills/cm-ai/references/N2-enter-feature.md +38 -0
- package/workflows/cm/skills/cm-ai/references/N3-execute-task.md +99 -0
- package/workflows/cm/skills/cm-ai/references/N4-review.md +96 -0
- package/workflows/cm/skills/cm-ai/references/N5-mark-done.md +107 -0
- package/workflows/cm/skills/cm-ai/references/N6-qa-eval.md +102 -0
- package/workflows/cm/skills/cm-ai/references/N7-context.md +23 -0
- package/workflows/cm/skills/cm-ai/references/N8-finish.md +97 -0
- package/workflows/cm/skills/cm-backend-engineer/SKILL.md +100 -0
- package/workflows/cm/skills/cm-check/SKILL.md +60 -0
- package/workflows/cm/skills/cm-contract-engineer/SKILL.md +136 -0
- package/workflows/cm/skills/cm-database-engineer/SKILL.md +89 -0
- package/workflows/cm/skills/cm-devops-engineer/SKILL.md +137 -0
- package/workflows/cm/skills/cm-doc-syncer/SKILL.md +150 -0
- package/workflows/cm/skills/cm-finance-expert/SKILL.md +85 -0
- package/workflows/cm/skills/cm-fix/SKILL.md +159 -0
- package/workflows/cm/skills/cm-frontend-engineer/SKILL.md +127 -0
- package/workflows/cm/skills/cm-idea/SKILL.md +42 -0
- package/workflows/cm/skills/cm-idea/references/domains/trading.md +97 -0
- package/workflows/cm/skills/cm-idea/references/example-prd.md +92 -0
- package/workflows/cm/skills/cm-idea/references/idea-to-prd.md +282 -0
- package/workflows/cm/skills/cm-init/SKILL.md +158 -0
- package/workflows/cm/skills/cm-miniprogram-engineer/SKILL.md +141 -0
- package/workflows/cm/skills/cm-miniprogram-engineer/references/platform-readiness.md +58 -0
- package/workflows/cm/skills/cm-miniprogram-engineer/references/release-checklist.md +59 -0
- package/workflows/cm/skills/cm-prd/SKILL.md +521 -0
- package/workflows/cm/skills/cm-prd/references/brownfield.md +13 -0
- package/workflows/cm/skills/cm-prd/references/change-mode.md +145 -0
- package/workflows/cm/skills/cm-prd/references/context-scope.md +62 -0
- package/workflows/cm/skills/cm-prd/references/greenfield.md +80 -0
- package/workflows/cm/skills/cm-prd/references/phase-timing.md +60 -0
- package/workflows/cm/skills/cm-prd/references/spec-self-check.md +22 -0
- package/workflows/cm/skills/cm-product-manager/SKILL.md +83 -0
- package/workflows/cm/skills/cm-qa-engineer/SKILL.md +142 -0
- package/workflows/cm/skills/cm-refactor/SKILL.md +209 -0
- package/workflows/cm/skills/cm-test/SKILL.md +259 -0
- package/workflows/cm/skills/cm-ui-engineer/SKILL.md +105 -0
- package/workflows/cm/skills/codebase-context/SKILL.md +489 -0
- package/workflows/cm/skills/darwin-skill/NOTICE.md +26 -0
- package/workflows/cm/skills/darwin-skill/README.md +272 -0
- package/workflows/cm/skills/darwin-skill/SKILL.md +492 -0
- package/workflows/cm/skills/darwin-skill/references/runtime-neutrality.md +68 -0
- package/workflows/cm/skills/darwin-skill/references/skilllens-evidence.md +142 -0
- package/workflows/cm/skills/darwin-skill/scripts/screenshot.mjs +71 -0
- package/workflows/cm/skills/darwin-skill/templates/result-card-dark.html +698 -0
- package/workflows/cm/skills/darwin-skill/templates/result-card-white.html +444 -0
- package/workflows/cm/skills/darwin-skill/templates/result-card.html +616 -0
- package/workflows/cm/skills/external-expert/SKILL.md +250 -0
- package/workflows/cm/templates/arch-reference.md +68 -0
- package/workflows/cm/templates/auto-update/cm-announce.sh +19 -0
- package/workflows/cm/templates/auto-update/cm-update.sh +274 -0
- package/workflows/cm/templates/cm-workflow.yml +52 -0
- package/workflows/cm/templates/dashboard/dashboard.html +153 -0
- package/workflows/cm/templates/dashboard/serve.sh +10 -0
- package/workflows/cm/templates/hooks/pre-commit-cm-task-check +67 -0
- package/workflows/cm/templates/pixel/cm-pixel.html +388 -0
- package/workflows/cm/templates/pixel/cm-pixel.sh +212 -0
- package/workflows/cm/templates/pixel/dev/README.md +20 -0
- package/workflows/cm/templates/pixel/dev/atlas-preview.png +0 -0
- package/workflows/cm/templates/pixel/dev/build.py +55 -0
- package/workflows/cm/templates/pixel/dev/sheets/roguelikeChar_transparent.png +0 -0
- package/workflows/cm/templates/pixel/dev/sheets/roguelikeCity_tilemap.png +0 -0
- package/workflows/cm/templates/pixel/dev/sheets/roguelikeIndoor_transparent.png +0 -0
- package/workflows/cm/templates/pixel/dev/template.html +388 -0
- package/workflows/cm/templates/pixel/serve.sh +12 -0
- package/workflows/cm/templates/refactor/cm-refactor-denies.json +14 -0
- package/workflows/cm/templates/rules/backend-api.md +36 -0
- package/workflows/cm/templates/rules/coding-style.md +44 -0
- package/workflows/cm/templates/rules/database.md +27 -0
- package/workflows/cm/templates/rules/finance.md +32 -0
- package/workflows/cm/templates/rules/frontend.md +32 -0
- package/workflows/cm/templates/rules/git-workflow.md +25 -0
- package/workflows/cm/templates/rules/miniprogram.md +31 -0
- package/workflows/cm/templates/rules/security.md +31 -0
- package/workflows/cm/templates/rules/smart-contract.md +28 -0
- package/workflows/cm/templates/rules/testing.md +36 -0
- package/workflows/cm/templates/statusline/cm-statusline.sh +73 -0
- package/workflows/cm/templates/ui-lens/cm-ui-lens-extract.mjs +55 -0
- package/workflows.lock.json +39 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cm-prd
|
|
3
|
+
description: 用户说“把需求拆成可开发规格”“变更现有功能需求”或要求整理方案、任务和验收时使用。支持新项目、存量二开与需求变更;完成后停在人审规格,不直接编码。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# cm-prd — 需求文档 → 开发规格生成
|
|
7
|
+
|
|
8
|
+
执行前读取 `../../runtime/project-context.md`、`../../runtime/review.md`、
|
|
9
|
+
`../../runtime/model-efficiency.md` 与 `../../runtime/logging.md`。Codex 入口为
|
|
10
|
+
`$cm-prd`;Claude Code 跨平台入口为 `/cm-prd`,macOS/Linux 另有历史别名 `/cm:prd`。
|
|
11
|
+
|
|
12
|
+
新建和变更模式都读取 `references/phase-timing.md`,只为实际执行的阶段写配对
|
|
13
|
+
`progress/start|complete`;人工等待前关闭 segment,恢复后递增,不手算耗时。
|
|
14
|
+
|
|
15
|
+
用户明确要求外部专家,或为本次规格任务开启 AUTO 时,读取
|
|
16
|
+
`../../runtime/external-expert.md` 并执行 `../external-expert/SKILL.md` 的任务路由。
|
|
17
|
+
AUTO 可把复杂方案比较路由到 CONSULT、权威事实查证路由到 VERIFY,其余保持 LOCAL。
|
|
18
|
+
外部结论属于需求/设计输入,必须在本地对照项目事实并进入正常规格人审;AUTO 不
|
|
19
|
+
授权外发 docs 或代码内容。
|
|
20
|
+
|
|
21
|
+
支持两种模式:新建需求和需求变更。
|
|
22
|
+
|
|
23
|
+
## 输入参数
|
|
24
|
+
|
|
25
|
+
`用户本轮输入` 格式:
|
|
26
|
+
|
|
27
|
+
- **新建模式**:`$cm-prd {项目文件夹路径}`
|
|
28
|
+
- **变更模式**:`$cm-prd --change {N}.{feature-name} 变更内容描述`
|
|
29
|
+
- **可选用例输入**:追加 `--cases {json/md/txt路径}`,或在本轮消息直接粘贴用例
|
|
30
|
+
|
|
31
|
+
用户提供一个项目文件夹路径,文件夹结构约定:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
{项目文件夹}/
|
|
35
|
+
├── docs/ ← 需求文档(必须存在,PRD 从这里读取)
|
|
36
|
+
├── 1.xxx/ ← 已有的 specs(如有)
|
|
37
|
+
├── 2.xxx/ ← 本次生成的 specs
|
|
38
|
+
└── ...
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 项目角色路由
|
|
42
|
+
|
|
43
|
+
路径验证通过后,使用 `{CM_WORKFLOW_ROOT}/scripts/cm_workflow_config.py` 读取有效配置,
|
|
44
|
+
分别解析 `analyst`(需求分析)、`planner`(方案/任务拆分)及 `policies.generate_cases`:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python3 {CM_WORKFLOW_ROOT}/scripts/cm_workflow_config.py \
|
|
48
|
+
--project {CODE_PROJECT} --role analyst --runtime {codex|claude} --print-role
|
|
49
|
+
python3 {CM_WORKFLOW_ROOT}/scripts/cm_workflow_config.py \
|
|
50
|
+
--project {CODE_PROJECT} --role planner --runtime {codex|claude} --print-role
|
|
51
|
+
python3 {CM_WORKFLOW_ROOT}/scripts/cm_workflow_config.py \
|
|
52
|
+
--project {CODE_PROJECT} --print-effective
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
把返回的 `adapter`、`model`、`source` 和 `route_state` 当作本轮的请求路由元数据,
|
|
56
|
+
在对应分析/规划提示中注明;`model` 是别名,不能声称为已观测的后端模型。每次角色
|
|
57
|
+
边界按 `runtime/workflow-routing.md` 写一条 `decision`/`phase: route` 事件。配置未提供
|
|
58
|
+
时使用内置默认值;resolver 返回非零或配置错误时立即 `BLOCKED` 并报告字段路径,
|
|
59
|
+
不得进入分析/规划或生成规格。配置的适配器当前运行时不可用时记录 `warning`/`degrade`,
|
|
60
|
+
不得伪造调用成功或把外部专家变成编码执行器。
|
|
61
|
+
|
|
62
|
+
`analyst` 与 `planner` 的上下文和输出按 `runtime/model-efficiency.md` 分包:前者只取
|
|
63
|
+
当前需求与相关业务地图,后者接收分析结论、波及模块、约束和 AC 候选。稳定规则前缀
|
|
64
|
+
与动态需求分离;不得为方便而重复发送完整项目地图、全部源码或前序对话。只有真实
|
|
65
|
+
适配器响应返回 usage 时才记录计数。`route_state: managed-adapter` 时按共享合同调用
|
|
66
|
+
`cm-openai-compatible-call.py`,由它写唯一的 `model_usage`;不得由 Skill 重复写。
|
|
67
|
+
|
|
68
|
+
`generate_cases: false` 只关闭 CM 根据需求自动补生成的 `origin: generated` 用例;用户
|
|
69
|
+
或需求源已提供的测试用例仍须保留、规范化并进入审批,不能用项目配置删除测试意图。
|
|
70
|
+
|
|
71
|
+
项目/specs 路径验证通过后按 `runtime/logging.md` 写 `run_start`。生成规格、重置
|
|
72
|
+
审批位或终止时分别写 `spec_lifecycle` 与 `run_done`;详细需求和设计内容不进入主日志。
|
|
73
|
+
|
|
74
|
+
## 模式判断
|
|
75
|
+
|
|
76
|
+
如果 `用户本轮输入` 以 `--change` 开头 → **读取 `references/change-mode.md`** 执行变更模式(C1–C8)
|
|
77
|
+
否则 → 进入新建模式
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 新建模式
|
|
82
|
+
|
|
83
|
+
### Step 1: 解析输入,读取需求文档
|
|
84
|
+
|
|
85
|
+
从 `用户本轮输入` 提取项目文件夹路径,记为 `SPECS_DIR`。
|
|
86
|
+
|
|
87
|
+
读取 `{SPECS_DIR}/docs/` 下的所有文件作为需求源:
|
|
88
|
+
|
|
89
|
+
- 支持 `.md`、`.txt`、`.pdf`、`.html` 等文档格式
|
|
90
|
+
- **HTML 交互原型(可点击 PRD)→ 执行交互遍历协议,禁止只做静态截图**。可交互原型是一份可执行的需求文档,必须用无头浏览器(Playwright / Chrome DevTools)**主动遍历**:
|
|
91
|
+
|
|
92
|
+
1. **枚举**每个页面的全部可交互元素(按钮/链接/tab/表单/开关/列表项…)
|
|
93
|
+
2. **逐个操作**并记录三元组:`元素 → 动作 → 结果`(跳转到哪/弹了什么/状态怎么变/无响应)
|
|
94
|
+
3. 产出**功能点清单**:每个有响应的交互 → 对应一条 [F-xxx];**点了没反应的 → 列为"原型死区"进开放问题**(问用户:是原型没做完,还是本就不需要?不许静默丢弃)
|
|
95
|
+
4. **覆盖率自检**:可交互元素总数 = 功能需求数 + 死区数,对不上不得进入 Step 6
|
|
96
|
+
5. 遍历过程中逐状态截图(Step 8.5 的候选基准);三元组记录直接生成**交互流 AC 与 E2E 走查清单**
|
|
97
|
+
|
|
98
|
+
原型首先是需求,其次才是视觉候选。注意原型通病:只画理想态——异常态/空态/边界值靠 Step 5.5 歧义五问补齐
|
|
99
|
+
- 如果 docs/ 下有多个文件,全部读取并综合分析
|
|
100
|
+
- 输入含 `--cases` 或本轮粘贴了测试用例时,将其作为用户来源交给 Step 10.4;
|
|
101
|
+
JSON 先做语法校验,Markdown/文本在生成时归一化为测试合同
|
|
102
|
+
- 如果 docs/ 不存在或为空,报错提示用户先在 docs/ 下放入需求文档
|
|
103
|
+
|
|
104
|
+
### Step 2: 获取项目名称
|
|
105
|
+
|
|
106
|
+
- 从当前目录的 `package.json` name 字段、`Cargo.toml`、`go.mod` 等提取项目名
|
|
107
|
+
- 如无法提取,使用当前目录名
|
|
108
|
+
- 转为 kebab-case,记为 `PROJECT_NAME`
|
|
109
|
+
|
|
110
|
+
### Step 3: 探测项目架构类型
|
|
111
|
+
|
|
112
|
+
**代码项目根的确定(防在错误目录生成脏规格)**:`用户本轮输入` 中显式给了代码项目路径(如 `代码在~/code/app`)→ 以其为准;未给 → 用当前工作目录(约定:在代码项目内运行本命令),但**必须先自检**——当前目录含项目描述文件或源码、且其内容与需求文档所述业务相符;明显不符(如当前目录是另一个项目/工具仓库)→ **停下询问代码项目路径**,不得静默把错误目录当项目上下文(空目录检测只兜全空 case,兜不住"错但有效"的目录)。
|
|
113
|
+
|
|
114
|
+
扫描项目根目录、配置文件、目录结构、依赖声明,自行判断架构类型(monorepo / 多仓库 / 单体应用 / Web3 等)。记录 `ARCH_TYPE`。
|
|
115
|
+
|
|
116
|
+
交付形态为微信小程序,或项目存在原生 `project.config.json` + `app.json`、Taro/uni-app
|
|
117
|
+
微信构建目标时,标记 `DELIVERY_SHAPE=wechat-miniprogram` 并读取
|
|
118
|
+
`../cm-miniprogram-engineer/references/platform-readiness.md`。只出现“小程序”字样但
|
|
119
|
+
形态证据不足时进入 Step 5.5 确认,不得根据仓库名猜测。
|
|
120
|
+
|
|
121
|
+
**空项目检测**:代码项目不存在、或为空目录(无 package.json / Cargo.toml / go.mod 等项目描述文件,且无源码目录)→ **先问用户确认空目录的含义,不得自行假设**:
|
|
122
|
+
|
|
123
|
+
> "代码目录为空——这是【全新项目】(走 0→1 分支,我来推荐架构和脚手架),还是【存量项目还没 clone】(请先 clone 到该目录,再重新运行 $cm-prd)?"
|
|
124
|
+
|
|
125
|
+
- 确认全新项目 → 标记 `GREENFIELD=true`,**读取 `references/greenfield.md`** 叠加 G1–G4 规则,Step 4 跳过
|
|
126
|
+
- 确认未 clone → **中止本次执行**,提示 clone 完成后重跑(在不存在的项目上下文上生成 design.md 是有毒规格)
|
|
127
|
+
|
|
128
|
+
### Step 4: 读取项目上下文(存量项目 = 二开模式,叠加 B 规则)
|
|
129
|
+
|
|
130
|
+
- 按 `runtime/project-context.md` 读取项目约束和本需求相关规则,扫描两层目录了解模块划分
|
|
131
|
+
- 读取 `references/context-scope.md`,先做定向代码搜索,再设置
|
|
132
|
+
`CONTEXT_SCOPE=targeted|full`、加载对应地图/代码,并写 `decision/context_scope` 日志
|
|
133
|
+
- **B1 代码库参考文档判定**:先读代码项目根 CLAUDE.md 的「业务地图」字段(多层仓库
|
|
134
|
+
下以代码项目根为准,仓库根 CLAUDE.md 无此字段再看地图 00-index 头部;init 已判定过,
|
|
135
|
+
不重复判断)。字段=已生成/已刷新或目录存在 → 按 context-scope 清单渐进加载;字段=
|
|
136
|
+
跳过(小项目) → 不建议 scan,按范围直接读代码;字段缺失且文档不存在 → 建议先执行
|
|
137
|
+
`/codebase-context scan`,本轮按直接代码搜索继续;skill 未安装 → 提示重装最新包并按
|
|
138
|
+
直接代码搜索继续。任何路径都不得因追求 targeted 猜测波及面
|
|
139
|
+
|
|
140
|
+
**二开模式追加规则**(GREENFIELD=false 且本次需求会修改存量代码时生效)→ **读取 `references/brownfield.md`** 执行 B2 波及面 / B3 防护网基线 / B4 增量 specs / B5 拆分锚定地图。
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Step 5: 分析需求
|
|
144
|
+
|
|
145
|
+
**调用 `cm-product-manager` skill 执行本步和 Step 5.5**——用户故事、编号功能需求、验收标准的编写方法和歧义五问以该 skill 为准。
|
|
146
|
+
|
|
147
|
+
需求涉及**交易/资产/支付/代币/证券/金融营销**时,同时加载 `cm-finance-expert` skill 协同:领域正确性审核 + 营销合规红线扫描 + 合规开放问题(并入 Step 5.5)。法域确认结果须写入代码项目 `.claude/rules/finance.md` 头部字段;文件不存在时,以 `{CM_WORKFLOW_ROOT}/templates/rules/finance.md` 为骨架现场补生成,并在 AGENTS.md 与 CLAUDE.md 的相关规则说明中补充引用。
|
|
148
|
+
|
|
149
|
+
从文档中提取功能目标、用户故事、验收标准、约束条件、依赖。
|
|
150
|
+
|
|
151
|
+
### Step 5.5: 开放问题确认
|
|
152
|
+
|
|
153
|
+
分析需求后,如果存在以下情况,**必须暂停并与用户对话确认**,不要自行假设:
|
|
154
|
+
|
|
155
|
+
- 需求描述模糊或有歧义的功能点
|
|
156
|
+
- 多种技术实现方案且差异较大
|
|
157
|
+
- 缺少关键信息(如目标平台、兼容性要求、第三方服务选型)
|
|
158
|
+
- 业务逻辑有矛盾或不完整
|
|
159
|
+
- 涉及权限、支付、敏感操作等需要明确确认的功能
|
|
160
|
+
|
|
161
|
+
`DELIVERY_SHAPE=wechat-miniprogram` 时追加平台就绪检查:账号主体、服务类目/资质、
|
|
162
|
+
变现路径、权限与隐私、后端/合法域名和发布通道。会改变功能可行性或范围但未确认的
|
|
163
|
+
项目必须暂停;只影响后续提审的材料可记为发布待决,不阻塞本地规格与开发。平台政策
|
|
164
|
+
结论须记录当前官方查证日期与来源,无法查证时保留开放问题。
|
|
165
|
+
|
|
166
|
+
格式:
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
❓ 需要确认以下问题:
|
|
170
|
+
|
|
171
|
+
1. {问题描述} — {为什么需要确认}
|
|
172
|
+
2. {问题描述} — {为什么需要确认}
|
|
173
|
+
|
|
174
|
+
请逐一回复后继续生成 specs
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
所有问题确认完毕后再进入 Step 6。
|
|
178
|
+
|
|
179
|
+
### Step 6: 推断 feature 名称
|
|
180
|
+
|
|
181
|
+
根据需求内容生成一个简洁的 kebab-case 英文名称。
|
|
182
|
+
|
|
183
|
+
### Step 7: 生成 specs 目录
|
|
184
|
+
|
|
185
|
+
检查 `{SPECS_DIR}/` 下已有的编号目录(如 `1.xxx/`、`2.xxx/`),取最大编号 +1。
|
|
186
|
+
|
|
187
|
+
```text
|
|
188
|
+
{SPECS_DIR}/
|
|
189
|
+
├── docs/ ← 需求文档(输入)
|
|
190
|
+
├── 1.比如这是一个已有的标题/ ← 已有 specs
|
|
191
|
+
└── 2.{feature-name}/ ← 本次新建
|
|
192
|
+
├── requirements.md
|
|
193
|
+
├── design.md
|
|
194
|
+
├── tasks.md
|
|
195
|
+
└── test-cases.json ← 有可观察行为时生成
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Step 8: 生成 requirements.md
|
|
199
|
+
|
|
200
|
+
```markdown
|
|
201
|
+
# {Feature 名称} — 需求规格
|
|
202
|
+
|
|
203
|
+
## 概述
|
|
204
|
+
|
|
205
|
+
{一句话描述}
|
|
206
|
+
|
|
207
|
+
## 项目信息
|
|
208
|
+
|
|
209
|
+
- 项目名: {PROJECT_NAME}
|
|
210
|
+
- 架构类型: {ARCH_TYPE}
|
|
211
|
+
|
|
212
|
+
## 需求版本
|
|
213
|
+
|
|
214
|
+
| 日期 | 版本 | 说明 |
|
|
215
|
+
| ------------ | ---- | -------- |
|
|
216
|
+
| {YYYY-MM-DD} | v1 | 初始需求 |
|
|
217
|
+
|
|
218
|
+
## 用户故事
|
|
219
|
+
|
|
220
|
+
- 作为 {角色},我想要 {功能},以便 {价值}
|
|
221
|
+
|
|
222
|
+
## 功能需求
|
|
223
|
+
|
|
224
|
+
1. [F-001] {需求描述}
|
|
225
|
+
2. [F-002] {需求描述}
|
|
226
|
+
|
|
227
|
+
## 非功能需求
|
|
228
|
+
|
|
229
|
+
- 性能: {要求}
|
|
230
|
+
- 安全: {要求}
|
|
231
|
+
- 兼容性: {要求}
|
|
232
|
+
|
|
233
|
+
## 验收标准
|
|
234
|
+
|
|
235
|
+
- [ ] [AC-001] {标准描述}
|
|
236
|
+
|
|
237
|
+
## 依赖
|
|
238
|
+
|
|
239
|
+
- {外部服务/库}
|
|
240
|
+
|
|
241
|
+
## 平台就绪(仅微信小程序生成)
|
|
242
|
+
|
|
243
|
+
{按 cm-miniprogram-engineer/references/platform-readiness.md 记录状态、证据与负责人;
|
|
244
|
+
不写任何密钥、证件、Cookie 或测试账号密码}
|
|
245
|
+
|
|
246
|
+
## 开放问题
|
|
247
|
+
|
|
248
|
+
- {待确认事项}
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Step 8.5: UI 设计基准(涉及 UI 的 feature)
|
|
252
|
+
|
|
253
|
+
feature 涉及页面/界面时,在生成 design.md 前确定设计基准:
|
|
254
|
+
|
|
255
|
+
- **有 Figma/设计稿** → 通过 MCP 导出截图 + token 提取物,落盘 `{SPECS_DIR}/{N}.{feature-name}/design-baseline/`(防链接失效与云端改版导致基准漂移)
|
|
256
|
+
- **有 Stitch 项目** → 通过 Stitch MCP 拉取设计并导出 HTML/CSS 落盘 design-baseline/;导出的 HTML **按 Step 1 交互遍历协议处理**(多屏/流转设计可直接提取交互流与功能点)——Stitch 导出物默认按像素基准对待(它就是设计本体,不是示意)
|
|
257
|
+
- **有 HTML 交互原型**(Step 1 已截图)→ **必须人工三选一确认基准档位**(中性提问不带引导;高保真原型建议像素档,线框灰稿建议结构档):
|
|
258
|
+
- **① 像素基准**:UI 与交互 **1:1 还原**——截图落盘 design-baseline/ 作 BackstopJS 基准(≤1%),且**交互流提取为 E2E 走查清单**(每个跳转/状态切换/反馈逐条断言,交互不 1:1 视为验收失败)
|
|
259
|
+
- **② 结构基准**(多数原型的合理档):页面结构、信息层级、**交互流程必须一致**,视觉样式可再设计——验收为逐页元素清单核对 + 流程走查
|
|
260
|
+
- **③ 纯参考**:仅辅助理解需求,无对照验收——选此档即明确接受 UI 由 AI 自行发挥(历史事故:原型被降为参考后,产出与原型完全不符)
|
|
261
|
+
档位写入 design.md「设计基准」节;**无论哪档,原型的页面清单与跳转流程都已是需求的一部分(Step 1 规则),流程不允许自由发挥**
|
|
262
|
+
- **无设计稿且环境已安装 `huashu-design` skill** → 调用其生成高保真原型(**要求包含 hover/空态/错误态等交互态**),落盘同上;**人审规格时一并确认设计方向**(复用既有强制卡点,执行期零设计决策)
|
|
263
|
+
- **两者皆无** → 不建基准、**不生成 UI 还原任务**,该 feature 的 UI 由前端任务按 design.md 自行实现;可提示用户 `npx skills add alchaincyf/huashu-design`
|
|
264
|
+
|
|
265
|
+
**基准机读化(四种来源统一要求——截图给人看,规格表给 AI 抄)**:design-baseline/ 除截图外必须含**逐元素规格表**(spec-sheet.json:字体五件套/色值/几何/间距)。AI 看图估值的精度天花板极低,是还原度不理想的头号根因(实跑反馈);规格表按基准形态产出:
|
|
266
|
+
|
|
267
|
+
- Figma MCP → 直接读取节点精确值(排版/填充/自动布局间距)导出成表,不经截图转译
|
|
268
|
+
- Stitch 导出 / HTML 原型 → 用 `{CM_WORKFLOW_ROOT}/templates/ui-lens/cm-ui-lens-extract.mjs` 对基准页提取计算值成表;样式值优先**移植改造**而非重新想象
|
|
269
|
+
- **纯截图(最弱形态)** → 色板可精确采样成表;几何只能估算——规格表标注「几何估算档」,并明确提示用户:有 Figma/原型源尽量给源,纯截图基准的还原精度天花板显著更低
|
|
270
|
+
- **基准字体文件一并落盘**(还原页先加载同款字体再对比,防字体回退噪声淹没真差异)
|
|
271
|
+
|
|
272
|
+
有基准时,design.md 记录基准路径,且「接口契约」节须包含**组件契约**(组件名 / props / 事件)。
|
|
273
|
+
|
|
274
|
+
### Step 9: 生成 design.md
|
|
275
|
+
|
|
276
|
+
复用 Step 4 已加载的项目约束与规则;根据最终波及层补读新命中的相关规则,禁止再次
|
|
277
|
+
全量读取未变化的 CLAUDE/rules。设计方案必须遵循项目已有的技术规范和约定。
|
|
278
|
+
|
|
279
|
+
按功能模块设计,每个模块说明涉及哪些层(前端、后端、数据库、合约等),具体分层根据项目实际架构决定,不做硬编码限制。
|
|
280
|
+
|
|
281
|
+
```markdown
|
|
282
|
+
# {Feature 名称} — 技术设计
|
|
283
|
+
|
|
284
|
+
## 设计版本
|
|
285
|
+
|
|
286
|
+
| 日期 | 版本 | 说明 |
|
|
287
|
+
| ------------ | ---- | -------- |
|
|
288
|
+
| {YYYY-MM-DD} | v1 | 初始设计 |
|
|
289
|
+
|
|
290
|
+
## 项目架构
|
|
291
|
+
|
|
292
|
+
- 架构类型: {ARCH_TYPE}
|
|
293
|
+
- 涉及层: {根据项目实际情况列出}
|
|
294
|
+
|
|
295
|
+
## 功能模块设计
|
|
296
|
+
|
|
297
|
+
### 模块 1: {模块名}
|
|
298
|
+
|
|
299
|
+
{技术方案,遵循 .claude/rules/ 中的规范}
|
|
300
|
+
|
|
301
|
+
**涉及层及关键设计:**
|
|
302
|
+
|
|
303
|
+
{根据项目实际分层描述,如数据模型、API 接口、组件设计、合约接口等}
|
|
304
|
+
|
|
305
|
+
### 模块 2: {模块名}
|
|
306
|
+
|
|
307
|
+
...
|
|
308
|
+
|
|
309
|
+
## 接口契约
|
|
310
|
+
|
|
311
|
+
{API、RPC、合约接口等 — 根据项目类型决定}
|
|
312
|
+
|
|
313
|
+
## 数据模型
|
|
314
|
+
|
|
315
|
+
{数据表/模型/链上存储 — 根据项目类型决定}
|
|
316
|
+
|
|
317
|
+
## 安全考虑
|
|
318
|
+
|
|
319
|
+
{基于 .claude/rules/security.md 和项目特有的安全规范}
|
|
320
|
+
|
|
321
|
+
## 技术决策
|
|
322
|
+
|
|
323
|
+
| 决策 | 选项 | 理由 |
|
|
324
|
+
| ---- | ---- | ---- |
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### Step 9.5: 方案对抗审查(最贵的决策补上第二双眼睛)
|
|
328
|
+
|
|
329
|
+
design.md 生成后,满足任一触发条件 → 按 `runtime/review.md` 交**新上下文的独立审查者对抗审查一轮**:
|
|
330
|
+
|
|
331
|
+
- GREENFIELD 的 ADR(架构选型是最贵决策)
|
|
332
|
+
- design 含新模块、架构边界或依赖方向变化、跨模块/跨仓库数据流
|
|
333
|
+
- 新增第三方运行时依赖或改变核心工具链
|
|
334
|
+
- 修改公开接口契约、数据模型/数据库迁移、认证授权、支付资产或其他安全敏感逻辑
|
|
335
|
+
- 功能点 F ≥ 5 的大 feature
|
|
336
|
+
|
|
337
|
+
**仅修改存量模块不再单独触发本步。** 单模块内部的文案、样式、小交互、校验、
|
|
338
|
+
现有模式下的小型 CRUD、缺陷修复或补测试,在没有命中上述风险信号时跳过本步,
|
|
339
|
+
并把关键方案检查合并到 Step 10.6。执行过程中一旦发现真实范围扩大并命中风险信号,
|
|
340
|
+
必须补做本步后再继续生成最终任务单。
|
|
341
|
+
|
|
342
|
+
**投喂内容**:requirements.md + design.md 全文 + 项目上下文中的相关规范 +(二开)「波及面」段与被改存量模块现状代码。
|
|
343
|
+
提示词要义:"**这是隔壁同事做的方案,详细审查一下**"——重点查架构隔离、模块边界、与现有管线的耦合、数据流缺口;只报告有具体失败场景的问题,零发现明说(审查产出纪律同 N4)。
|
|
344
|
+
|
|
345
|
+
调 reviewer 前先真跑 `cm-prd-review-gate.py inspect --stage design`,证据固定为
|
|
346
|
+
`prd-{feature}-design-r1.md`,处置回执固定为
|
|
347
|
+
`prd-{feature}-design-disposition.json`:`dispatch_once` 才允许调用 reviewer;
|
|
348
|
+
`resume_disposition` 表示 r1 已落盘,直接继续应用/升级现有 findings,禁止重审;
|
|
349
|
+
`completed` 直接进入 Step 10。处置完成后真跑 `record --artifact {design.md}`,记录
|
|
350
|
+
`applied|no_findings|escalated`、finding/unresolved 数量和 r1 SHA。进程在 r1 落盘后
|
|
351
|
+
崩溃也只能恢复处置,不能再消耗一轮审查。
|
|
352
|
+
|
|
353
|
+
**单轮硬边界(ROUND_LIMIT=1)**:每个 feature 在本阶段只允许一次 review attempt,
|
|
354
|
+
独立 reviewer 与 `self-degraded` 复查二选一。零发现直接进 Step 10;
|
|
355
|
+
采纳项由主执行者修正 design.md 后进 Step 10,并由后续 10.5 自检验证完整规格;分歧或
|
|
356
|
+
无法机械确认的项写入摘要卡「风险点」交人裁决。**禁止 review → 修正 → 再 review**,
|
|
357
|
+
也禁止换一个审查者变相开启第 2 轮;凭证只允许 `design-r1.md`,不得生成 `design-r2.md`。
|
|
358
|
+
任何审查尝试(包括 `self-degraded`)均消耗唯一一轮;通道恢复后不得补审。
|
|
359
|
+
(实跑教训:公共 CLI 契约的 3 轮方案复审耗时 11m59s,后两轮应由自检与人审承担。)
|
|
360
|
+
未命中上述风险信号的低风险 feature 不触发,零额外负担。
|
|
361
|
+
**凭证落盘**:审查原文 tee 到 `{SPECS_DIR}/.reviews/prd-{feature}-design-r1.md`——摘要卡「方案对抗审查」行必须与凭证对得上,无凭证的数字是自报(凭证教义全框架一体,规格期不豁免)。
|
|
362
|
+
|
|
363
|
+
> 依据:代码有 N4 对抗、规格有 10.5 自检,唯独技术方案此前无第二模型把关——而方案错误是最贵的错误(行业重度实践的最大单笔收益正是方案期拦截架构缺陷)。
|
|
364
|
+
|
|
365
|
+
### Step 10: 生成 tasks.md
|
|
366
|
+
|
|
367
|
+
**按功能拆任务。** AI 执行时根据 design.md 自动判断每个任务涉及哪些层。
|
|
368
|
+
|
|
369
|
+
```markdown
|
|
370
|
+
# {Feature 名称} — 任务清单
|
|
371
|
+
|
|
372
|
+
## 任务版本
|
|
373
|
+
|
|
374
|
+
| 日期 | 版本 | 说明 |
|
|
375
|
+
| ------------ | ---- | -------- |
|
|
376
|
+
| {YYYY-MM-DD} | v1 | 初始任务 |
|
|
377
|
+
|
|
378
|
+
## 项目信息
|
|
379
|
+
|
|
380
|
+
- 项目名: {PROJECT_NAME}
|
|
381
|
+
- 架构类型: {ARCH_TYPE}
|
|
382
|
+
- specs 路径: {SPECS_DIR}/{N}.{feature-name}/
|
|
383
|
+
|
|
384
|
+
## 任务列表
|
|
385
|
+
|
|
386
|
+
### UI 还原(仅当存在 design-baseline 时生成本节)
|
|
387
|
+
|
|
388
|
+
- [ ] T-001: 还原 {页面/组件} ~30min(基准: design-baseline/;本 feature 的前端功能任务依赖本任务)
|
|
389
|
+
|
|
390
|
+
### 功能 1: {功能名}
|
|
391
|
+
|
|
392
|
+
- [ ] T-002: {任务描述} ~{预估时间}
|
|
393
|
+
- [ ] T-003: {任务描述} ~{预估时间}
|
|
394
|
+
|
|
395
|
+
### 功能 2: {功能名}
|
|
396
|
+
|
|
397
|
+
- [ ] T-003: {任务描述} ~{预估时间}
|
|
398
|
+
|
|
399
|
+
### 集成与测试
|
|
400
|
+
|
|
401
|
+
- [ ] T-010: 联调测试 ~{预估时间}
|
|
402
|
+
- [ ] T-011: E2E 测试 ~{预估时间}
|
|
403
|
+
- [ ] T-012: 部署 staging 并冒烟验证 ~15min(依赖本 feature 全部开发与测试任务)
|
|
404
|
+
|
|
405
|
+
> 部署任务前提:项目存在部署形态(Dockerfile / CI 配置 / 部署脚本,或 0→1 项目——bootstrap 已建 CI 骨架)才生成 T-012;**纯本地工具、库等无部署形态的项目不生成**,避免执行期反复触发"无 staging 环境"上报。
|
|
406
|
+
|
|
407
|
+
## 依赖关系
|
|
408
|
+
|
|
409
|
+
- T-002 依赖 T-001
|
|
410
|
+
|
|
411
|
+
## 风险点
|
|
412
|
+
|
|
413
|
+
- {可能遇到的问题及应对}
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
**任务拆解原则:**
|
|
417
|
+
|
|
418
|
+
- 按功能拆,AI 执行时读 design.md 自动识别涉及哪些层;**二开项目按 B5 锚定业务地图**(feature 沿 07 线路、任务尽量单模块)
|
|
419
|
+
- 原子性,可独立完成和验证
|
|
420
|
+
- **同一组件/同一文件内的行为不拆分为多个任务**(如"渲染列表项"和"列表项的删除确认"归一个任务)——拆开会导致执行时自然合并、任务标记与提交失配(实跑验证的教训)
|
|
421
|
+
- 预估完成时间(5min / 15min / 30min / 1h)
|
|
422
|
+
- **粒度控制**:每个子 specs(feature 目录)不宜过大,单个 tasks.md 控制在 **10-15 个任务以内**。如果需求过大,应在 Step 6 之前拆成多个独立的 feature 目录(如 `2.user-auth-login`、`3.user-auth-register`),每个 feature 有自己的 requirements/design/tasks 三件套。这样 cm:ai 执行时上下文可控,不会因为 specs 太大导致丢失关键信息。
|
|
423
|
+
|
|
424
|
+
### Step 10.4: 生成 AI 测试合同(条件触发)
|
|
425
|
+
|
|
426
|
+
读取 `../../runtime/test-contract.md`,按其中的生成条件为适用 feature 写
|
|
427
|
+
`test-cases.json`。用户或需求源提供的用例优先且标记 `origin: "user"`;其余根据
|
|
428
|
+
AC、design 和 tasks 补齐,保证 AC→TC→Task 可追踪。纯文档/注释/类型/无行为重构
|
|
429
|
+
不生成空文件。写完执行 `scripts/validate-test-cases.py`。
|
|
430
|
+
|
|
431
|
+
`DELIVERY_SHAPE=wechat-miniprogram` 时同时读取
|
|
432
|
+
`../cm-miniprogram-engineer/references/release-checklist.md`,只为本 feature 实际使用的
|
|
433
|
+
授权、平台 API、网络/云能力和真机差异生成用例;不用的能力不扩写。需要开发者工具、
|
|
434
|
+
真机或后台才能证明的 expected 必须保留相应执行前提,不得改写成 Web 可替代验证。
|
|
435
|
+
|
|
436
|
+
### Step 10.5: 规格自检(机器项,AI 自查自修,人不参与)
|
|
437
|
+
|
|
438
|
+
读取 `references/spec-self-check.md` 并逐项执行;测试合同必须调用 `scripts/validate-test-cases.py`,不得靠目测。
|
|
439
|
+
|
|
440
|
+
### Step 10.6: 独立规格审查(方案 + 任务拆分)
|
|
441
|
+
|
|
442
|
+
10.5 自检是机器项,查不出「**方案是否明显错向、任务是否拆对**」。自检通过后,
|
|
443
|
+
按 `runtime/review.md` 把精简的方案与拆分结果交给新上下文的独立审查者。Step 9.5
|
|
444
|
+
已触发时不重复审完整方案;Step 9.5 因低风险跳过时,本步同时承担关键方案检查:
|
|
445
|
+
|
|
446
|
+
- **投喂内容**:requirements.md 功能点清单 + tasks.md 全文 + design.md 的方案摘要、
|
|
447
|
+
关键技术决策、接口/数据契约与「波及面」段(二开)。不喂三件套全文;Step 9.5
|
|
448
|
+
已审过完整方案时,方案部分只用于核对任务有没有偏离已审设计。
|
|
449
|
+
- **提示词要义**:"这是隔壁同事整理的开发规格。先检查方案有没有明显错向、遗漏的
|
|
450
|
+
失败场景或与现有边界冲突,再检查拆分质量:①任务边界有无重叠/遗漏 ②依赖顺序
|
|
451
|
+
会不会卡死 ③粒度是否适合单任务交付验证 ④二开:波及面有没有漏掉会被牵连的
|
|
452
|
+
模块。只报有具体后果的问题,没有问题就明说。"
|
|
453
|
+
- **单轮硬边界(ROUND_LIMIT=1)**:每个 feature 在本阶段只允许一次 review attempt,
|
|
454
|
+
独立 reviewer 与 `self-degraded` 复查二选一。采纳项修正 specs 后
|
|
455
|
+
重跑一次 10.5 自检;分歧或自检不能证明的项写入摘要卡「风险点」交人裁决。
|
|
456
|
+
**禁止 review → 修正 → 再 review**,也禁止换审查者变相开启第 2 轮;凭证只允许
|
|
457
|
+
`split-r1.md`,不得生成 `split-r2.md`。(实跑教训:规格修正后的再次召回复审没有
|
|
458
|
+
新增独立决策层,却继续占用主流程时间。)
|
|
459
|
+
任何审查尝试(包括 `self-degraded`)均消耗唯一一轮;通道恢复后不得补审。
|
|
460
|
+
- **凭证落盘**:原始审查结果写入 `{SPECS_DIR}/.reviews/prd-{feature}-split-r1.md`,文件头使用 review contract 的 `reviewer/independent/at/scope` 字段
|
|
461
|
+
- 调 reviewer 前同样真跑 `cm-prd-review-gate.py inspect --stage split`;只在
|
|
462
|
+
`dispatch_once` 调用一次,`resume_disposition` 复用已有 r1,`completed` 不再审。
|
|
463
|
+
findings 处置并重跑一次 10.5 后,真跑 `record`,artifact 传 requirements.md、
|
|
464
|
+
design.md、tasks.md 及存在的 test-cases.json,生成
|
|
465
|
+
`prd-{feature}-split-disposition.json`。回执与 r1 SHA 不一致或发现 r2 时立即 BLOCKED。
|
|
466
|
+
- **降级**:无法建立独立上下文时,由主执行者对抗式复查,凭证写 `self-degraded` / `independent: false`;这是增益层,不单独因降级停车
|
|
467
|
+
|
|
468
|
+
> 依据:低风险小需求不值得额外支付一轮完整方案对抗,但仍需要第二双眼睛同时检查
|
|
469
|
+
> 关键方案与任务拆分;高风险需求继续保留 Step 9.5 + 本步两层审查。
|
|
470
|
+
|
|
471
|
+
### Step 11: 输出总结(附规格摘要卡 + 审查清单)
|
|
472
|
+
|
|
473
|
+
**先输出规格摘要卡**——人审的第一入口是这张一屏卡片,不是三个长文件(实跑教训:直接丢长文件,人审会退化成扫一眼就"通过"):
|
|
474
|
+
|
|
475
|
+
```text
|
|
476
|
+
┌─ 📋 规格摘要卡 ────────────────────────────
|
|
477
|
+
│ 交付形态: {Web/App/小程序…} ← 第一分叉,看错全错
|
|
478
|
+
│ Feature: {N 个}: {名称列表}
|
|
479
|
+
│ 功能点: {N} 个 | AC: {N} 条 | 任务: {N} 个(预估 {x}h)
|
|
480
|
+
│ 开放问题: {已答 N / 共 N}——{逐条一行: 问题→答案}
|
|
481
|
+
│ 风险点: {金融/合规/破坏性操作等敏感项,无则"无"}
|
|
482
|
+
│ 上下文范围: {定向 / 完整 / 定向→完整(reason_code)}
|
|
483
|
+
│ 平台就绪: {就绪/待官方核验 N 项/不适用}
|
|
484
|
+
│ UI 基准: {像素级/结构级/纯参考/无}
|
|
485
|
+
│ 🧪 AI 测试合同: {N 条(user N/generated N) / 跳过(无可观察行为)}
|
|
486
|
+
│ 🔎 规格自检: {N}/{N} 通过{(未过项已列入风险点)}
|
|
487
|
+
│ 🧠 方案对抗审查: {通过 / {N}条已修 / 跳过(低风险,并入独立规格审查)}
|
|
488
|
+
│ 🤖 独立规格审查(方案+拆分): {通过 / {N}条已修 / 降级自审}
|
|
489
|
+
└────────────────────────────────────────────
|
|
490
|
+
有疑问的行,点开对应文件细看;摘要卡没问题再走下面的审查清单。
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
完成后报告:
|
|
494
|
+
|
|
495
|
+
- Feature 名称和序号、Specs 路径、涉及的技术层、总任务数和预估总时间
|
|
496
|
+
|
|
497
|
+
并输出**规格审查清单**——人审规格不是"看一眼",按此逐项检查:
|
|
498
|
+
|
|
499
|
+
```text
|
|
500
|
+
📋 规格审查清单(人审时逐项勾选)
|
|
501
|
+
- [ ] 任务跨 feature 查重:同一产物(文件/模块)未出现在多个任务中(实跑教训:bootstrap 底座与 feature 数据层重复)
|
|
502
|
+
- [ ] 依赖关系完整:每个任务的前置依赖已声明,无环
|
|
503
|
+
- [ ] AC 可测试:每条验收标准都能回答"怎么验证"
|
|
504
|
+
- [ ] 粒度合规:同一组件/文件的行为未拆成多任务;单 feature ≤15 个任务
|
|
505
|
+
- [ ] 开放问题已全部回答,敏感决策(法域/支付/权限)有人工确认记录
|
|
506
|
+
- [ ] **交付形态与需求意图一致**(要 App 别画成网页),且已写入 ADR 与 CLAUDE.md 字段
|
|
507
|
+
- [ ] **原型功能点覆盖 100%**(有交互原型时):遍历记录中每个可交互元素都有对应 [F-xxx] 或死区标注,无静默丢弃
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
**规格审批位落盘**:报告输出后真跑
|
|
511
|
+
`python3 {CM_WORKFLOW_ROOT}/scripts/cm-spec-manifest.py {SPECS_DIR}`,把返回的
|
|
512
|
+
`specFiles`(每个 feature 的 requirements/design/tasks 及可选 test-cases 规格语义 SHA;
|
|
513
|
+
任务/AC 的运行期 `[x]` 会规范化为 `[ ]`,其余内容不忽略)
|
|
514
|
+
写入 `{SPECS_DIR}/.cm-specs-status` 单行 JSON;为旧版消费者同时保留由 manifest
|
|
515
|
+
筛出的 `testCases`:
|
|
516
|
+
`{"status":"awaiting_review","at":"{时间}","features":["1.xxx",...],"specFiles":[{"path":"1.xxx/requirements.md","sha256":"..."}],"testCases":[]}`
|
|
517
|
+
随后写 `spec_lifecycle/generated`、`spec_lifecycle/awaiting_review` 和 `run_done`,仅记录
|
|
518
|
+
feature/task/case 数量、状态与 specs 路径。
|
|
519
|
+
最终报告注明阶段耗时事件已记录;具体耗时由日志按 operation_id + segment 计算。
|
|
520
|
+
|
|
521
|
+
**硬停车(不可违反)**:本命令的终点就是摘要卡与审查清单——**任何情况下不得在本会话顺势启动开发**,对话里的"继续"不构成开发授权。提示用户:**逐项审查通过后,运行 `$cm-ai` 开始开发**(N1 有入口闸:未审批的 specs 会先要求确认摘要卡)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# $cm-prd 模式文件 — 二开模式(B2–B5)
|
|
2
|
+
|
|
3
|
+
> 由 $cm-prd Step 4 判定「存量项目且本次需求会修改存量代码」时读取本文件。B1(加载参考文档)保留在主文件 Step 4。规则内容与主文件同源拆分,语义未变。
|
|
4
|
+
|
|
5
|
+
**二开模式追加规则(GREENFIELD=false 且本次需求会修改存量代码时生效)**:
|
|
6
|
+
|
|
7
|
+
- **B2 波及面分析**:对每个将被修改的存量模块,基于参考文档(03-architecture 模块关系 / 04-api-routes 调用方 / 07-business-logic 线路)+ 代码搜索核实,在 design.md 写「波及面」段:改哪里 → 谁调用它 → 哪些老功能可能受影响。**波及面是 QA 回归范围的数据源**
|
|
8
|
+
- **B3 防护网任务**:凡 tasks.md 中包含"修改存量模块"的 feature,第一个任务固定为**防护网基线**。**项目已有测试资产**(jest/vitest 等且可运行)→ 基线 = 跑通存量全量测试并记录结果,**不重复造快照**(实跑验证:184 用例的成熟项目直接复用,前后各跑一次);**无测试资产** → 才写现状快照测试锁住将被修改模块的当前行为(不判断对错,只锁现状)。开发后复跑基线,变红即为碰坏老行为的信号
|
|
9
|
+
- **B4 specs 只覆盖增量**:不为整个存量系统补规格;只为本次改动涉及的模块建规格,存量行为"用到哪、记到哪"(记进参考文档 07,而不是 specs)
|
|
10
|
+
- **B5 拆分锚定地图**:feature 与任务的边界对齐业务地图,不凭感觉切——
|
|
11
|
+
- **feature 沿业务线路拆**(07-business-logic 的线路):需求同时触及多条线路(如"行情展示"+"导出")→ 按线路切成多个 feature,一条线路一个 feature
|
|
12
|
+
- **任务尽量单模块**(03-architecture 的模块关系):一个任务的改动落在一个模块内;确需跨模块的任务,描述中显式列出涉及模块清单(审查与波及面据此聚焦)
|
|
13
|
+
- **地图盲区检测**:需求涉及的逻辑在 07 中找不到对应线路 → 说明地图有盲区,先对该区域增量补扫(scan 只读相关目录)再拆分——拆错边界的成本远高于补扫
|