@selesai/code 0.13.6 → 0.13.7
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 +5 -0
- package/README.md +255 -102
- package/dist/cli/credential-print.js +4 -4
- package/dist/cli.js +0 -0
- package/dist/core/compaction/utils.js +2 -2
- package/dist/core/export-html/template.css +1066 -1066
- package/dist/core/export-html/template.html +55 -55
- package/dist/core/export-html/template.js +1864 -1864
- package/dist/core/export-html/vendor/highlight.min.js +1212 -1212
- package/dist/core/export-html/vendor/marked.min.js +78 -78
- package/dist/core/messages.js +7 -7
- package/dist/extensions/context-compaction-reminder.test.ts +82 -82
- package/dist/extensions/context-compaction-reminder.ts +28 -28
- package/dist/extensions/pi-hermes-memory/scripts/check-min-sdk.mjs +0 -0
- package/dist/extensions/pi-hermes-memory/tests/run-all.sh +0 -0
- package/dist/extensions/pi-intercom/LICENSE +21 -21
- package/dist/extensions/pi-intercom/broker/client.test.ts +83 -83
- package/dist/extensions/pi-intercom/broker/framing.test.ts +114 -114
- package/dist/extensions/pi-intercom/broker/paths.ts +134 -134
- package/dist/extensions/pi-intercom/broker/runtime-claim.test.ts +34 -34
- package/dist/extensions/pi-intercom/broker/runtime-claim.ts +21 -21
- package/dist/extensions/pi-intercom/cwd.test.ts +40 -40
- package/dist/extensions/pi-intercom/cwd.ts +31 -31
- package/dist/extensions/pi-intercom/format-context.test.ts +31 -31
- package/dist/extensions/pi-intercom/format-context.ts +32 -32
- package/dist/extensions/pi-intercom/index.ts +71 -2
- package/dist/extensions/pi-intercom/test/overlay-width.test.ts +66 -66
- package/dist/extensions/pi-intercom/ui/compose.ts +143 -143
- package/dist/extensions/pi-intercom/ui/session-list.ts +166 -166
- package/dist/extensions/pi-subagents/.github/assets/subagent-fleet-inspector.png +0 -0
- package/dist/extensions/pi-subagents/.github/workflows/release.yml +1 -1
- package/dist/extensions/pi-subagents/.github/workflows/test.yml +1 -1
- package/dist/extensions/pi-subagents/.greptile/config.json +1 -1
- package/dist/extensions/pi-subagents/.greptile/files.json +1 -1
- package/dist/extensions/pi-subagents/.greptile/rules.md +1 -1
- package/dist/extensions/pi-subagents/.oxlintrc.json +2 -2
- package/dist/extensions/pi-subagents/AGENTS.md +1 -1
- package/dist/extensions/pi-subagents/CHANGELOG.md +34 -2
- package/dist/extensions/pi-subagents/LICENSE +1 -1
- package/dist/extensions/pi-subagents/README.md +1 -1
- package/dist/extensions/pi-subagents/VISION.md +1 -1
- package/dist/extensions/pi-subagents/agents/architect.md +1 -1
- package/dist/extensions/pi-subagents/agents/builder.md +1 -1
- package/dist/extensions/pi-subagents/agents/claude-code-writer.md +1 -1
- package/dist/extensions/pi-subagents/agents/claude-code.md +1 -1
- package/dist/extensions/pi-subagents/agents/codex-exec-writer.md +1 -1
- package/dist/extensions/pi-subagents/agents/codex-exec.md +1 -1
- package/dist/extensions/pi-subagents/agents/commentator.md +1 -1
- package/dist/extensions/pi-subagents/agents/cursor-agent-writer.md +1 -1
- package/dist/extensions/pi-subagents/agents/cursor-agent.md +1 -1
- package/dist/extensions/pi-subagents/agents/delegate.md +1 -1
- package/dist/extensions/pi-subagents/agents/explorer.md +1 -1
- package/dist/extensions/pi-subagents/agents/oracle.md +1 -1
- package/dist/extensions/pi-subagents/agents/recapper.md +1 -1
- package/dist/extensions/pi-subagents/agents/researcher.md +1 -1
- package/dist/extensions/pi-subagents/agents/reviewer.md +1 -1
- package/dist/extensions/pi-subagents/agents/scout.md +1 -1
- package/dist/extensions/pi-subagents/agents/worker.md +1 -1
- package/dist/extensions/pi-subagents/async-retention-discovery-worker.mjs +1 -1
- package/dist/extensions/pi-subagents/docs/agents.md +20 -20
- package/dist/extensions/pi-subagents/docs/configuration.md +10 -6
- package/dist/extensions/pi-subagents/docs/extension-api.md +15 -8
- package/dist/extensions/pi-subagents/docs/missions.md +1 -1
- package/dist/extensions/pi-subagents/docs/models.md +2 -2
- package/dist/extensions/pi-subagents/docs/observability.md +2 -2
- package/dist/extensions/pi-subagents/docs/tool-reference.md +13 -4
- package/dist/extensions/pi-subagents/docs/watchdog.md +1 -1
- package/dist/extensions/pi-subagents/docs/workflows.md +15 -14
- package/dist/extensions/pi-subagents/index.ts +1 -1
- package/dist/extensions/pi-subagents/inspector-runner.mjs +1 -1
- package/dist/extensions/pi-subagents/install.mjs +3 -2
- package/dist/extensions/pi-subagents/package-lock.json +3 -3
- package/dist/extensions/pi-subagents/package.json +2 -2
- package/dist/extensions/pi-subagents/prompts/council.md +1 -1
- package/dist/extensions/pi-subagents/prompts/gather-context-and-clarify.md +1 -1
- package/dist/extensions/pi-subagents/prompts/parallel-cleanup.md +1 -1
- package/dist/extensions/pi-subagents/prompts/parallel-research.md +1 -1
- package/dist/extensions/pi-subagents/prompts/parallel-review.md +1 -1
- package/dist/extensions/pi-subagents/prompts/review-loop.md +1 -1
- package/dist/extensions/pi-subagents/skills/council-mode/SKILL.md +1 -1
- package/dist/extensions/pi-subagents/skills/council-mode/references/pass-contracts.md +1 -1
- package/dist/extensions/pi-subagents/skills/pi-subagents/SKILL.md +7 -5
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/constraints-and-recipes.md +2 -2
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/execution-controls.md +43 -12
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/management-authoring-rpc.md +1 -1
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/multi-lane-orchestration.md +2 -2
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/prompting-and-roles.md +5 -5
- package/dist/extensions/pi-subagents/skills/pi-subagents/references/review-and-validation.md +2 -2
- package/dist/extensions/pi-subagents/src/agents/agent-management.ts +103 -64
- package/dist/extensions/pi-subagents/src/agents/agent-memory.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/agent-refinements.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/agent-scope.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/agent-selection.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/agent-serializer.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/agents.ts +527 -221
- package/dist/extensions/pi-subagents/src/agents/builtin-names.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/chain-serializer.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/frontmatter.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/identity.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/proactive-skills.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/runtime-agent-events.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/runtime-agent-registry.ts +1 -1
- package/dist/extensions/pi-subagents/src/agents/skills.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/agents.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/background-work.ts +8 -3
- package/dist/extensions/pi-subagents/src/api/capability-ceiling.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/control-channel.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/delegation.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/external-job-provider.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/external-runs.ts +68 -5
- package/dist/extensions/pi-subagents/src/api/intercom-bridge.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/pi-args.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/preflight.ts +14 -9
- package/dist/extensions/pi-subagents/src/api/project-panes.ts +1 -1
- package/dist/extensions/pi-subagents/src/api/shared-types.ts +2 -1
- package/dist/extensions/pi-subagents/src/extension/config.ts +1 -1
- package/dist/extensions/pi-subagents/src/extension/control-notices.ts +1 -1
- package/dist/extensions/pi-subagents/src/extension/doctor.ts +1 -1
- package/dist/extensions/pi-subagents/src/extension/fanout-child.ts +1 -1
- package/dist/extensions/pi-subagents/src/extension/index.ts +8 -5
- package/dist/extensions/pi-subagents/src/extension/public-execution.ts +48 -5
- package/dist/extensions/pi-subagents/src/extension/rpc.ts +63 -5
- package/dist/extensions/pi-subagents/src/extension/schemas.ts +12 -8
- package/dist/extensions/pi-subagents/src/extension/steering-notices.ts +1 -1
- package/dist/extensions/pi-subagents/src/extension/subagent-guide.ts +1 -1
- package/dist/extensions/pi-subagents/src/extension/tool-description.ts +8 -4
- package/dist/extensions/pi-subagents/src/extension/tool-result.ts +1 -1
- package/dist/extensions/pi-subagents/src/inspectors/herdr/actions.ts +1 -1
- package/dist/extensions/pi-subagents/src/inspectors/herdr/client.ts +1 -1
- package/dist/extensions/pi-subagents/src/inspectors/herdr/focus.ts +1 -1
- package/dist/extensions/pi-subagents/src/inspectors/herdr/inspector-runner.ts +1 -1
- package/dist/extensions/pi-subagents/src/inspectors/herdr/project-panes.ts +1 -1
- package/dist/extensions/pi-subagents/src/inspectors/herdr/session-roots-codec.ts +1 -1
- package/dist/extensions/pi-subagents/src/inspectors/herdr/shell-command.ts +1 -1
- package/dist/extensions/pi-subagents/src/integrations/herdr-status.ts +1 -1
- package/dist/extensions/pi-subagents/src/intercom/intercom-bridge.ts +1 -1
- package/dist/extensions/pi-subagents/src/intercom/native-supervisor-channel.ts +1 -1
- package/dist/extensions/pi-subagents/src/intercom/result-intercom.ts +1 -1
- package/dist/extensions/pi-subagents/src/missions/actions.ts +1 -1
- package/dist/extensions/pi-subagents/src/missions/goal-driver.ts +1 -1
- package/dist/extensions/pi-subagents/src/missions/lifecycle.ts +1 -1
- package/dist/extensions/pi-subagents/src/missions/store.ts +1 -1
- package/dist/extensions/pi-subagents/src/missions/types.ts +1 -1
- package/dist/extensions/pi-subagents/src/missions/workflow-state.ts +1 -1
- package/dist/extensions/pi-subagents/src/policy/authority.ts +1 -1
- package/dist/extensions/pi-subagents/src/profiles/profiles.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/active-async-capacity.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/active-run-index.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/async-execution.ts +52 -36
- package/dist/extensions/pi-subagents/src/runs/background/async-job-tracker.ts +63 -4
- package/dist/extensions/pi-subagents/src/runs/background/async-resume.ts +4 -2
- package/dist/extensions/pi-subagents/src/runs/background/async-retention.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/async-status-snapshot.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/async-status.ts +69 -10
- package/dist/extensions/pi-subagents/src/runs/background/auto-drain.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/background/chain-append.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/chain-root-attachment.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/completion-batcher.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/completion-dedupe.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/completion-replay.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/control-channel.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/fleet-view.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/background/index-segment.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/inspect-rpc.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/notify.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/owned-process-tree.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/parallel-groups.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/process-terminal.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/result-delivery-ownership.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/result-files.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/result-watcher.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/background/resume-guidance.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/background/retained-children.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/run-id-query.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/run-id-resolver.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/run-status.ts +3 -3
- package/dist/extensions/pi-subagents/src/runs/background/scheduled-runs.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/stale-run-reconciler.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/steering.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/subagent-runner.ts +2 -3
- package/dist/extensions/pi-subagents/src/runs/background/subagent-wait.ts +21 -22
- package/dist/extensions/pi-subagents/src/runs/background/terminal-run-index.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/top-level-async.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/wait-completions.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/background/wait-config.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/wait-subscriptions.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/background/wait-tool.ts +25 -19
- package/dist/extensions/pi-subagents/src/runs/foreground/async-dismiss-action.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/foreground/async-steering-action.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/foreground/async-stop-action.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/foreground/execution.ts +63 -4
- package/dist/extensions/pi-subagents/src/runs/foreground/foreground-control.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/foreground/foreground-history.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/foreground/prompt-audit.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/foreground/subagent-executor.ts +179 -59
- package/dist/extensions/pi-subagents/src/runs/foreground/workflow-detach-reconcile.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/foreground/workflow-foreground-steering.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/abort-recovery.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/acceptance.ts +44 -19
- package/dist/extensions/pi-subagents/src/runs/shared/agent-contract.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/async-status-projection.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/background-process-options.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/capability-ceiling.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/chain-outputs.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/child-identity.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/child-launch-plan.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/child-protocol.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/claude-code-adapter.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/codex-exec-adapter.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/completion-evidence.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/completion-guard.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/context-mode.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/cursor-agent-adapter.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/dynamic-fanout.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/extension-bindings.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/external-cli-contract.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/external-cli-preflight.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/external-cli-runner.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/external-job-bridge.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/external-job-runner.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/fast-mode-extension.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/host-step-status.ts +2 -1
- package/dist/extensions/pi-subagents/src/runs/shared/lane-metadata.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/launch-cwd.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/llm-intent-arbiter.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/long-running-guard.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/mcp-config-sources.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/mcp-direct-tool-allowlist.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/mcp-direct-tool-grant.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/model-exclusions.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/model-fallback.ts +62 -18
- package/dist/extensions/pi-subagents/src/runs/shared/model-scope.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/mutation-evidence.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/nested-events.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/nested-path.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/nested-render.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/orca-progress-tabs.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/parallel-handoff.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/parallel-utils.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/permissions.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/shared/pi-args.ts +3 -3
- package/dist/extensions/pi-subagents/src/runs/shared/pi-spawn.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/process-signal.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/run-fanout-budget.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/run-history.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/runtime-acknowledged-extensions.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/session-lease.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/single-output.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/spawn-budget.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/structured-output.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/subagent-control.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/shared/subagent-startup-retry.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/task-intent.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/tool-availability.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/tool-budget.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/tool-timeout.ts +2 -2
- package/dist/extensions/pi-subagents/src/runs/shared/usage-budget.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/workflow-graph.ts +4 -3
- package/dist/extensions/pi-subagents/src/runs/shared/worktree-cleanup-plan.ts +1 -1
- package/dist/extensions/pi-subagents/src/runs/shared/worktree.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/accessible-dir.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/agent-stream-options.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/artifacts.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/atomic-json.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/capacity-resilient-json.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/child-session-name.ts +2 -2
- package/dist/extensions/pi-subagents/src/shared/child-transcript.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/completion-owner.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/display-text.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/extension-context.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/file-coalescer.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/file-system-retry.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/fork-context.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/formatters.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/jsonl-writer.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/launch-contract.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/model-info.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/node-executable.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/post-exit-stdio-guard.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/prompt-resources.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/pruned-fork.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/session-file-trust.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/session-identity.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/session-tokens.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/settings.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/shortcuts.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/status-format.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/thinking-ceiling.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/types.ts +41 -4
- package/dist/extensions/pi-subagents/src/shared/utf8.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/utils.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/watch-strategy.ts +1 -1
- package/dist/extensions/pi-subagents/src/shared/workflow-child-permit.ts +91 -0
- package/dist/extensions/pi-subagents/src/slash/delegation-adapters.ts +1 -1
- package/dist/extensions/pi-subagents/src/slash/delegation-json.ts +1 -1
- package/dist/extensions/pi-subagents/src/slash/delegation-request.ts +1 -1
- package/dist/extensions/pi-subagents/src/slash/prompt-template-bridge.ts +38 -2
- package/dist/extensions/pi-subagents/src/slash/prompt-workflows.ts +1 -1
- package/dist/extensions/pi-subagents/src/slash/selector.ts +1 -1
- package/dist/extensions/pi-subagents/src/slash/slash-bridge.ts +1 -1
- package/dist/extensions/pi-subagents/src/slash/slash-commands.ts +19 -27
- package/dist/extensions/pi-subagents/src/slash/slash-live-state.ts +1 -1
- package/dist/extensions/pi-subagents/src/slash/subagents-admin.ts +1 -1
- package/dist/extensions/pi-subagents/src/tui/fleet-status.ts +1 -1
- package/dist/extensions/pi-subagents/src/tui/fleet-transcript.ts +1 -1
- package/dist/extensions/pi-subagents/src/tui/fleet.ts +1 -1
- package/dist/extensions/pi-subagents/src/tui/render-helpers.ts +1 -1
- package/dist/extensions/pi-subagents/src/tui/render.ts +96 -53
- package/dist/extensions/pi-subagents/src/types/pi-runtime-compat.d.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/change-signature.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/child-status.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/emission-guard.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/lsp-diagnostics.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/model-selection.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/permission-arbiter.ts +1 -1
- 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/render.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/review.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/runtime.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/scope.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/settings.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/tool-actions.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/turn-delta.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/types.ts +1 -1
- package/dist/extensions/pi-subagents/src/watchdog/warning-format.ts +1 -1
- package/dist/extensions/pi-subagents/src/workflows/chat-progress.ts +1 -1
- package/dist/extensions/pi-subagents/src/workflows/host-command.ts +1 -1
- package/dist/extensions/pi-subagents/src/workflows/scripted-workflow.ts +154 -5
- package/dist/extensions/pi-subagents/src/workflows/workflow-child-summary.ts +2 -2
- package/dist/extensions/pi-subagents/src/workflows/workflow-preflight.ts +1 -1
- package/dist/extensions/pi-subagents/src/workflows/workflow-receipt.ts +42 -5
- package/dist/extensions/pi-subagents/src/workflows/workflow-resources.ts +150 -0
- package/dist/extensions/pi-subagents/src/workflows/workflow-settlement.ts +1 -1
- package/dist/extensions/pi-subagents/test/e2e/real-session-subagent.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/bun/cli.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/bun/register-bedrock.d.ts +2 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/bun/restore-sandbox-env.d.ts +17 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/args.d.ts +57 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/config-selector.d.ts +16 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/file-processor.d.ts +15 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/initial-message.d.ts +18 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/list-models.d.ts +9 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/project-trust.d.ts +10 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/session-picker.d.ts +10 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/startup-ui.d.ts +20 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/config.d.ts +96 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/agent-session-runtime.d.ts +119 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/agent-session-services.d.ts +85 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/agent-session.d.ts +620 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/auth-guidance.d.ts +5 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/auth-storage.d.ts +56 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/bash-executor.d.ts +32 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/cache-stats.d.ts +49 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/branch-summarization.d.ts +93 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/compaction.d.ts +128 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/index.d.ts +7 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/utils.d.ts +38 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/defaults.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/diagnostics.d.ts +15 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/event-bus.d.ts +9 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/exec.d.ts +29 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/experimental.d.ts +2 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/export-html/index.d.ts +37 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/index.d.ts +12 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/loader.d.ts +23 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/runner.d.ts +171 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/types.d.ts +1261 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/wrapper.d.ts +20 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/footer-data-provider.d.ts +54 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/http-dispatcher.d.ts +22 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/index.d.ts +13 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/keybindings.d.ts +358 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/messages.d.ts +77 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-config.d.ts +512 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-registry.d.ts +43 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-resolver.d.ts +121 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-runtime.d.ts +82 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/models-store.d.ts +17 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/output-guard.d.ts +7 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/package-manager.d.ts +210 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/project-trust.d.ts +15 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/prompt-templates.d.ts +54 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/provider-attribution.d.ts +4 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/provider-composer.d.ts +55 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/radius.d.ts +2 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/remote-catalog-provider.d.ts +5 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/resolve-config-value.d.ts +30 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/resource-loader.d.ts +206 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/runtime-credentials.d.ts +15 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/sdk.d.ts +106 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/session-cwd.d.ts +19 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/session-manager.d.ts +356 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/settings-manager.d.ts +297 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/skills.d.ts +60 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/slash-commands.d.ts +15 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/source-info.d.ts +18 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/system-prompt.d.ts +28 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/telemetry.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/timings.d.ts +10 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/bash.d.ts +68 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/edit-diff.d.ts +106 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/edit.d.ts +51 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/find.d.ts +35 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/grep.d.ts +37 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/index.d.ts +40 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/ls.d.ts +37 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/output-accumulator.d.ts +52 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/path-utils.d.ts +10 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/read.d.ts +35 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/render-utils.d.ts +24 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/truncate.d.ts +70 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/write.d.ts +26 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/trust-manager.d.ts +36 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/usage-totals.d.ts +19 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/client.d.ts +61 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/huggingface.d.ts +23 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/index.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/provider.d.ts +10 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/ui.d.ts +42 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/index.d.ts +35 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/main.d.ts +12 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/migrations.d.ts +33 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/index.d.ts +9 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/assistant-message.d.ts +22 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/bash-execution.d.ts +34 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/config-selector.d.ts +102 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/custom-entry.d.ts +19 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/custom-message.d.ts +20 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/extension-editor.d.ts +22 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/extension-selector.d.ts +26 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/footer.d.ts +32 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/index.d.ts +34 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/login-dialog.d.ts +52 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/model-selector.d.ts +54 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/oauth-selector.d.ts +33 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/session-selector.d.ts +95 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/settings-selector.d.ts +77 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/status-indicator.d.ts +28 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/tool-execution.d.ts +63 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/tree-selector.d.ts +94 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/trust-selector.d.ts +23 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/user-message.d.ts +14 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/interactive-mode.d.ts +394 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/model-search.d.ts +12 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/theme/theme-controller.d.ts +29 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/theme/theme.d.ts +120 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/print-mode.d.ts +28 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/jsonl.d.ts +17 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/rpc-client.d.ts +246 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/rpc-mode.d.ts +20 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/rpc-types.d.ts +457 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/package-manager-cli.d.ts +8 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/rpc-entry.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/ansi.d.ts +2 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/changelog.d.ts +22 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/child-process.d.ts +18 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/clipboard-native.d.ts +11 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/clipboard.d.ts +4 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/deprecation.d.ts +4 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/exif-orientation.d.ts +5 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/frontmatter.d.ts +8 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/fs-watch.d.ts +5 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/git.d.ts +26 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/html.d.ts +7 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-convert.d.ts +10 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-process.d.ts +18 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-resize-core.d.ts +30 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-resize-worker.d.ts +2 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-resize.d.ts +16 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/json.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/mime.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/open-browser.d.ts +9 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/paths.d.ts +31 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/photon.d.ts +21 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/pi-user-agent.d.ts +2 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/shell.d.ts +31 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/sleep.d.ts +5 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/syntax-highlight.d.ts +12 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/tools-manager.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/version-check.d.ts +15 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/windows-self-update.d.ts +3 -0
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/index.mjs +1 -1
- package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/package.json +1 -1
- package/dist/extensions/pi-subagents/test/integration/acceptance-file-report.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/async-execution.test.ts +198 -6
- package/dist/extensions/pi-subagents/test/integration/async-job-tracker.test.ts +250 -18
- package/dist/extensions/pi-subagents/test/integration/async-status.test.ts +323 -4
- package/dist/extensions/pi-subagents/test/integration/claude-code-smoke.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/integration/claude-code-writer-smoke.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/integration/codex-exec-smoke.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/integration/codex-exec-writer-smoke.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/integration/cursor-agent-smoke.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/integration/cursor-agent-writer-smoke.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/integration/detect-error.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/doctor-executor.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/error-handling.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/external-cli-runner.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/foreground-result-size.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/fork-context-execution.test.ts +52 -1
- package/dist/extensions/pi-subagents/test/integration/intercom-result-delivery.test.ts +4 -3
- package/dist/extensions/pi-subagents/test/integration/orca-progress-tabs.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/render-fork-badge.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/render-widget.test.ts +75 -7
- package/dist/extensions/pi-subagents/test/integration/result-watcher.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/session-tokens.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/single-execution.test.ts +274 -12
- package/dist/extensions/pi-subagents/test/integration/slash-commands.test.ts +46 -1
- package/dist/extensions/pi-subagents/test/integration/slash-live-state.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/template-resolution.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/integration/top-level-async.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/support/cursor-smoke-inputs.ts +5 -5
- package/dist/extensions/pi-subagents/test/support/helpers.ts +1 -1
- package/dist/extensions/pi-subagents/test/support/isolated-temp-root.mjs +1 -1
- package/dist/extensions/pi-subagents/test/support/mock-pi-script.mjs +1 -1
- package/dist/extensions/pi-subagents/test/support/mock-pi.ts +1 -1
- package/dist/extensions/pi-subagents/test/support/node-command.ts +1 -1
- package/dist/extensions/pi-subagents/test/support/real-session-child-cli.mjs +1 -1
- package/dist/extensions/pi-subagents/test/support/real-session-runner.ts +1 -1
- package/dist/extensions/pi-subagents/test/support/register-loader.mjs +1 -1
- package/dist/extensions/pi-subagents/test/support/session-lease-child.mjs +1 -1
- package/dist/extensions/pi-subagents/test/support/ts-loader.mjs +1 -1
- package/dist/extensions/pi-subagents/test/unit/abort-recovery.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/acceptance.test.ts +66 -1
- package/dist/extensions/pi-subagents/test/unit/accessible-dir.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/active-async-capacity.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-contract.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-disabled.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-discovery-cache.test.ts +232 -0
- package/dist/extensions/pi-subagents/test/unit/agent-eject-disable.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-frontmatter.test.ts +3 -3
- package/dist/extensions/pi-subagents/test/unit/agent-management.test.ts +66 -6
- package/dist/extensions/pi-subagents/test/unit/agent-memory.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/unit/agent-overrides.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-refinements.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-scope.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-selection.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/agent-stream-options.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/anti-slop-oxlint.test.ts +16 -4
- package/dist/extensions/pi-subagents/test/unit/artifacts.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/async-execution.test.ts +9 -5
- package/dist/extensions/pi-subagents/test/unit/async-interrupt-action.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/async-permission-session.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/async-recovery-descriptor.test.ts +57 -1
- package/dist/extensions/pi-subagents/test/unit/async-resume.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/async-retention.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/async-status-projection.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/async-status-snapshot.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/atomic-json.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/authority-policy.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/auto-drain.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/background-process-options.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/background-work.test.ts +57 -2
- package/dist/extensions/pi-subagents/test/unit/capability-ceiling-agent-allowlist.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/capability-ceiling-pi-args.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/capability-ceiling.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/capacity-resilient-json.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/chain-append.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/chain-root-attachment.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/chain-serializer.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/child-launch-plan.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/child-protocol.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/child-session-name.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/child-transcript.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/claude-code-adapter.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/close-grace-timer.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/codex-exec-adapter.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/compaction-resume.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/completion-batcher.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/completion-dedupe.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/completion-evidence.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/completion-guard.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/completion-replay.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/config-dir-runtime.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/control-channel.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/control-notices.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/cursor-agent-adapter.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/cursor-smoke-inputs.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/unit/default-extensions.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/delegation-api.test.ts +117 -1
- package/dist/extensions/pi-subagents/test/unit/doctor.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/dynamic-fanout.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/ensure-accessible-dir.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/extension-bindings.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/extension-context.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/external-cli-runner.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/external-job-runner.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/external-runs.test.ts +103 -1
- package/dist/extensions/pi-subagents/test/unit/extra-agent-dirs.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/fast-mode-extension.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/file-coalescer.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/file-system-retry.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/fleet-status.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/fleet-transcript.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/fleet.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/foreground-control.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/foreground-tool-call-compaction.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/fork-cache-key.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/unit/fork-context.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/formatters.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/get-final-output.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/herdr-inspector-bootstrap.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/herdr-inspector.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/herdr-session-roots-codec.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/herdr-shell-command.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/herdr-status-bridge.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/host-command.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/host-peer-runtime-imports.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/host-step-status.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/index-child-registration.test.ts +8 -4
- package/dist/extensions/pi-subagents/test/unit/index-segment.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/inspect-rpc.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/intercom-bridge.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/jsonl-writer.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/llm-intent-arbiter.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/mcp-direct-tool-grant.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/mission-goal-driver.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/mission-lifecycle.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/mission-store.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/mock-pi.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/model-exclusions.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/model-fallback.test.ts +102 -6
- package/dist/extensions/pi-subagents/test/unit/model-info.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/model-scope-settings.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/model-scope.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/mutation-evidence.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/native-supervisor-channel.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/nested-control.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/nested-events.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/node-executable.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/notify.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/orca-progress-tabs.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/owned-process-tree.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/package-manifest.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/parallel-handoff.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/parallel-utils.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/path-handling.test.ts +0 -1
- package/dist/extensions/pi-subagents/test/unit/path-resolution.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/permissions.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/pi-args-permission-system.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/pi-args.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/unit/pi-coding-agent-dir.test.ts +2 -2
- package/dist/extensions/pi-subagents/test/unit/pi-spawn.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/preflight.test.ts +106 -1
- package/dist/extensions/pi-subagents/test/unit/proactive-skills.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/process-terminal.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/profiles.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/project-panes-public-api.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/prompt-template-bridge.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/prompt-workflows.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/pruned-fork.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/public-execution.test.ts +40 -3
- package/dist/extensions/pi-subagents/test/unit/reads-resolution.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/recursion-guard.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/render-helpers.test.ts +60 -10
- package/dist/extensions/pi-subagents/test/unit/result-delivery-ownership.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/result-files.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/result-intercom.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/retained-children.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/rpc.test.ts +98 -1
- package/dist/extensions/pi-subagents/test/unit/run-fanout-budget.test.ts +1 -1
- 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 +3 -3
- package/dist/extensions/pi-subagents/test/unit/runtime-acknowledged-extensions.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/runtime-agent-registration.test.ts +44 -2
- package/dist/extensions/pi-subagents/test/unit/scheduled-runs.test.ts +3 -3
- package/dist/extensions/pi-subagents/test/unit/scheduled-store-root.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/schemas.test.ts +48 -5
- package/dist/extensions/pi-subagents/test/unit/scripted-workflow.test.ts +427 -3
- package/dist/extensions/pi-subagents/test/unit/selector.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/session-lease.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/single-output.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/skills-fallback.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/slash-bridge.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/spawn-budget.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/stale-run-reconciler.test.ts +41 -1
- package/dist/extensions/pi-subagents/test/unit/status-format.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/steering-action.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/steering-notices.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/steering.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/streamed-progress-bounds.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/subagent-action-recovery.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/subagent-control.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/subagent-guide.test.ts +9 -1
- package/dist/extensions/pi-subagents/test/unit/subagent-prompt-runtime.test.ts +11 -11
- package/dist/extensions/pi-subagents/test/unit/subagent-startup-retry.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/subagent-wait.test.ts +5 -5
- package/dist/extensions/pi-subagents/test/unit/task-intent.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/temp-paths.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/thinking-ceiling.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/timeout-defaults.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/tool-budget.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/tool-description.test.ts +8 -6
- package/dist/extensions/pi-subagents/test/unit/tool-timeout.test.ts +3 -3
- package/dist/extensions/pi-subagents/test/unit/total-cost.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/ts-loader.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/types-fork-preamble.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/wait-completions.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/wait-subscriptions.test.ts +7 -5
- package/dist/extensions/pi-subagents/test/unit/watch-strategy.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-change-signature.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-child-status.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-emission-guard.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-lsp-diagnostics.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-model-selection.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-permission-arbiter.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-render.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-review.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-runtime.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-scope.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-settings.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-tool-actions.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/watchdog-turn-delta.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/widget-nested-render.test.ts +8 -6
- package/dist/extensions/pi-subagents/test/unit/windows-hide-spawn.test.ts +13 -1
- package/dist/extensions/pi-subagents/test/unit/workflow-chat-progress.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/workflow-detach-reconcile.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/workflow-graph.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/workflow-launch-params.test.ts +12 -1
- package/dist/extensions/pi-subagents/test/unit/workflow-preflight.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/workflow-receipt.test.ts +31 -1
- package/dist/extensions/pi-subagents/test/unit/workflow-resources.test.ts +98 -0
- package/dist/extensions/pi-subagents/test/unit/workflow-resume-hint.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/worktree-cleanup-plan.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/worktree.test.ts +1 -1
- package/dist/extensions/pi-subagents/test/unit/writer-budget-guidance.test.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/effect/index.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/effect/rules/no-service-constructor-imports.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/index.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-chained-type-assertions.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-conditional-empty-object-spread.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-known-value-widening.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-module-mocking.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-object-parameters.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-reflect-apply.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-reflect-get.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-runtime-typeof.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unknown-parameters.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unknown-returns.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unknown-type-aliases.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-widen-then-assert.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/require-safety-comment-for-type-assertion.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/shared/dictionary-types.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/shared/lexical-type-parameters.ts +1 -1
- package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/shared/reflect-method.ts +1 -1
- package/dist/extensions/pi-subagents/tsconfig.json +1 -1
- package/dist/extensions/pi-web-agent/src/backends/settings-reader.ts +25 -25
- package/dist/extensions/pi-web-agent/src/cache/ttl-cache.ts +28 -28
- package/dist/extensions/pi-web-agent/src/changelog-notice.ts +136 -136
- package/dist/extensions/pi-web-agent/src/fetch/browser-resolution.ts +199 -199
- package/dist/extensions/pi-web-agent/src/fetch/firecrawl-fetch.ts +100 -100
- package/dist/extensions/pi-web-agent/src/fetch/headless-fetch.ts +117 -117
- package/dist/extensions/pi-web-agent/src/fetch/http-fetch.ts +67 -67
- package/dist/extensions/pi-web-agent/src/orchestration/answer-synthesizer.ts +60 -60
- package/dist/extensions/pi-web-agent/src/orchestration/index.ts +28 -28
- package/dist/extensions/pi-web-agent/src/orchestration/query-planner.ts +47 -47
- package/dist/extensions/pi-web-agent/src/orchestration/stop-decider.ts +81 -81
- package/dist/extensions/pi-web-agent/src/presentation/config-store.ts +210 -210
- package/dist/extensions/pi-web-agent/src/presentation/config.ts +75 -75
- package/dist/extensions/pi-web-agent/src/presentation/fetch-presentation.ts +54 -54
- package/dist/extensions/pi-web-agent/src/presentation/select-view.ts +20 -20
- package/dist/extensions/pi-web-agent/src/presentation/types.ts +63 -63
- package/dist/extensions/pi-web-agent/src/search/brave.ts +114 -114
- package/dist/extensions/pi-web-agent/src/search/searxng.ts +96 -96
- package/dist/extensions/pi-web-agent/src/tools/web-explore.ts +71 -71
- package/dist/extensions/pi-web-agent/src/tools/web-fetch-headless.ts +31 -31
- package/dist/extensions/pi-web-agent/src/tools/web-fetch.ts +31 -31
- package/dist/extensions/ponytail/package.json +8 -8
- package/dist/extensions/question/constants.ts +30 -30
- package/dist/extensions/question/helpers.ts +58 -58
- package/dist/extensions/question/navigation.ts +14 -14
- package/dist/extensions/question/package.json +19 -19
- package/dist/extensions/question/selection-mode.ts +46 -46
- package/dist/extensions/question/shortcuts.ts +44 -44
- package/dist/extensions/question/types.ts +132 -132
- package/dist/extensions/test-resolve-hook-impl.mjs +6 -6
- package/dist/extensions/test-resolve-hook.mjs +6 -6
- package/dist/extensions/web-agent-onboarding.ts +222 -222
- package/dist/package-manager-cli.js +71 -71
- package/dist/rpc-entry.js +0 -0
- package/dist/skills/improve-codebase/REFERENCE.md +78 -78
- package/docs/compaction.md +396 -396
- package/docs/containerization.md +111 -111
- package/docs/development.md +71 -71
- package/docs/docs.json +164 -164
- package/docs/environment-variables.md +86 -86
- package/docs/images/selesai-wordmark.png +0 -0
- package/docs/images/tokenin-preview.png +0 -0
- package/docs/index.md +83 -83
- package/docs/json.md +82 -82
- package/docs/models.md +502 -502
- package/docs/packages.md +227 -227
- package/docs/plans/subagent-delegation/phase-0-correctness.md +264 -264
- package/docs/plans/subagent-delegation/phase-1-behavioral-contract.md +485 -485
- package/docs/plans/subagent-delegation/phase-2-context-controls.md +281 -281
- package/docs/plans/subagent-delegation/phase-3-advisory-routing.md +361 -361
- package/docs/plans/subagent-delegation/phase-4-optional-enforcement.md +380 -380
- package/docs/prompt-templates.md +95 -95
- package/docs/providers.md +293 -293
- package/docs/security.md +59 -59
- package/docs/session-format.md +414 -414
- package/docs/sessions.md +145 -145
- package/docs/shared-host-extensions.md +109 -109
- package/docs/shell-aliases.md +13 -13
- package/docs/skills.md +231 -231
- package/docs/terminal-setup.md +142 -142
- package/docs/termux.md +127 -127
- package/docs/themes.md +295 -295
- package/docs/tmux.md +63 -63
- package/docs/tui.md +927 -927
- package/docs/windows.md +17 -17
- package/examples/README.md +25 -25
- package/examples/extensions/README.md +211 -211
- package/examples/extensions/auto-commit-on-exit.ts +49 -49
- package/examples/extensions/bash-spawn-hook.ts +30 -30
- package/examples/extensions/bookmark.ts +50 -50
- package/examples/extensions/border-status-editor.ts +150 -150
- package/examples/extensions/built-in-tool-renderer.ts +249 -249
- package/examples/extensions/claude-rules.ts +86 -86
- package/examples/extensions/commands.ts +72 -72
- package/examples/extensions/confirm-destructive.ts +59 -59
- package/examples/extensions/custom-compaction.ts +130 -130
- package/examples/extensions/custom-footer.ts +64 -64
- package/examples/extensions/custom-header.ts +73 -73
- package/examples/extensions/custom-provider-anthropic/index.ts +610 -610
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -24
- package/examples/extensions/custom-provider-anthropic/package.json +19 -19
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +404 -404
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -16
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -82
- package/examples/extensions/dirty-repo-guard.ts +56 -56
- package/examples/extensions/doom-overlay/README.md +46 -46
- package/examples/extensions/doom-overlay/doom/build/doom.js +21 -21
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +152 -152
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -72
- package/examples/extensions/doom-overlay/doom-component.ts +132 -132
- package/examples/extensions/doom-overlay/doom-engine.ts +173 -173
- package/examples/extensions/doom-overlay/doom-keys.ts +104 -104
- package/examples/extensions/doom-overlay/index.ts +74 -74
- package/examples/extensions/doom-overlay/wad-finder.ts +51 -51
- package/examples/extensions/dynamic-resources/SKILL.md +8 -8
- package/examples/extensions/dynamic-resources/dynamic.json +79 -79
- package/examples/extensions/dynamic-resources/dynamic.md +5 -5
- package/examples/extensions/dynamic-resources/index.ts +15 -15
- package/examples/extensions/dynamic-tools.ts +74 -74
- package/examples/extensions/event-bus.ts +43 -43
- package/examples/extensions/file-trigger.ts +41 -41
- package/examples/extensions/git-checkpoint.ts +53 -53
- package/examples/extensions/git-merge-and-resolve.ts +115 -115
- package/examples/extensions/github-issue-autocomplete.ts +185 -185
- package/examples/extensions/gondolin/index.ts +531 -531
- package/examples/extensions/gondolin/package-lock.json +185 -185
- package/examples/extensions/gondolin/package.json +19 -19
- package/examples/extensions/handoff.ts +199 -199
- package/examples/extensions/hello.ts +26 -26
- package/examples/extensions/hidden-thinking-label.ts +53 -53
- package/examples/extensions/inline-bash.ts +94 -94
- package/examples/extensions/input-transform-streaming.ts +39 -39
- package/examples/extensions/input-transform.ts +43 -43
- package/examples/extensions/interactive-shell.ts +196 -196
- package/examples/extensions/mac-system-theme.ts +47 -47
- package/examples/extensions/message-renderer.ts +59 -59
- package/examples/extensions/minimal-mode.ts +426 -426
- package/examples/extensions/modal-editor.ts +85 -85
- package/examples/extensions/model-status.ts +31 -31
- package/examples/extensions/notify.ts +55 -55
- package/examples/extensions/overlay-qa-tests.ts +1450 -1450
- package/examples/extensions/overlay-test.ts +153 -153
- package/examples/extensions/permission-gate.ts +34 -34
- package/examples/extensions/pirate.ts +47 -47
- package/examples/extensions/plan-mode/README.md +66 -66
- package/examples/extensions/plan-mode/index.ts +390 -390
- package/examples/extensions/plan-mode/utils.ts +168 -168
- package/examples/extensions/preset.ts +436 -436
- package/examples/extensions/project-trust.ts +64 -64
- package/examples/extensions/prompt-customizer.ts +97 -97
- package/examples/extensions/protected-paths.ts +30 -30
- package/examples/extensions/provider-payload.ts +18 -18
- package/examples/extensions/qna.ts +122 -122
- package/examples/extensions/question.ts +285 -285
- package/examples/extensions/questionnaire.ts +448 -448
- package/examples/extensions/rainbow-editor.ts +88 -88
- package/examples/extensions/reload-runtime.ts +37 -37
- package/examples/extensions/rpc-demo.ts +118 -118
- package/examples/extensions/sandbox/index.ts +321 -321
- package/examples/extensions/sandbox/package-lock.json +92 -92
- package/examples/extensions/sandbox/package.json +19 -19
- package/examples/extensions/send-user-message.ts +97 -97
- package/examples/extensions/session-name.ts +27 -27
- package/examples/extensions/shutdown-command.ts +63 -63
- package/examples/extensions/snake.ts +343 -343
- package/examples/extensions/space-invaders.ts +560 -560
- package/examples/extensions/ssh.ts +220 -220
- package/examples/extensions/status-line.ts +32 -32
- package/examples/extensions/structured-output.ts +65 -65
- package/examples/extensions/subagent/README.md +175 -175
- package/examples/extensions/subagent/agents/planner.md +37 -37
- package/examples/extensions/subagent/agents/reviewer.md +35 -35
- package/examples/extensions/subagent/agents/scout.md +50 -50
- package/examples/extensions/subagent/agents/worker.md +24 -24
- package/examples/extensions/subagent/agents.ts +126 -126
- package/examples/extensions/subagent/index.ts +1015 -1015
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -10
- package/examples/extensions/subagent/prompts/implement.md +10 -10
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -9
- package/examples/extensions/summarize.ts +209 -209
- package/examples/extensions/system-prompt-header.ts +17 -17
- package/examples/extensions/tic-tac-toe.ts +1008 -1008
- package/examples/extensions/timed-confirm.ts +70 -70
- package/examples/extensions/titlebar-spinner.ts +58 -58
- package/examples/extensions/todo.ts +297 -297
- package/examples/extensions/tool-override.ts +144 -144
- package/examples/extensions/tools.ts +146 -146
- package/examples/extensions/trigger-compact.ts +50 -50
- package/examples/extensions/truncated-tool.ts +195 -195
- package/examples/extensions/widget-placement.ts +9 -9
- package/examples/extensions/with-deps/index.ts +32 -32
- package/examples/extensions/with-deps/package-lock.json +31 -31
- package/examples/extensions/with-deps/package.json +22 -22
- package/examples/extensions/working-indicator.ts +123 -123
- package/examples/extensions/working-message-test.ts +25 -25
- package/examples/rpc-extension-ui.ts +632 -632
- package/examples/sdk/01-minimal.ts +26 -26
- package/examples/sdk/02-custom-model.ts +53 -53
- package/examples/sdk/03-custom-prompt.ts +75 -75
- package/examples/sdk/04-skills.ts +55 -55
- package/examples/sdk/05-tools.ts +48 -48
- package/examples/sdk/06-extensions.ts +99 -99
- package/examples/sdk/07-context-files.ts +47 -47
- package/examples/sdk/08-prompt-templates.ts +51 -51
- package/examples/sdk/09-api-keys-and-oauth.ts +52 -52
- package/examples/sdk/10-settings.ts +53 -53
- package/examples/sdk/11-sessions.ts +52 -52
- package/examples/sdk/12-full-control.ts +79 -79
- package/examples/sdk/13-session-runtime.ts +67 -67
- package/examples/sdk/README.md +144 -144
- package/package.json +1 -1
- package/dist/extensions/pi-subagents/banner.png +0 -0
|
@@ -81,13 +81,13 @@ The adapter validates `codex --version` and `codex exec --help` only when a run
|
|
|
81
81
|
Maintainers can collect real smoke evidence without making it part of the normal test suite:
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
SELESAI_SUBAGENTS_CODEX_EXEC_SMOKE=1 \
|
|
85
|
+
SELESAI_SUBAGENTS_CODEX_EXEC_SMOKE_REPORT=/tmp/pi-subagents-codex-exec-smoke.json \
|
|
86
86
|
node --experimental-strip-types --import ./test/support/register-loader.mjs \
|
|
87
87
|
--test test/integration/codex-exec-smoke.test.ts
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
SELESAI_SUBAGENTS_CODEX_EXEC_WRITER_SMOKE=1 \
|
|
90
|
+
SELESAI_SUBAGENTS_CODEX_EXEC_WRITER_SMOKE_REPORT=/tmp/pi-subagents-codex-exec-writer-smoke.json \
|
|
91
91
|
node --experimental-strip-types --import ./test/support/register-loader.mjs \
|
|
92
92
|
--test test/integration/codex-exec-writer-smoke.test.ts
|
|
93
93
|
```
|
|
@@ -116,13 +116,13 @@ The adapter validates `claude --version` and `claude --help` only when a run lau
|
|
|
116
116
|
Maintainers can opt in to separate read-only and writer canaries:
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
SELESAI_SUBAGENTS_CLAUDE_CODE_SMOKE=1 \
|
|
120
|
+
SELESAI_SUBAGENTS_CLAUDE_CODE_SMOKE_REPORT=/tmp/pi-subagents-claude-code-smoke.json \
|
|
121
121
|
node --experimental-strip-types --import ./test/support/register-loader.mjs \
|
|
122
122
|
--test test/integration/claude-code-smoke.test.ts
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
SELESAI_SUBAGENTS_CLAUDE_CODE_WRITER_SMOKE=1 \
|
|
125
|
+
SELESAI_SUBAGENTS_CLAUDE_CODE_WRITER_SMOKE_REPORT=/tmp/pi-subagents-claude-code-writer-smoke.json \
|
|
126
126
|
node --experimental-strip-types --import ./test/support/register-loader.mjs \
|
|
127
127
|
--test test/integration/claude-code-writer-smoke.test.ts
|
|
128
128
|
```
|
|
@@ -147,11 +147,11 @@ These headless smokes rely on saved workspace trust. Cursor documents no passive
|
|
|
147
147
|
The smoke requires two existing, separate operator-managed directories and an explicit disposable-workspace attestation:
|
|
148
148
|
|
|
149
149
|
```bash
|
|
150
|
-
export
|
|
151
|
-
export
|
|
152
|
-
export
|
|
153
|
-
mkdir -p "$
|
|
154
|
-
mkdir -p "$
|
|
150
|
+
export SELESAI_SUBAGENTS_CURSOR_SMOKE_WORKSPACE=/tmp/pi-subagents-cursor-smoke-workspace
|
|
151
|
+
export SELESAI_SUBAGENTS_CURSOR_SMOKE_STATE_ROOT=/tmp/pi-subagents-cursor-smoke-state
|
|
152
|
+
export SELESAI_SUBAGENTS_CURSOR_SMOKE_DISPOSABLE=1
|
|
153
|
+
mkdir -p "$SELESAI_SUBAGENTS_CURSOR_SMOKE_WORKSPACE" "$SELESAI_SUBAGENTS_CURSOR_SMOKE_STATE_ROOT"
|
|
154
|
+
mkdir -p "$SELESAI_SUBAGENTS_CURSOR_SMOKE_STATE_ROOT/external-0.cursor-prompt"
|
|
155
155
|
```
|
|
156
156
|
|
|
157
157
|
Do not place a file at `pi-subagents-cursor-write-canary.txt` in the workspace or any file, including `handoff.txt`, in the prompt directory. The harness refuses the pre-existing canary and any non-empty prompt directory. It does not delete the workspace, state root, or operator-owned prompt directory. It removes only its canary and private handoff file.
|
|
@@ -159,13 +159,13 @@ Do not place a file at `pi-subagents-cursor-write-canary.txt` in the workspace o
|
|
|
159
159
|
Maintainers can then run separate read-only and writer canaries:
|
|
160
160
|
|
|
161
161
|
```bash
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
SELESAI_SUBAGENTS_CURSOR_AGENT_SMOKE=1 \
|
|
163
|
+
SELESAI_SUBAGENTS_CURSOR_AGENT_SMOKE_REPORT=/tmp/pi-subagents-cursor-agent-smoke.json \
|
|
164
164
|
node --experimental-strip-types --import ./test/support/register-loader.mjs \
|
|
165
165
|
--test test/integration/cursor-agent-smoke.test.ts
|
|
166
166
|
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
SELESAI_SUBAGENTS_CURSOR_AGENT_WRITER_SMOKE=1 \
|
|
168
|
+
SELESAI_SUBAGENTS_CURSOR_AGENT_WRITER_SMOKE_REPORT=/tmp/pi-subagents-cursor-agent-writer-smoke.json \
|
|
169
169
|
node --experimental-strip-types --import ./test/support/register-loader.mjs \
|
|
170
170
|
--test test/integration/cursor-agent-writer-smoke.test.ts
|
|
171
171
|
```
|
|
@@ -305,7 +305,7 @@ Field notes:
|
|
|
305
305
|
| `extensions` | Omitted means normal extensions; empty means no extensions; list values allowlist specific extensions. |
|
|
306
306
|
| `subagentOnlyExtensions` | Extension paths loaded only in spawned child sessions for this agent. Tools registered there are unavailable to the main agent unless also installed through normal Pi extension configuration. |
|
|
307
307
|
| `model` | Default model. Bare ids prefer the current provider when possible, then unique registry matches. |
|
|
308
|
-
| `fallbackModels` | Ordered backup models for provider/model failures such as quota, auth, timeout, or unavailable model. Ordinary task failures do not trigger fallback. |
|
|
308
|
+
| `fallbackModels` | Ordered backup models for provider/model failures such as quota, auth, provider-reported timeout, or unavailable model. Expiration of the run-level `timeoutMs` / `maxRuntimeMs` deadline is terminal and does not trigger fallback. Ordinary task failures do not trigger fallback. |
|
|
309
309
|
| `thinking` | Appended as a `:level` suffix at runtime unless a suffix is already present. |
|
|
310
310
|
| `systemPromptMode` | `replace` by default; `append` keeps Pi's base prompt. |
|
|
311
311
|
| `inheritProjectContext` | Keeps or strips inherited repository instruction blocks. |
|
|
@@ -319,7 +319,7 @@ Field notes:
|
|
|
319
319
|
| `defaultProgress` | Maintain `progress.md`. |
|
|
320
320
|
| `async` | Default a single-agent launch to background (`true`) or foreground (`false`) when the call omits `async`. Explicit call values and `forceTopLevelAsync` win. |
|
|
321
321
|
| `timeoutMs` | Positive integer default runtime deadline in milliseconds for single-agent launches. Foreground launches use 30 minutes when neither the call nor agent provides a timeout; explicit `timeoutMs`/`maxRuntimeMs` and agent defaults win. |
|
|
322
|
-
| `toolTimeoutMs` | Optional positive integer hard per-tool-call deadline in milliseconds. An explicit call value wins, then this agent default, global `toolTimeoutMs`, and `SELESAI_SUBAGENT_TOOL_TIMEOUT_MS`. When omitted, known-fast built-in tools get a five-minute default; long-running tools get attention notices but no hard default. It does not extend the run-level deadline; `contact_supervisor`, `intercom`, and `subagent_wait` are exempt. |
|
|
322
|
+
| `toolTimeoutMs` | Optional positive integer hard per-tool-call deadline in milliseconds. An explicit call value wins, then this agent default, global `toolTimeoutMs`, and `SELESAI_SUBAGENT_TOOL_TIMEOUT_MS`. When omitted, known-fast built-in tools get a five-minute default; long-running tools get attention notices but no hard default. It does not extend the run-level deadline; `contact_supervisor`, `intercom`, `bg_wait`, and the deprecated `subagent_wait` alias are exempt. |
|
|
323
323
|
| `acceptance` | Acceptance default for single-agent launches. Use a scalar level such as `checked` or an inline/block YAML map such as `{ level: "none", reason: "lightweight lookup" }`. Explicit call values win; chain and parallel acceptance remains task/step configuration. |
|
|
324
324
|
| `acceptanceRole` | Optional `read-only` or `writer` role for automatic acceptance inference. Explicit task mutation or no-edit intent wins; otherwise the declared role replaces agent-name guessing. This does not grant or revoke tools. |
|
|
325
325
|
| `mutationTools` | Comma-separated extension tool names whose calls count as mutation attempts for the completion guard. This declares evidence only; list and load each tool through `tools` and its extension provider as usual. |
|
|
@@ -485,4 +485,4 @@ What it covers:
|
|
|
485
485
|
- **Intercom conventions**: when to ask vs send, and how parent-side supervisor/result delivery works through the native channel.
|
|
486
486
|
- **Control and diagnostics**: attention signals, soft interrupts, status, and the `doctor` action.
|
|
487
487
|
|
|
488
|
-
If you are writing an agent that orchestrates subagents, the bundled skill helps it behave correctly without guessing the patterns. If you are a human user, you do not need to read it; the README and prompt shortcuts encode the same workflows in user-facing form.
|
|
488
|
+
If you are writing an agent that orchestrates subagents, the bundled skill helps it behave correctly without guessing the patterns. If you are a human user, you do not need to read it; the README and prompt shortcuts encode the same workflows in user-facing form.
|
|
@@ -36,7 +36,7 @@ Controls the duration, in milliseconds, for model exclusions. The default is `86
|
|
|
36
36
|
{ "toolDescriptionMode": "compact" }
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Controls the parent-facing `subagent` tool description registered at startup. The default
|
|
39
|
+
Controls the parent-facing `subagent` tool description registered at startup. The default registers split prompt metadata: a short tool description plus `promptSnippet` and `promptGuidelines`. Set `"full"` to register the complete description as one tool description, or `"compact"` to keep the execution modes, async/`bg_wait` guidance, child-safety boundary, management/action split, one-writer review guidance, and artifact/status essentials with less prompt bloat.
|
|
40
40
|
|
|
41
41
|
`custom` reads `subagent-tool-description.md` from the project config directory, then from `~/.selesai/agent/subagent-tool-description.md`. Missing, empty, unreadable, or oversized custom files fall back to the full description. Custom templates may use `{{fullDescription}}`, `{{compactDescription}}`, `{{safetyGuidance}}`, `{{agentDir}}`, and `{{projectConfigDir}}`; the safety guidance is always present so custom prose cannot remove the runtime guardrails. Restart Pi after changing the mode or custom file.
|
|
42
42
|
|
|
@@ -187,9 +187,9 @@ Controls the under-editor widget for active background runs. It defaults to `tru
|
|
|
187
187
|
{ "waitTool": { "enabled": true, "defaultTimeoutMs": 120000 } }
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
`defaultTimeoutMs` sets the blocking window used when a `
|
|
190
|
+
`defaultTimeoutMs` sets the blocking window used when a `bg_wait` call omits `timeoutMs`; explicit call values win, followed by this setting, then the 30-minute fallback. The primary tool is `bg_wait`; `subagent_wait` remains a deprecated compatibility alias with the same behavior. When the window elapses, the tool returns a non-error `window_elapsed` result with the still-active work identities, and that work keeps running. Set `enabled` to `false` to keep both names registered while making direct calls return immediately instead of blocking. The default is enabled. You can also set `"waitTool": false`; set `SELESAI_SUBAGENT_WAIT_TOOL_ENABLED=false` (or `0`, `off`, `disabled`) to override config for one process. The effective enabled and default-timeout values are passed explicitly to child runtimes. Headless `agent_end` auto-drain retains its own strict deadline and fails if required work remains unresolved. Invalid config or environment values fail instead of being coerced.
|
|
191
191
|
|
|
192
|
-
Blocking `
|
|
192
|
+
Blocking `bg_wait({ id: "..." })` keeps the current tool call open until that run changes. By default it returns when a run needs attention. Use `bg_wait({ stopOnAttention: false })` only for run-to-completion flows that should wait through idle or long-thinking attention; supervisor/contact requests still stop the wait. In a long-lived interactive parent session, `bg_wait({ id: "...", nonBlocking: true })` instead resolves the prefix once, persists the exact run identity, returns a subscription token immediately, and wakes that session on completion, failure, attention, reconciliation failure, or timeout. Use it for provider, detached, or other background work without a native completion notification; ordinary async subagent runs notify the parent natively and do not need a wait subscription. Armed subscriptions appear in ordinary `subagent({ action: "status" })` output and are not counted as active child work. `subagent_wait` remains available as a deprecated compatibility alias.
|
|
193
193
|
|
|
194
194
|
This is different from `waitTool.enabled=false`, which returns immediately without registering any future wake. Provider items remain available only to blocking fleet-wide waits; non-blocking subscriptions require one async or remembered detached foreground run id.
|
|
195
195
|
|
|
@@ -217,7 +217,7 @@ Forces depth-0 internal single, parallel, and chain runs into background mode an
|
|
|
217
217
|
{ "timeoutMs": 3600000 }
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
Global default runtime deadline, in milliseconds, for subagent runs. It replaces the built-in 30-minute backstop for foreground launches (single, parallel, chain, and workflowScript) and plain single-agent async runs whenever no call-level `timeoutMs`/`maxRuntimeMs` applies. For single-agent launches, selected agent frontmatter `timeoutMs` still wins. This only moves the *default*.
|
|
220
|
+
Global default runtime deadline, in milliseconds, for subagent runs. It replaces the built-in 30-minute backstop for foreground launches (single, parallel, chain, and workflowScript) and plain single-agent async runs whenever no call-level `timeoutMs`/`maxRuntimeMs` applies. For single-agent launches, selected agent frontmatter `timeoutMs` still wins. This only moves the *default*. Expiring this run-level deadline is terminal and does not trigger `fallbackModels`; only provider/model failures reported before the deadline can fall back.
|
|
221
221
|
|
|
222
222
|
Use it when foreground orchestration or plain async single-agent runs need a longer default than 30 minutes. It does not set async composite top-level deadlines, and it does not replace async fan-out child deadlines.
|
|
223
223
|
|
|
@@ -233,7 +233,7 @@ Optional hard per-tool-call deadline in milliseconds. When configured, a child t
|
|
|
233
233
|
|
|
234
234
|
Without a configured value, Pi still applies a five-minute hard timeout to known-fast built-in tools: `read`, `grep`, `find`, `ls`, `edit`, `write`, and `structured_output`. Long-running tools such as `bash`, custom tools, and MCP tools do not get a hard default. They get the normal open-tool attention notice after `activeNoticeAfterMs` and remain bounded by the run-level deadline.
|
|
235
235
|
|
|
236
|
-
The tool timer tracks each active `toolCallId` separately and never extends the run-level deadline: when the remaining run budget is shorter, the ordinary run-level timeout wins. `contact_supervisor`, `intercom`, and `subagent_wait` are exempt because their legitimate purpose can be to wait for a human, supervisor, or
|
|
236
|
+
The tool timer tracks each active `toolCallId` separately and never extends the run-level deadline: when the remaining run budget is shorter, the ordinary run-level timeout wins. `contact_supervisor`, `intercom`, `bg_wait`, and the deprecated `subagent_wait` alias are exempt because their legitimate purpose can be to wait for a human, supervisor, or background run. Use hard tool timeouts only for wedge protection; an elapsed timeout is not a mutation-safe boundary. Configured values must be positive integers no greater than `2147483647`; invalid or out-of-range values are rejected with a visible error rather than silently ignored.
|
|
237
237
|
|
|
238
238
|
## `globalConcurrencyLimit`
|
|
239
239
|
|
|
@@ -243,6 +243,8 @@ The tool timer tracks each active `toolCallId` separately and never extends the
|
|
|
243
243
|
|
|
244
244
|
Caps simultaneously running children inside one run, including durable legacy multi-child runs and `workflowScript` launches through `runs.run`/`runs.all`. Queued workflow children retain their stable keys and begin when a running sibling releases capacity. The default is `20`.
|
|
245
245
|
|
|
246
|
+
Inline or file-backed top-level workflow calls may set a positive safe-integer `globalConcurrencyLimit` to override this value for that workflow. The override is workflow-only and is not forwarded to child calls.
|
|
247
|
+
|
|
246
248
|
## `maxSubagentSpawnsPerSession`
|
|
247
249
|
|
|
248
250
|
```json
|
|
@@ -261,6 +263,8 @@ Optionally caps the total number of child subagent launches during one parent se
|
|
|
261
263
|
|
|
262
264
|
Caps cumulative logical child admissions in one top-level run tree. The default is `64`. `SELESAI_SUBAGENT_MAX_SPAWNS_PER_RUN` overrides the config when it is a positive integer. Invalid, zero, or missing values fall back to the configured positive value or `64`.
|
|
263
265
|
|
|
266
|
+
Inline or file-backed top-level workflow calls may set a positive safe-integer `maxSubagentSpawnsPerRun`; it overrides the environment and config for that workflow. Inherited nested budgets remain authoritative, and the override is not forwarded to child calls.
|
|
267
|
+
|
|
264
268
|
The budget counts single launches, expanded `tasks`/`count`, static chain steps and parallel groups, actual dynamic `expand` items, appended chain steps, workflow children, and nested child calls. Static and materialized dynamic groups are admitted atomically. Startup retries, model fallback, and retained-child resume reuse the original logical child claim. Claims are never released or refunded. This cap is independent from the session-wide cumulative spawn budget and `globalConcurrencyLimit`.
|
|
265
269
|
|
|
266
270
|
## `maxActiveAsyncRunsPerSession`
|
|
@@ -501,4 +505,4 @@ Set this to bound that stall. The ladder keeps its number of attempts and only t
|
|
|
501
505
|
SELESAI_SUBAGENT_FS_RETRY_MAX_TOTAL_MS=1000
|
|
502
506
|
```
|
|
503
507
|
|
|
504
|
-
Unset by default, so behaviour is unchanged unless you opt in. Opting in trades lock-wait tolerance for responsiveness: entries clamped to `0` return immediately, so contention that would previously have been waited out surfaces as an error sooner. Values that are not a non-negative integer fail instead of being coerced.
|
|
508
|
+
Unset by default, so behaviour is unchanged unless you opt in. Opting in trades lock-wait tolerance for responsiveness: entries clamped to `0` return immediately, so contention that would previously have been waited out surfaces as an error sooner. Values that are not a non-negative integer fail instead of being coerced.
|
|
@@ -32,6 +32,7 @@ Method notes:
|
|
|
32
32
|
- `steer` requires an async run `id` (plus optional child `index`) and a non-empty `message`; its reply preserves the normal acknowledged-delivery result. Optional `mode` values are `steer` (default), `follow_up`, and `auto`, and receipts include `deliveryStatus: "delivered" | "queued"`. RPC steering disables the direct tool's pause-and-revive recovery in every mode so an extension keeps authority over the exact child it spawned; `ping.capabilities.nonRecoveringSteer` advertises this guarantee.
|
|
33
33
|
- `resume` requires a run target and non-empty `message`. It delegates to the existing revival path, which validates current-session ownership, persisted session/recovery metadata, stopped/live state, capability ceilings, and the exclusive session lease before returning the new async run details. Callers may request a `file-only` output path for the revived result without overriding its model, tools, or budgets. `ping.capabilities.resume` advertises this seam.
|
|
34
34
|
- `stop` targets current-session top-level async runs through the stop control channel and records a `stopped` lifecycle instead of reporting a timeout.
|
|
35
|
+
- `status` keeps targeted and rich requests on the executor-backed path. A request with no `id`, `runId`, `dir`, `index`, `view`, or `lines` may use the restored in-memory projections and a short summary; when the live state is missing, stale, session-mismatched, or not restored, it falls back to normal executor status. Status `view`, `lines`, and `index` are forwarded for targeted transcript/fleet requests. Successful replies retain `text`, `details`, `fleet`, and `asyncSnapshot`; the short summary intentionally omits canonical filesystem details, wait subscriptions, and budget annotations.
|
|
35
36
|
|
|
36
37
|
Capability advertisements on `ping`:
|
|
37
38
|
|
|
@@ -42,6 +43,7 @@ Capability advertisements on `ping`:
|
|
|
42
43
|
- `processTerminalProof` — the process-terminal proof status (see [observability.md](observability.md#process-terminal-proof)).
|
|
43
44
|
- `nonRecoveringSteer` — RPC steering never pauses-and-revives.
|
|
44
45
|
- `resume` — the revival seam described above.
|
|
46
|
+
- `statusProjection: { version: 1, untargeted: "in-memory-when-ready", targeted: "executor" }` — untargeted status may use restored bounded projections; targeted or rich status remains executor-backed.
|
|
45
47
|
- `fleetStatus: { version: 1 }` — successful `status` replies additionally include `data.fleet`.
|
|
46
48
|
|
|
47
49
|
Structured delegation progress updates carry `runId` as soon as foreground execution allocates it, so a caller can retain the package-owned revival target even if its own tool turn is interrupted before the terminal response. Foreground `details.results[]` rows also include a numeric `index` that is unique within the run and stable across partial progress snapshots and the final result; use `(runId, index)` instead of row position to correlate single, counted parallel, and chain children.
|
|
@@ -54,6 +56,8 @@ Entries are bounded, current-session public display records with an opaque recon
|
|
|
54
56
|
|
|
55
57
|
The DTO intentionally never exposes run, async, or tool IDs. Clients must ignore unknown fields and fall back to status text when the capability is absent.
|
|
56
58
|
|
|
59
|
+
`data.asyncSnapshot` is a separate bounded projection included on successful status replies when available. Its `runs[].id` contains the async run id; unlike the fleet DTO, it is not an opaque display key. Fleet keys remain opaque and must not be interpreted as run or async identifiers.
|
|
60
|
+
|
|
57
61
|
### Scope
|
|
58
62
|
|
|
59
63
|
`pi.events` is in-process only. It does not reach separate Pi processes or child subagents; use the file lifecycle artifacts or `pi-intercom` for cross-process coordination.
|
|
@@ -129,7 +133,7 @@ updateExternalRun(ctx.sessionManager.getSessionId(), "dependency-review", {
|
|
|
129
133
|
unregisterExternalRun(ctx.sessionManager.getSessionId(), "dependency-review");
|
|
130
134
|
```
|
|
131
135
|
|
|
132
|
-
The API validates and caches bounded display fields when the caller registers or updates a job. FleetView reads that cache only. It does not poll caller code. `snapshotExternalRuns(sessionId)` and `listExternalRuns(sessionId)` return bounded current-session snapshots. By default, malformed
|
|
136
|
+
The API validates and caches bounded display fields when the caller registers or updates a job. FleetView reads that cache only. It does not poll caller code. `snapshotExternalRuns(sessionId)` and `listExternalRuns(sessionId)` return bounded current-session snapshots. Snapshots filter the session-qualified cache key before inspecting record fields; API-written records avoid repeated normalization through module-private provenance, while records replaced or mutated through the process-local registry are validated on demand. By default, malformed records for the requested session throw with the validation error. Display-only Fleet callers can pass `{ ignoreMalformed: true, onMalformedRecord }` to remove bad records and keep rendering with a programmatic diagnostic.
|
|
133
137
|
|
|
134
138
|
External jobs are observational. The caller owns execution, persistence, cancellation, and result delivery. FleetView does not expose stop, steer, resume, cancel, or Herdr controls for them. Supplied report and transcript paths are shown as bounded text only; FleetView does not read arbitrary external paths.
|
|
135
139
|
|
|
@@ -229,6 +233,8 @@ Results:
|
|
|
229
233
|
- Result mode is explicit. Text remains literal even when it looks like JSON. Structured mode returns the separately captured, schema-validated JSON value.
|
|
230
234
|
- Terminal usage reports input, output, cache-read, cache-write, cost, turns, tool calls, and duration alongside the effective model and thinking level when known.
|
|
231
235
|
|
|
236
|
+
Live update events are bounded progress snapshots, not patches, so consumers should replace the prior snapshot rather than merge it as a delta. Structured delegation coalesces heartbeats whose delegation-visible progress and recent output are unchanged; a duration-only heartbeat therefore does not produce another update. The terminal response remains authoritative for the complete result, error, and final usage details.
|
|
237
|
+
|
|
232
238
|
Bounds:
|
|
233
239
|
|
|
234
240
|
- Schemas are capped at 64 KiB; tasks and returned text/structured values are capped at 1 MiB, with smaller bounds on identity/configuration strings and a maximum `timeoutMs` of 2,147,483,647.
|
|
@@ -279,7 +285,7 @@ Schedules created while a ceiling is active are rejected until durable schedule
|
|
|
279
285
|
|
|
280
286
|
## Background-work provider API
|
|
281
287
|
|
|
282
|
-
Other Pi extensions can make their current-session jobs visible to `
|
|
288
|
+
Other Pi extensions can make their current-session jobs visible to `bg_wait` through the process-local provider contract:
|
|
283
289
|
|
|
284
290
|
```ts
|
|
285
291
|
import { registerBackgroundWorkProvider } from "pi-subagents/background-work";
|
|
@@ -287,8 +293,8 @@ import { registerBackgroundWorkProvider } from "pi-subagents/background-work";
|
|
|
287
293
|
const dispose = registerBackgroundWorkProvider({
|
|
288
294
|
name: "my-background-extension",
|
|
289
295
|
wakeChannels: ["my-extension:job-finished"],
|
|
290
|
-
listActiveWork: () => jobs
|
|
291
|
-
.filter((job) => job.status === "running")
|
|
296
|
+
listActiveWork: (context) => jobs
|
|
297
|
+
.filter((job) => job.status === "running" && (!context || job.ownerSessionId === context.sessionId))
|
|
292
298
|
.map((job) => ({ id: job.id, sessionId: job.ownerSessionId })),
|
|
293
299
|
reconcile: ({ sessionId, nowMs }) => reconcileJobs(sessionId, nowMs),
|
|
294
300
|
});
|
|
@@ -296,13 +302,14 @@ const dispose = registerBackgroundWorkProvider({
|
|
|
296
302
|
|
|
297
303
|
Semantics:
|
|
298
304
|
|
|
299
|
-
- Each item needs a stable provider-local ID and the exact Pi session ID that owns it. `
|
|
305
|
+
- Each item needs a stable provider-local ID and the exact Pi session ID that owns it. `bg_wait` captures those identities rather than a count, so one job finishing while another starts still satisfies first-completion waits without losing the replacement.
|
|
306
|
+
- `listActiveWork` receives an optional `{ sessionId, nowMs }` context during snapshots. Providers can use `sessionId` to avoid scanning unrelated work; existing zero-argument `() => items` providers continue to work, and returned items are still validated and filtered to the exact requested session.
|
|
300
307
|
- It filters snapshots to the active session, fails closed if a provider disappears while its work is tracked, and surfaces malformed snapshots or provider errors with provider context.
|
|
301
308
|
- Wake channels only shorten polling; validated snapshots remain authoritative.
|
|
302
309
|
- Providers share a registry through `Symbol.for("pi-subagents.background-work.v1")`, allowing independently loaded extension modules to meet in one Pi process.
|
|
303
310
|
- Registration is reload-safe: a new provider with the same name replaces the old callback, and the old disposer cannot remove the replacement. Call the disposer during extension shutdown when possible.
|
|
304
311
|
|
|
305
|
-
Child processes do not gain provider tools or extensions automatically. Add `
|
|
312
|
+
Child processes do not gain provider tools or extensions automatically. Add `bg_wait` to the child agent's `tools` allowlist (or the deprecated `subagent_wait` compatibility alias) and load each provider through `extensions` or `subagentOnlyExtensions`. The parent's effective `waitTool` setting is serialized through foreground, async, resume, chain, parallel, and fanout launch paths; `SELESAI_SUBAGENT_WAIT_TOOL_ENABLED` keeps precedence.
|
|
306
313
|
|
|
307
314
|
## External job provider bridge
|
|
308
315
|
|
|
@@ -399,7 +406,7 @@ The API returns discriminated structured results with canonical project root, bi
|
|
|
399
406
|
|
|
400
407
|
A host that embeds this extension owns whether completion wakes can be delivered at all.
|
|
401
408
|
|
|
402
|
-
Ordinary async and foreground completion wakes use `registerSubagentNotify` and `sendCompletion`. They listen for completion events and deliver through `pi.sendMessage(..., { triggerTurn })`. Session shutdown stops the result watcher and disposes this completion notifier. `createWaitSubscriptionManager` is separate: it is the explicit non-blocking `
|
|
409
|
+
Ordinary async and foreground completion wakes use `registerSubagentNotify` and `sendCompletion`. They listen for completion events and deliver through `pi.sendMessage(..., { triggerTurn })`. Session shutdown stops the result watcher and disposes this completion notifier. `createWaitSubscriptionManager` is separate: it is the explicit non-blocking `bg_wait` subscription path for work without native notification, not the ordinary completion wake path. `subagent_wait` remains a deprecated compatibility alias.
|
|
403
410
|
|
|
404
411
|
Detached children do not stop when the session does. They are the host process's children, not the session's, so the run keeps going, completes, and notifies nobody. What is lost is the notification, not the work.
|
|
405
412
|
|
|
@@ -433,4 +440,4 @@ The main runtime files in this repository:
|
|
|
433
440
|
| `src/runs/shared/worktree.ts` | Git worktree isolation. |
|
|
434
441
|
| `src/intercom/intercom-bridge.ts` | Runtime intercom bridge instructions and diagnostics. |
|
|
435
442
|
| `src/extension/schemas.ts` / `src/shared/types.ts` | Tool schemas, shared types, and event constants. |
|
|
436
|
-
| `test/unit/` / `test/integration/` / `test/e2e/` | Unit, loader-based integration, and real-session E2E tests. |
|
|
443
|
+
| `test/unit/` / `test/integration/` / `test/e2e/` | Unit, loader-based integration, and real-session E2E tests. |
|
|
@@ -118,4 +118,4 @@ Behavior:
|
|
|
118
118
|
- Calendar recurrence, cron, queue/replace overlap, and the schedule TUI inspector are intentionally deferred to the next slice.
|
|
119
119
|
- The old `schedule`, `schedule-list`, `schedule-status`, and `schedule-cancel` actions were removed in a hard cutover.
|
|
120
120
|
|
|
121
|
-
Disable or bound schedules with the `scheduledRuns` config key in [configuration.md](configuration.md#scheduledruns).
|
|
121
|
+
Disable or bound schedules with the `scheduledRuns` config key in [configuration.md](configuration.md#scheduledruns).
|
|
@@ -100,7 +100,7 @@ A setup that works well in practice: route agents by task shape instead of runni
|
|
|
100
100
|
|
|
101
101
|
The routing rule: use the capability tiers (1–3) when the task is well-scoped, and the intent tier (4) when scoping or judging is the task itself.
|
|
102
102
|
|
|
103
|
-
Give tier-4 agents cross-provider `fallbackModels` so subscription usage limits degrade gracefully instead of failing the run. Fallback triggers on rate-limit and
|
|
103
|
+
Give tier-4 agents cross-provider `fallbackModels` so subscription usage limits degrade gracefully instead of failing the run. Fallback triggers on retryable provider/model failures such as rate-limit, overload, unavailable-model, and provider-reported timeout errors. The outer run-level `timeoutMs` / `maxRuntimeMs` deadline is terminal and does not start another fallback attempt:
|
|
104
104
|
|
|
105
105
|
```yaml
|
|
106
106
|
---
|
|
@@ -255,4 +255,4 @@ The workflow:
|
|
|
255
255
|
|
|
256
256
|
- `/subagents-refresh-provider-models` writes a serialized provider model catalog with observed registry data, simple role-oriented classification, and live probe results from tiny one-shot `pi -p --model ... --no-tools` checks. The cache refreshes when missing or stale; use `--force` to ignore freshness and probe again immediately.
|
|
257
257
|
- `/subagents-generate-profiles` uses the provider catalog to produce quota and quality profiles.
|
|
258
|
-
- `/subagents-check-profile` re-checks each assigned model in a saved profile against the current registry and a live probe, so you can detect model removals, auth problems, or stale assignments.
|
|
258
|
+
- `/subagents-check-profile` re-checks each assigned model in a saved profile against the current registry and a live probe, so you can detect model removals, auth problems, or stale assignments.
|
|
@@ -157,7 +157,7 @@ For a top-level async run, `details.asyncDir` points at that directory; the fina
|
|
|
157
157
|
|
|
158
158
|
The result file is consumed and deleted once its completion notice is delivered. Before deletion, the watcher writes a versioned replay record under `<resultsDir>/completion-replay/<runId>.json` and a bounded output archive under `<resultsDir>/output-archives/<runId>.json`. Replay records expire with the completion deduplication window and are best-effort temporary state, not a permanent run ledger.
|
|
159
159
|
|
|
160
|
-
`
|
|
160
|
+
`bg_wait` surfaces a slim projection of each terminal payload it covered in its own tool-result `details.completions` — run identity, per-child agent/`runId`/success, artifact paths, and the bounded `archivePath`, without duplicating output text. It reads the replay when watcher delivery or a watcher restart has removed the one-shot result file and in-memory completion state is unavailable. Durable non-blocking wait subscriptions use the same replay in their delivered details. `subagent_wait` remains a deprecated compatibility alias. Workflow result files record each child's `runId` explicitly, since a workflow child's `artifactPaths` entry points at its saved output rather than the artifact files keyed by the id. Extensions observing `tool_result` events can read run and artifact identity from there instead of parsing the text summary.
|
|
161
161
|
|
|
162
162
|
Output archives reference an existing child output artifact or session file when one is available. For children without either file, the archive stores a per-child `result-tail` entry with `resultIndex`, bounded to 64 KiB per child, and records whether it was truncated. Replay and archive JSON use `version: 1`; consumers must ignore unknown fields.
|
|
163
163
|
|
|
@@ -259,4 +259,4 @@ Intercom delivery events:
|
|
|
259
259
|
|
|
260
260
|
`src/extension/index.ts` registers the notification handler that consumes `subagent:async-complete`. Control/attention events are surfaced as visible parent notices and persisted for async runs. Native supervisor requests are delivered only to the exact parent session that spawned the child.
|
|
261
261
|
|
|
262
|
-
`pi.events` is in-process only. It does not reach separate Pi processes or child subagents; use the file lifecycle artifacts or `pi-intercom` for cross-process coordination.
|
|
262
|
+
`pi.events` is in-process only. It does not reach separate Pi processes or child subagents; use the file lifecycle artifacts or `pi-intercom` for cross-process coordination.
|
|
@@ -4,12 +4,21 @@ Parameters and actions for the `subagent` tool. These are what the LLM passes wh
|
|
|
4
4
|
|
|
5
5
|
## Execution examples
|
|
6
6
|
|
|
7
|
-
Chaining is code-driven through `workflowScript`. Use `await runs.run(...)` for sequential steps and `await runs.all([{ key, agent, task }, ...])` for ordinary parallel fanout. `runs.all` resolves to an ordered array, not a key map, so use indexes, destructuring, or `.map(...)`, not `results.<key>`. Do not read `.output` from an unawaited `runs.run` launch. Stored `runs.run` promises are only for the advanced rolling fanout pattern under [Workflow steering](#workflow-steering), where every promise is later observed with direct `await`, `Promise.race`, or `Promise.all`. Legacy top-level `chain`, `tasks`, and `parallel` inputs are not supported. Helper functions must be plain functions or explicit Promise chains. Nested `async function` helpers, async arrows, and async methods are rejected so child-launch tracking stays portable across Node and Bun.
|
|
7
|
+
Chaining is code-driven through `workflowScript`. Use `await runs.run(...)` for sequential steps and `await runs.all([{ key, agent, task }, ...])` for ordinary parallel fanout. `runs.all` resolves to an ordered array, not a key map, so use indexes, destructuring, or `.map(...)`, not `results.<key>`. Do not read `.output` from an unawaited `runs.run` launch. Stored `runs.run` promises are only for the advanced rolling fanout pattern under [Workflow steering](#workflow-steering), where every promise is later observed with direct `await`, `Promise.race`, or `Promise.all`. Legacy top-level `chain`, `tasks`, and `parallel` inputs are not supported. Helper functions must be plain functions or explicit Promise chains. Nested `async function` helpers, async arrows, and async methods are rejected so child-launch tracking stays portable across Node and Bun. For permission-sensitive host calls, use an extension-owned named resource such as `{ workflow: "run-ci", args: { command: "npm test" } }`; raw public `workflowScript`/`workflowScriptPath` inputs have unknown resource provenance and cannot call `runs.host`. A resolved resource may internally use `runs.host(key, { kind: "command", command, timeoutMs, output?, role?, provider? })` within its authority ceiling; there is no per-step `cwd`, and commands and relative output paths use the workflow `cwd`. Set `cwd` on the outer `subagent({...})` request instead, or put a trusted directory change in the command (for example, `cd /path/to/worktree && npm test`).
|
|
8
8
|
|
|
9
9
|
Use `{ action: "validate", workflowScript }` to check statically decidable syntax and structure without launching children. It returns `{ ok, errors }` and fails the tool call when `ok` is false. Dynamic keys and values remain valid because runtime-only cases are not guessed.
|
|
10
10
|
|
|
11
11
|
Use `workflowScriptPath` instead of `workflowScript` to load the same JavaScript statement body from a file. The two fields are mutually exclusive. Relative paths resolve against the request `cwd`, and absolute paths pass through. The host reads the file before validation, scheduling, or sandbox execution. The workflow sandbox still has no filesystem access. Missing, unreadable, and empty files fail as file input errors.
|
|
12
12
|
|
|
13
|
+
For permission-extension interoperability, use one of the package-owned named resources with bounded `args` instead of caller-supplied workflow text:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
{ workflow: "review", args: { task: "Review the auth flow" } }
|
|
17
|
+
{ workflow: "run-ci", args: { command: "npm test" } }
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The host resolves the script and authority internally and records bounded provenance in workflow details and receipts. Named resources cannot be combined with `agent`, `task`, `workflowScript`, or `workflowScriptPath`; user/project resource registries are not part of this first slice.
|
|
21
|
+
|
|
13
22
|
```js
|
|
14
23
|
{ workflowScriptPath: "workflows/review.js", cwd: "/path/to/project" }
|
|
15
24
|
{ action: "validate", workflowScriptPath: "workflows/review.js" }
|
|
@@ -99,8 +108,8 @@ The complete plain-JSON inventory is validated before the first launch (maximum
|
|
|
99
108
|
| `async` | boolean | default-on | Background execution. Workflows default to background. `async:false` blocks the parent until completion. |
|
|
100
109
|
| `chatProgress` | `auto \| off \| live-card` | `auto` | WorkflowScript chat projection. `auto` renders a live in-chat card only for watched foreground workflows in the same Git repository, including managed worktrees; it is off otherwise. Explicit `live-card` requires `async:false` and the same Git repository. Async workflows have no inline live card, so omit `chatProgress` or use `auto`/`off`; use `async:false` only when the parent must block. |
|
|
101
110
|
| `isolation` | `none \| worktree` | - | Workflow child isolation. `none` runs in the shared cwd and does not need Git. `worktree` requires a managed Git worktree. Do not combine it with a contradictory `worktree` value. |
|
|
102
|
-
| `timeoutMs` / `maxRuntimeMs` | number | config `timeoutMs`, else 30 min foreground / single-agent async | Optional run-level max runtime in milliseconds. When omitted, the global [`timeoutMs`](configuration.md#timeoutms) config provides the default; absent that, foreground and plain single-agent async runs fall back to 30 minutes, while composite async runs (chains, parallel tasks, workflows) stay unbounded at the top level. |
|
|
103
|
-
| `toolTimeoutMs` | number | fast-tool default | Optional positive hard per-tool-call deadline in milliseconds. Precedence: call value → agent frontmatter → config → `SELESAI_SUBAGENT_TOOL_TIMEOUT_MS`. The timer starts on `tool_execution_start`, clears on the matching `tool_execution_end`, and terminates the run with `timedOut: true` if the tool remains open. When omitted, known-fast built-in tools get a five-minute default; long-running tools get attention notices but no hard default. It never extends the run deadline; `contact_supervisor`, `intercom`, and `subagent_wait` are exempt. |
|
|
111
|
+
| `timeoutMs` / `maxRuntimeMs` | number | config `timeoutMs`, else 30 min foreground / single-agent async | Optional run-level max runtime in milliseconds. When omitted, the global [`timeoutMs`](configuration.md#timeoutms) config provides the default; absent that, foreground and plain single-agent async runs fall back to 30 minutes, while composite async runs (chains, parallel tasks, workflows) stay unbounded at the top level. Expiration of this run-level deadline is terminal and does not trigger `fallbackModels`. |
|
|
112
|
+
| `toolTimeoutMs` | number | fast-tool default | Optional positive hard per-tool-call deadline in milliseconds. Precedence: call value → agent frontmatter → config → `SELESAI_SUBAGENT_TOOL_TIMEOUT_MS`. The timer starts on `tool_execution_start`, clears on the matching `tool_execution_end`, and terminates the run with `timedOut: true` if the tool remains open. When omitted, known-fast built-in tools get a five-minute default; long-running tools get attention notices but no hard default. It never extends the run deadline; `contact_supervisor`, `intercom`, `bg_wait`, and the deprecated `subagent_wait` alias are exempt. |
|
|
104
113
|
| `toolBudget` | object | none | Optional child tool-call budget `{ soft?, hard, block? }`. At `soft` the child is nudged to finalize. After `hard`, configured tools are blocked; `block` defaults to `read`, `grep`, `find`, and `ls`, while `"*"` blocks every tool call. Final assistant text is never blocked. |
|
|
105
114
|
| `usageBudget` | object | none | Optional root-only reported-usage budget `{ tokens?: { soft?, hard }, costUsd?: { soft?, hard } }`. Soft limits are status-only. Hard limits prevent later child launches after reported usage is reconciled; already-running children are not stopped and no reservations are made. |
|
|
106
115
|
| `cwd` | string | runtime cwd | Override working directory. |
|
|
@@ -470,4 +479,4 @@ Pass `share: true` to export a full session to HTML, upload it to a secret GitHu
|
|
|
470
479
|
{ workflowScript: `return runs.run("main", { agent: "scout", task: "..." })`, share: true }
|
|
471
480
|
```
|
|
472
481
|
|
|
473
|
-
This is disabled by default. Session data may contain source code, paths, environment variables, credentials, or other sensitive output. You need `gh` installed and authenticated.
|
|
482
|
+
This is disabled by default. Session data may contain source code, paths, environment variables, credentials, or other sensitive output. You need `gh` installed and authenticated.
|
|
@@ -173,4 +173,4 @@ A pi-subagents child is headless, so a pi-guard rule that resolves to `ask` cann
|
|
|
173
173
|
|
|
174
174
|
### External CLI profiles
|
|
175
175
|
|
|
176
|
-
External CLI profiles are opaque processes, so native permissions cannot intercept their tools. A launch with effective `ask` or `deny` rules is rejected for an external CLI agent instead of claiming enforcement.
|
|
176
|
+
External CLI profiles are opaque processes, so native permissions cannot intercept their tools. A launch with effective `ask` or `deny` rules is rejected for an external CLI agent instead of claiming enforcement.
|
|
@@ -57,6 +57,17 @@ subagent({ action: "validate", workflowScriptPath: "workflows/review.js" });
|
|
|
57
57
|
|
|
58
58
|
The fields are mutually exclusive. Relative paths resolve against the request `cwd`; absolute paths pass through. The host reads the file before validation, schedule creation, or workflow sandbox execution. The sandbox still has no filesystem access. Missing, unreadable, and empty files return file input errors instead of script syntax errors.
|
|
59
59
|
|
|
60
|
+
### Named workflow resources for permission extensions
|
|
61
|
+
|
|
62
|
+
Use a named workflow resource when a permission or policy extension needs to distinguish extension-resolved workflow content from raw model-authored scripts:
|
|
63
|
+
|
|
64
|
+
```js
|
|
65
|
+
subagent({ workflow: "review", args: { task: "Review the change" } });
|
|
66
|
+
subagent({ workflow: "run-ci", args: { command: "npm test" } });
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The host resolves the name and validates bounded plain-JSON `args` before starting the workflow. Resource provenance is recorded in workflow details and receipts for downstream permission/policy checks. Resource authority is not caller-supplied: `runs.host` is available only when the resolved resource explicitly grants the requested host key and command. Inline `workflowScript` and `workflowScriptPath` remain raw, unknown-provenance inputs, so their `runs.host` calls are unavailable through the public execution boundary. Named resources cannot be combined with `agent`, `task`, `workflowScript`, or `workflowScriptPath`; this first slice ships only the package-owned `review` and `run-ci` resources, not a user/project resource registry.
|
|
70
|
+
|
|
60
71
|
### Opt-in bounded workflows
|
|
61
72
|
|
|
62
73
|
Composite workflows have no default parent deadline. Add bounds only when the workflow contract calls for them:
|
|
@@ -162,23 +173,13 @@ The board is bounded and contains only lane/stage keys, state, success, retained
|
|
|
162
173
|
|
|
163
174
|
### Host command steps
|
|
164
175
|
|
|
165
|
-
Use `
|
|
176
|
+
Use the named `run-ci` resource when a permission/policy extension needs to admit one supported non-interactive command as workflow evidence instead of a child-agent run:
|
|
166
177
|
|
|
167
178
|
```js
|
|
168
|
-
subagent({
|
|
169
|
-
const tests = await runs.host("unit-tests", {
|
|
170
|
-
kind: "command",
|
|
171
|
-
command: "npm run test:unit",
|
|
172
|
-
timeoutMs: 120000,
|
|
173
|
-
output: "reports/unit-tests.log",
|
|
174
|
-
role: "ci",
|
|
175
|
-
provider: "local"
|
|
176
|
-
});
|
|
177
|
-
return { state: tests.state, exitCode: tests.exitCode, outputPath: tests.outputPath };
|
|
178
|
-
` });
|
|
179
|
+
subagent({ workflow: "run-ci", args: { command: "npm test", timeoutMs: 120000 } });
|
|
179
180
|
```
|
|
180
181
|
|
|
181
|
-
The first version supports only `
|
|
182
|
+
The first named resource version supports only `npm test` and `npm run typecheck`, with bounded timeout values. Its resolved script uses `runs.host("ci", ...)` and the resource authority admits only the selected command. **There is no per-step `cwd` field:** the command and relative output path use the workflow cwd. Set `cwd` on the outer `subagent({...})` request when the workflow should run in another directory. The command has no stdin, receives the workflow cwd, and must be awaited or returned. Stdout, stderr, and the saved log are bounded. A nonzero exit, timeout, abort, or output-write failure fails the workflow. Async status and terminal receipts store the bounded host-step state; renderers do not run commands or read command output.
|
|
182
183
|
|
|
183
184
|
### Steering a workflow child
|
|
184
185
|
|
|
@@ -471,4 +472,4 @@ Then run it through the native adapter:
|
|
|
471
472
|
|
|
472
473
|
The adapter delegates to the named subagent, applies `model`, `skill`, `cwd`, and fork/fresh context metadata, and supports runtime overrides such as `--subagent reviewer`, `--fork`, `--fresh`, and `--bg`.
|
|
473
474
|
|
|
474
|
-
Prompt templates with `chain:` frontmatter are translated into `workflowScript` and launched through `/prompt-workflow`; `/chain-prompts` is no longer registered.
|
|
475
|
+
Prompt templates with `chain:` frontmatter are translated into `workflowScript` and launched through `/prompt-workflow`; `/chain-prompts` is no longer registered.
|
|
@@ -87,7 +87,8 @@ if (fs.existsSync(EXTENSION_DIR)) {
|
|
|
87
87
|
console.log(`
|
|
88
88
|
The extension is now available in Selesai. Tools added:
|
|
89
89
|
• subagent - Delegate tasks to agents and inspect run status
|
|
90
|
-
•
|
|
90
|
+
• bg_wait - Wait for background/provider/detached work without native completion notifications
|
|
91
|
+
(subagent_wait remains a deprecated compatibility alias)
|
|
91
92
|
|
|
92
93
|
Documentation: ${EXTENSION_DIR}/README.md
|
|
93
|
-
`);
|
|
94
|
+
`);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-subagents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-subagents",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.61.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"acorn": "8.18.0",
|
|
@@ -1869,4 +1869,4 @@
|
|
|
1869
1869
|
"dev": true
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
|
-
}
|
|
1872
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-subagents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"description": "Selesai extension for single-agent delegation and scripted multi-agent workflows",
|
|
5
5
|
"author": "Nico Bailon",
|
|
6
6
|
"license": "MIT",
|
|
@@ -106,4 +106,4 @@
|
|
|
106
106
|
"typescript": "5.9.3",
|
|
107
107
|
"@selesai/code": "file:./test/fixtures/pi-coding-agent-shim"
|
|
108
108
|
}
|
|
109
|
-
}
|
|
109
|
+
}
|
|
@@ -55,4 +55,4 @@ Additional review target or focus from the slash command invocation:
|
|
|
55
55
|
|
|
56
56
|
$@
|
|
57
57
|
|
|
58
|
-
If the invocation provides a URL, issue link, file path, plan path, or freeform focus, treat it as the primary review scope. Read or fetch that target before assigning reviewer angles, and pass the target explicitly into each reviewer task.
|
|
58
|
+
If the invocation provides a URL, issue link, file path, plan path, or freeform focus, treat it as the primary review scope. Read or fetch that target before assigning reviewer angles, and pass the target explicitly into each reviewer task.
|
|
@@ -56,4 +56,4 @@ The memo states:
|
|
|
56
56
|
- confidence and what would change the decision
|
|
57
57
|
- roster, passes, fallbacks, and known advisor context modes
|
|
58
58
|
|
|
59
|
-
Identify advisors by profile name. State when fallback `oracle` was forked and context-aware. Escalate to a writer only after the memo and only when the user requests it.
|
|
59
|
+
Identify advisors by profile name. State when fallback `oracle` was forked and context-aware. Escalate to a writer only after the memo and only when the user requests it.
|
|
@@ -147,4 +147,4 @@ acceptanceRole: read-only
|
|
|
147
147
|
---
|
|
148
148
|
|
|
149
149
|
Analyze the council question independently. Inspect evidence directly. Do not edit, run mutating commands, commit, push, contact peers, or spawn subagents. Return concise, cited advice using the report contract in the council task.
|
|
150
|
-
```
|
|
150
|
+
```
|
|
@@ -55,10 +55,12 @@ block. Final reviews, validation gates, oracle checks, and publication checks
|
|
|
55
55
|
stay async.
|
|
56
56
|
|
|
57
57
|
In an ordinary interactive session, yield after launching or triaging useful
|
|
58
|
-
async lanes and let Pi wake the parent on completion;
|
|
59
|
-
|
|
60
|
-
`
|
|
61
|
-
|
|
58
|
+
async lanes and let Pi wake the parent on completion; ordinary async subagents
|
|
59
|
+
already have native completion notifications, so do not call `bg_wait()` merely
|
|
60
|
+
because a child is active. Use blocking `bg_wait()` only for provider,
|
|
61
|
+
detached, or other background work without a native notification when a
|
|
62
|
+
headless/run-to-completion contract or a required same-turn artifact makes the
|
|
63
|
+
result necessary before this turn ends. For
|
|
62
64
|
“continue/orchestrate/work until done,” keep the lane board moving while a safe
|
|
63
65
|
immediate action remains; if only async lanes are running, record the revisit
|
|
64
66
|
trigger and yield.
|
|
@@ -98,4 +100,4 @@ review.
|
|
|
98
100
|
- Preserve parent authority and escalate unresolved choices.
|
|
99
101
|
- Treat receipts, CI, review bots, and external-run records as evidence, not authority.
|
|
100
102
|
- For backlog maintenance, releases, merge queues, or other public-repo mutation policy, load the matching user/project skill. This package defines delegation primitives, not private policy.
|
|
101
|
-
- As a conservative orchestration policy, do not pass a hard `toolBudget` or tight `usageBudget` to mutation-capable workers. The default tool budget blocks read/search tools rather than mutation tools. If interrupted after a tool call starts, checkpoint after the current tool returns with changed files, build/test state, and commit or PR state.
|
|
103
|
+
- As a conservative orchestration policy, do not pass a hard `toolBudget` or tight `usageBudget` to mutation-capable workers. The default tool budget blocks read/search tools rather than mutation tools. If interrupted after a tool call starts, checkpoint after the current tool returns with changed files, build/test state, and commit or PR state.
|
package/dist/extensions/pi-subagents/skills/pi-subagents/references/constraints-and-recipes.md
CHANGED
|
@@ -21,7 +21,7 @@ This file is a detailed reference loaded from `skills/pi-subagents/SKILL.md`.
|
|
|
21
21
|
become second decision-makers.
|
|
22
22
|
- **Respect the fixed authority policy.** `authorityPolicy` is a small `auto` / `confirm` / `forbid` map for supported operational actions. Worktree discard, destructive cleanup, and spawn-budget grants default to confirmation; stop, steer, and schedule creation remain automatic. Use `worktree.discard` with the durable `handoffPath`; confirm-required actions refuse safely without an interactive UI and retained paths include manual Git recovery commands.
|
|
23
23
|
|
|
24
|
-
Runtime config can change orchestration behavior. `intercomBridge.resultDelivery: false` disables only external acknowledged grouped-result delivery when native parent notifications own completion; supervisor asks/progress stay active, and enabled transport failures are still reported. `asyncByDefault` and `forceTopLevelAsync` affect whether launches detach; `waitTool` can make direct `
|
|
24
|
+
Runtime config can change orchestration behavior. `intercomBridge.resultDelivery: false` disables only external acknowledged grouped-result delivery when native parent notifications own completion; supervisor asks/progress stay active, and enabled transport failures are still reported. `asyncByDefault` and `forceTopLevelAsync` affect whether launches detach; `waitTool` can make direct `bg_wait()` calls return immediately while headless auto-drain remains active, and its effective value is propagated to child runtimes; `globalConcurrencyLimit` bounds concurrent fanout, while a positive `maxSubagentSpawnsPerSession` optionally caps cumulative launches (`0` or unset is unlimited). Status and doctor report the budget; static work preflights declared capacity; only the settled root interactive parent can use `grant-spawn-budget` after native confirmation, with total grants bounded by the original cap. Compaction does not reset usage or grants; `singleRunOutputBaseDir` and `worktreeBaseDir` route outputs and worktrees; `completionBatch` groups async notifications. `artifactDir` is `session` (default), `project`, or `temp` and chooses where subagent artifacts are stored. Set `asyncWidget: false` to hide the above-editor background-run widget when a companion footer or dashboard owns that space (fleet inspector remains available). Per-run `artifacts: false` disables artifact capture for that launch. Async status and result artifacts include `lifecycleArtifactVersion` and fields such as `workflowGraph`, `steps`, `results`, `totalTokens`, `totalCost`, `turnCount`, `toolCount`, and nested `children`. Child protocol failures expose a structured `protocolError`; `protocol_output_limit` means a child emitted a JSONL line above the 16 MiB live-parser cap. Prefer these artifacts and `status` views over scraping terminal output.
|
|
25
25
|
|
|
26
26
|
### Keep report artifacts out of the repository root
|
|
27
27
|
|
|
@@ -67,4 +67,4 @@ Choose the smallest recipe that fits:
|
|
|
67
67
|
- **Intercom already waiting for a reply:** resolve the pending ask before starting another.
|
|
68
68
|
- **Parallel output-path conflict:** give each task a distinct output path, or disable output where no artifact is needed.
|
|
69
69
|
- **Worktree launch failure:** ensure the git tree is clean and task cwd overrides match the shared cwd.
|
|
70
|
-
- **Child fails before starting:** inspect `subagent({ action: "status", id: "..." })`, artifact metadata, output logs, and `doctor`; loader errors usually appear in child logs.
|
|
70
|
+
- **Child fails before starting:** inspect `subagent({ action: "status", id: "..." })`, artifact metadata, output logs, and `doctor`; loader errors usually appear in child logs.
|