@chankov/agent-fleet 2.0.4 → 2.0.6
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/agents/model-profiles.yaml +39 -34
- package/.pi/harnesses/agent-hub/README.md +85 -42
- package/.pi/harnesses/agent-hub/acceptance.ts +62 -0
- package/.pi/harnesses/agent-hub/artifacts.js +1 -1
- package/.pi/harnesses/agent-hub/budget-continuation.ts +0 -60
- package/.pi/harnesses/agent-hub/budget-recovery.ts +97 -0
- package/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/context.ts +2 -0
- package/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.pi/harnesses/agent-hub/config/agents.ts +3 -9
- package/.pi/harnesses/agent-hub/context/agent-state.ts +1 -1
- package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +7 -5
- package/.pi/harnesses/agent-hub/context/budgets.ts +8 -14
- package/.pi/harnesses/agent-hub/debate-command.ts +2 -2
- package/.pi/harnesses/agent-hub/dispatch-coms.ts +4 -1
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +37 -18
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +5 -5
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +2 -0
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +23 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +56 -30
- package/.pi/harnesses/agent-hub/dispatch-observability.ts +6 -1
- package/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.pi/harnesses/agent-hub/footer.ts +2 -2
- package/.pi/harnesses/agent-hub/hub-state-audit.js +5 -0
- package/.pi/harnesses/agent-hub/index.ts +148 -85
- package/.pi/harnesses/agent-hub/input/shortcuts.ts +0 -29
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +2 -0
- package/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +9 -30
- package/.pi/harnesses/agent-hub/monitor-control.ts +1 -1
- package/.pi/harnesses/agent-hub/no-progress.ts +76 -0
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/profile-runtime.ts +59 -3
- package/.pi/harnesses/agent-hub/policy/roster.ts +16 -1
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +3 -2
- package/.pi/harnesses/agent-hub/poll-command.ts +2 -2
- package/.pi/harnesses/agent-hub/prompts/context.ts +1 -0
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +3 -1
- package/.pi/harnesses/agent-hub/research/runtime.ts +19 -2
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +18 -6
- package/.pi/harnesses/agent-hub/scope-gate.js +50 -30
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +5 -4
- package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +6 -3
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +99 -25
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +4 -2
- package/.pi/harnesses/agent-hub/types.ts +2 -0
- package/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +4 -2
- package/.pi/harnesses/agent-hub/ui/grid.ts +16 -118
- package/.pi/harnesses/agent-hub/ui/pool.ts +7 -7
- package/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
- package/.pi/harnesses/agent-hub/work-mode-controls.ts +1 -1
- package/.pi/harnesses/ask-user-remote/README.md +8 -2
- package/.pi/harnesses/ask-user-remote/index.ts +40 -14
- package/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.pi/harnesses/ask-user-remote/race-core.js +23 -5
- package/.pi/harnesses/ask-user-remote/runtime-ask.ts +43 -0
- package/.pi/harnesses/coms/README.md +1 -1
- package/.pi/harnesses/coms/index.ts +7 -1
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +5 -4
- package/.pi/harnesses/lib/fleet-dashboard-ops.ts +0 -5
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +8 -2
- package/.versions/2.0.5/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.5/.pi/agents/model-profiles.yaml +83 -0
- package/.versions/2.0.5/.pi/agents/peers.yaml +145 -0
- package/.versions/2.0.5/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.5/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.5/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.5/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/2.0.5/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/2.0.5/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.5/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.5/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.5/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.5/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.5/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.5/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.5/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.5/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.5/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.5/.pi/extensions/package.json +9 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/README.md +1139 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/context.ts +41 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/config/agents.ts +179 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +211 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/budgets.ts +208 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-coms.ts +234 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-complete.ts +135 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +156 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +193 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-types.ts +208 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native.ts +199 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/fixtures/registration-surface.json +55 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/index.ts +2115 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/input/shortcuts.ts +18 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +141 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +95 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/roster.ts +79 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/work-mode.ts +118 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/context.ts +46 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/system-prompt.ts +110 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research/runtime.ts +177 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research/spawn-run.ts +148 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/spawn.ts +404 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/action-executors.ts +149 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/context.ts +132 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +79 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +232 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/types.ts +62 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/detail-panel.ts +178 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +125 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/grid.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/pool.ts +98 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.5/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/2.0.5/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/2.0.5/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/2.0.5/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.5/.pi/harnesses/coms/index.ts +276 -0
- package/.versions/2.0.5/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.5/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.5/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.5/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.5/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-dashboard-ops.ts +161 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-dashboard-view.ts +148 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.5/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.5/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.5/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.5/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.5/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.5/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.5/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.5/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.5/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.5/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.5/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.5/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.5/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.5/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.5/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.5/.version +1 -0
- package/.versions/2.0.5/agents/architect.md +25 -0
- package/.versions/2.0.5/agents/bowser.md +28 -0
- package/.versions/2.0.5/agents/builder.md +56 -0
- package/.versions/2.0.5/agents/code-reviewer.md +210 -0
- package/.versions/2.0.5/agents/deep-researcher.md +33 -0
- package/.versions/2.0.5/agents/documenter.md +23 -0
- package/.versions/2.0.5/agents/orchestrator.md +23 -0
- package/.versions/2.0.5/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.5/agents/planner.md +106 -0
- package/.versions/2.0.5/agents/releaser.md +25 -0
- package/.versions/2.0.5/agents/researcher.md +31 -0
- package/.versions/2.0.5/agents/security-auditor.md +168 -0
- package/.versions/2.0.5/agents/test-engineer.md +154 -0
- package/.versions/2.0.5/agents/web-debugger.md +44 -0
- package/.versions/2.0.5/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.5/bin/catalog/harness-runtime-closure.json +36 -0
- package/.versions/2.0.5/docs/ARCHITECTURE.md +407 -0
- package/.versions/2.0.5/docs/agent-fleet-setup.md +561 -0
- package/.versions/2.0.5/docs/claude-code-coms-bridge.md +133 -0
- package/.versions/2.0.5/docs/coms-hermes-bridge.md +189 -0
- package/.versions/2.0.5/docs/getting-started.md +124 -0
- package/.versions/2.0.5/docs/npm-install.md +299 -0
- package/.versions/2.0.5/docs/pi-extensions.md +446 -0
- package/.versions/2.0.5/docs/pi-setup.md +74 -0
- package/.versions/2.0.5/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.5/hermes/README.md +347 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.5/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.5/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.5/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.5/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.5/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.5/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.5/install-manifest.json +2942 -0
- package/.versions/2.0.5/justfile +289 -0
- package/.versions/2.0.5/manifest-meta.json +969 -0
- package/.versions/2.0.5/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.5/references/communication-contract.md +26 -0
- package/.versions/2.0.5/references/definition-of-done.md +67 -0
- package/.versions/2.0.5/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.5/references/observability-checklist.md +91 -0
- package/.versions/2.0.5/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.5/references/performance-checklist.md +153 -0
- package/.versions/2.0.5/references/prompting-patterns.md +380 -0
- package/.versions/2.0.5/references/security-checklist.md +179 -0
- package/.versions/2.0.5/references/testing-patterns.md +236 -0
- package/.versions/2.0.5/references/workflow-authoring.md +304 -0
- package/.versions/2.0.5/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.5/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.5/scripts/coms-cli.ts +484 -0
- package/.versions/2.0.5/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.5/scripts/fleet.ts +222 -0
- package/.versions/2.0.5/scripts/flow.ts +137 -0
- package/.versions/2.0.5/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.5/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.5/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.5/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.5/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.5/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.5/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.5/scripts/lib/fleet-command.ts +270 -0
- package/.versions/2.0.5/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.5/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.5/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.5/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.5/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.5/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.5/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.5/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.5/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.5/scripts/lib/team-project.ts +213 -0
- package/.versions/2.0.5/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.5/scripts/package-lock.json +35 -0
- package/.versions/2.0.5/scripts/package.json +9 -0
- package/.versions/2.0.5/scripts/peer-banner.ts +40 -0
- package/.versions/2.0.5/scripts/peer-launch.ts +285 -0
- package/.versions/2.0.5/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.5/scripts/team-up.ts +406 -0
- package/.versions/2.0.5/scripts/workflows/lib/agent-phase.ts +133 -0
- package/.versions/2.0.5/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.5/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.5/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.5/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.5/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.5/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.5/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.5/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.5/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.5/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.5/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.5/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.5/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.5/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.5/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.5/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.5/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.5/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.5/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.5/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.5/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.5/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.5/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.5/scripts/workflows/wf-scout.ts +38 -0
- package/.versions/2.0.5/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.5/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.5/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/2.0.5/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.5/skills/context-engineering/SKILL.md +291 -0
- package/.versions/2.0.5/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/2.0.5/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.5/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.5/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.5/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.5/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.5/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.5/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.5/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.5/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.5/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.5/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.5/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/2.0.5/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.5/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.5/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.5/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.5/skills/planning-and-task-breakdown/SKILL.md +265 -0
- package/.versions/2.0.5/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/2.0.5/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/2.0.5/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/.versions/2.0.6/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.6/.pi/agents/model-profiles.yaml +83 -0
- package/.versions/2.0.6/.pi/agents/peers.yaml +145 -0
- package/.versions/2.0.6/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.6/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.6/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.6/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/2.0.6/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/2.0.6/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/2.0.6/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.6/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.6/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.6/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.6/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.6/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.6/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.6/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.6/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.6/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.6/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.6/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.6/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.6/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.6/.pi/extensions/package.json +9 -0
- package/.versions/2.0.6/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.6/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.6/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.6/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.6/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.6/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.6/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/README.md +1203 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/acceptance.ts +62 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/budget-recovery.ts +97 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/context.ts +43 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/config/agents.ts +173 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +213 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/context/budgets.ts +202 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-coms.ts +237 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-complete.ts +154 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +156 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +193 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native-types.ts +230 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-native.ts +213 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/fixtures/registration-surface.json +57 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/hub-state-audit.js +64 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/index.ts +2151 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/input/shortcuts.ts +18 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/no-progress.ts +76 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/policy/work-mode.ts +119 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/context.ts +47 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/prompts/system-prompt.ts +112 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/research/runtime.ts +192 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/research/spawn-run.ts +156 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/scope-gate.js +123 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/spawn.ts +404 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/action-executors.ts +149 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/context.ts +134 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +273 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/types.ts +63 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/detail-panel.ts +178 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +125 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/grid.ts +42 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.6/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.6/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.6/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.6/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.6/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.6/.pi/harnesses/ask-user-remote/runtime-ask.ts +43 -0
- package/.versions/2.0.6/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.6/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.6/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.6/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.6/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/2.0.6/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/2.0.6/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.6/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.6/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.6/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.6/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.6/.pi/harnesses/lib/context-budget-child-prompt.ts +180 -0
- package/.versions/2.0.6/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.6/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.6/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.6/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-dashboard-ops.ts +161 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-dashboard-view.ts +148 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.6/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.6/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.6/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.6/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.6/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.6/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.6/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.6/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.6/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.6/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.6/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.6/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.6/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.6/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.6/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.6/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.6/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.6/.version +1 -0
- package/.versions/2.0.6/agents/architect.md +25 -0
- package/.versions/2.0.6/agents/bowser.md +28 -0
- package/.versions/2.0.6/agents/builder.md +56 -0
- package/.versions/2.0.6/agents/code-reviewer.md +210 -0
- package/.versions/2.0.6/agents/deep-researcher.md +33 -0
- package/.versions/2.0.6/agents/documenter.md +23 -0
- package/.versions/2.0.6/agents/orchestrator.md +23 -0
- package/.versions/2.0.6/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.6/agents/planner.md +106 -0
- package/.versions/2.0.6/agents/releaser.md +25 -0
- package/.versions/2.0.6/agents/researcher.md +31 -0
- package/.versions/2.0.6/agents/security-auditor.md +168 -0
- package/.versions/2.0.6/agents/test-engineer.md +154 -0
- package/.versions/2.0.6/agents/web-debugger.md +44 -0
- package/.versions/2.0.6/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.6/bin/catalog/harness-runtime-closure.json +31 -0
- package/.versions/2.0.6/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.6/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.6/docs/ARCHITECTURE.md +407 -0
- package/.versions/2.0.6/docs/agent-fleet-setup.md +561 -0
- package/.versions/2.0.6/docs/claude-code-coms-bridge.md +133 -0
- package/.versions/2.0.6/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.6/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.6/docs/getting-started.md +126 -0
- package/.versions/2.0.6/docs/npm-install.md +301 -0
- package/.versions/2.0.6/docs/pi-extensions.md +446 -0
- package/.versions/2.0.6/docs/pi-setup.md +76 -0
- package/.versions/2.0.6/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.6/hermes/README.md +347 -0
- package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.6/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.6/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.6/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.6/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.6/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.6/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.6/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.6/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.6/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.6/install-manifest.json +2924 -0
- package/.versions/2.0.6/justfile +247 -0
- package/.versions/2.0.6/manifest-meta.json +976 -0
- package/.versions/2.0.6/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.6/references/communication-contract.md +26 -0
- package/.versions/2.0.6/references/definition-of-done.md +67 -0
- package/.versions/2.0.6/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.6/references/observability-checklist.md +91 -0
- package/.versions/2.0.6/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.6/references/performance-checklist.md +153 -0
- package/.versions/2.0.6/references/prompting-patterns.md +380 -0
- package/.versions/2.0.6/references/security-checklist.md +179 -0
- package/.versions/2.0.6/references/testing-patterns.md +236 -0
- package/.versions/2.0.6/references/workflow-authoring.md +304 -0
- package/.versions/2.0.6/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.6/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.6/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.6/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.6/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.6/scripts/fleet-codex-read.py +146 -0
- package/.versions/2.0.6/scripts/fleet.ts +216 -0
- package/.versions/2.0.6/scripts/flow.ts +137 -0
- package/.versions/2.0.6/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.6/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.6/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.6/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.6/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.6/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.6/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.6/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.6/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.6/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.6/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.6/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.6/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.6/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.6/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.6/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.6/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.6/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.6/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.6/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.6/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.6/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.6/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.6/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.6/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.6/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.6/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.6/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.6/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.6/scripts/package-lock.json +35 -0
- package/.versions/2.0.6/scripts/package.json +9 -0
- package/.versions/2.0.6/scripts/peer-banner.ts +40 -0
- package/.versions/2.0.6/scripts/peer-launch.ts +285 -0
- package/.versions/2.0.6/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.6/scripts/team-up.ts +378 -0
- package/.versions/2.0.6/scripts/workflows/lib/agent-phase.ts +133 -0
- package/.versions/2.0.6/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.6/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.6/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.6/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.6/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.6/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.6/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.6/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.6/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.6/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.6/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.6/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.6/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.6/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.6/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.6/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.6/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.6/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.6/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.6/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.6/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.6/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.6/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.6/scripts/workflows/wf-scout.ts +38 -0
- package/.versions/2.0.6/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.6/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.6/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/2.0.6/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.6/skills/context-engineering/SKILL.md +291 -0
- package/.versions/2.0.6/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/2.0.6/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.6/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.6/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.6/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.6/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.6/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.6/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.6/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.6/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.6/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.6/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.6/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/2.0.6/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.6/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.6/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.6/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.6/skills/planning-and-task-breakdown/SKILL.md +265 -0
- package/.versions/2.0.6/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/2.0.6/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/2.0.6/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/2.0.6/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/CHANGELOG.md +29 -0
- package/README.md +13 -15
- package/agents/builder.md +2 -2
- package/agents/documenter.md +2 -1
- package/agents/planner.md +2 -1
- package/agents/releaser.md +2 -2
- package/bin/catalog/harness-runtime-closure.json +1 -6
- package/bin/lib/desired.js +2 -2
- package/bin/lib/features.js +8 -1
- package/bin/snapshot-version.js +1 -2
- package/codex/fleet-session-client/SKILL.md +34 -0
- package/codex/fleet-session-client.zip +0 -0
- package/docs/ARCHITECTURE.md +4 -4
- package/docs/MIGRATION-agent-fleet.md +2 -2
- package/docs/agent-fleet-setup.md +28 -14
- package/docs/assets/branding/README.md +33 -0
- package/docs/assets/branding/agent-fleet-logo-v1.png +0 -0
- package/docs/assets/branding/agent-fleet-logo-white-v1.png +0 -0
- package/docs/codex-session-bridge.md +219 -0
- package/docs/coms-hermes-bridge.md +4 -5
- package/docs/getting-started.md +2 -0
- package/docs/npm-install.md +3 -1
- package/docs/pi-extensions.md +3 -4
- package/docs/pi-setup.md +2 -0
- package/hermes/README.md +1 -1
- package/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +19 -16
- package/install-manifest.json +54 -72
- package/justfile +0 -42
- package/manifest-meta.json +50 -43
- package/package.json +10 -7
- package/scripts/coms-cli.ts +2 -61
- package/scripts/fleet-codex-client.ts +69 -0
- package/scripts/fleet-codex-read.py +146 -0
- package/scripts/fleet.ts +0 -6
- package/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/scripts/lib/fleet-codex-operations.ts +190 -0
- package/scripts/lib/fleet-codex-session.ts +166 -0
- package/scripts/lib/fleet-codex-transport.ts +124 -0
- package/scripts/lib/fleet-command.ts +5 -23
- package/scripts/lib/team-project.ts +15 -50
- package/scripts/team-up.ts +6 -34
- /package/{codex → .versions/2.0.5/codex}/CONDUCTOR.md +0 -0
- /package/{docs → .versions/2.0.5/docs}/codex-remote-conductor.md +0 -0
- /package/{scripts → .versions/2.0.5/scripts}/codex-conductor.ts +0 -0
- /package/{scripts → .versions/2.0.5/scripts}/codex-remote-control.ts +0 -0
- /package/{scripts → .versions/2.0.5/scripts}/lib/codex-conductor.ts +0 -0
- /package/{scripts → .versions/2.0.5/scripts}/lib/codex-remote-control.ts +0 -0
- /package/{systemd → .versions/2.0.5/systemd}/user/agent-fleet-codex-remote-control.service.in +0 -0
|
@@ -14,9 +14,9 @@ export function composeHubFooterLeft(
|
|
|
14
14
|
.join(" · ");
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export function composeFleetFooterHint(
|
|
17
|
+
export function composeFleetFooterHint(executionPair?: string): string {
|
|
18
18
|
const work = executionPair ? ` · Alt+M ${executionPair}` : "";
|
|
19
|
-
return `Alt+A fleet${work}
|
|
19
|
+
return `Alt+A fleet${work}`;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export function renderHubFooterLeft(
|
|
@@ -45,6 +45,11 @@ export function buildBudgetContinuationAudit(input = {}) {
|
|
|
45
45
|
return {
|
|
46
46
|
schema_version: 1,
|
|
47
47
|
kind: text(input.kind, 16),
|
|
48
|
+
...(input.correlation ? { correlation: {
|
|
49
|
+
task_id: text(input.correlation.taskId, 256),
|
|
50
|
+
tranche: count(input.correlation.tranche),
|
|
51
|
+
request_id: text(input.correlation.requestId, 256),
|
|
52
|
+
} } : {}),
|
|
48
53
|
continuation: count(input.continuation),
|
|
49
54
|
reason: text(input.reason, 64),
|
|
50
55
|
prior: {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { registerRetry } from "./commands/retry.ts";
|
|
2
|
+
import { createNoProgressGuard } from "./no-progress.ts";
|
|
3
|
+
import { closeEvidenceSession, pruneEvidenceSessions } from "./execution-evidence.ts";
|
|
1
4
|
import { isCompleteProfile, dispatcherSelection, type ModelProfiles } from './config/model-profiles.ts';
|
|
2
5
|
import { createProfileActivation } from './policy/profile-activation.ts';
|
|
3
|
-
import { readActiveProfile, profileWorkInFlight, withProfileWork, assertProfileModel,
|
|
6
|
+
import { readActiveProfile, profileWorkInFlight, withProfileWork, assertProfileModel, profilePeerGate } from './policy/profile-runtime.ts';
|
|
4
7
|
/** Agent Hub composition root: constructs mutable state, contexts, registrars, and ordered lifecycle ports. */
|
|
5
8
|
|
|
6
9
|
import type { AgentDef, AgentState, ResearchState } from "./types.ts";
|
|
@@ -87,8 +90,11 @@ import { createToolExecutionOrchestration } from "./tools/execution-orchestratio
|
|
|
87
90
|
import { latestPersistedCapabilityState, type ContextState, type PendingOperation } from "./capability-packs.ts";
|
|
88
91
|
import { contextPressureDiagnostic, createContextPressureState, transitionContextPressure, type ContextPressureState } from "./context-pressure.ts";
|
|
89
92
|
import { confirmationOutcome, capabilityConfirmationPack, capabilityConfirmationQuestion, type ConfirmableCapabilityPack } from "./capability-confirmation.ts";
|
|
90
|
-
import {
|
|
93
|
+
import { createBudgetRecovery } from "./budget-recovery.ts";
|
|
94
|
+
import { requestRuntimeAsk } from "../ask-user-remote/runtime-ask.ts";
|
|
95
|
+
import { registerBudgetContinue } from "./commands/budget-continue.ts";
|
|
91
96
|
import { observeAskUserResults } from "../ask-user-remote/index.ts";
|
|
97
|
+
import { handleQuestionEnvelope, registerQuestionPeer } from "../ask-user-remote/questions.ts";
|
|
92
98
|
import { buildHubPeerSpawnPlan, launchHubPeerInPane } from "./peer-spawn-plan.ts";
|
|
93
99
|
import { RESEARCH_TOOLS, createResearchRuntime, parseResearchHandle } from "./research/runtime.ts";
|
|
94
100
|
import { requireSafetyHarness, resolveSafetyHarness } from "./safety-routing.ts";
|
|
@@ -108,6 +114,7 @@ import {
|
|
|
108
114
|
TIMEOUT_MS,
|
|
109
115
|
} from "../lib/coms-core.ts";
|
|
110
116
|
import { createGridUI } from "./ui/grid.ts";
|
|
117
|
+
import { collectRunningStripItems } from "./ui/running-strip.ts";
|
|
111
118
|
import { createDetailPanel } from "./ui/detail-panel.ts";
|
|
112
119
|
import { createFleetDashboard } from "./ui/fleet-dashboard.ts";
|
|
113
120
|
import { createContextBudgetUi } from "./ui/context-budget.ts";
|
|
@@ -116,7 +123,7 @@ import { registerInputShortcuts } from "./input/shortcuts.ts";
|
|
|
116
123
|
import { createCompletionPresentation } from "./input/completions.ts";
|
|
117
124
|
import { createResearchControls } from "./research/controls.ts";
|
|
118
125
|
import { createContextPressureLifecycle, createContextPressureRootState } from "./lifecycle/context-pressure.ts";
|
|
119
|
-
import { createTurnLifecycleHandlers } from "./lifecycle/turn-handlers.ts";
|
|
126
|
+
import { createTurnLifecycleHandlers, registerTurnPresence } from "./lifecycle/turn-handlers.ts";
|
|
120
127
|
import { createMonitorSession } from "./lifecycle/monitor-session.ts";
|
|
121
128
|
import { applySessionOverrides, registerSessionOrchestration, resetHubSession } from "./lifecycle/session-orchestration.ts";
|
|
122
129
|
import { openZoom, type TimelineEntry, type Zoomable } from "./ui/zoom.ts";
|
|
@@ -124,7 +131,7 @@ import { openHistory } from "./ui/history.ts";
|
|
|
124
131
|
import { createExecutionHistoryStore, type HistoryEntry } from "./ui/history-store.ts";
|
|
125
132
|
import { createDispatchComs, createDispatchNative, createDispatchObservability, type DelegationChild } from "./dispatch-core.ts";
|
|
126
133
|
import { buildFleetRows, type PeerInput } from "../lib/fleet-read-model.ts";
|
|
127
|
-
import {
|
|
134
|
+
import { gridColumnsForSize } from "../lib/fleet-dashboard-ops.ts";
|
|
128
135
|
import { createFleetTranscriptStore } from "../lib/fleet-transcript-store.ts";
|
|
129
136
|
import type { ContextBudgetComponent } from "../lib/context-budget.ts";
|
|
130
137
|
import { buildHubSystemPrompt as assembleHubPrompt } from "./prompts/system-prompt.ts";
|
|
@@ -169,16 +176,21 @@ export default function (pi: ExtensionAPI) {
|
|
|
169
176
|
const coms = createComsPeer({
|
|
170
177
|
pi,
|
|
171
178
|
getContext: () => currentCtx,
|
|
172
|
-
onPeersChanged: () => {
|
|
179
|
+
onPeersChanged: () => {},
|
|
173
180
|
acceptInbound: () => currentCtx && modelWorkBlockedByRosterRecovery(currentCtx)
|
|
174
181
|
? "orchestrator roster recovery required"
|
|
175
182
|
: null,
|
|
176
183
|
handleCustomEnvelope: (socket, envelope) => {
|
|
184
|
+
if (handleQuestionEnvelope(socket, envelope)) return true;
|
|
177
185
|
if (envelope.type !== "access_request") return false;
|
|
178
186
|
void accessApprovalRouter.handle(socket, envelope as AccessRequest);
|
|
179
187
|
return true;
|
|
180
188
|
},
|
|
181
189
|
});
|
|
190
|
+
const unregisterQuestions = registerQuestionPeer(() => coms.ready && coms.identity ? {
|
|
191
|
+
project: coms.identity.project, peer: coms.identity.name,
|
|
192
|
+
sessionId: coms.identity.session_id, startedAt: coms.identity.started_at,
|
|
193
|
+
} : null);
|
|
182
194
|
let identity: ComsIdentity | null = null;
|
|
183
195
|
const peerCards = coms.peerCards;
|
|
184
196
|
const pendingReplies = coms.pendingReplies;
|
|
@@ -240,17 +252,6 @@ export default function (pi: ExtensionAPI) {
|
|
|
240
252
|
|
|
241
253
|
let activeTeamName = "";
|
|
242
254
|
let gridCols = 2;
|
|
243
|
-
// View mode toggled by Alt+A: "dashboard" = full bordered card grid above the
|
|
244
|
-
// editor; "compact" = one line per *running* agent (name · context · state)
|
|
245
|
-
// rendered BELOW the editor, just above the footer. Compact is the default;
|
|
246
|
-
// idle/done agents are hidden so an idle session shows only the prompt + footer.
|
|
247
|
-
let viewMode: "compact" | "off" = "compact";
|
|
248
|
-
// Compact-view agent switcher: the key of the marked subagent (lowercase persona
|
|
249
|
-
// name for team specialists — matching /af-zoom resolution), or null when nothing
|
|
250
|
-
// is marked. Research helpers are Fleet-Dashboard-only. main is never listed (it is the
|
|
251
|
-
// session under the input box). Alt+]/Alt+[ move it; Alt+\ zooms it.
|
|
252
|
-
let markedAgent: string | null = null;
|
|
253
|
-
let runningWidgetInstalled = false;
|
|
254
255
|
let widgetCtx: any;
|
|
255
256
|
let sessionDir = "";
|
|
256
257
|
let contextWindow = 0;
|
|
@@ -366,9 +367,6 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
366
367
|
// Human wait time is not fleet work. Track it separately from history UI
|
|
367
368
|
// intervals so a continuation can rebase the budget without erasing history.
|
|
368
369
|
let turnBudgetAskUserWaitMs = 0;
|
|
369
|
-
type PendingBudgetContinuation = { kind: BudgetContinuationKind; reason: string };
|
|
370
|
-
let pendingBudgetContinuation: PendingBudgetContinuation | null = null;
|
|
371
|
-
const budgetContinuationAsks = new Map<string, { kind: BudgetContinuationKind; reason: string; params: { context?: unknown; options?: unknown } }>();
|
|
372
370
|
let taskContinuationCount = 0;
|
|
373
371
|
let turnContinuationCount = 0;
|
|
374
372
|
// ── Task-scoped budget & tier (run-budget.js) ──
|
|
@@ -431,12 +429,14 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
431
429
|
// surfaced in the status line. Resets on session_start.
|
|
432
430
|
let delegatedTokens = 0;
|
|
433
431
|
|
|
432
|
+
const noProgress = createNoProgressGuard();
|
|
434
433
|
const budgetCtx = createBudgetContext({
|
|
435
434
|
getBudgetOverrides: () => budgetOverrides,
|
|
436
435
|
getTurnDispatchCount: () => turnDispatchCount, setTurnDispatchCount: value => { turnDispatchCount = value; },
|
|
437
436
|
getTurnResearchCount: () => turnResearchCount, setTurnResearchCount: value => { turnResearchCount = value; },
|
|
438
437
|
getTurnBudgetAskUserWaitMs: () => turnBudgetAskUserWaitMs, setTurnBudgetAskUserWaitMs: value => { turnBudgetAskUserWaitMs = value; },
|
|
439
|
-
|
|
438
|
+
resetBudgetRecovery: () => budgetRecovery.reset(),
|
|
439
|
+
resetNoProgress: () => noProgress.reset(),
|
|
440
440
|
getTaskContinuationCount: () => taskContinuationCount, setTaskContinuationCount: value => { taskContinuationCount = value; },
|
|
441
441
|
getTurnContinuationCount: () => turnContinuationCount, setTurnContinuationCount: value => { turnContinuationCount = value; },
|
|
442
442
|
getTaskDispatchCount: () => taskDispatchCount, setTaskDispatchCount: value => { taskDispatchCount = value; },
|
|
@@ -458,10 +458,32 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
458
458
|
});
|
|
459
459
|
const {
|
|
460
460
|
currentBudget, currentTaskBudget, taskCounters, taskActiveElapsedMs, turnBudgetActiveElapsedMs,
|
|
461
|
-
|
|
461
|
+
renewTurnBudgetWindow, continueTaskBudgetWindow, closeTurnActiveTime, resetTaskWindow,
|
|
462
462
|
hubAuditIdentity, hubLocationSuffix, taskResetSnapshot, budgetContinuationSnapshot,
|
|
463
463
|
appendTaskResetEntry, appendBudgetContinuationEntry, updateModeStatus, ensureTaskTier,
|
|
464
464
|
} = budgetCtx;
|
|
465
|
+
const budgetRecovery = createBudgetRecovery({
|
|
466
|
+
check: operation => {
|
|
467
|
+
const task = checkTaskBudget(operation, taskCounters(), currentTaskBudget(), taskActiveElapsedMs(), taskTier);
|
|
468
|
+
if (task) return { ...task, kind: "task" };
|
|
469
|
+
const turn = checkTurnBudget(operation, { dispatches: turnDispatchCount, research: turnResearchCount }, currentBudget(), turnBudgetActiveElapsedMs(), taskTier);
|
|
470
|
+
return turn ? { ...turn, kind: "turn" } : null;
|
|
471
|
+
},
|
|
472
|
+
language: () => userLanguage,
|
|
473
|
+
ask: (id, params, ctx, signal) => requestRuntimeAsk(pi.events, id, params, ctx, signal),
|
|
474
|
+
startWait: id => executionHistory.startAskUser(id),
|
|
475
|
+
endWait: (id, sameTask) => {
|
|
476
|
+
const wait = executionHistory.endAskUser(id, Date.now());
|
|
477
|
+
if (!sameTask) return;
|
|
478
|
+
if (wait > 0) taskClock = addTaskClockWait(taskClock, wait);
|
|
479
|
+
turnBudgetAskUserWaitMs += wait;
|
|
480
|
+
},
|
|
481
|
+
renew: (refusal, correlation, ctx) => {
|
|
482
|
+
const at = Date.now(), prior = budgetContinuationSnapshot(refusal.kind, at);
|
|
483
|
+
if (refusal.kind === "task") continueTaskBudgetWindow(at); else renewTurnBudgetWindow(at);
|
|
484
|
+
appendBudgetContinuationEntry(refusal.kind, refusal.reason, prior, ctx, correlation);
|
|
485
|
+
},
|
|
486
|
+
});
|
|
465
487
|
|
|
466
488
|
// ── Verification Contract: assertion ledger (advisory) ──
|
|
467
489
|
// Mutable ownership remains here; the extracted runtime receives explicit ports.
|
|
@@ -534,6 +556,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
534
556
|
}
|
|
535
557
|
|
|
536
558
|
function loadAgents(cwd: string): void {
|
|
559
|
+
if (sessionDir) closeEvidenceSession(sessionDir);
|
|
537
560
|
loadAgentConfiguration(cwd, {
|
|
538
561
|
setSessionDir: hubStateCtx.setSessionDir, getSessionDir: hubStateCtx.getSessionDir,
|
|
539
562
|
archivePreviousRun, ensureArtifactsLayout, resetAssertions: () => { assertions = []; },
|
|
@@ -541,6 +564,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
541
564
|
setModelProfiles: value => { modelProfiles = value; }, setModelProfileErrors: errors => { modelProfileErrors=errors; }, setDispatchPolicy: value => { dispatchPolicy = value; },
|
|
542
565
|
setDispatchPolicyWarnings: value => { dispatchPolicyWarnings = value; },
|
|
543
566
|
});
|
|
567
|
+
pruneEvidenceSessions(sessionDir, runHistoryKeep);
|
|
544
568
|
}
|
|
545
569
|
|
|
546
570
|
const agentStateFactory = createAgentStateFactory(() => sessionDir);
|
|
@@ -585,16 +609,67 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
585
609
|
// ── Grid Rendering ───────────────────────────
|
|
586
610
|
const gridUI = createGridUI({
|
|
587
611
|
getWidgetContext: () => widgetCtx,
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
612
|
+
getRunningItems: () => {
|
|
613
|
+
const specialists = Array.from(agentStates.values()).map(state => ({
|
|
614
|
+
name: displayName(state.def.name),
|
|
615
|
+
status: state.status,
|
|
616
|
+
model: state.lastBackend === "coms" ? `⇄coms ${shortModel(state.comsPeerModel)}` : modelWithThinking(state.def),
|
|
617
|
+
elapsed: state.elapsed,
|
|
618
|
+
toolCount: state.toolCount,
|
|
619
|
+
messageCount: state.messageCount ?? 0,
|
|
620
|
+
delegations: Array.from(state.delegations?.values() ?? []).map(child => ({
|
|
621
|
+
role: child.role || child.id,
|
|
622
|
+
id: child.id,
|
|
623
|
+
status: child.status,
|
|
624
|
+
model: shortModel(child.model),
|
|
625
|
+
elapsed: child.elapsed,
|
|
626
|
+
startedAt: child.startedAt,
|
|
627
|
+
toolCount: child.toolCount,
|
|
628
|
+
messageCount: child.messageCount ?? 0,
|
|
629
|
+
})),
|
|
630
|
+
}));
|
|
631
|
+
const research = Array.from(researchStates.values()).map(state => ({
|
|
632
|
+
id: state.id,
|
|
633
|
+
persona: state.persona,
|
|
634
|
+
displayName: displayName(state.def.name),
|
|
635
|
+
status: state.status,
|
|
636
|
+
model: shortModel(state.model) + thinkingSuffix(resolvedThinking(state.def)),
|
|
637
|
+
elapsed: state.elapsed,
|
|
638
|
+
toolCount: state.toolCount,
|
|
639
|
+
messageCount: state.messageCount ?? 0,
|
|
640
|
+
}));
|
|
641
|
+
const pendingByName = new Map<string, { count: number; oldest: number }>();
|
|
642
|
+
for (const pending of coms.pendingReplies.values()) {
|
|
643
|
+
if (pending.result || !pending.target_name) continue;
|
|
644
|
+
const started = Date.parse(pending.created_at) || Date.now();
|
|
645
|
+
const prev = pendingByName.get(pending.target_name);
|
|
646
|
+
if (!prev) pendingByName.set(pending.target_name, { count: 1, oldest: started });
|
|
647
|
+
else pendingByName.set(pending.target_name, { count: prev.count + 1, oldest: Math.min(prev.oldest, started) });
|
|
648
|
+
}
|
|
649
|
+
const now = Date.now();
|
|
650
|
+
const comsRows = [];
|
|
651
|
+
const seen = new Set<string>();
|
|
652
|
+
for (const card of peerCards.values()) {
|
|
653
|
+
const pending = pendingByName.get(card.name);
|
|
654
|
+
const running = card.status === "working" || (card.queue_depth ?? 0) > 0 || !!pending;
|
|
655
|
+
if (!running) continue;
|
|
656
|
+
seen.add(card.name);
|
|
657
|
+
comsRows.push({
|
|
658
|
+
name: card.name,
|
|
659
|
+
model: abbreviateModel(card.model),
|
|
660
|
+
elapsed: pending ? now - pending.oldest : 0,
|
|
661
|
+
eventCount: (pending?.count ?? 0) + (card.queue_depth ?? 0),
|
|
662
|
+
running: true,
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
for (const [name, pending] of pendingByName) {
|
|
666
|
+
if (seen.has(name)) continue;
|
|
667
|
+
comsRows.push({ name, model: "", elapsed: now - pending.oldest, eventCount: pending.count, running: true });
|
|
668
|
+
}
|
|
669
|
+
return collectRunningStripItems({ specialists, research, coms: comsRows }, now);
|
|
670
|
+
},
|
|
596
671
|
});
|
|
597
|
-
const { updateWidget
|
|
672
|
+
const { updateWidget } = gridUI;
|
|
598
673
|
|
|
599
674
|
// ── Delegation observability ─────────────────
|
|
600
675
|
const dispatchObservability = createDispatchObservability({
|
|
@@ -725,6 +800,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
725
800
|
nativeResearchSystemPrompt, requireSafetyHarness, shortModel, displayName,
|
|
726
801
|
flushTimelineStore, appendTimelineText, appendTimelineEvent,
|
|
727
802
|
createTranscriptStore: createFleetTranscriptStore,
|
|
803
|
+
onElapsed: () => updateWidget(),
|
|
728
804
|
});
|
|
729
805
|
|
|
730
806
|
// ── Embedded coms: shared registry, transport, and pool core ──
|
|
@@ -738,12 +814,9 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
738
814
|
getPeerCards: () => peerCards,
|
|
739
815
|
readProjectEntries: readAllRegistryEntries,
|
|
740
816
|
readAllEntries: readAllRegistryEntriesAcrossProjects,
|
|
741
|
-
isCompact: () => compactWidgetsEnabled(viewMode),
|
|
742
817
|
truncate: truncateToWidth,
|
|
743
818
|
});
|
|
744
819
|
const fleetPeerInputs = poolPresentation.peerInputs;
|
|
745
|
-
const renderPool = poolPresentation.render;
|
|
746
|
-
const installPoolWidget = poolPresentation.install;
|
|
747
820
|
|
|
748
821
|
// ── Extracted tool execution wiring ──
|
|
749
822
|
// Mutable fleet state remains composition-owned; executor modules receive ports.
|
|
@@ -778,6 +851,14 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
778
851
|
}
|
|
779
852
|
const workModePolicy = createWorkModePolicy({
|
|
780
853
|
getBaselineTools: () => baselineTools, getRosterSize: () => agentStates.size,
|
|
854
|
+
activateFallbackRoster: ctx => {
|
|
855
|
+
if (!rosterPolicy.activateFirstValidTeam()) return;
|
|
856
|
+
workModePolicy.clearRosterRecovery();
|
|
857
|
+
persistActiveRoster();
|
|
858
|
+
setTimeout(replayDeferredRecoveryInputs, 0);
|
|
859
|
+
updateWidget();
|
|
860
|
+
ctx.ui.setStatus("agent-team", `Team: ${activeTeamName} (${agentStates.size})`);
|
|
861
|
+
},
|
|
781
862
|
getActiveTeamName: () => activeTeamName, getComsReady: () => comsReady,
|
|
782
863
|
getHerdrReady: () => herdrFleetReady, getAskUserAvailable: () => askUserAvailable,
|
|
783
864
|
getIdentityLabel: () => identity ? `${identity.name}@${identity.project}` : null,
|
|
@@ -811,7 +892,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
811
892
|
getActiveWritableDispatches: () => activeWritableDispatches, setActiveWritableDispatches: value => { activeWritableDispatches = value; },
|
|
812
893
|
getWritableOverlapCounter: () => writableOverlapCounter, setWritableOverlapCounter: value => { writableOverlapCounter = value; },
|
|
813
894
|
},
|
|
814
|
-
budget: budgetCtx, artifacts: assertionsArtifactsCtx, research: researchRuntime,
|
|
895
|
+
budget: budgetCtx, budgetRecovery, noProgress, artifacts: assertionsArtifactsCtx, research: researchRuntime,
|
|
815
896
|
provisionalCapabilityRefusal, dispatchAgent, runReturnExtraction,
|
|
816
897
|
extractNeedsResearch, extractAskUserQuestions, contextPressure: percent => percent >= CONTEXT_WARN_THRESHOLD, displayName,
|
|
817
898
|
},
|
|
@@ -849,15 +930,15 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
849
930
|
runtime: researchRuntime,
|
|
850
931
|
refresh: () => {},
|
|
851
932
|
getAgents: () => agentStates, displayName, modelWorkBlocked: modelWorkBlockedByRosterRecovery,
|
|
852
|
-
cancelWait: (state, kind) => cancelLocalWaitOnly({ abort: state.comsAbort, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.runCount), event: { kind } }),
|
|
853
|
-
cancelOwned: state => cancelLocalOwnedProcess({ process: state.proc, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.runCount), treeKill: killPiTree }),
|
|
933
|
+
cancelWait: (state, kind) => cancelLocalWaitOnly({ abort: state.comsAbort, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.dispatchId ?? state.runCount), event: { kind } }),
|
|
934
|
+
cancelOwned: state => cancelLocalOwnedProcess({ process: state.proc, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.dispatchId ?? state.runCount), treeKill: killPiTree }),
|
|
854
935
|
restartSpecialist: async (state: AgentState, ctx) => {
|
|
855
936
|
if (state.status === "running" && (state.proc || state.comsAbort)) {
|
|
856
937
|
let resolveTermination!: () => void;
|
|
857
938
|
const terminated = new Promise<void>(resolve => { resolveTermination = resolve; });
|
|
858
939
|
state.onTerminate = resolveTermination;
|
|
859
940
|
if (state.proc) { state.killedByOperator = true; state.restarting = true; killPiTree(state.proc); }
|
|
860
|
-
else await cancelLocalWaitOnly({ abort: state.comsAbort, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.runCount), event: { kind: "restart" } });
|
|
941
|
+
else await cancelLocalWaitOnly({ abort: state.comsAbort, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.dispatchId ?? state.runCount), event: { kind: "restart" } });
|
|
861
942
|
await terminated;
|
|
862
943
|
}
|
|
863
944
|
state.sessionFile = null;
|
|
@@ -888,6 +969,13 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
888
969
|
applyWorkModeSelection,
|
|
889
970
|
getWorkModeStatusText: workModeStatusText,
|
|
890
971
|
openWorkModePicker,
|
|
972
|
+
handleBudgetContinue: async ctx => { await budgetRecovery.resume(ctx); },
|
|
973
|
+
handleRetry: async (args, ctx) => {
|
|
974
|
+
const dispatchId = args?.trim();
|
|
975
|
+
if (!dispatchId || !noProgress.authorize(dispatchId)) { ctx.ui.notify("Unknown, stale or already authorized failure. Use /af-retry <dispatchId> from the no-progress refusal.", "error"); return; }
|
|
976
|
+
pi.appendEntry("agent-hub-retry-authorized", { dispatchId, identity: hubAuditIdentity(ctx) });
|
|
977
|
+
ctx.ui.notify(`One retry authorized for ${dispatchId}. Budget and safety gates still apply; no operation was dispatched.`, "info");
|
|
978
|
+
},
|
|
891
979
|
handleAgentsTeam: async (_args, ctx) => {
|
|
892
980
|
widgetCtx = ctx;
|
|
893
981
|
const teamNames = Object.keys(teams);
|
|
@@ -1312,7 +1400,6 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1312
1400
|
await coms.updateScope((args ?? "").trim(), ctx);
|
|
1313
1401
|
},
|
|
1314
1402
|
handleHandoff: async (args, ctx) => {
|
|
1315
|
-
const refusal=profilePeerRefusal();if(refusal){ctx.ui.notify(refusal.content[0].text,"error");return;}
|
|
1316
1403
|
if (modelWorkBlockedByRosterRecovery(ctx)) return;
|
|
1317
1404
|
if (!comsReady) { ctx.ui.notify("coms is not active in this session — /af-handoff unavailable.", "warning"); return; }
|
|
1318
1405
|
const target = (args ?? "").trim();
|
|
@@ -1325,6 +1412,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1325
1412
|
ctx.ui.notify(`coms: no live peer "${target}". Use /af-coms to refresh the pool.`, "error");
|
|
1326
1413
|
return;
|
|
1327
1414
|
}
|
|
1415
|
+
const refusal=profilePeerGate({ peerModel: peer.model, targetResolved: true });if(refusal){ctx.ui.notify(refusal.content[0].text,"error");return;}
|
|
1328
1416
|
const handoffToken = crypto.randomBytes(8).toString("hex");
|
|
1329
1417
|
hubStateCtx.setPendingHandoff({ target: peer.name, token: handoffToken });
|
|
1330
1418
|
pi.sendMessage({
|
|
@@ -1408,10 +1496,10 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1408
1496
|
}
|
|
1409
1497
|
return null;
|
|
1410
1498
|
},
|
|
1411
|
-
checkBudget: () => {
|
|
1499
|
+
checkBudget: async () => {
|
|
1412
1500
|
ensureTaskTier();
|
|
1413
|
-
const
|
|
1414
|
-
return
|
|
1501
|
+
const blocked = await budgetRecovery.ensure("dispatch", args ?? "model panel", ctx);
|
|
1502
|
+
return blocked?.message ?? null;
|
|
1415
1503
|
},
|
|
1416
1504
|
chargeBudget: () => {
|
|
1417
1505
|
turnDispatchCount += 1;
|
|
@@ -1507,10 +1595,10 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1507
1595
|
}
|
|
1508
1596
|
return null;
|
|
1509
1597
|
},
|
|
1510
|
-
checkBudget: () => {
|
|
1598
|
+
checkBudget: async () => {
|
|
1511
1599
|
ensureTaskTier();
|
|
1512
|
-
const
|
|
1513
|
-
return
|
|
1600
|
+
const blocked = await budgetRecovery.ensure("dispatch", args ?? "model panel", ctx);
|
|
1601
|
+
return blocked?.message ?? null;
|
|
1514
1602
|
},
|
|
1515
1603
|
chargeBudget: () => {
|
|
1516
1604
|
turnDispatchCount += 1;
|
|
@@ -1605,6 +1693,8 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1605
1693
|
registerHandoff(pi, commandCtx);
|
|
1606
1694
|
registerCompound(pi, commandCtx);
|
|
1607
1695
|
registerPoll(pi, commandCtx);
|
|
1696
|
+
registerBudgetContinue(pi, commandCtx);
|
|
1697
|
+
registerRetry(pi, commandCtx);
|
|
1608
1698
|
registerDebate(pi, commandCtx);
|
|
1609
1699
|
|
|
1610
1700
|
const detailPanel = createDetailPanel<AgentDef, AgentState, ResearchState>({
|
|
@@ -1645,11 +1735,13 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1645
1735
|
modelPolicy,
|
|
1646
1736
|
loadAvailableModels: loadAvailableModelChoices,
|
|
1647
1737
|
openDetail: openFleetDetail,
|
|
1738
|
+
openHistory: ctx => openHistory(ctx, executionHistory, () => (activeTeamName ? `Team: ${activeTeamName}` : "Agent Hub")),
|
|
1648
1739
|
modelWorkBlocked: modelWorkBlockedByRosterRecovery,
|
|
1649
1740
|
restartSpecialist: researchControls.restartSpecialist,
|
|
1650
1741
|
removeResearch: researchControls.remove,
|
|
1651
|
-
killSpecialistProcess: state => cancelLocalOwnedProcess({ process: state.proc, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.runCount), treeKill: killPiTree }),
|
|
1742
|
+
killSpecialistProcess: state => cancelLocalOwnedProcess({ process: state.proc, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.dispatchId ?? state.runCount), treeKill: killPiTree }),
|
|
1652
1743
|
abortComs: state => { state.comsAbort?.(); },
|
|
1744
|
+
getComsLines: (width, theme) => poolPresentation.render(width, theme),
|
|
1653
1745
|
});
|
|
1654
1746
|
const { fleetRows, openFleetDashboard } = fleetDashboard;
|
|
1655
1747
|
|
|
@@ -1702,24 +1794,13 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1702
1794
|
registerInputShortcuts(pi, {
|
|
1703
1795
|
setWidgetContext: ctx => { widgetCtx = ctx; }, openFleetDashboard,
|
|
1704
1796
|
workModeStatusText, openWorkModePicker,
|
|
1705
|
-
isCompact: () => compactWidgetsEnabled(viewMode),
|
|
1706
|
-
toggleCompact: () => { viewMode = viewMode === "compact" ? "off" : "compact"; return viewMode; },
|
|
1707
|
-
refreshWidgets: () => { updateWidget(); },
|
|
1708
|
-
getSwitchableKeys: () => switchableAgents().map(agent => agent.key),
|
|
1709
|
-
getMarkedAgent: () => markedAgent, setMarkedAgent: key => { markedAgent = key; }, clampMarker,
|
|
1710
|
-
openMarkedAgent: async (ctx, key) => {
|
|
1711
|
-
const rid = parseResearchHandle(key);
|
|
1712
|
-
const target: Zoomable | undefined = rid != null ? researchStates.get(rid) : agentStates.get(key);
|
|
1713
|
-
if (!target) return false;
|
|
1714
|
-
const row = fleetRows(true).find(candidate => candidate.key === key);
|
|
1715
|
-
if (row) await openFleetDetail(row, ctx); else await openZoom(target, ctx);
|
|
1716
|
-
return true;
|
|
1717
|
-
},
|
|
1718
1797
|
});
|
|
1719
1798
|
|
|
1720
1799
|
// Root owns subscription order; lifecycle modules own handler bodies.
|
|
1721
|
-
pi
|
|
1722
|
-
|
|
1800
|
+
registerTurnPresence(pi, {
|
|
1801
|
+
beforeAgentPresence: () => turnHandlers.beforeAgentPresence(),
|
|
1802
|
+
agentEndPresence: () => turnHandlers.agentEndPresence(),
|
|
1803
|
+
});
|
|
1723
1804
|
|
|
1724
1805
|
// /af-handoff <peer> — hand the session off to a coms peer. Per decision G1 we do NOT
|
|
1725
1806
|
// extract the compaction summary; instead we ask the dispatcher LLM (next turn) to
|
|
@@ -1754,6 +1835,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1754
1835
|
|
|
1755
1836
|
|
|
1756
1837
|
const hubPromptCtx: HubPromptContext = {
|
|
1838
|
+
getArtifactRoot: () => sessionDir ? artifactsRoot() : null,
|
|
1757
1839
|
getCapabilityResolution,
|
|
1758
1840
|
getActiveTools: () => pi.getActiveTools(),
|
|
1759
1841
|
getAgents: () => Array.from(agentStates.values()).map(state => ({
|
|
@@ -1809,17 +1891,11 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1809
1891
|
finishMonitorTurn: () => { if (monitorBridge && monitorTurnId) { monitorBridge.finishParent(monitorTurnId, "completed"); monitorTurnId = null; } },
|
|
1810
1892
|
startMonitorTurn: () => { if (monitorBridge && monitorHubId) { monitorTurnId = `hub-turn-${monitorHubId}-${crypto.randomUUID()}`; monitorBridge.startParent({ id: monitorTurnId, hubInstanceId: monitorHubId, checkoutId: currentCtx?.cwd || process.cwd() }); } },
|
|
1811
1893
|
startAskUser: id => executionHistory.startAskUser(id), endAskUser: (id, at) => executionHistory.endAskUser(id, at),
|
|
1812
|
-
continuationKind: budgetContinuationKind, getPendingContinuation: () => pendingBudgetContinuation,
|
|
1813
|
-
setPendingContinuation: value => { pendingBudgetContinuation = value; },
|
|
1814
|
-
getContinuationAsk: id => budgetContinuationAsks.get(id), setContinuationAsk: (id, value) => budgetContinuationAsks.set(id, value), deleteContinuationAsk: id => budgetContinuationAsks.delete(id),
|
|
1815
1894
|
acknowledgeExternalBlocker: () => { externalBlockerAcknowledged = true; externalBlockerRefusedOnce = false; },
|
|
1816
1895
|
addAskUserWait: waitMs => { if (waitMs > 0) taskClock = addTaskClockWait(taskClock, waitMs); turnBudgetAskUserWaitMs += waitMs; },
|
|
1817
|
-
continuationOutcome: budgetContinuationOutcome, continuationSnapshot: budgetContinuationSnapshot,
|
|
1818
|
-
continueBudget: (kind, at) => { if (kind === "task") continueTaskBudgetWindow(at); else renewTurnBudgetWindow(at); },
|
|
1819
|
-
appendContinuation: appendBudgetContinuationEntry, getCurrentContext: () => currentCtx, getWidgetContext: () => widgetCtx,
|
|
1820
1896
|
applyWorkMode: applyWorkModeTools, closeTurnActiveTime, openTaskClock: at => { taskClock = openTaskClock(taskClock, at); }, startHistoryTurn: at => executionHistory.startTurn(at),
|
|
1821
1897
|
resetTurnBudgetState: () => {
|
|
1822
|
-
turnBudgetAskUserWaitMs = 0;
|
|
1898
|
+
turnBudgetAskUserWaitMs = 0; // budgetRecovery is task-scoped: prose/new turns cannot clear a declined confirmation.
|
|
1823
1899
|
turnDispatchCount = 0; turnResearchCount = 0; turnDispatchFingerprints.clear(); externalBlockerAcknowledged = true; externalBlockerRefusedOnce = false;
|
|
1824
1900
|
if (turnReport.dispatches.length > 0 || turnReport.research > 0 || turnReport.refusals > 0) { lastTurnReport = turnReport; sessionTotals.turns++; }
|
|
1825
1901
|
turnReport = freshTurnReport();
|
|
@@ -1866,7 +1942,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1866
1942
|
resetAccessApproval: accessApprovalRouter.reset,
|
|
1867
1943
|
terminateResearch: () => { for (const st of researchStates.values()) if (st.proc && st.status === "running") { st.killedByOperator = true; st.proc.kill("SIGTERM"); } },
|
|
1868
1944
|
resetResearch: researchRuntime.reset, resetHistory: executionHistory.reset,
|
|
1869
|
-
resetBudgets: () => { taskClock = createTaskClock(); turnBudgetAskUserWaitMs = 0; turnContinuationCount = 0; taskContinuationCount = 0;
|
|
1945
|
+
resetBudgets: () => { taskClock = createTaskClock(); turnBudgetAskUserWaitMs = 0; turnContinuationCount = 0; taskContinuationCount = 0; budgetRecovery.reset(); noProgress.reset(); },
|
|
1870
1946
|
clearWidgets: ctx => { if (widgetCtx) { ctx.ui.setWidget("agent-team", undefined); } },
|
|
1871
1947
|
closeDelegationWatchers: () => { for (const st of agentStates.values()) { st.delegationsWatcher?.close(); st.delegationsWatcher = undefined; } },
|
|
1872
1948
|
resetSessionState: ctx => { delegatedTokens = 0; hubSpawnedPeers.clear(); widgetCtx = ctx; contextWindow = ctx.model?.contextWindow || 0; },
|
|
@@ -1887,7 +1963,6 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1887
1963
|
comsReady = true;
|
|
1888
1964
|
try {
|
|
1889
1965
|
_ctx.ui.setStatus("coms", `📡 ${identity.name}@${identity.project}`);
|
|
1890
|
-
installPoolWidget(_ctx);
|
|
1891
1966
|
} catch { /* hasUI may be false — non-fatal */ }
|
|
1892
1967
|
} catch (err) {
|
|
1893
1968
|
comsReady = false;
|
|
@@ -1906,20 +1981,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1906
1981
|
}
|
|
1907
1982
|
},
|
|
1908
1983
|
loadAgents: (_ctx) => {
|
|
1909
|
-
//
|
|
1910
|
-
const sessDir = safePathWithin(_ctx.cwd, ".pi", "agent-sessions");
|
|
1911
|
-
if (existsSync(sessDir)) {
|
|
1912
|
-
for (const f of readdirSync(sessDir)) {
|
|
1913
|
-
if (f.endsWith(".json")) {
|
|
1914
|
-
try { unlinkSync(join(sessDir, f)); } catch {}
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
// Per-project overrides are parsed BEFORE loadAgents: loadAgents archives the
|
|
1920
|
-
// previous session's artifacts, and that archive has to honor this project's
|
|
1921
|
-
// `run-history-keep` — reading it afterwards would apply the retention one
|
|
1922
|
-
// session late. Everything else the overrides drive is assigned below.
|
|
1984
|
+
// Allocate a fresh namespace; shared legacy files belong to prior/live sessions.
|
|
1923
1985
|
sessionOverrides = parseAgentTeamOverrides(_ctx.cwd);
|
|
1924
1986
|
runHistoryKeep = sessionOverrides.runHistoryKeep;
|
|
1925
1987
|
|
|
@@ -2059,14 +2121,15 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
2059
2121
|
getModel: () => _ctx.model?.id || "no-model",
|
|
2060
2122
|
getThinkingLevel: () => pi.getThinkingLevel?.(),
|
|
2061
2123
|
thinkingSuffix,
|
|
2062
|
-
getHint: () => composeFleetFooterHint(
|
|
2124
|
+
getHint: () => composeFleetFooterHint(compactWorkMode(getWorkMode())),
|
|
2063
2125
|
renderLeft: renderHubFooterLeft,
|
|
2064
2126
|
truncateToWidth,
|
|
2065
2127
|
visibleWidth,
|
|
2066
2128
|
}));
|
|
2067
2129
|
},
|
|
2068
2130
|
}, {
|
|
2069
|
-
|
|
2131
|
+
finishEvidence: () => { if (sessionDir) closeEvidenceSession(sessionDir); },
|
|
2132
|
+
shutdownComs: () => { unregisterQuestions(); return coms.shutdown(); }, shutdownMonitor: () => monitorSession.shutdown(),
|
|
2070
2133
|
removeExemptions: () => {
|
|
2071
2134
|
if (!exemptionsFile) return;
|
|
2072
2135
|
try { fs.unlinkSync(exemptionsFile); } catch {}
|
|
@@ -5,43 +5,14 @@ export interface ShortcutPorts {
|
|
|
5
5
|
openFleetDashboard(ctx: ExtensionContext): Promise<void>;
|
|
6
6
|
workModeStatusText(): string;
|
|
7
7
|
openWorkModePicker(ctx: ExtensionContext): Promise<void>;
|
|
8
|
-
isCompact(): boolean;
|
|
9
|
-
toggleCompact(): string;
|
|
10
|
-
refreshWidgets(): void;
|
|
11
|
-
getSwitchableKeys(): string[];
|
|
12
|
-
getMarkedAgent(): string | null;
|
|
13
|
-
setMarkedAgent(key: string | null): void;
|
|
14
|
-
clampMarker(): void;
|
|
15
|
-
openMarkedAgent(ctx: ExtensionContext, key: string): Promise<boolean>;
|
|
16
8
|
}
|
|
17
9
|
|
|
18
10
|
export function registerInputShortcuts(pi: ExtensionAPI, ports: ShortcutPorts): void {
|
|
19
11
|
const withContext = (ctx: ExtensionContext) => ports.setWidgetContext(ctx);
|
|
20
|
-
const cycleMarker = (delta: number, ctx: ExtensionContext) => {
|
|
21
|
-
withContext(ctx);
|
|
22
|
-
if (!ports.isCompact()) { ctx.ui.notify("Agent switching is a compact-view feature — press Alt+A first", "info"); return; }
|
|
23
|
-
const keys = ports.getSwitchableKeys();
|
|
24
|
-
if (keys.length === 0) { ctx.ui.notify("No running subagents to switch between", "info"); return; }
|
|
25
|
-
const current = ports.getMarkedAgent();
|
|
26
|
-
const index = current ? keys.indexOf(current) : -1;
|
|
27
|
-
ports.setMarkedAgent(index === -1 ? (delta > 0 ? keys[0] : keys[keys.length - 1]) : keys[(index + delta + keys.length) % keys.length]);
|
|
28
|
-
ports.refreshWidgets();
|
|
29
|
-
};
|
|
30
12
|
pi.registerShortcut("alt+a", { description: "Open Fleet Dashboard", handler: ctx => { withContext(ctx); void ports.openFleetDashboard(ctx); } });
|
|
31
13
|
pi.registerShortcut("alt+m", { description: "Open work mode picker", handler: ctx => {
|
|
32
14
|
withContext(ctx);
|
|
33
15
|
if (!ctx.hasUI || typeof ctx.ui.select !== "function") { ctx.ui.notify(`${ports.workModeStatusText()}\nSwitch with /af-work-mode operator|orchestrator`, "info"); return; }
|
|
34
16
|
void ports.openWorkModePicker(ctx);
|
|
35
17
|
} });
|
|
36
|
-
pi.registerShortcut("alt+shift+a", { description: "Toggle compact agent widget", handler: ctx => { withContext(ctx); const mode = ports.toggleCompact(); ports.refreshWidgets(); ctx.ui.notify(`Compact agent widget: ${mode}`, "info"); } });
|
|
37
|
-
pi.registerShortcut("alt+]", { description: "Compact view: mark next subagent", handler: ctx => cycleMarker(1, ctx) });
|
|
38
|
-
pi.registerShortcut("alt+[", { description: "Compact view: mark previous subagent", handler: ctx => cycleMarker(-1, ctx) });
|
|
39
|
-
pi.registerShortcut("alt+\\", { description: "Compact view: zoom the marked subagent", handler: async ctx => {
|
|
40
|
-
withContext(ctx);
|
|
41
|
-
if (!ports.isCompact()) { ctx.ui.notify("Agent zoom from the marker is a compact-view feature — press Alt+A first", "info"); return; }
|
|
42
|
-
ports.clampMarker();
|
|
43
|
-
const marked = ports.getMarkedAgent();
|
|
44
|
-
if (!marked) { ctx.ui.notify("No running subagent marked to zoom", "info"); return; }
|
|
45
|
-
if (!await ports.openMarkedAgent(ctx, marked)) ctx.ui.notify(`Marked agent ${marked} is no longer available`, "warning");
|
|
46
|
-
} });
|
|
47
18
|
}
|
|
@@ -116,6 +116,7 @@ export function applySessionOverrides<TDef extends AgentDef>(ctx: ExtensionConte
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export interface ShutdownPorts {
|
|
119
|
+
finishEvidence(): void;
|
|
119
120
|
shutdownComs(): Promise<void>;
|
|
120
121
|
shutdownMonitor(): Promise<void>;
|
|
121
122
|
removeExemptions(): void;
|
|
@@ -134,6 +135,7 @@ export function registerSessionOrchestration(pi: ExtensionAPI, steps: SessionSta
|
|
|
134
135
|
shutdown.removeExemptions();
|
|
135
136
|
shutdown.terminateChildren();
|
|
136
137
|
shutdown.clearPoolWidget();
|
|
138
|
+
shutdown.finishEvidence();
|
|
137
139
|
};
|
|
138
140
|
pi.on("session_shutdown", cleanShutdown);
|
|
139
141
|
process.on("SIGINT", () => { void cleanShutdown(); });
|
|
@@ -1,30 +1,13 @@
|
|
|
1
1
|
import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
2
2
|
|
|
3
|
-
export interface AskContinuation {
|
|
4
|
-
kind: "task" | "turn";
|
|
5
|
-
reason: string;
|
|
6
|
-
params: any;
|
|
7
|
-
}
|
|
8
3
|
export interface TurnLifecyclePorts {
|
|
9
4
|
setTurnState(state: "working" | "idle"): Promise<void>;
|
|
10
5
|
startMonitorTurn(): void;
|
|
11
6
|
finishMonitorTurn(): void;
|
|
12
7
|
startAskUser(id: string): void;
|
|
13
8
|
endAskUser(id: string, endedAt: number): number;
|
|
14
|
-
continuationKind(context: unknown): "task" | "turn" | null;
|
|
15
|
-
getPendingContinuation(): { kind: "task" | "turn"; reason: string } | null;
|
|
16
|
-
setPendingContinuation(value: { kind: "task" | "turn"; reason: string } | null): void;
|
|
17
|
-
getContinuationAsk(id: string): AskContinuation | undefined;
|
|
18
|
-
setContinuationAsk(id: string, value: AskContinuation): void;
|
|
19
|
-
deleteContinuationAsk(id: string): void;
|
|
20
9
|
acknowledgeExternalBlocker(): void;
|
|
21
10
|
addAskUserWait(waitMs: number): void;
|
|
22
|
-
continuationOutcome(params: any, result: unknown): "continue" | "stop" | null;
|
|
23
|
-
continuationSnapshot(kind: "task" | "turn", endedAt: number): unknown;
|
|
24
|
-
continueBudget(kind: "task" | "turn", endedAt: number): void;
|
|
25
|
-
appendContinuation(kind: "task" | "turn", reason: string, prior: unknown, ctx?: ExtensionContext): void;
|
|
26
|
-
getCurrentContext(): ExtensionContext | null;
|
|
27
|
-
getWidgetContext(): ExtensionContext | null;
|
|
28
11
|
applyWorkMode(): void;
|
|
29
12
|
closeTurnActiveTime(now: number): void;
|
|
30
13
|
openTaskClock(now: number): void;
|
|
@@ -62,25 +45,12 @@ export function createTurnLifecycleHandlers(ports: TurnLifecyclePorts): TurnLife
|
|
|
62
45
|
toolStart(event) {
|
|
63
46
|
if (event.toolName !== "ask_user") return;
|
|
64
47
|
ports.startAskUser(event.toolCallId);
|
|
65
|
-
const kind = ports.continuationKind(event.args?.context);
|
|
66
|
-
const pending = ports.getPendingContinuation();
|
|
67
|
-
if (kind && pending?.kind === kind) ports.setContinuationAsk(event.toolCallId, { kind, reason: pending.reason, params: event.args });
|
|
68
48
|
ports.acknowledgeExternalBlocker();
|
|
69
49
|
},
|
|
70
50
|
toolEnd(event) {
|
|
71
51
|
if (event.toolName !== "ask_user") return;
|
|
72
52
|
const endedAt = Date.now();
|
|
73
53
|
ports.addAskUserWait(ports.endAskUser(event.toolCallId, endedAt));
|
|
74
|
-
const confirmation = ports.getContinuationAsk(event.toolCallId);
|
|
75
|
-
ports.deleteContinuationAsk(event.toolCallId);
|
|
76
|
-
if (!confirmation) return;
|
|
77
|
-
const outcome = ports.continuationOutcome(confirmation.params, event.result);
|
|
78
|
-
if (outcome) ports.setPendingContinuation(null);
|
|
79
|
-
if (outcome !== "continue") return;
|
|
80
|
-
const prior = ports.continuationSnapshot(confirmation.kind, endedAt);
|
|
81
|
-
ports.continueBudget(confirmation.kind, endedAt);
|
|
82
|
-
ports.appendContinuation(confirmation.kind, confirmation.reason, prior, ports.getCurrentContext() ?? undefined);
|
|
83
|
-
ports.getWidgetContext()?.ui?.notify(confirmation.kind === "task" ? "Task budget continued; task tier, assertions, capabilities, and progress were preserved." : "Turn budget continued; continuing without another message.", "success");
|
|
84
54
|
},
|
|
85
55
|
beforeAgentStart() { resetTurn(); return ports.buildPrompt(); },
|
|
86
56
|
async agentEnd(ctx) {
|
|
@@ -93,3 +63,12 @@ export function createTurnLifecycleHandlers(ports: TurnLifecyclePorts): TurnLife
|
|
|
93
63
|
},
|
|
94
64
|
};
|
|
95
65
|
}
|
|
66
|
+
|
|
67
|
+
/** Custom coms messages skip before_agent_start, but every run emits agent_start. */
|
|
68
|
+
export function registerTurnPresence(
|
|
69
|
+
events: {on(event: "agent_start" | "agent_end", handler: () => Promise<void>): unknown},
|
|
70
|
+
handlers: Pick<TurnLifecycleHandlers, "beforeAgentPresence" | "agentEndPresence">,
|
|
71
|
+
): void {
|
|
72
|
+
events.on("agent_start", () => handlers.beforeAgentPresence());
|
|
73
|
+
events.on("agent_end", () => handlers.agentEndPresence());
|
|
74
|
+
}
|