@chankov/agent-fleet 2.0.3 → 2.0.5
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 +69 -13
- package/.pi/agents/peers.yaml +11 -8
- package/.pi/harnesses/agent-hub/README.md +15 -34
- 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/context/agent-state.ts +1 -1
- 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-spawn.ts +2 -0
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +1 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +31 -16
- package/.pi/harnesses/agent-hub/dispatch-observability.ts +6 -1
- package/.pi/harnesses/agent-hub/footer.ts +2 -2
- package/.pi/harnesses/agent-hub/index.ts +128 -49
- package/.pi/harnesses/agent-hub/input/shortcuts.ts +0 -29
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +7 -7
- 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 +120 -0
- package/.pi/harnesses/agent-hub/provider-semaphore.js +1 -1
- package/.pi/harnesses/agent-hub/research/runtime.ts +3 -1
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +6 -1
- package/.pi/harnesses/agent-hub/spawn.ts +17 -1
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +5 -2
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +34 -1
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +4 -0
- package/.pi/harnesses/agent-hub/types.ts +1 -0
- package/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
- package/.pi/harnesses/agent-hub/ui/detail-panel.ts +4 -1
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +4 -2
- package/.pi/harnesses/agent-hub/ui/grid.ts +16 -118
- package/.pi/harnesses/agent-hub/ui/pool.ts +1 -6
- package/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
- 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 +0 -5
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +8 -2
- 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/.versions/2.0.5/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.5/.pi/agents/model-profiles.yaml +83 -0
- package/.versions/2.0.5/.pi/agents/peers.yaml +145 -0
- package/.versions/2.0.5/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.5/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.5/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.5/.pi/extensions/agent-fleet-update-check/README.md +57 -0
- package/.versions/2.0.5/.pi/extensions/agent-fleet-update-check/index.ts +161 -0
- package/.versions/2.0.5/.pi/extensions/agent-fleet-update-check/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.5/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.5/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.5/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.5/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.5/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.5/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.5/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.5/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.5/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.5/.pi/extensions/package.json +9 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.5/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/README.md +1139 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/budget-continuation.ts +73 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/context.ts +41 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/config/agents.ts +179 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +211 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/budgets.ts +208 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-coms.ts +234 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-complete.ts +135 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +156 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +193 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native-types.ts +208 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-native.ts +199 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/fixtures/registration-surface.json +55 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/hub-state-audit.js +59 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/index.ts +2115 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/input/shortcuts.ts +18 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +141 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +95 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/roster.ts +79 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/policy/work-mode.ts +118 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/context.ts +46 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/prompts/system-prompt.ts +110 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research/runtime.ts +177 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research/spawn-run.ts +148 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/scope-gate.js +103 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/spawn.ts +404 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/action-executors.ts +149 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/context.ts +132 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +79 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +232 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/types.ts +62 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/detail-panel.ts +178 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +125 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/grid.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/pool.ts +98 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.5/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.5/.pi/harnesses/ask-user-remote/README.md +53 -0
- package/.versions/2.0.5/.pi/harnesses/ask-user-remote/index.ts +532 -0
- package/.versions/2.0.5/.pi/harnesses/ask-user-remote/race-core.js +106 -0
- package/.versions/2.0.5/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.5/.pi/harnesses/coms/index.ts +276 -0
- package/.versions/2.0.5/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.5/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/README.md +124 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/index.ts +536 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.5/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.5/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.5/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.5/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget-child-prompt.ts +179 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.5/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.5/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-dashboard-ops.ts +161 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-dashboard-view.ts +148 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.5/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.5/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.5/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.5/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.5/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.5/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.5/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.5/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.5/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.5/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.5/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.5/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.5/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.5/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.5/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.5/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.5/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.5/.version +1 -0
- package/.versions/2.0.5/agents/architect.md +25 -0
- package/.versions/2.0.5/agents/bowser.md +28 -0
- package/.versions/2.0.5/agents/builder.md +56 -0
- package/.versions/2.0.5/agents/code-reviewer.md +210 -0
- package/.versions/2.0.5/agents/deep-researcher.md +33 -0
- package/.versions/2.0.5/agents/documenter.md +23 -0
- package/.versions/2.0.5/agents/orchestrator.md +23 -0
- package/.versions/2.0.5/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.5/agents/planner.md +106 -0
- package/.versions/2.0.5/agents/releaser.md +25 -0
- package/.versions/2.0.5/agents/researcher.md +31 -0
- package/.versions/2.0.5/agents/security-auditor.md +168 -0
- package/.versions/2.0.5/agents/test-engineer.md +154 -0
- package/.versions/2.0.5/agents/web-debugger.md +44 -0
- package/.versions/2.0.5/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.5/bin/catalog/harness-runtime-closure.json +36 -0
- package/.versions/2.0.5/codex/CONDUCTOR.md +148 -0
- package/.versions/2.0.5/docs/ARCHITECTURE.md +407 -0
- package/.versions/2.0.5/docs/agent-fleet-setup.md +561 -0
- package/.versions/2.0.5/docs/claude-code-coms-bridge.md +133 -0
- package/.versions/2.0.5/docs/codex-remote-conductor.md +170 -0
- package/.versions/2.0.5/docs/coms-hermes-bridge.md +189 -0
- package/.versions/2.0.5/docs/getting-started.md +124 -0
- package/.versions/2.0.5/docs/npm-install.md +299 -0
- package/.versions/2.0.5/docs/pi-extensions.md +446 -0
- package/.versions/2.0.5/docs/pi-setup.md +74 -0
- package/.versions/2.0.5/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.5/hermes/README.md +347 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.5/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.5/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.5/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +770 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.5/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.5/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.5/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.5/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.5/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.5/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.5/install-manifest.json +2942 -0
- package/.versions/2.0.5/justfile +289 -0
- package/.versions/2.0.5/manifest-meta.json +969 -0
- package/.versions/2.0.5/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.5/references/communication-contract.md +26 -0
- package/.versions/2.0.5/references/definition-of-done.md +67 -0
- package/.versions/2.0.5/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.5/references/observability-checklist.md +91 -0
- package/.versions/2.0.5/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.5/references/performance-checklist.md +153 -0
- package/.versions/2.0.5/references/prompting-patterns.md +380 -0
- package/.versions/2.0.5/references/security-checklist.md +179 -0
- package/.versions/2.0.5/references/testing-patterns.md +236 -0
- package/.versions/2.0.5/references/workflow-authoring.md +304 -0
- package/.versions/2.0.5/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.5/scripts/codex-conductor.ts +41 -0
- package/.versions/2.0.5/scripts/codex-remote-control.ts +167 -0
- package/.versions/2.0.5/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.5/scripts/coms-cli.ts +484 -0
- package/.versions/2.0.5/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.5/scripts/fleet.ts +222 -0
- package/.versions/2.0.5/scripts/flow.ts +137 -0
- package/.versions/2.0.5/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.5/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.5/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.5/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.5/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.5/scripts/lib/codex-conductor.ts +88 -0
- package/.versions/2.0.5/scripts/lib/codex-remote-control.ts +482 -0
- package/.versions/2.0.5/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.5/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.5/scripts/lib/fleet-command.ts +270 -0
- package/.versions/2.0.5/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.5/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.5/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.5/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.5/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.5/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.5/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.5/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.5/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.5/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.5/scripts/lib/team-project.ts +213 -0
- package/.versions/2.0.5/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.5/scripts/package-lock.json +35 -0
- package/.versions/2.0.5/scripts/package.json +9 -0
- package/.versions/2.0.5/scripts/peer-banner.ts +40 -0
- package/.versions/2.0.5/scripts/peer-launch.ts +285 -0
- package/.versions/2.0.5/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.5/scripts/team-up.ts +406 -0
- package/.versions/2.0.5/scripts/workflows/lib/agent-phase.ts +133 -0
- package/.versions/2.0.5/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.5/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.5/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.5/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.5/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.5/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.5/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.5/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.5/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.5/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.5/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.5/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.5/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.5/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.5/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.5/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.5/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.5/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.5/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.5/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.5/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.5/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.5/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.5/scripts/workflows/wf-scout.ts +38 -0
- package/.versions/2.0.5/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.5/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.5/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/2.0.5/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.5/skills/context-engineering/SKILL.md +291 -0
- package/.versions/2.0.5/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/2.0.5/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.5/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.5/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.5/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.5/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.5/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.5/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.5/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.5/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.5/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.5/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.5/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/2.0.5/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.5/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.5/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.5/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.5/skills/planning-and-task-breakdown/SKILL.md +265 -0
- package/.versions/2.0.5/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/2.0.5/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/2.0.5/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/2.0.5/systemd/user/agent-fleet-codex-remote-control.service.in +23 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/2.0.5/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/agents/builder.md +2 -2
- package/agents/documenter.md +2 -1
- package/agents/planner.md +2 -1
- package/agents/releaser.md +2 -2
- package/bin/catalog/harness-runtime-closure.json +2 -0
- package/bin/cli.js +47 -9
- package/bin/lib/doctor.js +35 -2
- package/bin/lib/reconcile.js +3 -2
- package/docs/agent-fleet-setup.md +88 -0
- package/docs/claude-code-coms-bridge.md +5 -0
- package/docs/getting-started.md +5 -0
- package/docs/npm-install.md +12 -5
- package/docs/pi-extensions.md +3 -4
- package/install-manifest.json +3 -1
- package/justfile +1 -1
- package/package.json +5 -3
- package/scripts/claude-code-preflight.ts +70 -0
- package/scripts/fleet.ts +23 -0
- package/scripts/lib/runtime-dependencies.js +124 -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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { profileForcesNativePeers, profilePeerGate } from './policy/profile-runtime.ts';
|
|
1
2
|
import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
2
3
|
import { TIMEOUT_MS } from "../lib/coms-core.ts";
|
|
3
4
|
import { comsRequiredRefusal, explicitComsRefusal, resolveDispatchBackend } from "./backend-policy.js";
|
|
@@ -50,6 +51,7 @@ function beginNativeRun(deps: NativeDispatchDeps, state: NativeDispatchState, ar
|
|
|
50
51
|
state.status = "running";
|
|
51
52
|
state.task = task;
|
|
52
53
|
state.toolCount = 0;
|
|
54
|
+
state.messageCount = 0;
|
|
53
55
|
state.elapsed = 0;
|
|
54
56
|
state.lastWork = "";
|
|
55
57
|
state.lastBackend = undefined;
|
|
@@ -114,7 +116,9 @@ function beginNativeRun(deps: NativeDispatchDeps, state: NativeDispatchState, ar
|
|
|
114
116
|
async function routeDispatch(run: NativeRunBase, requestedBackend: NativeBackend): Promise<NativeDispatchResult | null> {
|
|
115
117
|
const { deps, state, task, ctx, inputArtifacts, scopeGlobs, personaKey, monitorKey, startTime, histEntry } = run;
|
|
116
118
|
const livePeerNames = () => deps.isComsReady() && deps.getIdentity() ? deps.peersInScope().map(entry => entry.name) : [];
|
|
117
|
-
const
|
|
119
|
+
const forceNative = profileForcesNativePeers();
|
|
120
|
+
if (forceNative && requestedBackend === 'coms') return run.finishRun('Active model profile requires native execution; coms dispatch refused.', 1);
|
|
121
|
+
const dispatchPolicy = forceNative ? { default: 'native', grace_s: 0, substitutions: {} } : deps.getDispatchPolicy();
|
|
118
122
|
let route: any = resolveDispatchBackend({ agentName: state.def.name, policy: dispatchPolicy, livePeerNames: livePeerNames(), requestedBackend });
|
|
119
123
|
if (route.backend === "invalid") return run.finishRun(`Invalid dispatch backend "${route.requestedBackend}". Expected auto|native|coms.`, 1);
|
|
120
124
|
if (route.backend === "coms-unavailable") return run.finishRun(explicitComsRefusal(deps.displayName(state.def.name)), 1);
|
|
@@ -134,21 +138,32 @@ async function routeDispatch(run: NativeRunBase, requestedBackend: NativeBackend
|
|
|
134
138
|
ctx.ui.notify(route.comsMissedNotice, "warning");
|
|
135
139
|
}
|
|
136
140
|
if (route.backend === "coms") {
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
141
|
+
const peer = deps.peersInScope().find(entry => entry.name.toLowerCase() === String(route.peerName).toLowerCase());
|
|
142
|
+
const profileRefusal = profilePeerGate({ peerModel: peer?.model, targetResolved: !!peer });
|
|
143
|
+
if (profileRefusal) {
|
|
144
|
+
const allowNativeFallback = !route.explicit && (dispatchPolicy.substitutions[personaKey]?.fallback ?? "native") !== "none";
|
|
145
|
+
if (!allowNativeFallback) return run.finishRun(profileRefusal.content[0].text, 1);
|
|
146
|
+
if (!deps.wasComsMissNotified(personaKey)) {
|
|
147
|
+
deps.markComsMissNotified(personaKey);
|
|
148
|
+
ctx.ui.notify(profileRefusal.content[0].text, "warning");
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
void deps.registerMonitorWaitOnly(monitorKey, state);
|
|
152
|
+
const allowNativeFallback = !route.explicit && (dispatchPolicy.substitutions[personaKey]?.fallback ?? "native") !== "none";
|
|
153
|
+
const timeoutMs = route.timeout_s ? route.timeout_s * 1000 : TIMEOUT_MS;
|
|
154
|
+
const comsResult = await deps.dispatchViaComs(state, task, route.peerName, timeoutMs, allowNativeFallback, ctx, inputArtifacts, scopeGlobs);
|
|
155
|
+
if (comsResult) {
|
|
156
|
+
histEntry.name = `${deps.displayName(state.def.name)} (coms)`;
|
|
157
|
+
return run.finishRun(comsResult.output, comsResult.exitCode, {
|
|
158
|
+
idle: comsResult.abandoned || comsResult.pending,
|
|
159
|
+
pending: comsResult.pending,
|
|
160
|
+
notice: comsResult.abandoned
|
|
161
|
+
? `${deps.displayName(state.def.name)} coms dispatch abandoned (the peer pane keeps running)`
|
|
162
|
+
: comsResult.pending
|
|
163
|
+
? `${deps.displayName(state.def.name)} coms dispatch is pending (the peer pane keeps running)`
|
|
164
|
+
: `${deps.displayName(state.def.name)} ${comsResult.exitCode === 0 ? "done" : "error"} in ${Math.round((Date.now() - startTime) / 1000)}s (coms peer)`,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
152
167
|
}
|
|
153
168
|
}
|
|
154
169
|
state.lastBackend = "native";
|
|
@@ -3,6 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import type { FleetTranscriptStore } from "../lib/fleet-transcript-store.ts";
|
|
4
4
|
import type { ExecutionHistoryStore, HistoryEntry } from "./ui/history-store.ts";
|
|
5
5
|
import type { TimelineEntry, Zoomable } from "./ui/zoom.ts";
|
|
6
|
+
import { bumpMessageCount } from "./ui/activity-dots.ts";
|
|
6
7
|
|
|
7
8
|
export interface DelegationChild extends Zoomable {
|
|
8
9
|
id: string;
|
|
@@ -12,6 +13,7 @@ export interface DelegationChild extends Zoomable {
|
|
|
12
13
|
tools: string;
|
|
13
14
|
status: "running" | "done" | "error";
|
|
14
15
|
toolCount: number;
|
|
16
|
+
messageCount: number;
|
|
15
17
|
tokens: number;
|
|
16
18
|
lastWork: string;
|
|
17
19
|
startedAt: number;
|
|
@@ -107,6 +109,7 @@ function handleDelegationEvent(deps: DispatchObservabilityDeps, state: Delegatio
|
|
|
107
109
|
def: { name: e.id },
|
|
108
110
|
status: "running",
|
|
109
111
|
toolCount: 0,
|
|
112
|
+
messageCount: 0,
|
|
110
113
|
tokens: 0,
|
|
111
114
|
lastWork: "",
|
|
112
115
|
startedAt,
|
|
@@ -120,7 +123,9 @@ function handleDelegationEvent(deps: DispatchObservabilityDeps, state: Delegatio
|
|
|
120
123
|
const child = state.delegations.get(e.id);
|
|
121
124
|
if (!child) return;
|
|
122
125
|
if (e.t === "timeline") {
|
|
123
|
-
|
|
126
|
+
const kind = e.kind === "thinking" ? "thinking" : "text";
|
|
127
|
+
bumpMessageCount(child, kind);
|
|
128
|
+
deps.appendTimelineText(child, kind, e.delta || "");
|
|
124
129
|
if (e.kind !== "thinking") {
|
|
125
130
|
const trailing = child.timeline[child.timeline.length - 1];
|
|
126
131
|
if (trailing?.kind === "text") child.lastWork = trailing.content.split("\n").filter(line => line.trim()).pop() || "";
|
|
@@ -14,9 +14,9 @@ export function composeHubFooterLeft(
|
|
|
14
14
|
.join(" · ");
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export function composeFleetFooterHint(
|
|
17
|
+
export function composeFleetFooterHint(executionPair?: string): string {
|
|
18
18
|
const work = executionPair ? ` · Alt+M ${executionPair}` : "";
|
|
19
|
-
return `Alt+A fleet${work}
|
|
19
|
+
return `Alt+A fleet${work}`;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export function renderHubFooterLeft(
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { isCompleteProfile, dispatcherSelection, type ModelProfiles } from './config/model-profiles.ts';
|
|
2
|
+
import { createProfileActivation } from './policy/profile-activation.ts';
|
|
3
|
+
import { readActiveProfile, profileWorkInFlight, withProfileWork, assertProfileModel, profilePeerGate } from './policy/profile-runtime.ts';
|
|
1
4
|
/** Agent Hub composition root: constructs mutable state, contexts, registrars, and ordered lifecycle ports. */
|
|
2
5
|
|
|
3
6
|
import type { AgentDef, AgentState, ResearchState } from "./types.ts";
|
|
@@ -105,6 +108,7 @@ import {
|
|
|
105
108
|
TIMEOUT_MS,
|
|
106
109
|
} from "../lib/coms-core.ts";
|
|
107
110
|
import { createGridUI } from "./ui/grid.ts";
|
|
111
|
+
import { collectRunningStripItems } from "./ui/running-strip.ts";
|
|
108
112
|
import { createDetailPanel } from "./ui/detail-panel.ts";
|
|
109
113
|
import { createFleetDashboard } from "./ui/fleet-dashboard.ts";
|
|
110
114
|
import { createContextBudgetUi } from "./ui/context-budget.ts";
|
|
@@ -121,7 +125,7 @@ import { openHistory } from "./ui/history.ts";
|
|
|
121
125
|
import { createExecutionHistoryStore, type HistoryEntry } from "./ui/history-store.ts";
|
|
122
126
|
import { createDispatchComs, createDispatchNative, createDispatchObservability, type DelegationChild } from "./dispatch-core.ts";
|
|
123
127
|
import { buildFleetRows, type PeerInput } from "../lib/fleet-read-model.ts";
|
|
124
|
-
import {
|
|
128
|
+
import { gridColumnsForSize } from "../lib/fleet-dashboard-ops.ts";
|
|
125
129
|
import { createFleetTranscriptStore } from "../lib/fleet-transcript-store.ts";
|
|
126
130
|
import type { ContextBudgetComponent } from "../lib/context-budget.ts";
|
|
127
131
|
import { buildHubSystemPrompt as assembleHubPrompt } from "./prompts/system-prompt.ts";
|
|
@@ -166,7 +170,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
166
170
|
const coms = createComsPeer({
|
|
167
171
|
pi,
|
|
168
172
|
getContext: () => currentCtx,
|
|
169
|
-
onPeersChanged: () => {
|
|
173
|
+
onPeersChanged: () => {},
|
|
170
174
|
acceptInbound: () => currentCtx && modelWorkBlockedByRosterRecovery(currentCtx)
|
|
171
175
|
? "orchestrator roster recovery required"
|
|
172
176
|
: null,
|
|
@@ -221,7 +225,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
221
225
|
// session start) and the session-lifetime per-persona model overrides set by
|
|
222
226
|
// /af-agent-model and /af-models (lowercase persona name → pi model spec). Overrides
|
|
223
227
|
// reset on session_start; profiles make re-applying cheap.
|
|
224
|
-
let modelProfiles:
|
|
228
|
+
let modelProfiles: ModelProfiles = {};
|
|
229
|
+
let modelProfileErrors: string[] = [];
|
|
225
230
|
// Backend routing policy (.pi/agents/dispatch-policy.yaml): per dispatch, a
|
|
226
231
|
// member preferring coms is served by a live same-name pool peer instead of a
|
|
227
232
|
// native subagent spawn. Missing file → everything native (status quo).
|
|
@@ -236,17 +241,6 @@ export default function (pi: ExtensionAPI) {
|
|
|
236
241
|
|
|
237
242
|
let activeTeamName = "";
|
|
238
243
|
let gridCols = 2;
|
|
239
|
-
// View mode toggled by Alt+A: "dashboard" = full bordered card grid above the
|
|
240
|
-
// editor; "compact" = one line per *running* agent (name · context · state)
|
|
241
|
-
// rendered BELOW the editor, just above the footer. Compact is the default;
|
|
242
|
-
// idle/done agents are hidden so an idle session shows only the prompt + footer.
|
|
243
|
-
let viewMode: "compact" | "off" = "compact";
|
|
244
|
-
// Compact-view agent switcher: the key of the marked subagent (lowercase persona
|
|
245
|
-
// name for team specialists — matching /af-zoom resolution), or null when nothing
|
|
246
|
-
// is marked. Research helpers are Fleet-Dashboard-only. main is never listed (it is the
|
|
247
|
-
// session under the input box). Alt+]/Alt+[ move it; Alt+\ zooms it.
|
|
248
|
-
let markedAgent: string | null = null;
|
|
249
|
-
let runningWidgetInstalled = false;
|
|
250
244
|
let widgetCtx: any;
|
|
251
245
|
let sessionDir = "";
|
|
252
246
|
let contextWindow = 0;
|
|
@@ -486,6 +480,44 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
486
480
|
resolvedThinking, switchablePersonaDef, allKnownModels,
|
|
487
481
|
} = modelPolicy;
|
|
488
482
|
|
|
483
|
+
let profileCommandContext: any;
|
|
484
|
+
const profileActivation = createProfileActivation({
|
|
485
|
+
busy: () => !profileCommandContext?.isIdle?.() || profileWorkInFlight()>0 ||
|
|
486
|
+
Array.from(agentStates.values()).some(state=>state.status==='running') ||
|
|
487
|
+
Array.from(researchStates.values()).some(state=>state.status==='running'),
|
|
488
|
+
defs: () => allAgentDefs,
|
|
489
|
+
available: async () => {
|
|
490
|
+
await profileCommandContext.modelRegistry.refresh?.();
|
|
491
|
+
return (profileCommandContext.modelRegistry.getAvailable?.()??[]).map((m:any)=>`${m.provider}/${m.id}`);
|
|
492
|
+
},
|
|
493
|
+
dispatcher: () => profileCommandContext?.model ? {model:`${profileCommandContext.model.provider}/${profileCommandContext.model.id}`,thinking:pi.getThinkingLevel()} : undefined,
|
|
494
|
+
setDispatcher: async selection => {
|
|
495
|
+
const slash=selection.model.indexOf('/');
|
|
496
|
+
const model=profileCommandContext.modelRegistry.find(selection.model.slice(0,slash),selection.model.slice(slash+1));
|
|
497
|
+
if(!model || !await pi.setModel(model)) return false;
|
|
498
|
+
if(selection.thinking) pi.setThinkingLevel(selection.thinking as any);
|
|
499
|
+
return true;
|
|
500
|
+
},
|
|
501
|
+
apply: profile => modelPolicy.applyProfile(profile),
|
|
502
|
+
});
|
|
503
|
+
pi.on('model_select', async (event,ctx) => {
|
|
504
|
+
contextWindow=event.model.contextWindow||0;
|
|
505
|
+
if(profileActivation.switching()) return;
|
|
506
|
+
const active=readActiveProfile();if(!active) return;
|
|
507
|
+
try { assertProfileModel(`${event.model.provider}/${event.model.id}`,active); }
|
|
508
|
+
catch(error) {
|
|
509
|
+
ctx.abort();ctx.ui.notify(String(error),'error');
|
|
510
|
+
const target=dispatcherSelection(active.profile).model, slash=target.indexOf('/');
|
|
511
|
+
const model=ctx.modelRegistry.find(target.slice(0,slash),target.slice(slash+1));
|
|
512
|
+
if(model) await pi.setModel(model);
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
pi.on('before_provider_request', async (_event,ctx) => {
|
|
516
|
+
if(!ctx.model) return;
|
|
517
|
+
try { assertProfileModel(`${ctx.model.provider}/${ctx.model.id}`); }
|
|
518
|
+
catch(error) {ctx.abort();ctx.ui.notify(String(error),'error');}
|
|
519
|
+
});
|
|
520
|
+
|
|
489
521
|
function appendDeclaredScope(task: string, scopeGlobs: string[]): string {
|
|
490
522
|
if (!scopeGlobs || scopeGlobs.length === 0) return task;
|
|
491
523
|
return task + `\n\n## Declared scope — advisory guardrail\nStay within these paths/globs when changing files; changes outside them will be flagged to the dispatcher for a human decision, not auto-reverted.\n${scopeGlobs.map(s => `- ${s}`).join("\n")}`;
|
|
@@ -496,7 +528,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
496
528
|
setSessionDir: hubStateCtx.setSessionDir, getSessionDir: hubStateCtx.getSessionDir,
|
|
497
529
|
archivePreviousRun, ensureArtifactsLayout, resetAssertions: () => { assertions = []; },
|
|
498
530
|
setAgentDefs: value => { allAgentDefs = value; }, setTeams: value => { teams = value; },
|
|
499
|
-
setModelProfiles: value => { modelProfiles = value; }, setDispatchPolicy: value => { dispatchPolicy = value; },
|
|
531
|
+
setModelProfiles: value => { modelProfiles = value; }, setModelProfileErrors: errors => { modelProfileErrors=errors; }, setDispatchPolicy: value => { dispatchPolicy = value; },
|
|
500
532
|
setDispatchPolicyWarnings: value => { dispatchPolicyWarnings = value; },
|
|
501
533
|
});
|
|
502
534
|
}
|
|
@@ -543,16 +575,67 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
543
575
|
// ── Grid Rendering ───────────────────────────
|
|
544
576
|
const gridUI = createGridUI({
|
|
545
577
|
getWidgetContext: () => widgetCtx,
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
578
|
+
getRunningItems: () => {
|
|
579
|
+
const specialists = Array.from(agentStates.values()).map(state => ({
|
|
580
|
+
name: displayName(state.def.name),
|
|
581
|
+
status: state.status,
|
|
582
|
+
model: state.lastBackend === "coms" ? `⇄coms ${shortModel(state.comsPeerModel)}` : modelWithThinking(state.def),
|
|
583
|
+
elapsed: state.elapsed,
|
|
584
|
+
toolCount: state.toolCount,
|
|
585
|
+
messageCount: state.messageCount ?? 0,
|
|
586
|
+
delegations: Array.from(state.delegations?.values() ?? []).map(child => ({
|
|
587
|
+
role: child.role || child.id,
|
|
588
|
+
id: child.id,
|
|
589
|
+
status: child.status,
|
|
590
|
+
model: shortModel(child.model),
|
|
591
|
+
elapsed: child.elapsed,
|
|
592
|
+
startedAt: child.startedAt,
|
|
593
|
+
toolCount: child.toolCount,
|
|
594
|
+
messageCount: child.messageCount ?? 0,
|
|
595
|
+
})),
|
|
596
|
+
}));
|
|
597
|
+
const research = Array.from(researchStates.values()).map(state => ({
|
|
598
|
+
id: state.id,
|
|
599
|
+
persona: state.persona,
|
|
600
|
+
displayName: displayName(state.def.name),
|
|
601
|
+
status: state.status,
|
|
602
|
+
model: shortModel(state.model) + thinkingSuffix(resolvedThinking(state.def)),
|
|
603
|
+
elapsed: state.elapsed,
|
|
604
|
+
toolCount: state.toolCount,
|
|
605
|
+
messageCount: state.messageCount ?? 0,
|
|
606
|
+
}));
|
|
607
|
+
const pendingByName = new Map<string, { count: number; oldest: number }>();
|
|
608
|
+
for (const pending of coms.pendingReplies.values()) {
|
|
609
|
+
if (pending.result || !pending.target_name) continue;
|
|
610
|
+
const started = Date.parse(pending.created_at) || Date.now();
|
|
611
|
+
const prev = pendingByName.get(pending.target_name);
|
|
612
|
+
if (!prev) pendingByName.set(pending.target_name, { count: 1, oldest: started });
|
|
613
|
+
else pendingByName.set(pending.target_name, { count: prev.count + 1, oldest: Math.min(prev.oldest, started) });
|
|
614
|
+
}
|
|
615
|
+
const now = Date.now();
|
|
616
|
+
const comsRows = [];
|
|
617
|
+
const seen = new Set<string>();
|
|
618
|
+
for (const card of peerCards.values()) {
|
|
619
|
+
const pending = pendingByName.get(card.name);
|
|
620
|
+
const running = card.status === "working" || (card.queue_depth ?? 0) > 0 || !!pending;
|
|
621
|
+
if (!running) continue;
|
|
622
|
+
seen.add(card.name);
|
|
623
|
+
comsRows.push({
|
|
624
|
+
name: card.name,
|
|
625
|
+
model: abbreviateModel(card.model),
|
|
626
|
+
elapsed: pending ? now - pending.oldest : 0,
|
|
627
|
+
eventCount: (pending?.count ?? 0) + (card.queue_depth ?? 0),
|
|
628
|
+
running: true,
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
for (const [name, pending] of pendingByName) {
|
|
632
|
+
if (seen.has(name)) continue;
|
|
633
|
+
comsRows.push({ name, model: "", elapsed: now - pending.oldest, eventCount: pending.count, running: true });
|
|
634
|
+
}
|
|
635
|
+
return collectRunningStripItems({ specialists, research, coms: comsRows }, now);
|
|
636
|
+
},
|
|
554
637
|
});
|
|
555
|
-
const { updateWidget
|
|
638
|
+
const { updateWidget } = gridUI;
|
|
556
639
|
|
|
557
640
|
// ── Delegation observability ─────────────────
|
|
558
641
|
const dispatchObservability = createDispatchObservability({
|
|
@@ -683,6 +766,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
683
766
|
nativeResearchSystemPrompt, requireSafetyHarness, shortModel, displayName,
|
|
684
767
|
flushTimelineStore, appendTimelineText, appendTimelineEvent,
|
|
685
768
|
createTranscriptStore: createFleetTranscriptStore,
|
|
769
|
+
onElapsed: () => updateWidget(),
|
|
686
770
|
});
|
|
687
771
|
|
|
688
772
|
// ── Embedded coms: shared registry, transport, and pool core ──
|
|
@@ -696,12 +780,9 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
696
780
|
getPeerCards: () => peerCards,
|
|
697
781
|
readProjectEntries: readAllRegistryEntries,
|
|
698
782
|
readAllEntries: readAllRegistryEntriesAcrossProjects,
|
|
699
|
-
isCompact: () => compactWidgetsEnabled(viewMode),
|
|
700
783
|
truncate: truncateToWidth,
|
|
701
784
|
});
|
|
702
785
|
const fleetPeerInputs = poolPresentation.peerInputs;
|
|
703
|
-
const renderPool = poolPresentation.render;
|
|
704
|
-
const installPoolWidget = poolPresentation.install;
|
|
705
786
|
|
|
706
787
|
// ── Extracted tool execution wiring ──
|
|
707
788
|
// Mutable fleet state remains composition-owned; executor modules receive ports.
|
|
@@ -1185,7 +1266,9 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1185
1266
|
let profileName = (args || "").trim();
|
|
1186
1267
|
if (!profileName) {
|
|
1187
1268
|
const options = names.map(n =>
|
|
1188
|
-
|
|
1269
|
+
isCompleteProfile(modelProfiles[n])
|
|
1270
|
+
? `${n} — complete fleet (${shortModel((modelProfiles[n] as any).defaults.model)} default)`
|
|
1271
|
+
: `${n} — ${Object.entries(modelProfiles[n]).map(([p, m]) => `${p}: ${shortModel(m)}`).join(", ")}`,
|
|
1189
1272
|
);
|
|
1190
1273
|
const choice = await ctx.ui.select("Select model profile", options);
|
|
1191
1274
|
if (choice === undefined) return;
|
|
@@ -1196,9 +1279,12 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1196
1279
|
ctx.ui.notify(`No profile "${profileName}". Known: ${names.join(", ")}`, "error");
|
|
1197
1280
|
return;
|
|
1198
1281
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1282
|
+
profileCommandContext=ctx;
|
|
1283
|
+
try {
|
|
1284
|
+
const applied=await profileActivation.activate(profileName,profile);
|
|
1285
|
+
ctx.ui.setStatus('hub-model-profile',isCompleteProfile(profile)?`Models: ${profileName}`:undefined);
|
|
1286
|
+
ctx.ui.notify(`Profile "${profileName}": ${applied.length} personas${isCompleteProfile(profile)?', all children, dispatcher and auxiliary models':''} switched.`, 'success');
|
|
1287
|
+
} catch(error) {ctx.ui.notify(String(error),'error');}
|
|
1202
1288
|
},
|
|
1203
1289
|
handleAgentModelsSubstitute: async (args, ctx) => {
|
|
1204
1290
|
widgetCtx = ctx;
|
|
@@ -1277,6 +1363,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1277
1363
|
ctx.ui.notify(`coms: no live peer "${target}". Use /af-coms to refresh the pool.`, "error");
|
|
1278
1364
|
return;
|
|
1279
1365
|
}
|
|
1366
|
+
const refusal=profilePeerGate({ peerModel: peer.model, targetResolved: true });if(refusal){ctx.ui.notify(refusal.content[0].text,"error");return;}
|
|
1280
1367
|
const handoffToken = crypto.randomBytes(8).toString("hex");
|
|
1281
1368
|
hubStateCtx.setPendingHandoff({ target: peer.name, token: handoffToken });
|
|
1282
1369
|
pi.sendMessage({
|
|
@@ -1330,12 +1417,13 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1330
1417
|
ctx.ui.notify("Compound: asking the dispatcher to compose the candidate-lessons brief…", "info");
|
|
1331
1418
|
},
|
|
1332
1419
|
handlePoll: async (args, ctx) => {
|
|
1420
|
+
return withProfileWork(async () => {
|
|
1333
1421
|
if (modelWorkBlockedByRosterRecovery(ctx)) return;
|
|
1334
1422
|
const cwd = ctx.cwd || process.cwd();
|
|
1335
1423
|
const result = await handleAfPoll({
|
|
1336
1424
|
args: args ?? "",
|
|
1337
1425
|
cwd,
|
|
1338
|
-
pollPanelOverride: parseAgentTeamOverrides(cwd).pollPanel,
|
|
1426
|
+
pollPanelOverride: readActiveProfile()?.name ?? parseAgentTeamOverrides(cwd).pollPanel,
|
|
1339
1427
|
listPanels: async dir => {
|
|
1340
1428
|
const { listPanelNames } = await import("../../../scripts/workflows/lib/voices.ts");
|
|
1341
1429
|
return listPanelNames(dir);
|
|
@@ -1425,14 +1513,16 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1425
1513
|
content: result.dispatcherNote ?? result.message,
|
|
1426
1514
|
display: true,
|
|
1427
1515
|
}, { deliverAs: "followUp", triggerTurn: true });
|
|
1516
|
+
});
|
|
1428
1517
|
},
|
|
1429
1518
|
handleDebate: async (args, ctx) => {
|
|
1519
|
+
return withProfileWork(async () => {
|
|
1430
1520
|
if (modelWorkBlockedByRosterRecovery(ctx)) return;
|
|
1431
1521
|
const cwd = ctx.cwd || process.cwd();
|
|
1432
1522
|
const result = await handleAfDebate({
|
|
1433
1523
|
args: args ?? "",
|
|
1434
1524
|
cwd,
|
|
1435
|
-
pollPanelOverride: parseAgentTeamOverrides(cwd).pollPanel,
|
|
1525
|
+
pollPanelOverride: readActiveProfile()?.name ?? parseAgentTeamOverrides(cwd).pollPanel,
|
|
1436
1526
|
listPanels: async dir => {
|
|
1437
1527
|
const { listPanelNames } = await import("../../../scripts/workflows/lib/voices.ts");
|
|
1438
1528
|
return listPanelNames(dir);
|
|
@@ -1519,6 +1609,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1519
1609
|
content: result.dispatcherNote ?? result.message,
|
|
1520
1610
|
display: true,
|
|
1521
1611
|
}, { deliverAs: "followUp", triggerTurn: true });
|
|
1612
|
+
});
|
|
1522
1613
|
},
|
|
1523
1614
|
getAgentsKillCompletions: prefix => completions.agentsKill(prefix),
|
|
1524
1615
|
getZoomCompletions: prefix => completions.zoom(prefix),
|
|
@@ -1593,11 +1684,13 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1593
1684
|
modelPolicy,
|
|
1594
1685
|
loadAvailableModels: loadAvailableModelChoices,
|
|
1595
1686
|
openDetail: openFleetDetail,
|
|
1687
|
+
openHistory: ctx => openHistory(ctx, executionHistory, () => (activeTeamName ? `Team: ${activeTeamName}` : "Agent Hub")),
|
|
1596
1688
|
modelWorkBlocked: modelWorkBlockedByRosterRecovery,
|
|
1597
1689
|
restartSpecialist: researchControls.restartSpecialist,
|
|
1598
1690
|
removeResearch: researchControls.remove,
|
|
1599
1691
|
killSpecialistProcess: state => cancelLocalOwnedProcess({ process: state.proc, monitorBridge, monitorKey: monitorKeyForAgent(state.def.name, state.runCount), treeKill: killPiTree }),
|
|
1600
1692
|
abortComs: state => { state.comsAbort?.(); },
|
|
1693
|
+
getComsLines: (width, theme) => poolPresentation.render(width, theme),
|
|
1601
1694
|
});
|
|
1602
1695
|
const { fleetRows, openFleetDashboard } = fleetDashboard;
|
|
1603
1696
|
|
|
@@ -1650,19 +1743,6 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1650
1743
|
registerInputShortcuts(pi, {
|
|
1651
1744
|
setWidgetContext: ctx => { widgetCtx = ctx; }, openFleetDashboard,
|
|
1652
1745
|
workModeStatusText, openWorkModePicker,
|
|
1653
|
-
isCompact: () => compactWidgetsEnabled(viewMode),
|
|
1654
|
-
toggleCompact: () => { viewMode = viewMode === "compact" ? "off" : "compact"; return viewMode; },
|
|
1655
|
-
refreshWidgets: () => { updateWidget(); },
|
|
1656
|
-
getSwitchableKeys: () => switchableAgents().map(agent => agent.key),
|
|
1657
|
-
getMarkedAgent: () => markedAgent, setMarkedAgent: key => { markedAgent = key; }, clampMarker,
|
|
1658
|
-
openMarkedAgent: async (ctx, key) => {
|
|
1659
|
-
const rid = parseResearchHandle(key);
|
|
1660
|
-
const target: Zoomable | undefined = rid != null ? researchStates.get(rid) : agentStates.get(key);
|
|
1661
|
-
if (!target) return false;
|
|
1662
|
-
const row = fleetRows(true).find(candidate => candidate.key === key);
|
|
1663
|
-
if (row) await openFleetDetail(row, ctx); else await openZoom(target, ctx);
|
|
1664
|
-
return true;
|
|
1665
|
-
},
|
|
1666
1746
|
});
|
|
1667
1747
|
|
|
1668
1748
|
// Root owns subscription order; lifecycle modules own handler bodies.
|
|
@@ -1835,7 +1915,6 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1835
1915
|
comsReady = true;
|
|
1836
1916
|
try {
|
|
1837
1917
|
_ctx.ui.setStatus("coms", `📡 ${identity.name}@${identity.project}`);
|
|
1838
|
-
installPoolWidget(_ctx);
|
|
1839
1918
|
} catch { /* hasUI may be false — non-fatal */ }
|
|
1840
1919
|
} catch (err) {
|
|
1841
1920
|
comsReady = false;
|
|
@@ -1894,7 +1973,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
1894
1973
|
setWatchdog: (setting, judge) => { watchdogSetting = setting; watchdogJudgeModel = judge; },
|
|
1895
1974
|
resetTurnCounts: () => { turnDispatchCount = 0; turnResearchCount = 0; }, resetTaskWindow: () => resetTaskWindow(null), updateModeStatus,
|
|
1896
1975
|
setProjectRules: value => { projectRulesDirs = value; }, setProjectDocs: value => { projectDocsPaths = value; },
|
|
1897
|
-
resetModelPolicy: modelPolicy.reset, getAgentDefs: () => allAgentDefs, getModelProfiles: () => modelProfiles,
|
|
1976
|
+
resetModelPolicy: () => {modelPolicy.reset();profileActivation.reset();}, getModelProfileErrors: () => modelProfileErrors, getAgentDefs: () => allAgentDefs, getModelProfiles: () => modelProfiles,
|
|
1898
1977
|
deleteModelProfile: name => { delete modelProfiles[name]; }, allowedModels,
|
|
1899
1978
|
getDispatchPolicyWarnings: () => dispatchPolicyWarnings, setResearchPersonas: value => { researchPersonas = value; },
|
|
1900
1979
|
});
|
|
@@ -2007,7 +2086,7 @@ APIs, commands, structure), say so in your final response so the docs can be upd
|
|
|
2007
2086
|
getModel: () => _ctx.model?.id || "no-model",
|
|
2008
2087
|
getThinkingLevel: () => pi.getThinkingLevel?.(),
|
|
2009
2088
|
thinkingSuffix,
|
|
2010
|
-
getHint: () => composeFleetFooterHint(
|
|
2089
|
+
getHint: () => composeFleetFooterHint(compactWorkMode(getWorkMode())),
|
|
2011
2090
|
renderLeft: renderHubFooterLeft,
|
|
2012
2091
|
truncateToWidth,
|
|
2013
2092
|
visibleWidth,
|
|
@@ -5,43 +5,14 @@ export interface ShortcutPorts {
|
|
|
5
5
|
openFleetDashboard(ctx: ExtensionContext): Promise<void>;
|
|
6
6
|
workModeStatusText(): string;
|
|
7
7
|
openWorkModePicker(ctx: ExtensionContext): Promise<void>;
|
|
8
|
-
isCompact(): boolean;
|
|
9
|
-
toggleCompact(): string;
|
|
10
|
-
refreshWidgets(): void;
|
|
11
|
-
getSwitchableKeys(): string[];
|
|
12
|
-
getMarkedAgent(): string | null;
|
|
13
|
-
setMarkedAgent(key: string | null): void;
|
|
14
|
-
clampMarker(): void;
|
|
15
|
-
openMarkedAgent(ctx: ExtensionContext, key: string): Promise<boolean>;
|
|
16
8
|
}
|
|
17
9
|
|
|
18
10
|
export function registerInputShortcuts(pi: ExtensionAPI, ports: ShortcutPorts): void {
|
|
19
11
|
const withContext = (ctx: ExtensionContext) => ports.setWidgetContext(ctx);
|
|
20
|
-
const cycleMarker = (delta: number, ctx: ExtensionContext) => {
|
|
21
|
-
withContext(ctx);
|
|
22
|
-
if (!ports.isCompact()) { ctx.ui.notify("Agent switching is a compact-view feature — press Alt+A first", "info"); return; }
|
|
23
|
-
const keys = ports.getSwitchableKeys();
|
|
24
|
-
if (keys.length === 0) { ctx.ui.notify("No running subagents to switch between", "info"); return; }
|
|
25
|
-
const current = ports.getMarkedAgent();
|
|
26
|
-
const index = current ? keys.indexOf(current) : -1;
|
|
27
|
-
ports.setMarkedAgent(index === -1 ? (delta > 0 ? keys[0] : keys[keys.length - 1]) : keys[(index + delta + keys.length) % keys.length]);
|
|
28
|
-
ports.refreshWidgets();
|
|
29
|
-
};
|
|
30
12
|
pi.registerShortcut("alt+a", { description: "Open Fleet Dashboard", handler: ctx => { withContext(ctx); void ports.openFleetDashboard(ctx); } });
|
|
31
13
|
pi.registerShortcut("alt+m", { description: "Open work mode picker", handler: ctx => {
|
|
32
14
|
withContext(ctx);
|
|
33
15
|
if (!ctx.hasUI || typeof ctx.ui.select !== "function") { ctx.ui.notify(`${ports.workModeStatusText()}\nSwitch with /af-work-mode operator|orchestrator`, "info"); return; }
|
|
34
16
|
void ports.openWorkModePicker(ctx);
|
|
35
17
|
} });
|
|
36
|
-
pi.registerShortcut("alt+shift+a", { description: "Toggle compact agent widget", handler: ctx => { withContext(ctx); const mode = ports.toggleCompact(); ports.refreshWidgets(); ctx.ui.notify(`Compact agent widget: ${mode}`, "info"); } });
|
|
37
|
-
pi.registerShortcut("alt+]", { description: "Compact view: mark next subagent", handler: ctx => cycleMarker(1, ctx) });
|
|
38
|
-
pi.registerShortcut("alt+[", { description: "Compact view: mark previous subagent", handler: ctx => cycleMarker(-1, ctx) });
|
|
39
|
-
pi.registerShortcut("alt+\\", { description: "Compact view: zoom the marked subagent", handler: async ctx => {
|
|
40
|
-
withContext(ctx);
|
|
41
|
-
if (!ports.isCompact()) { ctx.ui.notify("Agent zoom from the marker is a compact-view feature — press Alt+A first", "info"); return; }
|
|
42
|
-
ports.clampMarker();
|
|
43
|
-
const marked = ports.getMarkedAgent();
|
|
44
|
-
if (!marked) { ctx.ui.notify("No running subagent marked to zoom", "info"); return; }
|
|
45
|
-
if (!await ports.openMarkedAgent(ctx, marked)) ctx.ui.notify(`Marked agent ${marked} is no longer available`, "warning");
|
|
46
|
-
} });
|
|
47
18
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { validateProfile, type ModelProfiles } from '../config/model-profiles.ts';
|
|
1
2
|
import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
2
3
|
import { existsSync } from "node:fs";
|
|
3
4
|
import { join } from "node:path";
|
|
@@ -52,7 +53,8 @@ export interface SessionOverridePorts<TDef extends AgentDef> {
|
|
|
52
53
|
setProjectDocs(value: string[]): void;
|
|
53
54
|
resetModelPolicy(): void;
|
|
54
55
|
getAgentDefs(): TDef[];
|
|
55
|
-
getModelProfiles():
|
|
56
|
+
getModelProfiles(): ModelProfiles;
|
|
57
|
+
getModelProfileErrors?(): string[];
|
|
56
58
|
deleteModelProfile(name: string): void;
|
|
57
59
|
allowedModels(def: TDef): string[];
|
|
58
60
|
getDispatchPolicyWarnings(): string[];
|
|
@@ -97,13 +99,11 @@ export function applySessionOverrides<TDef extends AgentDef>(ctx: ExtensionConte
|
|
|
97
99
|
if (overrides.personaDelegateDepth[lower] !== undefined) def.delegateDepth = overrides.personaDelegateDepth[lower];
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
const parseErrors=ports.getModelProfileErrors?.()??[];
|
|
103
|
+
if(parseErrors.length) ctx.ui.notify(`model-profiles.yaml: ${parseErrors.join('\n')}`, 'error');
|
|
100
104
|
const profileErrors: string[] = [];
|
|
101
|
-
for (const [profileName,
|
|
102
|
-
for
|
|
103
|
-
const def = defs.find(candidate => candidate.name.toLowerCase() === persona);
|
|
104
|
-
if (!def) profileErrors.push(`profile "${profileName}": unknown persona "${persona}"`);
|
|
105
|
-
else if (!ports.allowedModels(def).includes(model)) profileErrors.push(`profile "${profileName}": ${persona} does not declare ${model} (model:/af-models: in ${def.file})`);
|
|
106
|
-
}
|
|
105
|
+
for (const [profileName, profile] of Object.entries(ports.getModelProfiles())) {
|
|
106
|
+
for(const error of validateProfile(profile,defs)) profileErrors.push(`profile "${profileName}": ${error}`);
|
|
107
107
|
}
|
|
108
108
|
if (profileErrors.length) {
|
|
109
109
|
const dropped = new Set(profileErrors.map(error => error.match(/^profile "([^"]+)"/)![1]));
|