@bastani/atomic 0.9.18 → 0.9.19-alpha.10
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 +206 -0
- package/README.md +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +51 -0
- package/dist/builtin/intercom/README.md +28 -18
- package/dist/builtin/intercom/broker/broker.ts +81 -9
- package/dist/builtin/intercom/broker/client.ts +45 -1
- package/dist/builtin/intercom/broker/framing.ts +5 -2
- package/dist/builtin/intercom/broker/group-membership.ts +4 -2
- package/dist/builtin/intercom/broker/presence-handler.ts +14 -0
- package/dist/builtin/intercom/broker/send-handler.ts +61 -6
- package/dist/builtin/intercom/broker/terminal-questions.ts +29 -0
- package/dist/builtin/intercom/index.bundle.mjs +1120 -783
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/intercom/recipient-purpose.ts +9 -0
- package/dist/builtin/intercom/recoverable-disconnect.ts +2 -3
- package/dist/builtin/intercom/retry-policy.ts +4 -2
- package/dist/builtin/intercom/skills/intercom/SKILL.md +8 -7
- package/dist/builtin/intercom/types.ts +18 -3
- package/dist/builtin/mcp/CHANGELOG.md +6 -0
- package/dist/builtin/mcp/README.md +2 -0
- package/dist/builtin/mcp/index.bundle.mjs +2201 -12000
- package/dist/builtin/mcp/package.json +2 -2
- package/dist/builtin/subagents/CHANGELOG.md +57 -0
- package/dist/builtin/subagents/README.md +46 -23
- package/dist/builtin/subagents/agents/code-simplifier.md +1 -1
- package/dist/builtin/subagents/agents/codebase-analyzer.md +1 -1
- package/dist/builtin/subagents/agents/codebase-locator.md +2 -2
- package/dist/builtin/subagents/agents/codebase-online-researcher.md +8 -8
- package/dist/builtin/subagents/agents/codebase-pattern-finder.md +2 -2
- package/dist/builtin/subagents/agents/codebase-research-analyzer.md +1 -1
- package/dist/builtin/subagents/agents/codebase-research-locator.md +2 -2
- package/dist/builtin/subagents/agents/debugger.md +2 -2
- package/dist/builtin/subagents/agents/worker.md +1 -1
- package/dist/builtin/subagents/package.json +2 -2
- package/dist/builtin/subagents/skills/herdr/LICENSE +201 -0
- package/dist/builtin/subagents/skills/herdr/SKILL.md +202 -0
- package/dist/builtin/subagents/skills/subagent/SKILL.md +41 -35
- package/dist/builtin/subagents/skills/tmux/SKILL.md +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1414 -656
- package/dist/builtin/web-access/CHANGELOG.md +19 -0
- package/dist/builtin/web-access/README.md +31 -24
- package/dist/builtin/web-access/index.bundle.mjs +42723 -26674
- package/dist/builtin/web-access/package.json +3 -2
- package/dist/builtin/workflows/CHANGELOG.md +131 -0
- package/dist/builtin/workflows/README.md +15 -16
- package/dist/builtin/workflows/builtin/adversarial-verification.js +5 -7
- package/dist/builtin/workflows/builtin/{chunk-hqpe2cyx.js → chunk-1jth021m.js} +85 -85
- package/dist/builtin/workflows/builtin/{chunk-7430zyas.js → chunk-2377r57g.js} +5 -3
- package/dist/builtin/workflows/builtin/{chunk-79fjkcvh.js → chunk-31j2gs7h.js} +18 -18
- package/dist/builtin/workflows/builtin/{chunk-wgccch41.js → chunk-6w6cvk6b.js} +16 -16
- package/dist/builtin/workflows/builtin/{chunk-zbekjqew.js → chunk-a2kdsqn8.js} +4 -4
- package/dist/builtin/workflows/builtin/{chunk-ze5x3d1r.js → chunk-fg9esgkj.js} +7 -7
- package/dist/builtin/workflows/builtin/{chunk-n8h4yyew.js → chunk-g0csgs7w.js} +11 -11
- package/dist/builtin/workflows/builtin/{chunk-b0v2xab1.js → chunk-ngkqkzej.js} +221 -23
- package/dist/builtin/workflows/builtin/{chunk-ed4jfn5t.js → chunk-nkrafh9s.js} +61 -61
- package/dist/builtin/workflows/builtin/{chunk-reqr3sr3.js → chunk-wf741bv3.js} +22 -22
- package/dist/builtin/workflows/builtin/{chunk-42s7sw0b.js → chunk-yeee2jrc.js} +19 -19
- package/dist/builtin/workflows/builtin/{chunk-6fqs7c01.js → chunk-z0d03ktm.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-k3w87x8y.js → chunk-z29qbehr.js} +10 -10
- package/dist/builtin/workflows/builtin/classify-and-act.js +5 -6
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -4
- package/dist/builtin/workflows/builtin/generate-and-filter.js +5 -6
- package/dist/builtin/workflows/builtin/goal.js +7 -8
- package/dist/builtin/workflows/builtin/index.js +20 -22
- package/dist/builtin/workflows/builtin/loop-until-done.js +5 -6
- package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
- package/dist/builtin/workflows/builtin/ralph.js +7 -8
- package/dist/builtin/workflows/builtin/steering-context.js +3 -3
- package/dist/builtin/workflows/builtin/tournament.js +5 -7
- package/dist/builtin/workflows/package.json +6 -6
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +57318 -25709
- package/dist/builtin/workflows/src/index.js +1413 -589
- package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +4 -1
- package/dist/builtin/workflows/src/shared/authoring-contract-ui.d.ts +1 -1
- package/dist/cli/config-selector.js.map +1 -1
- package/dist/cli/startup-ui.d.ts +1 -1
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-auto-compaction.js +6 -5
- package/dist/core/agent-session-auto-compaction.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts +1 -1
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +5 -1
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-compaction.d.ts +1 -1
- package/dist/core/agent-session-compaction.js +1 -1
- package/dist/core/agent-session-compaction.js.map +1 -1
- package/dist/core/agent-session-custom-message-commit.d.ts +1 -1
- package/dist/core/agent-session-custom-message-commit.d.ts.map +1 -1
- package/dist/core/agent-session-custom-message-commit.js +33 -2
- package/dist/core/agent-session-custom-message-commit.js.map +1 -1
- package/dist/core/agent-session-delivery-forwarding.d.ts +1 -1
- package/dist/core/agent-session-delivery-forwarding.js.map +1 -1
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +5 -0
- 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.js.map +1 -1
- package/dist/core/agent-session-extension-bindings.d.ts +8 -1
- package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
- package/dist/core/agent-session-extension-bindings.js +45 -3
- package/dist/core/agent-session-extension-bindings.js.map +1 -1
- package/dist/core/agent-session-message-queue.d.ts +2 -2
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +22 -8
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +21 -8
- 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-persistent-custom-messages.d.ts +1 -1
- package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js +13 -3
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session-post-tool-compaction.js +1 -1
- package/dist/core/agent-session-post-tool-compaction.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts +2 -2
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +105 -18
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-queue-pause.d.ts.map +1 -1
- package/dist/core/agent-session-queue-pause.js +11 -0
- package/dist/core/agent-session-queue-pause.js.map +1 -1
- package/dist/core/agent-session-runtime-auth.d.ts +1 -1
- package/dist/core/agent-session-runtime-auth.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +13 -4
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +27 -4
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +5 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +44 -34
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session-state.d.ts +1 -1
- package/dist/core/agent-session-state.js.map +1 -1
- package/dist/core/agent-session-tasks.d.ts +14 -0
- package/dist/core/agent-session-tasks.d.ts.map +1 -0
- package/dist/core/agent-session-tasks.js +120 -0
- package/dist/core/agent-session-tasks.js.map +1 -0
- package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
- package/dist/core/agent-session-tool-hooks.js +2 -0
- package/dist/core/agent-session-tool-hooks.js.map +1 -1
- package/dist/core/agent-session-tool-registry.d.ts +1 -0
- package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
- package/dist/core/agent-session-tool-registry.js +52 -5
- package/dist/core/agent-session-tool-registry.js.map +1 -1
- package/dist/core/agent-session-transfer.d.ts.map +1 -1
- package/dist/core/agent-session-transfer.js +7 -0
- 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 +3 -0
- package/dist/core/agent-session-tree.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +4 -2
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js +2 -0
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +8 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +29 -1
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/bash-executor.d.ts +1 -1
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/tool-renderer.d.ts +1 -1
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/extension-session-state.js.map +1 -1
- 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 +10 -2
- 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 +15 -0
- 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 +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/index.d.ts +3 -2
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader-api.d.ts +1 -1
- package/dist/core/extensions/loader-api.d.ts.map +1 -1
- package/dist/core/extensions/loader-api.js +10 -0
- package/dist/core/extensions/loader-api.js.map +1 -1
- package/dist/core/extensions/loader-core.d.ts +1 -1
- package/dist/core/extensions/loader-core.js.map +1 -1
- package/dist/core/extensions/loader-discovery.d.ts +1 -1
- package/dist/core/extensions/loader-discovery.js.map +1 -1
- package/dist/core/extensions/loader-host-modules.d.ts +1 -1
- package/dist/core/extensions/loader-host-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-host-modules.js +5 -2
- package/dist/core/extensions/loader-host-modules.js.map +1 -1
- package/dist/core/extensions/loader-runtime.d.ts.map +1 -1
- package/dist/core/extensions/loader-runtime.js +3 -0
- 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 +6 -1
- 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.js.map +1 -1
- package/dist/core/extensions/message-types.d.ts +1 -1
- package/dist/core/extensions/message-types.js.map +1 -1
- package/dist/core/extensions/reactive-widget.d.ts +6 -0
- package/dist/core/extensions/reactive-widget.d.ts.map +1 -1
- package/dist/core/extensions/reactive-widget.js +7 -1
- package/dist/core/extensions/reactive-widget.js.map +1 -1
- package/dist/core/extensions/runner-context.d.ts +12 -2
- package/dist/core/extensions/runner-context.d.ts.map +1 -1
- package/dist/core/extensions/runner-context.js +49 -4
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner-events.d.ts +1 -1
- package/dist/core/extensions/runner-events.d.ts.map +1 -1
- package/dist/core/extensions/runner-events.js +17 -2
- package/dist/core/extensions/runner-events.js.map +1 -1
- package/dist/core/extensions/runner-shortcuts.d.ts.map +1 -1
- package/dist/core/extensions/runner-shortcuts.js +32 -3
- package/dist/core/extensions/runner-shortcuts.js.map +1 -1
- package/dist/core/extensions/runner-ui.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +17 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +69 -19
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/runtime-types.d.ts +8 -1
- 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/tool-types.d.ts +1 -1
- package/dist/core/extensions/tool-types.js.map +1 -1
- package/dist/core/extensions/types.d.ts +1 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/ui-types.d.ts +25 -1
- package/dist/core/extensions/ui-types.d.ts.map +1 -1
- package/dist/core/extensions/ui-types.js.map +1 -1
- package/dist/core/extensions/workflow-activity-hub.d.ts +25 -0
- package/dist/core/extensions/workflow-activity-hub.d.ts.map +1 -0
- package/dist/core/extensions/workflow-activity-hub.js +183 -0
- package/dist/core/extensions/workflow-activity-hub.js.map +1 -0
- package/dist/core/extensions/workflow-events.d.ts +118 -0
- package/dist/core/extensions/workflow-events.d.ts.map +1 -0
- package/dist/core/extensions/workflow-events.js +2 -0
- package/dist/core/extensions/workflow-events.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +8 -4
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +97 -11
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/keybinding-identity.d.ts +4 -0
- package/dist/core/keybinding-identity.d.ts.map +1 -0
- package/dist/core/keybinding-identity.js +10 -0
- package/dist/core/keybinding-identity.js.map +1 -0
- package/dist/core/keybindings.d.ts +37 -2
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +9 -2
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/mandatory-runtime-tools.d.ts +1 -1
- package/dist/core/mandatory-runtime-tools.js.map +1 -1
- package/dist/core/model-fallback-failures.js +2 -2
- package/dist/core/model-fallback-failures.js.map +1 -1
- package/dist/core/model-registry.d.ts +5 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +8 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver-defaults.js +1 -1
- package/dist/core/model-resolver-defaults.js.map +1 -1
- package/dist/core/resource-loader-assets.js.map +1 -1
- package/dist/core/resource-loader-core.d.ts +1 -1
- package/dist/core/resource-loader-core.js.map +1 -1
- package/dist/core/resource-loader-internals.d.ts +2 -2
- package/dist/core/resource-loader-internals.js.map +1 -1
- package/dist/core/resource-loader-reload.d.ts +2 -0
- package/dist/core/resource-loader-reload.d.ts.map +1 -1
- package/dist/core/resource-loader-reload.js +231 -191
- package/dist/core/resource-loader-reload.js.map +1 -1
- package/dist/core/resource-loader-types.d.ts +4 -2
- package/dist/core/resource-loader-types.d.ts.map +1 -1
- package/dist/core/resource-loader-types.js.map +1 -1
- package/dist/core/retry-policy.d.ts +1 -0
- package/dist/core/retry-policy.d.ts.map +1 -1
- package/dist/core/retry-policy.js +2 -1
- package/dist/core/retry-policy.js.map +1 -1
- package/dist/core/sdk-exports.d.ts +3 -3
- package/dist/core/sdk-exports.d.ts.map +1 -1
- package/dist/core/sdk-exports.js +1 -1
- package/dist/core/sdk-exports.js.map +1 -1
- package/dist/core/sdk-types.d.ts +2 -2
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-manager-basic-accessors.d.ts +6 -3
- package/dist/core/settings-manager-basic-accessors.d.ts.map +1 -1
- package/dist/core/settings-manager-basic-accessors.js +25 -8
- 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 +10 -4
- package/dist/core/settings-manager-core.js.map +1 -1
- package/dist/core/settings-manager.d.ts +1 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-storage.d.ts +1 -0
- package/dist/core/settings-storage.d.ts.map +1 -1
- package/dist/core/settings-storage.js +18 -0
- package/dist/core/settings-storage.js.map +1 -1
- package/dist/core/settings-types.d.ts +17 -0
- package/dist/core/settings-types.d.ts.map +1 -1
- package/dist/core/settings-types.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +6 -5
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +5 -6
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tasks/agent-adapter.d.ts +44 -0
- package/dist/core/tasks/agent-adapter.d.ts.map +1 -0
- package/dist/core/tasks/agent-adapter.js +112 -0
- package/dist/core/tasks/agent-adapter.js.map +1 -0
- package/dist/core/tasks/command-output.d.ts +15 -0
- package/dist/core/tasks/command-output.d.ts.map +1 -0
- package/dist/core/tasks/command-output.js +29 -0
- package/dist/core/tasks/command-output.js.map +1 -0
- package/dist/core/tasks/completion-ordering.d.ts +11 -0
- package/dist/core/tasks/completion-ordering.d.ts.map +1 -0
- package/dist/core/tasks/completion-ordering.js +19 -0
- package/dist/core/tasks/completion-ordering.js.map +1 -0
- package/dist/core/tasks/completion.d.ts +36 -0
- package/dist/core/tasks/completion.d.ts.map +1 -0
- package/dist/core/tasks/completion.js +119 -0
- package/dist/core/tasks/completion.js.map +1 -0
- package/dist/core/tasks/contracts.d.ts +404 -0
- package/dist/core/tasks/contracts.d.ts.map +1 -0
- package/dist/core/tasks/contracts.js +2 -0
- package/dist/core/tasks/contracts.js.map +1 -0
- package/dist/core/tasks/execution-scope.d.ts +10 -0
- package/dist/core/tasks/execution-scope.d.ts.map +1 -0
- package/dist/core/tasks/execution-scope.js +27 -0
- package/dist/core/tasks/execution-scope.js.map +1 -0
- package/dist/core/tasks/owner-store.d.ts +53 -0
- package/dist/core/tasks/owner-store.d.ts.map +1 -0
- package/dist/core/tasks/owner-store.js +155 -0
- package/dist/core/tasks/owner-store.js.map +1 -0
- package/dist/core/tasks/pause.d.ts +4 -0
- package/dist/core/tasks/pause.d.ts.map +1 -0
- package/dist/core/tasks/pause.js +49 -0
- package/dist/core/tasks/pause.js.map +1 -0
- package/dist/core/tasks/supervisor.d.ts +123 -0
- package/dist/core/tasks/supervisor.d.ts.map +1 -0
- package/dist/core/tasks/supervisor.js +942 -0
- package/dist/core/tasks/supervisor.js.map +1 -0
- package/dist/core/tasks/transcript.d.ts +23 -0
- package/dist/core/tasks/transcript.d.ts.map +1 -0
- package/dist/core/tasks/transcript.js +74 -0
- package/dist/core/tasks/transcript.js.map +1 -0
- package/dist/core/tools/ask-user-question/ask-user-question.d.ts +2 -2
- 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 +8 -4
- package/dist/core/tools/ask-user-question/ask-user-question.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/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/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/submit-picker.d.ts +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/tab-bar.d.ts +1 -1
- package/dist/core/tools/ask-user-question/view/components/tab-bar.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/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-pty-native.d.ts +32 -3
- package/dist/core/tools/bash-pty-native.d.ts.map +1 -1
- package/dist/core/tools/bash-pty-native.js +198 -1
- package/dist/core/tools/bash-pty-native.js.map +1 -1
- package/dist/core/tools/bash.d.ts +25 -5
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +100 -10
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit.d.ts +3 -0
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +92 -14
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/file-mutation-coordinator.d.ts +255 -0
- package/dist/core/tools/file-mutation-coordinator.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-coordinator.js +300 -0
- package/dist/core/tools/file-mutation-coordinator.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +14 -1
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -1
- package/dist/core/tools/file-mutation-queue.js +15 -3
- package/dist/core/tools/file-mutation-queue.js.map +1 -1
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/hashline.d.ts +9 -0
- package/dist/core/tools/hashline.d.ts.map +1 -1
- package/dist/core/tools/hashline.js +12 -1
- package/dist/core/tools/hashline.js.map +1 -1
- package/dist/core/tools/index.d.ts +15 -4
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +79 -12
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/kill.d.ts +17 -0
- package/dist/core/tools/kill.d.ts.map +1 -0
- package/dist/core/tools/kill.js +49 -0
- package/dist/core/tools/kill.js.map +1 -0
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/non-minting-snapshot-store.d.ts +49 -0
- package/dist/core/tools/non-minting-snapshot-store.d.ts.map +1 -0
- package/dist/core/tools/non-minting-snapshot-store.js +64 -0
- package/dist/core/tools/non-minting-snapshot-store.js.map +1 -0
- package/dist/core/tools/powershell.d.ts +100 -34
- package/dist/core/tools/powershell.d.ts.map +1 -1
- package/dist/core/tools/powershell.js +41 -11
- package/dist/core/tools/powershell.js.map +1 -1
- package/dist/core/tools/read-document-extract.js.map +1 -1
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +1 -2
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +1 -1
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/resource-selectors.d.ts +1 -1
- package/dist/core/tools/resource-selectors.d.ts.map +1 -1
- package/dist/core/tools/resource-selectors.js +21 -10
- package/dist/core/tools/resource-selectors.js.map +1 -1
- package/dist/core/tools/search.js.map +1 -1
- package/dist/core/tools/todos-render.d.ts +1 -1
- package/dist/core/tools/todos-render.js.map +1 -1
- package/dist/core/tools/write.d.ts +30 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +98 -10
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/workflow-stage-admission.d.ts +24 -0
- package/dist/core/workflow-stage-admission.d.ts.map +1 -1
- package/dist/core/workflow-stage-admission.js +87 -3
- package/dist/core/workflow-stage-admission.js.map +1 -1
- package/dist/extensions/herdr/activity.d.ts +15 -0
- package/dist/extensions/herdr/activity.d.ts.map +1 -0
- package/dist/extensions/herdr/activity.js +24 -0
- package/dist/extensions/herdr/activity.js.map +1 -0
- package/dist/extensions/herdr/environment.d.ts +7 -0
- package/dist/extensions/herdr/environment.d.ts.map +1 -0
- package/dist/extensions/herdr/environment.js +6 -0
- package/dist/extensions/herdr/environment.js.map +1 -0
- package/dist/extensions/herdr/index.d.ts +9 -0
- package/dist/extensions/herdr/index.d.ts.map +1 -0
- package/dist/extensions/herdr/index.js +225 -0
- package/dist/extensions/herdr/index.js.map +1 -0
- package/dist/extensions/herdr/pane-owner.d.ts +30 -0
- package/dist/extensions/herdr/pane-owner.d.ts.map +1 -0
- package/dist/extensions/herdr/pane-owner.js +111 -0
- package/dist/extensions/herdr/pane-owner.js.map +1 -0
- package/dist/extensions/herdr/transport.d.ts +8 -0
- package/dist/extensions/herdr/transport.d.ts.map +1 -0
- package/dist/extensions/herdr/transport.js +28 -0
- package/dist/extensions/herdr/transport.js.map +1 -0
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/llama/huggingface-ui.d.ts +1 -1
- package/dist/extensions/llama/huggingface-ui.js.map +1 -1
- package/dist/extensions/llama/ui.js.map +1 -1
- package/dist/index-extensions.d.ts +3 -2
- package/dist/index-extensions.d.ts.map +1 -1
- package/dist/index-extensions.js.map +1 -1
- package/dist/index.d.ts +14 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/main-session.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +149 -69
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/armin.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/atomic-banner.d.ts +1 -1
- package/dist/modes/interactive/components/atomic-banner.js.map +1 -1
- package/dist/modes/interactive/components/atomic-working-status.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts +1 -1
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/chat-message-renderer.d.ts +12 -0
- package/dist/modes/interactive/components/chat-message-renderer.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-message-renderer.js +44 -0
- package/dist/modes/interactive/components/chat-message-renderer.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-actions.js +43 -8
- package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-editor.d.ts +1 -1
- package/dist/modes/interactive/components/chat-session-host-editor.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/chat-session-host-rendering.d.ts +2 -2
- package/dist/modes/interactive/components/chat-session-host-rendering.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-rendering.js +12 -3
- package/dist/modes/interactive/components/chat-session-host-rendering.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-runtime.d.ts +4 -5
- package/dist/modes/interactive/components/chat-session-host-runtime.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-runtime.js +8 -6
- package/dist/modes/interactive/components/chat-session-host-runtime.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.d.ts +7 -2
- package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-state.js +1 -0
- package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-terminal-cleanup.d.ts +1 -1
- package/dist/modes/interactive/components/chat-session-host-terminal-cleanup.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-types.d.ts +8 -3
- package/dist/modes/interactive/components/chat-session-host-types.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-types.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-utils.d.ts +1 -1
- package/dist/modes/interactive/components/chat-session-host-utils.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host-utils.js +2 -0
- package/dist/modes/interactive/components/chat-session-host-utils.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.d.ts +17 -2
- package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.js +100 -3
- package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
- package/dist/modes/interactive/components/chat-transcript.d.ts +1 -0
- package/dist/modes/interactive/components/chat-transcript.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-transcript.js +1 -1
- package/dist/modes/interactive/components/chat-transcript.js.map +1 -1
- package/dist/modes/interactive/components/compaction-boundary-message.js.map +1 -1
- package/dist/modes/interactive/components/config-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/custom-entry.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +12 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/daxnuts.js.map +1 -1
- package/dist/modes/interactive/components/diff.js.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/components/extension-input.js.map +1 -1
- package/dist/modes/interactive/components/extension-selector.js.map +1 -1
- package/dist/modes/interactive/components/first-time-setup.d.ts +1 -1
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +7 -6
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +27 -9
- package/dist/modes/interactive/components/footer.js.map +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/index.d.ts +2 -2
- package/dist/modes/interactive/components/index.js.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.d.ts +1 -1
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/reserved-bottom-overlay.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/scroll-widget.d.ts +23 -0
- package/dist/modes/interactive/components/scroll-widget.d.ts.map +1 -0
- package/dist/modes/interactive/components/scroll-widget.js +61 -0
- package/dist/modes/interactive/components/scroll-widget.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-header.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-items.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-submenus.d.ts +1 -1
- package/dist/modes/interactive/components/settings-selector-submenus.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -1
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/dist/modes/interactive/components/task-completion-message.d.ts +13 -0
- package/dist/modes/interactive/components/task-completion-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-completion-message.js +65 -0
- package/dist/modes/interactive/components/task-completion-message.js.map +1 -0
- package/dist/modes/interactive/components/task-detail.d.ts +27 -0
- package/dist/modes/interactive/components/task-detail.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-detail.js +107 -0
- package/dist/modes/interactive/components/task-detail.js.map +1 -0
- package/dist/modes/interactive/components/task-inspector.d.ts +50 -0
- package/dist/modes/interactive/components/task-inspector.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-inspector.js +599 -0
- package/dist/modes/interactive/components/task-inspector.js.map +1 -0
- package/dist/modes/interactive/components/task-list.d.ts +18 -0
- package/dist/modes/interactive/components/task-list.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-list.js +59 -0
- package/dist/modes/interactive/components/task-list.js.map +1 -0
- package/dist/modes/interactive/components/task-live-transcript.d.ts +17 -0
- package/dist/modes/interactive/components/task-live-transcript.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-live-transcript.js +41 -0
- package/dist/modes/interactive/components/task-live-transcript.js.map +1 -0
- package/dist/modes/interactive/components/task-navigation.d.ts +38 -0
- package/dist/modes/interactive/components/task-navigation.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-navigation.js +93 -0
- package/dist/modes/interactive/components/task-navigation.js.map +1 -0
- package/dist/modes/interactive/components/task-row.d.ts +34 -0
- package/dist/modes/interactive/components/task-row.d.ts.map +1 -0
- package/dist/modes/interactive/components/task-row.js +165 -0
- package/dist/modes/interactive/components/task-row.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/transcript-follow-indicator.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-component.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-content.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-help.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-label-input.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/trust-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/working-status.js.map +1 -1
- package/dist/modes/interactive/interactive-agent-events.js +8 -2
- package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
- package/dist/modes/interactive/interactive-auth-login.js +3 -1
- package/dist/modes/interactive/interactive-auth-login.js.map +1 -1
- package/dist/modes/interactive/interactive-autocomplete.js +9 -30
- package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
- package/dist/modes/interactive/interactive-deferred-startup.js +2 -1
- package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-context.js +14 -4
- package/dist/modes/interactive/interactive-extension-context.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-custom-ui.js +52 -4
- package/dist/modes/interactive/interactive-extension-custom-ui.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-runtime.js +11 -3
- package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-widgets.js +9 -1
- package/dist/modes/interactive/interactive-extension-widgets.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +19 -0
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.d.ts +7 -1
- package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.js +10 -4
- package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-deps.d.ts +6 -6
- package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts +3 -2
- 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-mode.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +3 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js +4 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
- package/dist/modes/interactive/interactive-render-chat.js +30 -4
- package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
- package/dist/modes/interactive/interactive-session-routing.js +33 -23
- package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-session-runtime.js +1 -0
- package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
- package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-startup.js +3 -0
- package/dist/modes/interactive/interactive-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-summarization-retry-events.js +2 -2
- package/dist/modes/interactive/interactive-summarization-retry-events.js.map +1 -1
- package/dist/modes/interactive/interactive-task-projection.d.ts +13 -0
- package/dist/modes/interactive/interactive-task-projection.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-task-projection.js +72 -0
- package/dist/modes/interactive/interactive-task-projection.js.map +1 -0
- package/dist/modes/interactive/interactive-tui.js.map +1 -1
- package/dist/modes/interactive/interactive-windows-subshell.d.ts +17 -0
- package/dist/modes/interactive/interactive-windows-subshell.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-windows-subshell.js +92 -0
- package/dist/modes/interactive/interactive-windows-subshell.js.map +1 -0
- package/dist/modes/interactive/skill-command-autocomplete.d.ts +12 -0
- package/dist/modes/interactive/skill-command-autocomplete.d.ts.map +1 -0
- package/dist/modes/interactive/skill-command-autocomplete.js +69 -0
- package/dist/modes/interactive/skill-command-autocomplete.js.map +1 -0
- package/dist/modes/interactive/theme/theme-class.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme-class.js +4 -1
- package/dist/modes/interactive/theme/theme-class.js.map +1 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts +1 -1
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -1
- package/dist/modes/interactive-engine/activity-watchdog.d.ts +2 -2
- package/dist/modes/interactive-engine/activity-watchdog.d.ts.map +1 -1
- package/dist/modes/interactive-engine/activity-watchdog.js.map +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.d.ts +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/engine-custom-ui.d.ts +9 -10
- package/dist/modes/interactive-engine/engine-custom-ui.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-custom-ui.js +29 -12
- package/dist/modes/interactive-engine/engine-custom-ui.js.map +1 -1
- package/dist/modes/interactive-engine/engine-diagnostic-view.d.ts +3 -1
- package/dist/modes/interactive-engine/engine-diagnostic-view.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-diagnostic-view.js +11 -0
- package/dist/modes/interactive-engine/engine-diagnostic-view.js.map +1 -1
- package/dist/modes/interactive-engine/engine-dialog-host.d.ts +2 -2
- package/dist/modes/interactive-engine/engine-dialog-host.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-dialog-host.js +4 -1
- package/dist/modes/interactive-engine/engine-dialog-host.js.map +1 -1
- package/dist/modes/interactive-engine/engine-project-trust.d.ts +10 -0
- package/dist/modes/interactive-engine/engine-project-trust.d.ts.map +1 -0
- package/dist/modes/interactive-engine/engine-project-trust.js +28 -0
- package/dist/modes/interactive-engine/engine-project-trust.js.map +1 -0
- package/dist/modes/interactive-engine/engine-render-service.d.ts +1 -1
- package/dist/modes/interactive-engine/engine-render-service.js.map +1 -1
- package/dist/modes/interactive-engine/extension-ui-bridge.d.ts +3 -1
- package/dist/modes/interactive-engine/extension-ui-bridge.d.ts.map +1 -1
- package/dist/modes/interactive-engine/extension-ui-bridge.js +7 -1
- package/dist/modes/interactive-engine/extension-ui-bridge.js.map +1 -1
- package/dist/modes/interactive-engine/input-form-host.d.ts +2 -2
- package/dist/modes/interactive-engine/input-form-host.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-auth.d.ts +1 -1
- package/dist/modes/interactive-engine/isolated-auth.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +5 -2
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +42 -4
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/protocol.d.ts +21 -1
- package/dist/modes/interactive-engine/protocol.d.ts.map +1 -1
- package/dist/modes/interactive-engine/protocol.js +53 -2
- package/dist/modes/interactive-engine/protocol.js.map +1 -1
- package/dist/modes/interactive-engine/remote-component.d.ts +2 -2
- package/dist/modes/interactive-engine/remote-component.d.ts.map +1 -1
- package/dist/modes/interactive-engine/remote-component.js +19 -8
- package/dist/modes/interactive-engine/remote-component.js.map +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.js.map +1 -1
- package/dist/modes/interactive-engine/remote-renderer.d.ts +1 -1
- package/dist/modes/interactive-engine/remote-renderer.js.map +1 -1
- package/dist/modes/interactive-engine/session-picker-host.d.ts +2 -2
- package/dist/modes/interactive-engine/session-picker-host.js.map +1 -1
- package/dist/modes/json-event.d.ts +1 -1
- package/dist/modes/json-event.js.map +1 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-bash-request-owners.d.ts +2 -2
- package/dist/modes/rpc/rpc-bash-request-owners.js.map +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +2 -2
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +2 -2
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-client-process.d.ts +2 -0
- package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-process.js +23 -1
- package/dist/modes/rpc/rpc-client-process.js.map +1 -1
- package/dist/modes/rpc/rpc-client-waits.d.ts +1 -1
- package/dist/modes/rpc/rpc-client-waits.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +3 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +40 -3
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts +4 -2
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +12 -4
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-extension-ui.d.ts +1 -1
- package/dist/modes/rpc/rpc-extension-ui.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-extension-ui.js +2 -1
- package/dist/modes/rpc/rpc-extension-ui.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +12 -2
- package/dist/modes/rpc/rpc-mode.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/modes/rpc/rpc-session-binding.d.ts +4 -1
- package/dist/modes/rpc/rpc-session-binding.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-session-binding.js +35 -1
- package/dist/modes/rpc/rpc-session-binding.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +17 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/modes/rpc/task-ui-bridge.d.ts +9 -0
- package/dist/modes/rpc/task-ui-bridge.d.ts.map +1 -0
- package/dist/modes/rpc/task-ui-bridge.js +146 -0
- package/dist/modes/rpc/task-ui-bridge.js.map +1 -0
- package/dist/self-update-plan.js.map +1 -1
- package/dist/utils/markit.d.ts +2 -0
- package/dist/utils/markit.d.ts.map +1 -1
- package/dist/utils/markit.js +65 -5
- package/dist/utils/markit.js.map +1 -1
- package/docs/background-tasks.md +232 -0
- package/docs/build.md +51 -0
- package/docs/changelog.mdx +8 -8
- package/docs/compaction/reference.md +267 -0
- package/docs/compaction.md +39 -200
- package/docs/computer-use.md +425 -0
- package/docs/containerization.md +9 -5
- package/docs/custom-provider/api-reference.md +145 -0
- package/docs/custom-provider/oauth.md +131 -0
- package/docs/custom-provider/override.md +34 -0
- package/docs/custom-provider/registration.md +163 -0
- package/docs/custom-provider/streaming.md +214 -0
- package/docs/custom-provider.md +43 -607
- package/docs/development.md +68 -30
- package/docs/docs.json +199 -73
- package/docs/environment-variables.md +2 -2
- package/docs/extensions/api-reference.md +1003 -0
- package/docs/extensions/authoring.md +676 -0
- package/docs/extensions/events.md +793 -0
- package/docs/extensions/examples.md +94 -0
- package/docs/extensions/ui.md +470 -0
- package/docs/extensions.md +241 -2623
- package/docs/getting-started/authentication.md +55 -0
- package/docs/getting-started/first-session.md +172 -0
- package/docs/getting-started/installation.md +154 -0
- package/docs/getting-started/project-instructions.md +43 -0
- package/docs/guides/configuration.md +65 -0
- package/docs/guides/intercom.md +24 -0
- package/docs/guides/non-interactive.md +33 -0
- package/docs/guides/subagents.md +24 -0
- package/docs/guides/workflows.md +27 -0
- package/docs/guides.md +41 -0
- package/docs/herdr.md +55 -0
- package/docs/index.md +13 -44
- package/docs/intercom/operations.md +178 -0
- package/docs/intercom/reference.md +150 -0
- package/docs/intercom.md +61 -251
- package/docs/json.md +17 -0
- package/docs/keybindings.md +36 -2
- package/docs/llama-cpp.md +5 -0
- package/docs/models/artificial-analysis-index.md +89 -0
- package/docs/models/evals.md +225 -148
- package/docs/models/model-selection.md +30 -21
- package/docs/models/pareto-efficiency.md +4 -4
- package/docs/models/reference.md +601 -0
- package/docs/models.md +45 -550
- package/docs/packages/authoring.md +88 -0
- package/docs/packages/reference.md +43 -0
- package/docs/packages.md +28 -107
- package/docs/programmatic.md +29 -0
- package/docs/prompt-templates.md +11 -0
- package/docs/providers/reference.md +23 -0
- package/docs/providers.md +59 -62
- package/docs/quickstart.md +45 -239
- package/docs/reference/cli.md +252 -0
- package/docs/reference.md +52 -0
- package/docs/rpc/examples.md +64 -0
- package/docs/rpc/extension-ui.md +198 -0
- package/docs/rpc/protocol.md +1341 -0
- package/docs/rpc.md +109 -1346
- package/docs/sdk/reference.md +1090 -0
- package/docs/sdk.md +64 -756
- package/docs/session-format.md +2 -0
- package/docs/sessions.md +6 -10
- package/docs/settings.md +45 -48
- package/docs/skills/authoring.md +95 -0
- package/docs/skills/reference.md +60 -0
- package/docs/skills.md +37 -117
- package/docs/subagents/authoring.md +37 -0
- package/docs/subagents/reference.md +60 -0
- package/docs/subagents.md +90 -78
- package/docs/terminal-setup.md +1 -1
- package/docs/themes/reference.md +176 -0
- package/docs/themes.md +25 -135
- package/docs/tmux.md +7 -0
- package/docs/tools/edit.md +5 -0
- package/docs/tools.md +67 -1
- package/docs/tui/reference.md +343 -0
- package/docs/tui.md +83 -285
- package/docs/usage.md +31 -210
- package/docs/web-access.md +50 -0
- package/docs/windows.md +6 -5
- package/docs/workflows/api-reference.md +31 -12
- package/docs/workflows/authoring.md +7 -5
- package/docs/workflows/builtins.md +11 -8
- package/docs/workflows/operations.md +117 -39
- package/docs/workflows/reliable-design.md +59 -10
- package/docs/workflows/verification.md +116 -32
- package/docs/workflows.md +7 -3
- package/examples/extensions/gondolin/index.ts +116 -148
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/ssh.ts +56 -34
- package/npm-shrinkwrap.json +798 -678
- package/package.json +11 -11
- /package/dist/builtin/workflows/builtin/{chunk-cg9tmks0.js → chunk-n1910xc4.js} +0 -0
- /package/dist/builtin/workflows/builtin/{chunk-wpckd35c.js → chunk-rc5ec5xx.js} +0 -0
- /package/dist/builtin/workflows/builtin/{chunk-7at6dnkr.js → chunk-tgt0s5e5.js} +0 -0
- /package/dist/builtin/workflows/builtin/{chunk-bfkmzv9h.js → chunk-xtxcq5tj.js} +0 -0
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { stripVTControlCharacters } from "node:util";
|
|
3
|
+
import { getKeybindings, Input, matchesKey, Text, truncateToWidth, visibleWidth, } from "@earendil-works/pi-tui";
|
|
4
|
+
import { taskOutputText } from "../../../core/tasks/command-output.js";
|
|
5
|
+
import { taskTranscriptSource } from "../../../core/tasks/supervisor.js";
|
|
6
|
+
import { readTaskTranscriptSnapshot } from "../../../core/tasks/transcript.js";
|
|
7
|
+
import { theme } from "../theme/theme.js";
|
|
8
|
+
import { chatEntriesFromAgentMessages, renderChatMessageEntry } from "./chat-message-renderer.js";
|
|
9
|
+
import { mouseWheelDeltaRows } from "./chat-transcript.js";
|
|
10
|
+
import { keyHintIfBound } from "./keybinding-hints.js";
|
|
11
|
+
import { TaskDetail, taskDetailActions, taskDetailLabels, taskDetailSummary, } from "./task-detail.js";
|
|
12
|
+
import { taskListSections } from "./task-list.js";
|
|
13
|
+
import { TaskLiveTranscript } from "./task-live-transcript.js";
|
|
14
|
+
import { TaskNavigation } from "./task-navigation.js";
|
|
15
|
+
import { taskDisplayText, taskLabel, taskMetricsText, taskModelText, taskStatusAppearance } from "./task-row.js";
|
|
16
|
+
/** Focused view only. The store and original session remain the authorities. */
|
|
17
|
+
export class TaskInspector {
|
|
18
|
+
constructor(privateStore, privateRender, privateClose, openQuestion) {
|
|
19
|
+
this.actionIndex = 0;
|
|
20
|
+
this.transcriptRefreshPending = false;
|
|
21
|
+
this.transcriptRequested = false;
|
|
22
|
+
this.transcriptLoading = false;
|
|
23
|
+
this.transcriptHistorical = false;
|
|
24
|
+
this.transcriptPageRows = 5;
|
|
25
|
+
this.status = "";
|
|
26
|
+
this.scroll = 0;
|
|
27
|
+
this.detailContent = {};
|
|
28
|
+
this.detailGeneration = 0;
|
|
29
|
+
this.disposed = false;
|
|
30
|
+
this.input = new Input();
|
|
31
|
+
this.store = privateStore;
|
|
32
|
+
this.requestRender = privateRender;
|
|
33
|
+
this.close = privateClose;
|
|
34
|
+
this.navigation = new TaskNavigation(getKeybindings(), {
|
|
35
|
+
inspect: () => {
|
|
36
|
+
this.releaseLiveTranscript();
|
|
37
|
+
this.actionIndex = 0;
|
|
38
|
+
this.scroll = 0;
|
|
39
|
+
this.transcript = undefined;
|
|
40
|
+
this.transcriptRequested = false;
|
|
41
|
+
this.transcriptLoading = false;
|
|
42
|
+
this.transcriptHistorical = false;
|
|
43
|
+
void this.loadDetail();
|
|
44
|
+
},
|
|
45
|
+
transcript: () => {
|
|
46
|
+
this.detailGeneration++;
|
|
47
|
+
this.scroll = 0;
|
|
48
|
+
void this.loadTranscript();
|
|
49
|
+
},
|
|
50
|
+
foreground: (task) => {
|
|
51
|
+
const lease = this.store.resolveTask(task.ref.taskId);
|
|
52
|
+
if (lease.ok)
|
|
53
|
+
void this.store.supervisor.foregroundTask(lease.value).then((result) => {
|
|
54
|
+
this.status = result.ok ? result.value.kind : result.error.message;
|
|
55
|
+
this.requestRender();
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
confirmCancel: () => new Promise((resolve) => {
|
|
59
|
+
this.confirmation = resolve;
|
|
60
|
+
this.requestRender();
|
|
61
|
+
}),
|
|
62
|
+
cancel: (task) => {
|
|
63
|
+
const lease = this.store.resolveTask(task.ref.taskId);
|
|
64
|
+
if (lease.ok)
|
|
65
|
+
void this.store.supervisor.cancelTask(lease.value, "user").then(() => this.requestRender());
|
|
66
|
+
},
|
|
67
|
+
stdinAvailable: (task) => {
|
|
68
|
+
const lease = this.store.resolveTask(task.ref.taskId);
|
|
69
|
+
return lease.ok && this.store.supervisor.taskStdin(lease.value).ok;
|
|
70
|
+
},
|
|
71
|
+
input: () => {
|
|
72
|
+
this.input.setValue("");
|
|
73
|
+
},
|
|
74
|
+
openQuestion: (route) => {
|
|
75
|
+
if (openQuestion) {
|
|
76
|
+
this.close();
|
|
77
|
+
openQuestion(route);
|
|
78
|
+
}
|
|
79
|
+
else
|
|
80
|
+
this.status = "Question is available in its owning session.";
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
this.unsubscribe = this.store.subscribe(() => {
|
|
84
|
+
this.navigation.update(this.store.backgroundTasks);
|
|
85
|
+
if (this.transcriptRequested) {
|
|
86
|
+
this.refreshTranscript();
|
|
87
|
+
}
|
|
88
|
+
else if (this.navigation.focus.kind === "detail")
|
|
89
|
+
void this.loadDetail();
|
|
90
|
+
this.requestRender();
|
|
91
|
+
});
|
|
92
|
+
this.navigation.update(this.store.backgroundTasks);
|
|
93
|
+
this.navigation.open();
|
|
94
|
+
this.input.onSubmit = (text) => {
|
|
95
|
+
void this.sendInput(text);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
open(id) {
|
|
99
|
+
this.navigation.open(id);
|
|
100
|
+
}
|
|
101
|
+
dispose() {
|
|
102
|
+
this.disposed = true;
|
|
103
|
+
this.releaseLiveTranscript();
|
|
104
|
+
this.confirmation?.(false);
|
|
105
|
+
this.unsubscribe();
|
|
106
|
+
}
|
|
107
|
+
invalidate() {
|
|
108
|
+
for (const component of this.transcript ?? [])
|
|
109
|
+
component.invalidate();
|
|
110
|
+
}
|
|
111
|
+
selected() {
|
|
112
|
+
return this.store.backgroundTasks.find((task) => task.ref.taskId === this.navigation.selectedTaskId);
|
|
113
|
+
}
|
|
114
|
+
stdinAvailable() {
|
|
115
|
+
const task = this.selected();
|
|
116
|
+
if (!task || task.execution.kind === "settled")
|
|
117
|
+
return false;
|
|
118
|
+
const lease = this.store.resolveTask(task.ref.taskId);
|
|
119
|
+
return lease.ok && this.store.supervisor.taskStdin(lease.value).ok;
|
|
120
|
+
}
|
|
121
|
+
async sendInput(text) {
|
|
122
|
+
const task = this.selected();
|
|
123
|
+
if (!task)
|
|
124
|
+
return;
|
|
125
|
+
const lease = this.store.resolveTask(task.ref.taskId);
|
|
126
|
+
if (!lease.ok)
|
|
127
|
+
return;
|
|
128
|
+
const stdin = this.store.supervisor.taskStdin(lease.value);
|
|
129
|
+
if (!stdin.ok) {
|
|
130
|
+
this.status = stdin.error.message;
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const result = await this.store.supervisor.writeTaskInput(stdin.value, randomUUID(), {
|
|
134
|
+
kind: "bytes",
|
|
135
|
+
bytes: Buffer.from(`${text}\n`),
|
|
136
|
+
});
|
|
137
|
+
this.status = result.ok ? `Sent ${result.value.acceptedBytes} bytes` : result.error.message;
|
|
138
|
+
this.input.setValue("");
|
|
139
|
+
this.requestRender();
|
|
140
|
+
}
|
|
141
|
+
releaseLiveTranscript() {
|
|
142
|
+
this.liveTranscript?.dispose();
|
|
143
|
+
this.liveTranscript = undefined;
|
|
144
|
+
this.transcriptRefreshPending = false;
|
|
145
|
+
}
|
|
146
|
+
refreshTranscript() {
|
|
147
|
+
if (this.disposed || !this.transcriptRequested)
|
|
148
|
+
return;
|
|
149
|
+
const task = this.selected();
|
|
150
|
+
const lease = task && this.store.resolveTask(task.ref.taskId);
|
|
151
|
+
const bound = lease?.ok ? taskTranscriptSource(lease.value) : undefined;
|
|
152
|
+
if (bound?.ok && this.liveTranscript?.source === bound.value.session)
|
|
153
|
+
return;
|
|
154
|
+
// Legacy history-only sources have no live tail; keep their retained page anchored.
|
|
155
|
+
if (bound?.ok && !bound.value.session.subscribe && this.transcriptHistorical)
|
|
156
|
+
return;
|
|
157
|
+
if (this.transcriptLoading)
|
|
158
|
+
this.transcriptRefreshPending = true;
|
|
159
|
+
else
|
|
160
|
+
void this.loadTranscript();
|
|
161
|
+
}
|
|
162
|
+
async loadTranscript(earlier = false) {
|
|
163
|
+
const task = this.selected();
|
|
164
|
+
if (!task)
|
|
165
|
+
return;
|
|
166
|
+
const generation = ++this.detailGeneration;
|
|
167
|
+
const focus = this.navigation.focus;
|
|
168
|
+
this.transcriptRequested = true;
|
|
169
|
+
this.transcriptLoading = true;
|
|
170
|
+
if (earlier)
|
|
171
|
+
this.transcriptHistorical = true;
|
|
172
|
+
this.requestRender();
|
|
173
|
+
try {
|
|
174
|
+
const lease = this.store.resolveTask(task.ref.taskId);
|
|
175
|
+
if (!lease.ok) {
|
|
176
|
+
this.status = lease.error.message;
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (task.kind === "command") {
|
|
180
|
+
const count = BigInt(task.output.byteCount);
|
|
181
|
+
const page = await this.store.supervisor.readTaskOutput(lease.value, {
|
|
182
|
+
start: String(count > 8192n ? count - 8192n : 0n),
|
|
183
|
+
maximumBytes: 8192,
|
|
184
|
+
});
|
|
185
|
+
if (this.disposed ||
|
|
186
|
+
generation !== this.detailGeneration ||
|
|
187
|
+
focus !== this.navigation.focus ||
|
|
188
|
+
task.ref.taskId !== this.navigation.selectedTaskId)
|
|
189
|
+
return;
|
|
190
|
+
const text = page.ok ? taskOutputText(page.value) : page.error.message;
|
|
191
|
+
this.transcript = [
|
|
192
|
+
new Text(text.split("\n").map(taskDisplayText).join("\n") || "No output available", 0, 0),
|
|
193
|
+
];
|
|
194
|
+
this.cursor = undefined;
|
|
195
|
+
this.status =
|
|
196
|
+
count > 8192n ? "Earlier output omitted · showing retained 8 KiB tail" : "Retained shell output";
|
|
197
|
+
this.requestRender();
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
const page = readTaskTranscriptSnapshot(lease.value, earlier ? this.cursor : undefined);
|
|
201
|
+
if (this.disposed ||
|
|
202
|
+
generation !== this.detailGeneration ||
|
|
203
|
+
focus !== this.navigation.focus ||
|
|
204
|
+
task.ref.taskId !== this.navigation.selectedTaskId)
|
|
205
|
+
return;
|
|
206
|
+
const bound = taskTranscriptSource(lease.value);
|
|
207
|
+
if (!bound.ok || (!page.ok && !bound.value.session.subscribe)) {
|
|
208
|
+
this.status = "Transcript unavailable";
|
|
209
|
+
this.requestRender();
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
const ids = new Set(page.ok ? page.value.items.map((item) => item.source.entryId) : []);
|
|
213
|
+
const messages = bound.value.session.getEntries().flatMap((entry) => {
|
|
214
|
+
if (entry.type !== "message" || !ids.has(entry.id))
|
|
215
|
+
return [];
|
|
216
|
+
const message = entry.message;
|
|
217
|
+
if (message.role === "assistant")
|
|
218
|
+
return [
|
|
219
|
+
{
|
|
220
|
+
...message,
|
|
221
|
+
content: message.content.filter((block, index) => block.type !== "thinking" &&
|
|
222
|
+
page.ok &&
|
|
223
|
+
page.value.items.some((item) => item.source.entryId === entry.id && item.source.contentIndex === index)),
|
|
224
|
+
},
|
|
225
|
+
];
|
|
226
|
+
return message.role === "user" || message.role === "toolResult" ? [message] : [];
|
|
227
|
+
});
|
|
228
|
+
const components = chatEntriesFromAgentMessages(messages).map((entry) => renderChatMessageEntry(entry, {
|
|
229
|
+
ui: { requestRender: this.requestRender },
|
|
230
|
+
cwd: process.cwd(),
|
|
231
|
+
hideThinkingBlock: true,
|
|
232
|
+
toolOutputExpanded: true,
|
|
233
|
+
showImages: false,
|
|
234
|
+
}));
|
|
235
|
+
if (!earlier && bound.value.session.subscribe) {
|
|
236
|
+
this.releaseLiveTranscript();
|
|
237
|
+
this.liveTranscript = new TaskLiveTranscript(bound.value.session, messages, this.requestRender);
|
|
238
|
+
this.transcript = [this.liveTranscript];
|
|
239
|
+
}
|
|
240
|
+
else
|
|
241
|
+
this.transcript = earlier ? [...components, ...(this.transcript ?? [])] : components;
|
|
242
|
+
this.cursor = page.ok ? page.value.nextCursor : undefined;
|
|
243
|
+
this.status = this.cursor ? "PageUp: earlier retained messages" : "";
|
|
244
|
+
this.requestRender();
|
|
245
|
+
}
|
|
246
|
+
catch {
|
|
247
|
+
if (!this.disposed && generation === this.detailGeneration && focus === this.navigation.focus) {
|
|
248
|
+
this.transcript = [];
|
|
249
|
+
this.status = "Task output unavailable";
|
|
250
|
+
this.requestRender();
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
finally {
|
|
254
|
+
if (generation === this.detailGeneration) {
|
|
255
|
+
this.transcriptLoading = false;
|
|
256
|
+
if (this.transcriptRefreshPending) {
|
|
257
|
+
this.transcriptRefreshPending = false;
|
|
258
|
+
this.refreshTranscript();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
async loadDetail() {
|
|
264
|
+
const selectedId = this.selected()?.ref.taskId;
|
|
265
|
+
if (selectedId !== this.detailTaskId) {
|
|
266
|
+
this.detailContent = {};
|
|
267
|
+
this.detailTaskId = selectedId;
|
|
268
|
+
}
|
|
269
|
+
this.status = "";
|
|
270
|
+
const generation = ++this.detailGeneration;
|
|
271
|
+
const focus = this.navigation.focus;
|
|
272
|
+
const task = this.selected();
|
|
273
|
+
if (!task)
|
|
274
|
+
return;
|
|
275
|
+
const current = () => !this.disposed &&
|
|
276
|
+
generation === this.detailGeneration &&
|
|
277
|
+
this.navigation.focus === focus &&
|
|
278
|
+
focus.kind === "detail" &&
|
|
279
|
+
this.navigation.selectedTaskId === task.ref.taskId;
|
|
280
|
+
const lease = this.store.resolveTask(task.ref.taskId);
|
|
281
|
+
if (!lease.ok)
|
|
282
|
+
return;
|
|
283
|
+
const source = taskTranscriptSource(lease.value);
|
|
284
|
+
if (source.ok) {
|
|
285
|
+
const prompt = source.value.session
|
|
286
|
+
.getEntries()
|
|
287
|
+
.find((entry) => entry.type === "message" && entry.message.role === "user");
|
|
288
|
+
if (prompt?.type === "message" && prompt.message.role === "user")
|
|
289
|
+
this.detailContent.prompt =
|
|
290
|
+
typeof prompt.message.content === "string"
|
|
291
|
+
? prompt.message.content
|
|
292
|
+
: prompt.message.content
|
|
293
|
+
.filter((block) => block.type === "text")
|
|
294
|
+
.map((block) => block.text)
|
|
295
|
+
.join("");
|
|
296
|
+
const response = source.value.session
|
|
297
|
+
.getEntries()
|
|
298
|
+
.slice()
|
|
299
|
+
.reverse()
|
|
300
|
+
.find((entry) => entry.type === "message" && entry.message.role === "assistant");
|
|
301
|
+
if (response?.type === "message" && response.message.role === "assistant")
|
|
302
|
+
this.detailContent.output = response.message.content
|
|
303
|
+
.filter((block) => block.type === "text")
|
|
304
|
+
.map((block) => block.text)
|
|
305
|
+
.join("");
|
|
306
|
+
}
|
|
307
|
+
if (task.kind === "command") {
|
|
308
|
+
try {
|
|
309
|
+
const count = BigInt(task.output.byteCount);
|
|
310
|
+
const output = await this.store.supervisor.readTaskOutput(lease.value, {
|
|
311
|
+
start: String(count > 8192n ? count - 8192n : 0n),
|
|
312
|
+
maximumBytes: 8192,
|
|
313
|
+
});
|
|
314
|
+
if (!current())
|
|
315
|
+
return;
|
|
316
|
+
if (output.ok) {
|
|
317
|
+
this.detailContent.output = taskOutputText(output.value);
|
|
318
|
+
this.detailContent.outputOmitted = count > 8192n || output.value.omittedRanges.length > 0;
|
|
319
|
+
}
|
|
320
|
+
else
|
|
321
|
+
this.status = output.error.message;
|
|
322
|
+
}
|
|
323
|
+
catch {
|
|
324
|
+
if (!current())
|
|
325
|
+
return;
|
|
326
|
+
this.status = "Command output unavailable";
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
if (current())
|
|
330
|
+
this.requestRender();
|
|
331
|
+
}
|
|
332
|
+
handleInput(data) {
|
|
333
|
+
if (this.confirmation) {
|
|
334
|
+
if (data === "y" || data === "n" || matchesKey(data, "escape")) {
|
|
335
|
+
const answer = this.confirmation;
|
|
336
|
+
this.confirmation = undefined;
|
|
337
|
+
answer(data === "y");
|
|
338
|
+
}
|
|
339
|
+
this.requestRender();
|
|
340
|
+
return true;
|
|
341
|
+
}
|
|
342
|
+
const wheel = mouseWheelDeltaRows(data);
|
|
343
|
+
if (wheel !== 0) {
|
|
344
|
+
if (this.navigation.focus.kind === "tasks")
|
|
345
|
+
this.navigation.moveSelection(Math.sign(wheel));
|
|
346
|
+
else if (this.navigation.focus.kind === "detail") {
|
|
347
|
+
if (this.transcriptRequested && wheel < 0 && this.scroll === 0 && this.cursor && !this.transcriptLoading)
|
|
348
|
+
void this.loadTranscript(true);
|
|
349
|
+
else
|
|
350
|
+
this.scroll = Math.max(0, this.scroll + wheel);
|
|
351
|
+
}
|
|
352
|
+
this.requestRender();
|
|
353
|
+
return true;
|
|
354
|
+
}
|
|
355
|
+
// Mouse reports are never text input, including horizontal wheel/release.
|
|
356
|
+
if (/^\x1b\[<\d+;\d+;\d+[mM]$/.test(data) || data.startsWith("\x1b[M"))
|
|
357
|
+
return true;
|
|
358
|
+
if (matchesKey(data, "escape") ||
|
|
359
|
+
(matchesKey(data, "left") && this.navigation.focus.kind !== "stdin" && !this.configuredTaskKey(data))) {
|
|
360
|
+
if (this.transcriptRequested) {
|
|
361
|
+
this.releaseLiveTranscript();
|
|
362
|
+
this.detailGeneration++;
|
|
363
|
+
this.transcript = undefined;
|
|
364
|
+
this.transcriptRequested = false;
|
|
365
|
+
this.transcriptLoading = false;
|
|
366
|
+
this.transcriptHistorical = false;
|
|
367
|
+
this.scroll = 0;
|
|
368
|
+
void this.loadDetail();
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
this.navigation.handleInput("\x1b", "tasks");
|
|
372
|
+
if (this.navigation.focus.kind === "composer")
|
|
373
|
+
this.close();
|
|
374
|
+
}
|
|
375
|
+
this.requestRender();
|
|
376
|
+
return true;
|
|
377
|
+
}
|
|
378
|
+
if (this.navigation.focus.kind === "stdin") {
|
|
379
|
+
this.input.handleInput(data);
|
|
380
|
+
this.requestRender();
|
|
381
|
+
return true;
|
|
382
|
+
}
|
|
383
|
+
if (data === "x" && !this.configuredTaskKey(data)) {
|
|
384
|
+
void this.navigation.activate("cancel");
|
|
385
|
+
return true;
|
|
386
|
+
}
|
|
387
|
+
if (this.transcriptRequested) {
|
|
388
|
+
if (this.configuredTaskKey(data))
|
|
389
|
+
this.navigation.handleInput(data, "tasks");
|
|
390
|
+
else if (matchesKey(data, "up"))
|
|
391
|
+
this.scroll = Math.max(0, this.scroll - 1);
|
|
392
|
+
else if (matchesKey(data, "down"))
|
|
393
|
+
this.scroll++;
|
|
394
|
+
else if (matchesKey(data, "pageUp")) {
|
|
395
|
+
if (this.scroll === 0 && this.cursor && !this.transcriptLoading)
|
|
396
|
+
void this.loadTranscript(true);
|
|
397
|
+
else
|
|
398
|
+
this.scroll = Math.max(0, this.scroll - this.transcriptPageRows);
|
|
399
|
+
}
|
|
400
|
+
else if (matchesKey(data, "pageDown"))
|
|
401
|
+
this.scroll += this.transcriptPageRows;
|
|
402
|
+
else if (matchesKey(data, "home"))
|
|
403
|
+
this.scroll = 0;
|
|
404
|
+
else if (matchesKey(data, "end"))
|
|
405
|
+
this.scroll = Number.MAX_SAFE_INTEGER;
|
|
406
|
+
this.requestRender();
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
const task = this.selected();
|
|
410
|
+
if (task && this.navigation.focus.kind === "detail") {
|
|
411
|
+
const actions = taskDetailActions(task.execution, task.attention, this.stdinAvailable());
|
|
412
|
+
if (this.configuredTaskKey(data)) {
|
|
413
|
+
if (getKeybindings().matches(data, "app.tasks.inspect"))
|
|
414
|
+
void this.navigation.activate(actions[Math.min(this.actionIndex, actions.length - 1)]);
|
|
415
|
+
else
|
|
416
|
+
this.navigation.handleInput(data, "tasks");
|
|
417
|
+
this.requestRender();
|
|
418
|
+
return true;
|
|
419
|
+
}
|
|
420
|
+
if (matchesKey(data, "pageUp") || matchesKey(data, "pageDown")) {
|
|
421
|
+
this.scroll = Math.max(0, this.scroll + (matchesKey(data, "pageUp") ? -5 : 5));
|
|
422
|
+
this.requestRender();
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
if (matchesKey(data, "up"))
|
|
426
|
+
this.actionIndex = Math.max(0, this.actionIndex - 1);
|
|
427
|
+
else if (matchesKey(data, "down"))
|
|
428
|
+
this.actionIndex = Math.min(actions.length - 1, this.actionIndex + 1);
|
|
429
|
+
else if (getKeybindings().matches(data, "app.tasks.inspect"))
|
|
430
|
+
void this.navigation.activate(actions[Math.min(this.actionIndex, actions.length - 1)]);
|
|
431
|
+
else if (!this.navigation.handleInput(data, "tasks"))
|
|
432
|
+
return false;
|
|
433
|
+
}
|
|
434
|
+
else if (!this.navigation.handleInput(data, "tasks"))
|
|
435
|
+
return false;
|
|
436
|
+
this.requestRender();
|
|
437
|
+
return true;
|
|
438
|
+
}
|
|
439
|
+
configuredTaskKey(data) {
|
|
440
|
+
return ["app.tasks.inspect", "app.tasks.foreground", "app.tasks.cancel", "app.tasks.input"].some((key) => getKeybindings().matches(data, key));
|
|
441
|
+
}
|
|
442
|
+
/** Only the task picker stays inline; drill-down and confirmation own the screen. */
|
|
443
|
+
get fullscreen() {
|
|
444
|
+
return (this.confirmation !== undefined ||
|
|
445
|
+
this.navigation.focus.kind === "detail" ||
|
|
446
|
+
this.navigation.focus.kind === "stdin");
|
|
447
|
+
}
|
|
448
|
+
renderPicker(width, availableRows) {
|
|
449
|
+
return this.renderViewport(width, Math.max(1, Math.min(12, availableRows)));
|
|
450
|
+
}
|
|
451
|
+
render(width) {
|
|
452
|
+
return this.renderViewport(width, Math.max(3, (process.stdout.rows || 24) - 5));
|
|
453
|
+
}
|
|
454
|
+
renderTranscriptViewport(width, budget) {
|
|
455
|
+
const task = this.selected();
|
|
456
|
+
const room = Math.max(1, budget - 5);
|
|
457
|
+
this.transcriptPageRows = room;
|
|
458
|
+
const rows = this.transcript?.flatMap((component) => component.render(width)) ?? [
|
|
459
|
+
this.transcriptLoading ? "Loading transcript…" : this.status,
|
|
460
|
+
];
|
|
461
|
+
this.scroll = Math.min(this.scroll, Math.max(0, rows.length - room));
|
|
462
|
+
const visible = rows.slice(this.scroll, this.scroll + room);
|
|
463
|
+
// Transcript tools own their backgrounds. Keep them out of a nested box,
|
|
464
|
+
// strip terminal movement, and reset styles at every viewport row boundary.
|
|
465
|
+
const safeLine = (line) => line
|
|
466
|
+
.split(/(\x1b\[[0-9;:]*m)/g)
|
|
467
|
+
.map((part, index) => index % 2 ? part : stripVTControlCharacters(part).replace(/[\x00-\x1f\x7f-\x9f]/g, " "))
|
|
468
|
+
.join("");
|
|
469
|
+
const fit = (line) => truncateToWidth(safeLine(line), Math.max(1, width)) + "\x1b[0m";
|
|
470
|
+
return [
|
|
471
|
+
theme.bold(`Transcript · ${task ? taskDisplayText(taskLabel(task)) : "Task"}`),
|
|
472
|
+
task ? taskDetailSummary(task) : "",
|
|
473
|
+
theme.fg("borderMuted", "─".repeat(Math.max(0, width))),
|
|
474
|
+
...visible,
|
|
475
|
+
...Array.from({ length: Math.max(0, room - visible.length) }, () => ""),
|
|
476
|
+
theme.fg("dim", `Lines ${rows.length ? this.scroll + 1 : 0}–${Math.min(rows.length, this.scroll + room)} of ${rows.length}${this.cursor ? " · PgUp at top: earlier history" : ""}${this.status ? ` · ${this.status}` : ""}`),
|
|
477
|
+
theme.fg("dim", "↑↓ scroll · PgUp/PgDn page · Home/End · ←/Esc back"),
|
|
478
|
+
]
|
|
479
|
+
.map(fit)
|
|
480
|
+
.slice(0, Math.max(1, budget));
|
|
481
|
+
}
|
|
482
|
+
renderViewport(width, budget) {
|
|
483
|
+
if (this.transcriptRequested && !this.confirmation && this.navigation.focus.kind === "detail")
|
|
484
|
+
return this.renderTranscriptViewport(width, budget);
|
|
485
|
+
const framed = width >= 20 && budget >= 7;
|
|
486
|
+
const inner = Math.max(1, width - (framed ? 4 : 0));
|
|
487
|
+
const current = this.selected();
|
|
488
|
+
const detail = this.navigation.focus.kind === "detail";
|
|
489
|
+
const selectingAction = current && detail && !this.transcriptRequested && !this.confirmation;
|
|
490
|
+
const actions = selectingAction
|
|
491
|
+
? taskDetailActions(current.execution, current.attention, this.stdinAvailable())
|
|
492
|
+
: [];
|
|
493
|
+
this.actionIndex = Math.max(0, Math.min(this.actionIndex, actions.length - 1));
|
|
494
|
+
const action = actions[this.actionIndex];
|
|
495
|
+
const actionRow = action ? [theme.fg("accent", `› ${taskDetailLabels[action]}`)] : [];
|
|
496
|
+
const rows = this.renderAll(inner);
|
|
497
|
+
const compactSummary = !framed && detail && current && budget >= 4 ? [taskDetailSummary(current)] : [];
|
|
498
|
+
const height = Math.max(0, budget - (framed ? 4 : 1) - actionRow.length - compactSummary.length);
|
|
499
|
+
const selected = detail ? -1 : rows.findIndex((row) => stripVTControlCharacters(row).startsWith("›"));
|
|
500
|
+
this.scroll = Math.min(this.scroll, Math.max(0, rows.length - height));
|
|
501
|
+
const selectionRows = Math.min(height, current?.kind === "agent" ? 3 : 2);
|
|
502
|
+
const offset = detail ? this.scroll : Math.max(0, selected + selectionRows - height);
|
|
503
|
+
const view = rows.slice(offset, offset + height);
|
|
504
|
+
const inspect = keyHintIfBound("app.tasks.inspect", detail ? "select" : "view");
|
|
505
|
+
const hints = this.confirmation
|
|
506
|
+
? "y confirm · n/Esc keep running"
|
|
507
|
+
: this.navigation.focus.kind === "stdin"
|
|
508
|
+
? "Enter send · Esc back"
|
|
509
|
+
: this.transcriptRequested
|
|
510
|
+
? "↑↓ scroll · PgUp/PgDn page · ←/Esc back"
|
|
511
|
+
: [
|
|
512
|
+
detail ? "PgUp/PgDn scroll · ↑↓ actions" : "↑↓ select",
|
|
513
|
+
inspect,
|
|
514
|
+
current && current.execution.kind !== "settled"
|
|
515
|
+
? keyHintIfBound("app.tasks.cancel", "stop") || (!this.configuredTaskKey("x") ? "x stop" : "")
|
|
516
|
+
: "",
|
|
517
|
+
"Esc back",
|
|
518
|
+
]
|
|
519
|
+
.filter(Boolean)
|
|
520
|
+
.join(" · ");
|
|
521
|
+
const footer = theme.fg("dim", truncateToWidth(`/tasks · ${hints}`, width));
|
|
522
|
+
if (!framed)
|
|
523
|
+
return [...compactSummary, ...view, ...actionRow, footer]
|
|
524
|
+
.map((line) => truncateToWidth(line, width))
|
|
525
|
+
.slice(-Math.max(1, budget));
|
|
526
|
+
const live = this.store.backgroundTasks.filter((task) => task.execution.kind !== "settled").length;
|
|
527
|
+
const title = detail && current
|
|
528
|
+
? `${taskDisplayText(taskLabel(current))} › ${taskDisplayText(current.title)}`
|
|
529
|
+
: "Background tasks";
|
|
530
|
+
const heading = ` ${truncateToWidth(title, Math.max(1, width - 5))} `;
|
|
531
|
+
const border = (text) => theme.fg("borderMuted", text);
|
|
532
|
+
const frameRow = (line) => {
|
|
533
|
+
const text = truncateToWidth(line, inner);
|
|
534
|
+
return border("│ ") + text + " ".repeat(Math.max(0, inner - visibleWidth(text))) + border(" │");
|
|
535
|
+
};
|
|
536
|
+
return [
|
|
537
|
+
border("╭─") + theme.bold(heading) + border(`${"─".repeat(Math.max(0, width - visibleWidth(heading) - 3))}╮`),
|
|
538
|
+
frameRow(detail && current
|
|
539
|
+
? taskDetailSummary(current)
|
|
540
|
+
: theme.fg("muted", `${live} active · ${this.store.backgroundTasks.length} total`)),
|
|
541
|
+
...view.map(frameRow),
|
|
542
|
+
...actionRow.map(frameRow),
|
|
543
|
+
border(`╰${"─".repeat(Math.max(0, width - 2))}╯`),
|
|
544
|
+
footer,
|
|
545
|
+
].map((line) => truncateToWidth(line, width));
|
|
546
|
+
}
|
|
547
|
+
renderAll(width) {
|
|
548
|
+
const task = this.selected();
|
|
549
|
+
if (this.confirmation)
|
|
550
|
+
return new Text(`Cancel ${task?.title}\nTask ${task?.ref.taskId}\ny: confirm · n/Escape: keep running`, 0, 0).render(width);
|
|
551
|
+
if (this.navigation.focus.kind === "stdin")
|
|
552
|
+
return [`Input to ${task?.title} · Escape: tasks`, ...this.input.render(width), this.status];
|
|
553
|
+
if (this.transcript)
|
|
554
|
+
return [...this.transcript.flatMap((component) => component.render(width)), this.status];
|
|
555
|
+
if (this.transcriptRequested)
|
|
556
|
+
return [this.transcriptLoading ? "Loading transcript…" : this.status || "Transcript unavailable"];
|
|
557
|
+
if (task && this.navigation.focus.kind === "detail") {
|
|
558
|
+
return [
|
|
559
|
+
...new TaskDetail(task, {
|
|
560
|
+
...this.detailContent,
|
|
561
|
+
stdinAvailable: this.stdinAvailable(),
|
|
562
|
+
activity: this.store.recentActivity(task.ref.taskId),
|
|
563
|
+
activityOmitted: this.store.activityOmitted(task.ref.taskId),
|
|
564
|
+
}).renderContent(width),
|
|
565
|
+
this.status,
|
|
566
|
+
];
|
|
567
|
+
}
|
|
568
|
+
const sections = taskListSections(this.store.backgroundTasks);
|
|
569
|
+
if (!sections.length)
|
|
570
|
+
return new Text("No background tasks.\nBackground agents and shells will appear here.", 0, 0).render(width);
|
|
571
|
+
return sections.flatMap((section) => [
|
|
572
|
+
"",
|
|
573
|
+
theme.fg("muted", theme.bold(`${section.title} (${section.tasks.length})`)),
|
|
574
|
+
...section.tasks.flatMap((item) => {
|
|
575
|
+
const selected = item.ref.taskId === this.navigation.selectedTaskId;
|
|
576
|
+
const { label: state, color, icon } = taskStatusAppearance(item);
|
|
577
|
+
const status = width < 32 ? ` ${icon}` : ` ${icon} ${state}`;
|
|
578
|
+
const name = taskDisplayText(item.title || taskLabel(item));
|
|
579
|
+
const marker = selected ? "› " : " ";
|
|
580
|
+
const title = marker + truncateToWidth(name, Math.max(1, width - visibleWidth(status) - 3));
|
|
581
|
+
const row = `${selected ? theme.fg("accent", theme.bold(title)) : title}${" ".repeat(Math.max(1, width - visibleWidth(title) - visibleWidth(status)))}${theme.fg(color, status)}`;
|
|
582
|
+
const metadata = [
|
|
583
|
+
...(width < 32 ? [state] : []),
|
|
584
|
+
taskLabel(item),
|
|
585
|
+
taskMetricsText(item),
|
|
586
|
+
item.currentAction ? `${item.currentAction.tool} ${item.currentAction.text}` : "",
|
|
587
|
+
]
|
|
588
|
+
.filter(Boolean)
|
|
589
|
+
.join(" · ");
|
|
590
|
+
return [
|
|
591
|
+
truncateToWidth(row, width),
|
|
592
|
+
...(item.kind === "agent" ? [theme.fg("dim", truncateToWidth(` ${taskModelText(item)}`, width))] : []),
|
|
593
|
+
...(selected ? [theme.fg("dim", truncateToWidth(` ${taskDisplayText(metadata)}`, width))] : []),
|
|
594
|
+
];
|
|
595
|
+
}),
|
|
596
|
+
]);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
//# sourceMappingURL=task-inspector.js.map
|