@bastani/atomic 0.9.20-alpha.2 → 0.9.20-alpha.4
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 +148 -0
- package/README.md +15 -7
- package/dist/builtin/intercom/CHANGELOG.md +18 -0
- package/dist/builtin/intercom/README.md +2 -2
- package/dist/builtin/intercom/broker/send-handler.ts +59 -2
- package/dist/builtin/intercom/index.bundle.mjs +101 -16
- package/dist/builtin/intercom/package.json +3 -3
- package/dist/builtin/intercom/session-target.ts +34 -9
- package/dist/builtin/intercom/skills/intercom/SKILL.md +4 -4
- package/dist/builtin/mcp/CHANGELOG.md +13 -0
- package/dist/builtin/mcp/OAUTH.md +1 -1
- package/dist/builtin/mcp/README.md +3 -1
- package/dist/builtin/mcp/index.bundle.mjs +412 -64
- package/dist/builtin/mcp/package.json +3 -3
- package/dist/builtin/subagents/CHANGELOG.md +27 -0
- package/dist/builtin/subagents/README.md +2 -2
- package/dist/builtin/subagents/agents/code-simplifier.md +2 -3
- package/dist/builtin/subagents/agents/codebase-analyzer.md +2 -3
- package/dist/builtin/subagents/agents/codebase-locator.md +2 -3
- package/dist/builtin/subagents/agents/codebase-online-researcher.md +2 -3
- package/dist/builtin/subagents/agents/codebase-pattern-finder.md +2 -3
- package/dist/builtin/subagents/agents/codebase-research-analyzer.md +2 -3
- package/dist/builtin/subagents/agents/codebase-research-locator.md +2 -3
- package/dist/builtin/subagents/agents/debugger.md +1 -2
- package/dist/builtin/subagents/agents/worker.md +1 -2
- package/dist/builtin/subagents/package.json +4 -8
- package/dist/builtin/subagents/skills/subagent/SKILL.md +15 -13
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +249 -63
- package/dist/builtin/web-access/CHANGELOG.md +18 -0
- package/dist/builtin/web-access/index.bundle.mjs +372 -300
- package/dist/builtin/web-access/package.json +3 -3
- package/dist/builtin/workflows/CHANGELOG.md +68 -0
- package/dist/builtin/workflows/README.md +29 -30
- package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
- package/dist/builtin/workflows/builtin/{chunk-yeee2jrc.js → chunk-119kxb28.js} +5 -46
- package/dist/builtin/workflows/builtin/chunk-1dydq7w3.js +9722 -0
- package/dist/builtin/workflows/builtin/{chunk-31j2gs7h.js → chunk-9y0f90rd.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-z29qbehr.js → chunk-d1xqh1rd.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-zqtm1d2c.js → chunk-hnbbb5r0.js} +12 -217
- package/dist/builtin/workflows/builtin/{chunk-wf741bv3.js → chunk-k18g9me8.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-g0csgs7w.js → chunk-kf5xpbkz.js} +8 -10
- package/dist/builtin/workflows/builtin/{chunk-a2kdsqn8.js → chunk-n4yxrsm9.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-xtxcq5tj.js → chunk-n8g2da69.js} +17 -1
- package/dist/builtin/workflows/builtin/{chunk-fg9esgkj.js → chunk-scgprmdj.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-6w6cvk6b.js → chunk-sn5mchnx.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-ewkkkbak.js → chunk-vt9zgr9d.js} +9 -91
- package/dist/builtin/workflows/builtin/classify-and-act.js +3 -3
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -3
- package/dist/builtin/workflows/builtin/generate-and-filter.js +3 -3
- package/dist/builtin/workflows/builtin/goal.js +4 -4
- package/dist/builtin/workflows/builtin/index.js +12 -12
- package/dist/builtin/workflows/builtin/loop-until-done.js +3 -3
- package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
- package/dist/builtin/workflows/builtin/ralph.js +4 -4
- package/dist/builtin/workflows/builtin/steering-context.js +1 -1
- package/dist/builtin/workflows/builtin/tournament.js +3 -3
- package/dist/builtin/workflows/package.json +3 -3
- package/dist/builtin/workflows/src/authoring.d.ts +2 -0
- package/dist/builtin/workflows/src/durable/dependency-doctor-types.d.ts +42 -0
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +82110 -78759
- package/dist/builtin/workflows/src/index.js +8900 -1200
- package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +11 -0
- package/dist/builtin/workflows/src/shared/authoring-contract-ui.d.ts +4 -1
- package/dist/bun/split-loader.js +13 -0
- package/dist/bun/split-loader.js.map +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-accessors.d.ts.map +1 -1
- package/dist/core/agent-session-accessors.js +2 -1
- package/dist/core/agent-session-accessors.js.map +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-auto-compaction.js +9 -2
- package/dist/core/agent-session-auto-compaction.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts +3 -1
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +18 -6
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-compaction.js +37 -14
- package/dist/core/agent-session-compaction.js.map +1 -1
- package/dist/core/agent-session-events.d.ts +6 -6
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +145 -62
- package/dist/core/agent-session-events.js.map +1 -1
- package/dist/core/agent-session-export.d.ts +1 -1
- package/dist/core/agent-session-export.d.ts.map +1 -1
- package/dist/core/agent-session-export.js +18 -19
- package/dist/core/agent-session-export.js.map +1 -1
- package/dist/core/agent-session-extension-bindings.d.ts +3 -2
- package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
- package/dist/core/agent-session-extension-bindings.js +274 -70
- package/dist/core/agent-session-extension-bindings.js.map +1 -1
- package/dist/core/agent-session-message-queue.d.ts +1 -1
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +30 -4
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +19 -11
- package/dist/core/agent-session-methods.d.ts.map +1 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-models.d.ts +2 -2
- package/dist/core/agent-session-models.d.ts.map +1 -1
- package/dist/core/agent-session-models.js +38 -29
- package/dist/core/agent-session-models.js.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.d.ts +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session-post-tool-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-post-tool-compaction.js +18 -1
- package/dist/core/agent-session-post-tool-compaction.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +104 -22
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-queue-pause.d.ts +2 -0
- package/dist/core/agent-session-queue-pause.d.ts.map +1 -1
- package/dist/core/agent-session-queue-pause.js +13 -2
- package/dist/core/agent-session-queue-pause.js.map +1 -1
- package/dist/core/agent-session-retry.d.ts +0 -3
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +24 -11
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/agent-session-runtime-auth.d.ts.map +1 -1
- package/dist/core/agent-session-runtime-auth.js +10 -0
- package/dist/core/agent-session-runtime-auth.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +17 -1
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +428 -197
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +4 -0
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +31 -2
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session-state.d.ts +10 -2
- package/dist/core/agent-session-state.d.ts.map +1 -1
- package/dist/core/agent-session-state.js +32 -22
- package/dist/core/agent-session-state.js.map +1 -1
- package/dist/core/agent-session-summary.d.ts.map +1 -1
- package/dist/core/agent-session-summary.js +9 -2
- package/dist/core/agent-session-summary.js.map +1 -1
- package/dist/core/agent-session-tasks.d.ts +1 -0
- package/dist/core/agent-session-tasks.d.ts.map +1 -1
- package/dist/core/agent-session-tasks.js +24 -3
- package/dist/core/agent-session-tasks.js.map +1 -1
- package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
- package/dist/core/agent-session-tool-hooks.js +26 -3
- package/dist/core/agent-session-tool-hooks.js.map +1 -1
- package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
- package/dist/core/agent-session-tool-registry.js +0 -2
- package/dist/core/agent-session-tool-registry.js.map +1 -1
- package/dist/core/agent-session-transfer.js.map +1 -1
- package/dist/core/agent-session-tree.d.ts.map +1 -1
- package/dist/core/agent-session-tree.js +6 -0
- package/dist/core/agent-session-tree.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +5 -0
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +15 -8
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +113 -66
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts +5 -3
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +18 -5
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/builtin-diagnostics.d.ts +2 -0
- package/dist/core/builtin-diagnostics.d.ts.map +1 -0
- package/dist/core/builtin-diagnostics.js +14 -0
- package/dist/core/builtin-diagnostics.js.map +1 -0
- package/dist/core/builtin-packages.d.ts +5 -2
- package/dist/core/builtin-packages.d.ts.map +1 -1
- package/dist/core/builtin-packages.js +24 -3
- package/dist/core/builtin-packages.js.map +1 -1
- package/dist/core/builtin-resource-loader.d.ts +4 -0
- package/dist/core/builtin-resource-loader.d.ts.map +1 -0
- package/dist/core/builtin-resource-loader.js +239 -0
- package/dist/core/builtin-resource-loader.js.map +1 -0
- package/dist/core/cache-retention.d.ts +4 -0
- package/dist/core/cache-retention.d.ts.map +1 -0
- package/dist/core/cache-retention.js +58 -0
- package/dist/core/cache-retention.js.map +1 -0
- package/dist/core/cache-stats.d.ts.map +1 -1
- package/dist/core/cache-stats.js +11 -0
- package/dist/core/cache-stats.js.map +1 -1
- package/dist/core/cache-warmer.d.ts +66 -0
- package/dist/core/cache-warmer.d.ts.map +1 -0
- package/dist/core/cache-warmer.js +313 -0
- package/dist/core/cache-warmer.js.map +1 -0
- package/dist/core/child-session-options.d.ts +5 -0
- package/dist/core/child-session-options.d.ts.map +1 -0
- package/dist/core/child-session-options.js +30 -0
- package/dist/core/child-session-options.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +2 -2
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction-boundary.d.ts +29 -1
- package/dist/core/compaction/compaction-boundary.d.ts.map +1 -1
- package/dist/core/compaction/compaction-boundary.js +37 -4
- package/dist/core/compaction/compaction-boundary.js.map +1 -1
- package/dist/core/compaction/compaction-runner.d.ts.map +1 -1
- package/dist/core/compaction/compaction-runner.js +18 -5
- package/dist/core/compaction/compaction-runner.js.map +1 -1
- package/dist/core/compaction/compaction-types.d.ts +7 -0
- package/dist/core/compaction/compaction-types.d.ts.map +1 -1
- package/dist/core/compaction/compaction-types.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +18 -0
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/fallback-planner.d.ts +1 -0
- package/dist/core/compaction/fallback-planner.d.ts.map +1 -1
- package/dist/core/compaction/fallback-planner.js +2 -0
- package/dist/core/compaction/fallback-planner.js.map +1 -1
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/index.d.ts.map +1 -1
- package/dist/core/compaction/index.js +1 -0
- package/dist/core/compaction/index.js.map +1 -1
- package/dist/core/compaction/range-planner.d.ts.map +1 -1
- package/dist/core/compaction/range-planner.js +3 -3
- package/dist/core/compaction/range-planner.js.map +1 -1
- package/dist/core/compaction/session-summarization.d.ts.map +1 -1
- package/dist/core/compaction/session-summarization.js +2 -1
- package/dist/core/compaction/session-summarization.js.map +1 -1
- package/dist/core/compaction/whole-context-stats.d.ts +21 -0
- package/dist/core/compaction/whole-context-stats.d.ts.map +1 -0
- package/dist/core/compaction/whole-context-stats.js +32 -0
- package/dist/core/compaction/whole-context-stats.js.map +1 -0
- package/dist/core/credential-screening.d.ts +17 -0
- package/dist/core/credential-screening.d.ts.map +1 -0
- package/dist/core/credential-screening.js +30 -0
- package/dist/core/credential-screening.js.map +1 -0
- package/dist/core/decision-provider.d.ts +4 -0
- package/dist/core/decision-provider.d.ts.map +1 -0
- package/dist/core/decision-provider.js +12 -0
- package/dist/core/decision-provider.js.map +1 -0
- package/dist/core/execution-model-router.d.ts +28 -0
- package/dist/core/execution-model-router.d.ts.map +1 -0
- package/dist/core/execution-model-router.js +165 -0
- package/dist/core/execution-model-router.js.map +1 -0
- package/dist/core/extensions/agent-events.d.ts +4 -4
- package/dist/core/extensions/agent-events.d.ts.map +1 -1
- package/dist/core/extensions/agent-events.js.map +1 -1
- package/dist/core/extensions/api-types.d.ts +46 -40
- package/dist/core/extensions/api-types.d.ts.map +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/context-types.d.ts +7 -1
- package/dist/core/extensions/context-types.d.ts.map +1 -1
- package/dist/core/extensions/context-types.js.map +1 -1
- package/dist/core/extensions/event-results.d.ts +7 -6
- package/dist/core/extensions/event-results.d.ts.map +1 -1
- package/dist/core/extensions/event-results.js.map +1 -1
- package/dist/core/extensions/event-types.d.ts +2 -1
- package/dist/core/extensions/event-types.d.ts.map +1 -1
- package/dist/core/extensions/event-types.js.map +1 -1
- package/dist/core/extensions/extension-work.d.ts +14 -0
- package/dist/core/extensions/extension-work.d.ts.map +1 -0
- package/dist/core/extensions/extension-work.js +73 -0
- package/dist/core/extensions/extension-work.js.map +1 -0
- package/dist/core/extensions/herdr-file-integration.d.ts +36 -0
- package/dist/core/extensions/herdr-file-integration.d.ts.map +1 -0
- package/dist/core/extensions/herdr-file-integration.js +60 -0
- package/dist/core/extensions/herdr-file-integration.js.map +1 -0
- package/dist/core/extensions/host-input.d.ts +51 -0
- package/dist/core/extensions/host-input.d.ts.map +1 -0
- package/dist/core/extensions/host-input.js +211 -0
- package/dist/core/extensions/host-input.js.map +1 -0
- package/dist/core/extensions/index.d.ts +4 -2
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js +0 -3
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/jiti-loader.d.ts +2 -0
- package/dist/core/extensions/jiti-loader.d.ts.map +1 -0
- package/dist/core/extensions/jiti-loader.js +3 -0
- package/dist/core/extensions/jiti-loader.js.map +1 -0
- package/dist/core/extensions/jiti-static-loader.d.ts +2 -0
- package/dist/core/extensions/jiti-static-loader.d.ts.map +1 -0
- package/dist/core/extensions/jiti-static-loader.js +3 -0
- package/dist/core/extensions/jiti-static-loader.js.map +1 -0
- package/dist/core/extensions/loader-api.d.ts +7 -0
- package/dist/core/extensions/loader-api.d.ts.map +1 -1
- package/dist/core/extensions/loader-api.js +154 -28
- package/dist/core/extensions/loader-api.js.map +1 -1
- package/dist/core/extensions/loader-bindings.d.ts +24 -0
- package/dist/core/extensions/loader-bindings.d.ts.map +1 -0
- package/dist/core/extensions/loader-bindings.js +128 -0
- package/dist/core/extensions/loader-bindings.js.map +1 -0
- package/dist/core/extensions/loader-core.d.ts +2 -1
- package/dist/core/extensions/loader-core.d.ts.map +1 -1
- package/dist/core/extensions/loader-core.js +91 -14
- package/dist/core/extensions/loader-core.js.map +1 -1
- package/dist/core/extensions/loader-host-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-host-modules.js +3 -1
- package/dist/core/extensions/loader-host-modules.js.map +1 -1
- package/dist/core/extensions/loader-rollback.d.ts +14 -0
- package/dist/core/extensions/loader-rollback.d.ts.map +1 -0
- package/dist/core/extensions/loader-rollback.js +95 -0
- package/dist/core/extensions/loader-rollback.js.map +1 -0
- package/dist/core/extensions/loader-runtime.d.ts +3 -1
- package/dist/core/extensions/loader-runtime.d.ts.map +1 -1
- package/dist/core/extensions/loader-runtime.js +38 -14
- package/dist/core/extensions/loader-runtime.js.map +1 -1
- package/dist/core/extensions/loader-virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-virtual-modules.js +9 -2
- package/dist/core/extensions/loader-virtual-modules.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/reactive-widget.d.ts +1 -1
- package/dist/core/extensions/reactive-widget.js.map +1 -1
- package/dist/core/extensions/runner-context.d.ts +4 -0
- package/dist/core/extensions/runner-context.d.ts.map +1 -1
- package/dist/core/extensions/runner-context.js +25 -0
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner-events.d.ts +8 -4
- package/dist/core/extensions/runner-events.d.ts.map +1 -1
- package/dist/core/extensions/runner-events.js +55 -53
- package/dist/core/extensions/runner-events.js.map +1 -1
- package/dist/core/extensions/runner-project-trust.d.ts.map +1 -1
- package/dist/core/extensions/runner-project-trust.js +2 -4
- package/dist/core/extensions/runner-project-trust.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +31 -4
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +219 -23
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/runtime-types.d.ts +2 -0
- package/dist/core/extensions/runtime-types.d.ts.map +1 -1
- package/dist/core/extensions/runtime-types.js.map +1 -1
- package/dist/core/extensions/types.d.ts +3 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js +0 -12
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/workflow-activity-hub.d.ts +2 -0
- package/dist/core/extensions/workflow-activity-hub.d.ts.map +1 -1
- package/dist/core/extensions/workflow-activity-hub.js +5 -3
- package/dist/core/extensions/workflow-activity-hub.js.map +1 -1
- package/dist/core/extensions/wrapper.d.ts.map +1 -1
- package/dist/core/extensions/wrapper.js +5 -3
- package/dist/core/extensions/wrapper.js.map +1 -1
- package/dist/core/fast-model-routing.d.ts +3 -3
- package/dist/core/fast-model-routing.d.ts.map +1 -1
- package/dist/core/fast-model-routing.js +3 -3
- package/dist/core/fast-model-routing.js.map +1 -1
- package/dist/core/fast-model-variants.d.ts +4 -0
- package/dist/core/fast-model-variants.d.ts.map +1 -1
- package/dist/core/fast-model-variants.js +3 -0
- package/dist/core/fast-model-variants.js.map +1 -1
- package/dist/core/index.d.ts +4 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/mandatory-resource-loader.d.ts +4 -0
- package/dist/core/mandatory-resource-loader.d.ts.map +1 -1
- package/dist/core/mandatory-resource-loader.js +29 -1
- package/dist/core/mandatory-resource-loader.js.map +1 -1
- package/dist/core/mandatory-runtime-tools.d.ts +1 -4
- package/dist/core/mandatory-runtime-tools.d.ts.map +1 -1
- package/dist/core/mandatory-runtime-tools.js +1 -9
- package/dist/core/mandatory-runtime-tools.js.map +1 -1
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +19 -2
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-config.d.ts +126 -10
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +32 -19
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-registry.d.ts +4 -2
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +6 -2
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-routing-constraints.d.ts +24 -0
- package/dist/core/model-routing-constraints.d.ts.map +1 -0
- package/dist/core/model-routing-constraints.js +46 -0
- package/dist/core/model-routing-constraints.js.map +1 -0
- package/dist/core/model-routing-task.d.ts +4 -0
- package/dist/core/model-routing-task.d.ts.map +1 -0
- package/dist/core/model-routing-task.js +76 -0
- package/dist/core/model-routing-task.js.map +1 -0
- package/dist/core/model-runtime-streaming.d.ts +13 -3
- package/dist/core/model-runtime-streaming.d.ts.map +1 -1
- package/dist/core/model-runtime-streaming.js +15 -5
- package/dist/core/model-runtime-streaming.js.map +1 -1
- package/dist/core/model-runtime-types.d.ts +2 -2
- package/dist/core/model-runtime-types.d.ts.map +1 -1
- package/dist/core/model-runtime-types.js.map +1 -1
- package/dist/core/model-runtime.d.ts +6 -3
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +29 -2
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/provider-composer-internal.d.ts +3 -2
- package/dist/core/provider-composer-internal.d.ts.map +1 -1
- package/dist/core/provider-composer-internal.js +2 -0
- package/dist/core/provider-composer-internal.js.map +1 -1
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/resolve-config-value.d.ts +2 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -1
- package/dist/core/resolve-config-value.js +23 -1
- package/dist/core/resolve-config-value.js.map +1 -1
- package/dist/core/resource-loader-core.d.ts +6 -0
- package/dist/core/resource-loader-core.d.ts.map +1 -1
- package/dist/core/resource-loader-core.js +37 -6
- package/dist/core/resource-loader-core.js.map +1 -1
- package/dist/core/resource-loader-extensions.d.ts.map +1 -1
- package/dist/core/resource-loader-extensions.js +2 -0
- package/dist/core/resource-loader-extensions.js.map +1 -1
- package/dist/core/resource-loader-reload.d.ts.map +1 -1
- package/dist/core/resource-loader-reload.js +7 -2
- package/dist/core/resource-loader-reload.js.map +1 -1
- package/dist/core/resource-loader.d.ts +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +1 -1
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts +2 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +15 -0
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk-types.d.ts +13 -5
- package/dist/core/sdk-types.d.ts.map +1 -1
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.d.ts +3 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +211 -37
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-lifecycle-scope.d.ts +15 -0
- package/dist/core/session-lifecycle-scope.d.ts.map +1 -0
- package/dist/core/session-lifecycle-scope.js +13 -0
- package/dist/core/session-lifecycle-scope.js.map +1 -0
- package/dist/core/session-lifecycle-work.d.ts +17 -0
- package/dist/core/session-lifecycle-work.d.ts.map +1 -0
- package/dist/core/session-lifecycle-work.js +144 -0
- package/dist/core/session-lifecycle-work.js.map +1 -0
- package/dist/core/session-manager-core.d.ts +10 -4
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +53 -6
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-history.d.ts.map +1 -1
- package/dist/core/session-manager-history.js +3 -0
- package/dist/core/session-manager-history.js.map +1 -1
- package/dist/core/session-manager-list.d.ts +3 -3
- package/dist/core/session-manager-list.d.ts.map +1 -1
- package/dist/core/session-manager-list.js +89 -74
- package/dist/core/session-manager-list.js.map +1 -1
- package/dist/core/session-manager-storage.d.ts.map +1 -1
- package/dist/core/session-manager-storage.js +10 -7
- package/dist/core/session-manager-storage.js.map +1 -1
- package/dist/core/session-manager-types.d.ts +13 -3
- package/dist/core/session-manager-types.d.ts.map +1 -1
- package/dist/core/session-manager-types.js.map +1 -1
- package/dist/core/session-manager.d.ts +1 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-startup-rollback.d.ts +5 -0
- package/dist/core/session-startup-rollback.d.ts.map +1 -0
- package/dist/core/session-startup-rollback.js +16 -0
- package/dist/core/session-startup-rollback.js.map +1 -0
- package/dist/core/settings-manager-basic-accessors.d.ts +5 -0
- package/dist/core/settings-manager-basic-accessors.d.ts.map +1 -1
- package/dist/core/settings-manager-basic-accessors.js +35 -0
- package/dist/core/settings-manager-basic-accessors.js.map +1 -1
- package/dist/core/settings-manager-core.d.ts.map +1 -1
- package/dist/core/settings-manager-core.js +4 -0
- package/dist/core/settings-manager-core.js.map +1 -1
- package/dist/core/settings-manager.d.ts +1 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +1 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-types.d.ts +4 -0
- package/dist/core/settings-types.d.ts.map +1 -1
- package/dist/core/settings-types.js +1 -1
- package/dist/core/settings-types.js.map +1 -1
- package/dist/core/settings-write-ownership.d.ts +7 -0
- package/dist/core/settings-write-ownership.d.ts.map +1 -0
- package/dist/core/settings-write-ownership.js +24 -0
- package/dist/core/settings-write-ownership.js.map +1 -0
- package/dist/core/slash-commands.js +1 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/structured-output/index.d.ts +12 -0
- package/dist/core/structured-output/index.d.ts.map +1 -0
- package/dist/core/structured-output/index.js +251 -0
- package/dist/core/structured-output/index.js.map +1 -0
- package/dist/core/structured-output/invalid-output.d.ts +8 -0
- package/dist/core/structured-output/invalid-output.d.ts.map +1 -0
- package/dist/core/structured-output/invalid-output.js +4 -0
- package/dist/core/structured-output/invalid-output.js.map +1 -0
- package/dist/core/structured-output/jev-client.d.ts +20 -0
- package/dist/core/structured-output/jev-client.d.ts.map +1 -0
- package/dist/core/structured-output/jev-client.js +116 -0
- package/dist/core/structured-output/jev-client.js.map +1 -0
- package/dist/core/structured-output/jev.d.ts +5 -0
- package/dist/core/structured-output/jev.d.ts.map +1 -0
- package/dist/core/structured-output/jev.js +275 -0
- package/dist/core/structured-output/jev.js.map +1 -0
- package/dist/core/structured-output/resolver.d.ts +41 -0
- package/dist/core/structured-output/resolver.d.ts.map +1 -0
- package/dist/core/structured-output/resolver.js +56 -0
- package/dist/core/structured-output/resolver.js.map +1 -0
- package/dist/core/structured-output/types.d.ts +68 -0
- package/dist/core/structured-output/types.d.ts.map +1 -0
- package/dist/core/structured-output/types.js +2 -0
- package/dist/core/structured-output/types.js.map +1 -0
- package/dist/core/system-prompt.d.ts +48 -5
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +130 -99
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tasks/contracts.d.ts +6 -0
- package/dist/core/tasks/contracts.d.ts.map +1 -1
- package/dist/core/tasks/contracts.js.map +1 -1
- package/dist/core/tasks/supervisor.d.ts.map +1 -1
- package/dist/core/tasks/supervisor.js +7 -0
- package/dist/core/tasks/supervisor.js.map +1 -1
- package/dist/core/tools/ask-user-question/ask-user-question.d.ts +4 -1
- package/dist/core/tools/ask-user-question/ask-user-question.d.ts.map +1 -1
- package/dist/core/tools/ask-user-question/ask-user-question.js +31 -35
- package/dist/core/tools/ask-user-question/ask-user-question.js.map +1 -1
- package/dist/core/tools/ask-user-question/index.d.ts +1 -1
- package/dist/core/tools/ask-user-question/index.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/build-questionnaire.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/build-questionnaire.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/key-router.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/key-router.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/questionnaire-session.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/questionnaire-session.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/row-intent.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/row-intent.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/selectors/contract.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/selectors/contract.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/selectors/derivations.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/selectors/derivations.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/state-reducer.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/state-reducer.js.map +1 -1
- package/dist/core/tools/ask-user-question/state/state.d.ts +1 -1
- package/dist/core/tools/ask-user-question/state/state.js.map +1 -1
- package/dist/core/tools/ask-user-question/tool/format-answer.d.ts +1 -1
- package/dist/core/tools/ask-user-question/tool/format-answer.js.map +1 -1
- package/dist/core/tools/ask-user-question/tool/response-envelope.d.ts +1 -1
- package/dist/core/tools/ask-user-question/tool/response-envelope.js.map +1 -1
- package/dist/core/tools/ask-user-question/tool/validate-questionnaire.d.ts +1 -1
- package/dist/core/tools/ask-user-question/tool/validate-questionnaire.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/components/multi-select-view.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/components/multi-select-view.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/markdown-content-cache.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/markdown-content-cache.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/preview-block-renderer.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/preview-block-renderer.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/preview-layout-decider.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/preview-layout-decider.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/preview-pane.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/components/preview/preview-pane.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/components/submit-picker.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/components/wrapping-select.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/dialog-builder.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/dialog-builder.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/props-adapter.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/props-adapter.js.map +1 -1
- package/dist/core/tools/ask-user-question/view/tab-content-strategy.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/tab-content-strategy.js.map +1 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +16 -11
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/find.d.ts +2 -2
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +1 -1
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/usage-totals.d.ts.map +1 -1
- package/dist/core/usage-totals.js +4 -0
- package/dist/core/usage-totals.js.map +1 -1
- package/dist/extensions/herdr/index.d.ts.map +1 -1
- package/dist/extensions/herdr/index.js +0 -7
- package/dist/extensions/herdr/index.js.map +1 -1
- package/dist/extensions/llama/client.d.ts +2 -0
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +6 -2
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +18 -4
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/index-extensions.d.ts +1 -1
- package/dist/index-extensions.d.ts.map +1 -1
- package/dist/index-extensions.js.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/main-session.d.ts.map +1 -1
- package/dist/main-session.js +24 -16
- package/dist/main-session.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +4 -5
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js +12 -5
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/chat-message-renderer.d.ts +5 -1
- package/dist/modes/interactive/components/chat-message-renderer.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-message-renderer.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-events.d.ts +2 -2
- package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.d.ts +2 -0
- package/dist/modes/interactive/components/compaction-boundary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.js +30 -12
- package/dist/modes/interactive/components/compaction-boundary-message.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +6 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +17 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/host-input-form-mount.d.ts +1 -1
- package/dist/modes/interactive/components/host-input-form-mount.js.map +1 -1
- package/dist/modes/interactive/components/host-input-form.d.ts +1 -1
- package/dist/modes/interactive/components/host-input-form.js.map +1 -1
- package/dist/modes/interactive/components/host-session-picker.d.ts +1 -1
- package/dist/modes/interactive/components/host-session-picker.js.map +1 -1
- package/dist/modes/interactive/components/reserved-bottom-overlay.d.ts +1 -1
- package/dist/modes/interactive/components/reserved-bottom-overlay.js.map +1 -1
- package/dist/modes/interactive/components/scroll-widget.d.ts +1 -1
- package/dist/modes/interactive/components/scroll-widget.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-handlers.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector-handlers.js +3 -0
- package/dist/modes/interactive/components/settings-selector-handlers.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-items.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector-items.js +50 -1
- package/dist/modes/interactive/components/settings-selector-items.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-submenus.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector-submenus.js +2 -1
- package/dist/modes/interactive/components/settings-selector-submenus.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-types.d.ts +6 -1
- package/dist/modes/interactive/components/settings-selector-types.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +11 -4
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +14 -9
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-auth-login.js +1 -1
- package/dist/modes/interactive/interactive-auth-login.js.map +1 -1
- package/dist/modes/interactive/interactive-auth-routing.js +2 -2
- package/dist/modes/interactive/interactive-auth-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-autocomplete.js +4 -0
- package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
- package/dist/modes/interactive/interactive-bash-compact.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-bash-compact.js +13 -6
- package/dist/modes/interactive/interactive-bash-compact.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-runtime.js +5 -0
- package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +2 -2
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -1
- package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-deps.js +1 -1
- package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-render-chat.js +27 -25
- package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
- package/dist/modes/interactive/interactive-selectors.js +10 -0
- package/dist/modes/interactive/interactive-selectors.js.map +1 -1
- package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-startup.js +2 -2
- package/dist/modes/interactive/interactive-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-tui.d.ts +3 -6
- package/dist/modes/interactive/interactive-tui.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-tui.js +13 -5
- package/dist/modes/interactive/interactive-tui.js.map +1 -1
- package/dist/modes/interactive-engine/engine-custom-ui.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-custom-ui.js +3 -1
- package/dist/modes/interactive-engine/engine-custom-ui.js.map +1 -1
- package/dist/modes/interactive-engine/engine-input-form.d.ts +1 -1
- package/dist/modes/interactive-engine/engine-input-form.js.map +1 -1
- package/dist/modes/interactive-engine/engine-session-picker.d.ts +1 -1
- package/dist/modes/interactive-engine/engine-session-picker.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +10 -1
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/protocol.d.ts +1 -1
- package/dist/modes/interactive-engine/protocol.js.map +1 -1
- package/dist/modes/interactive-engine/remote-component.js.map +1 -1
- package/dist/modes/rpc/rpc-keybindings-reload.d.ts +1 -1
- package/dist/modes/rpc/rpc-keybindings-reload.js.map +1 -1
- package/dist/modes/rpc/rpc-provider-auth.d.ts +1 -1
- package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
- package/dist/session-id-target.d.ts +31 -0
- package/dist/session-id-target.d.ts.map +1 -0
- package/dist/session-id-target.js +57 -0
- package/dist/session-id-target.js.map +1 -0
- package/dist/utils/abort.d.ts.map +1 -1
- package/dist/utils/abort.js +29 -4
- package/dist/utils/abort.js.map +1 -1
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js +1 -12
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +88 -12
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/wsl.d.ts +3 -0
- package/dist/utils/wsl.d.ts.map +1 -0
- package/dist/utils/wsl.js +15 -0
- package/dist/utils/wsl.js.map +1 -0
- package/docs/background-tasks.md +24 -14
- package/docs/build.md +6 -16
- package/docs/compaction/reference.md +12 -12
- package/docs/compaction.md +30 -110
- package/docs/computer-use.md +1 -3
- package/docs/containerization.md +4 -5
- package/docs/custom-provider/api-reference.md +10 -1
- package/docs/custom-provider/oauth.md +4 -2
- package/docs/custom-provider/streaming.md +8 -3
- package/docs/custom-provider.md +1 -1
- package/docs/development.md +13 -138
- package/docs/docs.json +19 -5
- package/docs/environment-variables.md +20 -4
- package/docs/extensions/api-reference.md +6 -2
- package/docs/extensions/authoring.md +10 -7
- package/docs/extensions/events.md +14 -24
- package/docs/extensions/ui.md +3 -4
- package/docs/extensions.md +22 -18
- package/docs/getting-started/authentication.md +4 -1
- package/docs/getting-started/first-session.md +8 -6
- package/docs/getting-started/installation.md +8 -4
- package/docs/getting-started/project-instructions.md +5 -1
- package/docs/guides/configuration.md +10 -5
- package/docs/guides/non-interactive.md +2 -2
- package/docs/guides.md +8 -17
- package/docs/herdr.md +2 -1
- package/docs/index.md +2 -2
- package/docs/intercom/operations.md +16 -70
- package/docs/intercom/reference.md +15 -5
- package/docs/intercom.md +10 -6
- package/docs/json.md +12 -2
- package/docs/keybindings.md +15 -8
- package/docs/llama-cpp.md +5 -1
- package/docs/{mcp.md → mcp-servers.md} +21 -2
- package/docs/models/evals.md +133 -465
- package/docs/models/model-selection.md +27 -116
- package/docs/models/reference.md +39 -21
- package/docs/models.md +7 -4
- package/docs/packages/authoring.md +5 -1
- package/docs/packages/reference.md +5 -1
- package/docs/packages.md +5 -3
- package/docs/programmatic.md +3 -1
- package/docs/prompt-templates.md +2 -10
- package/docs/providers/reference.md +2 -2
- package/docs/providers.md +41 -16
- package/docs/quickstart.md +7 -3
- package/docs/reference/cli.md +19 -11
- package/docs/reference.md +3 -6
- package/docs/rpc/protocol.md +11 -13
- package/docs/rpc.md +5 -1
- package/docs/sdk/reference.md +59 -239
- package/docs/sdk/structured-decisions.md +132 -0
- package/docs/sdk.md +181 -17
- package/docs/security.md +7 -4
- package/docs/session-format.md +18 -5
- package/docs/sessions.md +12 -6
- package/docs/settings.md +68 -16
- package/docs/skills/authoring.md +7 -1
- package/docs/skills.md +25 -6
- package/docs/subagents/authoring.md +11 -1
- package/docs/subagents/reference.md +98 -10
- package/docs/subagents.md +45 -35
- package/docs/terminal-setup.md +4 -2
- package/docs/termux.md +3 -1
- package/docs/themes/reference.md +4 -1
- package/docs/themes.md +1 -1
- package/docs/tools.md +431 -20
- package/docs/tui/reference.md +13 -14
- package/docs/tui.md +10 -6
- package/docs/usage.md +19 -7
- package/docs/web-access.md +5 -1
- package/docs/windows.md +18 -11
- package/docs/workflows/api-reference.md +135 -25
- package/docs/workflows/authoring.md +48 -39
- package/docs/workflows/builtins.md +20 -26
- package/docs/workflows/operations.md +288 -137
- package/docs/workflows/reliable-design.md +62 -129
- package/docs/workflows.md +10 -16
- package/examples/extensions/custom-provider-anthropic/index.ts +15 -10
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +2 -2
- package/examples/extensions/prompt-customizer.ts +17 -37
- package/npm-shrinkwrap.json +502 -709
- package/package.json +12 -10
- package/dist/builtin/workflows/builtin/chunk-m0xfsef8.js +0 -2813
- package/docs/models/artificial-analysis-index.md +0 -89
- package/docs/models/pareto-efficiency.md +0 -90
- package/docs/tools/edit.md +0 -378
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
withSteeringPropagationContext2
|
|
6
|
-
} from "./chunk-a2kdsqn8.js";
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
7
5
|
import {
|
|
8
6
|
parse_rubric,
|
|
9
7
|
normalize_criteria,
|
|
@@ -596,7 +594,7 @@ var tournament_default = workflow({
|
|
|
596
594
|
seed: Type2.Integer({ description: "Seed used for the deterministic comparison schedule." }),
|
|
597
595
|
artifact_dir: Type2.String({ description: "Run-specific directory containing tournament artifacts." })
|
|
598
596
|
},
|
|
599
|
-
run: async (ctx) => await runTournament(
|
|
597
|
+
run: async (ctx) => await runTournament(withBuiltinContext(ctx))
|
|
600
598
|
});
|
|
601
599
|
|
|
602
600
|
export { tournament_default };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
withSteeringPropagationContext2
|
|
6
|
-
} from "./chunk-a2kdsqn8.js";
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
7
5
|
import {
|
|
8
6
|
scoring_prompt_reads,
|
|
9
7
|
build_scoring_prompt
|
|
@@ -215,7 +213,7 @@ var generate_and_filter_default = workflow({
|
|
|
215
213
|
artifact_dir: Type2.String({ description: "Directory containing run artifacts." }),
|
|
216
214
|
manifest_path: Type2.String({ description: "Path to the candidate artifact manifest." })
|
|
217
215
|
},
|
|
218
|
-
run: async (ctx) => await runGenerateAndFilter(
|
|
216
|
+
run: async (ctx) => await runGenerateAndFilter(withBuiltinContext(ctx))
|
|
219
217
|
});
|
|
220
218
|
|
|
221
219
|
export { generate_and_filter_default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
4
5
|
import {
|
|
5
6
|
keepContext,
|
|
6
7
|
REVIEWER_CALIBRATION_RULES,
|
|
@@ -22,9 +23,8 @@ import {
|
|
|
22
23
|
SCOPE_DISCIPLINE_CONTRACT,
|
|
23
24
|
EVIDENCE_CLOSURE_POLICY,
|
|
24
25
|
WORKTREE_DISCIPLINE_CONTRACT,
|
|
25
|
-
REVIEW_CODE_DELTA_CONTRACT
|
|
26
|
-
|
|
27
|
-
} from "./chunk-a2kdsqn8.js";
|
|
26
|
+
REVIEW_CODE_DELTA_CONTRACT
|
|
27
|
+
} from "./chunk-n4yxrsm9.js";
|
|
28
28
|
import {
|
|
29
29
|
VERIFICATION_SCALE
|
|
30
30
|
} from "./chunk-n1910xc4.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
reviewerFailureText,
|
|
39
39
|
summarizeReviewConvergence,
|
|
40
40
|
reverify_consolidated_batch
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-1dydq7w3.js";
|
|
42
42
|
import {
|
|
43
43
|
fold_usage
|
|
44
44
|
} from "./chunk-tgt0s5e5.js";
|
|
@@ -489,229 +489,24 @@ function renderForkedOrchestratorPrompt(args) {
|
|
|
489
489
|
|
|
490
490
|
// dist/builtin/workflows/builtin/ralph-models.ts
|
|
491
491
|
var promptEngineerModelConfig = {
|
|
492
|
-
model: "
|
|
493
|
-
fallbackModels: [
|
|
494
|
-
"github-copilot/gpt-6-astra:high",
|
|
495
|
-
"openai/gpt-6-astra:high",
|
|
496
|
-
"anthropic/claude-fable-5-1:high",
|
|
497
|
-
"github-copilot/claude-fable-5-1:high",
|
|
498
|
-
"anthropic/claude-opus-5:high",
|
|
499
|
-
"github-copilot/claude-opus-5:high",
|
|
500
|
-
"anthropic/claude-fable-5:high",
|
|
501
|
-
"github-copilot/claude-fable-5:high",
|
|
502
|
-
"openai-codex/gpt-5.6-sol:xhigh",
|
|
503
|
-
"github-copilot/gpt-5.6-sol:xhigh",
|
|
504
|
-
"openai/gpt-5.6-sol:xhigh",
|
|
505
|
-
"kimi-coding/k3:max",
|
|
506
|
-
"moonshotai/kimi-k3:max",
|
|
507
|
-
"moonshotai-cn/kimi-k3:max",
|
|
508
|
-
"openai-codex/gpt-5.5:xhigh",
|
|
509
|
-
"github-copilot/gpt-5.5:xhigh",
|
|
510
|
-
"openai/gpt-5.5:xhigh",
|
|
511
|
-
"anthropic/claude-opus-4-8:high",
|
|
512
|
-
"github-copilot/claude-opus-4.8:high",
|
|
513
|
-
"xai/grok-4.6:xhigh",
|
|
514
|
-
"github-copilot/grok-4.6:xhigh",
|
|
515
|
-
"zai/glm-5.3:high",
|
|
516
|
-
"zai-coding-cn/glm-5.3:high",
|
|
517
|
-
"zai/glm-5.3-flash:high",
|
|
518
|
-
"zai-coding-cn/glm-5.3-flash:high",
|
|
519
|
-
"baseten/zai-org/GLM-5.3:high",
|
|
520
|
-
"baseten/zai-org/GLM-5.3-Flash:high",
|
|
521
|
-
"openrouter/openai/gpt-6-astra:high",
|
|
522
|
-
"openrouter/anthropic/claude-fable-5-1:high",
|
|
523
|
-
"openrouter/anthropic/claude-opus-5:high",
|
|
524
|
-
"openrouter/anthropic/claude-fable-5:high",
|
|
525
|
-
"openrouter/openai/gpt-5.6-sol:xhigh",
|
|
526
|
-
"openrouter/moonshotai/kimi-k3:max",
|
|
527
|
-
"openrouter/sakana/fugu-ultra:high",
|
|
528
|
-
"openrouter/openai/gpt-5.5:xhigh",
|
|
529
|
-
"openrouter/anthropic/claude-opus-4-8:high",
|
|
530
|
-
"openrouter/x-ai/grok-4.6:xhigh",
|
|
531
|
-
"openrouter/z-ai/glm-5.3:high",
|
|
532
|
-
"openrouter/z-ai/glm-5.3-flash:high"
|
|
533
|
-
],
|
|
492
|
+
model: "auto",
|
|
534
493
|
excludedTools: ["ask_user_question"]
|
|
535
494
|
};
|
|
536
495
|
var researchModelConfig = {
|
|
537
|
-
model: "
|
|
538
|
-
fallbackModels: [
|
|
539
|
-
"github-copilot/gpt-6-astra:medium",
|
|
540
|
-
"openai/gpt-6-astra:medium",
|
|
541
|
-
"anthropic/claude-fable-5-1:medium",
|
|
542
|
-
"github-copilot/claude-fable-5-1:medium",
|
|
543
|
-
"anthropic/claude-opus-5:high",
|
|
544
|
-
"github-copilot/claude-opus-5:high",
|
|
545
|
-
"anthropic/claude-fable-5:medium",
|
|
546
|
-
"github-copilot/claude-fable-5:medium",
|
|
547
|
-
"openai-codex/gpt-5.6-sol:high",
|
|
548
|
-
"github-copilot/gpt-5.6-sol:high",
|
|
549
|
-
"openai/gpt-5.6-sol:high",
|
|
550
|
-
"kimi-coding/k3:max",
|
|
551
|
-
"moonshotai/kimi-k3:max",
|
|
552
|
-
"moonshotai-cn/kimi-k3:max",
|
|
553
|
-
"openai-codex/gpt-5.5:xhigh",
|
|
554
|
-
"github-copilot/gpt-5.5:xhigh",
|
|
555
|
-
"openai/gpt-5.5:xhigh",
|
|
556
|
-
"anthropic/claude-opus-4-8:high",
|
|
557
|
-
"github-copilot/claude-opus-4.8:high",
|
|
558
|
-
"xai/grok-4.6:xhigh",
|
|
559
|
-
"github-copilot/grok-4.6:xhigh",
|
|
560
|
-
"zai/glm-5.3:high",
|
|
561
|
-
"zai-coding-cn/glm-5.3:high",
|
|
562
|
-
"zai/glm-5.3-flash:high",
|
|
563
|
-
"zai-coding-cn/glm-5.3-flash:high",
|
|
564
|
-
"baseten/zai-org/GLM-5.3:high",
|
|
565
|
-
"baseten/zai-org/GLM-5.3-Flash:high",
|
|
566
|
-
"openrouter/openai/gpt-6-astra:medium",
|
|
567
|
-
"openrouter/anthropic/claude-fable-5-1:medium",
|
|
568
|
-
"openrouter/anthropic/claude-opus-5:high",
|
|
569
|
-
"openrouter/anthropic/claude-fable-5:medium",
|
|
570
|
-
"openrouter/openai/gpt-5.6-sol:high",
|
|
571
|
-
"openrouter/moonshotai/kimi-k3:max",
|
|
572
|
-
"openrouter/sakana/fugu-ultra:high",
|
|
573
|
-
"openrouter/openai/gpt-5.5:xhigh",
|
|
574
|
-
"openrouter/anthropic/claude-opus-4-8:high",
|
|
575
|
-
"openrouter/x-ai/grok-4.6:xhigh",
|
|
576
|
-
"openrouter/z-ai/glm-5.3:high",
|
|
577
|
-
"openrouter/z-ai/glm-5.3-flash:high"
|
|
578
|
-
],
|
|
496
|
+
model: "auto",
|
|
579
497
|
excludedTools: ["ask_user_question"]
|
|
580
498
|
};
|
|
581
499
|
var orchestratorModelConfig = {
|
|
582
|
-
model: "
|
|
583
|
-
fallbackModels: [
|
|
584
|
-
"github-copilot/gpt-6-astra:medium",
|
|
585
|
-
"openai/gpt-6-astra:medium",
|
|
586
|
-
"anthropic/claude-fable-5-1:medium",
|
|
587
|
-
"github-copilot/claude-fable-5-1:medium",
|
|
588
|
-
"anthropic/claude-opus-5:high",
|
|
589
|
-
"github-copilot/claude-opus-5:high",
|
|
590
|
-
"openai-codex/gpt-5.6-sol:high",
|
|
591
|
-
"github-copilot/gpt-5.6-sol:high",
|
|
592
|
-
"openai/gpt-5.6-sol:high",
|
|
593
|
-
"anthropic/claude-fable-5:medium",
|
|
594
|
-
"github-copilot/claude-fable-5:medium",
|
|
595
|
-
"kimi-coding/k3:max",
|
|
596
|
-
"moonshotai/kimi-k3:max",
|
|
597
|
-
"moonshotai-cn/kimi-k3:max",
|
|
598
|
-
"openai-codex/gpt-5.5:xhigh",
|
|
599
|
-
"github-copilot/gpt-5.5:xhigh",
|
|
600
|
-
"openai/gpt-5.5:xhigh",
|
|
601
|
-
"anthropic/claude-opus-4-8:high",
|
|
602
|
-
"github-copilot/claude-opus-4.8:high",
|
|
603
|
-
"xai/grok-4.6:xhigh",
|
|
604
|
-
"github-copilot/grok-4.6:xhigh",
|
|
605
|
-
"zai/glm-5.3:high",
|
|
606
|
-
"zai-coding-cn/glm-5.3:high",
|
|
607
|
-
"zai/glm-5.3-flash:high",
|
|
608
|
-
"zai-coding-cn/glm-5.3-flash:high",
|
|
609
|
-
"baseten/zai-org/GLM-5.3:high",
|
|
610
|
-
"baseten/zai-org/GLM-5.3-Flash:high",
|
|
611
|
-
"openrouter/openai/gpt-6-astra:medium",
|
|
612
|
-
"openrouter/anthropic/claude-fable-5-1:medium",
|
|
613
|
-
"openrouter/anthropic/claude-opus-5:high",
|
|
614
|
-
"openrouter/openai/gpt-5.6-sol:high",
|
|
615
|
-
"openrouter/anthropic/claude-fable-5:medium",
|
|
616
|
-
"openrouter/moonshotai/kimi-k3:max",
|
|
617
|
-
"openrouter/sakana/fugu-ultra:high",
|
|
618
|
-
"openrouter/openai/gpt-5.5:xhigh",
|
|
619
|
-
"openrouter/anthropic/claude-opus-4-8:high",
|
|
620
|
-
"openrouter/x-ai/grok-4.6:xhigh",
|
|
621
|
-
"openrouter/z-ai/glm-5.3:high",
|
|
622
|
-
"openrouter/z-ai/glm-5.3-flash:high"
|
|
623
|
-
],
|
|
500
|
+
model: "auto",
|
|
624
501
|
excludedTools: ["ask_user_question"]
|
|
625
502
|
};
|
|
626
503
|
var reviewerAModelConfig = {
|
|
627
|
-
model: "
|
|
628
|
-
fallbackModels: [
|
|
629
|
-
"github-copilot/claude-fable-5-1:high",
|
|
630
|
-
"openai-codex/gpt-6-astra:high",
|
|
631
|
-
"github-copilot/gpt-6-astra:high",
|
|
632
|
-
"openai/gpt-6-astra:high",
|
|
633
|
-
"anthropic/claude-opus-5:high",
|
|
634
|
-
"github-copilot/claude-opus-5:high",
|
|
635
|
-
"anthropic/claude-fable-5:high",
|
|
636
|
-
"github-copilot/claude-fable-5:high",
|
|
637
|
-
"kimi-coding/k3:max",
|
|
638
|
-
"moonshotai/kimi-k3:max",
|
|
639
|
-
"moonshotai-cn/kimi-k3:max",
|
|
640
|
-
"openai-codex/gpt-5.6-sol:high",
|
|
641
|
-
"github-copilot/gpt-5.6-sol:high",
|
|
642
|
-
"openai/gpt-5.6-sol:high",
|
|
643
|
-
"openai-codex/gpt-5.5:xhigh",
|
|
644
|
-
"github-copilot/gpt-5.5:xhigh",
|
|
645
|
-
"openai/gpt-5.5:xhigh",
|
|
646
|
-
"anthropic/claude-opus-4-8:high",
|
|
647
|
-
"github-copilot/claude-opus-4.8:high",
|
|
648
|
-
"xai/grok-4.6:xhigh",
|
|
649
|
-
"github-copilot/grok-4.6:xhigh",
|
|
650
|
-
"zai/glm-5.3:high",
|
|
651
|
-
"zai-coding-cn/glm-5.3:high",
|
|
652
|
-
"zai/glm-5.3-flash:high",
|
|
653
|
-
"zai-coding-cn/glm-5.3-flash:high",
|
|
654
|
-
"baseten/zai-org/GLM-5.3:high",
|
|
655
|
-
"baseten/zai-org/GLM-5.3-Flash:high",
|
|
656
|
-
"openrouter/anthropic/claude-fable-5-1:high",
|
|
657
|
-
"openrouter/openai/gpt-6-astra:high",
|
|
658
|
-
"openrouter/anthropic/claude-opus-5:high",
|
|
659
|
-
"openrouter/anthropic/claude-fable-5:high",
|
|
660
|
-
"openrouter/moonshotai/kimi-k3:max",
|
|
661
|
-
"openrouter/openai/gpt-5.6-sol:high",
|
|
662
|
-
"openrouter/sakana/fugu-ultra:high",
|
|
663
|
-
"openrouter/openai/gpt-5.5:xhigh",
|
|
664
|
-
"openrouter/anthropic/claude-opus-4-8:high",
|
|
665
|
-
"openrouter/x-ai/grok-4.6:xhigh",
|
|
666
|
-
"openrouter/z-ai/glm-5.3:high",
|
|
667
|
-
"openrouter/z-ai/glm-5.3-flash:high"
|
|
668
|
-
],
|
|
504
|
+
model: "auto",
|
|
669
505
|
excludedTools: ["ask_user_question"],
|
|
670
506
|
schema: reviewDecisionSchema
|
|
671
507
|
};
|
|
672
508
|
var reviewerBModelConfig = {
|
|
673
|
-
model: "
|
|
674
|
-
fallbackModels: [
|
|
675
|
-
"github-copilot/gpt-6-astra:high",
|
|
676
|
-
"openai/gpt-6-astra:high",
|
|
677
|
-
"anthropic/claude-fable-5-1:high",
|
|
678
|
-
"github-copilot/claude-fable-5-1:high",
|
|
679
|
-
"anthropic/claude-opus-5:high",
|
|
680
|
-
"github-copilot/claude-opus-5:high",
|
|
681
|
-
"anthropic/claude-fable-5:high",
|
|
682
|
-
"github-copilot/claude-fable-5:high",
|
|
683
|
-
"openai-codex/gpt-5.6-sol:high",
|
|
684
|
-
"github-copilot/gpt-5.6-sol:high",
|
|
685
|
-
"openai/gpt-5.6-sol:high",
|
|
686
|
-
"kimi-coding/k3:max",
|
|
687
|
-
"moonshotai/kimi-k3:max",
|
|
688
|
-
"moonshotai-cn/kimi-k3:max",
|
|
689
|
-
"openai-codex/gpt-5.5:xhigh",
|
|
690
|
-
"github-copilot/gpt-5.5:xhigh",
|
|
691
|
-
"openai/gpt-5.5:xhigh",
|
|
692
|
-
"anthropic/claude-opus-4-8:high",
|
|
693
|
-
"github-copilot/claude-opus-4.8:high",
|
|
694
|
-
"xai/grok-4.6:xhigh",
|
|
695
|
-
"github-copilot/grok-4.6:xhigh",
|
|
696
|
-
"zai/glm-5.3:high",
|
|
697
|
-
"zai-coding-cn/glm-5.3:high",
|
|
698
|
-
"zai/glm-5.3-flash:high",
|
|
699
|
-
"zai-coding-cn/glm-5.3-flash:high",
|
|
700
|
-
"baseten/zai-org/GLM-5.3:high",
|
|
701
|
-
"baseten/zai-org/GLM-5.3-Flash:high",
|
|
702
|
-
"openrouter/openai/gpt-6-astra:high",
|
|
703
|
-
"openrouter/anthropic/claude-fable-5-1:high",
|
|
704
|
-
"openrouter/anthropic/claude-opus-5:high",
|
|
705
|
-
"openrouter/anthropic/claude-fable-5:high",
|
|
706
|
-
"openrouter/openai/gpt-5.6-sol:high",
|
|
707
|
-
"openrouter/moonshotai/kimi-k3:max",
|
|
708
|
-
"openrouter/sakana/fugu-ultra:high",
|
|
709
|
-
"openrouter/openai/gpt-5.5:xhigh",
|
|
710
|
-
"openrouter/anthropic/claude-opus-4-8:high",
|
|
711
|
-
"openrouter/x-ai/grok-4.6:xhigh",
|
|
712
|
-
"openrouter/z-ai/glm-5.3:high",
|
|
713
|
-
"openrouter/z-ai/glm-5.3-flash:high"
|
|
714
|
-
],
|
|
509
|
+
model: "auto",
|
|
715
510
|
excludedTools: ["ask_user_question"],
|
|
716
511
|
schema: reviewDecisionSchema
|
|
717
512
|
};
|
|
@@ -1126,7 +921,7 @@ var ralph_default = workflow({
|
|
|
1126
921
|
baseBranch: "base_branch"
|
|
1127
922
|
},
|
|
1128
923
|
run: async (ctx) => {
|
|
1129
|
-
const workflowCtx =
|
|
924
|
+
const workflowCtx = withBuiltinContext(ctx);
|
|
1130
925
|
const workflowStartCwd = workflowCtx.cwd ?? process.cwd();
|
|
1131
926
|
const inputs = workflowCtx.inputs;
|
|
1132
927
|
const prompt = inputs.prompt;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
withSteeringPropagationContext2
|
|
6
|
-
} from "./chunk-a2kdsqn8.js";
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
7
5
|
import {
|
|
8
6
|
parse_rubric,
|
|
9
7
|
normalize_criteria,
|
|
@@ -398,7 +396,7 @@ var adversarial_verification_default = workflow({
|
|
|
398
396
|
review_report_path: Type2.String({ description: "Path to the final consolidated findings or quorum report." }),
|
|
399
397
|
remaining_work: Type2.Array(Type2.String(), { description: "Unresolved findings or quorum evidence when not approved." })
|
|
400
398
|
},
|
|
401
|
-
run: async (ctx) => await runAdversarialVerification(
|
|
399
|
+
run: async (ctx) => await runAdversarialVerification(withBuiltinContext(ctx))
|
|
402
400
|
});
|
|
403
401
|
|
|
404
402
|
export { adversarial_verification_default };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
withSteeringPropagationContext2
|
|
6
|
-
} from "./chunk-a2kdsqn8.js";
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
7
5
|
import {
|
|
8
6
|
stableArtifactRoot
|
|
9
7
|
} from "./chunk-rc5ec5xx.js";
|
|
@@ -85,11 +83,11 @@ function safeName(value) {
|
|
|
85
83
|
function actionTools(category) {
|
|
86
84
|
const normalized = category.toLowerCase();
|
|
87
85
|
if (normalized.includes("implement") || normalized.includes("fix") || normalized.includes("code")) {
|
|
88
|
-
return ["read", "edit", "write", "bash"];
|
|
86
|
+
return ["read", "edit", "write", "bash", "intercom"];
|
|
89
87
|
}
|
|
90
88
|
if (normalized.includes("research"))
|
|
91
|
-
return ["read", "web_search", "fetch_content"];
|
|
92
|
-
return ["read"];
|
|
89
|
+
return ["read", "web_search", "fetch_content", "intercom"];
|
|
90
|
+
return ["read", "intercom"];
|
|
93
91
|
}
|
|
94
92
|
async function resolveFallbackCategory(ctx, exactCategory) {
|
|
95
93
|
try {
|
|
@@ -105,7 +103,7 @@ async function runClassifyAndAct(ctx) {
|
|
|
105
103
|
prompt: classifierPrompt(ctx.inputs.prompt, ctx.inputs.categories),
|
|
106
104
|
schema: classificationSchema,
|
|
107
105
|
context: "fresh",
|
|
108
|
-
tools: []
|
|
106
|
+
tools: ["intercom"]
|
|
109
107
|
});
|
|
110
108
|
const value = classified.structured;
|
|
111
109
|
const proposedCategory = typeof value === "object" && value !== null && "category" in value ? String(value.category) : "";
|
|
@@ -169,7 +167,7 @@ var classify_and_act_default = workflow({
|
|
|
169
167
|
action_path: Type2.String({ description: "Category action report artifact path." }),
|
|
170
168
|
artifact_dir: Type2.String({ description: "Per-run artifact directory." })
|
|
171
169
|
},
|
|
172
|
-
run: async (ctx) => await runClassifyAndAct(
|
|
170
|
+
run: async (ctx) => await runClassifyAndAct(withBuiltinContext(ctx))
|
|
173
171
|
});
|
|
174
172
|
|
|
175
173
|
export { DEFAULT_ACTION_CATEGORIES2, classify_and_act_default };
|
|
@@ -22,7 +22,7 @@ var PENDING_STAGE_DELIVERY_GUIDANCE = PENDING_STAGE_DELIVERY_GUIDANCE_LINES.join
|
|
|
22
22
|
var STEERING_PROPAGATION_CONTRACT = [
|
|
23
23
|
"Steering propagation contract:",
|
|
24
24
|
"- Mid-run user messages (steering, follow-ups, resume text) are authoritative and may amend this run's objective or acceptance criteria. Adopt an amendment as required behavior from the moment you receive it.",
|
|
25
|
-
`- Explicit task-scoped requests to work "quickly", "inline", "do this directly", or "don't use a workflow" override workflow
|
|
25
|
+
`- Explicit task-scoped requests to work "quickly", "inline", "do this directly", or "don't use a workflow" override an existing workflow execution plan even for complex work. Treat "quickly" as an inline execution choice, not a request for a faster workflow. Do not create or launch a hidden/nested replacement workflow or pressure the user to reapprove the choice. Quoted examples and questions about inline code are not execution-mode instructions; neither are descriptions of software that should run quickly.`,
|
|
26
26
|
"- On a switch from an active workflow to inline, notify the controlling session to safely hold/stop the affected workflow, reconcile completed work and in-flight side effects, then continue inline without duplicate execution. Do not claim completed work was undone. Preserve appropriate tests, review, evidence, safety and authorization constraints; the preference applies only to the specified task.",
|
|
27
27
|
"- An amendment that stays in your session is lost. Restate every objective-relevant steering message in your final report or handoff artifact, verbatim when short, under an explicit `Contract amendments received` heading.",
|
|
28
28
|
"- Keep user-authored amendments visibly separate from your own observations, so later stages can tell a required clause from an agent proposal.",
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withSteeringPropagationContext2
|
|
3
|
+
} from "./chunk-n4yxrsm9.js";
|
|
4
|
+
|
|
1
5
|
// dist/builtin/workflows/src/authoring/workflow.ts
|
|
2
6
|
import { basename } from "node:path";
|
|
3
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -153,4 +157,16 @@ function workflow(spec) {
|
|
|
153
157
|
return Object.freeze(branded);
|
|
154
158
|
}
|
|
155
159
|
|
|
156
|
-
|
|
160
|
+
// dist/builtin/workflows/builtin/builtin-context.ts
|
|
161
|
+
function withBuiltinContext(ctx) {
|
|
162
|
+
const wrapped = withSteeringPropagationContext2(ctx);
|
|
163
|
+
const task = wrapped.task;
|
|
164
|
+
const chain = wrapped.chain;
|
|
165
|
+
const parallel = wrapped.parallel;
|
|
166
|
+
wrapped.task = (name, options) => task(name, { ...options, model: options.model ?? "auto" });
|
|
167
|
+
wrapped.chain = (steps, options) => chain(steps.map((step) => ({ ...step, model: step.model ?? options?.model ?? "auto" })), options);
|
|
168
|
+
wrapped.parallel = (steps, options) => parallel(steps.map((step) => ({ ...step, model: step.model ?? options?.model ?? "auto" })), options);
|
|
169
|
+
return wrapped;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export { workflow, withBuiltinContext };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
withSteeringPropagationContext2
|
|
6
|
-
} from "./chunk-a2kdsqn8.js";
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
7
5
|
import {
|
|
8
6
|
stableArtifactRoot
|
|
9
7
|
} from "./chunk-rc5ec5xx.js";
|
|
@@ -193,7 +191,7 @@ var fan_out_and_synthesize_default = workflow({
|
|
|
193
191
|
artifact_dir: Type2.String({ description: "Per-run artifact directory." }),
|
|
194
192
|
manifest_path: Type2.String({ description: "Barrier manifest linking partitions to branch artifacts." })
|
|
195
193
|
},
|
|
196
|
-
run: async (ctx) => await runFanOutAndSynthesize(
|
|
194
|
+
run: async (ctx) => await runFanOutAndSynthesize(withBuiltinContext(ctx))
|
|
197
195
|
});
|
|
198
196
|
|
|
199
197
|
export { fan_out_and_synthesize_default };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
withSteeringPropagationContext2
|
|
6
|
-
} from "./chunk-a2kdsqn8.js";
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
7
5
|
import {
|
|
8
6
|
score_progress,
|
|
9
7
|
classify_trend
|
|
@@ -339,7 +337,7 @@ var loop_until_done_default = workflow({
|
|
|
339
337
|
final_trend: Type2.Union([Type2.Literal("rising"), Type2.Literal("flat"), Type2.Literal("regressing")], { description: "Final advisory trend classification; never a stop decision." }),
|
|
340
338
|
progress_disclaimer: Type2.String({ description: "Calibration disclaimer for the advisory progress signal." })
|
|
341
339
|
},
|
|
342
|
-
run: async (ctx) => await runLoopUntilDone(
|
|
340
|
+
run: async (ctx) => await runLoopUntilDone(withBuiltinContext(ctx))
|
|
343
341
|
});
|
|
344
342
|
|
|
345
343
|
export { loop_until_done_default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
workflow
|
|
3
|
-
|
|
2
|
+
workflow,
|
|
3
|
+
withBuiltinContext
|
|
4
|
+
} from "./chunk-n8g2da69.js";
|
|
4
5
|
import {
|
|
5
6
|
keepContext,
|
|
6
7
|
REVIEWER_CALIBRATION_RULES,
|
|
@@ -22,9 +23,8 @@ import {
|
|
|
22
23
|
SCOPE_DISCIPLINE_CONTRACT,
|
|
23
24
|
EVIDENCE_CLOSURE_POLICY,
|
|
24
25
|
WORKTREE_DISCIPLINE_CONTRACT,
|
|
25
|
-
REVIEW_CODE_DELTA_CONTRACT
|
|
26
|
-
|
|
27
|
-
} from "./chunk-a2kdsqn8.js";
|
|
26
|
+
REVIEW_CODE_DELTA_CONTRACT
|
|
27
|
+
} from "./chunk-n4yxrsm9.js";
|
|
28
28
|
import {
|
|
29
29
|
workflowArtifactDirectoryPath,
|
|
30
30
|
ensureWorkflowArtifactDirectory,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
reviewerFailureText,
|
|
37
37
|
summarizeReviewConvergence,
|
|
38
38
|
reverify_consolidated_batch
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-1dydq7w3.js";
|
|
40
40
|
import {
|
|
41
41
|
VERIFICATION_SCALE
|
|
42
42
|
} from "./chunk-n1910xc4.js";
|
|
@@ -113,93 +113,11 @@ var reviewDecisionSchema = Type.Object({
|
|
|
113
113
|
|
|
114
114
|
// dist/builtin/workflows/builtin/goal-models.ts
|
|
115
115
|
var orchestratorModelConfig = {
|
|
116
|
-
model: "
|
|
117
|
-
fallbackModels: [
|
|
118
|
-
"github-copilot/gpt-6-astra:medium",
|
|
119
|
-
"openai/gpt-6-astra:medium",
|
|
120
|
-
"anthropic/claude-fable-5-1:medium",
|
|
121
|
-
"github-copilot/claude-fable-5-1:medium",
|
|
122
|
-
"anthropic/claude-opus-5:high",
|
|
123
|
-
"github-copilot/claude-opus-5:high",
|
|
124
|
-
"openai-codex/gpt-5.6-sol:high",
|
|
125
|
-
"github-copilot/gpt-5.6-sol:high",
|
|
126
|
-
"openai/gpt-5.6-sol:high",
|
|
127
|
-
"anthropic/claude-fable-5:medium",
|
|
128
|
-
"github-copilot/claude-fable-5:medium",
|
|
129
|
-
"kimi-coding/k3:max",
|
|
130
|
-
"moonshotai/kimi-k3:max",
|
|
131
|
-
"moonshotai-cn/kimi-k3:max",
|
|
132
|
-
"openai-codex/gpt-5.5:xhigh",
|
|
133
|
-
"github-copilot/gpt-5.5:xhigh",
|
|
134
|
-
"openai/gpt-5.5:xhigh",
|
|
135
|
-
"anthropic/claude-opus-4-8:high",
|
|
136
|
-
"github-copilot/claude-opus-4.8:high",
|
|
137
|
-
"xai/grok-4.6:xhigh",
|
|
138
|
-
"github-copilot/grok-4.6:xhigh",
|
|
139
|
-
"zai/glm-5.3:high",
|
|
140
|
-
"zai-coding-cn/glm-5.3:high",
|
|
141
|
-
"zai/glm-5.3-flash:high",
|
|
142
|
-
"zai-coding-cn/glm-5.3-flash:high",
|
|
143
|
-
"baseten/zai-org/GLM-5.3:high",
|
|
144
|
-
"baseten/zai-org/GLM-5.3-Flash:high",
|
|
145
|
-
"openrouter/openai/gpt-6-astra:medium",
|
|
146
|
-
"openrouter/anthropic/claude-fable-5-1:medium",
|
|
147
|
-
"openrouter/anthropic/claude-opus-5:high",
|
|
148
|
-
"openrouter/openai/gpt-5.6-sol:high",
|
|
149
|
-
"openrouter/anthropic/claude-fable-5:medium",
|
|
150
|
-
"openrouter/moonshotai/kimi-k3:max",
|
|
151
|
-
"openrouter/sakana/fugu-ultra:high",
|
|
152
|
-
"openrouter/openai/gpt-5.5:xhigh",
|
|
153
|
-
"openrouter/anthropic/claude-opus-4-8:high",
|
|
154
|
-
"openrouter/x-ai/grok-4.6:xhigh",
|
|
155
|
-
"openrouter/z-ai/glm-5.3:high",
|
|
156
|
-
"openrouter/z-ai/glm-5.3-flash:high"
|
|
157
|
-
],
|
|
116
|
+
model: "auto",
|
|
158
117
|
excludedTools: ["ask_user_question"]
|
|
159
118
|
};
|
|
160
119
|
var reviewerModelConfig = {
|
|
161
|
-
model: "
|
|
162
|
-
fallbackModels: [
|
|
163
|
-
"github-copilot/gpt-6-astra:high",
|
|
164
|
-
"openai/gpt-6-astra:high",
|
|
165
|
-
"anthropic/claude-fable-5-1:high",
|
|
166
|
-
"github-copilot/claude-fable-5-1:high",
|
|
167
|
-
"anthropic/claude-opus-5:high",
|
|
168
|
-
"github-copilot/claude-opus-5:high",
|
|
169
|
-
"anthropic/claude-fable-5:high",
|
|
170
|
-
"github-copilot/claude-fable-5:high",
|
|
171
|
-
"openai-codex/gpt-5.6-sol:high",
|
|
172
|
-
"github-copilot/gpt-5.6-sol:high",
|
|
173
|
-
"openai/gpt-5.6-sol:high",
|
|
174
|
-
"kimi-coding/k3:max",
|
|
175
|
-
"moonshotai/kimi-k3:max",
|
|
176
|
-
"moonshotai-cn/kimi-k3:max",
|
|
177
|
-
"openai-codex/gpt-5.5:xhigh",
|
|
178
|
-
"github-copilot/gpt-5.5:xhigh",
|
|
179
|
-
"openai/gpt-5.5:xhigh",
|
|
180
|
-
"anthropic/claude-opus-4-8:high",
|
|
181
|
-
"github-copilot/claude-opus-4.8:high",
|
|
182
|
-
"xai/grok-4.6:xhigh",
|
|
183
|
-
"github-copilot/grok-4.6:xhigh",
|
|
184
|
-
"zai/glm-5.3:high",
|
|
185
|
-
"zai-coding-cn/glm-5.3:high",
|
|
186
|
-
"zai/glm-5.3-flash:high",
|
|
187
|
-
"zai-coding-cn/glm-5.3-flash:high",
|
|
188
|
-
"baseten/zai-org/GLM-5.3:high",
|
|
189
|
-
"baseten/zai-org/GLM-5.3-Flash:high",
|
|
190
|
-
"openrouter/openai/gpt-6-astra:high",
|
|
191
|
-
"openrouter/anthropic/claude-fable-5-1:high",
|
|
192
|
-
"openrouter/anthropic/claude-opus-5:high",
|
|
193
|
-
"openrouter/anthropic/claude-fable-5:high",
|
|
194
|
-
"openrouter/openai/gpt-5.6-sol:high",
|
|
195
|
-
"openrouter/moonshotai/kimi-k3:max",
|
|
196
|
-
"openrouter/sakana/fugu-ultra:high",
|
|
197
|
-
"openrouter/openai/gpt-5.5:xhigh",
|
|
198
|
-
"openrouter/anthropic/claude-opus-4-8:high",
|
|
199
|
-
"openrouter/x-ai/grok-4.6:xhigh",
|
|
200
|
-
"openrouter/z-ai/glm-5.3:high",
|
|
201
|
-
"openrouter/z-ai/glm-5.3-flash:high"
|
|
202
|
-
],
|
|
120
|
+
model: "auto",
|
|
203
121
|
excludedTools: ["ask_user_question"],
|
|
204
122
|
schema: reviewDecisionSchema
|
|
205
123
|
};
|
|
@@ -1227,7 +1145,7 @@ var goal_default = workflow({
|
|
|
1227
1145
|
baseBranch: "base_branch"
|
|
1228
1146
|
},
|
|
1229
1147
|
run: async (ctx) => {
|
|
1230
|
-
const workflowCtx =
|
|
1148
|
+
const workflowCtx = withBuiltinContext(ctx);
|
|
1231
1149
|
const workflowStartCwd = workflowCtx.cwd ?? process.cwd();
|
|
1232
1150
|
const createPr = workflowCtx.inputs.create_pr === true;
|
|
1233
1151
|
return await runGoalWorkflow(workflowCtx, { createPr, workflowStartCwd });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_ACTION_CATEGORIES2,
|
|
3
3
|
classify_and_act_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
6
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-kf5xpbkz.js";
|
|
5
|
+
import"./chunk-n8g2da69.js";
|
|
6
|
+
import"./chunk-n4yxrsm9.js";
|
|
7
7
|
export {
|
|
8
8
|
DEFAULT_ACTION_CATEGORIES2 as DEFAULT_ACTION_CATEGORIES,
|
|
9
9
|
classify_and_act_default as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fan_out_and_synthesize_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import"./chunk-
|
|
5
|
-
import"./chunk-
|
|
3
|
+
} from "./chunk-scgprmdj.js";
|
|
4
|
+
import"./chunk-n8g2da69.js";
|
|
5
|
+
import"./chunk-n4yxrsm9.js";
|
|
6
6
|
export {
|
|
7
7
|
fan_out_and_synthesize_default as default
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate_and_filter_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-d1xqh1rd.js";
|
|
4
4
|
import"./chunk-2377r57g.js";
|
|
5
5
|
import"./chunk-n1910xc4.js";
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
6
|
+
import"./chunk-n8g2da69.js";
|
|
7
|
+
import"./chunk-n4yxrsm9.js";
|
|
8
8
|
export {
|
|
9
9
|
generate_and_filter_default as default
|
|
10
10
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
goal_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import"./chunk-
|
|
3
|
+
} from "./chunk-vt9zgr9d.js";
|
|
4
|
+
import"./chunk-1dydq7w3.js";
|
|
5
5
|
import"./chunk-2377r57g.js";
|
|
6
6
|
import"./chunk-z0d03ktm.js";
|
|
7
7
|
import"./chunk-n1910xc4.js";
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-n8g2da69.js";
|
|
9
|
+
import"./chunk-n4yxrsm9.js";
|
|
10
10
|
export {
|
|
11
11
|
goal_default as default
|
|
12
12
|
};
|