@chankov/agent-fleet 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/agent-fleet/hooks/coms-stop-hook.mjs +53 -13
- package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
- package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
- package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +4 -0
- package/.pi/agent-fleet/scripts/fleet.ts +13 -17
- package/.pi/agent-fleet/scripts/flow.ts +2 -2
- package/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
- package/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +44 -0
- package/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
- package/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
- package/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
- package/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
- package/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +20 -13
- package/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
- package/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
- package/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
- package/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
- package/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +23 -13
- package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +100 -14
- package/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +1 -1
- package/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +204 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +10 -4
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +32 -16
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +3 -1
- package/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +52 -23
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +21 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.pi/agent-fleet/scripts/lib/fleet-command.ts +4 -8
- package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +2 -1
- package/.pi/agent-fleet/scripts/lib/team-project.ts +0 -2
- package/.pi/agent-fleet/scripts/team-up.ts +5 -12
- package/.pi/agent-fleet/scripts/workflows/lib/git.ts +9 -0
- package/.pi/agent-fleet/scripts/workflows/lib/quality.ts +17 -4
- package/.pi/agents/model-profiles.yaml +0 -2
- package/.pi/harnesses/agent-hub/README.md +117 -68
- package/.pi/harnesses/agent-hub/capability-packs.ts +7 -4
- package/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
- package/.pi/harnesses/agent-hub/commands/context.ts +0 -4
- package/.pi/harnesses/agent-hub/commands/recover.ts +2 -1
- package/.pi/harnesses/agent-hub/config/agents.ts +3 -1
- package/.pi/harnesses/agent-hub/config/model-profiles.ts +3 -0
- package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +14 -1
- package/.pi/harnesses/agent-hub/context-continuity-compat.ts +18 -3
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +17 -0
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +3 -1
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +4 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +9 -3
- package/.pi/harnesses/agent-hub/drift-watchdog.js +5 -10
- package/.pi/harnesses/agent-hub/execution-trace.ts +1 -1
- package/.pi/harnesses/agent-hub/filesystem-tool.ts +1 -1
- package/.pi/harnesses/agent-hub/footer.ts +2 -3
- package/.pi/harnesses/agent-hub/helpers.ts +4 -5
- package/.pi/harnesses/agent-hub/history-projection.ts +1 -1
- package/.pi/harnesses/agent-hub/index.ts +213 -196
- package/.pi/harnesses/agent-hub/input/shortcuts.ts +0 -7
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +0 -2
- package/.pi/harnesses/agent-hub/no-progress.ts +14 -9
- package/.pi/harnesses/agent-hub/operator-current-state.ts +5 -1
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/roster.ts +12 -3
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +10 -49
- package/.pi/harnesses/agent-hub/poll-command.ts +12 -4
- package/.pi/harnesses/agent-hub/proactive-snapshot.ts +12 -4
- package/.pi/harnesses/agent-hub/process-obligations.ts +42 -9
- package/.pi/harnesses/agent-hub/prompts/context.ts +17 -0
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +9 -1
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +2 -3
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +25 -8
- package/.pi/harnesses/agent-hub/provider-semaphore.js +5 -0
- package/.pi/harnesses/agent-hub/review-continuity.ts +5 -2
- package/.pi/harnesses/agent-hub/review-reuse.ts +2 -1
- package/.pi/harnesses/agent-hub/run-budget.js +22 -2
- package/.pi/harnesses/agent-hub/scope-gate.js +38 -0
- package/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
- package/.pi/harnesses/agent-hub/task-brief.ts +98 -0
- package/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +4 -0
- package/.pi/harnesses/agent-hub/tool-catalog-state.ts +5 -3
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +5 -7
- package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -1
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +184 -33
- package/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
- package/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
- package/.pi/harnesses/agent-hub/tools/run-flow.ts +41 -10
- package/.pi/harnesses/agent-hub/tools/team-adjust.ts +1 -1
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +12 -2
- package/.pi/harnesses/agent-hub/work-mode.ts +44 -49
- package/.pi/harnesses/agent-hub/write-isolation.ts +53 -8
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/codex-compat.ts +97 -0
- package/.pi/harnesses/lib/codex-contract.ts +259 -0
- package/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
- package/.pi/harnesses/lib/coms-core.ts +29 -11
- package/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +1 -1
- package/.pi/harnesses/lib/context-budget-hub-prompt.ts +6 -3
- package/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
- package/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
- package/.pi/harnesses/lib/fleet-codex-chat-view.ts +43 -0
- package/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
- package/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
- package/.pi/harnesses/lib/fleet-connection-control.ts +20 -3
- package/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
- package/.pi/harnesses/lib/fleet-notification-bootstrap.ts +152 -0
- package/.pi/harnesses/lib/fleet-notification-validation.ts +80 -24
- package/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
- package/.pi/harnesses/lib/fleet-transcript-store.ts +1 -1
- package/.versions/2.1.2/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.1.2/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet.ts +248 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +106 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +367 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +70 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +116 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +415 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-command.ts +268 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/team-up.ts +385 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.1.2/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.1.2/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.1.2/.pi/agents/peers.yaml +147 -0
- package/.versions/2.1.2/.pi/agents/teams.yaml +41 -0
- package/.versions/2.1.2/.pi/agents/voices.yaml +13 -0
- package/.versions/2.1.2/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.1.2/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.1.2/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.1.2/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.1.2/.pi/extensions/package.json +9 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/README.md +1584 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/agents.ts +181 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +301 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +262 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/index.ts +2705 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/input/shortcuts.ts +23 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/no-progress.ts +622 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/process-obligations.ts +177 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/scope-gate.js +233 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/action-executors.ts +216 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/context.ts +147 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +777 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +163 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/work-mode.ts +188 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.1.2/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.1.2/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.1.2/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.1.2/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.1.2/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-core.ts +734 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.1.2/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-connection-control.ts +77 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-notification-validation.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.1.2/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.1.2/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.1.2/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.1.2/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.1.2/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.1.2/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.1.2/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.1.2/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.1.2/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.1.2/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.1.2/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.1.2/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.1.2/.pi/harnesses/package.json +13 -0
- package/.versions/2.1.2/.pi/prompts/af-build.md +27 -0
- package/.versions/2.1.2/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.1.2/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.1.2/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.1.2/.pi/prompts/af-review.md +16 -0
- package/.versions/2.1.2/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.1.2/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.1.2/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.1.2/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.1.2/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.1.2/.pi/prompts/af-test.md +19 -0
- package/.versions/2.1.2/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.1.2/.version +1 -0
- package/.versions/2.1.2/agents/architect.md +24 -0
- package/.versions/2.1.2/agents/bowser.md +28 -0
- package/.versions/2.1.2/agents/builder.md +55 -0
- package/.versions/2.1.2/agents/code-reviewer.md +209 -0
- package/.versions/2.1.2/agents/deep-researcher.md +32 -0
- package/.versions/2.1.2/agents/documenter.md +22 -0
- package/.versions/2.1.2/agents/plan-reviewer.md +83 -0
- package/.versions/2.1.2/agents/planner.md +107 -0
- package/.versions/2.1.2/agents/releaser.md +24 -0
- package/.versions/2.1.2/agents/researcher.md +30 -0
- package/.versions/2.1.2/agents/security-auditor.md +167 -0
- package/.versions/2.1.2/agents/test-engineer.md +153 -0
- package/.versions/2.1.2/agents/web-debugger.md +44 -0
- package/.versions/2.1.2/agents/web-performance-auditor.md +194 -0
- package/.versions/2.1.2/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.1.2/docs/ARCHITECTURE.md +1195 -0
- package/.versions/2.1.2/docs/agent-fleet-setup.md +1143 -0
- package/.versions/2.1.2/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.1.2/docs/codex-local-mcp.md +503 -0
- package/.versions/2.1.2/docs/codex-session-bridge.md +44 -0
- package/.versions/2.1.2/docs/codex-setup.md +183 -0
- package/.versions/2.1.2/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.1.2/docs/fleet-native-voice.md +145 -0
- package/.versions/2.1.2/docs/getting-started.md +126 -0
- package/.versions/2.1.2/docs/npm-install.md +535 -0
- package/.versions/2.1.2/docs/pi-extensions.md +455 -0
- package/.versions/2.1.2/docs/pi-setup.md +92 -0
- package/.versions/2.1.2/docs/skill-anatomy.md +150 -0
- package/.versions/2.1.2/install-manifest.json +3239 -0
- package/.versions/2.1.2/justfile +247 -0
- package/.versions/2.1.2/manifest-meta.json +1087 -0
- package/.versions/2.1.2/references/accessibility-checklist.md +160 -0
- package/.versions/2.1.2/references/communication-contract.md +26 -0
- package/.versions/2.1.2/references/definition-of-done.md +67 -0
- package/.versions/2.1.2/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.1.2/references/observability-checklist.md +92 -0
- package/.versions/2.1.2/references/orchestration-patterns.md +370 -0
- package/.versions/2.1.2/references/performance-checklist.md +236 -0
- package/.versions/2.1.2/references/prompting-patterns.md +380 -0
- package/.versions/2.1.2/references/security-checklist.md +245 -0
- package/.versions/2.1.2/references/testing-patterns.md +235 -0
- package/.versions/2.1.2/references/workflow-authoring.md +304 -0
- package/.versions/2.1.2/skills/_internal/grilling.md +59 -0
- package/.versions/2.1.2/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.1.2/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.2/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.1.2/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.1.2/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.2/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.1.2/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.2/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.1.2/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.1.2/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.1.2/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.1.2/skills/fleet-connect/SKILL.md +25 -0
- package/.versions/2.1.2/skills/fleet-native-voice/SKILL.md +87 -0
- package/.versions/2.1.2/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.1.2/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.1.2/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.2/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.1.2/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.1.2/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.2/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.2/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.2/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.2/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.1.2/skills/incremental-implementation.zip +0 -0
- package/.versions/2.1.2/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.1.2/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.1.2/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.1.2/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.2/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.1.2/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.1.2/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.1.2/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.1.2/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.2/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.1.2/skills/spec-driven-development.zip +0 -0
- package/.versions/2.1.2/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.2.0/.pi/agent-fleet/hooks/coms-stop-hook.mjs +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/0.167-shared.json +1900 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/assessment.md +83 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile.md +43 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap.md +45 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture-profile.ts +53 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture.ts +102 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/catalog.md +91 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/channel.md +21 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurement.md +133 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurements.json +74 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/notification-profile-0.167.json +2679 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/observer.md +101 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/opaque-response.md +57 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/open-sent.md +68 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/probe-reader.md +51 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/profile.md +71 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/projection.md +147 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/reconnect.md +40 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/response-unions.md +74 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/semver.md +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/surface.md +73 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +63 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet.ts +244 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +44 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +113 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +101 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +453 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +204 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +76 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +132 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +435 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +44 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-command.ts +264 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +239 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-project.ts +176 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/git.ts +108 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/quality.ts +78 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.2.0/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.2.0/.pi/agents/model-profiles.yaml +132 -0
- package/.versions/2.2.0/.pi/agents/peers.yaml +147 -0
- package/.versions/2.2.0/.pi/agents/teams.yaml +41 -0
- package/.versions/2.2.0/.pi/agents/voices.yaml +13 -0
- package/.versions/2.2.0/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.2.0/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.2.0/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.2.0/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.2.0/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.2.0/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.2.0/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.2.0/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.2.0/.pi/extensions/package.json +9 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/README.md +1633 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-packs.ts +187 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/recover.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/config/agents.ts +183 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/config/model-profiles.ts +240 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +234 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +318 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +264 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-types.ts +297 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native.ts +242 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-watchdog.js +344 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/footer.ts +29 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/helpers.ts +269 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/index.ts +2722 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/input/shortcuts.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/no-progress.ts +627 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-current-state.ts +57 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/roster.ts +103 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/work-mode.ts +103 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/poll-command.ts +184 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot.ts +287 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/process-obligations.ts +210 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/context.ts +72 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/fragments.ts +94 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/session-start.ts +89 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/system-prompt.ts +142 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/provider-semaphore.js +143 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-continuity.ts +76 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-reuse.ts +48 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/run-budget.js +362 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-gate.js +271 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-brief.ts +98 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +83 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-state.ts +125 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/context.ts +149 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +93 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +928 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/run-flow.ts +177 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +173 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/work-mode.ts +183 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/write-isolation.ts +232 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.2.0/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.2.0/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.2.0/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.2.0/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.2.0/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.2.0/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.2.0/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/lib/codex-compat.ts +97 -0
- package/.versions/2.2.0/.pi/harnesses/lib/codex-contract.ts +259 -0
- package/.versions/2.2.0/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-core.ts +738 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget-hub-prompt.ts +124 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.2.0/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-chat-view.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-connection-control.ts +94 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-bootstrap.ts +152 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-validation.ts +122 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.2.0/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.2.0/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.2.0/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.2.0/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.2.0/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.2.0/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.2.0/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.2.0/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.2.0/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.2.0/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.2.0/.pi/harnesses/package.json +13 -0
- package/.versions/2.2.0/.pi/prompts/af-build.md +27 -0
- package/.versions/2.2.0/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.2.0/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.2.0/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.2.0/.pi/prompts/af-review.md +16 -0
- package/.versions/2.2.0/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.2.0/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.2.0/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.2.0/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.2.0/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.2.0/.pi/prompts/af-test.md +19 -0
- package/.versions/2.2.0/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.2.0/.version +1 -0
- package/.versions/2.2.0/agents/architect.md +24 -0
- package/.versions/2.2.0/agents/bowser.md +28 -0
- package/.versions/2.2.0/agents/builder.md +55 -0
- package/.versions/2.2.0/agents/code-reviewer.md +209 -0
- package/.versions/2.2.0/agents/deep-researcher.md +32 -0
- package/.versions/2.2.0/agents/documenter.md +22 -0
- package/.versions/2.2.0/agents/plan-reviewer.md +83 -0
- package/.versions/2.2.0/agents/planner.md +107 -0
- package/.versions/2.2.0/agents/releaser.md +24 -0
- package/.versions/2.2.0/agents/researcher.md +30 -0
- package/.versions/2.2.0/agents/security-auditor.md +167 -0
- package/.versions/2.2.0/agents/test-engineer.md +153 -0
- package/.versions/2.2.0/agents/web-debugger.md +44 -0
- package/.versions/2.2.0/agents/web-performance-auditor.md +194 -0
- package/.versions/2.2.0/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.2.0/docs/ARCHITECTURE.md +1291 -0
- package/.versions/2.2.0/docs/agent-fleet-setup.md +1161 -0
- package/.versions/2.2.0/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.2.0/docs/codex-local-mcp.md +520 -0
- package/.versions/2.2.0/docs/codex-session-bridge.md +44 -0
- package/.versions/2.2.0/docs/codex-setup.md +183 -0
- package/.versions/2.2.0/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.2.0/docs/fleet-native-voice.md +151 -0
- package/.versions/2.2.0/docs/getting-started.md +126 -0
- package/.versions/2.2.0/docs/npm-install.md +535 -0
- package/.versions/2.2.0/docs/pi-extensions.md +450 -0
- package/.versions/2.2.0/docs/pi-setup.md +92 -0
- package/.versions/2.2.0/docs/skill-anatomy.md +150 -0
- package/.versions/2.2.0/install-manifest.json +3226 -0
- package/.versions/2.2.0/justfile +246 -0
- package/.versions/2.2.0/manifest-meta.json +1098 -0
- package/.versions/2.2.0/references/accessibility-checklist.md +160 -0
- package/.versions/2.2.0/references/communication-contract.md +26 -0
- package/.versions/2.2.0/references/definition-of-done.md +67 -0
- package/.versions/2.2.0/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.2.0/references/observability-checklist.md +92 -0
- package/.versions/2.2.0/references/orchestration-patterns.md +370 -0
- package/.versions/2.2.0/references/performance-checklist.md +236 -0
- package/.versions/2.2.0/references/prompting-patterns.md +380 -0
- package/.versions/2.2.0/references/security-checklist.md +245 -0
- package/.versions/2.2.0/references/testing-patterns.md +235 -0
- package/.versions/2.2.0/references/workflow-authoring.md +304 -0
- package/.versions/2.2.0/skills/_internal/grilling.md +59 -0
- package/.versions/2.2.0/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.2.0/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.2.0/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.2.0/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.2.0/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.2.0/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.2.0/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.2.0/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.2.0/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.2.0/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.2.0/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.2.0/skills/fleet-connect/SKILL.md +29 -0
- package/.versions/2.2.0/skills/fleet-connect.zip +0 -0
- package/.versions/2.2.0/skills/fleet-native-voice/SKILL.md +103 -0
- package/.versions/2.2.0/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.2.0/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.2.0/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.2.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.2.0/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.2.0/skills/idea-refine/examples.md +238 -0
- package/.versions/2.2.0/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.2.0/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.2.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.2.0/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.2.0/skills/incremental-implementation.zip +0 -0
- package/.versions/2.2.0/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.2.0/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.2.0/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.2.0/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.2.0/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.2.0/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.2.0/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.2.0/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.2.0/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.2.0/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.2.0/skills/spec-driven-development.zip +0 -0
- package/.versions/2.2.0/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +40 -0
- package/README.md +7 -10
- package/bin/lib/set-codex-mcp.js +1 -1
- package/bin/lib/validate-overrides.js +8 -1
- package/docs/ARCHITECTURE.md +130 -26
- package/docs/MIGRATION-agent-fleet.md +26 -5
- package/docs/agent-fleet-setup.md +44 -26
- package/docs/claude-code-coms-bridge.md +1 -1
- package/docs/codex-local-mcp.md +44 -11
- package/docs/codex-session-bridge.md +2 -2
- package/docs/codex-setup.md +1 -1
- package/docs/fleet-native-voice.md +18 -4
- package/docs/npm-install.md +1 -1
- package/docs/pi-extensions.md +13 -18
- package/docs/system1-agentic.md +1 -1
- package/docs/system1-context-continuity.md +11 -5
- package/docs/system1-file-discovery.md +2 -2
- package/docs/workflows.md +24 -1
- package/install-manifest.json +15 -28
- package/justfile +3 -4
- package/manifest-meta.json +13 -2
- package/package.json +4 -2
- package/skills/fleet-connect/SKILL.md +20 -16
- package/skills/fleet-connect.zip +0 -0
- package/skills/fleet-native-voice.zip +0 -0
- /package/{.pi → .versions/2.1.2/.pi}/harnesses/agent-hub/commands/work-mode.ts +0 -0
- /package/{.pi → .versions/2.1.2/.pi}/harnesses/agent-hub/work-mode-controls.ts +0 -0
- /package/{agents → .versions/2.1.2/agents}/orchestrator.md +0 -0
|
@@ -0,0 +1,916 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* btw — in-process side tasks for pi with a live full-screen panel.
|
|
3
|
+
*
|
|
4
|
+
* `/af-btw <task>` forks the CURRENT session into an in-process sub-session
|
|
5
|
+
* (`createAgentSession`) that inherits the full conversation as context, works the
|
|
6
|
+
* side task in the same cwd, and streams into a full-screen panel with its own
|
|
7
|
+
* transcript + follow-up composer. A compact result card lands in the main
|
|
8
|
+
* transcript when the session next goes idle.
|
|
9
|
+
*
|
|
10
|
+
* Design constraints (all intentional — see .pi/extensions/btw/README.md):
|
|
11
|
+
* - Command-only surface. No model-callable tool, no subcommands. `/af-btw <task>`
|
|
12
|
+
* starts a task and opens the panel; `/af-btw` (no args) or `Alt+'` reopens it.
|
|
13
|
+
* - In-process sub-session, NOT a child `pi` process. The fork is a real
|
|
14
|
+
* `AgentSession` with fixed built-in tools and NO extensions/custom tools (the
|
|
15
|
+
* sub-session loads no extension runtime → no recursion, mirroring the old
|
|
16
|
+
* `--no-extensions` child).
|
|
17
|
+
* - The full-screen panel is the primary surface: it opens immediately, streams
|
|
18
|
+
* the sub-session live, and accepts follow-ups (mid-run follow-ups steer the
|
|
19
|
+
* active run; idle follow-ups start a fresh turn). `Esc` returns to the main
|
|
20
|
+
* session while the task keeps running; completion only toasts.
|
|
21
|
+
* - Each completed turn writes `.pi/btw-sessions/<id>.result.md` and queues a
|
|
22
|
+
* COMPACT card (✓/✗ + note + elapsed + first lines + artifact path) for the
|
|
23
|
+
* main transcript, delivered only when idle and kept OUT of the main agent's
|
|
24
|
+
* LLM context via an on("context") filter.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import type {
|
|
28
|
+
ExtensionAPI,
|
|
29
|
+
ExtensionContext,
|
|
30
|
+
ExtensionCommandContext,
|
|
31
|
+
MessageRenderer,
|
|
32
|
+
ContextEvent,
|
|
33
|
+
Theme,
|
|
34
|
+
AgentSession,
|
|
35
|
+
AgentSessionEvent,
|
|
36
|
+
} from "@mariozechner/pi-coding-agent";
|
|
37
|
+
import {sessionRootsFromEnv} from '../../harnesses/lib/workspace-context.ts';
|
|
38
|
+
import {
|
|
39
|
+
getMarkdownTheme,
|
|
40
|
+
copyToClipboard,
|
|
41
|
+
createAgentSession,
|
|
42
|
+
DefaultResourceLoader,
|
|
43
|
+
SessionManager,
|
|
44
|
+
getAgentDir,
|
|
45
|
+
DynamicBorder,
|
|
46
|
+
} from "@mariozechner/pi-coding-agent";
|
|
47
|
+
import {
|
|
48
|
+
Text,
|
|
49
|
+
Box,
|
|
50
|
+
Container,
|
|
51
|
+
Spacer,
|
|
52
|
+
Markdown,
|
|
53
|
+
Input,
|
|
54
|
+
matchesKey,
|
|
55
|
+
Key,
|
|
56
|
+
truncateToWidth,
|
|
57
|
+
} from "@mariozechner/pi-tui";
|
|
58
|
+
import { mkdirSync, writeFileSync, existsSync, readdirSync, statSync, rmSync } from "node:fs";
|
|
59
|
+
import { join } from "node:path";
|
|
60
|
+
import { FULLSCREEN_OVERLAY, bodyRows, fitToHeight } from "../../harnesses/lib/fleet-overlay.ts";
|
|
61
|
+
import { createPanelResources } from "../../harnesses/lib/fleet-panel.ts";
|
|
62
|
+
import {
|
|
63
|
+
MAX_RETAINED_TERMINAL_THREADS,
|
|
64
|
+
appendTimelineDelta as appendTimelineDeltaState,
|
|
65
|
+
appendTimelineEntry as appendTimelineEntryState,
|
|
66
|
+
beginTurn,
|
|
67
|
+
capSelectedMarkdown,
|
|
68
|
+
clampModalView,
|
|
69
|
+
finishTurn,
|
|
70
|
+
formatBtwCardPreview,
|
|
71
|
+
formatBtwResultMarkdown,
|
|
72
|
+
isTerminalStatus,
|
|
73
|
+
planTerminalRetention,
|
|
74
|
+
reconcileThreadView,
|
|
75
|
+
resolveThreadId,
|
|
76
|
+
shiftModalViewForPrunedEntries,
|
|
77
|
+
steerTurn,
|
|
78
|
+
turnElapsedMs,
|
|
79
|
+
} from "./state.js";
|
|
80
|
+
|
|
81
|
+
const RESULT_TYPE = "btw-result";
|
|
82
|
+
const STATUS_KEY = "btw";
|
|
83
|
+
// Background artifacts (forked session JSONL + result.md) older than this are pruned
|
|
84
|
+
// on session_start. They are pure debugging aids — the result also lives in the chat.
|
|
85
|
+
const CLEANUP_MAX_AGE_MS = 7 * 24 * 60 * 60 * 1000;
|
|
86
|
+
// Coding tools the sub-session runs with (matches pi's default built-in set).
|
|
87
|
+
const SUBSESSION_TOOLS = ["read", "bash", "edit", "write"];
|
|
88
|
+
// Header, border, composer border/label, composer, and hint are fixed chrome.
|
|
89
|
+
const BTW_CHROME_ROWS = 6;
|
|
90
|
+
// One entry in a thread's live transcript. Consecutive text/thinking deltas are
|
|
91
|
+
// coalesced into the trailing entry of the same kind; each tool call and each
|
|
92
|
+
// operator follow-up is its own entry.
|
|
93
|
+
interface TimelineEntry {
|
|
94
|
+
kind: "text" | "tool" | "thinking" | "user";
|
|
95
|
+
title: string;
|
|
96
|
+
content: string;
|
|
97
|
+
timestamp: number;
|
|
98
|
+
toolCallId?: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// A running (or finished) btw side task. Multiple may run concurrently; the panel
|
|
102
|
+
// binds to one at a time (`render` is set only while it is the shown thread).
|
|
103
|
+
interface BtwThread {
|
|
104
|
+
id: string;
|
|
105
|
+
note: string;
|
|
106
|
+
session: AgentSession;
|
|
107
|
+
status: "running" | "done" | "error";
|
|
108
|
+
timeline: TimelineEntry[];
|
|
109
|
+
// Lifetime marker for the retained thread; current-turn timing is separate.
|
|
110
|
+
startedAt: number;
|
|
111
|
+
turnStartedAt?: number;
|
|
112
|
+
turnFinishedAt?: number;
|
|
113
|
+
turns: number;
|
|
114
|
+
sessionFile: string;
|
|
115
|
+
resultPath: string;
|
|
116
|
+
unsubscribe?: () => void;
|
|
117
|
+
disposed?: boolean;
|
|
118
|
+
render?: (force?: boolean) => void;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface BtwDetails {
|
|
122
|
+
id: string;
|
|
123
|
+
note: string;
|
|
124
|
+
ok: boolean;
|
|
125
|
+
elapsedMs: number;
|
|
126
|
+
resultPath: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface PendingResult {
|
|
130
|
+
content: string;
|
|
131
|
+
details: BtwDetails;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
interface CurrentPanelHandle {
|
|
135
|
+
show: (id: string) => void;
|
|
136
|
+
currentId: () => string | undefined;
|
|
137
|
+
timelinePruned: (id: string, prunedCount: number) => void;
|
|
138
|
+
clamp: () => void;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export default function btwExtension(pi: ExtensionAPI) {
|
|
142
|
+
// Live threads keyed by btw id; `order` tracks creation order for ←/→ cycling
|
|
143
|
+
// and "most recent" defaults.
|
|
144
|
+
const threads = new Map<string, BtwThread>();
|
|
145
|
+
const order: string[] = [];
|
|
146
|
+
// Compact result cards waiting for the session to go idle before they are shown.
|
|
147
|
+
const pending: PendingResult[] = [];
|
|
148
|
+
// Most-recent context, refreshed on every hook so deferred delivery, status, and
|
|
149
|
+
// the panel always have a live handle after the original command returned.
|
|
150
|
+
let latestCtx: ExtensionContext | undefined;
|
|
151
|
+
// Panel lifecycle: guard against double-open, remember last-viewed thread, and
|
|
152
|
+
// expose a handle so a fresh /af-btw can retarget an already-open panel.
|
|
153
|
+
let panelOpen = false;
|
|
154
|
+
let lastViewedId: string | undefined;
|
|
155
|
+
let currentPanel: CurrentPanelHandle | undefined;
|
|
156
|
+
// Set on session_shutdown so abort()-driven prompt rejections don't push cards.
|
|
157
|
+
let shuttingDown = false;
|
|
158
|
+
|
|
159
|
+
// Cross-extension signal: once any btw command/shortcut has run this session, the
|
|
160
|
+
// agent-hub harness footer surfaces the "Alt+' btw" hint next to its "Alt+A view:"
|
|
161
|
+
// hint. A bare globalThis flag is the pragmatic bridge between two independent
|
|
162
|
+
// always-on extensions (no shared module). Harmless when agent-hub isn't loaded.
|
|
163
|
+
function markBtwActivated(): void {
|
|
164
|
+
(globalThis as { __btwActivated?: boolean }).__btwActivated = true;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function sessionsDir(ctx: ExtensionContext): string {
|
|
168
|
+
return join(ctx.cwd, ".pi", "btw-sessions");
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function mostRecentId(): string | undefined {
|
|
172
|
+
return resolveThreadId(undefined, order);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function runningCount(): number {
|
|
176
|
+
let n = 0;
|
|
177
|
+
for (const t of threads.values()) if (t.status === "running") n++;
|
|
178
|
+
return n;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function updateStatus(ctx: ExtensionContext | undefined): void {
|
|
182
|
+
const n = runningCount();
|
|
183
|
+
ctx?.ui.setStatus(STATUS_KEY, n > 0 ? `btw: ${n} running` : undefined);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function threadElapsedMs(t: BtwThread): number {
|
|
187
|
+
return turnElapsedMs(t, Date.now());
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function fmtDuration(ms: number): string {
|
|
191
|
+
const s = Math.round(ms / 1000);
|
|
192
|
+
if (s < 60) return `${s}s`;
|
|
193
|
+
return `${Math.floor(s / 60)}m ${s % 60}s`;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Deliver queued cards, but ONLY when idle. During streaming, sendMessage would
|
|
197
|
+
// steer/follow-up the active turn; the no-options call lands in the "append +
|
|
198
|
+
// display, no turn" branch only when not streaming. agent_end re-drives this.
|
|
199
|
+
function flush(): void {
|
|
200
|
+
const ctx = latestCtx;
|
|
201
|
+
if (!ctx || !ctx.isIdle() || pending.length === 0) return;
|
|
202
|
+
const batch = pending.splice(0);
|
|
203
|
+
for (const r of batch) {
|
|
204
|
+
pi.sendMessage({ customType: RESULT_TYPE, content: r.content, display: true, details: r.details });
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function cleanupOldArtifacts(ctx: ExtensionContext): void {
|
|
209
|
+
const dir = sessionsDir(ctx);
|
|
210
|
+
if (!existsSync(dir)) return;
|
|
211
|
+
const cutoff = Date.now() - CLEANUP_MAX_AGE_MS;
|
|
212
|
+
for (const name of readdirSync(dir)) {
|
|
213
|
+
const p = join(dir, name);
|
|
214
|
+
try {
|
|
215
|
+
if (statSync(p).mtimeMs < cutoff) rmSync(p, { force: true });
|
|
216
|
+
} catch {
|
|
217
|
+
/* best-effort */
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
function unsubscribeThread(t: BtwThread): void {
|
|
223
|
+
const unsubscribe = t.unsubscribe;
|
|
224
|
+
if (!unsubscribe) return;
|
|
225
|
+
t.unsubscribe = undefined;
|
|
226
|
+
try {
|
|
227
|
+
unsubscribe();
|
|
228
|
+
} catch {
|
|
229
|
+
/* best-effort */
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function ensureSubscribed(t: BtwThread): void {
|
|
234
|
+
if (t.disposed || t.unsubscribe) return;
|
|
235
|
+
t.unsubscribe = t.session.subscribe((ev) => handleEvent(t, ev));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function disposeThread(t: BtwThread): void {
|
|
239
|
+
if (t.disposed) return;
|
|
240
|
+
unsubscribeThread(t);
|
|
241
|
+
t.render = undefined;
|
|
242
|
+
t.disposed = true;
|
|
243
|
+
try {
|
|
244
|
+
t.session.dispose();
|
|
245
|
+
} catch {
|
|
246
|
+
/* best-effort */
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function reconcileThreadPointers(): void {
|
|
251
|
+
const currentId = currentPanel?.currentId();
|
|
252
|
+
const view = reconcileThreadView({ order, lastViewedId, currentId });
|
|
253
|
+
lastViewedId = view.lastViewedId;
|
|
254
|
+
if (!currentPanel) return;
|
|
255
|
+
if (view.currentId && view.currentId !== currentId) currentPanel.show(view.currentId);
|
|
256
|
+
else currentPanel.clamp();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function enforceTerminalRetention(): void {
|
|
260
|
+
const statuses = new Map<string, BtwThread["status"]>();
|
|
261
|
+
for (const id of order) {
|
|
262
|
+
const t = threads.get(id);
|
|
263
|
+
if (t) statuses.set(id, t.status);
|
|
264
|
+
}
|
|
265
|
+
const plan = planTerminalRetention(order, statuses, MAX_RETAINED_TERMINAL_THREADS);
|
|
266
|
+
if (plan.evictedIds.length === 0) return;
|
|
267
|
+
|
|
268
|
+
const evicted = new Set<string>();
|
|
269
|
+
for (const id of plan.evictedIds) {
|
|
270
|
+
const t = threads.get(id);
|
|
271
|
+
if (!t || !isTerminalStatus(t.status)) continue;
|
|
272
|
+
disposeThread(t);
|
|
273
|
+
threads.delete(id);
|
|
274
|
+
evicted.add(id);
|
|
275
|
+
}
|
|
276
|
+
if (evicted.size === 0) return;
|
|
277
|
+
order.length = 0;
|
|
278
|
+
order.push(...plan.order.filter((id) => threads.has(id) && !evicted.has(id)));
|
|
279
|
+
reconcileThreadPointers();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
function applyTimelineResult(t: BtwThread, result: { timeline: TimelineEntry[]; prunedCount: number }): void {
|
|
283
|
+
t.timeline = result.timeline;
|
|
284
|
+
if (result.prunedCount > 0) currentPanel?.timelinePruned(t.id, result.prunedCount);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function addTimelineEntry(t: BtwThread, entry: Omit<TimelineEntry, "timestamp"> & { timestamp?: number }): void {
|
|
288
|
+
applyTimelineResult(t, appendTimelineEntryState(t.timeline, entry, Date.now()));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// Framing for the side task. Unlike the old child-process version there IS now an
|
|
292
|
+
// interactive surface (the panel composer), so the "unattended" instruction is
|
|
293
|
+
// gone; the scoping + summary instructions stay.
|
|
294
|
+
function framedTask(note: string): string {
|
|
295
|
+
return [
|
|
296
|
+
"You have been resumed into a copy of another pi session — the conversation",
|
|
297
|
+
"history above is your full context. You are working a side task while the main",
|
|
298
|
+
"session continues. An operator is watching this side task in a panel and can send",
|
|
299
|
+
"you follow-up messages, so ask a brief clarifying question only if you are truly",
|
|
300
|
+
"blocked. Your file changes land in the same working directory as the main session,",
|
|
301
|
+
"so keep them scoped to exactly what the task asks.",
|
|
302
|
+
"",
|
|
303
|
+
`Side task: ${note}`,
|
|
304
|
+
"",
|
|
305
|
+
"End your reply with a concise summary of what you did and any result the main",
|
|
306
|
+
"session needs.",
|
|
307
|
+
].join("\n");
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// Coalesce a streaming text/thinking delta: extend the trailing entry when it is
|
|
311
|
+
// the same kind, otherwise start a new one. The state helper caps entry content
|
|
312
|
+
// and prunes old transcript entries before the panel sees the update.
|
|
313
|
+
function appendDelta(t: BtwThread, kind: "text" | "thinking", delta: string): void {
|
|
314
|
+
applyTimelineResult(t, appendTimelineDeltaState(t.timeline, kind, delta, Date.now()));
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
function summarizeToolArgs(toolName: string, args: unknown): string {
|
|
318
|
+
if (args && typeof args === "object") {
|
|
319
|
+
const a = args as Record<string, unknown>;
|
|
320
|
+
const path = a.file_path ?? a.path;
|
|
321
|
+
if (typeof path === "string") return path;
|
|
322
|
+
if (typeof a.command === "string") return a.command;
|
|
323
|
+
if (typeof a.pattern === "string") return a.pattern;
|
|
324
|
+
}
|
|
325
|
+
try {
|
|
326
|
+
const json = JSON.stringify(args);
|
|
327
|
+
return json && json !== "{}" ? truncateToWidth(json, 200) : "";
|
|
328
|
+
} catch {
|
|
329
|
+
return "";
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// Translate sub-session events into transcript entries.
|
|
334
|
+
function handleEvent(t: BtwThread, ev: AgentSessionEvent): void {
|
|
335
|
+
if (ev.type === "message_update") {
|
|
336
|
+
const a = ev.assistantMessageEvent;
|
|
337
|
+
if (a.type === "text_delta") appendDelta(t, "text", a.delta);
|
|
338
|
+
else if (a.type === "thinking_delta") appendDelta(t, "thinking", a.delta);
|
|
339
|
+
else return;
|
|
340
|
+
} else if (ev.type === "tool_execution_start") {
|
|
341
|
+
addTimelineEntry(t, {
|
|
342
|
+
kind: "tool",
|
|
343
|
+
title: ev.toolName || "tool",
|
|
344
|
+
content: summarizeToolArgs(ev.toolName, ev.args),
|
|
345
|
+
toolCallId: ev.toolCallId,
|
|
346
|
+
});
|
|
347
|
+
} else if (ev.type === "tool_execution_end") {
|
|
348
|
+
for (let i = t.timeline.length - 1; i >= 0; i--) {
|
|
349
|
+
const e = t.timeline[i];
|
|
350
|
+
if (e.kind === "tool" && e.toolCallId === ev.toolCallId) {
|
|
351
|
+
e.title = `${ev.toolName || "tool"} — ${ev.isError ? "✗ error" : "✓ done"}`;
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
} else {
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
t.render?.(false);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function writeResult(t: BtwThread, ok: boolean, answer: string, elapsedMs: number): void {
|
|
362
|
+
try {
|
|
363
|
+
writeFileSync(
|
|
364
|
+
t.resultPath,
|
|
365
|
+
formatBtwResultMarkdown({
|
|
366
|
+
note: t.note,
|
|
367
|
+
ok,
|
|
368
|
+
elapsedMs,
|
|
369
|
+
sessionFile: t.sessionFile,
|
|
370
|
+
answer,
|
|
371
|
+
}),
|
|
372
|
+
);
|
|
373
|
+
} catch {
|
|
374
|
+
/* best-effort */
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function pushCard(t: BtwThread, ok: boolean, answer: string, elapsedMs: number): void {
|
|
379
|
+
pending.push({
|
|
380
|
+
content: formatBtwCardPreview(answer),
|
|
381
|
+
details: { id: t.id, note: t.note, ok, elapsedMs, resultPath: t.resultPath },
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
function onTurnDone(t: BtwThread): void {
|
|
386
|
+
// abort() during shutdown resolves the prompt too — don't emit a card then.
|
|
387
|
+
if (shuttingDown) return;
|
|
388
|
+
t.turns += 1;
|
|
389
|
+
Object.assign(t, finishTurn(t, Date.now(), "done"));
|
|
390
|
+
unsubscribeThread(t);
|
|
391
|
+
const elapsedMs = threadElapsedMs(t);
|
|
392
|
+
const answer = (t.session.getLastAssistantText() || "").trim() || "_(side task finished but produced no text output)_";
|
|
393
|
+
writeResult(t, true, answer, elapsedMs);
|
|
394
|
+
pushCard(t, true, answer, elapsedMs);
|
|
395
|
+
updateStatus(latestCtx);
|
|
396
|
+
t.render?.(true);
|
|
397
|
+
latestCtx?.ui.notify(`btw done (${fmtDuration(elapsedMs)}): ${t.note}`, "info");
|
|
398
|
+
enforceTerminalRetention();
|
|
399
|
+
flush();
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
function onTurnError(t: BtwThread, err: unknown): void {
|
|
403
|
+
if (shuttingDown) return;
|
|
404
|
+
Object.assign(t, finishTurn(t, Date.now(), "error"));
|
|
405
|
+
unsubscribeThread(t);
|
|
406
|
+
const elapsedMs = threadElapsedMs(t);
|
|
407
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
408
|
+
const answer = `**Side task failed.**\n\n\`\`\`\n${message}\n\`\`\``;
|
|
409
|
+
addTimelineEntry(t, { kind: "text", title: "Error", content: answer });
|
|
410
|
+
writeResult(t, false, answer, elapsedMs);
|
|
411
|
+
pushCard(t, false, answer, elapsedMs);
|
|
412
|
+
updateStatus(latestCtx);
|
|
413
|
+
t.render?.(true);
|
|
414
|
+
latestCtx?.ui.notify(`btw error: ${t.note}`, "error");
|
|
415
|
+
enforceTerminalRetention();
|
|
416
|
+
flush();
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// Start a fresh turn on an idle thread (initial task or an idle follow-up). The
|
|
420
|
+
// prompt() promise resolves at the real agent_end, so it is our completion signal.
|
|
421
|
+
function startTurn(t: BtwThread, text: string): void {
|
|
422
|
+
Object.assign(t, beginTurn(t, Date.now()));
|
|
423
|
+
ensureSubscribed(t);
|
|
424
|
+
updateStatus(latestCtx);
|
|
425
|
+
t.session.prompt(text).then(
|
|
426
|
+
() => onTurnDone(t),
|
|
427
|
+
(err) => onTurnError(t, err),
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// Submit an operator follow-up. Mid-run it steers the active turn (and folds into
|
|
432
|
+
// that run's completion, so we do NOT attach a second completion handler); idle it
|
|
433
|
+
// starts a fresh turn.
|
|
434
|
+
function submitFollowUp(id: string, text: string): void {
|
|
435
|
+
const t = threads.get(id);
|
|
436
|
+
if (!t) return;
|
|
437
|
+
addTimelineEntry(t, { kind: "user", title: "You", content: text });
|
|
438
|
+
if (t.session.isStreaming) {
|
|
439
|
+
Object.assign(t, steerTurn(t));
|
|
440
|
+
t.session.prompt(text, { streamingBehavior: "steer" }).catch((err) => {
|
|
441
|
+
// Race: the run finished between the check and the queue → run it fresh.
|
|
442
|
+
if (!t.session.isStreaming) startTurn(t, text);
|
|
443
|
+
else latestCtx?.ui.notify(`btw: follow-up failed: ${err instanceof Error ? err.message : String(err)}`, "error");
|
|
444
|
+
});
|
|
445
|
+
updateStatus(latestCtx);
|
|
446
|
+
} else {
|
|
447
|
+
startTurn(t, text);
|
|
448
|
+
}
|
|
449
|
+
t.render?.(true);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
async function launch(ctx: ExtensionCommandContext, note: string): Promise<void> {
|
|
453
|
+
if(sessionRootsFromEnv()?.mode==='targeted'){ctx.ui.notify('btw is unavailable for --worktree: its in-process fork does not carry Fleet guard registrations. Use dispatch_agent for a guarded side task.','error');return;}
|
|
454
|
+
const mainSession = ctx.sessionManager.getSessionFile();
|
|
455
|
+
if (!mainSession || !existsSync(mainSession)) {
|
|
456
|
+
ctx.ui.notify("btw: no session file to fork yet — send a message first.", "error");
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
const dir = sessionsDir(ctx);
|
|
461
|
+
try {
|
|
462
|
+
mkdirSync(dir, { recursive: true });
|
|
463
|
+
} catch {
|
|
464
|
+
/* recursive mkdir tolerates an existing dir */
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
const id = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
|
|
468
|
+
|
|
469
|
+
// Fork the main session into our own dir, then wrap it in an in-process
|
|
470
|
+
// sub-session. A custom resource loader with noExtensions:true mirrors the old
|
|
471
|
+
// `--no-extensions` child — the sub-session loads no extension runtime, so it
|
|
472
|
+
// never re-runs this (or any) extension factory.
|
|
473
|
+
let session: AgentSession;
|
|
474
|
+
let sessionFile: string;
|
|
475
|
+
try {
|
|
476
|
+
const sm = SessionManager.forkFrom(mainSession, ctx.cwd, dir);
|
|
477
|
+
sessionFile = sm.getSessionFile() ?? join(dir, `${id}.jsonl`);
|
|
478
|
+
const loader = new DefaultResourceLoader({ cwd: ctx.cwd, agentDir: getAgentDir(), noExtensions: true });
|
|
479
|
+
await loader.reload();
|
|
480
|
+
const result = await createAgentSession({
|
|
481
|
+
cwd: ctx.cwd,
|
|
482
|
+
sessionManager: sm,
|
|
483
|
+
model: ctx.model,
|
|
484
|
+
modelRegistry: ctx.modelRegistry,
|
|
485
|
+
tools: SUBSESSION_TOOLS,
|
|
486
|
+
resourceLoader: loader,
|
|
487
|
+
});
|
|
488
|
+
session = result.session;
|
|
489
|
+
} catch (err) {
|
|
490
|
+
ctx.ui.notify(`btw: could not start side task — ${err instanceof Error ? err.message : String(err)}`, "error");
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
const thread: BtwThread = {
|
|
495
|
+
id,
|
|
496
|
+
note,
|
|
497
|
+
session,
|
|
498
|
+
status: "running",
|
|
499
|
+
timeline: [],
|
|
500
|
+
startedAt: Date.now(),
|
|
501
|
+
turns: 0,
|
|
502
|
+
sessionFile,
|
|
503
|
+
resultPath: join(dir, `${id}.result.md`),
|
|
504
|
+
};
|
|
505
|
+
threads.set(id, thread);
|
|
506
|
+
order.push(id);
|
|
507
|
+
|
|
508
|
+
startTurn(thread, framedTask(note));
|
|
509
|
+
updateStatus(ctx);
|
|
510
|
+
ctx.ui.notify(`btw started: ${note}`, "info");
|
|
511
|
+
|
|
512
|
+
// Open the panel immediately on this thread, or retarget an open panel.
|
|
513
|
+
if (panelOpen && currentPanel) currentPanel.show(id);
|
|
514
|
+
else void openPanel(ctx, id);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// ── Full-screen panel ─────────────────────────────
|
|
518
|
+
// Full-screen overlay with a live transcript (icons/markdown like agent-hub's
|
|
519
|
+
// ZoomUI) and a follow-up composer. Navigation keys are intercepted
|
|
520
|
+
// here; everything else feeds the composer.
|
|
521
|
+
class BtwPanel {
|
|
522
|
+
private selectedIndex = 0;
|
|
523
|
+
private scrollOffset = 0;
|
|
524
|
+
private followTail = true;
|
|
525
|
+
private contentHeight = bodyRows(undefined, BTW_CHROME_ROWS);
|
|
526
|
+
readonly input = new Input();
|
|
527
|
+
|
|
528
|
+
constructor(
|
|
529
|
+
public currentId: string,
|
|
530
|
+
private onFollowUp: (text: string) => void,
|
|
531
|
+
private notify: (m: string, type?: "info" | "warning" | "error" | "success") => void,
|
|
532
|
+
private close: () => void,
|
|
533
|
+
) {
|
|
534
|
+
this.input.focused = true;
|
|
535
|
+
this.input.onSubmit = (val: string) => {
|
|
536
|
+
const text = val.trim();
|
|
537
|
+
if (!text) return;
|
|
538
|
+
this.input.setValue("");
|
|
539
|
+
this.onFollowUp(text);
|
|
540
|
+
};
|
|
541
|
+
this.input.onEscape = () => this.close();
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
private get thread(): BtwThread | undefined {
|
|
545
|
+
return threads.get(this.currentId);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
private applyViewState(state: { selectedIndex: number; scrollOffset: number; followTail: boolean }): void {
|
|
549
|
+
this.selectedIndex = state.selectedIndex;
|
|
550
|
+
this.scrollOffset = state.scrollOffset;
|
|
551
|
+
this.followTail = state.followTail;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
clamp(): void {
|
|
555
|
+
this.applyViewState(
|
|
556
|
+
clampModalView(
|
|
557
|
+
{ selectedIndex: this.selectedIndex, scrollOffset: this.scrollOffset, followTail: this.followTail },
|
|
558
|
+
this.thread?.timeline.length ?? 0,
|
|
559
|
+
this.contentHeight,
|
|
560
|
+
),
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
timelinePruned(id: string, prunedCount: number): void {
|
|
565
|
+
if (id !== this.currentId) return;
|
|
566
|
+
this.applyViewState(
|
|
567
|
+
shiftModalViewForPrunedEntries(
|
|
568
|
+
{ selectedIndex: this.selectedIndex, scrollOffset: this.scrollOffset, followTail: this.followTail },
|
|
569
|
+
prunedCount,
|
|
570
|
+
this.thread?.timeline.length ?? 0,
|
|
571
|
+
this.contentHeight,
|
|
572
|
+
),
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
show(id: string): void {
|
|
577
|
+
const next = resolveThreadId(id, order);
|
|
578
|
+
if (!next || !threads.has(next)) return;
|
|
579
|
+
this.currentId = next;
|
|
580
|
+
this.selectedIndex = 0;
|
|
581
|
+
this.scrollOffset = 0;
|
|
582
|
+
this.followTail = true;
|
|
583
|
+
this.clamp();
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
private switchThread(dir: 1 | -1): void {
|
|
587
|
+
if (order.length < 2) return;
|
|
588
|
+
const i = order.indexOf(this.currentId);
|
|
589
|
+
const start = i >= 0 ? i : order.length - 1;
|
|
590
|
+
const next = order[(start + dir + order.length) % order.length];
|
|
591
|
+
this.show(next);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
handleInput(data: string, tui: { requestRender: () => void }): void {
|
|
595
|
+
this.clamp();
|
|
596
|
+
const t = this.thread;
|
|
597
|
+
const n = t ? t.timeline.length : 0;
|
|
598
|
+
const maxIndex = Math.max(0, n - 1);
|
|
599
|
+
const multi = order.length >= 2;
|
|
600
|
+
if (matchesKey(data, Key.up)) {
|
|
601
|
+
this.followTail = false;
|
|
602
|
+
this.selectedIndex = Math.max(0, this.selectedIndex - 1);
|
|
603
|
+
} else if (matchesKey(data, Key.down)) {
|
|
604
|
+
this.selectedIndex = Math.min(maxIndex, this.selectedIndex + 1);
|
|
605
|
+
if (n === 0 || this.selectedIndex >= maxIndex) this.followTail = true;
|
|
606
|
+
} else if (multi && matchesKey(data, Key.left)) {
|
|
607
|
+
this.switchThread(-1);
|
|
608
|
+
lastViewedId = this.currentId;
|
|
609
|
+
} else if (multi && matchesKey(data, Key.right)) {
|
|
610
|
+
this.switchThread(1);
|
|
611
|
+
lastViewedId = this.currentId;
|
|
612
|
+
} else if (matchesKey(data, Key.ctrl("c"))) {
|
|
613
|
+
void this.copySelected();
|
|
614
|
+
} else if (matchesKey(data, Key.escape)) {
|
|
615
|
+
this.close();
|
|
616
|
+
return;
|
|
617
|
+
} else {
|
|
618
|
+
// Composer handles printable text, Enter (submit), backspace, etc.
|
|
619
|
+
this.input.handleInput(data);
|
|
620
|
+
}
|
|
621
|
+
this.clamp();
|
|
622
|
+
tui.requestRender();
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
private async copySelected(): Promise<void> {
|
|
626
|
+
this.clamp();
|
|
627
|
+
const t = this.thread;
|
|
628
|
+
const item = t?.timeline[this.selectedIndex];
|
|
629
|
+
if (!item) return;
|
|
630
|
+
try {
|
|
631
|
+
await copyToClipboard(item.content);
|
|
632
|
+
this.notify("Copied entry", "success");
|
|
633
|
+
} catch (err) {
|
|
634
|
+
this.notify(`Copy failed: ${err instanceof Error ? err.message : String(err)}`, "error");
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
private renderEntry(entry: TimelineEntry, isSelected: boolean, width: number, theme: Theme, mdTheme: ReturnType<typeof getMarkdownTheme>): string[] {
|
|
639
|
+
const box = new Box(1, 0, (s: string) => (isSelected ? theme.bg("selectedBg", s) : s));
|
|
640
|
+
let icon = "○";
|
|
641
|
+
let color = "dim";
|
|
642
|
+
if (entry.kind === "text") {
|
|
643
|
+
icon = "🤖";
|
|
644
|
+
color = "accent";
|
|
645
|
+
} else if (entry.kind === "tool") {
|
|
646
|
+
icon = "🛠";
|
|
647
|
+
color = "warning";
|
|
648
|
+
} else if (entry.kind === "thinking") {
|
|
649
|
+
icon = "💭";
|
|
650
|
+
color = "dim";
|
|
651
|
+
} else if (entry.kind === "user") {
|
|
652
|
+
icon = "🧑";
|
|
653
|
+
color = "success";
|
|
654
|
+
}
|
|
655
|
+
box.addChild(new Text(`${theme.fg(color, icon)} ${theme.bold(entry.title)}`, 0, 0));
|
|
656
|
+
if (isSelected) {
|
|
657
|
+
box.addChild(new Markdown(capSelectedMarkdown(entry.content || "(empty)"), 2, 0, mdTheme));
|
|
658
|
+
} else {
|
|
659
|
+
const flat = (entry.content || "").replace(/\s+/g, " ").trim();
|
|
660
|
+
box.addChild(new Text(theme.fg("dim", " " + (truncateToWidth(flat, Math.max(0, width - 8)) || "…")), 0, 0));
|
|
661
|
+
}
|
|
662
|
+
return box.render(width);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
render(width: number, terminalRows: number | undefined, theme: Theme): string[] {
|
|
666
|
+
this.contentHeight = bodyRows(terminalRows, BTW_CHROME_ROWS);
|
|
667
|
+
const lines: string[] = [];
|
|
668
|
+
const mdTheme = getMarkdownTheme();
|
|
669
|
+
const t = this.thread;
|
|
670
|
+
|
|
671
|
+
// ── Header: BTW │ note │ status │ elapsed │ N/M ──
|
|
672
|
+
const head = new Container();
|
|
673
|
+
head.addChild(new DynamicBorder((s: string) => theme.fg("accent", s)));
|
|
674
|
+
if (t) {
|
|
675
|
+
const st = t.status;
|
|
676
|
+
const sc = st === "error" ? "error" : st === "running" ? "warning" : "success";
|
|
677
|
+
const idx = order.indexOf(this.currentId);
|
|
678
|
+
const pos = `${idx >= 0 ? idx + 1 : 1}/${order.length}`;
|
|
679
|
+
const noteShort = truncateToWidth(t.note, Math.max(10, width - 36));
|
|
680
|
+
const sep = theme.fg("dim", "│");
|
|
681
|
+
head.addChild(
|
|
682
|
+
new Text(
|
|
683
|
+
`${theme.fg("accent", theme.bold(" BTW"))} ${sep} ${theme.bold(noteShort)} ${sep} ${theme.fg(sc, st)} ${sep} ${theme.fg("dim", fmtDuration(threadElapsedMs(t)))} ${sep} ${theme.fg("success", pos)}`,
|
|
684
|
+
1,
|
|
685
|
+
0,
|
|
686
|
+
),
|
|
687
|
+
);
|
|
688
|
+
} else {
|
|
689
|
+
head.addChild(new Text(theme.fg("dim", " btw — no side task"), 1, 0));
|
|
690
|
+
}
|
|
691
|
+
lines.push(...head.render(width));
|
|
692
|
+
|
|
693
|
+
// ── Body: transcript (selected entry expanded, others previewed) ──
|
|
694
|
+
const items = t?.timeline ?? [];
|
|
695
|
+
this.clamp();
|
|
696
|
+
|
|
697
|
+
const composerLines = this.input.render(width);
|
|
698
|
+
// Input may wrap; borrow those extra rows from the transcript, never from
|
|
699
|
+
// the composer/hint chrome.
|
|
700
|
+
const transcriptHeight = Math.max(0, this.contentHeight - Math.max(0, composerLines.length - 1));
|
|
701
|
+
const bodyLines: string[] = [];
|
|
702
|
+
if (items.length === 0) {
|
|
703
|
+
bodyLines.push(theme.fg("dim", " Working…"));
|
|
704
|
+
} else {
|
|
705
|
+
for (let i = this.scrollOffset; i < items.length; i++) {
|
|
706
|
+
const card = this.renderEntry(items[i], i === this.selectedIndex, width, theme, mdTheme);
|
|
707
|
+
if (bodyLines.length > 0 && bodyLines.length + card.length > transcriptHeight) break;
|
|
708
|
+
bodyLines.push(...card);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
lines.push(...fitToHeight(bodyLines, transcriptHeight));
|
|
712
|
+
|
|
713
|
+
// ── Footer: composer + key hints ──
|
|
714
|
+
const footer = new Container();
|
|
715
|
+
footer.addChild(new DynamicBorder((s: string) => theme.fg("accent", s)));
|
|
716
|
+
footer.addChild(new Text(theme.fg("dim", " follow-up:"), 1, 0));
|
|
717
|
+
lines.push(...footer.render(width));
|
|
718
|
+
lines.push(...composerLines);
|
|
719
|
+
const switchHint = order.length >= 2 ? " · ←/→ switch" : "";
|
|
720
|
+
lines.push(theme.fg("dim", ` Enter send · Esc return to main (task keeps running) · ↑/↓ scroll${switchHint} · Ctrl+C copy`));
|
|
721
|
+
|
|
722
|
+
return fitToHeight(lines, this.contentHeight + BTW_CHROME_ROWS);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
async function openPanel(ctx: ExtensionContext, startId?: string): Promise<void> {
|
|
727
|
+
if (panelOpen) {
|
|
728
|
+
if (startId && currentPanel) currentPanel.show(startId);
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
const initial = resolveThreadId(startId, order) ?? mostRecentId();
|
|
732
|
+
if (!initial) {
|
|
733
|
+
ctx.ui.notify("No btw side tasks yet — /af-btw <task> to start one.", "info");
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
panelOpen = true;
|
|
737
|
+
lastViewedId = initial;
|
|
738
|
+
const resources = createPanelResources();
|
|
739
|
+
try {
|
|
740
|
+
await ctx.ui.custom<void>(
|
|
741
|
+
(tui, theme, _kb, done) => {
|
|
742
|
+
const panel = new BtwPanel(
|
|
743
|
+
initial,
|
|
744
|
+
(text) => submitFollowUp(panel.currentId, text),
|
|
745
|
+
(m, type) => ctx.ui.notify(m, (type === "success" ? "info" : type) as "info" | "warning" | "error"),
|
|
746
|
+
() => done(undefined),
|
|
747
|
+
);
|
|
748
|
+
|
|
749
|
+
// Throttle live refreshes to ~12fps; force pushes the final frame.
|
|
750
|
+
let lastRender = 0;
|
|
751
|
+
const requestRender = (force?: boolean) => {
|
|
752
|
+
const now = Date.now();
|
|
753
|
+
if (force || now - lastRender > 80) {
|
|
754
|
+
lastRender = now;
|
|
755
|
+
tui.requestRender();
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
// Bind the render hook to whichever thread the panel currently shows.
|
|
759
|
+
const bindRender = () => {
|
|
760
|
+
for (const th of threads.values()) th.render = undefined;
|
|
761
|
+
const cur = threads.get(panel.currentId);
|
|
762
|
+
if (cur) cur.render = requestRender;
|
|
763
|
+
};
|
|
764
|
+
bindRender();
|
|
765
|
+
|
|
766
|
+
// Let a fresh /af-btw retarget this open panel and keep selection valid when
|
|
767
|
+
// retention/pruning changes the backing thread list.
|
|
768
|
+
currentPanel = {
|
|
769
|
+
show: (id: string) => {
|
|
770
|
+
panel.show(id);
|
|
771
|
+
bindRender();
|
|
772
|
+
lastViewedId = panel.currentId;
|
|
773
|
+
tui.requestRender();
|
|
774
|
+
},
|
|
775
|
+
currentId: () => panel.currentId,
|
|
776
|
+
timelinePruned: (id: string, prunedCount: number) => {
|
|
777
|
+
panel.timelinePruned(id, prunedCount);
|
|
778
|
+
tui.requestRender();
|
|
779
|
+
},
|
|
780
|
+
clamp: () => {
|
|
781
|
+
panel.clamp();
|
|
782
|
+
tui.requestRender();
|
|
783
|
+
},
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
// Keep elapsed/spinner live even between stream events.
|
|
787
|
+
resources.every(500, () => tui.requestRender());
|
|
788
|
+
|
|
789
|
+
return {
|
|
790
|
+
render: (w: number) => panel.render(w, tui.terminal?.rows, theme as Theme),
|
|
791
|
+
handleInput: (data: string) => {
|
|
792
|
+
const before = panel.currentId;
|
|
793
|
+
panel.handleInput(data, tui);
|
|
794
|
+
if (panel.currentId !== before) {
|
|
795
|
+
bindRender();
|
|
796
|
+
lastViewedId = panel.currentId;
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
invalidate: () => {},
|
|
800
|
+
dispose: () => resources.dispose(),
|
|
801
|
+
};
|
|
802
|
+
},
|
|
803
|
+
{ ...FULLSCREEN_OVERLAY, onHandle: (h) => h.focus() },
|
|
804
|
+
);
|
|
805
|
+
} finally {
|
|
806
|
+
resources.dispose();
|
|
807
|
+
currentPanel = undefined;
|
|
808
|
+
for (const th of threads.values()) th.render = undefined;
|
|
809
|
+
panelOpen = false;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
pi.registerCommand("af-btw", {
|
|
814
|
+
description: "Start a side task in a live panel (full session context), or reopen the panel. Usage: /af-btw [task]",
|
|
815
|
+
handler: async (args: string, ctx: ExtensionCommandContext) => {
|
|
816
|
+
latestCtx = ctx;
|
|
817
|
+
markBtwActivated();
|
|
818
|
+
const note = args.trim();
|
|
819
|
+
if (!note) {
|
|
820
|
+
if (threads.size > 0) {
|
|
821
|
+
await openPanel(ctx, lastViewedId);
|
|
822
|
+
} else {
|
|
823
|
+
ctx.ui.notify("Usage: /af-btw <task> — runs a side task with this session's full context.", "warning");
|
|
824
|
+
}
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
await launch(ctx, note);
|
|
828
|
+
},
|
|
829
|
+
});
|
|
830
|
+
|
|
831
|
+
// Alt+' reopens the panel. Chosen at the operator's request: unlike Alt+B (pi's
|
|
832
|
+
// editor cursor-word-left) it doesn't collide with a composer motion. Was
|
|
833
|
+
// Alt+Shift+B → Alt+B → Alt+' — pick another binding here if your terminal eats it.
|
|
834
|
+
pi.registerShortcut("alt+'", {
|
|
835
|
+
description: "Open the btw side-task panel",
|
|
836
|
+
handler: async (ctx) => {
|
|
837
|
+
latestCtx = ctx;
|
|
838
|
+
markBtwActivated();
|
|
839
|
+
if (threads.size === 0) {
|
|
840
|
+
ctx.ui.notify("No btw side tasks yet — /af-btw <task> to start one.", "info");
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
await openPanel(ctx, lastViewedId);
|
|
844
|
+
},
|
|
845
|
+
});
|
|
846
|
+
|
|
847
|
+
// Render the compact result card: header (✓/✗ + note + elapsed), the first lines
|
|
848
|
+
// of the final answer, and the artifact path. The full answer lives in result.md.
|
|
849
|
+
const renderer: MessageRenderer<BtwDetails> = (message, _options, theme) => {
|
|
850
|
+
const d = message.details;
|
|
851
|
+
const body =
|
|
852
|
+
typeof message.content === "string"
|
|
853
|
+
? message.content
|
|
854
|
+
: message.content
|
|
855
|
+
.filter((c) => c.type === "text")
|
|
856
|
+
.map((c) => (c as { text: string }).text)
|
|
857
|
+
.join("\n");
|
|
858
|
+
|
|
859
|
+
const container = new Container();
|
|
860
|
+
container.addChild(new Spacer(1));
|
|
861
|
+
const box = new Box(1, 1, (s: string) => theme.bg("customMessageBg", s));
|
|
862
|
+
const icon = d?.ok === false ? theme.fg("error", "✗") : theme.fg("success", "✓");
|
|
863
|
+
const elapsed = d ? theme.fg("dim", ` · ${fmtDuration(d.elapsedMs)}`) : "";
|
|
864
|
+
box.addChild(new Text(`${icon} ${theme.bold(`btw${d?.note ? `: ${d.note}` : ""}`)}${elapsed}`, 0, 0));
|
|
865
|
+
box.addChild(new Spacer(1));
|
|
866
|
+
box.addChild(new Markdown(body || "_(no output)_", 0, 0, getMarkdownTheme()));
|
|
867
|
+
if (d?.resultPath) {
|
|
868
|
+
box.addChild(new Spacer(1));
|
|
869
|
+
box.addChild(new Text(theme.fg("dim", `full result: ${d.resultPath}`), 0, 0));
|
|
870
|
+
}
|
|
871
|
+
container.addChild(box);
|
|
872
|
+
return container;
|
|
873
|
+
};
|
|
874
|
+
pi.registerMessageRenderer<BtwDetails>(RESULT_TYPE, renderer);
|
|
875
|
+
|
|
876
|
+
// Keep btw cards visible in the transcript but OUT of the main agent's LLM
|
|
877
|
+
// context — they are for the human, and must not derail the main reasoning.
|
|
878
|
+
pi.on("context", (ev: ContextEvent) => {
|
|
879
|
+
const filtered = ev.messages.filter(
|
|
880
|
+
(m) => !(m.role === "custom" && (m as { customType?: string }).customType === RESULT_TYPE),
|
|
881
|
+
);
|
|
882
|
+
if (filtered.length !== ev.messages.length) return { messages: filtered };
|
|
883
|
+
});
|
|
884
|
+
|
|
885
|
+
pi.on("session_start", async (_ev, ctx) => {
|
|
886
|
+
latestCtx = ctx;
|
|
887
|
+
cleanupOldArtifacts(ctx);
|
|
888
|
+
updateStatus(ctx);
|
|
889
|
+
});
|
|
890
|
+
|
|
891
|
+
pi.on("agent_end", async (_ev, ctx) => {
|
|
892
|
+
latestCtx = ctx;
|
|
893
|
+
// The main turn just ended → we are (about to be) idle. Defer one tick so the
|
|
894
|
+
// streaming flag is fully cleared before flush() checks isIdle().
|
|
895
|
+
setTimeout(flush, 0);
|
|
896
|
+
});
|
|
897
|
+
|
|
898
|
+
pi.on("session_shutdown", async () => {
|
|
899
|
+
shuttingDown = true;
|
|
900
|
+
pending.length = 0;
|
|
901
|
+
const retained = [...threads.values()];
|
|
902
|
+
for (const t of retained) {
|
|
903
|
+
try {
|
|
904
|
+
await t.session.abort();
|
|
905
|
+
} catch {
|
|
906
|
+
/* best-effort */
|
|
907
|
+
}
|
|
908
|
+
disposeThread(t);
|
|
909
|
+
}
|
|
910
|
+
threads.clear();
|
|
911
|
+
order.length = 0;
|
|
912
|
+
lastViewedId = undefined;
|
|
913
|
+
currentPanel?.clamp();
|
|
914
|
+
updateStatus(latestCtx);
|
|
915
|
+
});
|
|
916
|
+
}
|