@bastani/atomic 0.9.20-alpha.3 → 0.9.20-alpha.5
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 +150 -0
- package/README.md +15 -7
- package/dist/builtin/intercom/CHANGELOG.md +24 -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 +36 -5
- 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 +39 -0
- package/dist/builtin/subagents/README.md +4 -2
- package/dist/builtin/subagents/agents/code-simplifier.md +3 -4
- package/dist/builtin/subagents/agents/codebase-analyzer.md +3 -4
- package/dist/builtin/subagents/agents/codebase-locator.md +2 -3
- package/dist/builtin/subagents/agents/codebase-online-researcher.md +5 -6
- 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 +8 -7
- package/dist/builtin/subagents/agents/worker.md +5 -4
- package/dist/builtin/subagents/package.json +4 -8
- package/dist/builtin/subagents/skills/agent-browser/SKILL.md +56 -0
- package/dist/builtin/subagents/skills/subagent/SKILL.md +45 -19
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +255 -66
- package/dist/builtin/web-access/CHANGELOG.md +12 -0
- package/dist/builtin/web-access/index.bundle.mjs +367 -295
- package/dist/builtin/web-access/package.json +3 -3
- package/dist/builtin/workflows/CHANGELOG.md +98 -0
- package/dist/builtin/workflows/README.md +33 -32
- package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
- package/dist/builtin/workflows/builtin/{chunk-xtxcq5tj.js → chunk-00ywx588.js} +17 -1
- package/dist/builtin/workflows/builtin/{chunk-z29qbehr.js → chunk-55p5dxjk.js} +4 -6
- package/dist/builtin/workflows/builtin/chunk-7f381xnq.js +9760 -0
- package/dist/builtin/workflows/builtin/{chunk-wf741bv3.js → chunk-7h7s5xdj.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-a2kdsqn8.js → chunk-e83tc6nr.js} +2 -2
- package/dist/builtin/workflows/builtin/{chunk-6w6cvk6b.js → chunk-evfb0312.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-fg9esgkj.js → chunk-ne6vh5ct.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-yeee2jrc.js → chunk-pfm1kgqz.js} +66 -88
- package/dist/builtin/workflows/builtin/{chunk-zqtm1d2c.js → chunk-tdqvdrg1.js} +13 -218
- package/dist/builtin/workflows/builtin/{chunk-g0csgs7w.js → chunk-tvcydq13.js} +8 -10
- package/dist/builtin/workflows/builtin/{chunk-31j2gs7h.js → chunk-x2nftpgj.js} +4 -6
- package/dist/builtin/workflows/builtin/{chunk-ewkkkbak.js → chunk-zj5162bh.js} +10 -92
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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/skills/impeccable/SKILL.md +18 -11
- package/dist/builtin/workflows/skills/impeccable/reference/adapt.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/adapt.native.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/animate.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/audit.md +5 -5
- package/dist/builtin/workflows/skills/impeccable/reference/audit.native.md +6 -6
- package/dist/builtin/workflows/skills/impeccable/reference/bolder.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/clarify.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/colorize.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/craft-floor.md +0 -6
- package/dist/builtin/workflows/skills/impeccable/reference/critique.md +19 -41
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/asset-producer.md +11 -65
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/documenter.md +3 -3
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/finish-reviewer.md +4 -4
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/manual-edit-applier.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/delight.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/distill.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/doctor.md +4 -4
- package/dist/builtin/workflows/skills/impeccable/reference/document.md +4 -4
- package/dist/builtin/workflows/skills/impeccable/reference/extract.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/harden.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/hooks.md +21 -21
- package/dist/builtin/workflows/skills/impeccable/reference/init.md +8 -8
- package/dist/builtin/workflows/skills/impeccable/reference/layout.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/live-setup.md +10 -8
- package/dist/builtin/workflows/skills/impeccable/reference/live.md +39 -38
- package/dist/builtin/workflows/skills/impeccable/reference/new-work.md +48 -21
- package/dist/builtin/workflows/skills/impeccable/reference/onboard.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/optimize.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/overdrive.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/polish.md +11 -3
- package/dist/builtin/workflows/skills/impeccable/reference/quieter.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/routing.md +13 -7
- package/dist/builtin/workflows/skills/impeccable/reference/typeset.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/visualize.md +13 -19
- package/dist/builtin/workflows/skills/impeccable/scripts/VERSION +1 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/data/font-index-failures.json +121 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/data/font-index.json +1 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/impeccable +212 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/impeccable.cmd +218 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-dom.js +21 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-ignores.js +242 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-session.js +25 -4
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser.js +666 -197
- package/dist/builtin/workflows/skills/research-codebase/SKILL.md +1 -1
- 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 +82204 -78828
- package/dist/builtin/workflows/src/index.js +8938 -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/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 +25 -8
- 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.map +1 -1
- package/dist/core/compaction/compaction-boundary.js +2 -1
- package/dist/core/compaction/compaction-boundary.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/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/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 +30 -0
- package/dist/core/execution-model-router.d.ts.map +1 -0
- package/dist/core/execution-model-router.js +191 -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 +8 -1
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-config.d.ts +41 -10
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +11 -2
- 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 +77 -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 +8 -4
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +27 -3
- 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 +132 -100
- 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.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/main-session.d.ts.map +1 -1
- package/dist/main-session.js +19 -10
- 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 +4 -0
- 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.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.js +17 -9
- 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.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 +87 -23
- 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 +10 -12
- package/docs/compaction.md +30 -112
- package/docs/computer-use.md +23 -24
- 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 +10 -8
- package/docs/getting-started/installation.md +14 -6
- 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 +16 -7
- package/docs/json.md +12 -2
- package/docs/keybindings.md +13 -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 +33 -118
- package/docs/models/reference.md +18 -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 +8 -4
- 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 +26 -7
- package/docs/subagents/authoring.md +11 -1
- package/docs/subagents/reference.md +98 -10
- package/docs/subagents.md +51 -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 +21 -7
- package/docs/web-access.md +5 -1
- package/docs/windows.md +18 -11
- package/docs/workflows/api-reference.md +134 -25
- package/docs/workflows/authoring.md +48 -39
- package/docs/workflows/builtins.md +22 -28
- package/docs/workflows/operations.md +284 -137
- package/docs/workflows/reliable-design.md +74 -130
- package/docs/workflows/verification.md +8 -8
- 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/subagents/skills/playwright-cli/SKILL.md +0 -420
- package/dist/builtin/subagents/skills/playwright-cli/references/element-attributes.md +0 -23
- package/dist/builtin/subagents/skills/playwright-cli/references/playwright-tests.md +0 -39
- package/dist/builtin/subagents/skills/playwright-cli/references/request-mocking.md +0 -87
- package/dist/builtin/subagents/skills/playwright-cli/references/running-code.md +0 -241
- package/dist/builtin/subagents/skills/playwright-cli/references/session-management.md +0 -225
- package/dist/builtin/subagents/skills/playwright-cli/references/storage-state.md +0 -275
- package/dist/builtin/subagents/skills/playwright-cli/references/test-generation.md +0 -433
- package/dist/builtin/subagents/skills/playwright-cli/references/tracing.md +0 -139
- package/dist/builtin/subagents/skills/playwright-cli/references/video-recording.md +0 -143
- package/dist/builtin/workflows/builtin/chunk-m0xfsef8.js +0 -2813
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_asset_producer.toml +0 -94
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_documenter.toml +0 -27
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_finish_reviewer.toml +0 -41
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_manual_edit_applier.toml +0 -95
- package/dist/builtin/workflows/skills/impeccable/agents/openai.yaml +0 -4
- package/dist/builtin/workflows/skills/impeccable/scripts/concept-seed.mjs +0 -695
- package/dist/builtin/workflows/skills/impeccable/scripts/context-signals.mjs +0 -325
- package/dist/builtin/workflows/skills/impeccable/scripts/context.mjs +0 -1503
- package/dist/builtin/workflows/skills/impeccable/scripts/critique-storage.mjs +0 -222
- package/dist/builtin/workflows/skills/impeccable/scripts/detect-csp.mjs +0 -198
- package/dist/builtin/workflows/skills/impeccable/scripts/detect.mjs +0 -21
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/browser/injected/index.mjs +0 -2073
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/cli/main.mjs +0 -432
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/design-system.mjs +0 -1121
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +0 -8746
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/detect-antipatterns.mjs +0 -51
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +0 -376
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +0 -1168
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +0 -1192
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +0 -290
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +0 -189
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/findings.mjs +0 -18
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/node/file-system.mjs +0 -213
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/profile/profiler.mjs +0 -166
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/registry/antipatterns.mjs +0 -617
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/rules/checks.mjs +0 -5534
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/color.mjs +0 -588
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/constants.mjs +0 -112
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/fonts.mjs +0 -30
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +0 -148
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/page.mjs +0 -35
- package/dist/builtin/workflows/skills/impeccable/scripts/doctor.mjs +0 -338
- package/dist/builtin/workflows/skills/impeccable/scripts/embed-prompt.mjs +0 -270
- package/dist/builtin/workflows/skills/impeccable/scripts/generate-image.mjs +0 -277
- package/dist/builtin/workflows/skills/impeccable/scripts/hook-admin.mjs +0 -783
- package/dist/builtin/workflows/skills/impeccable/scripts/hook-lib.mjs +0 -2305
- package/dist/builtin/workflows/skills/impeccable/scripts/hook.mjs +0 -78
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/artifact-schema.mjs +0 -93
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/composition-catalog.mjs +0 -200
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/concept-catalog.mjs +0 -395
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/design-parser.mjs +0 -925
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/impeccable-config.mjs +0 -640
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/impeccable-paths.mjs +0 -137
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/is-generated.mjs +0 -72
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/open-system-browser.mjs +0 -57
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/provider.mjs +0 -5
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/roll-selection.mjs +0 -369
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness-deep.mjs +0 -483
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness-notice.mjs +0 -169
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness.mjs +0 -528
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/surface-briefs.mjs +0 -151
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/target-args.mjs +0 -42
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/target-slug.mjs +0 -33
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/template-extensions.mjs +0 -146
- package/dist/builtin/workflows/skills/impeccable/scripts/live/accept-css.mjs +0 -617
- package/dist/builtin/workflows/skills/impeccable/scripts/live/accept-verify.mjs +0 -71
- package/dist/builtin/workflows/skills/impeccable/scripts/live/browser-script-parts.mjs +0 -77
- package/dist/builtin/workflows/skills/impeccable/scripts/live/completion.mjs +0 -28
- package/dist/builtin/workflows/skills/impeccable/scripts/live/event-validation.mjs +0 -199
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/astro.mjs +0 -47
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/detect-utils.mjs +0 -157
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/index.mjs +0 -143
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/journal.mjs +0 -205
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/nextjs.mjs +0 -49
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/nuxt.mjs +0 -170
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/script-src.mjs +0 -26
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/static-html.mjs +0 -26
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/sveltekit.mjs +0 -71
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/tag-strategy.mjs +0 -247
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/tanstack-start.mjs +0 -70
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/vite-generic.mjs +0 -42
- package/dist/builtin/workflows/skills/impeccable/scripts/live/generation-preflight.mjs +0 -149
- package/dist/builtin/workflows/skills/impeccable/scripts/live/insert-ui.mjs +0 -458
- package/dist/builtin/workflows/skills/impeccable/scripts/live/instructions.mjs +0 -169
- package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-apply.mjs +0 -939
- package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-edit-routes.mjs +0 -357
- package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-edits-buffer.mjs +0 -152
- package/dist/builtin/workflows/skills/impeccable/scripts/live/poll-lanes.mjs +0 -14
- package/dist/builtin/workflows/skills/impeccable/scripts/live/roots.mjs +0 -670
- package/dist/builtin/workflows/skills/impeccable/scripts/live/session-store.mjs +0 -563
- package/dist/builtin/workflows/skills/impeccable/scripts/live/source-lock.mjs +0 -105
- package/dist/builtin/workflows/skills/impeccable/scripts/live/source-search.mjs +0 -105
- package/dist/builtin/workflows/skills/impeccable/scripts/live/svelte-ast.mjs +0 -969
- package/dist/builtin/workflows/skills/impeccable/scripts/live/svelte-component.mjs +0 -1401
- package/dist/builtin/workflows/skills/impeccable/scripts/live/sveltekit-adapter.mjs +0 -314
- package/dist/builtin/workflows/skills/impeccable/scripts/live/tanstack-adapter.mjs +0 -280
- package/dist/builtin/workflows/skills/impeccable/scripts/live/ui-surfaces.mjs +0 -75
- package/dist/builtin/workflows/skills/impeccable/scripts/live/vocabulary.mjs +0 -171
- package/dist/builtin/workflows/skills/impeccable/scripts/live-accept.mjs +0 -961
- package/dist/builtin/workflows/skills/impeccable/scripts/live-commit-manual-edits.mjs +0 -1244
- package/dist/builtin/workflows/skills/impeccable/scripts/live-complete.mjs +0 -107
- package/dist/builtin/workflows/skills/impeccable/scripts/live-copy-edit-agent.mjs +0 -800
- package/dist/builtin/workflows/skills/impeccable/scripts/live-discard-manual-edits.mjs +0 -51
- package/dist/builtin/workflows/skills/impeccable/scripts/live-inject.mjs +0 -515
- package/dist/builtin/workflows/skills/impeccable/scripts/live-insert.mjs +0 -292
- package/dist/builtin/workflows/skills/impeccable/scripts/live-manual-edit-evidence.mjs +0 -371
- package/dist/builtin/workflows/skills/impeccable/scripts/live-poll.mjs +0 -427
- package/dist/builtin/workflows/skills/impeccable/scripts/live-resume.mjs +0 -123
- package/dist/builtin/workflows/skills/impeccable/scripts/live-server.mjs +0 -1675
- package/dist/builtin/workflows/skills/impeccable/scripts/live-status.mjs +0 -71
- package/dist/builtin/workflows/skills/impeccable/scripts/live-target.mjs +0 -30
- package/dist/builtin/workflows/skills/impeccable/scripts/live-wrap.mjs +0 -927
- package/dist/builtin/workflows/skills/impeccable/scripts/live.mjs +0 -365
- package/dist/builtin/workflows/skills/impeccable/scripts/palette.mjs +0 -628
- package/dist/builtin/workflows/skills/impeccable/scripts/pin.mjs +0 -224
- package/dist/builtin/workflows/skills/impeccable/scripts/serve-question.mjs +0 -1540
- package/dist/builtin/workflows/skills/impeccable/scripts/surface-brief.mjs +0 -74
- package/docs/models/artificial-analysis-index.md +0 -89
- package/docs/models/pareto-efficiency.md +0 -90
- package/docs/tools/edit.md +0 -378
|
@@ -24,6 +24,20 @@ var __esm = (fn, res, err) => () => {
|
|
|
24
24
|
return res;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
// dist/builtin/intercom/diagnostics.ts
|
|
28
|
+
function reportOwnedIntercomDiagnostic() {
|
|
29
|
+
const report = host[contextKey]?.getStore();
|
|
30
|
+
if (!report)
|
|
31
|
+
return false;
|
|
32
|
+
report({ level: "error", source: "intercom", message: "Intercom operation failed" });
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
var contextKey, host;
|
|
36
|
+
var init_diagnostics = __esm(() => {
|
|
37
|
+
contextKey = Symbol.for("atomic.builtin-diagnostic-context.v1");
|
|
38
|
+
host = globalThis;
|
|
39
|
+
});
|
|
40
|
+
|
|
27
41
|
// dist/builtin/intercom/result-renderers.ts
|
|
28
42
|
import { Text } from "@earendil-works/pi-tui";
|
|
29
43
|
function isTextContentBlock(block) {
|
|
@@ -1912,12 +1926,14 @@ function loadConfig() {
|
|
|
1912
1926
|
}
|
|
1913
1927
|
return config;
|
|
1914
1928
|
} catch (error) {
|
|
1915
|
-
|
|
1929
|
+
if (!reportOwnedIntercomDiagnostic())
|
|
1930
|
+
console.error(`Failed to load intercom config at ${CONFIG_PATH}:`, error);
|
|
1916
1931
|
return { ...defaults };
|
|
1917
1932
|
}
|
|
1918
1933
|
}
|
|
1919
1934
|
var CONFIG_PATHS, CONFIG_PATH, DEFAULT_BROKER_COMMAND = "npx", DEFAULT_BROKER_ARGS, defaults;
|
|
1920
1935
|
var init_config = __esm(() => {
|
|
1936
|
+
init_diagnostics();
|
|
1921
1937
|
init_reply_waiter();
|
|
1922
1938
|
CONFIG_PATHS = getAgentConfigPaths("intercom", "config.json");
|
|
1923
1939
|
CONFIG_PATH = CONFIG_PATHS.find((path) => existsSync2(path)) ?? CONFIG_PATHS[0];
|
|
@@ -1945,22 +1961,42 @@ function resolveSessionTarget(sessions, nameOrId) {
|
|
|
1945
1961
|
if (exactNames.length > 1) {
|
|
1946
1962
|
return { kind: "ambiguous_name", matches: exactNames };
|
|
1947
1963
|
}
|
|
1964
|
+
if (UUID_PREFIX_PATTERN.test(target)) {
|
|
1965
|
+
const normalized = target.toLowerCase();
|
|
1966
|
+
const prefixMatches = sessions.filter((session) => UUID_PATTERN.test(session.id) && session.id.toLowerCase().startsWith(normalized));
|
|
1967
|
+
if (prefixMatches.length === 1)
|
|
1968
|
+
return { kind: "resolved", session: prefixMatches[0] };
|
|
1969
|
+
if (prefixMatches.length > 1)
|
|
1970
|
+
return { kind: "ambiguous_id_prefix", matches: prefixMatches };
|
|
1971
|
+
}
|
|
1948
1972
|
return { kind: "not_found" };
|
|
1949
1973
|
}
|
|
1950
1974
|
function sessionTargetFailureReason(target, resolution) {
|
|
1951
1975
|
if (resolution.kind === "ambiguous_name") {
|
|
1952
1976
|
return `Multiple sessions named "${target}" are connected. Use the session ID instead.`;
|
|
1953
1977
|
}
|
|
1978
|
+
if (resolution.kind === "ambiguous_id_prefix") {
|
|
1979
|
+
return `Session ID prefix "${target}" is ambiguous; matches: ${resolution.matches.map((session) => `${session.name ?? "unnamed"} (${session.id})`).join(", ")}. Use the full UUID.`;
|
|
1980
|
+
}
|
|
1954
1981
|
return "Session not found";
|
|
1955
1982
|
}
|
|
1956
1983
|
async function resolveSessionTargetId(client, nameOrId) {
|
|
1957
|
-
const
|
|
1984
|
+
const sessions = [...await client.listSessions()];
|
|
1985
|
+
if (client.supervisorSessionId && !sessions.some((session) => session.id === client.supervisorSessionId)) {
|
|
1986
|
+
sessions.push({ id: client.supervisorSessionId });
|
|
1987
|
+
}
|
|
1988
|
+
const resolution = resolveSessionTarget(sessions, nameOrId);
|
|
1958
1989
|
if (resolution.kind === "resolved")
|
|
1959
1990
|
return resolution.session.id;
|
|
1960
1991
|
if (resolution.kind === "not_found")
|
|
1961
1992
|
return null;
|
|
1962
1993
|
throw new Error(sessionTargetFailureReason(nameOrId, resolution));
|
|
1963
1994
|
}
|
|
1995
|
+
var UUID_PATTERN, UUID_PREFIX_PATTERN;
|
|
1996
|
+
var init_session_target = __esm(() => {
|
|
1997
|
+
UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1998
|
+
UUID_PREFIX_PATTERN = /^[0-9a-f]{8}$/i;
|
|
1999
|
+
});
|
|
1964
2000
|
|
|
1965
2001
|
// dist/builtin/intercom/reply-tracker.ts
|
|
1966
2002
|
class ReplyTracker {
|
|
@@ -2011,7 +2047,15 @@ class ReplyTracker {
|
|
|
2011
2047
|
resolveReplyTarget(options, now = Date.now()) {
|
|
2012
2048
|
this.pruneExpired(now);
|
|
2013
2049
|
if (options.replyTo !== undefined) {
|
|
2014
|
-
const
|
|
2050
|
+
const contexts = new Map(this.pendingAsks);
|
|
2051
|
+
if (this.currentTurnContext && !this.currentTurnContext.message.expectsReply) {
|
|
2052
|
+
contexts.set(this.currentTurnContext.message.id, this.currentTurnContext);
|
|
2053
|
+
}
|
|
2054
|
+
const resolution = resolveSessionTarget(Array.from(contexts.keys(), (id) => ({ id })), options.replyTo);
|
|
2055
|
+
if (resolution.kind === "ambiguous_id_prefix" || resolution.kind === "ambiguous_name") {
|
|
2056
|
+
throw new Error(sessionTargetFailureReason(options.replyTo, resolution));
|
|
2057
|
+
}
|
|
2058
|
+
const exact = resolution.kind === "resolved" ? contexts.get(resolution.session.id) : undefined;
|
|
2015
2059
|
if (!exact)
|
|
2016
2060
|
throw new Error(`No reply context for "${options.replyTo}"`);
|
|
2017
2061
|
if (options.to !== undefined) {
|
|
@@ -2074,6 +2118,7 @@ class ReplyTracker {
|
|
|
2074
2118
|
}
|
|
2075
2119
|
var init_reply_tracker = __esm(() => {
|
|
2076
2120
|
init_retry_policy();
|
|
2121
|
+
init_session_target();
|
|
2077
2122
|
});
|
|
2078
2123
|
|
|
2079
2124
|
// dist/builtin/intercom/parent-ask-handoff.ts
|
|
@@ -3214,7 +3259,8 @@ Use this to communicate findings, request help, or coordinate work with other se
|
|
|
3214
3259
|
Sessions belong to an intercom group and can ONLY message sessions in the same group;
|
|
3215
3260
|
cross-group sends are rejected by the broker. Ungrouped sessions share the "default" group.
|
|
3216
3261
|
|
|
3217
|
-
For send, live session names
|
|
3262
|
+
For send, live session names, exact full session IDs, and unique 8-hex session UUID prefixes
|
|
3263
|
+
remain supported. Workflow-stage targets use
|
|
3218
3264
|
\`workflow:<rootRunId>/<segment>[/<segment>...]\`; a segment may be a stage name, run id, or glob
|
|
3219
3265
|
(\`*\` matches one segment and may be embedded, while \`**\` matches any depth). Use \`intercom list\`
|
|
3220
3266
|
inside the invocation group to see live, pending, and possible future targets with queued counts.
|
|
@@ -3248,7 +3294,7 @@ one shared membership; contact_supervisor remains the only cross-group path.`,
|
|
|
3248
3294
|
description: "Action: 'list', 'groups', 'join', 'leave', 'send', 'ask', 'reply', 'pending', or 'status'"
|
|
3249
3295
|
}),
|
|
3250
3296
|
to: Type2.Optional(Type2.String({
|
|
3251
|
-
description: "Live session name, exact full session ID, or `workflow:<rootRunId>/<segment>[/<segment>...]` path; `*` matches one segment and `**` any depth. Send queues sticky delivery for pending/future matches; `workflow:<rootRunId>/**` broadcasts to live and future stages. Use `ask` only on live targets (for 'send', 'ask', or targeted 'reply')"
|
|
3297
|
+
description: "Live session name, exact full session ID, unique 8-hex session UUID prefix, or `workflow:<rootRunId>/<segment>[/<segment>...]` path; `*` matches one segment and `**` any depth. Send queues sticky delivery for pending/future matches; `workflow:<rootRunId>/**` broadcasts to live and future stages. Use `ask` only on live targets (for 'send', 'ask', or targeted 'reply')"
|
|
3252
3298
|
})),
|
|
3253
3299
|
message: Type2.Optional(Type2.String({
|
|
3254
3300
|
description: "Message to send (for 'send', 'ask', or 'reply' action)"
|
|
@@ -3260,7 +3306,7 @@ one shared membership; contact_supervisor remains the only cross-group path.`,
|
|
|
3260
3306
|
language: Type2.Optional(Type2.String())
|
|
3261
3307
|
}))),
|
|
3262
3308
|
replyTo: Type2.Optional(Type2.String({
|
|
3263
|
-
description: "Exact pending-ask message ID; disambiguates concurrent asks, including asks from one sender"
|
|
3309
|
+
description: "Exact pending-ask message ID or unique 8-hex UUID prefix; disambiguates concurrent asks, including asks from one sender"
|
|
3264
3310
|
})),
|
|
3265
3311
|
group: Type2.Optional(Type2.String({
|
|
3266
3312
|
description: "Group name for 'join' or optional targeted 'leave'; read-only group filter for 'list'/'status'. 'send'/'ask' use shared memberships."
|
|
@@ -3931,7 +3977,31 @@ ${replyText}${replyAttachments}` }],
|
|
|
3931
3977
|
const route = retryIdentities.replyRoute(retryIdentity);
|
|
3932
3978
|
if (route === undefined)
|
|
3933
3979
|
throw new RetryTokenError("invalid");
|
|
3934
|
-
|
|
3980
|
+
let replySendTo = to ?? route.senderId;
|
|
3981
|
+
if (to !== undefined) {
|
|
3982
|
+
const listed = await connectedClient.listSessions();
|
|
3983
|
+
const replyCandidates = listed.some((session) => session.id === route.senderId) ? listed : [
|
|
3984
|
+
...listed,
|
|
3985
|
+
{
|
|
3986
|
+
id: route.senderId,
|
|
3987
|
+
...route.senderName === undefined ? {} : { name: route.senderName }
|
|
3988
|
+
}
|
|
3989
|
+
];
|
|
3990
|
+
const replyTarget = resolveSessionTarget(replyCandidates, to);
|
|
3991
|
+
if (replyTarget.kind !== "resolved" && replyTarget.kind !== "not_found") {
|
|
3992
|
+
throw new Error(sessionTargetFailureReason(to, replyTarget));
|
|
3993
|
+
}
|
|
3994
|
+
if (replyTarget.kind === "resolved" && replyTarget.session.id !== route.senderId) {
|
|
3995
|
+
throw new Error("Reply target cannot be resolved safely; use the exact sender ID");
|
|
3996
|
+
}
|
|
3997
|
+
if (replyTarget.kind === "resolved") {
|
|
3998
|
+
const trimmedTo = to.trim();
|
|
3999
|
+
const exactId = replyTarget.session.id === trimmedTo;
|
|
4000
|
+
const exactName = replyTarget.session.name !== undefined && replyTarget.session.name.toLowerCase() === trimmedTo.toLowerCase();
|
|
4001
|
+
if (!exactId && !exactName)
|
|
4002
|
+
replySendTo = replyTarget.session.id;
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
3935
4005
|
const replyLogicalTarget = to ?? route.senderId;
|
|
3936
4006
|
const displayTarget = route.senderName || route.senderId;
|
|
3937
4007
|
if (route.senderId === connectedClient.sessionId) {
|
|
@@ -4132,6 +4202,7 @@ var init_intercom_tool = __esm(() => {
|
|
|
4132
4202
|
init_parent_ask_handoff();
|
|
4133
4203
|
init_result_renderers();
|
|
4134
4204
|
init_intercom_utils();
|
|
4205
|
+
init_session_target();
|
|
4135
4206
|
init_group();
|
|
4136
4207
|
init_workflow_stage_target();
|
|
4137
4208
|
init_recoverable_disconnect();
|
|
@@ -4549,14 +4620,16 @@ function registerIntercomLifecycle(pi, deps) {
|
|
|
4549
4620
|
try {
|
|
4550
4621
|
await activeClient.disconnect();
|
|
4551
4622
|
} catch (error) {
|
|
4552
|
-
|
|
4623
|
+
if (!reportOwnedIntercomDiagnostic())
|
|
4624
|
+
console.error(`Intercom failed to disconnect during ${reason.toLowerCase()}; continuing cleanup:`, error);
|
|
4553
4625
|
}
|
|
4554
4626
|
}
|
|
4555
4627
|
if (deps.disconnectAuxiliaryClients) {
|
|
4556
4628
|
try {
|
|
4557
4629
|
await deps.disconnectAuxiliaryClients();
|
|
4558
4630
|
} catch (error) {
|
|
4559
|
-
|
|
4631
|
+
if (!reportOwnedIntercomDiagnostic())
|
|
4632
|
+
console.error(`Intercom failed to disconnect auxiliary clients during ${reason.toLowerCase()}; continuing cleanup:`, error);
|
|
4560
4633
|
}
|
|
4561
4634
|
}
|
|
4562
4635
|
deps.restoreIntercomSessionIdEnv?.();
|
|
@@ -4655,6 +4728,7 @@ function registerIntercomLifecycle(pi, deps) {
|
|
|
4655
4728
|
});
|
|
4656
4729
|
}
|
|
4657
4730
|
var init_lifecycle = __esm(() => {
|
|
4731
|
+
init_diagnostics();
|
|
4658
4732
|
init_intercom_utils();
|
|
4659
4733
|
});
|
|
4660
4734
|
|
|
@@ -5354,7 +5428,8 @@ ${messageText}`,
|
|
|
5354
5428
|
try {
|
|
5355
5429
|
recordSubagentDeliveryError(entryType, to, message, error);
|
|
5356
5430
|
} catch (recordError) {
|
|
5357
|
-
|
|
5431
|
+
if (!reportOwnedIntercomDiagnostic())
|
|
5432
|
+
console.error("Failed to record local subagent relay error:", recordError);
|
|
5358
5433
|
}
|
|
5359
5434
|
}
|
|
5360
5435
|
function emitResultDelivery(requestId, delivered, error) {
|
|
@@ -5411,7 +5486,8 @@ ${messageText}`,
|
|
|
5411
5486
|
try {
|
|
5412
5487
|
acknowledgeResult(options, parsed.requestId, false, error);
|
|
5413
5488
|
} catch (ackError) {
|
|
5414
|
-
|
|
5489
|
+
if (!reportOwnedIntercomDiagnostic())
|
|
5490
|
+
console.error("Failed to acknowledge local subagent relay error:", ackError);
|
|
5415
5491
|
}
|
|
5416
5492
|
}
|
|
5417
5493
|
}
|
|
@@ -5484,7 +5560,8 @@ ${messageText}`,
|
|
|
5484
5560
|
}
|
|
5485
5561
|
})().catch((error) => {
|
|
5486
5562
|
if (!isStaleExtensionContextError4(error)) {
|
|
5487
|
-
|
|
5563
|
+
if (!reportOwnedIntercomDiagnostic())
|
|
5564
|
+
console.error("Subagent intercom relay failed:", error);
|
|
5488
5565
|
}
|
|
5489
5566
|
});
|
|
5490
5567
|
}
|
|
@@ -5514,6 +5591,7 @@ ${messageText}`,
|
|
|
5514
5591
|
});
|
|
5515
5592
|
}
|
|
5516
5593
|
var init_subagent_relay = __esm(() => {
|
|
5594
|
+
init_diagnostics();
|
|
5517
5595
|
init_intercom_utils();
|
|
5518
5596
|
init_delivered_message_cache();
|
|
5519
5597
|
init_terminal_ordering_barrier();
|
|
@@ -6114,6 +6192,8 @@ var init_active_session_admission = () => {};
|
|
|
6114
6192
|
|
|
6115
6193
|
// dist/builtin/intercom/workflow-reply-tracker.ts
|
|
6116
6194
|
function bindWorkflowReplyTracker(ctx, current) {
|
|
6195
|
+
if (ctx.subagentPolicy?.executionEnded)
|
|
6196
|
+
return current;
|
|
6117
6197
|
const state = ctx.orchestrationContext?.messageAdmission?.extensionState;
|
|
6118
6198
|
if (!state)
|
|
6119
6199
|
return current;
|
|
@@ -6124,6 +6204,8 @@ function bindWorkflowReplyTracker(ctx, current) {
|
|
|
6124
6204
|
return current;
|
|
6125
6205
|
}
|
|
6126
6206
|
function preserveWorkflowReplyTracker(ctx) {
|
|
6207
|
+
if (ctx?.subagentPolicy?.executionEnded)
|
|
6208
|
+
return false;
|
|
6127
6209
|
return ctx?.orchestrationContext?.messageAdmission?.isOpen() === true;
|
|
6128
6210
|
}
|
|
6129
6211
|
var WORKFLOW_REPLY_TRACKER_STATE = "intercom.reply-tracker";
|
|
@@ -7177,6 +7259,7 @@ var init_index_heavy = __esm(() => {
|
|
|
7177
7259
|
init_foreground_detach_handoff();
|
|
7178
7260
|
init_intercom_utils();
|
|
7179
7261
|
init_terminal_ordering_barrier();
|
|
7262
|
+
init_session_target();
|
|
7180
7263
|
init_inbound_message_admission();
|
|
7181
7264
|
init_late_stage_message_router();
|
|
7182
7265
|
init_active_session_admission();
|
|
@@ -7197,6 +7280,7 @@ var init_index_heavy = __esm(() => {
|
|
|
7197
7280
|
});
|
|
7198
7281
|
|
|
7199
7282
|
// dist/builtin/intercom/index.ts
|
|
7283
|
+
init_diagnostics();
|
|
7200
7284
|
import { APP_NAME as APP_NAME2, getEnvValue } from "@bastani/atomic";
|
|
7201
7285
|
import { Text as Text4 } from "@earendil-works/pi-tui";
|
|
7202
7286
|
import { Type as Type3 } from "typebox";
|
|
@@ -7488,7 +7572,8 @@ function captureDiagnosticRoute(ctx) {
|
|
|
7488
7572
|
}
|
|
7489
7573
|
function reportDiagnostic(route, message, error, level, consoleMessage = message) {
|
|
7490
7574
|
if (route === "console") {
|
|
7491
|
-
|
|
7575
|
+
if (!reportOwnedIntercomDiagnostic())
|
|
7576
|
+
console.error(consoleMessage, error);
|
|
7492
7577
|
return;
|
|
7493
7578
|
}
|
|
7494
7579
|
if (route === "silent")
|
|
@@ -7980,7 +8065,7 @@ function intercom(pi, options = {}) {
|
|
|
7980
8065
|
description: `Send a message to another local agent session running on this machine.
|
|
7981
8066
|
Use this to communicate findings, request help, or coordinate work with other sessions.
|
|
7982
8067
|
Sessions belong to an intercom group and can ONLY message sessions in the same group; cross-group sends are rejected by the broker. Ungrouped sessions share the "default" group.
|
|
7983
|
-
For send, live session names
|
|
8068
|
+
For send, live session names, exact full session IDs, and unique 8-hex session UUID prefixes remain supported. Workflow-stage targets use \`workflow:<rootRunId>/<segment>[/<segment>...]\`; \`*\` matches one segment and \`**\` any depth. Use \`intercom list\` inside the invocation group to see live, pending, and possible future targets with queued counts. \`workflow:<rootRunId>/**\` reaches live stages now and remains sticky for every future stage until root termination; valid targets outside the known set queue with a \`notInKnownSet\` warning and settle undeliverable at terminal only if never delivered. Use \`ask\` only on live targets.
|
|
7984
8069
|
For send/ask/reply, Intercom retries recoverable disconnects internally up to three times with the same operation identity. Each new tool call is a new operation. If recovery ends with an unknown delivery outcome, do not repeat it automatically.
|
|
7985
8070
|
Usage:
|
|
7986
8071
|
intercom({ action: "list" }) → List sessions in your group
|
|
@@ -7997,7 +8082,7 @@ Usage:
|
|
|
7997
8082
|
promptSnippet: "Use to coordinate with other local agent sessions in your intercom group. Send/ask/reply retry reconnects internally; do not automatically repeat an unknown delivery outcome.",
|
|
7998
8083
|
parameters: Type3.Object({
|
|
7999
8084
|
action: Type3.String({ description: "Action: 'list', 'join', 'leave', 'send', 'ask', 'reply', 'pending', or 'status'" }),
|
|
8000
|
-
to: Type3.Optional(Type3.String({ description: "Live session name, exact full session ID, or `workflow:<rootRunId>/<segment>[/<segment>...]` path; `*` matches one segment and `**` any depth. Send queues sticky pending/future delivery and `workflow:<rootRunId>/**` broadcasts to live and future stages; use `ask` only on live targets (for 'send', 'ask', or targeted 'reply')" })),
|
|
8085
|
+
to: Type3.Optional(Type3.String({ description: "Live session name, exact full session ID, unique 8-hex session UUID prefix, or `workflow:<rootRunId>/<segment>[/<segment>...]` path; `*` matches one segment and `**` any depth. Send queues sticky pending/future delivery and `workflow:<rootRunId>/**` broadcasts to live and future stages; use `ask` only on live targets (for 'send', 'ask', or targeted 'reply')" })),
|
|
8001
8086
|
message: Type3.Optional(Type3.String({ description: "Message to send (for 'send', 'ask', or 'reply' action)" })),
|
|
8002
8087
|
attachments: Type3.Optional(Type3.Array(Type3.Object({
|
|
8003
8088
|
type: Type3.Union([Type3.Literal("file"), Type3.Literal("snippet"), Type3.Literal("context")]),
|
|
@@ -8005,7 +8090,7 @@ Usage:
|
|
|
8005
8090
|
content: Type3.String(),
|
|
8006
8091
|
language: Type3.Optional(Type3.String())
|
|
8007
8092
|
}))),
|
|
8008
|
-
replyTo: Type3.Optional(Type3.String({ description: "Exact pending-ask message ID; disambiguates concurrent asks, including asks from one sender" })),
|
|
8093
|
+
replyTo: Type3.Optional(Type3.String({ description: "Exact pending-ask message ID or unique 8-hex UUID prefix; disambiguates concurrent asks, including asks from one sender" })),
|
|
8009
8094
|
group: Type3.Optional(Type3.String({ description: "Group name for 'join'; read-only group filter for 'list'/'status'. 'send'/'ask' are locked to your own group." }))
|
|
8010
8095
|
}),
|
|
8011
8096
|
execute: (...args) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.5",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension providing a private coordination channel between parent and child agent sessions. Fork of: https://github.com/nicobailon/pi-intercom",
|
|
6
6
|
"contributors": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@bastani/atomic": "*",
|
|
47
|
-
"@earendil-works/pi-tui": "^0.
|
|
47
|
+
"@earendil-works/pi-tui": "^0.86.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"@bastani/atomic": {
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"typebox": "^1.3.
|
|
58
|
+
"typebox": "^1.3.27"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import type { SessionInfo } from "./types.js";
|
|
2
2
|
|
|
3
|
-
export type SessionTargetResolution =
|
|
4
|
-
| { kind: "resolved"; session:
|
|
5
|
-
| { kind: "ambiguous_name"; matches: readonly
|
|
3
|
+
export type SessionTargetResolution<T extends Pick<SessionInfo, "id" | "name"> = SessionInfo> =
|
|
4
|
+
| { kind: "resolved"; session: T }
|
|
5
|
+
| { kind: "ambiguous_name"; matches: readonly T[] }
|
|
6
|
+
| { kind: "ambiguous_id_prefix"; matches: readonly T[] }
|
|
6
7
|
| { kind: "not_found" };
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
10
|
+
const UUID_PREFIX_PATTERN = /^[0-9a-f]{8}$/i;
|
|
11
|
+
|
|
12
|
+
/** Resolve an Intercom session by exact ID/name or a unique 8-hex UUID prefix. */
|
|
13
|
+
export function resolveSessionTarget<T extends Pick<SessionInfo, "id" | "name">>(
|
|
14
|
+
sessions: readonly T[],
|
|
11
15
|
nameOrId: string,
|
|
12
|
-
): SessionTargetResolution {
|
|
16
|
+
): SessionTargetResolution<T> {
|
|
13
17
|
const target = nameOrId.trim();
|
|
14
18
|
const exactId = sessions.find((session) => session.id === target);
|
|
15
19
|
if (exactId !== undefined) return { kind: "resolved", session: exactId };
|
|
@@ -25,21 +29,37 @@ export function resolveSessionTarget(
|
|
|
25
29
|
return { kind: "ambiguous_name", matches: exactNames };
|
|
26
30
|
}
|
|
27
31
|
|
|
32
|
+
// #2603: names and custom exact IDs retain precedence over UUID-prefix targeting.
|
|
33
|
+
if (UUID_PREFIX_PATTERN.test(target)) {
|
|
34
|
+
const normalized = target.toLowerCase();
|
|
35
|
+
const prefixMatches = sessions.filter(
|
|
36
|
+
(session) => UUID_PATTERN.test(session.id) && session.id.toLowerCase().startsWith(normalized),
|
|
37
|
+
);
|
|
38
|
+
if (prefixMatches.length === 1) return { kind: "resolved", session: prefixMatches[0]! };
|
|
39
|
+
if (prefixMatches.length > 1) return { kind: "ambiguous_id_prefix", matches: prefixMatches };
|
|
40
|
+
}
|
|
41
|
+
|
|
28
42
|
return { kind: "not_found" };
|
|
29
43
|
}
|
|
30
44
|
|
|
31
45
|
export function sessionTargetFailureReason(
|
|
32
46
|
target: string,
|
|
33
|
-
resolution: Exclude<SessionTargetResolution, { kind: "resolved" }>,
|
|
47
|
+
resolution: Exclude<SessionTargetResolution<Pick<SessionInfo, "id" | "name">>, { kind: "resolved" }>,
|
|
34
48
|
): string {
|
|
35
49
|
if (resolution.kind === "ambiguous_name") {
|
|
36
50
|
return `Multiple sessions named "${target}" are connected. Use the session ID instead.`;
|
|
37
51
|
}
|
|
52
|
+
if (resolution.kind === "ambiguous_id_prefix") {
|
|
53
|
+
return `Session ID prefix "${target}" is ambiguous; matches: ${resolution.matches
|
|
54
|
+
.map((session) => `${session.name ?? "unnamed"} (${session.id})`)
|
|
55
|
+
.join(", ")}. Use the full UUID.`;
|
|
56
|
+
}
|
|
38
57
|
return "Session not found";
|
|
39
58
|
}
|
|
40
59
|
|
|
41
60
|
export interface SessionListingClient {
|
|
42
61
|
listSessions(): Promise<SessionInfo[]>;
|
|
62
|
+
readonly supervisorSessionId?: string | null;
|
|
43
63
|
}
|
|
44
64
|
|
|
45
65
|
/** Resolve a target through the broker's current session list. */
|
|
@@ -47,7 +67,12 @@ export async function resolveSessionTargetId(
|
|
|
47
67
|
client: SessionListingClient,
|
|
48
68
|
nameOrId: string,
|
|
49
69
|
): Promise<string | null> {
|
|
50
|
-
const
|
|
70
|
+
const sessions: Pick<SessionInfo, "id" | "name">[] = [...await client.listSessions()];
|
|
71
|
+
// #2603: isolated children still know their broker-authorized supervisor ID.
|
|
72
|
+
if (client.supervisorSessionId && !sessions.some((session) => session.id === client.supervisorSessionId)) {
|
|
73
|
+
sessions.push({ id: client.supervisorSessionId });
|
|
74
|
+
}
|
|
75
|
+
const resolution = resolveSessionTarget(sessions, nameOrId);
|
|
51
76
|
if (resolution.kind === "resolved") return resolution.session.id;
|
|
52
77
|
if (resolution.kind === "not_found") return null;
|
|
53
78
|
throw new Error(sessionTargetFailureReason(nameOrId, resolution));
|
|
@@ -16,7 +16,7 @@ sessions for delegation, context sharing, and collaborative workflows.
|
|
|
16
16
|
When you are supervising with the `subagent` skill, delegated child agents can
|
|
17
17
|
escalate to you via `contact_supervisor` if the subagent runtime supplied child
|
|
18
18
|
bridge metadata. This skill covers how to handle those orchestrator-side
|
|
19
|
-
escalations.
|
|
19
|
+
escalations, and how children and workflow stages talk to each other as peers.
|
|
20
20
|
|
|
21
21
|
## When to Use
|
|
22
22
|
|
|
@@ -24,6 +24,7 @@ escalations.
|
|
|
24
24
|
- **Context handoffs**: Send findings from a research session to an execution session
|
|
25
25
|
- **Clarification loops**: Worker asks questions, planner answers, work continues
|
|
26
26
|
- **Multi-session workflows**: Coordinate between specialized sessions (frontend/backend, research/implementation)
|
|
27
|
+
- **Peer coordination**: Sibling subagents or workflow stages debate findings, hand off evidence, divide ownership, and learn from each other without routing through the supervisor
|
|
27
28
|
|
|
28
29
|
## Core Patterns
|
|
29
30
|
|
|
@@ -67,7 +68,7 @@ intercom({
|
|
|
67
68
|
|
|
68
69
|
### Pattern 2: Quick Status Check
|
|
69
70
|
|
|
70
|
-
Before sending, verify who's connected. Each list row leads with a copyable full session ID or canonical workflow path. Names are secondary; redundant generated aliases are omitted from the list but remain valid targets.
|
|
71
|
+
Before sending, verify who's connected. Full session UUIDs or their unique 8-hex prefixes can be used as targets. Each list row leads with a copyable full session ID or canonical workflow path. Names are secondary; redundant generated aliases are omitted from the list but remain valid targets.
|
|
71
72
|
|
|
72
73
|
```typescript
|
|
73
74
|
intercom({ action: "list" })
|
|
@@ -75,7 +76,7 @@ intercom({ action: "list" })
|
|
|
75
76
|
intercom({ action: "ask", to: "6332faab-1111-4222-8333-123456789abc", message: "Which option should I use?" })
|
|
76
77
|
```
|
|
77
78
|
|
|
78
|
-
Live sessions accept an exact full Intercom session ID or exact case-insensitive name. For workflow stages, first join `workflow:<rootRunId>` and use `intercom({ action: "list" })`: materialized stages appear as `PENDING` or `RUNNING` with canonical `workflow:<rootRunId>/<segment>[/<segment>...]` targets and actual groups, followed by possible future targets with queued counts. The invocation context can control owned isolated subgroups by exact target, while sibling subgroups and other runs remain isolated. Use queued `send` for `PENDING` or future targets; `ask` is supported only for `RUNNING`, where an exact correlated reply returns to the invocation asker.
|
|
79
|
+
Live sessions accept an exact full Intercom session ID, a unique 8-hex prefix of a visible UUID-backed session, or an exact case-insensitive name. Ambiguous prefixes require a listed full UUID. For workflow stages, first join `workflow:<rootRunId>` and use `intercom({ action: "list" })`: materialized stages appear as `PENDING` or `RUNNING` with canonical `workflow:<rootRunId>/<segment>[/<segment>...]` targets and actual groups, followed by possible future targets with queued counts. The invocation context can control owned isolated subgroups by exact target, while sibling subgroups and other runs remain isolated. Use queued `send` for `PENDING` or future targets; `ask` is supported only for `RUNNING`, where an exact correlated reply returns to the invocation asker.
|
|
79
80
|
|
|
80
81
|
### Deliver to workflow stages that have not started
|
|
81
82
|
|
|
@@ -128,7 +129,7 @@ intercom({ action: "pending" })
|
|
|
128
129
|
intercom({ action: "reply", to: "planner", message: "Use exponential backoff starting at 100ms." })
|
|
129
130
|
```
|
|
130
131
|
|
|
131
|
-
Explicit `to` selects that sender's pending ask even if another message triggered the current turn. Use `pending` and an exact `replyTo` when the sender has several asks. Stale, unknown, empty, or sender-mismatched explicit selectors fail without replying to another thread. Omit both selectors only when you intend to reply to the active message, or otherwise the single pending ask.
|
|
132
|
+
Explicit `to` selects that sender's pending ask even if another message triggered the current turn. Use `pending` and an exact pending message ID or unique 8-hex UUID prefix in `replyTo` when the sender has several asks. Prefixes resolve to the canonical full ID before fallback; collisions fail. Stale, unknown, empty, or sender-mismatched explicit selectors fail without replying to another thread. Omit both selectors only when you intend to reply to the active message, or otherwise the single pending ask.
|
|
132
133
|
|
|
133
134
|
### Pattern 4: Broadcast to Multiple Workers
|
|
134
135
|
|
|
@@ -244,6 +245,36 @@ Use constructive quorum when several fresh-context reviewers judge the same arti
|
|
|
244
245
|
|
|
245
246
|
In Atomic workflows, each invocation has its own Intercom group, and parallel stages and delegated subagents inherit it when Intercom is available. Sibling reviewers can therefore coordinate without custom group wiring. See the [constructive quorum workflow pattern](../../../coding-agent/docs/workflows/reliable-design.md#common-workflow-patterns).
|
|
246
247
|
|
|
248
|
+
### Pattern 8: Peer Coordination Between Subagents and Workflow Stages
|
|
249
|
+
|
|
250
|
+
Communication inside a delegation is not only vertical. Children launched in one parallel set (or one explicit `group`) share an Intercom group, and workflow stages share their invocation group `workflow:<rootRunId>`; delegated subagents inside a stage inherit it. Any of them can list live siblings and message them directly. `contact_supervisor` is reserved for the supervisor; peer traffic uses ordinary `intercom`.
|
|
251
|
+
|
|
252
|
+
```typescript
|
|
253
|
+
// Any child or stage: discover who is live in your group
|
|
254
|
+
intercom({ action: "list" })
|
|
255
|
+
|
|
256
|
+
// Connect: pass what you found to the sibling who needs it
|
|
257
|
+
intercom({ action: "send", to: "codebase-analyzer-2", message: "Null handling lives in src/auth/session.ts:40-118 and src/auth/refresh.ts:12-60. Start there." })
|
|
258
|
+
|
|
259
|
+
// Coordinate: claim shared work so two writers do not collide
|
|
260
|
+
intercom({ action: "send", to: "worker-1", message: "I am running the integration suite now (~4 min). Do not start it; I will send the result." })
|
|
261
|
+
|
|
262
|
+
// Learn: reuse a sibling's verified reproduction
|
|
263
|
+
intercom({ action: "ask", to: "debugger-1", message: "What exact command and env reproduced the timeout? I want to reuse it, not rediscover it." })
|
|
264
|
+
|
|
265
|
+
// Debate: challenge a finding with evidence, then decide for yourself
|
|
266
|
+
intercom({ action: "ask", to: "reviewer-2", message: "You called the retry loop unbounded. client.ts:88 caps attempts at 5 — which path bypasses it?" })
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Rules that keep peer exchange useful:
|
|
270
|
+
|
|
271
|
+
- Peers do not coordinate spontaneously. The launcher's prompt should name the peers (or how to discover them with `list`) and what they are expected to exchange.
|
|
272
|
+
- Bound the exchange: one evidence round for reviewers, one ownership claim per shared step, one ask per fact you need. Then return your own complete result.
|
|
273
|
+
- Decide on evidence, not deference. A peer's approval, rejection, or claim is input to inspect, not a verdict to copy.
|
|
274
|
+
- Scope, product, architecture, and acceptance decisions stay with the supervisor (`contact_supervisor`) or a workflow gate.
|
|
275
|
+
- Inside a workflow, `send` to a known pending sibling queues until it starts, and `ask` to a completed sibling that retains a valid conversation reopens it for a post-mortem turn. Named stage subgroups isolate their members from sibling subgroups.
|
|
276
|
+
- Peer asks and one blocking supervisor request may wait concurrently in the same child; mutual asks work when both sides process inbound work.
|
|
277
|
+
|
|
247
278
|
## Key Differences
|
|
248
279
|
|
|
249
280
|
| Action | Behavior | Use When |
|
|
@@ -253,7 +284,7 @@ In Atomic workflows, each invocation has its own Intercom group, and parallel st
|
|
|
253
284
|
| `groups` | Lists every available group with counts and membership markers | Discover a group instead of guessing its name |
|
|
254
285
|
| `send` | Fire-and-forget to a live session, or durable sticky delivery to `workflow:<rootRunId>/<segment>[/<segment>...]`; globs and `**` broadcasts cover live and future matches | You don't need a response |
|
|
255
286
|
| `ask` | Blocks until a live recipient replies (10 min timeout); refused for an unstarted stage | You need an answer to continue |
|
|
256
|
-
| `reply` | Responds to the active or pending inbound ask; `to` accepts an exact full session ID or
|
|
287
|
+
| `reply` | Responds to the active or pending inbound ask; `to` accepts an exact name/full session ID or unique 8-hex session UUID prefix | You were asked something and need to answer naturally |
|
|
257
288
|
| `pending` | Lists unresolved inbound asks | You need to see who is waiting before replying |
|
|
258
289
|
| `list` | Returns all sessions sharing any membership, with full IDs and live status | Discover targets or choose an idle peer |
|
|
259
290
|
| `status` | Returns connection state and every current membership | Troubleshooting |
|
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.9.20-alpha.4] - 2026-09-20
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Final session shutdown now reports MCP cleanup failures and timeouts after attempting all cleanup, instead of silently treating them as success ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
15
|
+
- Retain unpublished initialization cleanup failures through awaited session shutdown instead of logging them and reporting success ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
16
|
+
- Headless SDK startup no longer connects lazy MCP servers just to discover uncached direct tools. Use the MCP gateway to discover them, or configure an eager lifecycle for startup connections ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
17
|
+
- SDK-owned MCP logger output and startup connection failures now use the session's diagnostic sink with redacted messages instead of printing to console, including when no sink is configured ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
18
|
+
- Concurrent SDK sessions now retain separate pending OAuth state, PKCE verifiers and callback ownership, including after host callback rebinding; durable server credentials keep their existing storage ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
19
|
+
- Opening or closing an MCP native UI no longer closes another session's window; windows that finish opening after their UI closes are retired immediately ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
20
|
+
- SDK-owned configuration, authentication and cleanup diagnostics now use redacted session diagnostics rather than console output ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
21
|
+
- Preserve lazy MCP connections during headless SDK startup even when an eager or keep-alive server is configured alongside uncached direct tools; terminal first-run discovery is unchanged ([#3105](https://github.com/bastani-inc/atomic/issues/3105)).
|
|
22
|
+
|
|
10
23
|
## [0.9.19] - 2026-09-13
|
|
11
24
|
|
|
12
25
|
Cumulative release of the `0.9.19-alpha.2` prerelease. Per-change details remain in the unchanged prerelease section below.
|
|
@@ -280,7 +280,7 @@ For pre-registered OAuth clients (`oauth.clientId`), the callback redirect URI m
|
|
|
280
280
|
|
|
281
281
|
### Browser doesn't open
|
|
282
282
|
|
|
283
|
-
If the browser fails to open (e.g., in SSH sessions), the authorization URL
|
|
283
|
+
If the browser fails to open (e.g., in SSH sessions), Atomic displays the exact complete authorization URL for manual login, including all paths and parameters (state, callback, PKCE, resource, and any credentials). These intentional login instructions are not diagnostic logs; transport and RPC error diagnostics remain redacted. Treat the displayed URL as sensitive and do not share it. Browser-launch failure still cancels the pending attempt, so its callback cannot complete authentication; configure a working browser opener and retry `/mcp-auth <server-name>`.
|
|
284
284
|
|
|
285
285
|
## Architecture
|
|
286
286
|
|
|
@@ -69,6 +69,8 @@ Servers are **lazy by default** — they won't connect until you actually call o
|
|
|
69
69
|
|
|
70
70
|
MCP startup and first-use calls share one initialization attempt per session. If background initialization fails, the next proxy, direct-tool, `/mcp`, or `/mcp-auth` use retries it; concurrent callers join that retry rather than starting duplicates, and a stale attempt cannot publish after session shutdown or context disposal. Replacement sessions normally wait for retired initialization, state, and OAuth cleanup; teardown uses a finite deadline so a non-abortable SDK producer cannot permanently block later sessions, while late settlement stays observed and fenced from publication. Shared lazy server connections and auto-authentication flows use the same caller-local cancellation rule: a pre-cancelled call starts nothing, while cancelling one waiter promptly rejects that call with its exact host reason without cancelling the producer needed by surviving callers. Session restart/shutdown deterministically rejects retired OAuth callers with retry guidance and clears old ownership before replacement authentication begins. Direct tools, proxy modes, metadata hydration, and readiness-critical commands revalidate the exact session lease after lifecycle-spanning waits and before SDK calls or state mutation; a UI runtime produced after caller cancellation is closed rather than orphaned. Direct and proxy resource/tool requests still forward the call's abort signal to the MCP SDK; protocol-level remote cancellation remains advisory.
|
|
71
71
|
|
|
72
|
+
Await SDK session disposal even when MCP initialization is still pending. If an unpublished candidate fails cleanup, disposal rejects with `ShutdownFailed` and retains that cause; cancellation is not treated as successful resource release. Other owned cleanup, including OAuth cleanup, is still attempted.
|
|
73
|
+
|
|
72
74
|
For MCP Apps tools, host cancellation sends one terminal `tool-cancelled` event after tool input and before session teardown, then rejects with the exact host abort reason even when the SDK wraps cancellation or the browser notification fails. A successful `tool-result` is mutually exclusive with that cancellation event. Non-UI tools and resource reads do not participate in the Apps lifecycle.
|
|
73
75
|
|
|
74
76
|
```
|
|
@@ -127,7 +129,7 @@ Pi-specific files are the write targets for imported or shared global servers wh
|
|
|
127
129
|
| `args` | Command arguments |
|
|
128
130
|
| `env` | Environment variables; supports `${VAR}` and `$env:VAR` interpolation |
|
|
129
131
|
| `cwd` | Working directory; supports `${VAR}`, `$env:VAR`, and `~` expansion |
|
|
130
|
-
| `url` | HTTP endpoint (StreamableHTTP with SSE fallback) |
|
|
132
|
+
| `url` | HTTP(S) endpoint (StreamableHTTP with SSE fallback); supports `${VAR}` and `$env:VAR` interpolation. Unset variables become empty strings; an empty or invalid resolved endpoint is rejected before connecting. |
|
|
131
133
|
| `headers` | HTTP headers; supports `${VAR}` and `$env:VAR` interpolation |
|
|
132
134
|
| `auth` | `"bearer"` or `"oauth"` |
|
|
133
135
|
| `oauth.grantType` | `"authorization_code"` (default) or `"client_credentials"` for non-interactive machine auth |
|