@chankov/agent-fleet 1.0.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/harnesses/agent-hub/README.md +57 -66
- package/.pi/harnesses/agent-hub/capability-packs.ts +4 -4
- package/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/context.ts +39 -0
- package/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.pi/harnesses/agent-hub/config/agents.ts +171 -0
- package/.pi/harnesses/agent-hub/config/overrides.ts +118 -0
- package/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +211 -0
- package/.pi/harnesses/agent-hub/context/budgets.ts +208 -0
- package/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.pi/harnesses/agent-hub/dispatch-coms.ts +232 -0
- package/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +135 -0
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +153 -0
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +191 -0
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +207 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +184 -0
- package/.pi/harnesses/agent-hub/dispatch-observability.ts +220 -0
- package/.pi/harnesses/agent-hub/drift-watchdog.js +3 -3
- package/.pi/harnesses/agent-hub/footer.ts +3 -9
- package/.pi/harnesses/agent-hub/helpers.ts +2 -2
- package/.pi/harnesses/agent-hub/index.ts +1324 -9645
- package/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.pi/harnesses/agent-hub/input/shortcuts.ts +47 -0
- package/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +139 -0
- package/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +95 -0
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/models.ts +126 -0
- package/.pi/harnesses/agent-hub/policy/roster.ts +79 -0
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +118 -0
- package/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.pi/harnesses/agent-hub/prompts/context.ts +46 -0
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +88 -0
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +110 -0
- package/.pi/harnesses/agent-hub/research/controls.ts +75 -0
- package/.pi/harnesses/agent-hub/research/runtime.ts +184 -0
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +146 -0
- package/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +146 -0
- package/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.pi/harnesses/agent-hub/tools/context.ts +132 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +79 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +200 -0
- package/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +82 -0
- package/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.pi/harnesses/agent-hub/types.ts +60 -0
- package/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.pi/harnesses/agent-hub/ui/detail-panel.ts +175 -0
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +130 -0
- package/.pi/harnesses/agent-hub/ui/grid.ts +306 -0
- package/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.pi/harnesses/agent-hub/{posture.ts → work-mode.ts} +36 -27
- package/.pi/harnesses/coms/index.ts +139 -1630
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.pi/harnesses/lib/context-budget-hub-prompt.ts +3 -5
- package/.versions/2.0.0/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.0/.pi/agents/model-profiles.yaml +27 -0
- package/.versions/2.0.0/.pi/agents/peers.yaml +142 -0
- package/.versions/2.0.0/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.0/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.0/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/2.0.0/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/2.0.0/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/2.0.0/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.0/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.0/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.0/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.0/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.0/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.0/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.0/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.0/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.0/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.0/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.0/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.0/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.0/.pi/extensions/package.json +9 -0
- package/.versions/2.0.0/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.0/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.0/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.0/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.0/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.0/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.0/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/README.md +1161 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/context.ts +39 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/config/agents.ts +171 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/config/overrides.ts +118 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +211 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/context/budgets.ts +208 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-coms.ts +232 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-native-complete.ts +135 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +153 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +191 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-native-types.ts +207 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-native.ts +184 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/dispatch-observability.ts +220 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/fixtures/registration-surface.json +53 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/index.ts +1850 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/input/shortcuts.ts +47 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +139 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +95 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/policy/models.ts +126 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/policy/roster.ts +79 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/policy/work-mode.ts +118 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/prompts/context.ts +46 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/prompts/session-start.ts +88 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/prompts/system-prompt.ts +110 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/research/controls.ts +75 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/research/runtime.ts +184 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/research/spawn-run.ts +146 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/research-retention.js +34 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/spawn.ts +388 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/action-executors.ts +146 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/context.ts +132 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +79 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +200 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/herdr-executors.ts +82 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/types.ts +60 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/detail-panel.ts +175 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +130 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/grid.ts +306 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.0/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.0/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/2.0.0/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/2.0.0/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/2.0.0/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.0/.pi/harnesses/coms/index.ts +276 -0
- package/.versions/2.0.0/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.0/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.0/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/2.0.0/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/2.0.0/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.0/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.0/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.0/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.0/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.0/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/2.0.0/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.0/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.0/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.0/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-dashboard-ops.ts +155 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-dashboard-view.ts +142 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.0/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.0/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.0/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.0/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.0/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.0/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.0/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.0/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.0/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.0/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.0/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.0/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.0/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.0/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.0/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.0/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.0/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.0/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.0/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.0/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.0/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.0/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.0/.version +1 -0
- package/.versions/2.0.0/agents/architect.md +25 -0
- package/.versions/2.0.0/agents/bowser.md +28 -0
- package/.versions/2.0.0/agents/builder.md +56 -0
- package/.versions/2.0.0/agents/code-reviewer.md +209 -0
- package/.versions/2.0.0/agents/deep-researcher.md +33 -0
- package/.versions/2.0.0/agents/documenter.md +19 -0
- package/.versions/2.0.0/agents/orchestrator.md +23 -0
- package/.versions/2.0.0/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.0/agents/planner.md +71 -0
- package/.versions/2.0.0/agents/releaser.md +25 -0
- package/.versions/2.0.0/agents/researcher.md +29 -0
- package/.versions/2.0.0/agents/security-auditor.md +168 -0
- package/.versions/2.0.0/agents/test-engineer.md +154 -0
- package/.versions/2.0.0/agents/web-debugger.md +44 -0
- package/.versions/2.0.0/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.0/bin/catalog/harness-runtime-closure.json +38 -0
- package/.versions/2.0.0/codex/CONDUCTOR.md +148 -0
- package/.versions/2.0.0/docs/ARCHITECTURE.md +404 -0
- package/.versions/2.0.0/docs/agent-fleet-setup.md +468 -0
- package/.versions/2.0.0/docs/claude-code-coms-bridge.md +128 -0
- package/.versions/2.0.0/docs/codex-remote-conductor.md +170 -0
- package/.versions/2.0.0/docs/coms-hermes-bridge.md +189 -0
- package/.versions/2.0.0/docs/getting-started.md +98 -0
- package/.versions/2.0.0/docs/npm-install.md +292 -0
- package/.versions/2.0.0/docs/pi-extensions.md +439 -0
- package/.versions/2.0.0/docs/pi-setup.md +74 -0
- package/.versions/2.0.0/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.0/hermes/README.md +347 -0
- package/.versions/2.0.0/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.0/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.0/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.0/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.0/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.0/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.0/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.0/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.0/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.0/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.0/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.0/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.0/install-manifest.json +2745 -0
- package/.versions/2.0.0/justfile +272 -0
- package/.versions/2.0.0/manifest-meta.json +882 -0
- package/.versions/2.0.0/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.0/references/definition-of-done.md +67 -0
- package/.versions/2.0.0/references/fleet-coordination-patterns.md +151 -0
- package/.versions/2.0.0/references/observability-checklist.md +91 -0
- package/.versions/2.0.0/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.0/references/performance-checklist.md +153 -0
- package/.versions/2.0.0/references/prompting-patterns.md +380 -0
- package/.versions/2.0.0/references/security-checklist.md +179 -0
- package/.versions/2.0.0/references/testing-patterns.md +236 -0
- package/.versions/2.0.0/scripts/codex-conductor.ts +41 -0
- package/.versions/2.0.0/scripts/codex-remote-control.ts +167 -0
- package/.versions/2.0.0/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.0/scripts/coms-cli.ts +484 -0
- package/.versions/2.0.0/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.0/scripts/fleet.ts +185 -0
- package/.versions/2.0.0/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.0/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.0/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.0/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.0/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.0/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/2.0.0/scripts/lib/codex-remote-control.ts +480 -0
- package/.versions/2.0.0/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.0/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.0/scripts/lib/fleet-command.ts +270 -0
- package/.versions/2.0.0/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.0/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.0/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.0/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.0/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.0/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.0/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.0/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.0/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.0/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.0/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.0/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.0/scripts/lib/team-project.ts +213 -0
- package/.versions/2.0.0/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.0/scripts/peer-banner.ts +40 -0
- package/.versions/2.0.0/scripts/peer-launch.ts +259 -0
- package/.versions/2.0.0/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.0/scripts/team-up.ts +406 -0
- package/.versions/2.0.0/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.0/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.0/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/2.0.0/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.0/skills/context-engineering/SKILL.md +291 -0
- package/.versions/2.0.0/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/2.0.0/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.0/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.0/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.0/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.0/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.0/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.0/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.0/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/2.0.0/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.0/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.0/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.0/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.0/skills/planning-and-task-breakdown/SKILL.md +263 -0
- package/.versions/2.0.0/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/2.0.0/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/2.0.0/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/2.0.0/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/2.0.0/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/CHANGELOG.md +33 -0
- package/README.md +5 -5
- package/agents/orchestrator.md +3 -1
- package/bin/lib/overrides.js +2 -0
- package/bin/lib/validate-overrides.js +1 -1
- package/docs/ARCHITECTURE.md +42 -13
- package/docs/MIGRATION-agent-fleet.md +4 -4
- package/docs/agent-fleet-setup.md +15 -15
- package/docs/npm-install.md +1 -1
- package/docs/pi-extensions.md +16 -18
- package/install-manifest.json +1 -1
- package/justfile +2 -2
- package/package.json +3 -2
- package/scripts/fleet.ts +10 -10
- package/scripts/lib/fleet-command.ts +15 -11
- package/scripts/lib/team-project.ts +2 -2
- package/scripts/team-up.ts +10 -10
- package/.pi/harnesses/agent-hub/execution-profile.ts +0 -69
package/docs/pi-extensions.md
CHANGED
|
@@ -54,7 +54,7 @@ tool call. The unified `just fleet` entry point composes them with a determinist
|
|
|
54
54
|
Fleet Core: `damage-control-continue`, `ask-user-remote`, Compact & Continue,
|
|
55
55
|
BTW, and the update checker. Voice is an optional feature, not Default Fleet Core.
|
|
56
56
|
Every public Pi launch through bare `just fleet` also loads
|
|
57
|
-
`agent-hub`; operator/orchestrator
|
|
57
|
+
`agent-hub`; operator/orchestrator work mode changes its direct tool surface without changing
|
|
58
58
|
process or session. `just fleet peer` starts a standalone coms peer. Harnesses live in
|
|
59
59
|
**`.pi/harnesses/`** — a directory pi does
|
|
60
60
|
*not* auto-discover — so a plain `pi` run still loads no safety/orchestration harness.
|
|
@@ -165,11 +165,10 @@ make a harness self-contained: copied target harnesses still require the existin
|
|
|
165
165
|
`agent-team` recipe and absorbs the day-to-day pieces that previously required separate
|
|
166
166
|
harnesses:
|
|
167
167
|
|
|
168
|
-
- **Two live
|
|
169
|
-
empty native roster; `/af-
|
|
170
|
-
restarting or losing session state
|
|
171
|
-
|
|
172
|
-
task tier. All Hub slash commands remain registered in both postures; capability-off actions
|
|
168
|
+
- **Two live Work Modes** — bare `just fleet` starts as an operator with direct coding tools and an
|
|
169
|
+
empty native roster; `/af-work-mode operator|orchestrator` switches prompt and tool surface without
|
|
170
|
+
restarting or losing session state, while `/af-work-mode` without an argument and **Alt+M** open
|
|
171
|
+
the picker. Orchestrator removes direct coding tools. Budgets and nested delegation follow task tier. All Hub slash commands remain registered in both work modes; capability-off actions
|
|
173
172
|
refuse actionably.
|
|
174
173
|
- **Fleet Dashboard and compact widget** — **`Alt+A`** or `/af-agents-list` opens a
|
|
175
174
|
full-screen dashboard of the active native roster, delegates, research helpers, and coms
|
|
@@ -181,8 +180,9 @@ harnesses:
|
|
|
181
180
|
running agents; **`Alt+Shift+A`** toggles it on/off. See the
|
|
182
181
|
[agent-hub README](../.pi/harnesses/agent-hub/README.md#fleet-dashboard-and-detail) for
|
|
183
182
|
keys and action semantics.
|
|
184
|
-
- **Specialist delegation** — `dispatch_agent` for writable child-agent work
|
|
185
|
-
|
|
183
|
+
- **Specialist delegation** — `dispatch_agent` for writable child-agent work. Read-only
|
|
184
|
+
investigation is automated through dispatcher-invoked `spawn_research` and the specialists'
|
|
185
|
+
`NEEDS_RESEARCH:` pipe; dedicated research lifecycle slash commands are not registered.
|
|
186
186
|
- **Verification Contract** — the dispatcher owns a ledger of checkable acceptance assertions
|
|
187
187
|
built before any builder runs, via the `set_assertions` / `update_assertion` tools. Each
|
|
188
188
|
assertion is tagged (`test` | `runtime-ui` | `code-grep` | `manual`) and advanced only on
|
|
@@ -193,10 +193,8 @@ harnesses:
|
|
|
193
193
|
assertions — see the [`orchestration-verification`](../skills/orchestration-verification/SKILL.md)
|
|
194
194
|
skill, which the `orchestrator` persona drives. Advisory in this phase (surfaced, not a hard
|
|
195
195
|
dispatch refusal).
|
|
196
|
-
- **Persona gate** — requires an orchestrator persona at startup unless disabled in the local
|
|
197
|
-
override file; the chosen persona also feeds the coms purpose when no explicit `--purpose` is set.
|
|
198
196
|
- **Operator controls** — `/af-zoom` timeline inspection plus child-agent kill/restart controls. `/af-context` is a separate read-only full-screen context-budget view: provider totals/cache fields are authoritative, component estimates are labelled heuristic or provider-scaled, stable prompt and volatile-state cost are separated, loaded-but-excluded and inactive packs visibly cost zero, and fleet members use separate model-window denominators. It also shows live pressure phase, measured usage, the 80%/90% thresholds, episode, and last recovery outcome. It never reveals or persists raw prompts, schemas, conversation content, error bodies, or compaction summaries.
|
|
199
|
-
- **Automatic capability packs** — no activation command is needed. Intent,
|
|
197
|
+
- **Automatic capability packs** — no activation command is needed. Intent, work mode, tier, pending work, and runtime state resolve the model-visible tools before the turn; readiness alone does not make coms/Herdr visible. Ambiguous fleet, peer, or workspace use asks once before its first side effect. The compact pack is transient when explicitly requested or pressure is imminent; ordinary task packs persist until `set_task_tier(new_task: true)`. Managed children receive selected replacement prompts/manifests (`--no-skills` and `--no-context-files` where applicable), not inherited global context.
|
|
200
198
|
- **One-click budget continuation** — turn and task refusals ask one localized Yes/No `ask_user` question. Yes renews the budget in the same tool loop, without a typed `continue` or slash command. Task continuation opens an audited tranche while preserving task tier, assertions, capability packs, blockers, label, and progress; genuinely different work uses `set_task_tier(new_task: true)`. Turn and task active-time clocks both exclude human wait time.
|
|
201
199
|
- **Damage-control + ask_user by default** — `just fleet` and `just fleet --no-coms` load the
|
|
202
200
|
`damage-control-continue` safety harness and `ask-user-remote` before `agent-hub`, so the
|
|
@@ -212,7 +210,7 @@ harnesses:
|
|
|
212
210
|
- **Embedded coms** — peer discovery, `coms_list` / `coms_send` / `coms_get` / `coms_await`,
|
|
213
211
|
`/af-handoff`, and peer-as-subagent flows.
|
|
214
212
|
- **No-coms mode** — `just fleet --no-coms` keeps direct operator work, native delegation,
|
|
215
|
-
research helpers,
|
|
213
|
+
research helpers, and controls, but starts without embedded coms. `/af-handoff`
|
|
216
214
|
remains registered and explains why it cannot run. Legacy `--solo` maps to this flag with a warning.
|
|
217
215
|
- **Optional Hermes local monitor transport** — uses `AGENT_FLEET_PROFILE_ID`, the absolute
|
|
218
216
|
`AGENT_FLEET_MONITOR_RUNTIME_DIR`, and the Herdr `HERDR_WORKSPACE_ID` and `HERDR_PANE_ID`
|
|
@@ -237,21 +235,21 @@ session JSONL under `~/.pi/agent/sessions/` remains the authoritative append-onl
|
|
|
237
235
|
overflow does not imply corruption: inspect with `/session`, resume with `/resume` or Pi's session
|
|
238
236
|
flags, and **never edit, truncate, reorder, or synthesize JSONL entries to recover**.
|
|
239
237
|
|
|
240
|
-
If resume instead reports that orchestrator
|
|
238
|
+
If resume instead reports that orchestrator work mode has no valid native roster, direct tools and
|
|
241
239
|
model input intentionally remain blocked. Select a current team with `/af-agents-team`; restart via
|
|
242
240
|
`just fleet --agents <name>` (direct Pi: `--agent-team <name>`); or explicitly choose operator with
|
|
243
|
-
`/af-
|
|
244
|
-
before selecting them. The Hub never invents a roster or silently downgrades persisted
|
|
241
|
+
`/af-work-mode operator` / `just fleet --work-mode operator`. Repair stale team/persona definitions
|
|
242
|
+
before selecting them. The Hub never invents a roster or silently downgrades persisted work mode, and
|
|
245
243
|
explicit startup flags retain precedence.
|
|
246
244
|
|
|
247
245
|
### Runtime axes and explicit routing
|
|
248
246
|
|
|
249
|
-
|
|
247
|
+
Work mode, native roster, and peer topology are independent:
|
|
250
248
|
|
|
251
249
|
```bash
|
|
252
250
|
just fleet # operator, empty native roster
|
|
253
251
|
just fleet --agents frontend # orchestrator inferred
|
|
254
|
-
just fleet --
|
|
252
|
+
just fleet --work-mode operator --agents frontend # direct tools + native roster
|
|
255
253
|
just fleet --herdr --project af # one Hub pane in Herdr
|
|
256
254
|
just fleet --agents frontend --peers frontend --project af
|
|
257
255
|
```
|
|
@@ -268,7 +266,7 @@ Inside a Herdr-backed Hub, `herdr_spawn_peer({ name: "code-reviewer" })` uses th
|
|
|
268
266
|
and waits for coms readiness. Then use `coms_send` + `coms_await`, or `/af-handoff
|
|
269
267
|
code-reviewer`. These actions need a running Herdr server and/or ready coms as appropriate; the
|
|
270
268
|
commands stay registered and explain missing capability. Arbitrary pane commands use the separate
|
|
271
|
-
`herdr_spawn_pane` tool. In orchestrator
|
|
269
|
+
`herdr_spawn_pane` tool. In orchestrator work mode that tool is limited by policy to auxiliary
|
|
272
270
|
processes such as watchers or servers; it must not be used to bypass delegation for code work.
|
|
273
271
|
|
|
274
272
|
---
|
package/install-manifest.json
CHANGED
package/justfile
CHANGED
|
@@ -50,12 +50,12 @@ default:
|
|
|
50
50
|
|
|
51
51
|
# ---------------------------------------------------------------- unified Fleet interface
|
|
52
52
|
|
|
53
|
-
# Agent Fleet — one guarded Hub runtime, two
|
|
53
|
+
# Agent Fleet — one guarded Hub runtime, two work modes, independent topology.
|
|
54
54
|
#
|
|
55
55
|
# UNIFIED HUB (recommended default)
|
|
56
56
|
# just fleet # operator + empty native roster
|
|
57
57
|
# just fleet --agents frontend # orchestrator + native roster
|
|
58
|
-
# just fleet --
|
|
58
|
+
# just fleet --work-mode operator --agents frontend
|
|
59
59
|
# just fleet --no-coms # direct/native work, no peer messaging
|
|
60
60
|
# just fleet --browser # add live Chrome DevTools tools
|
|
61
61
|
# just fleet --voice # load installed push-to-talk STT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chankov/agent-fleet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Multi-agent fleet orchestration for coding agents. Pi as the primary runtime, Herdr as the workspace control plane, coms as the peer data plane, and Hermes for remote control — plus skills, personas, harnesses, and a guided setup CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
".pi/extensions/*/examples/*.json",
|
|
46
46
|
".pi/harnesses/*.json",
|
|
47
47
|
".pi/harnesses/*/*.ts",
|
|
48
|
+
".pi/harnesses/*/*/*.ts",
|
|
48
49
|
".pi/harnesses/*/*.js",
|
|
49
50
|
".pi/harnesses/*/package.json",
|
|
50
51
|
".pi/harnesses/*/README.md",
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
"access": "public"
|
|
105
106
|
},
|
|
106
107
|
"scripts": {
|
|
107
|
-
"test": "node bin/cli.js --version && node bin/cli.js --help && node --test \"bin/test/*.test.js\" scripts/agent-hub-helpers.test.mjs scripts/agent-hub-spawn.test.mjs scripts/agent-hub-delegate.test.mjs scripts/agent-hub-research.test.mjs .pi/harnesses/lib/herdr-client.test.ts .pi/harnesses/lib/herdr-presence.test.ts .pi/harnesses/lib/coms-registry-entry.test.ts .pi/harnesses/lib/fleet-overlay.test.ts .pi/harnesses/lib/fleet-selection.test.ts .pi/harnesses/lib/fleet-panel.test.ts .pi/harnesses/lib/context-budget.test.ts .pi/harnesses/lib/context-budget-view.test.ts .pi/harnesses/lib/context-budget-hub-prompt.test.ts .pi/harnesses/lib/context-budget-child-prompt.test.ts .pi/harnesses/agent-hub/context-budget-snapshot.test.ts .pi/harnesses/agent-hub/context-budget.integration.test.ts .pi/harnesses/agent-hub/context-pressure.test.ts .pi/harnesses/agent-hub/capability-packs.test.ts .pi/harnesses/agent-hub/capability-confirmation.test.ts .pi/harnesses/agent-hub/capability-matrix.test.ts .pi/harnesses/lib/fleet-read-model.test.ts .pi/harnesses/lib/fleet-dashboard-view.test.ts .pi/harnesses/lib/fleet-dashboard-ops.test.ts .pi/harnesses/lib/fleet-detail-view.test.ts .pi/harnesses/lib/fleet-transcript-store.test.ts .pi/harnesses/agent-hub/fleet-dashboard.integration.test.ts scripts/coms-cli.test.ts scripts/lib/codex-conductor.test.ts scripts/lib/codex-remote-control.test.ts scripts/lib/fleet-command.test.ts scripts/lib/team-project.test.ts scripts/lib/herdr-layout.test.ts scripts/lib/peer-launch.test.ts scripts/lib/spawn-stagger.test.ts scripts/lib/monitor-env.test.ts scripts/lib/fleet-extras.test.ts scripts/lib/team-snapshot.test.ts scripts/team-snapshot.command.test.ts scripts/lib/coms-envelope.test.ts scripts/lib/claude-bridge-core.test.ts scripts/lib/hermes-bridge-core.test.ts scripts/coms-hermes-bridge.test.ts .pi/harnesses/ask-user-remote/race-core.test.js .pi/harnesses/ask-user-remote/index.test.ts .pi/harnesses/agent-hub/extension-loader.test.ts .pi/extensions/btw/state.test.js .pi/extensions/btw/index.test.ts .pi/harnesses/agent-hub/
|
|
108
|
+
"test": "node bin/cli.js --version && node bin/cli.js --help && node --test --test-concurrency=4 \"bin/test/*.test.js\" scripts/agent-hub-helpers.test.mjs scripts/agent-hub-spawn.test.mjs scripts/agent-hub-delegate.test.mjs scripts/agent-hub-research.test.mjs .pi/harnesses/lib/herdr-client.test.ts .pi/harnesses/lib/herdr-presence.test.ts .pi/harnesses/lib/coms-registry-entry.test.ts .pi/harnesses/lib/coms-core.test.ts .pi/harnesses/lib/fleet-overlay.test.ts .pi/harnesses/lib/fleet-selection.test.ts .pi/harnesses/lib/fleet-panel.test.ts .pi/harnesses/lib/context-budget.test.ts .pi/harnesses/lib/context-budget-view.test.ts .pi/harnesses/lib/context-budget-hub-prompt.test.ts .pi/harnesses/lib/context-budget-child-prompt.test.ts .pi/harnesses/agent-hub/prompts/system-prompt.test.ts .pi/harnesses/agent-hub/prompts/session-start.test.ts .pi/harnesses/agent-hub/session-start.test.ts .pi/harnesses/agent-hub/context-budget-snapshot.test.ts .pi/harnesses/agent-hub/context-budget.integration.test.ts .pi/harnesses/agent-hub/context-pressure.test.ts .pi/harnesses/agent-hub/capability-packs.test.ts .pi/harnesses/agent-hub/capability-confirmation.test.ts .pi/harnesses/agent-hub/capability-matrix.test.ts .pi/harnesses/lib/fleet-read-model.test.ts .pi/harnesses/lib/fleet-dashboard-view.test.ts .pi/harnesses/lib/fleet-dashboard-ops.test.ts .pi/harnesses/lib/fleet-detail-view.test.ts .pi/harnesses/lib/fleet-transcript-store.test.ts .pi/harnesses/agent-hub/fleet-dashboard.integration.test.ts scripts/coms-cli.test.ts scripts/lib/codex-conductor.test.ts scripts/lib/codex-remote-control.test.ts scripts/lib/fleet-command.test.ts scripts/lib/team-project.test.ts scripts/lib/herdr-layout.test.ts scripts/lib/peer-launch.test.ts scripts/lib/spawn-stagger.test.ts scripts/lib/monitor-env.test.ts scripts/lib/fleet-extras.test.ts scripts/lib/team-snapshot.test.ts scripts/team-snapshot.command.test.ts scripts/lib/coms-envelope.test.ts scripts/lib/claude-bridge-core.test.ts scripts/lib/hermes-bridge-core.test.ts scripts/coms-hermes-bridge.test.ts .pi/harnesses/ask-user-remote/race-core.test.js .pi/harnesses/ask-user-remote/index.test.ts .pi/harnesses/agent-hub/extension-loader.test.ts .pi/harnesses/agent-hub/registration-surface.test.ts .pi/harnesses/agent-hub/backend-routing.integration.test.ts .pi/harnesses/agent-hub/dispatch-core.test.ts .pi/extensions/btw/state.test.js .pi/extensions/btw/index.test.ts .pi/harnesses/agent-hub/work-mode.test.ts .pi/harnesses/agent-hub/work-mode-controls.test.ts .pi/harnesses/agent-hub/work-mode-integration.test.ts .pi/harnesses/agent-hub/footer.test.ts .pi/harnesses/agent-hub/view-default.test.ts .pi/harnesses/agent-hub/overlay-migration.test.ts .pi/harnesses/agent-hub/safety-routing.test.ts .pi/harnesses/agent-hub/approval-routing.integration.test.ts .pi/harnesses/agent-hub/run-budget.test.js .pi/harnesses/agent-hub/budget-continuation.test.ts .pi/harnesses/agent-hub/budget-continuation.integration.test.ts .pi/harnesses/agent-hub/hub-state-audit.test.js .pi/harnesses/agent-hub/docs-lane.test.js .pi/harnesses/agent-hub/external-blocker.test.js .pi/harnesses/agent-hub/run-namespace.test.js .pi/harnesses/agent-hub/review-findings.test.js .pi/harnesses/agent-hub/assertion-ledger.test.js .pi/harnesses/agent-hub/provider-semaphore.test.js .pi/harnesses/lib/spawned-peers.test.js .pi/harnesses/agent-hub/context-window.test.js .pi/harnesses/agent-hub/drift-watchdog.test.js .pi/harnesses/agent-hub/session-health.test.js .pi/harnesses/agent-hub/return-contract.test.js .pi/harnesses/agent-hub/return-extract.test.js .pi/harnesses/agent-hub/backend-policy.test.js .pi/harnesses/agent-hub/artifacts.test.js .pi/harnesses/agent-hub/scope-gate.test.js .pi/harnesses/agent-hub/evidence-rules.test.js .pi/harnesses/agent-hub/research-retention.test.js .pi/harnesses/lib/damage-control-shared.test.ts .pi/harnesses/damage-control-continue/herdr-rules.test.js .pi/harnesses/damage-control-continue/exemptions.test.js scripts/lib/hermes-monitor-model.test.ts scripts/lib/hermes-monitor-events.test.ts scripts/lib/hermes-monitor-store.test.ts scripts/lib/hermes-monitor-retention.integration.test.ts scripts/lib/hermes-monitor-registry.test.ts scripts/lib/hermes-monitor-socket.test.ts scripts/lib/hermes-monitor-data-path.test.ts scripts/lib/hermes-monitor-slice7-9-backend.test.ts scripts/lib/hermes-monitor-control-socket.test.ts scripts/lib/hermes-monitor-e2e.test.ts scripts/lib/hermes-monitor-plugin-handshake.test.ts scripts/hermes-monitor-capability-runner.test.ts scripts/hermes-monitor-scenario.test.ts scripts/hermes-watchdog-capability-probe.test.ts .pi/harnesses/agent-hub/monitor-invoke.test.ts .pi/harnesses/agent-hub/monitor-invoke-journal.test.ts .pi/harnesses/agent-hub/monitor-control.test.ts .pi/harnesses/agent-hub/monitor-live-bridge-gaps.test.ts .pi/harnesses/agent-hub/monitor-review-live-wiring.red.test.ts .pi/harnesses/agent-hub/monitor-runtime.test.ts .pi/harnesses/agent-hub/monitor-bridge-runtime.test.ts .pi/harnesses/agent-hub/monitor-reconcile.test.ts .pi/harnesses/agent-hub/monitor-recovery.test.ts .pi/harnesses/agent-hub/monitor-lifecycle-lease.test.ts .pi/harnesses/agent-hub/monitor-session-bridge-race.test.ts .pi/harnesses/agent-hub/monitor-session-bridge.test.ts .pi/harnesses/agent-hub/monitor-cancel-race.test.ts .pi/harnesses/agent-hub/monitor-wait-only.test.ts .pi/harnesses/agent-hub/monitor-publisher.test.ts .pi/harnesses/agent-hub/monitor-index.integration.test.ts hermes/desktop-plugins/agent-fleet-herdr/presentation.test.js scripts/docs-links.test.mjs && npm run test:watchdog-py",
|
|
108
109
|
"test:watchdog-py": "PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s hermes/watchdog-tests -p 'test_*.py'",
|
|
109
110
|
"pack:dry": "npm pack --dry-run",
|
|
110
111
|
"changeset": "changeset",
|
package/scripts/fleet.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { spawnSync } from "node:child_process";
|
|
|
6
6
|
import { parseFleetCommand } from "./lib/fleet-command.ts";
|
|
7
7
|
import { resolveMonitorEnv } from "./lib/monitor-env.ts";
|
|
8
8
|
|
|
9
|
-
const HELP = `Agent Fleet — one guarded Hub runtime, two
|
|
9
|
+
const HELP = `Agent Fleet — one guarded Hub runtime, two work modes, independent topology
|
|
10
10
|
|
|
11
11
|
SET UP A NEW REPOSITORY
|
|
12
12
|
npx @chankov/agent-fleet@latest setup
|
|
@@ -30,22 +30,22 @@ FLEET CORE — loaded in every Pi mode
|
|
|
30
30
|
BTW side sessions · update checker (voice is opt-in with --voice)
|
|
31
31
|
|
|
32
32
|
UNIFIED HUB
|
|
33
|
-
just fleet [--
|
|
33
|
+
just fleet [--work-mode operator|orchestrator] [--agents <roster>]
|
|
34
34
|
[--herdr] [--peers <preset>] [--no-coms] [PI_ARGS...]
|
|
35
|
-
Bare Fleet always loads Agent Hub in operator
|
|
35
|
+
Bare Fleet always loads Agent Hub in operator work mode. Operator keeps
|
|
36
36
|
read/bash/edit/write plus orchestration; the initial native roster is empty.
|
|
37
37
|
--agents selects .pi/agents/teams.yaml and implies orchestrator unless an
|
|
38
|
-
explicit --
|
|
38
|
+
explicit --work-mode operator is supplied. --no-coms leaves direct/native work
|
|
39
39
|
available while coms, peer dispatch, and handoff refuse actionably.
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
/af-
|
|
41
|
+
WORK MODE AND ROSTER
|
|
42
|
+
/af-work-mode # report work mode and capability state
|
|
43
43
|
/af-agents-add code-reviewer # add a native Pi specialist at runtime
|
|
44
|
-
/af-
|
|
45
|
-
/af-
|
|
44
|
+
/af-work-mode orchestrator # remove direct coding tools; keep orchestration
|
|
45
|
+
/af-work-mode operator # restore the approved direct tool surface
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
All Hub slash commands, including /af-handoff, stay registered in both
|
|
47
|
+
Work mode is independent from the native roster and peer topology. Budgets follow task tier.
|
|
48
|
+
All Hub slash commands, including /af-handoff, stay registered in both work modes;
|
|
49
49
|
actions whose coms/Herdr capability is unavailable return remediation guidance.
|
|
50
50
|
|
|
51
51
|
Explicit dispatch backend examples (inside the Hub):
|
|
@@ -47,7 +47,11 @@ interface HubParseDefaults {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
function parseHubInvocation(args: string[], defaults: HubParseDefaults = {}): FleetInvocation {
|
|
50
|
-
|
|
50
|
+
if (args.some(arg => arg === "--posture" || arg.startsWith("--posture="))) {
|
|
51
|
+
throw new Error("--posture was removed; use --work-mode operator|orchestrator.");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let workMode: "operator" | "orchestrator" | undefined;
|
|
51
55
|
let agents = defaults.defaultAgents;
|
|
52
56
|
let peers = defaults.forcedPeers;
|
|
53
57
|
let herdr = defaults.forceHerdr ?? false;
|
|
@@ -59,7 +63,7 @@ function parseHubInvocation(args: string[], defaults: HubParseDefaults = {}): Fl
|
|
|
59
63
|
let projectSeen = false;
|
|
60
64
|
let agentsSeen = false;
|
|
61
65
|
let peersSeen = false;
|
|
62
|
-
let
|
|
66
|
+
let workModeSeen = false;
|
|
63
67
|
let herdrSeen = false;
|
|
64
68
|
let noComsSeen = false;
|
|
65
69
|
let browserSeen = false;
|
|
@@ -76,12 +80,12 @@ function parseHubInvocation(args: string[], defaults: HubParseDefaults = {}): Fl
|
|
|
76
80
|
break;
|
|
77
81
|
}
|
|
78
82
|
switch (arg) {
|
|
79
|
-
case "--
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
const value = requireValue(args[++i], "--
|
|
83
|
-
if (value !== "operator" && value !== "orchestrator") throw new Error("--
|
|
84
|
-
|
|
83
|
+
case "--work-mode": {
|
|
84
|
+
if (workModeSeen) throw new Error("--work-mode may only be provided once");
|
|
85
|
+
workModeSeen = true;
|
|
86
|
+
const value = requireValue(args[++i], "--work-mode requires operator or orchestrator");
|
|
87
|
+
if (value !== "operator" && value !== "orchestrator") throw new Error("--work-mode requires operator or orchestrator");
|
|
88
|
+
workMode = value;
|
|
85
89
|
break;
|
|
86
90
|
}
|
|
87
91
|
case "--agents":
|
|
@@ -141,14 +145,14 @@ function parseHubInvocation(args: string[], defaults: HubParseDefaults = {}): Fl
|
|
|
141
145
|
}
|
|
142
146
|
}
|
|
143
147
|
|
|
144
|
-
if (
|
|
148
|
+
if (workMode === "orchestrator" && !agents) throw new Error("--work-mode orchestrator requires --agents <roster>");
|
|
145
149
|
const topology = herdr || peers !== undefined;
|
|
146
150
|
if (dryRun && !topology) throw new Error("--dry-run requires --herdr or --peers");
|
|
147
151
|
|
|
148
152
|
let invocation: FleetInvocation;
|
|
149
153
|
if (topology) {
|
|
150
154
|
const forwarded = [
|
|
151
|
-
...(
|
|
155
|
+
...(workMode ? ["--work-mode", workMode] : []),
|
|
152
156
|
...(agents ? [defaults.legacyAgents ? "--legacy-agents" : "--agents", agents] : []),
|
|
153
157
|
...(noComs ? ["--no-coms"] : []),
|
|
154
158
|
...(browser ? ["--browser"] : []),
|
|
@@ -165,7 +169,7 @@ function parseHubInvocation(args: string[], defaults: HubParseDefaults = {}): Fl
|
|
|
165
169
|
bool(browser),
|
|
166
170
|
bool(voice),
|
|
167
171
|
bool(allExtensions),
|
|
168
|
-
...(
|
|
172
|
+
...(workMode ? ["--work-mode", workMode] : []),
|
|
169
173
|
...(agents ? ["--agent-team", agents] : []),
|
|
170
174
|
...rest,
|
|
171
175
|
],
|
|
@@ -112,7 +112,7 @@ export function teamWorkspaceLabel(
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export interface HubCommandOptions {
|
|
115
|
-
|
|
115
|
+
workMode?: "operator" | "orchestrator";
|
|
116
116
|
agentTeam?: string;
|
|
117
117
|
noComs?: boolean;
|
|
118
118
|
browser?: boolean;
|
|
@@ -134,7 +134,7 @@ export function hubCommand(
|
|
|
134
134
|
validateProject(project);
|
|
135
135
|
if (options.agentTeam) validateTeamName(options.agentTeam);
|
|
136
136
|
const command = ["just", "fleet"];
|
|
137
|
-
if (options.
|
|
137
|
+
if (options.workMode) command.push("--work-mode", options.workMode);
|
|
138
138
|
if (options.agentTeam) command.push("--agents", options.agentTeam);
|
|
139
139
|
if (options.noComs) command.push("--no-coms");
|
|
140
140
|
if (options.browser) command.push("--browser");
|
package/scripts/team-up.ts
CHANGED
|
@@ -221,7 +221,7 @@ async function main(): Promise<void> {
|
|
|
221
221
|
let hubBrowser: boolean;
|
|
222
222
|
let hubAllExtensions: boolean;
|
|
223
223
|
let hubNoComs: boolean;
|
|
224
|
-
let
|
|
224
|
+
let hubWorkMode: "operator" | "orchestrator" | undefined;
|
|
225
225
|
let hubAgentTeam: string | undefined;
|
|
226
226
|
try {
|
|
227
227
|
dryRun = booleanFlag(argv, "--dry-run");
|
|
@@ -229,11 +229,11 @@ async function main(): Promise<void> {
|
|
|
229
229
|
hubBrowser = booleanFlag(argv, "--browser");
|
|
230
230
|
hubAllExtensions = booleanFlag(argv, "--all-extensions");
|
|
231
231
|
hubNoComs = booleanFlag(argv, "--no-coms");
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
throw new Error("--
|
|
232
|
+
const workMode = flagValue(argv, "--work-mode");
|
|
233
|
+
if (workMode && workMode !== "operator" && workMode !== "orchestrator") {
|
|
234
|
+
throw new Error("--work-mode requires operator or orchestrator");
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
hubWorkMode = workMode ?? undefined;
|
|
237
237
|
const canonicalAgents = flagValue(argv, "--agents");
|
|
238
238
|
const legacyAgents = flagValue(argv, "--legacy-agents");
|
|
239
239
|
if (canonicalAgents && legacyAgents) throw new Error("--agents and --legacy-agents are mutually exclusive");
|
|
@@ -246,11 +246,11 @@ async function main(): Promise<void> {
|
|
|
246
246
|
} catch (err) {
|
|
247
247
|
die(err instanceof Error ? err.message : String(err));
|
|
248
248
|
}
|
|
249
|
-
if (!hub && (hubBrowser || hubAllExtensions || hubNoComs ||
|
|
250
|
-
die("--
|
|
249
|
+
if (!hub && (hubBrowser || hubAllExtensions || hubNoComs || hubWorkMode || hubAgentTeam)) {
|
|
250
|
+
die("--work-mode/--agents/--no-coms/--browser/--all-extensions apply to the hub pane and therefore require --hub");
|
|
251
251
|
}
|
|
252
|
-
if (
|
|
253
|
-
die("--
|
|
252
|
+
if (hubWorkMode === "orchestrator" && !hubAgentTeam) {
|
|
253
|
+
die("--work-mode orchestrator requires --agents <roster>");
|
|
254
254
|
}
|
|
255
255
|
let conductor: ConductorBackend | null;
|
|
256
256
|
try {
|
|
@@ -297,7 +297,7 @@ async function main(): Promise<void> {
|
|
|
297
297
|
// reads them, and a peer is not a hub.
|
|
298
298
|
const monitorEnv = dryRun ? null : resolveMonitorEnv();
|
|
299
299
|
const hubOptions = {
|
|
300
|
-
|
|
300
|
+
workMode: hubWorkMode,
|
|
301
301
|
agentTeam: hubAgentTeam,
|
|
302
302
|
noComs: hubNoComs,
|
|
303
303
|
browser: hubBrowser,
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { orchestratorNeedsRoster } from "./helpers.ts";
|
|
2
|
-
import { parsePosture, POSTURES, type Posture } from "./posture.ts";
|
|
3
|
-
|
|
4
|
-
export type WorkModeParse =
|
|
5
|
-
| { ok: true; action: "picker" }
|
|
6
|
-
| { ok: true; action: "apply"; posture: Posture; deprecatedFrom?: string }
|
|
7
|
-
| { ok: false; error: string };
|
|
8
|
-
|
|
9
|
-
function titleCase(value: string): string {
|
|
10
|
-
const trimmed = String(value ?? "").trim();
|
|
11
|
-
if (!trimmed) return "";
|
|
12
|
-
return trimmed.charAt(0).toUpperCase() + trimmed.slice(1).toLowerCase();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function formatPickerOption(selected: boolean, label: string, description: string): string {
|
|
16
|
-
return `${selected ? "✓ " : " "}${label} — ${description}`;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const DEPRECATED_WORK_MODE: Record<string, Posture> = {
|
|
20
|
-
fast: "operator",
|
|
21
|
-
standard: "orchestrator",
|
|
22
|
-
strict: "orchestrator",
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export function compactPosture(posture: string): string {
|
|
26
|
-
return titleCase(posture) || "Posture";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function parseWorkModeArgs(args: string | undefined | null): WorkModeParse {
|
|
30
|
-
const tokens = String(args ?? "").trim().split(/\s+/).filter(Boolean);
|
|
31
|
-
if (tokens.length === 0) return { ok: true, action: "picker" };
|
|
32
|
-
if (tokens.length === 1) {
|
|
33
|
-
const token = tokens[0].toLowerCase();
|
|
34
|
-
const posture = parsePosture(token);
|
|
35
|
-
if (posture) return { ok: true, action: "apply", posture };
|
|
36
|
-
const mapped = DEPRECATED_WORK_MODE[token];
|
|
37
|
-
if (mapped) return { ok: true, action: "apply", posture: mapped, deprecatedFrom: token };
|
|
38
|
-
return {
|
|
39
|
-
ok: false,
|
|
40
|
-
error: `Unknown work mode "${tokens[0]}" — expected operator or orchestrator.`,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
ok: false,
|
|
45
|
-
error: `Unknown work mode "${tokens.join(" ")}" — expected operator or orchestrator.`,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function posturePickerOptions(current: Posture): { title: string; options: string[]; postures: Posture[] } {
|
|
50
|
-
const postures = [...POSTURES];
|
|
51
|
-
const options = postures.map(posture => formatPickerOption(
|
|
52
|
-
posture === current,
|
|
53
|
-
posture,
|
|
54
|
-
posture === "operator" ? "Direct tools enabled" : "Delegate-only; requires a native roster",
|
|
55
|
-
));
|
|
56
|
-
return { title: `Fleet posture — Alt+M · current ${current}`, options, postures };
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function executionPairBlockedByRoster(current: Posture, next: Posture, rosterSize: number): boolean {
|
|
60
|
-
if (next === current) return false;
|
|
61
|
-
return orchestratorNeedsRoster(next, rosterSize);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function selectedPickerValue<T>(options: readonly string[], choice: string | undefined, values: readonly T[]): T | undefined {
|
|
65
|
-
if (choice === undefined) return undefined;
|
|
66
|
-
const index = options.indexOf(choice);
|
|
67
|
-
if (index < 0) return undefined;
|
|
68
|
-
return values[index];
|
|
69
|
-
}
|