@selesai/code 0.6.2 → 0.7.0
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 +16 -1
- package/README.md +1 -1
- package/dist/bun/cli.d.ts +0 -1
- package/dist/bun/cli.js +0 -1
- package/dist/bun/register-bedrock.d.ts +0 -1
- package/dist/bun/register-bedrock.js +0 -1
- package/dist/bun/restore-sandbox-env.d.ts +0 -1
- package/dist/bun/restore-sandbox-env.js +0 -1
- package/dist/cli/args.d.ts +0 -1
- package/dist/cli/args.js +0 -1
- package/dist/cli/config-selector.d.ts +0 -1
- package/dist/cli/config-selector.js +0 -1
- package/dist/cli/credential-print.d.ts +0 -1
- package/dist/cli/credential-print.js +0 -1
- package/dist/cli/file-processor.d.ts +0 -1
- package/dist/cli/file-processor.js +0 -1
- package/dist/cli/initial-message.d.ts +0 -1
- package/dist/cli/initial-message.js +0 -1
- package/dist/cli/list-models.d.ts +0 -1
- package/dist/cli/list-models.js +0 -1
- package/dist/cli/project-trust.d.ts +0 -1
- package/dist/cli/project-trust.js +0 -1
- package/dist/cli/session-picker.d.ts +0 -1
- package/dist/cli/session-picker.js +0 -1
- package/dist/cli/startup-ui.d.ts +0 -1
- package/dist/cli/startup-ui.js +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -1
- package/dist/config.d.ts +0 -1
- package/dist/config.js +0 -1
- package/dist/core/agent-session-auto-handoff.test.d.ts +0 -1
- package/dist/core/agent-session-auto-handoff.test.js +0 -1
- package/dist/core/agent-session-runtime.d.ts +0 -1
- package/dist/core/agent-session-runtime.js +0 -1
- package/dist/core/agent-session-services.d.ts +0 -1
- package/dist/core/agent-session-services.js +0 -1
- package/dist/core/agent-session-skill-block.test.d.ts +0 -1
- package/dist/core/agent-session-skill-block.test.js +0 -1
- package/dist/core/agent-session.d.ts +0 -1
- package/dist/core/agent-session.js +0 -1
- package/dist/core/agents.d.ts +0 -1
- package/dist/core/agents.js +0 -1
- package/dist/core/auth-guidance.d.ts +0 -1
- package/dist/core/auth-guidance.js +0 -1
- package/dist/core/auth-storage.d.ts +0 -1
- package/dist/core/auth-storage.js +0 -1
- package/dist/core/bash-executor.d.ts +0 -1
- package/dist/core/bash-executor.js +0 -1
- package/dist/core/built-in-extensions.d.ts +0 -1
- package/dist/core/built-in-extensions.js +0 -1
- package/dist/core/cache-stats.d.ts +0 -1
- package/dist/core/cache-stats.js +0 -1
- package/dist/core/compaction/branch-summarization.d.ts +0 -1
- package/dist/core/compaction/branch-summarization.js +0 -1
- package/dist/core/compaction/compaction.d.ts +0 -1
- package/dist/core/compaction/compaction.js +0 -1
- package/dist/core/compaction/index.d.ts +0 -1
- package/dist/core/compaction/index.js +0 -1
- package/dist/core/compaction/utils.d.ts +0 -1
- package/dist/core/compaction/utils.js +0 -1
- package/dist/core/defaults.d.ts +0 -1
- package/dist/core/defaults.js +0 -1
- package/dist/core/diagnostics.d.ts +0 -1
- package/dist/core/diagnostics.js +0 -1
- package/dist/core/event-bus.d.ts +0 -1
- package/dist/core/event-bus.js +0 -1
- package/dist/core/exec.d.ts +0 -1
- package/dist/core/exec.js +0 -1
- package/dist/core/experimental.d.ts +0 -1
- package/dist/core/experimental.js +0 -1
- package/dist/core/export-html/ansi-to-html.d.ts +0 -1
- package/dist/core/export-html/ansi-to-html.js +0 -1
- package/dist/core/export-html/index.d.ts +0 -1
- package/dist/core/export-html/index.js +0 -1
- package/dist/core/export-html/tool-renderer.d.ts +0 -1
- package/dist/core/export-html/tool-renderer.js +0 -1
- package/dist/core/extensions/index.d.ts +0 -1
- package/dist/core/extensions/index.js +0 -1
- package/dist/core/extensions/loader.d.ts +0 -1
- package/dist/core/extensions/loader.js +0 -1
- package/dist/core/extensions/runner.d.ts +0 -1
- package/dist/core/extensions/runner.js +0 -1
- package/dist/core/extensions/types.d.ts +0 -1
- package/dist/core/extensions/types.js +0 -1
- package/dist/core/extensions/wrapper.d.ts +0 -1
- package/dist/core/extensions/wrapper.js +0 -1
- package/dist/core/footer-data-provider.d.ts +0 -1
- package/dist/core/footer-data-provider.js +0 -1
- package/dist/core/git-command.d.ts +0 -1
- package/dist/core/git-command.js +0 -1
- package/dist/core/http-dispatcher.d.ts +0 -1
- package/dist/core/http-dispatcher.js +0 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +0 -1
- package/dist/core/keybindings.d.ts +0 -1
- package/dist/core/keybindings.js +0 -1
- package/dist/core/llama/client.d.ts +0 -1
- package/dist/core/llama/client.js +0 -1
- package/dist/core/llama/huggingface.d.ts +0 -1
- package/dist/core/llama/huggingface.js +0 -1
- package/dist/core/llama/index.d.ts +0 -1
- package/dist/core/llama/index.js +0 -1
- package/dist/core/llama/provider.d.ts +0 -1
- package/dist/core/llama/provider.js +0 -1
- package/dist/core/llama/ui.d.ts +0 -1
- package/dist/core/llama/ui.js +0 -1
- package/dist/core/messages.d.ts +0 -1
- package/dist/core/messages.js +0 -1
- package/dist/core/model-config.d.ts +0 -1
- package/dist/core/model-config.js +0 -1
- package/dist/core/model-registry.d.ts +0 -1
- package/dist/core/model-registry.js +0 -1
- package/dist/core/model-resolver.d.ts +0 -1
- package/dist/core/model-resolver.js +0 -1
- package/dist/core/model-runtime.d.ts +0 -1
- package/dist/core/model-runtime.js +0 -1
- package/dist/core/models-store.d.ts +0 -1
- package/dist/core/models-store.js +0 -1
- package/dist/core/output-guard.d.ts +0 -1
- package/dist/core/output-guard.js +0 -1
- package/dist/core/package-manager.d.ts +0 -1
- package/dist/core/package-manager.js +0 -1
- package/dist/core/package-manager.test.d.ts +0 -1
- package/dist/core/package-manager.test.js +0 -1
- package/dist/core/project-trust.d.ts +0 -1
- package/dist/core/project-trust.js +0 -1
- package/dist/core/prompt-templates.d.ts +0 -1
- package/dist/core/prompt-templates.js +0 -1
- package/dist/core/provider-attribution.d.ts +0 -1
- package/dist/core/provider-attribution.js +0 -1
- package/dist/core/provider-composer.d.ts +0 -1
- package/dist/core/provider-composer.js +0 -1
- package/dist/core/radius.d.ts +0 -1
- package/dist/core/radius.js +0 -1
- package/dist/core/remote-catalog-provider.d.ts +0 -1
- package/dist/core/remote-catalog-provider.js +0 -1
- package/dist/core/resolve-config-value.d.ts +0 -1
- package/dist/core/resolve-config-value.js +0 -1
- package/dist/core/resource-loader.d.ts +0 -1
- package/dist/core/resource-loader.js +0 -1
- package/dist/core/runtime-credentials.d.ts +0 -1
- package/dist/core/runtime-credentials.js +0 -1
- package/dist/core/sdk.d.ts +0 -1
- package/dist/core/sdk.js +0 -1
- package/dist/core/session-cwd.d.ts +0 -1
- package/dist/core/session-cwd.js +0 -1
- package/dist/core/session-manager.d.ts +0 -1
- package/dist/core/session-manager.js +0 -1
- package/dist/core/settings-manager-auto-handoff.test.d.ts +0 -1
- package/dist/core/settings-manager-auto-handoff.test.js +0 -1
- package/dist/core/settings-manager.d.ts +0 -4
- package/dist/core/settings-manager.js +0 -12
- package/dist/core/skills.d.ts +0 -1
- package/dist/core/skills.js +0 -1
- package/dist/core/slash-commands.d.ts +0 -1
- package/dist/core/slash-commands.js +0 -1
- package/dist/core/source-info.d.ts +0 -1
- package/dist/core/source-info.js +0 -1
- package/dist/core/system-prompt.d.ts +0 -1
- package/dist/core/system-prompt.js +0 -1
- package/dist/core/system-prompt.test.d.ts +0 -1
- package/dist/core/system-prompt.test.js +0 -1
- package/dist/core/telemetry.d.ts +0 -1
- package/dist/core/telemetry.js +0 -1
- package/dist/core/timings.d.ts +0 -1
- package/dist/core/timings.js +0 -1
- package/dist/core/tools/bash.d.ts +0 -1
- package/dist/core/tools/bash.js +0 -1
- package/dist/core/tools/edit-diff.d.ts +0 -1
- package/dist/core/tools/edit-diff.js +0 -1
- package/dist/core/tools/edit.d.ts +0 -1
- package/dist/core/tools/edit.js +0 -1
- package/dist/core/tools/file-mutation-queue.d.ts +0 -1
- package/dist/core/tools/file-mutation-queue.js +0 -1
- package/dist/core/tools/find.d.ts +0 -1
- package/dist/core/tools/find.js +0 -1
- package/dist/core/tools/grep.d.ts +0 -1
- package/dist/core/tools/grep.js +0 -1
- package/dist/core/tools/index.d.ts +0 -1
- package/dist/core/tools/index.js +0 -1
- package/dist/core/tools/ls.d.ts +0 -1
- package/dist/core/tools/ls.js +0 -1
- package/dist/core/tools/output-accumulator.d.ts +0 -1
- package/dist/core/tools/output-accumulator.js +0 -1
- package/dist/core/tools/path-utils.d.ts +0 -1
- package/dist/core/tools/path-utils.js +0 -1
- package/dist/core/tools/read.d.ts +0 -1
- package/dist/core/tools/read.js +0 -1
- package/dist/core/tools/render-utils.d.ts +0 -1
- package/dist/core/tools/render-utils.js +0 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts +0 -1
- package/dist/core/tools/tool-definition-wrapper.js +0 -1
- package/dist/core/tools/truncate.d.ts +0 -1
- package/dist/core/tools/truncate.js +0 -1
- package/dist/core/tools/write.d.ts +0 -1
- package/dist/core/tools/write.js +0 -1
- package/dist/core/trust-manager.d.ts +0 -1
- package/dist/core/trust-manager.js +0 -1
- package/dist/core/usage-totals.d.ts +0 -1
- package/dist/core/usage-totals.js +0 -1
- package/dist/defaults/models.json +8 -0
- package/dist/defaults/settings.json +6 -7
- package/dist/extensions/inline-skills.test.ts +13 -13
- package/dist/extensions/inline-skills.ts +6 -6
- package/dist/extensions/pi-subagents/CHANGELOG.md +89 -12
- package/dist/extensions/pi-subagents/README.md +339 -604
- package/dist/extensions/pi-subagents/package-lock.json +190 -2079
- package/dist/extensions/pi-subagents/package.json +13 -5
- package/dist/extensions/pi-subagents/prompts/parallel-context-build.md +1 -1
- package/dist/extensions/pi-subagents/prompts/parallel-handoff-plan.md +1 -1
- package/dist/extensions/pi-subagents/prompts/review-loop.md +1 -1
- package/dist/extensions/pi-subagents/skills/pi-subagents/SKILL.md +10 -10
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/constraints-and-recipes.md +32 -43
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/execution-controls.md +106 -105
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/management-authoring-rpc.md +3 -3
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/prompting-and-roles.md +28 -35
- package/dist/extensions/pi-subagents/src/agents/agent-management.ts +167 -124
- package/dist/extensions/pi-subagents/src/agents/agent-serializer.ts +19 -0
- package/dist/extensions/pi-subagents/src/agents/agents.ts +163 -75
- package/dist/extensions/pi-subagents/src/agents/chain-serializer.ts +10 -7
- package/dist/extensions/pi-subagents/src/agents/frontmatter.ts +5 -3
- package/dist/extensions/pi-subagents/src/agents/identity.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/proactive-skills.ts +14 -11
- package/dist/extensions/pi-subagents/src/agents/skills.ts +23 -6
- package/dist/extensions/pi-subagents/src/agents/task-aware-routing.ts +8 -1
- package/dist/extensions/pi-subagents/src/api/control-channel.ts +4 -0
- package/dist/extensions/pi-subagents/src/api/delegation.ts +26 -194
- package/dist/extensions/pi-subagents/src/api/external-runs.ts +129 -0
- package/dist/extensions/pi-subagents/src/api/intercom-bridge.ts +3 -0
- package/dist/extensions/pi-subagents/src/api/pi-args.ts +5 -0
- package/dist/extensions/pi-subagents/src/api/preflight.ts +4 -4
- package/dist/extensions/pi-subagents/src/api/shared-types.ts +19 -0
- package/dist/extensions/pi-subagents/src/extension/config.ts +10 -0
- package/dist/extensions/pi-subagents/src/extension/control-notices.ts +5 -39
- package/dist/extensions/pi-subagents/src/extension/doctor.ts +10 -9
- package/dist/extensions/pi-subagents/src/extension/fanout-child.ts +7 -4
- package/dist/extensions/pi-subagents/src/extension/index.ts +243 -77
- package/dist/extensions/pi-subagents/src/extension/rpc.ts +18 -6
- package/dist/extensions/pi-subagents/src/extension/schemas.ts +50 -39
- package/dist/extensions/pi-subagents/src/extension/tool-description.ts +36 -103
- package/dist/extensions/pi-subagents/src/inspectors/herdr/actions.ts +229 -0
- package/dist/extensions/pi-subagents/src/inspectors/herdr/client.ts +130 -0
- package/dist/extensions/pi-subagents/src/inspectors/herdr/inspector-runner.ts +141 -0
- package/dist/extensions/pi-subagents/src/inspectors/herdr/project-panes.ts +154 -0
- package/dist/extensions/pi-subagents/src/integrations/herdr-status.ts +330 -0
- package/dist/extensions/pi-subagents/src/intercom/intercom-bridge.ts +3 -2
- package/dist/extensions/pi-subagents/src/intercom/result-intercom.ts +5 -1
- package/dist/extensions/pi-subagents/src/missions/actions.ts +372 -0
- package/dist/extensions/pi-subagents/src/missions/lifecycle.ts +314 -0
- package/dist/extensions/pi-subagents/src/missions/store.ts +442 -0
- package/dist/extensions/pi-subagents/src/missions/types.ts +135 -0
- package/dist/extensions/pi-subagents/src/policy/authority.ts +46 -0
- package/dist/extensions/pi-subagents/src/profiles/profiles.ts +32 -6
- package/dist/extensions/pi-subagents/src/runs/background/async-execution.ts +103 -72
- package/dist/extensions/pi-subagents/src/runs/background/async-job-tracker.ts +10 -2
- package/dist/extensions/pi-subagents/src/runs/background/async-resume.ts +6 -6
- package/dist/extensions/pi-subagents/src/runs/background/async-status.ts +29 -1
- package/dist/extensions/pi-subagents/src/runs/background/auto-drain.ts +3 -3
- package/dist/extensions/pi-subagents/src/runs/background/chain-append.ts +3 -2
- package/dist/extensions/pi-subagents/src/runs/background/control-channel.ts +9 -7
- package/dist/extensions/pi-subagents/src/runs/background/fleet-view.ts +3 -4
- package/dist/extensions/pi-subagents/src/runs/background/notify.ts +3 -28
- package/dist/extensions/pi-subagents/src/runs/background/process-terminal.ts +5 -5
- package/dist/extensions/pi-subagents/src/runs/background/result-watcher.ts +18 -68
- package/dist/extensions/pi-subagents/src/runs/background/run-id-resolver.ts +3 -3
- package/dist/extensions/pi-subagents/src/runs/background/run-status.ts +35 -8
- package/dist/extensions/pi-subagents/src/runs/background/scheduled-runs.ts +602 -375
- package/dist/extensions/pi-subagents/src/runs/background/stale-run-reconciler.ts +3 -3
- package/dist/extensions/pi-subagents/src/runs/background/subagent-runner.ts +612 -464
- package/dist/extensions/pi-subagents/src/runs/background/subagent-wait.ts +50 -9
- package/dist/extensions/pi-subagents/src/runs/background/wait-subscriptions.ts +253 -0
- package/dist/extensions/pi-subagents/src/runs/background/wait-tool.ts +12 -4
- package/dist/extensions/pi-subagents/src/runs/foreground/async-steering-action.ts +3 -3
- package/dist/extensions/pi-subagents/src/runs/foreground/chain-clarify.ts +8 -4
- package/dist/extensions/pi-subagents/src/runs/foreground/chain-execution.ts +74 -102
- package/dist/extensions/pi-subagents/src/runs/foreground/execution.ts +21 -22
- package/dist/extensions/pi-subagents/src/runs/foreground/subagent-executor.ts +1050 -396
- package/dist/extensions/pi-subagents/src/runs/shared/acceptance.ts +44 -18
- package/dist/extensions/pi-subagents/src/runs/shared/capability-ceiling.ts +0 -1
- package/dist/extensions/pi-subagents/src/runs/shared/child-protocol.ts +302 -22
- package/dist/extensions/pi-subagents/src/runs/shared/dynamic-fanout.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/external-cli-runner.ts +130 -0
- package/dist/extensions/pi-subagents/src/runs/shared/long-running-guard.ts +42 -1
- package/dist/extensions/pi-subagents/src/runs/shared/model-fallback.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/nested-events.ts +59 -5
- package/dist/extensions/pi-subagents/src/runs/shared/nested-render.ts +9 -4
- package/dist/extensions/pi-subagents/src/runs/shared/parallel-handoff.ts +86 -2
- package/dist/extensions/pi-subagents/src/runs/shared/parallel-utils.ts +11 -2
- package/dist/extensions/pi-subagents/src/runs/shared/permissions.ts +95 -0
- package/dist/extensions/pi-subagents/src/runs/shared/pi-args.ts +11 -1
- package/dist/extensions/pi-subagents/src/runs/shared/pi-spawn.ts +15 -6
- package/dist/extensions/pi-subagents/src/runs/shared/run-history.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/single-output.ts +9 -63
- package/dist/extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.ts +37 -6
- package/dist/extensions/pi-subagents/src/runs/shared/subagent-startup-retry.ts +5 -2
- package/dist/extensions/pi-subagents/src/runs/shared/task-intent.ts +2 -23
- package/dist/extensions/pi-subagents/src/runs/shared/turn-budget.ts +6 -6
- package/dist/extensions/pi-subagents/src/runs/shared/worktree.ts +124 -13
- package/dist/extensions/pi-subagents/src/shared/accessible-dir.ts +29 -7
- package/dist/extensions/pi-subagents/src/shared/artifacts.ts +18 -1
- package/dist/extensions/pi-subagents/src/shared/fork-context.ts +3 -2
- package/dist/extensions/pi-subagents/src/shared/launch-contract.ts +1 -0
- package/dist/extensions/pi-subagents/src/shared/settings.ts +10 -0
- package/dist/extensions/pi-subagents/src/shared/types.ts +158 -55
- package/dist/extensions/pi-subagents/src/shared/utils.ts +16 -66
- package/dist/extensions/pi-subagents/src/slash/delegation-adapters.ts +33 -199
- package/dist/extensions/pi-subagents/src/slash/delegation-request.ts +43 -126
- package/dist/extensions/pi-subagents/src/slash/inline-subagents.ts +103 -0
- package/dist/extensions/pi-subagents/src/slash/prompt-template-bridge.ts +158 -205
- package/dist/extensions/pi-subagents/src/slash/prompt-workflows.ts +22 -58
- package/dist/extensions/pi-subagents/src/slash/slash-bridge.ts +14 -0
- package/dist/extensions/pi-subagents/src/slash/slash-commands.ts +44 -642
- package/dist/extensions/pi-subagents/src/slash/subagents-admin.ts +18 -14
- package/dist/extensions/pi-subagents/src/tui/fleet-status.ts +156 -21
- package/dist/extensions/pi-subagents/src/tui/fleet-transcript.ts +110 -5
- package/dist/extensions/pi-subagents/src/tui/fleet.ts +60 -24
- package/dist/extensions/pi-subagents/src/tui/render.ts +296 -140
- package/dist/extensions/pi-subagents/src/types/pi-runtime-compat.d.ts +14 -0
- package/dist/extensions/pi-subagents/src/watchdog/change-signature.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/lsp-diagnostics.ts +13 -7
- package/dist/extensions/pi-subagents/src/watchdog/model-selection.ts +2 -2
- package/dist/extensions/pi-subagents/src/watchdog/permission-arbiter.ts +145 -0
- package/dist/extensions/pi-subagents/src/watchdog/register-child.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/register-main.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/review.ts +4 -1
- package/dist/extensions/pi-subagents/src/watchdog/runtime.ts +3 -2
- package/dist/extensions/pi-subagents/src/workflows/chat-progress.ts +140 -0
- package/dist/extensions/pi-subagents/src/workflows/scripted-workflow.ts +415 -0
- package/dist/extensions/pi-subagents/test/e2e/real-session-subagent.test.ts +41 -144
- package/dist/extensions/pi-subagents/test/integration/acceptance-file-report.test.ts +16 -16
- package/dist/extensions/pi-subagents/test/integration/async-execution.test.ts +415 -298
- package/dist/extensions/pi-subagents/test/integration/async-job-tracker.test.ts +149 -82
- package/dist/extensions/pi-subagents/test/integration/async-status.test.ts +40 -40
- package/dist/extensions/pi-subagents/test/integration/chain-clarify.test.ts +15 -15
- package/dist/extensions/pi-subagents/test/integration/chain-execution.test.ts +193 -133
- package/dist/extensions/pi-subagents/test/integration/detect-error.test.ts +1 -49
- package/dist/extensions/pi-subagents/test/integration/external-cli-runner.test.ts +62 -0
- package/dist/extensions/pi-subagents/test/integration/fork-context-execution.test.ts +56 -58
- package/dist/extensions/pi-subagents/test/integration/intercom-result-delivery.test.ts +81 -68
- package/dist/extensions/pi-subagents/test/integration/parallel-execution.test.ts +20 -25
- package/dist/extensions/pi-subagents/test/integration/render-fork-badge.test.ts +425 -317
- package/dist/extensions/pi-subagents/test/integration/render-widget.test.ts +73 -73
- package/dist/extensions/pi-subagents/test/integration/result-watcher.test.ts +123 -98
- package/dist/extensions/pi-subagents/test/integration/single-execution.test.ts +653 -240
- package/dist/extensions/pi-subagents/test/integration/slash-commands.test.ts +20 -1661
- package/dist/extensions/pi-subagents/test/integration/slash-live-state.test.ts +9 -9
- package/dist/extensions/pi-subagents/test/integration/template-resolution.test.ts +3 -3
- package/dist/extensions/pi-subagents/test/integration/top-level-async.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/support/mock-pi-script.mjs +8 -5
- package/dist/extensions/pi-subagents/test/support/mock-pi.ts +6 -6
- package/dist/extensions/pi-subagents/test/support/real-session-runner.ts +4 -20
- package/dist/extensions/pi-subagents/test/unit/acceptance.test.ts +25 -4
- package/dist/extensions/pi-subagents/test/unit/agent-disabled.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-frontmatter.test.ts +280 -295
- package/dist/extensions/pi-subagents/test/unit/agent-management.test.ts +47 -207
- package/dist/extensions/pi-subagents/test/unit/agent-memory.test.ts +26 -26
- package/dist/extensions/pi-subagents/test/unit/agent-overrides.test.ts +89 -89
- package/dist/extensions/pi-subagents/test/unit/agent-selection.test.ts +9 -9
- package/dist/extensions/pi-subagents/test/unit/artifacts.test.ts +10 -0
- package/dist/extensions/pi-subagents/test/unit/async-execution.test.ts +33 -9
- package/dist/extensions/pi-subagents/test/unit/async-interrupt-action.test.ts +24 -2
- package/dist/extensions/pi-subagents/test/unit/async-permission-session.test.ts +11 -9
- package/dist/extensions/pi-subagents/test/unit/async-recovery-descriptor.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/unit/async-resume.test.ts +40 -40
- package/dist/extensions/pi-subagents/test/unit/authority-policy.test.ts +22 -0
- package/dist/extensions/pi-subagents/test/unit/background-work.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/capability-ceiling-agent-allowlist.test.ts +5 -39
- package/dist/extensions/pi-subagents/test/unit/chain-append.test.ts +19 -19
- package/dist/extensions/pi-subagents/test/unit/chain-root-attachment.test.ts +9 -9
- package/dist/extensions/pi-subagents/test/unit/chain-serializer.test.ts +20 -20
- package/dist/extensions/pi-subagents/test/unit/child-protocol.test.ts +99 -0
- package/dist/extensions/pi-subagents/test/unit/child-transcript.test.ts +9 -9
- package/dist/extensions/pi-subagents/test/unit/compaction-resume.test.ts +41 -0
- package/dist/extensions/pi-subagents/test/unit/completion-dedupe.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/unit/completion-guard.test.ts +35 -5
- package/dist/extensions/pi-subagents/test/unit/config-dir-runtime.test.ts +7 -0
- package/dist/extensions/pi-subagents/test/unit/control-notices.test.ts +16 -82
- package/dist/extensions/pi-subagents/test/unit/delegation-api.test.ts +162 -620
- package/dist/extensions/pi-subagents/test/unit/doctor.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/dynamic-fanout.test.ts +25 -25
- package/dist/extensions/pi-subagents/test/unit/ensure-accessible-dir.test.ts +125 -0
- package/dist/extensions/pi-subagents/test/unit/external-cli-runner.test.ts +94 -0
- package/dist/extensions/pi-subagents/test/unit/external-runs.test.ts +66 -0
- package/dist/extensions/pi-subagents/test/unit/extra-agent-dirs.test.ts +3 -3
- package/dist/extensions/pi-subagents/test/unit/fleet-status.test.ts +242 -52
- package/dist/extensions/pi-subagents/test/unit/fleet-transcript.test.ts +127 -0
- package/dist/extensions/pi-subagents/test/unit/fleet.test.ts +197 -36
- package/dist/extensions/pi-subagents/test/unit/foreground-control.test.ts +4 -4
- package/dist/extensions/pi-subagents/test/unit/herdr-inspector.test.ts +245 -0
- package/dist/extensions/pi-subagents/test/unit/herdr-status-bridge.test.ts +494 -0
- package/dist/extensions/pi-subagents/test/unit/index-child-registration.test.ts +261 -31
- package/dist/extensions/pi-subagents/test/unit/inline-subagents.test.ts +52 -0
- package/dist/extensions/pi-subagents/test/unit/intercom-bridge.test.ts +6 -6
- package/dist/extensions/pi-subagents/test/unit/mission-lifecycle.test.ts +217 -0
- package/dist/extensions/pi-subagents/test/unit/mission-store.test.ts +182 -0
- package/dist/extensions/pi-subagents/test/unit/mock-pi.test.ts +22 -0
- package/dist/extensions/pi-subagents/test/unit/model-fallback.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/native-supervisor-channel.test.ts +10 -10
- package/dist/extensions/pi-subagents/test/unit/nested-control.test.ts +20 -12
- package/dist/extensions/pi-subagents/test/unit/nested-events.test.ts +47 -5
- package/dist/extensions/pi-subagents/test/unit/notify.test.ts +49 -55
- package/dist/extensions/pi-subagents/test/unit/package-manifest.test.ts +20 -3
- package/dist/extensions/pi-subagents/test/unit/parallel-handoff.test.ts +37 -7
- package/dist/extensions/pi-subagents/test/unit/parallel-utils.test.ts +10 -10
- package/dist/extensions/pi-subagents/test/unit/path-handling.test.ts +3 -3
- package/dist/extensions/pi-subagents/test/unit/permissions.test.ts +46 -0
- package/dist/extensions/pi-subagents/test/unit/pi-args.test.ts +31 -10
- package/dist/extensions/pi-subagents/test/unit/pi-spawn.test.ts +40 -16
- package/dist/extensions/pi-subagents/test/unit/preflight.test.ts +42 -44
- package/dist/extensions/pi-subagents/test/unit/proactive-skills.test.ts +13 -13
- package/dist/extensions/pi-subagents/test/unit/process-terminal.test.ts +4 -4
- package/dist/extensions/pi-subagents/test/unit/profiles.test.ts +75 -9
- package/dist/extensions/pi-subagents/test/unit/prompt-template-bridge.test.ts +20 -84
- package/dist/extensions/pi-subagents/test/unit/prompt-workflows.test.ts +15 -16
- package/dist/extensions/pi-subagents/test/unit/render-helpers.test.ts +28 -28
- package/dist/extensions/pi-subagents/test/unit/result-intercom.test.ts +19 -12
- package/dist/extensions/pi-subagents/test/unit/rpc.test.ts +37 -21
- package/dist/extensions/pi-subagents/test/unit/run-id-resolver.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/run-status.test.ts +50 -50
- package/dist/extensions/pi-subagents/test/unit/scheduled-runs.test.ts +396 -433
- package/dist/extensions/pi-subagents/test/unit/schemas.test.ts +76 -153
- package/dist/extensions/pi-subagents/test/unit/scripted-workflow.test.ts +411 -0
- package/dist/extensions/pi-subagents/test/unit/single-output.test.ts +1 -91
- package/dist/extensions/pi-subagents/test/unit/skills-fallback.test.ts +139 -0
- package/dist/extensions/pi-subagents/test/unit/slash-bridge.test.ts +29 -0
- package/dist/extensions/pi-subagents/test/unit/stale-run-reconciler.test.ts +13 -13
- package/dist/extensions/pi-subagents/test/unit/steering-action.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/unit/steering.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/unit/subagent-control.test.ts +35 -35
- package/dist/extensions/pi-subagents/test/unit/subagent-prompt-runtime.test.ts +53 -18
- package/dist/extensions/pi-subagents/test/unit/subagent-startup-retry.test.ts +13 -1
- package/dist/extensions/pi-subagents/test/unit/subagent-wait.test.ts +44 -11
- package/dist/extensions/pi-subagents/test/unit/task-intent.test.ts +2 -26
- package/dist/extensions/pi-subagents/test/unit/tool-description.test.ts +24 -148
- package/dist/extensions/pi-subagents/test/unit/turn-budget.test.ts +11 -9
- package/dist/extensions/pi-subagents/test/unit/wait-subscriptions.test.ts +351 -0
- package/dist/extensions/pi-subagents/test/unit/watchdog-child-status.test.ts +13 -13
- package/dist/extensions/pi-subagents/test/unit/watchdog-lsp-diagnostics.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-permission-arbiter.test.ts +79 -0
- package/dist/extensions/pi-subagents/test/unit/watchdog-runtime.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-settings.test.ts +8 -8
- package/dist/extensions/pi-subagents/test/unit/widget-nested-render.test.ts +45 -9
- package/dist/extensions/pi-subagents/test/unit/workflow-chat-progress.test.ts +197 -0
- package/dist/extensions/pi-subagents/test/unit/workflow-graph.test.ts +8 -8
- package/dist/extensions/pi-subagents/test/unit/worktree.test.ts +142 -12
- package/dist/extensions/pi-subagents/tsconfig.json +15 -0
- package/dist/extensions/pi-web-agent/package.json +1 -1
- package/dist/extensions/rtk.test.ts +126 -0
- package/dist/extensions/rtk.ts +56 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -1
- package/dist/migrations.d.ts +0 -1
- package/dist/migrations.js +0 -1
- package/dist/modes/index.d.ts +0 -1
- package/dist/modes/index.js +0 -1
- package/dist/modes/interactive/components/armin.d.ts +0 -1
- package/dist/modes/interactive/components/armin.js +0 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +0 -1
- package/dist/modes/interactive/components/assistant-message.js +0 -1
- package/dist/modes/interactive/components/bash-execution.d.ts +0 -1
- package/dist/modes/interactive/components/bash-execution.js +0 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts +0 -1
- package/dist/modes/interactive/components/bordered-loader.js +0 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts +0 -1
- package/dist/modes/interactive/components/branch-summary-message.js +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +0 -1
- package/dist/modes/interactive/components/config-selector.d.ts +0 -1
- package/dist/modes/interactive/components/config-selector.js +0 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts +0 -1
- package/dist/modes/interactive/components/countdown-timer.js +0 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +0 -1
- package/dist/modes/interactive/components/custom-editor.js +0 -1
- package/dist/modes/interactive/components/custom-entry.d.ts +0 -1
- package/dist/modes/interactive/components/custom-entry.js +0 -1
- package/dist/modes/interactive/components/custom-message.d.ts +0 -1
- package/dist/modes/interactive/components/custom-message.js +0 -1
- package/dist/modes/interactive/components/daxnuts.d.ts +0 -1
- package/dist/modes/interactive/components/daxnuts.js +0 -1
- package/dist/modes/interactive/components/diff.d.ts +0 -1
- package/dist/modes/interactive/components/diff.js +0 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts +0 -1
- package/dist/modes/interactive/components/dynamic-border.js +0 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts +0 -1
- package/dist/modes/interactive/components/earendil-announcement.js +0 -1
- package/dist/modes/interactive/components/extension-editor.d.ts +0 -1
- package/dist/modes/interactive/components/extension-editor.js +0 -1
- package/dist/modes/interactive/components/extension-input.d.ts +0 -1
- package/dist/modes/interactive/components/extension-input.js +0 -1
- package/dist/modes/interactive/components/extension-selector.d.ts +0 -1
- package/dist/modes/interactive/components/extension-selector.js +0 -1
- package/dist/modes/interactive/components/first-time-setup.d.ts +0 -1
- package/dist/modes/interactive/components/first-time-setup.js +0 -1
- package/dist/modes/interactive/components/footer.d.ts +0 -1
- package/dist/modes/interactive/components/footer.js +0 -1
- package/dist/modes/interactive/components/index.d.ts +0 -1
- package/dist/modes/interactive/components/index.js +0 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts +0 -1
- package/dist/modes/interactive/components/keybinding-hints.js +0 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +0 -1
- package/dist/modes/interactive/components/login-dialog.js +0 -1
- package/dist/modes/interactive/components/model-selector.d.ts +0 -1
- package/dist/modes/interactive/components/model-selector.js +0 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +0 -1
- package/dist/modes/interactive/components/oauth-selector.js +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +0 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts +0 -1
- package/dist/modes/interactive/components/session-selector-search.js +0 -1
- package/dist/modes/interactive/components/session-selector.d.ts +0 -1
- package/dist/modes/interactive/components/session-selector.js +0 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +0 -3
- package/dist/modes/interactive/components/settings-selector.js +1 -14
- package/dist/modes/interactive/components/show-images-selector.d.ts +0 -1
- package/dist/modes/interactive/components/show-images-selector.js +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +0 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +0 -1
- package/dist/modes/interactive/components/status-indicator.js +0 -1
- package/dist/modes/interactive/components/theme-selector.d.ts +0 -1
- package/dist/modes/interactive/components/theme-selector.js +0 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts +0 -1
- package/dist/modes/interactive/components/thinking-selector.js +0 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +0 -1
- package/dist/modes/interactive/components/tool-execution.js +0 -1
- package/dist/modes/interactive/components/tree-selector.d.ts +0 -1
- package/dist/modes/interactive/components/tree-selector.js +0 -1
- package/dist/modes/interactive/components/trust-selector.d.ts +0 -1
- package/dist/modes/interactive/components/trust-selector.js +0 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts +0 -1
- package/dist/modes/interactive/components/user-message-selector.js +0 -1
- package/dist/modes/interactive/components/user-message.d.ts +0 -1
- package/dist/modes/interactive/components/user-message.js +0 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts +0 -1
- package/dist/modes/interactive/components/visual-truncate.js +0 -1
- package/dist/modes/interactive/external-editor.d.ts +0 -1
- package/dist/modes/interactive/external-editor.js +0 -1
- package/dist/modes/interactive/interactive-mode.d.ts +0 -2
- package/dist/modes/interactive/interactive-mode.js +1 -22
- package/dist/modes/interactive/model-search.d.ts +0 -1
- package/dist/modes/interactive/model-search.js +0 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts +0 -1
- package/dist/modes/interactive/theme/theme-controller.js +0 -1
- package/dist/modes/interactive/theme/theme.d.ts +0 -1
- package/dist/modes/interactive/theme/theme.js +0 -1
- package/dist/modes/print-mode.d.ts +0 -1
- package/dist/modes/print-mode.js +0 -1
- package/dist/modes/rpc/jsonl.d.ts +0 -1
- package/dist/modes/rpc/jsonl.js +0 -1
- package/dist/modes/rpc/rpc-client.d.ts +1 -2
- package/dist/modes/rpc/rpc-client.js +1 -2
- package/dist/modes/rpc/rpc-mode.d.ts +0 -1
- package/dist/modes/rpc/rpc-mode.js +0 -9
- package/dist/modes/rpc/rpc-types.d.ts +0 -1
- package/dist/modes/rpc/rpc-types.js +0 -1
- package/dist/package-manager-cli.d.ts +0 -1
- package/dist/package-manager-cli.js +0 -1
- package/dist/rpc-entry.d.ts +0 -1
- package/dist/rpc-entry.js +0 -1
- package/dist/utils/ansi.d.ts +0 -1
- package/dist/utils/ansi.js +0 -1
- package/dist/utils/changelog.d.ts +0 -1
- package/dist/utils/changelog.js +0 -1
- package/dist/utils/child-process.d.ts +0 -1
- package/dist/utils/child-process.js +0 -1
- package/dist/utils/clipboard-image.d.ts +0 -1
- package/dist/utils/clipboard-image.js +0 -1
- package/dist/utils/clipboard-native.d.ts +0 -1
- package/dist/utils/clipboard-native.js +0 -1
- package/dist/utils/clipboard.d.ts +0 -1
- package/dist/utils/clipboard.js +0 -1
- package/dist/utils/deprecation.d.ts +0 -1
- package/dist/utils/deprecation.js +0 -1
- package/dist/utils/exif-orientation.d.ts +0 -1
- package/dist/utils/exif-orientation.js +0 -1
- package/dist/utils/frontmatter.d.ts +0 -1
- package/dist/utils/frontmatter.js +0 -1
- package/dist/utils/fs-watch.d.ts +0 -1
- package/dist/utils/fs-watch.js +0 -1
- package/dist/utils/git.d.ts +0 -1
- package/dist/utils/git.js +0 -1
- package/dist/utils/html.d.ts +0 -1
- package/dist/utils/html.js +0 -1
- package/dist/utils/image-convert.d.ts +0 -1
- package/dist/utils/image-convert.js +0 -1
- package/dist/utils/image-process.d.ts +0 -1
- package/dist/utils/image-process.js +0 -1
- package/dist/utils/image-resize-core.d.ts +0 -1
- package/dist/utils/image-resize-core.js +0 -1
- package/dist/utils/image-resize-worker.d.ts +0 -1
- package/dist/utils/image-resize-worker.js +0 -1
- package/dist/utils/image-resize.d.ts +0 -1
- package/dist/utils/image-resize.js +0 -1
- package/dist/utils/json.d.ts +0 -1
- package/dist/utils/json.js +0 -1
- package/dist/utils/mime.d.ts +0 -1
- package/dist/utils/mime.js +0 -1
- package/dist/utils/open-browser.d.ts +0 -1
- package/dist/utils/open-browser.js +0 -1
- package/dist/utils/paths.d.ts +0 -1
- package/dist/utils/paths.js +0 -1
- package/dist/utils/photon.d.ts +0 -1
- package/dist/utils/photon.js +0 -1
- package/dist/utils/pi-user-agent.d.ts +0 -1
- package/dist/utils/pi-user-agent.js +0 -1
- package/dist/utils/shell.d.ts +0 -1
- package/dist/utils/shell.js +0 -1
- package/dist/utils/sleep.d.ts +0 -1
- package/dist/utils/sleep.js +0 -1
- package/dist/utils/syntax-highlight.d.ts +0 -1
- package/dist/utils/syntax-highlight.js +0 -1
- package/dist/utils/thinking-tags.d.ts +0 -1
- package/dist/utils/thinking-tags.js +0 -1
- package/dist/utils/tools-manager.d.ts +3 -3
- package/dist/utils/tools-manager.js +125 -42
- package/dist/utils/version-check.d.ts +0 -1
- package/dist/utils/version-check.js +0 -1
- package/dist/utils/windows-self-update.d.ts +0 -1
- package/dist/utils/windows-self-update.js +0 -1
- package/docs/rpc.md +1 -2
- package/docs/settings.md +0 -1
- package/docs/skills.md +10 -18
- package/package.json +4 -3
- package/dist/bun/cli.d.ts.map +0 -1
- package/dist/bun/cli.js.map +0 -1
- package/dist/bun/register-bedrock.d.ts.map +0 -1
- package/dist/bun/register-bedrock.js.map +0 -1
- package/dist/bun/restore-sandbox-env.d.ts.map +0 -1
- package/dist/bun/restore-sandbox-env.js.map +0 -1
- package/dist/cli/args.d.ts.map +0 -1
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/config-selector.d.ts.map +0 -1
- package/dist/cli/config-selector.js.map +0 -1
- package/dist/cli/credential-print.d.ts.map +0 -1
- package/dist/cli/credential-print.js.map +0 -1
- package/dist/cli/file-processor.d.ts.map +0 -1
- package/dist/cli/file-processor.js.map +0 -1
- package/dist/cli/initial-message.d.ts.map +0 -1
- package/dist/cli/initial-message.js.map +0 -1
- package/dist/cli/list-models.d.ts.map +0 -1
- package/dist/cli/list-models.js.map +0 -1
- package/dist/cli/project-trust.d.ts.map +0 -1
- package/dist/cli/project-trust.js.map +0 -1
- package/dist/cli/session-picker.d.ts.map +0 -1
- package/dist/cli/session-picker.js.map +0 -1
- package/dist/cli/startup-ui.d.ts.map +0 -1
- package/dist/cli/startup-ui.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/core/agent-session-auto-handoff.test.d.ts.map +0 -1
- package/dist/core/agent-session-auto-handoff.test.js.map +0 -1
- package/dist/core/agent-session-runtime.d.ts.map +0 -1
- package/dist/core/agent-session-runtime.js.map +0 -1
- package/dist/core/agent-session-services.d.ts.map +0 -1
- package/dist/core/agent-session-services.js.map +0 -1
- package/dist/core/agent-session-skill-block.test.d.ts.map +0 -1
- package/dist/core/agent-session-skill-block.test.js.map +0 -1
- package/dist/core/agent-session.d.ts.map +0 -1
- package/dist/core/agent-session.js.map +0 -1
- package/dist/core/agents.d.ts.map +0 -1
- package/dist/core/agents.js.map +0 -1
- package/dist/core/auth-guidance.d.ts.map +0 -1
- package/dist/core/auth-guidance.js.map +0 -1
- package/dist/core/auth-storage.d.ts.map +0 -1
- package/dist/core/auth-storage.js.map +0 -1
- package/dist/core/bash-executor.d.ts.map +0 -1
- package/dist/core/bash-executor.js.map +0 -1
- package/dist/core/built-in-extensions.d.ts.map +0 -1
- package/dist/core/built-in-extensions.js.map +0 -1
- package/dist/core/cache-stats.d.ts.map +0 -1
- package/dist/core/cache-stats.js.map +0 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +0 -1
- package/dist/core/compaction/branch-summarization.js.map +0 -1
- package/dist/core/compaction/compaction.d.ts.map +0 -1
- package/dist/core/compaction/compaction.js.map +0 -1
- package/dist/core/compaction/index.d.ts.map +0 -1
- package/dist/core/compaction/index.js.map +0 -1
- package/dist/core/compaction/utils.d.ts.map +0 -1
- package/dist/core/compaction/utils.js.map +0 -1
- package/dist/core/defaults.d.ts.map +0 -1
- package/dist/core/defaults.js.map +0 -1
- package/dist/core/diagnostics.d.ts.map +0 -1
- package/dist/core/diagnostics.js.map +0 -1
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/exec.d.ts.map +0 -1
- package/dist/core/exec.js.map +0 -1
- package/dist/core/experimental.d.ts.map +0 -1
- package/dist/core/experimental.js.map +0 -1
- package/dist/core/export-html/ansi-to-html.d.ts.map +0 -1
- package/dist/core/export-html/ansi-to-html.js.map +0 -1
- package/dist/core/export-html/index.d.ts.map +0 -1
- package/dist/core/export-html/index.js.map +0 -1
- package/dist/core/export-html/tool-renderer.d.ts.map +0 -1
- package/dist/core/export-html/tool-renderer.js.map +0 -1
- package/dist/core/extensions/index.d.ts.map +0 -1
- package/dist/core/extensions/index.js.map +0 -1
- package/dist/core/extensions/loader.d.ts.map +0 -1
- package/dist/core/extensions/loader.js.map +0 -1
- package/dist/core/extensions/runner.d.ts.map +0 -1
- package/dist/core/extensions/runner.js.map +0 -1
- package/dist/core/extensions/types.d.ts.map +0 -1
- package/dist/core/extensions/types.js.map +0 -1
- package/dist/core/extensions/wrapper.d.ts.map +0 -1
- package/dist/core/extensions/wrapper.js.map +0 -1
- package/dist/core/footer-data-provider.d.ts.map +0 -1
- package/dist/core/footer-data-provider.js.map +0 -1
- package/dist/core/git-command.d.ts.map +0 -1
- package/dist/core/git-command.js.map +0 -1
- package/dist/core/http-dispatcher.d.ts.map +0 -1
- package/dist/core/http-dispatcher.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/keybindings.d.ts.map +0 -1
- package/dist/core/keybindings.js.map +0 -1
- package/dist/core/llama/client.d.ts.map +0 -1
- package/dist/core/llama/client.js.map +0 -1
- package/dist/core/llama/huggingface.d.ts.map +0 -1
- package/dist/core/llama/huggingface.js.map +0 -1
- package/dist/core/llama/index.d.ts.map +0 -1
- package/dist/core/llama/index.js.map +0 -1
- package/dist/core/llama/provider.d.ts.map +0 -1
- package/dist/core/llama/provider.js.map +0 -1
- package/dist/core/llama/ui.d.ts.map +0 -1
- package/dist/core/llama/ui.js.map +0 -1
- package/dist/core/messages.d.ts.map +0 -1
- package/dist/core/messages.js.map +0 -1
- package/dist/core/model-config.d.ts.map +0 -1
- package/dist/core/model-config.js.map +0 -1
- package/dist/core/model-registry.d.ts.map +0 -1
- package/dist/core/model-registry.js.map +0 -1
- package/dist/core/model-resolver.d.ts.map +0 -1
- package/dist/core/model-resolver.js.map +0 -1
- package/dist/core/model-runtime.d.ts.map +0 -1
- package/dist/core/model-runtime.js.map +0 -1
- package/dist/core/models-store.d.ts.map +0 -1
- package/dist/core/models-store.js.map +0 -1
- package/dist/core/output-guard.d.ts.map +0 -1
- package/dist/core/output-guard.js.map +0 -1
- package/dist/core/package-manager.d.ts.map +0 -1
- package/dist/core/package-manager.js.map +0 -1
- package/dist/core/package-manager.test.d.ts.map +0 -1
- package/dist/core/package-manager.test.js.map +0 -1
- package/dist/core/project-trust.d.ts.map +0 -1
- package/dist/core/project-trust.js.map +0 -1
- package/dist/core/prompt-templates.d.ts.map +0 -1
- package/dist/core/prompt-templates.js.map +0 -1
- package/dist/core/provider-attribution.d.ts.map +0 -1
- package/dist/core/provider-attribution.js.map +0 -1
- package/dist/core/provider-composer.d.ts.map +0 -1
- package/dist/core/provider-composer.js.map +0 -1
- package/dist/core/radius.d.ts.map +0 -1
- package/dist/core/radius.js.map +0 -1
- package/dist/core/remote-catalog-provider.d.ts.map +0 -1
- package/dist/core/remote-catalog-provider.js.map +0 -1
- package/dist/core/resolve-config-value.d.ts.map +0 -1
- package/dist/core/resolve-config-value.js.map +0 -1
- package/dist/core/resource-loader.d.ts.map +0 -1
- package/dist/core/resource-loader.js.map +0 -1
- package/dist/core/runtime-credentials.d.ts.map +0 -1
- package/dist/core/runtime-credentials.js.map +0 -1
- package/dist/core/sdk.d.ts.map +0 -1
- package/dist/core/sdk.js.map +0 -1
- package/dist/core/session-cwd.d.ts.map +0 -1
- package/dist/core/session-cwd.js.map +0 -1
- package/dist/core/session-manager.d.ts.map +0 -1
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/settings-manager-auto-handoff.test.d.ts.map +0 -1
- package/dist/core/settings-manager-auto-handoff.test.js.map +0 -1
- package/dist/core/settings-manager.d.ts.map +0 -1
- package/dist/core/settings-manager.js.map +0 -1
- package/dist/core/skills.d.ts.map +0 -1
- package/dist/core/skills.js.map +0 -1
- package/dist/core/slash-commands.d.ts.map +0 -1
- package/dist/core/slash-commands.js.map +0 -1
- package/dist/core/source-info.d.ts.map +0 -1
- package/dist/core/source-info.js.map +0 -1
- package/dist/core/system-prompt.d.ts.map +0 -1
- package/dist/core/system-prompt.js.map +0 -1
- package/dist/core/system-prompt.test.d.ts.map +0 -1
- package/dist/core/system-prompt.test.js.map +0 -1
- package/dist/core/telemetry.d.ts.map +0 -1
- package/dist/core/telemetry.js.map +0 -1
- package/dist/core/timings.d.ts.map +0 -1
- package/dist/core/timings.js.map +0 -1
- package/dist/core/tools/bash.d.ts.map +0 -1
- package/dist/core/tools/bash.js.map +0 -1
- package/dist/core/tools/edit-diff.d.ts.map +0 -1
- package/dist/core/tools/edit-diff.js.map +0 -1
- package/dist/core/tools/edit.d.ts.map +0 -1
- package/dist/core/tools/edit.js.map +0 -1
- package/dist/core/tools/file-mutation-queue.d.ts.map +0 -1
- package/dist/core/tools/file-mutation-queue.js.map +0 -1
- package/dist/core/tools/find.d.ts.map +0 -1
- package/dist/core/tools/find.js.map +0 -1
- package/dist/core/tools/grep.d.ts.map +0 -1
- package/dist/core/tools/grep.js.map +0 -1
- package/dist/core/tools/index.d.ts.map +0 -1
- package/dist/core/tools/index.js.map +0 -1
- package/dist/core/tools/ls.d.ts.map +0 -1
- package/dist/core/tools/ls.js.map +0 -1
- package/dist/core/tools/output-accumulator.d.ts.map +0 -1
- package/dist/core/tools/output-accumulator.js.map +0 -1
- package/dist/core/tools/path-utils.d.ts.map +0 -1
- package/dist/core/tools/path-utils.js.map +0 -1
- package/dist/core/tools/read.d.ts.map +0 -1
- package/dist/core/tools/read.js.map +0 -1
- package/dist/core/tools/render-utils.d.ts.map +0 -1
- package/dist/core/tools/render-utils.js.map +0 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +0 -1
- package/dist/core/tools/tool-definition-wrapper.js.map +0 -1
- package/dist/core/tools/truncate.d.ts.map +0 -1
- package/dist/core/tools/truncate.js.map +0 -1
- package/dist/core/tools/write.d.ts.map +0 -1
- package/dist/core/tools/write.js.map +0 -1
- package/dist/core/trust-manager.d.ts.map +0 -1
- package/dist/core/trust-manager.js.map +0 -1
- package/dist/core/usage-totals.d.ts.map +0 -1
- package/dist/core/usage-totals.js.map +0 -1
- package/dist/extensions/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/dist/extensions/pi-subagents/test/unit/slash-chain-groups.test.ts +0 -464
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js.map +0 -1
- package/dist/modes/index.d.ts.map +0 -1
- package/dist/modes/index.js.map +0 -1
- package/dist/modes/interactive/components/armin.d.ts.map +0 -1
- package/dist/modes/interactive/components/armin.js.map +0 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/assistant-message.js.map +0 -1
- package/dist/modes/interactive/components/bash-execution.d.ts.map +0 -1
- package/dist/modes/interactive/components/bash-execution.js.map +0 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +0 -1
- package/dist/modes/interactive/components/bordered-loader.js.map +0 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/branch-summary-message.js.map +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.js.map +0 -1
- package/dist/modes/interactive/components/config-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/config-selector.js.map +0 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +0 -1
- package/dist/modes/interactive/components/countdown-timer.js.map +0 -1
- package/dist/modes/interactive/components/custom-editor.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-editor.js.map +0 -1
- package/dist/modes/interactive/components/custom-entry.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-entry.js.map +0 -1
- package/dist/modes/interactive/components/custom-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-message.js.map +0 -1
- package/dist/modes/interactive/components/daxnuts.d.ts.map +0 -1
- package/dist/modes/interactive/components/daxnuts.js.map +0 -1
- package/dist/modes/interactive/components/diff.d.ts.map +0 -1
- package/dist/modes/interactive/components/diff.js.map +0 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +0 -1
- package/dist/modes/interactive/components/dynamic-border.js.map +0 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +0 -1
- package/dist/modes/interactive/components/earendil-announcement.js.map +0 -1
- package/dist/modes/interactive/components/extension-editor.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-editor.js.map +0 -1
- package/dist/modes/interactive/components/extension-input.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-input.js.map +0 -1
- package/dist/modes/interactive/components/extension-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-selector.js.map +0 -1
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +0 -1
- package/dist/modes/interactive/components/first-time-setup.js.map +0 -1
- package/dist/modes/interactive/components/footer.d.ts.map +0 -1
- package/dist/modes/interactive/components/footer.js.map +0 -1
- package/dist/modes/interactive/components/index.d.ts.map +0 -1
- package/dist/modes/interactive/components/index.js.map +0 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +0 -1
- package/dist/modes/interactive/components/keybinding-hints.js.map +0 -1
- package/dist/modes/interactive/components/login-dialog.d.ts.map +0 -1
- package/dist/modes/interactive/components/login-dialog.js.map +0 -1
- package/dist/modes/interactive/components/model-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/model-selector.js.map +0 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/oauth-selector.js.map +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +0 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +0 -1
- package/dist/modes/interactive/components/session-selector-search.js.map +0 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/session-selector.js.map +0 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/settings-selector.js.map +0 -1
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/show-images-selector.js.map +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.js.map +0 -1
- package/dist/modes/interactive/components/status-indicator.d.ts.map +0 -1
- package/dist/modes/interactive/components/status-indicator.js.map +0 -1
- package/dist/modes/interactive/components/theme-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/theme-selector.js.map +0 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/thinking-selector.js.map +0 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +0 -1
- package/dist/modes/interactive/components/tool-execution.js.map +0 -1
- package/dist/modes/interactive/components/tree-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/tree-selector.js.map +0 -1
- package/dist/modes/interactive/components/trust-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/trust-selector.js.map +0 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/user-message-selector.js.map +0 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/user-message.js.map +0 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +0 -1
- package/dist/modes/interactive/components/visual-truncate.js.map +0 -1
- package/dist/modes/interactive/external-editor.d.ts.map +0 -1
- package/dist/modes/interactive/external-editor.js.map +0 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +0 -1
- package/dist/modes/interactive/interactive-mode.js.map +0 -1
- package/dist/modes/interactive/model-search.d.ts.map +0 -1
- package/dist/modes/interactive/model-search.js.map +0 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme-controller.js.map +0 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme.js.map +0 -1
- package/dist/modes/print-mode.d.ts.map +0 -1
- package/dist/modes/print-mode.js.map +0 -1
- package/dist/modes/rpc/jsonl.d.ts.map +0 -1
- package/dist/modes/rpc/jsonl.js.map +0 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-client.js.map +0 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-mode.js.map +0 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-types.js.map +0 -1
- package/dist/package-manager-cli.d.ts.map +0 -1
- package/dist/package-manager-cli.js.map +0 -1
- package/dist/rpc-entry.d.ts.map +0 -1
- package/dist/rpc-entry.js.map +0 -1
- package/dist/utils/ansi.d.ts.map +0 -1
- package/dist/utils/ansi.js.map +0 -1
- package/dist/utils/changelog.d.ts.map +0 -1
- package/dist/utils/changelog.js.map +0 -1
- package/dist/utils/child-process.d.ts.map +0 -1
- package/dist/utils/child-process.js.map +0 -1
- package/dist/utils/clipboard-image.d.ts.map +0 -1
- package/dist/utils/clipboard-image.js.map +0 -1
- package/dist/utils/clipboard-native.d.ts.map +0 -1
- package/dist/utils/clipboard-native.js.map +0 -1
- package/dist/utils/clipboard.d.ts.map +0 -1
- package/dist/utils/clipboard.js.map +0 -1
- package/dist/utils/deprecation.d.ts.map +0 -1
- package/dist/utils/deprecation.js.map +0 -1
- package/dist/utils/exif-orientation.d.ts.map +0 -1
- package/dist/utils/exif-orientation.js.map +0 -1
- package/dist/utils/frontmatter.d.ts.map +0 -1
- package/dist/utils/frontmatter.js.map +0 -1
- package/dist/utils/fs-watch.d.ts.map +0 -1
- package/dist/utils/fs-watch.js.map +0 -1
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/html.d.ts.map +0 -1
- package/dist/utils/html.js.map +0 -1
- package/dist/utils/image-convert.d.ts.map +0 -1
- package/dist/utils/image-convert.js.map +0 -1
- package/dist/utils/image-process.d.ts.map +0 -1
- package/dist/utils/image-process.js.map +0 -1
- package/dist/utils/image-resize-core.d.ts.map +0 -1
- package/dist/utils/image-resize-core.js.map +0 -1
- package/dist/utils/image-resize-worker.d.ts.map +0 -1
- package/dist/utils/image-resize-worker.js.map +0 -1
- package/dist/utils/image-resize.d.ts.map +0 -1
- package/dist/utils/image-resize.js.map +0 -1
- package/dist/utils/json.d.ts.map +0 -1
- package/dist/utils/json.js.map +0 -1
- package/dist/utils/mime.d.ts.map +0 -1
- package/dist/utils/mime.js.map +0 -1
- package/dist/utils/open-browser.d.ts.map +0 -1
- package/dist/utils/open-browser.js.map +0 -1
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/photon.d.ts.map +0 -1
- package/dist/utils/photon.js.map +0 -1
- package/dist/utils/pi-user-agent.d.ts.map +0 -1
- package/dist/utils/pi-user-agent.js.map +0 -1
- package/dist/utils/shell.d.ts.map +0 -1
- package/dist/utils/shell.js.map +0 -1
- package/dist/utils/sleep.d.ts.map +0 -1
- package/dist/utils/sleep.js.map +0 -1
- package/dist/utils/syntax-highlight.d.ts.map +0 -1
- package/dist/utils/syntax-highlight.js.map +0 -1
- package/dist/utils/thinking-tags.d.ts.map +0 -1
- package/dist/utils/thinking-tags.js.map +0 -1
- package/dist/utils/tools-manager.d.ts.map +0 -1
- package/dist/utils/tools-manager.js.map +0 -1
- package/dist/utils/version-check.d.ts.map +0 -1
- package/dist/utils/version-check.js.map +0 -1
- package/dist/utils/windows-self-update.d.ts.map +0 -1
- package/dist/utils/windows-self-update.js.map +0 -1
|
@@ -21,15 +21,15 @@ describe("result intercom formatter", () => {
|
|
|
21
21
|
chainSteps: 4,
|
|
22
22
|
children: [
|
|
23
23
|
{
|
|
24
|
-
agent: "
|
|
24
|
+
agent: "commentator-a",
|
|
25
25
|
status: "completed",
|
|
26
26
|
summary: "Completed checks",
|
|
27
27
|
artifactPath: "/tmp/a.md",
|
|
28
28
|
sessionPath: "/tmp/a-session.jsonl",
|
|
29
|
-
intercomTarget: "subagent-
|
|
29
|
+
intercomTarget: "subagent-commentator-a-run-123-1",
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
agent: "
|
|
32
|
+
agent: "commentator-b",
|
|
33
33
|
status: "failed",
|
|
34
34
|
summary: "Failed checks",
|
|
35
35
|
artifactPath: "/tmp/b.md",
|
|
@@ -48,9 +48,9 @@ describe("result intercom formatter", () => {
|
|
|
48
48
|
assert.match(payload.message, /Outputs: 2 unknown \(semantic adequacy unassessed\)/);
|
|
49
49
|
assert.match(payload.message, /Chain steps: 4/);
|
|
50
50
|
assert.match(payload.message, /Intercom targets below identify child sessions used while they were running/);
|
|
51
|
-
assert.match(payload.message, /1\.
|
|
52
|
-
assert.match(payload.message, /Run intercom target: subagent-
|
|
53
|
-
assert.match(payload.message, /2\.
|
|
51
|
+
assert.match(payload.message, /1\. commentator-a — process completed · output unknown/);
|
|
52
|
+
assert.match(payload.message, /Run intercom target: subagent-commentator-a-run-123-1/);
|
|
53
|
+
assert.match(payload.message, /2\. commentator-b — process failed · output unknown/);
|
|
54
54
|
assert.match(payload.message, /Output artifact: \/tmp\/a\.md/);
|
|
55
55
|
assert.match(payload.message, /Session: \/tmp\/a-session\.jsonl/);
|
|
56
56
|
});
|
|
@@ -66,7 +66,7 @@ describe("result intercom formatter", () => {
|
|
|
66
66
|
mode: "single",
|
|
67
67
|
source: "async",
|
|
68
68
|
asyncId: "run-single",
|
|
69
|
-
children: [{ agent: "
|
|
69
|
+
children: [{ agent: "builder", status: "completed", summary: "done", sessionPath }],
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
assert.match(payload.message, /Revive: subagent\(\{ action: "resume", id: "run-single", message: "\.\.\." \}\)/);
|
|
@@ -109,7 +109,7 @@ describe("result intercom formatter", () => {
|
|
|
109
109
|
mode: "single",
|
|
110
110
|
source: "async",
|
|
111
111
|
asyncId: "run-missing-session",
|
|
112
|
-
children: [{ agent: "
|
|
112
|
+
children: [{ agent: "builder", status: "failed", summary: "failed", sessionPath: path.join(os.tmpdir(), "missing-pi-session.jsonl") }],
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
assert.match(payload.message, /Resume: unavailable; no child session file was persisted/);
|
|
@@ -132,8 +132,11 @@ describe("result intercom formatter", () => {
|
|
|
132
132
|
depth: 1,
|
|
133
133
|
path: [{ runId: "root-run", stepIndex: 1 }],
|
|
134
134
|
state: "complete",
|
|
135
|
-
agent: "
|
|
135
|
+
agent: "commentator",
|
|
136
|
+
model: "provider/gpt-5.6-luna:medium",
|
|
137
|
+
thinking: "medium",
|
|
136
138
|
sessionFile: path.join(os.tmpdir(), "nested-a.jsonl"),
|
|
139
|
+
steps: [{ agent: "leaf", status: "complete", model: "provider/leaf", thinking: "low" }],
|
|
137
140
|
controlInbox: "/tmp/should-not-leak",
|
|
138
141
|
capabilityToken: "secret-token",
|
|
139
142
|
children: [{
|
|
@@ -153,13 +156,17 @@ describe("result intercom formatter", () => {
|
|
|
153
156
|
const grandchild = nested?.children?.[0];
|
|
154
157
|
assert.equal(payload.children[0]?.children, undefined);
|
|
155
158
|
assert.equal(nested?.id, "nested-a");
|
|
159
|
+
assert.equal(nested?.model, "provider/gpt-5.6-luna:medium");
|
|
160
|
+
assert.equal(nested?.thinking, "medium");
|
|
161
|
+
assert.equal(nested?.steps?.[0]?.model, "provider/leaf");
|
|
162
|
+
assert.equal(nested?.steps?.[0]?.thinking, "low");
|
|
156
163
|
assert.equal(Object.hasOwn(nested ?? {}, "controlInbox"), false);
|
|
157
164
|
assert.equal(Object.hasOwn(nested ?? {}, "capabilityToken"), false);
|
|
158
165
|
assert.equal(grandchild?.id, "nested-grandchild");
|
|
159
166
|
assert.equal(Object.hasOwn(grandchild ?? {}, "controlInbox"), false);
|
|
160
167
|
assert.equal(Object.hasOwn(grandchild ?? {}, "capabilityToken"), false);
|
|
161
168
|
assert.match(payload.message, /Nested subagents:/);
|
|
162
|
-
assert.match(payload.message, /↳
|
|
169
|
+
assert.match(payload.message, /↳ commentator — complete \[nested-a\]/);
|
|
163
170
|
});
|
|
164
171
|
|
|
165
172
|
it("separates process failure from output presence and gives salvage guidance", () => {
|
|
@@ -190,7 +197,7 @@ describe("result intercom formatter", () => {
|
|
|
190
197
|
runId: "run-bound",
|
|
191
198
|
mode: "single",
|
|
192
199
|
source: "foreground",
|
|
193
|
-
children: [{ agent: "
|
|
200
|
+
children: [{ agent: "builder", status: "completed", summary: longSummary }],
|
|
194
201
|
});
|
|
195
202
|
assert.equal(payload.children[0]!.summary, longSummary);
|
|
196
203
|
assert.match(payload.message, new RegExp(`${"x".repeat(2000)}\\n${"y".repeat(2000)}`));
|
|
@@ -225,7 +232,7 @@ describe("result intercom formatter", () => {
|
|
|
225
232
|
const stripped = stripDetailsOutputsForIntercomReceipt({
|
|
226
233
|
mode: "single",
|
|
227
234
|
results: [{
|
|
228
|
-
agent: "
|
|
235
|
+
agent: "builder",
|
|
229
236
|
task: "Task",
|
|
230
237
|
exitCode: 0,
|
|
231
238
|
messages: [{ role: "assistant", content: [{ type: "text", text: "full" }] } as never],
|
|
@@ -160,7 +160,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
160
160
|
asyncJobs: new Map([["async-private-id", {
|
|
161
161
|
asyncId: "async-private-id", sessionId: "/sessions/parent.jsonl", status: "running", mode: "single",
|
|
162
162
|
description: ["Review", "\u001b]8;;hostile\u0007", "the diff"].join("\n"),
|
|
163
|
-
startedAt: 100, steps: [{ agent: "
|
|
163
|
+
startedAt: 100, steps: [{ agent: "commentator", label: "opaque label", status: "running", startedAt: 120, model: "anthropic/claude-opus-4-8:high", thinking: "high", tokens: { input: 12, output: 34, total: 46 } }],
|
|
164
164
|
}]]),
|
|
165
165
|
} as any;
|
|
166
166
|
const bridge = registerSubagentRpcBridge({
|
|
@@ -173,7 +173,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
173
173
|
assert.equal((fleet as { totalActive?: number }).totalActive, 1);
|
|
174
174
|
assert.equal((fleet as { omitted?: number }).omitted, 0);
|
|
175
175
|
assert.deepEqual(fleet.entries[0], {
|
|
176
|
-
key: "fleet-1", agent: "
|
|
176
|
+
key: "fleet-1", agent: "commentator", role: "opaque label", model: "anthropic/claude-opus-4-8:high", effort: "high",
|
|
177
177
|
startedAt: 120, tokens: { input: 12, output: 34, total: 46 }, goal: "Review the diff",
|
|
178
178
|
});
|
|
179
179
|
assert.equal(JSON.stringify(fleet).includes("async-private-id"), false);
|
|
@@ -191,7 +191,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
191
191
|
startedAt: 90,
|
|
192
192
|
activeChildren: new Map([[0, {
|
|
193
193
|
index: 0,
|
|
194
|
-
agent: "
|
|
194
|
+
agent: "builder",
|
|
195
195
|
description: "Implement the fix",
|
|
196
196
|
startedAt: 100,
|
|
197
197
|
updatedAt: 110,
|
|
@@ -209,7 +209,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
209
209
|
sessionId: "old-session",
|
|
210
210
|
mode: "single",
|
|
211
211
|
startedAt: 50,
|
|
212
|
-
currentAgent: "
|
|
212
|
+
currentAgent: "commentator",
|
|
213
213
|
description: "Old work",
|
|
214
214
|
});
|
|
215
215
|
const bridge = registerSubagentRpcBridge({
|
|
@@ -225,7 +225,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
225
225
|
omitted: 0,
|
|
226
226
|
entries: [{
|
|
227
227
|
key: "fleet-1",
|
|
228
|
-
agent: "
|
|
228
|
+
agent: "builder",
|
|
229
229
|
model: "openai/gpt-5.6-terra:high",
|
|
230
230
|
effort: "high",
|
|
231
231
|
startedAt: 100,
|
|
@@ -269,7 +269,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
269
269
|
status: "running",
|
|
270
270
|
mode: "single",
|
|
271
271
|
startedAt: index + 1,
|
|
272
|
-
agents: [`
|
|
272
|
+
agents: [`builder-${index}`],
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
jobs.set("unattributed", { asyncId: "unattributed", status: "running", mode: "single", startedAt: 20, agents: ["hidden"] });
|
|
@@ -300,16 +300,16 @@ describe("subagent extension RPC bridge", () => {
|
|
|
300
300
|
execute: async (_id, params) => {
|
|
301
301
|
executedParams = params;
|
|
302
302
|
return {
|
|
303
|
-
content: [{ type: "text", text: "Async:
|
|
303
|
+
content: [{ type: "text", text: "Async: builder [run-1]" }],
|
|
304
304
|
details: { mode: "single", results: [], asyncId: "run-1", asyncDir: "/tmp/run-1" },
|
|
305
305
|
} as any;
|
|
306
306
|
},
|
|
307
307
|
});
|
|
308
308
|
|
|
309
|
-
const reply = await request(events, "spawn-1", "spawn", { agent: "
|
|
309
|
+
const reply = await request(events, "spawn-1", "spawn", { agent: "builder", task: "Do work" });
|
|
310
310
|
|
|
311
311
|
assert.equal(reply.success, true);
|
|
312
|
-
assert.equal(executedParams.agent, "
|
|
312
|
+
assert.equal(executedParams.agent, "builder");
|
|
313
313
|
assert.equal(executedParams.task, "Do work");
|
|
314
314
|
assert.equal(executedParams.async, true);
|
|
315
315
|
assert.equal(executedParams.clarify, false);
|
|
@@ -318,7 +318,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
318
318
|
bridge.dispose();
|
|
319
319
|
});
|
|
320
320
|
|
|
321
|
-
it("
|
|
321
|
+
it("allows direct managed worktree spawn requests", async () => {
|
|
322
322
|
const events = new FakeEvents();
|
|
323
323
|
let executedParams: any;
|
|
324
324
|
const bridge = registerSubagentRpcBridge({
|
|
@@ -326,20 +326,36 @@ describe("subagent extension RPC bridge", () => {
|
|
|
326
326
|
getContext: () => ctx(),
|
|
327
327
|
execute: async (_id, params) => {
|
|
328
328
|
executedParams = params;
|
|
329
|
-
return {
|
|
330
|
-
content: [{ type: "text", text: "Async: worker [run-1]" }],
|
|
331
|
-
details: { mode: "chain", results: [], asyncId: "run-1", asyncDir: "/tmp/run-1" },
|
|
332
|
-
} as any;
|
|
329
|
+
return { content: [{ type: "text", text: "Async: builder [run-1]" }], details: { mode: "single", results: [] } } as any;
|
|
333
330
|
},
|
|
334
331
|
});
|
|
335
332
|
|
|
336
|
-
const reply = await request(events, "spawn-
|
|
337
|
-
chain: [{ parallel: [{ agent: "worker", extensionField: true }] }],
|
|
338
|
-
});
|
|
333
|
+
const reply = await request(events, "spawn-worktree", "spawn", { agent: "builder", task: "Do work", worktree: true });
|
|
339
334
|
|
|
340
335
|
assert.equal(reply.success, true);
|
|
341
|
-
assert.equal(executedParams.
|
|
336
|
+
assert.equal(executedParams.worktree, true);
|
|
337
|
+
assert.equal(executedParams.async, true);
|
|
338
|
+
bridge.dispose();
|
|
339
|
+
});
|
|
342
340
|
|
|
341
|
+
it("rejects removed top-level chain and parallel spawn inputs", async () => {
|
|
342
|
+
const events = new FakeEvents();
|
|
343
|
+
let executeCalls = 0;
|
|
344
|
+
const bridge = registerSubagentRpcBridge({
|
|
345
|
+
events,
|
|
346
|
+
getContext: () => ctx(),
|
|
347
|
+
execute: async () => { executeCalls++; throw new Error("unreachable"); },
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
const chainReply = await request(events, "spawn-chain", "spawn", { chain: [{ agent: "builder" }] });
|
|
351
|
+
const parallelReply = await request(events, "spawn-parallel", "spawn", { tasks: [{ agent: "builder", task: "work" }] });
|
|
352
|
+
const worktreeReply = await request(events, "spawn-worktree", "spawn", { worktree: true });
|
|
353
|
+
|
|
354
|
+
assert.equal(chainReply.success, false);
|
|
355
|
+
assert.equal(parallelReply.success, false);
|
|
356
|
+
assert.equal(worktreeReply.success, false);
|
|
357
|
+
assert.match((chainReply as { error?: { message?: string } }).error?.message ?? "", /workflowScript/);
|
|
358
|
+
assert.equal(executeCalls, 0);
|
|
343
359
|
bridge.dispose();
|
|
344
360
|
});
|
|
345
361
|
|
|
@@ -355,7 +371,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
355
371
|
},
|
|
356
372
|
});
|
|
357
373
|
|
|
358
|
-
const foreground = await request(events, "spawn-foreground", "spawn", { agent: "
|
|
374
|
+
const foreground = await request(events, "spawn-foreground", "spawn", { agent: "builder", task: "Do work", async: false });
|
|
359
375
|
const management = await request(events, "spawn-management", "spawn", { action: "list" });
|
|
360
376
|
|
|
361
377
|
assert.equal(foreground.success, false);
|
|
@@ -553,7 +569,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
553
569
|
pid: 4242,
|
|
554
570
|
startedAt: 100,
|
|
555
571
|
lastUpdate: 100,
|
|
556
|
-
steps: [{ agent: "
|
|
572
|
+
steps: [{ agent: "builder", status: "running", startedAt: 100 }],
|
|
557
573
|
}, null, 2), "utf-8");
|
|
558
574
|
const bridge = registerSubagentRpcBridge({
|
|
559
575
|
events,
|
|
@@ -595,7 +611,7 @@ describe("subagent extension RPC bridge", () => {
|
|
|
595
611
|
pid: 4242,
|
|
596
612
|
startedAt: 100,
|
|
597
613
|
lastUpdate: 100,
|
|
598
|
-
steps: [{ agent: "
|
|
614
|
+
steps: [{ agent: "builder", status: "running", startedAt: 100 }],
|
|
599
615
|
}, null, 2), "utf-8");
|
|
600
616
|
const bridge = registerSubagentRpcBridge({
|
|
601
617
|
events,
|
|
@@ -45,7 +45,7 @@ function writeNestedChild(route: ReturnType<typeof createNestedRoute>, parentRun
|
|
|
45
45
|
ts: 100,
|
|
46
46
|
parentRunId,
|
|
47
47
|
...(parentStepIndex !== undefined ? { parentStepIndex } : {}),
|
|
48
|
-
child: { id, parentRunId, ...(parentStepIndex !== undefined ? { parentStepIndex } : {}), depth: 1, path: [{ runId: parentRunId, ...(parentStepIndex !== undefined ? { stepIndex: parentStepIndex } : {}) }], state: "running", agent: "
|
|
48
|
+
child: { id, parentRunId, ...(parentStepIndex !== undefined ? { parentStepIndex } : {}), depth: 1, path: [{ runId: parentRunId, ...(parentStepIndex !== undefined ? { stepIndex: parentStepIndex } : {}) }], state: "running", agent: "builder" },
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -37,7 +37,7 @@ describe("async run status inspection", () => {
|
|
|
37
37
|
lastUpdate: 100,
|
|
38
38
|
currentStep: 0,
|
|
39
39
|
sessionFile,
|
|
40
|
-
steps: [{ agent: "
|
|
40
|
+
steps: [{ agent: "explorer", status: "running", startedAt: 100, sessionFile }],
|
|
41
41
|
}, null, 2), "utf-8");
|
|
42
42
|
|
|
43
43
|
const result = inspectSubagentStatus({ id: "run-stale" }, {
|
|
@@ -52,7 +52,7 @@ describe("async run status inspection", () => {
|
|
|
52
52
|
assert.match(text, /State: failed/);
|
|
53
53
|
assert.match(text, /Diagnosis: Async runner process 12345 exited or disappeared/);
|
|
54
54
|
assert.match(text, new RegExp(`Result: ${path.join(resultsDir, "run-stale.json").replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`));
|
|
55
|
-
assert.match(text, /Step 1:
|
|
55
|
+
assert.match(text, /Step 1: explorer failed, error: Async runner process 12345 exited or disappeared/);
|
|
56
56
|
assert.match(text, /Revive: subagent\(\{ action: "resume", id: "run-stale", message: "\.\.\." \}\)/);
|
|
57
57
|
const resultJson = JSON.parse(fs.readFileSync(path.join(resultsDir, "run-stale.json"), "utf-8"));
|
|
58
58
|
assert.equal(resultJson.success, false);
|
|
@@ -71,8 +71,8 @@ describe("async run status inspection", () => {
|
|
|
71
71
|
const runOutputPath = path.join(asyncDir, "combined-output.log");
|
|
72
72
|
const firstStepOutputPath = path.join(asyncDir, "output-0.log");
|
|
73
73
|
const secondStepOutputPath = path.join(asyncDir, "output-1.log");
|
|
74
|
-
fs.writeFileSync(firstStepOutputPath, "
|
|
75
|
-
fs.writeFileSync(secondStepOutputPath, "
|
|
74
|
+
fs.writeFileSync(firstStepOutputPath, "commentator one", "utf-8");
|
|
75
|
+
fs.writeFileSync(secondStepOutputPath, "commentator two", "utf-8");
|
|
76
76
|
fs.writeFileSync(path.join(asyncDir, "status.json"), JSON.stringify({
|
|
77
77
|
runId: "run-parallel",
|
|
78
78
|
mode: "parallel",
|
|
@@ -86,9 +86,9 @@ describe("async run status inspection", () => {
|
|
|
86
86
|
chainStepCount: 1,
|
|
87
87
|
parallelGroups: [{ start: 0, count: 3, stepIndex: 0 }],
|
|
88
88
|
steps: [
|
|
89
|
-
{ agent: "
|
|
90
|
-
{ agent: "
|
|
91
|
-
{ agent: "
|
|
89
|
+
{ agent: "commentator", status: "running", startedAt: 100, model: "openai-codex/gpt-5.5:high" },
|
|
90
|
+
{ agent: "commentator", status: "running", startedAt: 100, model: "anthropic/claude-haiku-4-5", thinking: "low" },
|
|
91
|
+
{ agent: "commentator", status: "pending" },
|
|
92
92
|
],
|
|
93
93
|
}, null, 2), "utf-8");
|
|
94
94
|
|
|
@@ -104,13 +104,13 @@ describe("async run status inspection", () => {
|
|
|
104
104
|
assert.match(text, /Error: top-level async status error/);
|
|
105
105
|
assert.match(text, /Progress: 2 agents running · 0\/3 done/);
|
|
106
106
|
assert.match(text, new RegExp(`Output: ${runOutputPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`));
|
|
107
|
-
assert.match(text, /Agent 1\/3:
|
|
108
|
-
assert.match(text, /Agent 2\/3:
|
|
109
|
-
assert.match(text, /Agent 3\/3:
|
|
107
|
+
assert.match(text, /Agent 1\/3: commentator running \(gpt-5\.5 · thinking high\)/);
|
|
108
|
+
assert.match(text, /Agent 2\/3: commentator running \(claude-haiku-4-5 · thinking low\)/);
|
|
109
|
+
assert.match(text, /Agent 3\/3: commentator pending/);
|
|
110
110
|
assert.doesNotMatch(text, /openai-codex\/gpt-5\.5/);
|
|
111
111
|
assert.match(text, new RegExp(` Output: ${firstStepOutputPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`));
|
|
112
112
|
assert.match(text, new RegExp(` Output: ${secondStepOutputPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`));
|
|
113
|
-
assert.doesNotMatch(text, /Step 1:
|
|
113
|
+
assert.doesNotMatch(text, /Step 1: commentator/);
|
|
114
114
|
} finally {
|
|
115
115
|
fs.rmSync(root, { recursive: true, force: true });
|
|
116
116
|
}
|
|
@@ -131,7 +131,7 @@ describe("async run status inspection", () => {
|
|
|
131
131
|
startedAt: 100,
|
|
132
132
|
lastUpdate: 200,
|
|
133
133
|
currentStep: 0,
|
|
134
|
-
steps: [{ agent: "
|
|
134
|
+
steps: [{ agent: "builder", status: "running", startedAt: 100 }],
|
|
135
135
|
}, null, 2), "utf-8");
|
|
136
136
|
|
|
137
137
|
const result = inspectSubagentStatus({ id: "run-transcript", view: "transcript", lines: 2 }, {
|
|
@@ -144,7 +144,7 @@ describe("async run status inspection", () => {
|
|
|
144
144
|
const text = textContent(result);
|
|
145
145
|
assert.equal(result.isError, undefined);
|
|
146
146
|
assert.match(text, /Run: run-transcript/);
|
|
147
|
-
assert.match(text, /Step: 0 \(
|
|
147
|
+
assert.match(text, /Step: 0 \(builder\) \| running/);
|
|
148
148
|
assert.match(text, new RegExp(`Transcript tail from ${outputPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")} \\(tail truncated\\):`));
|
|
149
149
|
assert.doesNotMatch(text, /first line/);
|
|
150
150
|
assert.match(text, /second line/);
|
|
@@ -172,8 +172,8 @@ describe("async run status inspection", () => {
|
|
|
172
172
|
currentStep: 0,
|
|
173
173
|
outputFile: wrongOutputPath,
|
|
174
174
|
steps: [
|
|
175
|
-
{ agent: "
|
|
176
|
-
{ agent: "
|
|
175
|
+
{ agent: "builder", status: "running", startedAt: 100 },
|
|
176
|
+
{ agent: "commentator", status: "pending", recentOutput: ["RIGHT_CHILD_RECENT"] },
|
|
177
177
|
],
|
|
178
178
|
}, null, 2), "utf-8");
|
|
179
179
|
|
|
@@ -186,7 +186,7 @@ describe("async run status inspection", () => {
|
|
|
186
186
|
|
|
187
187
|
const text = textContent(result);
|
|
188
188
|
assert.equal(result.isError, undefined);
|
|
189
|
-
assert.match(text, /Agent: 1 \(
|
|
189
|
+
assert.match(text, /Agent: 1 \(commentator\) \| pending/);
|
|
190
190
|
assert.match(text, /Recent output from status\.json:/);
|
|
191
191
|
assert.match(text, /RIGHT_CHILD_RECENT/);
|
|
192
192
|
assert.doesNotMatch(text, /WRONG_CHILD_OUTPUT/);
|
|
@@ -246,7 +246,7 @@ describe("async run status inspection", () => {
|
|
|
246
246
|
state: "complete",
|
|
247
247
|
startedAt: 100,
|
|
248
248
|
lastUpdate: 200,
|
|
249
|
-
steps: [{ agent: "
|
|
249
|
+
steps: [{ agent: "builder", status: "complete", sessionFile: linkedSession }],
|
|
250
250
|
}, null, 2), "utf-8");
|
|
251
251
|
|
|
252
252
|
const result = inspectSubagentStatus({ id: "run-session-symlink", view: "transcript", index: 0 }, {
|
|
@@ -271,7 +271,7 @@ describe("async run status inspection", () => {
|
|
|
271
271
|
const asyncRoot = path.join(root, "runs");
|
|
272
272
|
const asyncDir = path.join(asyncRoot, "run-fleet");
|
|
273
273
|
fs.mkdirSync(asyncDir, { recursive: true });
|
|
274
|
-
fs.writeFileSync(path.join(asyncDir, "output-0.log"), "
|
|
274
|
+
fs.writeFileSync(path.join(asyncDir, "output-0.log"), "builder output", "utf-8");
|
|
275
275
|
fs.writeFileSync(path.join(asyncDir, "status.json"), JSON.stringify({
|
|
276
276
|
runId: "run-fleet",
|
|
277
277
|
mode: "parallel",
|
|
@@ -282,8 +282,8 @@ describe("async run status inspection", () => {
|
|
|
282
282
|
chainStepCount: 1,
|
|
283
283
|
parallelGroups: [{ start: 0, count: 2, stepIndex: 0 }],
|
|
284
284
|
steps: [
|
|
285
|
-
{ agent: "
|
|
286
|
-
{ agent: "
|
|
285
|
+
{ agent: "builder", status: "running", startedAt: 100 },
|
|
286
|
+
{ agent: "commentator", status: "pending" },
|
|
287
287
|
],
|
|
288
288
|
}, null, 2), "utf-8");
|
|
289
289
|
const state = {
|
|
@@ -292,7 +292,7 @@ describe("async run status inspection", () => {
|
|
|
292
292
|
mode: "single",
|
|
293
293
|
startedAt: 100,
|
|
294
294
|
updatedAt: 250,
|
|
295
|
-
currentAgent: "
|
|
295
|
+
currentAgent: "explorer",
|
|
296
296
|
currentIndex: 0,
|
|
297
297
|
lastActivityAt: 240,
|
|
298
298
|
}]]),
|
|
@@ -310,7 +310,7 @@ describe("async run status inspection", () => {
|
|
|
310
310
|
assert.equal(result.isError, undefined);
|
|
311
311
|
assert.match(text, /Subagent fleet: 2 tracked/);
|
|
312
312
|
assert.match(text, /Foreground runs:/);
|
|
313
|
-
assert.match(text, /fg-run \| running \|
|
|
313
|
+
assert.match(text, /fg-run \| running \| explorer/);
|
|
314
314
|
assert.match(text, /Async runs:/);
|
|
315
315
|
assert.match(text, /run-fleet \| running .*\| parallel \| 1 agent running · 0\/2 done/);
|
|
316
316
|
assert.match(text, /transcript: subagent\(\{ action: "status", id: "run-fleet", view: "transcript" \}\)/);
|
|
@@ -335,7 +335,7 @@ describe("async run status inspection", () => {
|
|
|
335
335
|
state: "running",
|
|
336
336
|
startedAt: 100,
|
|
337
337
|
lastUpdate: 200,
|
|
338
|
-
steps: [{ agent: "
|
|
338
|
+
steps: [{ agent: "builder", status: "running", startedAt: 100 }],
|
|
339
339
|
}, null, 2), "utf-8");
|
|
340
340
|
fs.writeFileSync(path.join(otherDir, "status.json"), JSON.stringify({
|
|
341
341
|
runId: "run-other",
|
|
@@ -344,7 +344,7 @@ describe("async run status inspection", () => {
|
|
|
344
344
|
state: "running",
|
|
345
345
|
startedAt: 100,
|
|
346
346
|
lastUpdate: 200,
|
|
347
|
-
steps: [{ agent: "
|
|
347
|
+
steps: [{ agent: "commentator", status: "running", startedAt: 100 }],
|
|
348
348
|
}, null, 2), "utf-8");
|
|
349
349
|
const state = {
|
|
350
350
|
currentSessionId: "session-current",
|
|
@@ -384,7 +384,7 @@ describe("async run status inspection", () => {
|
|
|
384
384
|
startedAt: 100,
|
|
385
385
|
lastUpdate: 200,
|
|
386
386
|
currentStep: 0,
|
|
387
|
-
steps: [{ agent: "
|
|
387
|
+
steps: [{ agent: "builder", status: "running", startedAt: 100 }],
|
|
388
388
|
}, null, 2), "utf-8");
|
|
389
389
|
const state = {
|
|
390
390
|
currentSessionId: "session-current",
|
|
@@ -421,8 +421,8 @@ describe("async run status inspection", () => {
|
|
|
421
421
|
success: true,
|
|
422
422
|
summary: "AGGREGATE_SENTINEL",
|
|
423
423
|
results: [
|
|
424
|
-
{ agent: "
|
|
425
|
-
{ agent: "
|
|
424
|
+
{ agent: "builder", output: "first child" },
|
|
425
|
+
{ agent: "commentator" },
|
|
426
426
|
],
|
|
427
427
|
}, null, 2), "utf-8");
|
|
428
428
|
|
|
@@ -433,7 +433,7 @@ describe("async run status inspection", () => {
|
|
|
433
433
|
|
|
434
434
|
const text = textContent(result);
|
|
435
435
|
assert.equal(result.isError, undefined);
|
|
436
|
-
assert.match(text, /Child: 1 \(
|
|
436
|
+
assert.match(text, /Child: 1 \(commentator\)/);
|
|
437
437
|
assert.match(text, /\(no transcript lines available yet\)/);
|
|
438
438
|
assert.doesNotMatch(text, /AGGREGATE_SENTINEL/);
|
|
439
439
|
assert.doesNotMatch(text, /first child/);
|
|
@@ -457,7 +457,7 @@ describe("async run status inspection", () => {
|
|
|
457
457
|
lastUpdate: 200,
|
|
458
458
|
currentStep: 0,
|
|
459
459
|
steering: { requested: 2, scheduled: 1, pending: 1, delivered: 2, failed: 0, recovered: 1, lastRequestedAt: 150, lastDeliveredAt: 150, recent: [{ id: "request", requestedAt: 150, message: "guidance", targets: [{ index: 0, state: "recovered", recoveredAt: 180, lateDeliveredAt: 190 }] }] },
|
|
460
|
-
steps: [{ agent: "
|
|
460
|
+
steps: [{ agent: "builder", status: "running", startedAt: 100, steering: { requested: 2, scheduled: 1, pending: 1, delivered: 2, failed: 0, recovered: 1, lastRequestedAt: 150, lastDeliveredAt: 150, recent: [{ id: "request", requestedAt: 150, message: "guidance", targets: [{ index: 0, state: "recovered", recoveredAt: 180, lateDeliveredAt: 190 }] }] } }],
|
|
461
461
|
}, null, 2), "utf-8");
|
|
462
462
|
|
|
463
463
|
const exact = inspectSubagentStatus({ id: "run-steered" }, {
|
|
@@ -469,7 +469,7 @@ describe("async run status inspection", () => {
|
|
|
469
469
|
const exactText = textContent(exact);
|
|
470
470
|
assert.equal(exact.isError, undefined);
|
|
471
471
|
assert.match(exactText, /Steering: 2 requested, 1 scheduled, 1 pending, 2 delivered, 0 failed, 1 recovered, 1 late acknowledged/);
|
|
472
|
-
assert.match(exactText, /Step 1:
|
|
472
|
+
assert.match(exactText, /Step 1: builder running/);
|
|
473
473
|
|
|
474
474
|
const list = inspectSubagentStatus({}, {
|
|
475
475
|
asyncDirRoot: asyncRoot,
|
|
@@ -513,7 +513,7 @@ describe("async run status inspection", () => {
|
|
|
513
513
|
depth: 1,
|
|
514
514
|
path: [{ runId: "run-nested-root", stepIndex: 0, agent: "orchestrator" }],
|
|
515
515
|
state: "running",
|
|
516
|
-
agent: "
|
|
516
|
+
agent: "commentator",
|
|
517
517
|
currentTool: "read",
|
|
518
518
|
lastUpdate: 150,
|
|
519
519
|
},
|
|
@@ -529,7 +529,7 @@ describe("async run status inspection", () => {
|
|
|
529
529
|
const text = textContent(result);
|
|
530
530
|
assert.equal(result.isError, undefined);
|
|
531
531
|
assert.match(text, /Step 1: orchestrator running/);
|
|
532
|
-
assert.match(text, /↳
|
|
532
|
+
assert.match(text, /↳ commentator \[nested-status-child\] running \| tool read/);
|
|
533
533
|
assert.match(text, /Status: subagent\(\{ action: "status", id: "nested-status-child" \}\)/);
|
|
534
534
|
} finally {
|
|
535
535
|
fs.rmSync(root, { recursive: true, force: true });
|
|
@@ -562,7 +562,7 @@ describe("async run status inspection", () => {
|
|
|
562
562
|
pid: 54321,
|
|
563
563
|
startedAt: 150,
|
|
564
564
|
lastUpdate: 150,
|
|
565
|
-
steps: [{ agent: "
|
|
565
|
+
steps: [{ agent: "commentator", status: "running", startedAt: 150 }],
|
|
566
566
|
}, null, 2), "utf-8");
|
|
567
567
|
writeNestedEvent(route, {
|
|
568
568
|
type: "subagent.nested.updated",
|
|
@@ -578,7 +578,7 @@ describe("async run status inspection", () => {
|
|
|
578
578
|
asyncDir: nestedAsyncDir,
|
|
579
579
|
pid: 54321,
|
|
580
580
|
state: "running",
|
|
581
|
-
agent: "
|
|
581
|
+
agent: "commentator",
|
|
582
582
|
lastUpdate: 150,
|
|
583
583
|
},
|
|
584
584
|
});
|
|
@@ -592,8 +592,8 @@ describe("async run status inspection", () => {
|
|
|
592
592
|
|
|
593
593
|
const text = textContent(result);
|
|
594
594
|
assert.equal(result.isError, undefined);
|
|
595
|
-
assert.match(text, /↳
|
|
596
|
-
assert.match(text, /1\.
|
|
595
|
+
assert.match(text, /↳ commentator \[nested-stale\] failed/);
|
|
596
|
+
assert.match(text, /1\. commentator failed \| error: Async runner process 54321 exited or disappeared/);
|
|
597
597
|
assert.ok(fs.existsSync(path.join(resultsDir, "nested", "run-stale-nested-root", "nested-stale.json")));
|
|
598
598
|
} finally {
|
|
599
599
|
fs.rmSync(root, { recursive: true, force: true });
|
|
@@ -782,8 +782,8 @@ describe("async run status inspection", () => {
|
|
|
782
782
|
chainStepCount: 3,
|
|
783
783
|
parallelGroups: [{ start: 1, count: 2, stepIndex: 1 }],
|
|
784
784
|
steps: [
|
|
785
|
-
{ agent: "
|
|
786
|
-
{ agent: "
|
|
785
|
+
{ agent: "explorer", status: "complete", startedAt: 100 },
|
|
786
|
+
{ agent: "commentator", status: "running", startedAt: 100 },
|
|
787
787
|
{ agent: "auditor", status: "pending" },
|
|
788
788
|
{ agent: "writer", status: "pending" },
|
|
789
789
|
],
|
|
@@ -797,8 +797,8 @@ describe("async run status inspection", () => {
|
|
|
797
797
|
});
|
|
798
798
|
|
|
799
799
|
const text = textContent(result);
|
|
800
|
-
assert.match(text, /Step 1\/3:
|
|
801
|
-
assert.match(text, /Step 2\/3 Agent 1\/2:
|
|
800
|
+
assert.match(text, /Step 1\/3: explorer complete/);
|
|
801
|
+
assert.match(text, /Step 2\/3 Agent 1\/2: commentator running/);
|
|
802
802
|
assert.match(text, /Step 2\/3 Agent 2\/2: auditor pending/);
|
|
803
803
|
assert.match(text, /Step 3\/3: writer pending/);
|
|
804
804
|
} finally {
|
|
@@ -819,7 +819,7 @@ describe("async run status inspection", () => {
|
|
|
819
819
|
pid: 12345,
|
|
820
820
|
startedAt: 100,
|
|
821
821
|
lastUpdate: 100,
|
|
822
|
-
steps: [{ agent: "
|
|
822
|
+
steps: [{ agent: "explorer", status: "running", startedAt: 100 }],
|
|
823
823
|
}, null, 2), "utf-8");
|
|
824
824
|
|
|
825
825
|
const result = inspectSubagentStatus({ id: "run-live" }, {
|
|
@@ -830,8 +830,8 @@ describe("async run status inspection", () => {
|
|
|
830
830
|
});
|
|
831
831
|
|
|
832
832
|
const text = textContent(result);
|
|
833
|
-
assert.match(text, /Step 1:
|
|
834
|
-
assert.match(text, /Intercom target: subagent-
|
|
833
|
+
assert.match(text, /Step 1: explorer running/);
|
|
834
|
+
assert.match(text, /Intercom target: subagent-explorer-run-live-1 \(if registered\)/);
|
|
835
835
|
} finally {
|
|
836
836
|
fs.rmSync(root, { recursive: true, force: true });
|
|
837
837
|
}
|
|
@@ -913,7 +913,7 @@ describe("async run status inspection", () => {
|
|
|
913
913
|
fs.writeFileSync(sessionFile, "", "utf-8");
|
|
914
914
|
fs.writeFileSync(path.join(resultsDir, "run-result-transcript.json"), JSON.stringify({
|
|
915
915
|
id: "run-result-transcript",
|
|
916
|
-
agent: "
|
|
916
|
+
agent: "builder",
|
|
917
917
|
success: false,
|
|
918
918
|
state: "failed",
|
|
919
919
|
sessionFile,
|
|
@@ -927,7 +927,7 @@ describe("async run status inspection", () => {
|
|
|
927
927
|
|
|
928
928
|
const text = textContent(result);
|
|
929
929
|
assert.equal(result.isError, undefined);
|
|
930
|
-
assert.match(text, /Child: 0 \(
|
|
930
|
+
assert.match(text, /Child: 0 \(builder\)/);
|
|
931
931
|
assert.match(text, /legacy result transcript/);
|
|
932
932
|
} finally {
|
|
933
933
|
fs.rmSync(root, { recursive: true, force: true });
|
|
@@ -943,7 +943,7 @@ describe("async run status inspection", () => {
|
|
|
943
943
|
fs.mkdirSync(resultsDir, { recursive: true });
|
|
944
944
|
fs.writeFileSync(path.join(resultsDir, "run-result-index-validation.json"), JSON.stringify({
|
|
945
945
|
id: "run-result-index-validation",
|
|
946
|
-
agent: "
|
|
946
|
+
agent: "builder",
|
|
947
947
|
success: true,
|
|
948
948
|
summary: "done",
|
|
949
949
|
}, null, 2), "utf-8");
|
|
@@ -971,7 +971,7 @@ describe("async run status inspection", () => {
|
|
|
971
971
|
fs.writeFileSync(sessionFile, "", "utf-8");
|
|
972
972
|
fs.writeFileSync(path.join(resultsDir, "run-stopped-result.json"), JSON.stringify({
|
|
973
973
|
id: "run-stopped-result",
|
|
974
|
-
agent: "
|
|
974
|
+
agent: "builder",
|
|
975
975
|
success: false,
|
|
976
976
|
state: "stopped",
|
|
977
977
|
stopped: true,
|
|
@@ -1003,11 +1003,11 @@ describe("async run status inspection", () => {
|
|
|
1003
1003
|
fs.mkdirSync(resultsDir, { recursive: true });
|
|
1004
1004
|
fs.writeFileSync(path.join(resultsDir, "run-signal-result.json"), JSON.stringify({
|
|
1005
1005
|
id: "run-signal-result",
|
|
1006
|
-
agent: "
|
|
1006
|
+
agent: "builder",
|
|
1007
1007
|
success: false,
|
|
1008
1008
|
state: "failed",
|
|
1009
1009
|
summary: "Subagent process terminated by signal SIGTERM.",
|
|
1010
|
-
results: [{ agent: "
|
|
1010
|
+
results: [{ agent: "builder", success: false, exitCode: 1, processSignal: "SIGTERM" }],
|
|
1011
1011
|
}, null, 2), "utf-8");
|
|
1012
1012
|
|
|
1013
1013
|
const result = inspectSubagentStatus({ id: "run-signal-result" }, {
|
|
@@ -1035,7 +1035,7 @@ describe("async run status inspection", () => {
|
|
|
1035
1035
|
fs.writeFileSync(sessionFile, "", "utf-8");
|
|
1036
1036
|
fs.writeFileSync(path.join(resultsDir, "run-result-only.json"), JSON.stringify({
|
|
1037
1037
|
id: "run-result-only",
|
|
1038
|
-
agent: "
|
|
1038
|
+
agent: "builder",
|
|
1039
1039
|
success: false,
|
|
1040
1040
|
state: "failed",
|
|
1041
1041
|
sessionFile,
|