@chankov/agent-fleet 2.0.2 → 2.0.4
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 +64 -13
- package/.pi/agents/peers.yaml +11 -8
- package/.pi/harnesses/agent-hub/README.md +30 -33
- package/.pi/harnesses/agent-hub/commands/agents-restart.ts +1 -1
- package/.pi/harnesses/agent-hub/config/agents.ts +13 -14
- package/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
- package/.pi/harnesses/agent-hub/config/overrides.ts +2 -7
- package/.pi/harnesses/agent-hub/dispatch-coms.ts +6 -4
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +6 -3
- package/.pi/harnesses/agent-hub/dispatch-native.ts +4 -1
- package/.pi/harnesses/agent-hub/index.ts +75 -34
- package/.pi/harnesses/agent-hub/input/completions.ts +2 -2
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +7 -9
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/models.ts +35 -8
- package/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.pi/harnesses/agent-hub/policy/profile-runtime.ts +64 -0
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +1 -1
- package/.pi/harnesses/agent-hub/provider-semaphore.js +1 -1
- package/.pi/harnesses/agent-hub/research/controls.ts +15 -16
- package/.pi/harnesses/agent-hub/research/runtime.ts +30 -39
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +109 -111
- package/.pi/harnesses/agent-hub/spawn.ts +17 -1
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +2 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +2 -3
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +2 -0
- package/.pi/harnesses/agent-hub/ui/detail-panel.ts +7 -4
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +0 -7
- package/.pi/harnesses/agent-hub/ui/grid.ts +21 -183
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/fleet-dashboard-ops.ts +23 -12
- package/.versions/2.0.3/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.3/.pi/agents/model-profiles.yaml +27 -0
- package/.versions/2.0.3/.pi/agents/peers.yaml +142 -0
- package/.versions/2.0.3/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.3/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.3/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.3/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/2.0.3/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/2.0.3/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/2.0.3/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.3/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.3/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.3/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.3/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.3/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.3/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.3/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.3/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.3/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.3/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.3/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.3/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.3/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.3/.pi/extensions/package.json +9 -0
- package/.versions/2.0.3/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.3/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.3/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.3/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.3/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.3/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.3/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/README.md +1158 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/context.ts +41 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/config/agents.ts +180 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +211 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/context/budgets.ts +208 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-coms.ts +232 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-native-complete.ts +135 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +153 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +191 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-native-types.ts +207 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-native.ts +184 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/dispatch-observability.ts +220 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/fixtures/registration-surface.json +55 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/index.ts +2036 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/input/shortcuts.ts +47 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +141 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +95 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/policy/models.ts +126 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/policy/roster.ts +79 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/policy/work-mode.ts +118 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/prompts/context.ts +46 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/prompts/system-prompt.ts +110 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/research/runtime.ts +175 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/research/spawn-run.ts +143 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/spawn.ts +388 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/action-executors.ts +146 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/context.ts +132 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +79 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +199 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/herdr-executors.ts +82 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/types.ts +61 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/detail-panel.ts +175 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +123 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/grid.ts +144 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.3/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.3/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/2.0.3/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/2.0.3/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/2.0.3/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.3/.pi/harnesses/coms/index.ts +276 -0
- package/.versions/2.0.3/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.3/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.3/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/2.0.3/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/2.0.3/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.3/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.3/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.3/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.3/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.3/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/2.0.3/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.3/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.3/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.3/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-dashboard-ops.ts +166 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-dashboard-view.ts +142 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.3/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.3/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.3/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.3/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.3/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.3/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.3/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.3/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.3/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.3/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.3/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.3/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.3/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.3/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.3/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.3/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.3/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.3/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.3/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.3/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.3/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.3/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.3/.version +1 -0
- package/.versions/2.0.3/agents/architect.md +25 -0
- package/.versions/2.0.3/agents/bowser.md +28 -0
- package/.versions/2.0.3/agents/builder.md +56 -0
- package/.versions/2.0.3/agents/code-reviewer.md +210 -0
- package/.versions/2.0.3/agents/deep-researcher.md +33 -0
- package/.versions/2.0.3/agents/documenter.md +22 -0
- package/.versions/2.0.3/agents/orchestrator.md +23 -0
- package/.versions/2.0.3/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.3/agents/planner.md +105 -0
- package/.versions/2.0.3/agents/releaser.md +25 -0
- package/.versions/2.0.3/agents/researcher.md +31 -0
- package/.versions/2.0.3/agents/security-auditor.md +168 -0
- package/.versions/2.0.3/agents/test-engineer.md +154 -0
- package/.versions/2.0.3/agents/web-debugger.md +44 -0
- package/.versions/2.0.3/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.3/bin/catalog/harness-runtime-closure.json +34 -0
- package/.versions/2.0.3/codex/CONDUCTOR.md +148 -0
- package/.versions/2.0.3/docs/ARCHITECTURE.md +407 -0
- package/.versions/2.0.3/docs/agent-fleet-setup.md +473 -0
- package/.versions/2.0.3/docs/claude-code-coms-bridge.md +128 -0
- package/.versions/2.0.3/docs/codex-remote-conductor.md +170 -0
- package/.versions/2.0.3/docs/coms-hermes-bridge.md +189 -0
- package/.versions/2.0.3/docs/getting-started.md +119 -0
- package/.versions/2.0.3/docs/npm-install.md +292 -0
- package/.versions/2.0.3/docs/pi-extensions.md +447 -0
- package/.versions/2.0.3/docs/pi-setup.md +74 -0
- package/.versions/2.0.3/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.3/hermes/README.md +347 -0
- package/.versions/2.0.3/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.3/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.3/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.3/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.3/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.3/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.3/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.3/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.3/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.3/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.3/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.3/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.3/install-manifest.json +2940 -0
- package/.versions/2.0.3/justfile +289 -0
- package/.versions/2.0.3/manifest-meta.json +969 -0
- package/.versions/2.0.3/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.3/references/communication-contract.md +26 -0
- package/.versions/2.0.3/references/definition-of-done.md +67 -0
- package/.versions/2.0.3/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.3/references/observability-checklist.md +91 -0
- package/.versions/2.0.3/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.3/references/performance-checklist.md +153 -0
- package/.versions/2.0.3/references/prompting-patterns.md +380 -0
- package/.versions/2.0.3/references/security-checklist.md +179 -0
- package/.versions/2.0.3/references/testing-patterns.md +236 -0
- package/.versions/2.0.3/references/workflow-authoring.md +304 -0
- package/.versions/2.0.3/scripts/codex-conductor.ts +41 -0
- package/.versions/2.0.3/scripts/codex-remote-control.ts +167 -0
- package/.versions/2.0.3/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.3/scripts/coms-cli.ts +484 -0
- package/.versions/2.0.3/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.3/scripts/fleet.ts +199 -0
- package/.versions/2.0.3/scripts/flow.ts +137 -0
- package/.versions/2.0.3/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.3/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.3/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.3/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.3/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.3/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/2.0.3/scripts/lib/codex-remote-control.ts +482 -0
- package/.versions/2.0.3/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.3/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.3/scripts/lib/fleet-command.ts +270 -0
- package/.versions/2.0.3/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.3/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.3/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.3/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.3/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.3/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.3/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.3/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.3/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.3/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.3/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.3/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.3/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.3/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.3/scripts/lib/team-project.ts +213 -0
- package/.versions/2.0.3/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.3/scripts/package-lock.json +35 -0
- package/.versions/2.0.3/scripts/package.json +9 -0
- package/.versions/2.0.3/scripts/peer-banner.ts +40 -0
- package/.versions/2.0.3/scripts/peer-launch.ts +259 -0
- package/.versions/2.0.3/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.3/scripts/team-up.ts +406 -0
- package/.versions/2.0.3/scripts/workflows/lib/agent-phase.ts +132 -0
- package/.versions/2.0.3/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.3/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.3/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.3/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.3/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.3/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.3/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.3/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.3/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.3/scripts/workflows/lib/personas.ts +54 -0
- package/.versions/2.0.3/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.3/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.3/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.3/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.3/scripts/workflows/lib/voices.ts +125 -0
- package/.versions/2.0.3/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.3/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.3/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.3/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.3/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.3/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.3/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.3/scripts/workflows/wf-scout.ts +38 -0
- package/.versions/2.0.3/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.3/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.3/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/2.0.3/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.3/skills/context-engineering/SKILL.md +291 -0
- package/.versions/2.0.3/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/2.0.3/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.3/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.3/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.3/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.3/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.3/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.3/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.3/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.3/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.3/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.3/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.3/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/2.0.3/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.3/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.3/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.3/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.3/skills/planning-and-task-breakdown/SKILL.md +265 -0
- package/.versions/2.0.3/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/2.0.3/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/2.0.3/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/2.0.3/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/2.0.3/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/.versions/2.0.4/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.4/.pi/agents/model-profiles.yaml +78 -0
- package/.versions/2.0.4/.pi/agents/peers.yaml +145 -0
- package/.versions/2.0.4/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.4/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.4/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.4/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/2.0.4/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/2.0.4/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/2.0.4/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.4/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.4/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.4/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.4/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.4/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.4/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.4/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.4/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.4/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.4/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.4/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.4/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.4/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.4/.pi/extensions/package.json +9 -0
- package/.versions/2.0.4/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.4/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.4/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.4/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.4/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.4/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.4/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/README.md +1160 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/context.ts +41 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/config/agents.ts +179 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +211 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/context/budgets.ts +208 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-coms.ts +234 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-native-complete.ts +135 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +156 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +191 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-native-types.ts +207 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-native.ts +187 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/dispatch-observability.ts +220 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/fixtures/registration-surface.json +55 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/index.ts +2088 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/input/shortcuts.ts +47 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +141 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +95 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/policy/profile-runtime.ts +64 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/policy/roster.ts +79 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/policy/work-mode.ts +118 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/prompts/context.ts +46 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/prompts/system-prompt.ts +110 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/research/runtime.ts +175 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/research/spawn-run.ts +144 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/spawn.ts +404 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/action-executors.ts +148 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/context.ts +132 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +79 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +199 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/herdr-executors.ts +84 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/types.ts +61 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/detail-panel.ts +178 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +123 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/grid.ts +144 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.4/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.4/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/2.0.4/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/2.0.4/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/2.0.4/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.4/.pi/harnesses/coms/index.ts +276 -0
- package/.versions/2.0.4/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.4/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.4/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/2.0.4/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/2.0.4/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.4/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.4/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.4/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.4/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.4/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/2.0.4/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.4/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.4/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.4/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-dashboard-ops.ts +166 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-dashboard-view.ts +142 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.4/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.4/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.4/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.4/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.4/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.4/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.4/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.4/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.4/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.4/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.4/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.4/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.4/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.4/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.4/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.4/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.4/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.4/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.4/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.4/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.4/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.4/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.4/.version +1 -0
- package/.versions/2.0.4/agents/architect.md +25 -0
- package/.versions/2.0.4/agents/bowser.md +28 -0
- package/.versions/2.0.4/agents/builder.md +56 -0
- package/.versions/2.0.4/agents/code-reviewer.md +210 -0
- package/.versions/2.0.4/agents/deep-researcher.md +33 -0
- package/.versions/2.0.4/agents/documenter.md +22 -0
- package/.versions/2.0.4/agents/orchestrator.md +23 -0
- package/.versions/2.0.4/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.4/agents/planner.md +105 -0
- package/.versions/2.0.4/agents/releaser.md +25 -0
- package/.versions/2.0.4/agents/researcher.md +31 -0
- package/.versions/2.0.4/agents/security-auditor.md +168 -0
- package/.versions/2.0.4/agents/test-engineer.md +154 -0
- package/.versions/2.0.4/agents/web-debugger.md +44 -0
- package/.versions/2.0.4/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.4/bin/catalog/harness-runtime-closure.json +36 -0
- package/.versions/2.0.4/codex/CONDUCTOR.md +148 -0
- package/.versions/2.0.4/docs/ARCHITECTURE.md +407 -0
- package/.versions/2.0.4/docs/agent-fleet-setup.md +547 -0
- package/.versions/2.0.4/docs/claude-code-coms-bridge.md +133 -0
- package/.versions/2.0.4/docs/codex-remote-conductor.md +170 -0
- package/.versions/2.0.4/docs/coms-hermes-bridge.md +189 -0
- package/.versions/2.0.4/docs/getting-started.md +124 -0
- package/.versions/2.0.4/docs/npm-install.md +299 -0
- package/.versions/2.0.4/docs/pi-extensions.md +447 -0
- package/.versions/2.0.4/docs/pi-setup.md +74 -0
- package/.versions/2.0.4/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.4/hermes/README.md +347 -0
- package/.versions/2.0.4/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.4/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.4/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.4/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.4/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.4/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.4/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.4/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.4/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.4/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.4/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.4/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.4/install-manifest.json +2942 -0
- package/.versions/2.0.4/justfile +289 -0
- package/.versions/2.0.4/manifest-meta.json +969 -0
- package/.versions/2.0.4/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.4/references/communication-contract.md +26 -0
- package/.versions/2.0.4/references/definition-of-done.md +67 -0
- package/.versions/2.0.4/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.4/references/observability-checklist.md +91 -0
- package/.versions/2.0.4/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.4/references/performance-checklist.md +153 -0
- package/.versions/2.0.4/references/prompting-patterns.md +380 -0
- package/.versions/2.0.4/references/security-checklist.md +179 -0
- package/.versions/2.0.4/references/testing-patterns.md +236 -0
- package/.versions/2.0.4/references/workflow-authoring.md +304 -0
- package/.versions/2.0.4/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.4/scripts/codex-conductor.ts +41 -0
- package/.versions/2.0.4/scripts/codex-remote-control.ts +167 -0
- package/.versions/2.0.4/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.4/scripts/coms-cli.ts +484 -0
- package/.versions/2.0.4/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.4/scripts/fleet.ts +222 -0
- package/.versions/2.0.4/scripts/flow.ts +137 -0
- package/.versions/2.0.4/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.4/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.4/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.4/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.4/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.4/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/2.0.4/scripts/lib/codex-remote-control.ts +482 -0
- package/.versions/2.0.4/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.4/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.4/scripts/lib/fleet-command.ts +270 -0
- package/.versions/2.0.4/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.4/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.4/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.4/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.4/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.4/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.4/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.4/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.4/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.4/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.4/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.4/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.4/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.4/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.4/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.4/scripts/lib/team-project.ts +213 -0
- package/.versions/2.0.4/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.4/scripts/package-lock.json +35 -0
- package/.versions/2.0.4/scripts/package.json +9 -0
- package/.versions/2.0.4/scripts/peer-banner.ts +40 -0
- package/.versions/2.0.4/scripts/peer-launch.ts +285 -0
- package/.versions/2.0.4/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.4/scripts/team-up.ts +406 -0
- package/.versions/2.0.4/scripts/workflows/lib/agent-phase.ts +133 -0
- package/.versions/2.0.4/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.4/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.4/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.4/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.4/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.4/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.4/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.4/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.4/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.4/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.4/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.4/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.4/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.4/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.4/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.4/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.4/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.4/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.4/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.4/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.4/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.4/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.4/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.4/scripts/workflows/wf-scout.ts +38 -0
- package/.versions/2.0.4/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.4/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.4/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/2.0.4/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.4/skills/context-engineering/SKILL.md +291 -0
- package/.versions/2.0.4/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/2.0.4/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.4/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.4/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.4/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.4/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.4/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.4/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.4/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.4/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.4/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.4/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.4/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/2.0.4/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.4/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.4/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.4/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.4/skills/planning-and-task-breakdown/SKILL.md +265 -0
- package/.versions/2.0.4/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/2.0.4/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/2.0.4/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/2.0.4/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/2.0.4/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/bin/catalog/harness-runtime-closure.json +2 -0
- package/bin/cli.js +47 -9
- package/bin/lib/doctor.js +36 -3
- package/bin/lib/model-visibility.js +64 -0
- package/bin/lib/reconcile.js +3 -2
- package/docs/agent-fleet-setup.md +75 -1
- package/docs/claude-code-coms-bridge.md +5 -0
- package/docs/getting-started.md +7 -2
- package/docs/npm-install.md +13 -6
- package/docs/pi-extensions.md +13 -10
- package/install-manifest.json +38 -1
- package/justfile +2 -1
- package/manifest-meta.json +25 -1
- package/package.json +7 -3
- package/scripts/claude-code-preflight.ts +70 -0
- package/scripts/fleet.ts +24 -1
- package/scripts/lib/runtime-dependencies.js +124 -0
- package/scripts/package-lock.json +35 -0
- package/scripts/package.json +9 -0
- package/scripts/peer-launch.ts +27 -1
- package/scripts/workflows/lib/agent-phase.ts +2 -1
- package/scripts/workflows/lib/model-profile.ts +22 -0
- package/scripts/workflows/lib/personas.ts +6 -3
- package/scripts/workflows/lib/voices.ts +3 -0
- package/.pi/harnesses/agent-hub/research-retention.js +0 -34
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/** Pure `/af-poll` argument, panel, and digest helpers. The hub command is a thin consumer. */
|
|
2
|
+
|
|
3
|
+
export const HUB_POLL_DEFAULT_PERSONA = "researcher";
|
|
4
|
+
|
|
5
|
+
export interface ParsedAfPollArgs {
|
|
6
|
+
panel?: string;
|
|
7
|
+
persona: string;
|
|
8
|
+
question: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface AfPollVoiceDigest {
|
|
13
|
+
name: string;
|
|
14
|
+
model: string;
|
|
15
|
+
ok: boolean;
|
|
16
|
+
position?: string;
|
|
17
|
+
confidence?: string;
|
|
18
|
+
reason?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AfPollDigestInput {
|
|
22
|
+
panel: string;
|
|
23
|
+
directory: string;
|
|
24
|
+
voices: AfPollVoiceDigest[];
|
|
25
|
+
recommendation?: string;
|
|
26
|
+
integrator?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface AfPollHandleInput {
|
|
30
|
+
args: string;
|
|
31
|
+
cwd: string;
|
|
32
|
+
pollPanelOverride?: string | null;
|
|
33
|
+
listPanels: (cwd: string) => string[] | Promise<string[]>;
|
|
34
|
+
preflight?: (options: { panel: string; persona: string; cwd: string }) => string | null | Promise<string | null>;
|
|
35
|
+
checkBudget: () => string | null;
|
|
36
|
+
chargeBudget: () => void;
|
|
37
|
+
onAccepted?: (info: { panel: string; persona: string; question: string }) => void | Promise<void>;
|
|
38
|
+
execute: (options: { panel: string; persona: string; question: string; cwd: string }) => Promise<AfPollDigestInput>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface AfPollHandleResult {
|
|
42
|
+
ok: boolean;
|
|
43
|
+
message: string;
|
|
44
|
+
digest?: string;
|
|
45
|
+
dispatcherNote?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function tokenize(args: string): string[] {
|
|
49
|
+
const tokens: string[] = [];
|
|
50
|
+
const input = args.trim();
|
|
51
|
+
let current = "";
|
|
52
|
+
let quote: string | null = null;
|
|
53
|
+
for (let i = 0; i < input.length; i++) {
|
|
54
|
+
const ch = input[i];
|
|
55
|
+
if (quote) {
|
|
56
|
+
if (ch === quote) quote = null;
|
|
57
|
+
else current += ch;
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (ch === "\"" || ch === "'") { quote = ch; continue; }
|
|
61
|
+
if (/\s/.test(ch)) {
|
|
62
|
+
if (current) { tokens.push(current); current = ""; }
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
current += ch;
|
|
66
|
+
}
|
|
67
|
+
if (current) tokens.push(current);
|
|
68
|
+
return tokens;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function parseAfPollArgs(args: string): ParsedAfPollArgs {
|
|
72
|
+
const tokens = tokenize(args ?? "");
|
|
73
|
+
let panel: string | undefined;
|
|
74
|
+
let persona: string | undefined;
|
|
75
|
+
const rest: string[] = [];
|
|
76
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
77
|
+
const token = tokens[i];
|
|
78
|
+
if (token === "--panel") {
|
|
79
|
+
const value = tokens[++i];
|
|
80
|
+
if (!value || value.startsWith("--")) return { persona: HUB_POLL_DEFAULT_PERSONA, question: "", error: "/af-poll --panel requires a panel name" };
|
|
81
|
+
panel = value;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (token === "--persona") {
|
|
85
|
+
const value = tokens[++i];
|
|
86
|
+
if (!value || value.startsWith("--")) return { persona: HUB_POLL_DEFAULT_PERSONA, question: "", error: "/af-poll --persona requires a persona name" };
|
|
87
|
+
persona = value;
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
rest.push(token);
|
|
91
|
+
}
|
|
92
|
+
const question = rest.join(" ").trim();
|
|
93
|
+
if (!question) {
|
|
94
|
+
return {
|
|
95
|
+
panel, persona: persona ?? HUB_POLL_DEFAULT_PERSONA, question: "",
|
|
96
|
+
error: "Usage: /af-poll [--panel NAME] [--persona NAME] <question>",
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return { panel, persona: persona ?? HUB_POLL_DEFAULT_PERSONA, question };
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function resolveAfPollPanel(flag: string | undefined, override: string | null | undefined, available: string[]): { panel: string } | { error: string } {
|
|
103
|
+
const named = flag?.trim() || override?.trim() || "";
|
|
104
|
+
const list = available.length ? available.join(", ") : "(none)";
|
|
105
|
+
if (!named) {
|
|
106
|
+
return { error: `--panel is required (or set poll-panel: in ## agent-hub). Available panels: ${list}` };
|
|
107
|
+
}
|
|
108
|
+
if (available.length > 0 && !available.includes(named)) {
|
|
109
|
+
return { error: `Unknown panel "${named}". Available panels: ${list}` };
|
|
110
|
+
}
|
|
111
|
+
return { panel: named };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function formatAfPollDigest(input: AfPollDigestInput): string {
|
|
115
|
+
const blocks = input.voices.map(voice => {
|
|
116
|
+
const header = `${voice.name} · ${voice.model}`;
|
|
117
|
+
if (!voice.ok) return `${header}\n failed: ${voice.reason ?? "unknown error"}`;
|
|
118
|
+
return `${header}\n position: ${voice.position ?? ""}\n confidence: ${voice.confidence ?? ""}`;
|
|
119
|
+
});
|
|
120
|
+
const merge = input.recommendation
|
|
121
|
+
? `\nmerge${input.integrator ? ` · ${input.integrator}` : ""}\n recommendation: ${input.recommendation}`
|
|
122
|
+
: "";
|
|
123
|
+
return `${blocks.join("\n\n")}${merge}\n\nFull opinions: ${input.directory}`;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function formatAfPollStarted(info: { panel: string; persona: string; question: string; voices?: { name: string; model: string }[] }): string {
|
|
127
|
+
const roster = info.voices?.length
|
|
128
|
+
? info.voices.map(voice => `${voice.name} · ${voice.model}`).join("\n")
|
|
129
|
+
: "(voices loading)";
|
|
130
|
+
return [
|
|
131
|
+
`POLL STARTED (panel ${info.panel}, persona ${info.persona})`,
|
|
132
|
+
"",
|
|
133
|
+
`Question: ${info.question}`,
|
|
134
|
+
"",
|
|
135
|
+
"Voices:",
|
|
136
|
+
roster,
|
|
137
|
+
"",
|
|
138
|
+
"Running read-only. Full opinions stay on disk; a digest follows when every voice and the merge finish.",
|
|
139
|
+
].join("\n");
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function formatAfPollVoiceProgress(voice: AfPollVoiceDigest): string {
|
|
143
|
+
if (!voice.ok) return `POLL VOICE ${voice.name} · ${voice.model}\n failed: ${voice.reason ?? "unknown error"}`;
|
|
144
|
+
return `POLL VOICE ${voice.name} · ${voice.model}\n position: ${voice.position ?? ""}\n confidence: ${voice.confidence ?? ""}`;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function formatAfPollDispatcherNote(input: AfPollDigestInput, digest: string): string {
|
|
148
|
+
return [
|
|
149
|
+
`POLL RESULT (panel ${input.panel})`,
|
|
150
|
+
"",
|
|
151
|
+
digest,
|
|
152
|
+
"",
|
|
153
|
+
"The digest above is the whole payload. Do not paste full voice opinions into this session; cite the path if you need more.",
|
|
154
|
+
].join("\n");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export async function handleAfPoll(input: AfPollHandleInput): Promise<AfPollHandleResult> {
|
|
158
|
+
const parsed = parseAfPollArgs(input.args);
|
|
159
|
+
if (parsed.error) return { ok: false, message: parsed.error };
|
|
160
|
+
const available = await input.listPanels(input.cwd);
|
|
161
|
+
const panel = resolveAfPollPanel(parsed.panel, input.pollPanelOverride, available);
|
|
162
|
+
if ("error" in panel) return { ok: false, message: panel.error };
|
|
163
|
+
const blocked = await input.preflight?.({ panel: panel.panel, persona: parsed.persona, cwd: input.cwd });
|
|
164
|
+
if (blocked) return { ok: false, message: blocked };
|
|
165
|
+
const budget = input.checkBudget();
|
|
166
|
+
if (budget) return { ok: false, message: budget };
|
|
167
|
+
input.chargeBudget();
|
|
168
|
+
try { await input.onAccepted?.({ panel: panel.panel, persona: parsed.persona, question: parsed.question }); } catch { /* progress is best-effort */ }
|
|
169
|
+
try {
|
|
170
|
+
const digestInput = await input.execute({ panel: panel.panel, persona: parsed.persona, question: parsed.question, cwd: input.cwd });
|
|
171
|
+
const digest = formatAfPollDigest(digestInput);
|
|
172
|
+
return { ok: true, message: digest, digest, dispatcherNote: formatAfPollDispatcherNote(digestInput, digest) };
|
|
173
|
+
} catch (error) {
|
|
174
|
+
return { ok: false, message: error instanceof Error ? error.message : String(error) };
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
|
|
5
|
+
const VALID_THINKING_LEVELS = new Set(["off", "minimal", "low", "medium", "high", "xhigh"]);
|
|
6
|
+
const THINKING_ABBREV: Record<string, string> = { off: "", minimal: "min", low: "low", medium: "med", high: "hi", xhigh: "xh" };
|
|
7
|
+
|
|
8
|
+
export function displayName(name: string): string {
|
|
9
|
+
return name.split("-").map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function extractAskUserQuestions(output: string): string[] {
|
|
13
|
+
return extractMarkers(output, "ASK_USER");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function extractNeedsResearch(output: string): string[] {
|
|
17
|
+
return extractMarkers(output, "NEEDS_RESEARCH");
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function extractMarkers(output: string, marker: string): string[] {
|
|
21
|
+
const questions: string[] = [];
|
|
22
|
+
const pattern = new RegExp(`^${marker}\\s*:\\s*(.+)$`, "i");
|
|
23
|
+
for (const rawLine of output.split("\n")) {
|
|
24
|
+
const question = rawLine.trim().match(pattern)?.[1]?.trim();
|
|
25
|
+
if (question && !questions.includes(question)) questions.push(question);
|
|
26
|
+
}
|
|
27
|
+
return questions;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function resolveThinkingLevel(raw?: string): string {
|
|
31
|
+
if (!raw) return "off";
|
|
32
|
+
const value = raw.trim().toLowerCase();
|
|
33
|
+
if (VALID_THINKING_LEVELS.has(value)) return value;
|
|
34
|
+
return ["on", "true", "yes", "1"].includes(value) ? "low" : "off";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function abbrevThinking(level: string): string {
|
|
38
|
+
return THINKING_ABBREV[level] ?? "";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function resolveDelegateExtension(cwd: string): string | null {
|
|
42
|
+
try {
|
|
43
|
+
const extension = fileURLToPath(new URL("./delegate.ts", import.meta.url));
|
|
44
|
+
if (existsSync(extension)) return extension;
|
|
45
|
+
} catch {}
|
|
46
|
+
const local = join(cwd, ".pi", "harnesses", "agent-hub", "delegate.ts");
|
|
47
|
+
return existsSync(local) ? local : null;
|
|
48
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { CapabilityPack, CapabilityResolution } from "../capability-packs.ts";
|
|
2
|
+
import type { WorkMode } from "../work-mode.ts";
|
|
3
|
+
|
|
4
|
+
export interface HubPromptAgent {
|
|
5
|
+
name: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
description: string;
|
|
8
|
+
tools: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface HubPromptResearchPersona {
|
|
12
|
+
name: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
description: string;
|
|
15
|
+
model?: string;
|
|
16
|
+
thinking: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface HubPromptState {
|
|
20
|
+
taskTier: string;
|
|
21
|
+
taskTierAssumed: boolean;
|
|
22
|
+
turnDispatchCount: number;
|
|
23
|
+
turnResearchCount: number;
|
|
24
|
+
taskDispatchCount: number;
|
|
25
|
+
taskResearchCount: number;
|
|
26
|
+
taskReviewRounds: number;
|
|
27
|
+
turnBudget: { maxDispatches: number | null; maxResearch: number | null };
|
|
28
|
+
taskBudget: { wallMs: number | null };
|
|
29
|
+
provisionalConfirmations: readonly { pack: CapabilityPack; reason: string; question: string }[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Read-only prompt dependencies. Mutable Hub state remains owned by index.ts. */
|
|
33
|
+
export interface HubPromptContext {
|
|
34
|
+
getCapabilityResolution(): CapabilityResolution;
|
|
35
|
+
getActiveTools(): readonly string[];
|
|
36
|
+
getAgents(): readonly HubPromptAgent[];
|
|
37
|
+
getResearchPersonas(): readonly HubPromptResearchPersona[];
|
|
38
|
+
getPromptState(): HubPromptState;
|
|
39
|
+
getWorkMode(): WorkMode;
|
|
40
|
+
getActiveTeamName(): string;
|
|
41
|
+
getUserLanguage(): string;
|
|
42
|
+
isAskUserAvailable(): boolean;
|
|
43
|
+
isComsReady(): boolean;
|
|
44
|
+
getIdentity(): { name: string; project: string } | null;
|
|
45
|
+
isHerdrFleetReady(): boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { CapabilityResolution } from "../capability-packs.ts";
|
|
2
|
+
import type { HubPromptState } from "./context.ts";
|
|
3
|
+
|
|
4
|
+
export function askUserFragment(askUserAvailable: boolean, userLanguage: string): string {
|
|
5
|
+
return askUserAvailable
|
|
6
|
+
? `## When to call \`ask_user\` (non-negotiable triggers)
|
|
7
|
+
- Requirements are ambiguous, incomplete, or contradictory.
|
|
8
|
+
- Multiple valid approaches exist and the trade-off is preference-dependent
|
|
9
|
+
(architecture, library choice, naming, scope cuts).
|
|
10
|
+
- A specialist returned an \`ASK_USER:\` marker — surface every one.
|
|
11
|
+
- A specialist's output contradicts an earlier specialist's output, or contradicts
|
|
12
|
+
the user's stated requirement — ask the user to resolve it.
|
|
13
|
+
- The next dispatch would be costly to undo (destructive edit, migration, mass
|
|
14
|
+
rename, production-facing change, secret/credential handling).
|
|
15
|
+
- You're about to assume a value (path, version, flag, threshold) the user did
|
|
16
|
+
not specify.
|
|
17
|
+
|
|
18
|
+
Calling \`ask_user\`:
|
|
19
|
+
- Read the tool's own description for the exact parameter shape — different
|
|
20
|
+
installs ship slightly different schemas. Always pass \`question\` and, when
|
|
21
|
+
helpful, \`context\` (a 1–3 line summary of what you've already found).
|
|
22
|
+
- Provide multiple-choice \`options\` whenever you can enumerate 2–6 valid
|
|
23
|
+
answers — it's faster for the user than free text.
|
|
24
|
+
- Ask exactly **one** focused question per call. Do not bundle unrelated questions.`
|
|
25
|
+
: `## ask_user is NOT available in this session
|
|
26
|
+
The \`pi-ask-user\` package is not installed, so you have no interactive way to
|
|
27
|
+
ask the human. You MUST instead:
|
|
28
|
+
- State every assumption explicitly in ${userLanguage} before dispatching.
|
|
29
|
+
- Phrase it as: "Assuming X (because Y) — say STOP/correct if wrong, otherwise I'll proceed."
|
|
30
|
+
- Wait for the user's next message before continuing on anything destructive.
|
|
31
|
+
- For \`ASK_USER:\` markers raised by specialists, relay the question verbatim to
|
|
32
|
+
the user in ${userLanguage} and wait for their reply in the next turn.`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function dispatchFragment(fleetActive: boolean, askUserAvailable: boolean, userLanguage: string): string {
|
|
36
|
+
if (!fleetActive) return "";
|
|
37
|
+
return askUserAvailable
|
|
38
|
+
? `- BEFORE dispatching: if anything is ambiguous, missing, or could go several valid
|
|
39
|
+
ways, call \`ask_user\` first. Never invent constraints or "reasonable defaults"
|
|
40
|
+
the user did not state.
|
|
41
|
+
- Dispatch tasks via \`dispatch_agent\`. Each dispatched task is automatically
|
|
42
|
+
augmented with clarification/research plus deliverable-to-file protocols. For document handoff, pass artifact paths through the optional \`artifacts\` array; never paste full plan/review/inventory bodies into a task.
|
|
43
|
+
- For dispatches carrying A1/A2-style assertions, specialist returns arrive pre-parsed as \`details.structuredReturn\` with \`details.contractNotices\`; the full raw output is persisted at \`details.returnPath\` and kept for compatibility in \`details.fullOutput\`. Spawn a reader only when the digest/path is not enough.
|
|
44
|
+
- After each dispatch, INSPECT the result for ASK_USER questions (also surfaced in
|
|
45
|
+
the result \`details.questions\`). For each one: call \`ask_user\` in ${userLanguage},
|
|
46
|
+
then re-dispatch the specialist with the answer.`
|
|
47
|
+
: `- BEFORE dispatching: if anything is ambiguous, missing, or could go several valid
|
|
48
|
+
ways, STATE your assumption explicitly in ${userLanguage} and wait for the user
|
|
49
|
+
to correct it. Never invent constraints or "reasonable defaults" silently.
|
|
50
|
+
- Dispatch tasks via \`dispatch_agent\`. Each dispatched task is automatically
|
|
51
|
+
augmented with clarification/research plus deliverable-to-file protocols. For document handoff, pass artifact paths through the optional \`artifacts\` array; never paste full plan/review/inventory bodies into a task.
|
|
52
|
+
- For dispatches carrying A1/A2-style assertions, specialist returns arrive pre-parsed as \`details.structuredReturn\` with \`details.contractNotices\`; the full raw output is persisted at \`details.returnPath\` and kept for compatibility in \`details.fullOutput\`. Spawn a reader only when the digest/path is not enough.
|
|
53
|
+
- After each dispatch, INSPECT the result for ASK_USER questions (also surfaced in
|
|
54
|
+
the result \`details.questions\`). For each one: relay it verbatim to the user
|
|
55
|
+
in ${userLanguage} and wait for the reply before re-dispatching.`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ambiguityFragment(askUserAvailable: boolean, userLanguage: string): string {
|
|
59
|
+
return askUserAvailable
|
|
60
|
+
? `- NEVER proceed past an ambiguity by guessing. Either call \`ask_user\`, or state
|
|
61
|
+
the assumption explicitly in ${userLanguage} and say you'll proceed unless corrected.`
|
|
62
|
+
: `- NEVER proceed past an ambiguity by guessing. State the assumption explicitly
|
|
63
|
+
in ${userLanguage} and wait for the user to confirm or correct.`;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function languageFragment(askUserAvailable: boolean, userLanguage: string): string {
|
|
67
|
+
const englishNoOp = userLanguage.toLowerCase() === "english" ? " (If user-language is English this is a no-op.)" : "";
|
|
68
|
+
return askUserAvailable
|
|
69
|
+
? `- ALWAYS communicate with the human user in **${userLanguage}**. Every message you
|
|
70
|
+
write to the user, every \`ask_user\` question and \`context\` field — ${userLanguage}.
|
|
71
|
+
- Task strings you send via \`dispatch_agent\` stay in **English**. The specialist
|
|
72
|
+
personas are written in English; do not translate task descriptions for them.
|
|
73
|
+
- When a specialist emits an \`ASK_USER:\` line in English, translate it to
|
|
74
|
+
${userLanguage} before passing it through \`ask_user\`.${englishNoOp}`
|
|
75
|
+
: `- ALWAYS communicate with the human user in **${userLanguage}**. Every message you
|
|
76
|
+
write to the user is ${userLanguage}.
|
|
77
|
+
- Task strings you send via \`dispatch_agent\` stay in **English**. The specialist
|
|
78
|
+
personas are written in English; do not translate task descriptions for them.
|
|
79
|
+
- When a specialist emits an \`ASK_USER:\` line in English, translate it to
|
|
80
|
+
${userLanguage} before relaying to the user.${englishNoOp}`;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function stateCapsuleFragment(state: HubPromptState, resolution: CapabilityResolution): string {
|
|
84
|
+
const cap = (n: number | null) => (n == null ? "unlimited" : String(n));
|
|
85
|
+
const capMin = (ms: number | null) => (ms == null ? "unlimited" : `${Math.round(ms / 60_000)} min`);
|
|
86
|
+
const capabilityState = [...resolution.active].map(pack => `${pack}:${resolution.reasons[pack]}`).join(", ");
|
|
87
|
+
const provisionalState = resolution.provisional.map(pack => `${pack}:${resolution.reasons[pack]}`).join(", ");
|
|
88
|
+
return `## Current task state
|
|
89
|
+
- tier: ${state.taskTier}${state.taskTierAssumed ? "?" : ""}; turn dispatches: ${state.turnDispatchCount}; research: ${state.turnResearchCount}
|
|
90
|
+
- task dispatches: ${state.taskDispatchCount}; research: ${state.taskResearchCount}; review rounds: ${state.taskReviewRounds}
|
|
91
|
+
- packs active: ${capabilityState}; provisional: ${provisionalState || "none"}
|
|
92
|
+
- provisional confirmation: ${state.provisionalConfirmations.map(item => `${item.pack} (${item.reason}) → call ask_user exactly once with ${JSON.stringify(item.question)}`).join("; ") || "none"}
|
|
93
|
+
- budgets: dispatch ${cap(state.turnBudget.maxDispatches)}, research ${cap(state.turnBudget.maxResearch)}, task wall ${capMin(state.taskBudget.wallMs)}.`;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export const TASK_TRIAGE_FRAGMENT = `## Task triage (before dispatch)
|
|
97
|
+
Call \`set_task_tier\` honestly: trivial/small work uses minimal ceremony; feature/project work uses the assertion ledger and a review gate. A provided plan is the specification, not consent to execute unrequested phases. Keep related plan work in coherent batches, pass a narrow scope, and treat a budget refusal as a stop-and-ask-human signal; code enforcement remains authoritative.`;
|
|
98
|
+
|
|
99
|
+
export function verificationFragment(maxOpenAssertions: number): string {
|
|
100
|
+
return `## Verification Contract
|
|
101
|
+
For non-trivial work, record at most ${maxOpenAssertions} narrow, sourced assertions before building and pass them verbatim to specialists. Advance only on named evidence; unproven/failed is not done. Runtime-UI claims require runtime observation. Use \`skills/orchestration-verification/SKILL.md\` for formats, parity inventories, and regression resets. After compaction, read the ledger before continuing.`;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function comsFragment(peerActive: boolean, comsReady: boolean, identity: { name: string; project: string } | null): string {
|
|
105
|
+
return peerActive && comsReady && identity ? `
|
|
106
|
+
## Peer agents (coms)
|
|
107
|
+
You are peer "${identity.name}" in project "${identity.project}". Use \`coms_list\` for the human-scoped pool and status; the Hub cannot widen it. Send one self-contained prompt, then await/get the returned msg_id without resending. Match send/await deadlines. Prefer team dispatch unless the task needs a standing peer, and never duplicate a dispatch to its same-name peer.
|
|
108
|
+
` : "";
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export const COMPACTION_FRAGMENT = `
|
|
112
|
+
## Context recovery
|
|
113
|
+
- Context pressure is approaching or above the automatic recovery threshold. Keep tool output concise; redirect full test/package logs to files and inspect summaries or tails.
|
|
114
|
+
- \`request_compaction\` is available for explicit recovery. Automatic recovery preserves task state and continues from the compaction summary.
|
|
115
|
+
`;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { ExtensionContext, Theme } from "@mariozechner/pi-coding-agent";
|
|
2
|
+
|
|
3
|
+
export const SESSION_START_COMMANDS = [
|
|
4
|
+
"/af-work-mode [mode] Operator | Orchestrator (Alt+M)",
|
|
5
|
+
"/af-agents-team Select a team",
|
|
6
|
+
"/af-agents-list Open Fleet Dashboard",
|
|
7
|
+
"/af-agents-history Timeline of agent runs — durations, parallel markers, grand total",
|
|
8
|
+
"/af-context Read-only full-screen context budget diagnostic",
|
|
9
|
+
"/af-agent-model <persona>[.<role>] Switch a persona's or sub-role's model",
|
|
10
|
+
"/af-agent-model-thinking <persona> Switch a persona's thinking level",
|
|
11
|
+
"/af-models [profile] Apply a named model profile to the team",
|
|
12
|
+
"/af-agent-models-substitute [src tgt] Pick/save a session-wide source → target model substitution",
|
|
13
|
+
"/af-dispatch-policy Show which members route to coms peers (dispatch-policy.yaml)",
|
|
14
|
+
"/af-agents-kill <name|rN|all> Kill a frozen specialist or remove research helper(s)",
|
|
15
|
+
"/af-agents-restart <name> Kill + re-run a specialist's last task fresh",
|
|
16
|
+
"/af-zoom <name|rN|child> Scrollable view of an agent / research / delegate-child stream",
|
|
17
|
+
"/af-coms [--all|--project N] Refresh the coms peer pool",
|
|
18
|
+
"/af-handoff <peer> Hand the session off to a coms peer",
|
|
19
|
+
"/af-compound [focus] Capture session lessons into the project rules/docs",
|
|
20
|
+
"/af-poll [--panel NAME] Ask every voice in a model panel the same question",
|
|
21
|
+
"/af-debate [--panel NAME] Cross-examine every voice in a model panel",
|
|
22
|
+
] as const;
|
|
23
|
+
|
|
24
|
+
export interface SessionStartNoticeData {
|
|
25
|
+
workMode: string;
|
|
26
|
+
activeTeamName: string;
|
|
27
|
+
agentCount: number;
|
|
28
|
+
members: string;
|
|
29
|
+
dispatchLabel: string;
|
|
30
|
+
userLanguage: string;
|
|
31
|
+
askUserLabel: string;
|
|
32
|
+
comsLabel: string;
|
|
33
|
+
fleetLabel: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function buildSessionStartNotice(data: SessionStartNoticeData): string {
|
|
37
|
+
return [
|
|
38
|
+
`Work Mode: ${data.workMode} (${data.workMode === "operator" ? "direct tools enabled" : "delegate-only"})`,
|
|
39
|
+
`Native roster: ${data.activeTeamName || "(none)"} (${data.agentCount}${data.members ? `: ${data.members}` : ""})`,
|
|
40
|
+
"Native roster sets loaded from: .pi/agents/teams.yaml",
|
|
41
|
+
`Dispatch backends: ${data.dispatchLabel}`,
|
|
42
|
+
`User-facing language: ${data.userLanguage} (override in .ai/agent-fleet-overrides.md)`,
|
|
43
|
+
`ask_user: ${data.askUserLabel}; specialists bubble up via ASK_USER:`,
|
|
44
|
+
`Coms: ${data.comsLabel}`,
|
|
45
|
+
`Fleet: ${data.fleetLabel}`,
|
|
46
|
+
"",
|
|
47
|
+
...SESSION_START_COMMANDS,
|
|
48
|
+
].join("\n");
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface SessionFooterDependencies {
|
|
52
|
+
ctx: ExtensionContext;
|
|
53
|
+
version: string;
|
|
54
|
+
getModel(): string;
|
|
55
|
+
getThinkingLevel(): string | undefined;
|
|
56
|
+
thinkingSuffix(value: string | undefined): string;
|
|
57
|
+
getHint(): string;
|
|
58
|
+
renderLeft(theme: Theme, version: string, model: string, thinking: string): string;
|
|
59
|
+
truncateToWidth(value: string, width: number): string;
|
|
60
|
+
visibleWidth(value: string): number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function createSessionFooter(deps: SessionFooterDependencies) {
|
|
64
|
+
return (_tui: unknown, theme: Theme, footerData: { getExtensionStatuses?(): Map<string, string> } | undefined) => ({
|
|
65
|
+
dispose: () => {},
|
|
66
|
+
invalidate() {},
|
|
67
|
+
render(width: number): string[] {
|
|
68
|
+
const model = deps.getModel();
|
|
69
|
+
const think = deps.thinkingSuffix(deps.getThinkingLevel());
|
|
70
|
+
const usage = deps.ctx.getContextUsage();
|
|
71
|
+
const pct = usage ? usage.percent : 0;
|
|
72
|
+
const filled = Math.round(pct / 10);
|
|
73
|
+
const bar = "#".repeat(filled) + "-".repeat(10 - filled);
|
|
74
|
+
const left = deps.renderLeft(theme, deps.version, model, think);
|
|
75
|
+
const hint = theme.fg("dim", deps.getHint());
|
|
76
|
+
const btwHint = (globalThis as { __btwActivated?: boolean }).__btwActivated
|
|
77
|
+
? theme.fg("muted", " · Alt+' ") + theme.fg("dim", "btw")
|
|
78
|
+
: "";
|
|
79
|
+
const right = hint + btwHint + theme.fg("muted", " · ") + theme.fg("dim", `[${bar}] ${Math.round(pct)}% `);
|
|
80
|
+
const pad = " ".repeat(Math.max(1, width - deps.visibleWidth(left) - deps.visibleWidth(right)));
|
|
81
|
+
const lines = [deps.truncateToWidth(left + pad + right, width)];
|
|
82
|
+
const stt = footerData?.getExtensionStatuses?.().get("voice-stt");
|
|
83
|
+
if (stt && stt.trim()) {
|
|
84
|
+
const color = /REC/.test(stt) ? "accent" : "muted";
|
|
85
|
+
lines.push(deps.truncateToWidth(theme.fg(color, ` ${stt}`), width));
|
|
86
|
+
}
|
|
87
|
+
return lines;
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { MAX_OPEN_ASSERTIONS } from "../assertion-ledger.js";
|
|
2
|
+
import { CAPABILITY_PACKS, type CapabilityPack } from "../capability-packs.ts";
|
|
3
|
+
import { workModePrompt } from "../work-mode.ts";
|
|
4
|
+
import { component, type ContextBudgetComponent } from "../../lib/context-budget.ts";
|
|
5
|
+
import { assembleHubSystemPrompt, HUB_HERDR_SECTION, namedHubLedgerParts, recordHubLedger } from "../../lib/context-budget-hub-prompt.ts";
|
|
6
|
+
import type { HubPromptContext } from "./context.ts";
|
|
7
|
+
import {
|
|
8
|
+
ambiguityFragment,
|
|
9
|
+
askUserFragment,
|
|
10
|
+
COMPACTION_FRAGMENT,
|
|
11
|
+
comsFragment,
|
|
12
|
+
dispatchFragment,
|
|
13
|
+
languageFragment,
|
|
14
|
+
stateCapsuleFragment,
|
|
15
|
+
TASK_TRIAGE_FRAGMENT,
|
|
16
|
+
verificationFragment,
|
|
17
|
+
} from "./fragments.ts";
|
|
18
|
+
|
|
19
|
+
export interface BuiltHubSystemPrompt {
|
|
20
|
+
systemPrompt: string;
|
|
21
|
+
ledger: ContextBudgetComponent[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function capabilityStatus(pack: CapabilityPack, ctx: HubPromptContext, active: readonly CapabilityPack[], provisional: readonly CapabilityPack[]): string {
|
|
25
|
+
if (active.includes(pack)) return "active";
|
|
26
|
+
if (provisional.includes(pack)) return "provisional";
|
|
27
|
+
if ((pack === "peer" && ctx.isComsReady()) || (pack === "workspace" && ctx.isHerdrFleetReady())) return "ready-inactive";
|
|
28
|
+
return pack === "peer" || pack === "workspace" ? "unavailable" : "inactive";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Pure text and ledger assembly. Turn lifecycle resets are owned by index.ts. */
|
|
32
|
+
export function buildHubSystemPrompt(ctx: HubPromptContext): BuiltHubSystemPrompt {
|
|
33
|
+
const resolution = ctx.getCapabilityResolution();
|
|
34
|
+
const modelPacks = new Set<CapabilityPack>([...resolution.active, ...resolution.provisional]);
|
|
35
|
+
const fleetActive = modelPacks.has("fleet");
|
|
36
|
+
const verificationActive = modelPacks.has("verification");
|
|
37
|
+
const peerActive = modelPacks.has("peer");
|
|
38
|
+
const workspaceActive = modelPacks.has("workspace");
|
|
39
|
+
const compactionActive = modelPacks.has("compaction");
|
|
40
|
+
const agents = fleetActive ? ctx.getAgents() : [];
|
|
41
|
+
const agentCards = agents.map(agent => ({
|
|
42
|
+
id: agent.name,
|
|
43
|
+
text: `### ${agent.displayName}\n**Dispatch as:** \`${agent.name}\`\n${agent.description}\n**Tools:** ${agent.tools}`,
|
|
44
|
+
}));
|
|
45
|
+
const agentCatalog = agentCards.map(card => card.text).join("\n\n");
|
|
46
|
+
const teamMembers = agents.map(agent => agent.displayName).join(", ");
|
|
47
|
+
const researchPersonas = fleetActive ? ctx.getResearchPersonas() : [];
|
|
48
|
+
const researchCards = researchPersonas.map(persona => ({
|
|
49
|
+
id: persona.name,
|
|
50
|
+
text: `### ${persona.displayName}\n**Spawn as:** \`spawn_research(persona: "${persona.name}")\`\n**Model:** ${persona.model || "(dispatcher’s default)"} · **Thinking:** ${persona.thinking}\n${persona.description}`,
|
|
51
|
+
}));
|
|
52
|
+
const researchCatalog = !fleetActive ? "" : researchCards.length > 0
|
|
53
|
+
? researchCards.map(card => card.text).join("\n\n")
|
|
54
|
+
: "(No research personas defined. Call `spawn_research` without `persona` for an ad-hoc read-only helper.)";
|
|
55
|
+
const askUserAvailable = ctx.isAskUserAvailable();
|
|
56
|
+
const userLanguage = ctx.getUserLanguage();
|
|
57
|
+
const askUserBlock = askUserFragment(askUserAvailable, userLanguage);
|
|
58
|
+
const dispatchSection = dispatchFragment(fleetActive, askUserAvailable, userLanguage);
|
|
59
|
+
const ambiguityRule = ambiguityFragment(askUserAvailable, userLanguage);
|
|
60
|
+
const languageLines = languageFragment(askUserAvailable, userLanguage);
|
|
61
|
+
const stateCapsule = stateCapsuleFragment(ctx.getPromptState(), resolution);
|
|
62
|
+
const stableModeSection = fleetActive ? TASK_TRIAGE_FRAGMENT : "";
|
|
63
|
+
const verificationSection = verificationActive ? verificationFragment(MAX_OPEN_ASSERTIONS) : "";
|
|
64
|
+
const comsSection = comsFragment(peerActive, ctx.isComsReady(), ctx.getIdentity());
|
|
65
|
+
const workModeText = workModePrompt(ctx.getWorkMode());
|
|
66
|
+
const herdrSection = workspaceActive && ctx.isHerdrFleetReady() ? HUB_HERDR_SECTION : "";
|
|
67
|
+
const compactionSection = compactionActive ? COMPACTION_FRAGMENT : "";
|
|
68
|
+
const systemPrompt = assembleHubSystemPrompt({
|
|
69
|
+
intro: workModeText.intro,
|
|
70
|
+
toolList: `these active packs: ${[...modelPacks].join(", ")}. Tools: ${ctx.getActiveTools().map(name => `\`${name}\``).join(", ") || "(none)"}`,
|
|
71
|
+
languageLines,
|
|
72
|
+
activeTeamName: ctx.getActiveTeamName(),
|
|
73
|
+
teamMembers,
|
|
74
|
+
dispatchSection,
|
|
75
|
+
userLanguage,
|
|
76
|
+
askUserBlock,
|
|
77
|
+
modeSection: stableModeSection,
|
|
78
|
+
verificationSection,
|
|
79
|
+
stateCapsule,
|
|
80
|
+
comsSection,
|
|
81
|
+
herdrSection,
|
|
82
|
+
compactionSection,
|
|
83
|
+
hardRules: workModeText.hardRules,
|
|
84
|
+
ambiguityRule,
|
|
85
|
+
agentCatalog,
|
|
86
|
+
researchCatalog,
|
|
87
|
+
});
|
|
88
|
+
const ledger = recordHubLedger(systemPrompt, namedHubLedgerParts({
|
|
89
|
+
intro: workModeText.intro,
|
|
90
|
+
languageLines,
|
|
91
|
+
teamMembers,
|
|
92
|
+
agentCards,
|
|
93
|
+
dispatchSection,
|
|
94
|
+
modeSection: stableModeSection,
|
|
95
|
+
verificationSection,
|
|
96
|
+
stateCapsule,
|
|
97
|
+
researchCards,
|
|
98
|
+
researchCatalog,
|
|
99
|
+
comsSection,
|
|
100
|
+
herdrSection,
|
|
101
|
+
compactionSection,
|
|
102
|
+
})).concat(CAPABILITY_PACKS.map(pack => {
|
|
103
|
+
const status = capabilityStatus(pack, ctx, resolution.active, resolution.provisional);
|
|
104
|
+
return component({
|
|
105
|
+
id: `hub/capability/${pack}`, plane: "hub", category: "system", label: `Capability ${pack}: ${status}`,
|
|
106
|
+
source: resolution.reasons[pack], persistence: "turn", visibility: "ui-only", confidence: "exact-chars", chars: 0,
|
|
107
|
+
});
|
|
108
|
+
}));
|
|
109
|
+
return { systemPrompt, ledger };
|
|
110
|
+
}
|