@chankov/agent-fleet 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/agent-fleet/hermes/README.md +347 -0
- package/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.pi/agent-fleet/scripts/fleet.ts +216 -0
- package/.pi/agent-fleet/scripts/flow.ts +137 -0
- package/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +133 -0
- package/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.pi/agents/peers.yaml +3 -1
- package/.pi/harnesses/agent-hub/README.md +1 -1
- package/.pi/harnesses/agent-hub/config/agents.ts +5 -1
- package/.pi/harnesses/agent-hub/debate-command.ts +1 -1
- package/.pi/harnesses/agent-hub/index.ts +19 -19
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/peer-spawn-plan.ts +1 -1
- package/.pi/harnesses/agent-hub/tools/fleet-tools.ts +3 -5
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +2 -2
- package/.pi/harnesses/ask-user-remote/index.ts +2 -2
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/README.md +11 -0
- package/.pi/harnesses/damage-control-continue/index.ts +5 -0
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/spawned-peers.js +1 -1
- package/.pi/harnesses/lib/update-check.ts +222 -0
- package/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.7/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.7/.pi/agents/model-profiles.yaml +83 -0
- package/.versions/2.0.7/.pi/agents/peers.yaml +145 -0
- package/.versions/2.0.7/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.7/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.7/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.7/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.7/.pi/extensions/btw/index.ts +914 -0
- package/{.pi/extensions/agent-fleet-update-check → .versions/2.0.7/.pi/extensions/btw}/package.json +1 -1
- package/.versions/2.0.7/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.7/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.7/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.7/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.7/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.7/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.7/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.7/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.7/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.7/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.7/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.7/.pi/extensions/package.json +9 -0
- package/.versions/2.0.7/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.7/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.7/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.7/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.7/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.7/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.7/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/README.md +1203 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/acceptance.ts +62 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/budget-recovery.ts +97 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/context.ts +43 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/config/agents.ts +173 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +213 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/context/budgets.ts +202 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-coms.ts +237 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-native-complete.ts +154 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +156 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +193 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-native-types.ts +230 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-native.ts +213 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/fixtures/registration-surface.json +57 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/hub-state-audit.js +64 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/index.ts +2151 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/input/shortcuts.ts +18 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/no-progress.ts +76 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/policy/work-mode.ts +119 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/prompts/context.ts +47 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/prompts/system-prompt.ts +112 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/research/runtime.ts +192 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/research/spawn-run.ts +156 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/scope-gate.js +123 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/spawn.ts +404 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/action-executors.ts +149 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/context.ts +134 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +273 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/fleet-tools.ts +202 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/types.ts +63 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/detail-panel.ts +178 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +125 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/grid.ts +42 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.7/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.7/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.7/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.7/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.7/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.7/.pi/harnesses/ask-user-remote/runtime-ask.ts +43 -0
- package/.versions/2.0.7/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.7/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.7/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.7/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.7/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.7/.pi/harnesses/damage-control-continue/index.ts +541 -0
- package/.versions/2.0.7/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.7/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.7/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.7/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.7/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.7/.pi/harnesses/lib/context-budget-child-prompt.ts +180 -0
- package/.versions/2.0.7/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.7/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.7/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.7/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-dashboard-ops.ts +161 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-dashboard-view.ts +148 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.7/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.7/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.7/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.7/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.7/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.7/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.7/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.7/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.7/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.7/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.7/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.7/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.7/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.7/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.7/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.7/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.7/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.7/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.7/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.7/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.7/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.7/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.7/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.7/.version +1 -0
- package/.versions/2.0.7/agents/architect.md +25 -0
- package/.versions/2.0.7/agents/bowser.md +28 -0
- package/.versions/2.0.7/agents/builder.md +56 -0
- package/.versions/2.0.7/agents/code-reviewer.md +210 -0
- package/.versions/2.0.7/agents/deep-researcher.md +33 -0
- package/.versions/2.0.7/agents/documenter.md +23 -0
- package/.versions/2.0.7/agents/orchestrator.md +23 -0
- package/.versions/2.0.7/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.7/agents/planner.md +106 -0
- package/.versions/2.0.7/agents/releaser.md +25 -0
- package/.versions/2.0.7/agents/researcher.md +31 -0
- package/.versions/2.0.7/agents/security-auditor.md +168 -0
- package/.versions/2.0.7/agents/test-engineer.md +154 -0
- package/.versions/2.0.7/agents/web-debugger.md +44 -0
- package/.versions/2.0.7/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.7/bin/catalog/harness-runtime-closure.json +31 -0
- package/.versions/2.0.7/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.7/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.7/docs/ARCHITECTURE.md +407 -0
- package/.versions/2.0.7/docs/agent-fleet-setup.md +561 -0
- package/.versions/2.0.7/docs/claude-code-coms-bridge.md +133 -0
- package/.versions/2.0.7/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.7/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.7/docs/getting-started.md +126 -0
- package/.versions/2.0.7/docs/npm-install.md +327 -0
- package/.versions/2.0.7/docs/pi-extensions.md +446 -0
- package/.versions/2.0.7/docs/pi-setup.md +76 -0
- package/.versions/2.0.7/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.7/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.7/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.7/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.7/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.7/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.7/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.7/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.7/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.7/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.7/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.7/install-manifest.json +2886 -0
- package/.versions/2.0.7/justfile +247 -0
- package/.versions/2.0.7/manifest-meta.json +958 -0
- package/.versions/2.0.7/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.7/references/communication-contract.md +26 -0
- package/.versions/2.0.7/references/definition-of-done.md +67 -0
- package/.versions/2.0.7/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.7/references/observability-checklist.md +91 -0
- package/.versions/2.0.7/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.7/references/performance-checklist.md +153 -0
- package/.versions/2.0.7/references/prompting-patterns.md +380 -0
- package/.versions/2.0.7/references/security-checklist.md +179 -0
- package/.versions/2.0.7/references/testing-patterns.md +236 -0
- package/.versions/2.0.7/references/workflow-authoring.md +304 -0
- package/.versions/2.0.7/scripts/fleet-codex-client.ts +69 -0
- package/{scripts → .versions/2.0.7/scripts}/fleet.ts +1 -1
- package/.versions/2.0.7/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.7/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.7/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.7/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.7/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.7/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.7/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.7/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.7/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.7/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.7/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.7/scripts/package-lock.json +35 -0
- package/.versions/2.0.7/scripts/package.json +9 -0
- package/.versions/2.0.7/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.7/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.7/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.7/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.7/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.7/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.7/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.7/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.7/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.7/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.7/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.7/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.7/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.7/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.7/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.7/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.7/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.7/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.7/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.7/scripts/workflows/wf-scout.ts +38 -0
- package/.versions/2.0.7/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.7/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.7/skills/code-review-and-quality/SKILL.md +381 -0
- package/.versions/2.0.7/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.7/skills/context-engineering/SKILL.md +291 -0
- package/.versions/2.0.7/skills/deprecation-and-migration/SKILL.md +206 -0
- package/.versions/2.0.7/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.7/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.7/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.7/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.7/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.7/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.7/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.7/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.7/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.7/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.7/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.7/skills/incremental-implementation/SKILL.md +298 -0
- package/.versions/2.0.7/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.7/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.7/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.7/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.7/skills/planning-and-task-breakdown/SKILL.md +265 -0
- package/.versions/2.0.7/skills/security-and-hardening/SKILL.md +461 -0
- package/.versions/2.0.7/skills/spec-driven-development/SKILL.md +256 -0
- package/.versions/2.0.7/skills/using-agent-skills/SKILL.md +197 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/README.md +11 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +294 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +289 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +278 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +203 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +350 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +234 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +467 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +310 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +194 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +206 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +383 -0
- package/.versions/2.0.7/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +191 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.8/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.8/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/fleet.ts +216 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/flow.ts +137 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +133 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.8/.pi/agent-fleet/scripts/workflows/wf-scout.ts +38 -0
- package/.versions/2.0.8/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.8/.pi/agents/model-profiles.yaml +83 -0
- package/.versions/2.0.8/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.8/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.8/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.8/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.8/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.8/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.8/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.8/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.8/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.8/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.8/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.8/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.8/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.8/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.8/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.8/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.8/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.8/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.8/.pi/extensions/package.json +9 -0
- package/.versions/2.0.8/.pi/extensions/pi-voice-stt/README.md +205 -0
- package/.versions/2.0.8/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.8/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.8/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.8/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.8/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.8/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/README.md +1203 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/acceptance.ts +62 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/assertion-ledger.js +58 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/budget-recovery.ts +97 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/capability-packs.ts +180 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/context.ts +43 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/config/agents.ts +177 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/config/model-profiles.ts +216 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/config/overrides.ts +153 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +213 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/context/budgets.ts +202 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/context-window.js +106 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/delegate.ts +446 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-coms.ts +237 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-native-complete.ts +154 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +156 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +193 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-native-types.ts +230 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-native.ts +213 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/drift-watchdog.js +218 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/fixtures/registration-surface.json +57 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/helpers.ts +266 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/hub-state-audit.js +64 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/index.ts +2151 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/input/completions.ts +76 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/input/shortcuts.ts +18 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +123 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/no-progress.ts +76 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/policy/work-mode.ts +119 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/prompts/context.ts +47 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/prompts/fragments.ts +115 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/prompts/system-prompt.ts +112 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/research/runtime.ts +192 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/research/spawn-run.ts +156 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/return-contract.js +293 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/return-extract.js +75 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/review-findings.js +102 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/run-budget.js +537 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/run-namespace.js +87 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/scope-gate.js +123 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/spawn.ts +404 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/timeline.ts +54 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/action-executors.ts +149 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/context.ts +134 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +273 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/set-task-tier.ts +29 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/spawn-research.ts +62 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/tools/verification-contract.ts +77 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/types.ts +63 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/activity-dots.ts +16 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/context-budget.ts +86 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/detail-panel.ts +178 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +125 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/grid.ts +42 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/running-strip.ts +139 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/ui/zoom.ts +204 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.8/.pi/harnesses/agent-hub/work-mode.ts +167 -0
- package/.versions/2.0.8/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.8/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.8/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.8/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.8/.pi/harnesses/ask-user-remote/runtime-ask.ts +43 -0
- package/.versions/2.0.8/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.8/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.8/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.8/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.8/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.8/.pi/harnesses/damage-control-continue/index.ts +541 -0
- package/.versions/2.0.8/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.8/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.8/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.8/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.8/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.8/.pi/harnesses/lib/context-budget-child-prompt.ts +180 -0
- package/.versions/2.0.8/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.8/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.8/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.8/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-dashboard-ops.ts +161 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-dashboard-view.ts +148 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-detail-view.ts +247 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.8/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.8/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.8/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.8/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.8/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.8/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.8/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.8/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.8/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.8/.pi/harnesses/lib/spawned-peers.js +190 -0
- package/.versions/2.0.8/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.8/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.8/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.8/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.8/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.8/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.8/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.8/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.8/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.8/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.8/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.8/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.8/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.8/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.8/.version +1 -0
- package/.versions/2.0.8/agents/architect.md +25 -0
- package/.versions/2.0.8/agents/bowser.md +28 -0
- package/.versions/2.0.8/agents/builder.md +56 -0
- package/.versions/2.0.8/agents/code-reviewer.md +210 -0
- package/.versions/2.0.8/agents/deep-researcher.md +33 -0
- package/.versions/2.0.8/agents/documenter.md +23 -0
- package/.versions/2.0.8/agents/orchestrator.md +23 -0
- package/.versions/2.0.8/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.8/agents/planner.md +106 -0
- package/.versions/2.0.8/agents/releaser.md +25 -0
- package/.versions/2.0.8/agents/researcher.md +31 -0
- package/.versions/2.0.8/agents/security-auditor.md +168 -0
- package/.versions/2.0.8/agents/test-engineer.md +154 -0
- package/.versions/2.0.8/agents/web-debugger.md +44 -0
- package/.versions/2.0.8/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.8/bin/catalog/harness-runtime-closure.json +32 -0
- package/.versions/2.0.8/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.8/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.8/docs/ARCHITECTURE.md +416 -0
- package/.versions/2.0.8/docs/agent-fleet-setup.md +568 -0
- package/.versions/2.0.8/docs/claude-code-coms-bridge.md +134 -0
- package/.versions/2.0.8/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.8/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.8/docs/getting-started.md +126 -0
- package/.versions/2.0.8/docs/npm-install.md +356 -0
- package/.versions/2.0.8/docs/pi-extensions.md +446 -0
- package/.versions/2.0.8/docs/pi-setup.md +76 -0
- package/.versions/2.0.8/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.8/install-manifest.json +2991 -0
- package/.versions/2.0.8/justfile +247 -0
- package/.versions/2.0.8/manifest-meta.json +970 -0
- package/.versions/2.0.8/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.8/references/communication-contract.md +26 -0
- package/.versions/2.0.8/references/definition-of-done.md +67 -0
- package/.versions/2.0.8/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.8/references/observability-checklist.md +92 -0
- package/.versions/2.0.8/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.8/references/performance-checklist.md +236 -0
- package/.versions/2.0.8/references/prompting-patterns.md +380 -0
- package/.versions/2.0.8/references/security-checklist.md +245 -0
- package/.versions/2.0.8/references/testing-patterns.md +235 -0
- package/.versions/2.0.8/references/workflow-authoring.md +304 -0
- package/.versions/2.0.8/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.8/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.8/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.8/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.8/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.8/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.8/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.8/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.8/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.8/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.8/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.8/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.8/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.8/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.8/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.8/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.8/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.8/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.8/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.8/skills/incremental-implementation/SKILL.md +302 -0
- package/.versions/2.0.8/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.8/skills/orchestration-verification/SKILL.md +181 -0
- package/.versions/2.0.8/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.8/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.8/skills/planning-and-task-breakdown/SKILL.md +289 -0
- package/.versions/2.0.8/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.8/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.8/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.8/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +47 -0
- package/README.md +24 -16
- package/bin/catalog/harness-runtime-closure.json +23 -22
- package/bin/cli.js +173 -79
- package/bin/lib/apply.js +59 -64
- package/bin/lib/detect-agent.js +1 -1
- package/bin/lib/doctor.js +3 -3
- package/bin/lib/features.js +2 -2
- package/bin/lib/manifest.js +23 -16
- package/bin/lib/path-boundaries.js +96 -0
- package/bin/lib/personas.js +15 -2
- package/bin/lib/public-plan.js +17 -0
- package/bin/lib/purge.js +9 -3
- package/bin/lib/reconcile.js +4 -10
- package/bin/lib/repair-desired.js +73 -0
- package/bin/lib/set-hermes-telegram.js +2 -2
- package/bin/lib/set-hermes-watchdog.js +1 -1
- package/bin/lib/state.js +5 -1
- package/bin/lib/stt-wizard.js +25 -11
- package/bin/lib/transaction.js +118 -108
- package/bin/lib/tui.js +70 -65
- package/bin/lib/update-notifier.js +2 -2
- package/bin/lib/verify.js +43 -5
- package/bin/lib/workspace-safety.js +72 -0
- package/bin/snapshot-version.js +6 -6
- package/codex/fleet-session-client/SKILL.md +3 -3
- package/docs/ARCHITECTURE.md +29 -20
- package/docs/MIGRATION-agent-fleet.md +11 -7
- package/docs/agent-fleet-setup.md +9 -2
- package/docs/claude-code-coms-bridge.md +10 -9
- package/docs/codex-session-bridge.md +18 -18
- package/docs/coms-hermes-bridge.md +6 -6
- package/docs/hermes-watchdog-supervisor.md +1 -1
- package/docs/npm-install.md +71 -16
- package/docs/pi-extensions.md +9 -9
- package/docs/pi-setup.md +2 -2
- package/docs/workflows.md +9 -5
- package/install-manifest.json +202 -135
- package/justfile +22 -22
- package/manifest-meta.json +51 -57
- package/package.json +26 -26
- package/references/observability-checklist.md +1 -0
- package/references/performance-checklist.md +83 -0
- package/references/prompting-patterns.md +1 -1
- package/references/security-checklist.md +85 -19
- package/references/testing-patterns.md +12 -13
- package/references/workflow-authoring.md +5 -5
- package/skills/code-review-and-quality/SKILL.md +17 -2
- package/skills/constraint-driven-development/SKILL.md +338 -0
- package/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/skills/context-engineering/SKILL.md +52 -2
- package/skills/deprecation-and-migration/SKILL.md +42 -1
- package/skills/designing-agents/SKILL.md +12 -12
- package/skills/drafting-workflows/SKILL.md +6 -6
- package/skills/drafting-workflows/scripts/make-workflow.ts +3 -3
- package/skills/frontend-ui-engineering/SKILL.md +2 -2
- package/skills/git-workflow-and-versioning/SKILL.md +1 -1
- package/skills/incremental-implementation/SKILL.md +13 -9
- package/skills/peer-coms/SKILL.md +4 -4
- package/skills/performance-optimization/SKILL.md +152 -6
- package/skills/planning-and-task-breakdown/SKILL.md +32 -8
- package/skills/security-and-hardening/SKILL.md +84 -21
- package/skills/spec-driven-development/SKILL.md +41 -2
- package/skills/using-agent-skills/SKILL.md +3 -2
- package/vendor/agent-skills-upstream/README.md +427 -8
- package/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +73 -0
- package/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +2 -2
- package/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +49 -1
- package/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +4 -4
- package/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +1 -1
- package/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +12 -2
- package/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +3 -3
- package/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +1 -1
- package/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +1 -1
- package/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +9 -9
- package/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +36 -1
- package/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +151 -5
- package/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +32 -9
- package/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +64 -7
- package/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +26 -6
- package/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +23 -1
- package/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +42 -3
- package/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +18 -3
- package/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +3 -2
- package/.pi/extensions/agent-fleet-update-check/README.md +0 -57
- package/.pi/extensions/agent-fleet-update-check/index.ts +0 -161
- /package/{hermes → .pi/agent-fleet/hermes}/desktop-plugins/agent-fleet-herdr/plugin.js +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/desktop-plugins/agent-fleet-herdr/presentation.js +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/desktop-plugins/agent-fleet-monitor/plugin.js +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/desktop-plugins/agent-fleet-monitor/state.js +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-herdr/dashboard/herdr_source.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-herdr/dashboard/manifest.json +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-herdr/dashboard/plugin_api.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-herdr/dashboard/sessions.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-herdr/dashboard/tasks.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-herdr/plugin.yaml +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-monitor/dashboard/adapter.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-monitor/dashboard/dist/index.js +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-monitor/dashboard/manifest.json +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/plugins/agent-fleet-monitor/dashboard/plugin_api.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-liaison/SKILL.md +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/manifest.json +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_actions.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_contract.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_delivery.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_engine.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_judgment.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_recovery.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_state.py +0 -0
- /package/{hermes → .pi/agent-fleet/hermes}/skills/hub-watchdog/scripts/watchdog_transport.py +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/fleet-codex-client.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/hermes-watchdog-capability-probe.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/lib/fake-herdr-server.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/lib/fleet-codex-catalog.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/lib/fleet-codex-operations.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/lib/fleet-codex-session.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/lib/fleet-command.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/lib/flow-command.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/lib/flow-maintenance.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/package-lock.json +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/package.json +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/changes.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/debate.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/env.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/gates.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/git.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/merge.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/model-visibility.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/permissions.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/poll.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/quality.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/run.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/voices.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/lib/writer-lease.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/tsconfig.json +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/wf-build-test.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/wf-debate.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/wf-document.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/wf-poll.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/wf-quality.ts +0 -0
- /package/{scripts → .pi/agent-fleet/scripts}/workflows/wf-scout.ts +0 -0
- /package/{hermes → .versions/2.0.7/hermes}/README.md +0 -0
- /package/{hermes → .versions/2.0.7/hermes}/plugins/agent-fleet-herdr/dashboard/activity.py +0 -0
- /package/{hermes → .versions/2.0.7/hermes}/plugins/agent-fleet-herdr/dashboard/coms_registry.py +0 -0
- /package/{hermes → .versions/2.0.7/hermes}/plugins/agent-fleet-herdr/dashboard/coms_send.py +0 -0
- /package/{hermes → .versions/2.0.7/hermes}/plugins/agent-fleet-herdr/dashboard/watch.py +0 -0
- /package/{hermes → .versions/2.0.7/hermes}/skills/hub-conductor/SKILL.md +0 -0
- /package/{hermes → .versions/2.0.7/hermes}/skills/hub-watchdog/SKILL.md +0 -0
- /package/{hooks → .versions/2.0.7/hooks}/coms-stop-hook.mjs +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/claude-code-preflight.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/coms-claude-bridge.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/coms-cli.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/coms-hermes-bridge.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/fleet-codex-read.py +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/flow.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/claude-bridge-core.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/coms-envelope.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/fleet-codex-transport.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/herdr-layout.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/hermes-bridge-core.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/hermes-monitor-events.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/hermes-monitor-herdr.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/hermes-monitor-model.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/hermes-monitor-registry.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/hermes-monitor-socket.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/hermes-monitor-store.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/monitor-env.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/peer-launch.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/persona-banner.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/runtime-dependencies.js +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/spawn-stagger.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/team-project.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/lib/team-snapshot.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/peer-banner.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/peer-launch.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/team-snapshot.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/team-up.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/workflows/lib/agent-phase.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/workflows/lib/envelopes.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/workflows/lib/model-profile.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/workflows/lib/personas.ts +0 -0
- /package/{scripts → .versions/2.0.7/scripts}/workflows/lib/trace.ts +0 -0
package/bin/lib/apply.js
CHANGED
|
@@ -28,33 +28,44 @@ import { itemsForAgent } from "./manifest.js";
|
|
|
28
28
|
import { expandBinding } from "./verify.js";
|
|
29
29
|
import { extractRegion, replaceRegion, stripRegion, leafPaths, setPath, canonicalJson } from "./merge-forms.js";
|
|
30
30
|
import { runTransaction } from "./transaction.js";
|
|
31
|
+
import { assertSafeWorkspaceTarget } from "./workspace-safety.js";
|
|
31
32
|
import { renderDesired } from "./desired.js";
|
|
32
33
|
import {
|
|
33
34
|
readState, writeState, emptyState, hashFile, hashText, walkTree,
|
|
34
35
|
inspectPath, isInside, linkPointsInside, STATE_REL_PATH, LEGACY_RECORD_REL_PATH,
|
|
36
|
+
STATE_SCHEMA_VERSION,
|
|
35
37
|
} from "./state.js";
|
|
36
38
|
|
|
37
39
|
export const APPLY_SCHEMA_VERSION = 1;
|
|
40
|
+
export const EXEC_TIMEOUT_MS = 120_000;
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
function manifestExec(manifest, agent, id) {
|
|
43
|
+
const item = itemsForAgent(manifest, agent).find((entry) => entry.id === id);
|
|
44
|
+
if (!item?.exec) throw new Error(`runtime repair ${id} is not authorized by the current manifest`);
|
|
45
|
+
return item.exec;
|
|
46
|
+
}
|
|
47
|
+
export function runTrustedExec({ workspace, spec, output, timeoutMs = EXEC_TIMEOUT_MS }) {
|
|
48
|
+
const display = `${spec.command} ${(spec.args ?? []).join(" ")}`.trim();
|
|
49
|
+
output(`starting ${display} (timeout ${timeoutMs}ms)`);
|
|
50
|
+
const run = spawnSync(spec.command, spec.args ?? [], { cwd: insideWorkspace(workspace, spec.cwd ?? "."), stdio: "pipe", encoding: "utf8", timeout: timeoutMs });
|
|
51
|
+
output(run.status === 0 ? `completed ${display}` : `failed ${display}`);
|
|
52
|
+
return { run, display };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Retry only action IDs still authorized by the trusted current manifest. */
|
|
56
|
+
export function retryRuntimeRepairs({ workspace, manifest, output = console.log }) {
|
|
41
57
|
const state = readState(workspace);
|
|
42
58
|
const pending = state?.runtimeRepairs ?? [];
|
|
43
59
|
if (pending.length === 0) return { attempted: 0, remaining: [] };
|
|
44
|
-
|
|
45
60
|
const remaining = [];
|
|
46
61
|
for (const repair of pending) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
52
|
-
if (run.status !== 0) {
|
|
53
|
-
remaining.push({ ...repair, status: run.status ?? "signal", stderr: (run.stderr ?? "").trim() });
|
|
54
|
-
}
|
|
62
|
+
let spec;
|
|
63
|
+
try { spec = manifestExec(manifest, state.agent, repair.id); }
|
|
64
|
+
catch (error) { remaining.push({ id: repair.id, status: "unauthorized", detail: error.message }); continue; }
|
|
65
|
+
const { run, display } = runTrustedExec({ workspace, spec, output });
|
|
66
|
+
if (run.status !== 0) remaining.push({ id: repair.id, args: spec.args ?? [], cwd: spec.cwd ?? ".", display, status: run.error?.code === "ETIMEDOUT" ? "timeout" : run.status ?? run.signal ?? "failed", stderr: (run.stderr ?? "").trim() });
|
|
55
67
|
}
|
|
56
|
-
state.runtimeRepairs = remaining;
|
|
57
|
-
writeState(workspace, state);
|
|
68
|
+
state.runtimeRepairs = remaining; writeState(workspace, state);
|
|
58
69
|
return { attempted: pending.length, remaining };
|
|
59
70
|
}
|
|
60
71
|
|
|
@@ -68,7 +79,7 @@ export function retryRuntimeRepairs({ workspace, output = console.log }) {
|
|
|
68
79
|
* @param {() => string} [opts.now] injectable clock, for deterministic tests
|
|
69
80
|
* @returns {object} result
|
|
70
81
|
*/
|
|
71
|
-
export function applyPlan({ plan, manifest, allowExec = false, now = () => new Date().toISOString(), output = console.log, failAt = null }) {
|
|
82
|
+
export function applyPlan({ plan, manifest, allowExec = false, now = () => new Date().toISOString(), output = console.log, failAt = null, lockHeld = false }) {
|
|
72
83
|
const validate = () => {
|
|
73
84
|
if (plan.migrationBlocked) throw Object.assign(new Error(plan.migrationError), { exitCode: 1 });
|
|
74
85
|
if (plan.snapshotMetadataError) throw Object.assign(new Error(plan.snapshotMetadataError), { exitCode: 1 });
|
|
@@ -76,37 +87,34 @@ export function applyPlan({ plan, manifest, allowExec = false, now = () => new D
|
|
|
76
87
|
};
|
|
77
88
|
let result;
|
|
78
89
|
try {
|
|
79
|
-
result = runTransaction({ workspace: plan.workspace, plan, manifest, validate, failAt, commit: () => {
|
|
80
|
-
if (plan.writeDesired) writeFileSyncDeep(join(plan.workspace, ".ai", "agent-fleet.json"), renderDesired(plan.desired));
|
|
81
|
-
if (plan.overrides?.write) writeFileSyncDeep(plan.overrides.path, plan.overrides.text);
|
|
82
|
-
if (plan.stt)
|
|
83
|
-
|
|
84
|
-
if (plan.stt.env.missing.length) writeFileSyncDeep(plan.stt.env.path, plan.stt.env.text);
|
|
85
|
-
}
|
|
90
|
+
result = runTransaction({ workspace: plan.workspace, plan, manifest, validate, failAt, lockHeld, commit: () => {
|
|
91
|
+
if (plan.writeDesired) writeFileSyncDeep(join(plan.workspace, ".ai", "agent-fleet.json"), renderDesired(plan.desired), plan.workspace);
|
|
92
|
+
if (plan.overrides?.write) writeFileSyncDeep(plan.overrides.path, plan.overrides.text, plan.workspace);
|
|
93
|
+
if (plan.stt?.write) writeFileSyncDeep(plan.stt.path, plan.stt.text, plan.workspace);
|
|
94
|
+
if (plan.stt?.env?.missing?.length) writeFileSyncDeep(plan.stt.env.path, plan.stt.env.text, plan.workspace);
|
|
86
95
|
return applyImmediate({ plan, manifest, allowExec: false, now });
|
|
87
96
|
} });
|
|
88
97
|
} catch (error) {
|
|
98
|
+
const status = error.postCommit ? "committed-cleanup-incomplete" : error.rollbackFailed ? "rollback-failed" : "rolled-back";
|
|
89
99
|
return { schemaVersion: APPLY_SCHEMA_VERSION, workspace: plan.workspace, verb: plan.verb,
|
|
90
|
-
results: [], conflictFiles: [], failure: { status
|
|
91
|
-
exitCode: error.exitCode ?? 1, summary: { applied: 0, failed: 1 } };
|
|
100
|
+
results: [], conflictFiles: [], failure: { status, detail: error.message },
|
|
101
|
+
exitCode: error.exitCode ?? 1, summary: { applied: 0, failed: 1, notReached: 0 } };
|
|
92
102
|
}
|
|
93
103
|
if (!allowExec) return { ...result, exitCode: 0 };
|
|
94
104
|
|
|
95
105
|
const repairs = [];
|
|
96
106
|
for (const action of plan.actions.filter((entry) => entry.kind === "exec")) {
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
const command = `${spec.command} ${(spec.args ?? []).join(" ")}`.trim();
|
|
101
|
-
output(command);
|
|
102
|
-
const run = spawnSync(spec.command, spec.args ?? [], { cwd: insideWorkspace(plan.workspace, spec.cwd ?? "."), stdio: "pipe", encoding: "utf8" });
|
|
103
|
-
if (run.status !== 0) repairs.push({ id: action.id, command: spec.command, args: spec.args ?? [], cwd: spec.cwd ?? ".", display: command, status: run.status ?? "signal", stderr: (run.stderr ?? "").trim() });
|
|
107
|
+
const spec = manifestExec(manifest, plan.agent, action.id);
|
|
108
|
+
const { run, display } = runTrustedExec({ workspace: plan.workspace, spec, output });
|
|
109
|
+
if (run.status !== 0) repairs.push({ id: action.id, display, status: run.error?.code === "ETIMEDOUT" ? "timeout" : run.status ?? run.signal ?? "failed", stderr: (run.stderr ?? "").trim() });
|
|
104
110
|
}
|
|
105
111
|
if (repairs.length) {
|
|
106
112
|
const state = readState(plan.workspace);
|
|
107
113
|
state.runtimeRepairs = repairs;
|
|
108
114
|
writeState(plan.workspace, state);
|
|
109
|
-
return { ...result, exitCode: 1, runtimeRepairs: repairs
|
|
115
|
+
return { ...result, exitCode: 1, runtimeRepairs: repairs,
|
|
116
|
+
failure: { id: repairs[0].id, status: "runtime-incomplete", detail: `files committed; ${repairs.length} runtime command(s) failed or timed out` },
|
|
117
|
+
summary: { ...result.summary, failed: repairs.length } };
|
|
110
118
|
}
|
|
111
119
|
const results = result.results.map((entry) => plan.actions.some((action) => action.id === entry.id && action.kind === "exec")
|
|
112
120
|
? { ...entry, status: "applied", detail: "command ran after file commit" }
|
|
@@ -114,7 +122,7 @@ export function applyPlan({ plan, manifest, allowExec = false, now = () => new D
|
|
|
114
122
|
return { ...result, results, exitCode: 0, runtimeRepairs: [] };
|
|
115
123
|
}
|
|
116
124
|
|
|
117
|
-
function applyImmediate({ plan, manifest,
|
|
125
|
+
function applyImmediate({ plan, manifest, now = () => new Date().toISOString() }) {
|
|
118
126
|
const { workspace, sourceRoot, agent, method, packageVersion } = plan;
|
|
119
127
|
const catalogue = new Map(itemsForAgent(manifest, agent).map((i) => [i.id, i]));
|
|
120
128
|
const previous = readState(workspace);
|
|
@@ -124,7 +132,10 @@ function applyImmediate({ plan, manifest, allowExec = false, now = () => new Dat
|
|
|
124
132
|
});
|
|
125
133
|
// The pass re-stamps identity: an install can change agent, method, or the
|
|
126
134
|
// package doing the writing, and a stale header would misdirect every later
|
|
127
|
-
// comparison.
|
|
135
|
+
// comparison. schemaVersion travels with it — this pass has just reconciled
|
|
136
|
+
// the workspace against the current binding, which is exactly what the
|
|
137
|
+
// version asserts.
|
|
138
|
+
state.schemaVersion = STATE_SCHEMA_VERSION;
|
|
128
139
|
state.agent = agent;
|
|
129
140
|
state.method = method;
|
|
130
141
|
state.sourceRoot = sourceRoot;
|
|
@@ -142,7 +153,7 @@ function applyImmediate({ plan, manifest, allowExec = false, now = () => new Dat
|
|
|
142
153
|
try {
|
|
143
154
|
const outcome = perform({
|
|
144
155
|
action, item: catalogue.get(action.id), state, workspace, sourceRoot,
|
|
145
|
-
method, agent,
|
|
156
|
+
method, agent, now,
|
|
146
157
|
});
|
|
147
158
|
results.push({ id: action.id, action: action.kind, ...outcome });
|
|
148
159
|
if (outcome.conflicts) conflictFiles.push(...outcome.conflicts);
|
|
@@ -202,7 +213,7 @@ function applyImmediate({ plan, manifest, allowExec = false, now = () => new Dat
|
|
|
202
213
|
|
|
203
214
|
// ── one action ──────────────────────────────────────────────────────────────
|
|
204
215
|
|
|
205
|
-
function perform({ action, item, state, workspace, sourceRoot, method, agent,
|
|
216
|
+
function perform({ action, item, state, workspace, sourceRoot, method, agent, now }) {
|
|
206
217
|
switch (action.kind) {
|
|
207
218
|
case "create":
|
|
208
219
|
case "refresh":
|
|
@@ -263,25 +274,10 @@ function perform({ action, item, state, workspace, sourceRoot, method, agent, al
|
|
|
263
274
|
case "remove":
|
|
264
275
|
return removeItem({ id: action.id, state, workspace, sourceRoot });
|
|
265
276
|
|
|
266
|
-
case "exec":
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
const cwd = insideWorkspace(workspace, spec.cwd ?? ".");
|
|
271
|
-
const run = spawnSync(spec.command, spec.args ?? [], { cwd, stdio: "pipe", encoding: "utf8" });
|
|
272
|
-
if (run.status !== 0) {
|
|
273
|
-
throw new Error(
|
|
274
|
-
`${spec.command} ${(spec.args ?? []).join(" ")} exited ${run.status ?? "on signal"}: ` +
|
|
275
|
-
`${(run.stderr ?? "").trim().split("\n").slice(-3).join(" ") || "no output"}`,
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
state.items[action.id] = {
|
|
279
|
-
kind: item.kind, strategy: "exec", method: "exec",
|
|
280
|
-
version: state.packageVersion, files: [],
|
|
281
|
-
lastRun: { at: now(), command: `${spec.command} ${(spec.args ?? []).join(" ")}`.trim() },
|
|
282
|
-
};
|
|
283
|
-
return { status: "applied", detail: "command ran" };
|
|
284
|
-
}
|
|
277
|
+
case "exec":
|
|
278
|
+
// Runtime execution happens only after the durable file commit through
|
|
279
|
+
// runTrustedExec(), which owns timeout/progress/failure reporting.
|
|
280
|
+
return { status: "skipped", detail: "exec deferred until after file commit" };
|
|
285
281
|
|
|
286
282
|
case "external": {
|
|
287
283
|
const spec = item?.package;
|
|
@@ -501,7 +497,7 @@ function writeManagedRegion({ binding, workspace, sourceRoot }) {
|
|
|
501
497
|
|
|
502
498
|
const targetAbs = insideWorkspace(workspace, binding.target);
|
|
503
499
|
const existing = existsSync(targetAbs) ? readFileSync(targetAbs, "utf8") : "";
|
|
504
|
-
writeFileSyncDeep(targetAbs, replaceRegion(existing, region.block));
|
|
500
|
+
writeFileSyncDeep(targetAbs, replaceRegion(existing, region.block), workspace);
|
|
505
501
|
|
|
506
502
|
return {
|
|
507
503
|
files: [{
|
|
@@ -537,7 +533,7 @@ function mergeJson({ binding, workspace, sourceRoot }) {
|
|
|
537
533
|
sha256: hashText(canonicalJson(value)),
|
|
538
534
|
});
|
|
539
535
|
}
|
|
540
|
-
writeFileSyncDeep(targetAbs, JSON.stringify(target, null, 2) + "\n");
|
|
536
|
+
writeFileSyncDeep(targetAbs, JSON.stringify(target, null, 2) + "\n", workspace);
|
|
541
537
|
|
|
542
538
|
return { files: [], jsonKeys };
|
|
543
539
|
}
|
|
@@ -555,7 +551,7 @@ function writeConflictCopies({ item, action, workspace, sourceRoot, agent }) {
|
|
|
555
551
|
const emit = (targetRel, contents) => {
|
|
556
552
|
if (!conflicted.has(targetRel)) return;
|
|
557
553
|
const dest = insideWorkspace(workspace, `${targetRel}.new`);
|
|
558
|
-
writeFileSyncDeep(dest, contents);
|
|
554
|
+
writeFileSyncDeep(dest, contents, workspace);
|
|
559
555
|
written.push(`${targetRel}.new`);
|
|
560
556
|
};
|
|
561
557
|
|
|
@@ -673,7 +669,7 @@ updated: ${state.updatedAt.slice(0, 10)}
|
|
|
673
669
|
- No secrets are stored in this file or in ${STATE_REL_PATH}.
|
|
674
670
|
`;
|
|
675
671
|
const path = join(workspace, LEGACY_RECORD_REL_PATH);
|
|
676
|
-
writeFileSyncDeep(path, text);
|
|
672
|
+
writeFileSyncDeep(path, text, workspace);
|
|
677
673
|
return path;
|
|
678
674
|
}
|
|
679
675
|
|
|
@@ -686,13 +682,12 @@ updated: ${state.updatedAt.slice(0, 10)}
|
|
|
686
682
|
*/
|
|
687
683
|
function insideWorkspace(workspace, rel) {
|
|
688
684
|
const abs = resolve(workspace, rel);
|
|
689
|
-
if (!isInside(workspace, abs)) {
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
return abs;
|
|
685
|
+
if (!isInside(workspace, abs)) throw new Error(`refusing to write outside the workspace: ${rel}`);
|
|
686
|
+
return assertSafeWorkspaceTarget(workspace, abs);
|
|
693
687
|
}
|
|
694
688
|
|
|
695
|
-
function writeFileSyncDeep(abs, contents) {
|
|
689
|
+
function writeFileSyncDeep(abs, contents, workspace = null) {
|
|
690
|
+
if (workspace) assertSafeWorkspaceTarget(workspace, abs, { allowLeafSymlink: false });
|
|
696
691
|
mkdirSync(dirname(abs), { recursive: true });
|
|
697
692
|
writeFileSync(abs, contents);
|
|
698
693
|
}
|
|
@@ -722,7 +717,7 @@ function clearTarget(abs) {
|
|
|
722
717
|
* only if it is empty", which is exactly the rule wanted here — ENOTEMPTY stops
|
|
723
718
|
* the walk and the user's files stay.
|
|
724
719
|
*/
|
|
725
|
-
function pruneEmptyDirs(workspace, relPaths) {
|
|
720
|
+
export function pruneEmptyDirs(workspace, relPaths) {
|
|
726
721
|
const dirs = [...new Set(relPaths.map((p) => dirname(p)))].sort((a, b) => b.length - a.length);
|
|
727
722
|
for (const rel of dirs) {
|
|
728
723
|
let dir = resolve(workspace, rel);
|
package/bin/lib/detect-agent.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
//
|
|
3
3
|
// pi is the only coding agent Agent Fleet installs for. Claude Code still
|
|
4
4
|
// appears in the fleet, but strictly as a coms peer driven by
|
|
5
|
-
// scripts/coms-claude-bridge.ts — never as an install target. See
|
|
5
|
+
// .pi/agent-fleet/scripts/coms-claude-bridge.ts — never as an install target. See
|
|
6
6
|
// docs/claude-code-coms-bridge.md.
|
|
7
7
|
//
|
|
8
8
|
// The list and the detection hook stay because the manifest, the state file,
|
package/bin/lib/doctor.js
CHANGED
|
@@ -34,7 +34,7 @@ import { homedir } from "node:os";
|
|
|
34
34
|
import { parse as parseYaml } from "yaml";
|
|
35
35
|
import { validateOverrides } from "./validate-overrides.js";
|
|
36
36
|
import { readState, STATE_REL_PATH } from "./state.js";
|
|
37
|
-
import { runtimeDependencyFindings } from "
|
|
37
|
+
import { runtimeDependencyFindings } from "../../.pi/agent-fleet/scripts/lib/runtime-dependencies.js";
|
|
38
38
|
|
|
39
39
|
export const AGENT_FLEET_PACKAGE_NAME = "@chankov/agent-fleet";
|
|
40
40
|
const AGENT_FLEET_PACKAGE_PATTERN = /(^|[/:])@chankov\/agent-fleet(@[^/]*)?$/;
|
|
@@ -210,7 +210,7 @@ function escapeRe(s) {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
// Scan peers.yaml for field lines that sit under a team heading before any
|
|
213
|
-
// `- name: ...` list item. scripts/team-up.ts parses this file with a minimal
|
|
213
|
+
// `- name: ...` list item. .pi/agent-fleet/scripts/team-up.ts parses this file with a minimal
|
|
214
214
|
// hand-rolled parser that only attaches `key: value` lines to the CURRENT list
|
|
215
215
|
// item — an orphan field block (typically a peer whose leading `- name:` line
|
|
216
216
|
// was lost in an edit) is dropped without an error and the peer silently
|
|
@@ -566,7 +566,7 @@ export function scanPiPackageOwnership({ workspace, sourceRoot, home = homedir()
|
|
|
566
566
|
}];
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
const AGENT_DIRS = ["agents", ".claude/agents", ".pi/agents"];
|
|
569
|
+
const AGENT_DIRS = ["agents", ".claude/agents", ".pi/agents/personas", ".pi/agents"];
|
|
570
570
|
const VOICES_REL = ".pi/agents/voices.yaml";
|
|
571
571
|
|
|
572
572
|
/**
|
package/bin/lib/features.js
CHANGED
|
@@ -16,8 +16,8 @@ export function retiredFeatureError(name) {
|
|
|
16
16
|
export function normalizeFeatureSet(manifest, features) {
|
|
17
17
|
const known = new Set(featureNames(manifest));
|
|
18
18
|
const values = typeof features === "string"
|
|
19
|
-
? (features === "none" ? [] : features.split(",").filter(Boolean))
|
|
20
|
-
: (features ?? []);
|
|
19
|
+
? (features.trim().toLowerCase() === "none" ? [] : features.split(",").map((name) => name.trim()).filter(Boolean))
|
|
20
|
+
: (features ?? []).map((name) => typeof name === "string" ? name.trim() : name).filter(Boolean);
|
|
21
21
|
for (const feature of values) {
|
|
22
22
|
if (!known.has(feature)) throw new Error(retiredFeatureError(feature) ?? `unknown feature "${feature}"`);
|
|
23
23
|
}
|
package/bin/lib/manifest.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { readdirSync, existsSync, readFileSync } from "node:fs";
|
|
18
18
|
import { join } from "node:path";
|
|
19
19
|
|
|
20
|
-
import { listPersonas, targetRelPath } from "./personas.js";
|
|
20
|
+
import { listPersonas, targetRelPath, legacyTargetRelPaths } from "./personas.js";
|
|
21
21
|
|
|
22
22
|
export const MANIFEST_SCHEMA_VERSION = 2;
|
|
23
23
|
export const SNAPSHOT_SCHEMA_VERSIONS = new Set([1, 2]);
|
|
@@ -201,6 +201,11 @@ function derivePersonas(sourceRoot, meta) {
|
|
|
201
201
|
source: [`agents/${name}.md`],
|
|
202
202
|
target: targetRelPath(name).split("\\").join("/"),
|
|
203
203
|
strategy: "copy-file",
|
|
204
|
+
// Personas used to install to `agents/<name>.md`. The binding diff
|
|
205
|
+
// retires that file on its own, but declaring it keeps `verify` honest
|
|
206
|
+
// about a copy the user edited: `scanAgentDirs` reads `agents/` first
|
|
207
|
+
// and would keep serving the stale definition.
|
|
208
|
+
legacyTargets: legacyTargetRelPaths(name).map((rel) => rel.split("\\").join("/")),
|
|
204
209
|
};
|
|
205
210
|
}
|
|
206
211
|
return makeItem(meta, {
|
|
@@ -290,16 +295,17 @@ function deriveReferences(sourceRoot, meta) {
|
|
|
290
295
|
|
|
291
296
|
function deriveHooks(sourceRoot, meta) {
|
|
292
297
|
const excluded = new Set(meta.exclude?.hooks ?? []);
|
|
293
|
-
return filesIn(join(sourceRoot, "hooks"))
|
|
298
|
+
return filesIn(join(sourceRoot, ".pi", "agent-fleet", "hooks"))
|
|
294
299
|
.filter((f) => (f.endsWith(".sh") || f.endsWith(".mjs")) && !excluded.has(f))
|
|
295
300
|
.sort()
|
|
296
301
|
.map((file) => {
|
|
297
302
|
const name = file.replace(/\.(sh|mjs)$/, "");
|
|
298
|
-
// The one hook left is the Claude Code Stop hook the coms bridge reads
|
|
299
|
-
//
|
|
300
|
-
//
|
|
301
|
-
//
|
|
302
|
-
//
|
|
303
|
+
// The one hook left is the Claude Code Stop hook the coms bridge reads.
|
|
304
|
+
// Claude Code finds a hook only through `.claude/settings.json`, where
|
|
305
|
+
// the command is a free-form shell string — so the file itself does not
|
|
306
|
+
// have to sit under `.claude/`, and it lives with the rest of the fleet
|
|
307
|
+
// runtime instead. Registering it stays manual;
|
|
308
|
+
// docs/claude-code-coms-bridge.md carries the snippet with this path.
|
|
303
309
|
return makeItem(meta, {
|
|
304
310
|
id: `hook:${name}`,
|
|
305
311
|
kind: "hook",
|
|
@@ -308,9 +314,10 @@ function deriveHooks(sourceRoot, meta) {
|
|
|
308
314
|
summary: "",
|
|
309
315
|
agents: {
|
|
310
316
|
pi: {
|
|
311
|
-
source: [
|
|
312
|
-
target: `.
|
|
317
|
+
source: [`.pi/agent-fleet/hooks/${file}`],
|
|
318
|
+
target: `.pi/agent-fleet/hooks/${file}`,
|
|
313
319
|
strategy: "copy-file",
|
|
320
|
+
legacyTargets: [`.claude/hooks/${file}`],
|
|
314
321
|
},
|
|
315
322
|
},
|
|
316
323
|
});
|
|
@@ -356,11 +363,11 @@ function deriveOperatorItems(sourceRoot, meta) {
|
|
|
356
363
|
const out = [];
|
|
357
364
|
|
|
358
365
|
const pluginIds = new Set([
|
|
359
|
-
...dirsIn(join(sourceRoot, "hermes", "plugins")),
|
|
360
|
-
...dirsIn(join(sourceRoot, "hermes", "desktop-plugins")),
|
|
366
|
+
...dirsIn(join(sourceRoot, ".pi", "agent-fleet", "hermes", "plugins")),
|
|
367
|
+
...dirsIn(join(sourceRoot, ".pi", "agent-fleet", "hermes", "desktop-plugins")),
|
|
361
368
|
]);
|
|
362
369
|
for (const id of [...pluginIds].sort()) {
|
|
363
|
-
const source = ["hermes/plugins", "hermes/desktop-plugins"]
|
|
370
|
+
const source = [".pi/agent-fleet/hermes/plugins", ".pi/agent-fleet/hermes/desktop-plugins"]
|
|
364
371
|
.map((root) => `${root}/${id}`)
|
|
365
372
|
.filter((rel) => existsSync(join(sourceRoot, rel)));
|
|
366
373
|
out.push(makeItem(meta, {
|
|
@@ -374,17 +381,17 @@ function deriveOperatorItems(sourceRoot, meta) {
|
|
|
374
381
|
}));
|
|
375
382
|
}
|
|
376
383
|
|
|
377
|
-
for (const name of dirsIn(join(sourceRoot, "hermes", "skills")).sort()) {
|
|
384
|
+
for (const name of dirsIn(join(sourceRoot, ".pi", "agent-fleet", "hermes", "skills")).sort()) {
|
|
378
385
|
out.push(makeItem(meta, {
|
|
379
386
|
id: `hermes-skill:${name}`,
|
|
380
387
|
kind: "hermes-skill",
|
|
381
388
|
group: "hermes",
|
|
382
389
|
title: name,
|
|
383
|
-
summary: frontmatterDescription(join(sourceRoot, "hermes", "skills", name, "SKILL.md")),
|
|
390
|
+
summary: frontmatterDescription(join(sourceRoot, ".pi", "agent-fleet", "hermes", "skills", name, "SKILL.md")),
|
|
384
391
|
consent: "operator",
|
|
385
392
|
agents: {
|
|
386
393
|
pi: {
|
|
387
|
-
source: [
|
|
394
|
+
source: [`.pi/agent-fleet/hermes/skills/${name}`],
|
|
388
395
|
target: null,
|
|
389
396
|
targetScope: "hermes-profile",
|
|
390
397
|
strategy: "operator",
|
|
@@ -455,7 +462,7 @@ function deriveCompanions(sourceRoot, meta) {
|
|
|
455
462
|
source: [...dirs, ...files],
|
|
456
463
|
sourceMode: "all",
|
|
457
464
|
// Every entry keeps its repo-relative path in the workspace, so
|
|
458
|
-
//
|
|
465
|
+
// `.pi/agent-fleet/scripts/lib/team-project.ts` lands where the recipes expect it.
|
|
459
466
|
target: null,
|
|
460
467
|
preserveLayout: true,
|
|
461
468
|
strategy: "copy-tree",
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// path-boundaries.js — the guard that makes a directory move finishable.
|
|
2
|
+
//
|
|
3
|
+
// Moving `scripts/`, `hermes/` and `hooks/` under `.pi/agent-fleet/` broke two
|
|
4
|
+
// classes of reference that nothing else in the repository was watching:
|
|
5
|
+
//
|
|
6
|
+
// 1. Relative import specifiers crossing the boundary. `.pi/harnesses/**`
|
|
7
|
+
// does not move and imports into the fleet runtime that does. Those
|
|
8
|
+
// imports are lazy — `just fleet` starts fine and the failure surfaces
|
|
9
|
+
// only when an operator runs `/debate` or spawns a peer. `tsc` cannot
|
|
10
|
+
// stand in for this: the harness packages are not installed at the
|
|
11
|
+
// repository root, so its resolution errors are all about npm packages.
|
|
12
|
+
//
|
|
13
|
+
// 2. Workspace paths written as text — in the justfile, in the catalogue, in
|
|
14
|
+
// agent-readable markdown. A stale path in a reference file never throws;
|
|
15
|
+
// it just teaches the next agent to write to `agents/` again, and the
|
|
16
|
+
// footprint grows back a session at a time.
|
|
17
|
+
//
|
|
18
|
+
// Both are pure functions over a file list so the test can state the rule and
|
|
19
|
+
// the CLI can reuse it.
|
|
20
|
+
|
|
21
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
22
|
+
import { dirname, join, normalize, relative, resolve } from "node:path";
|
|
23
|
+
|
|
24
|
+
/** Directories that no longer exist at a workspace root. */
|
|
25
|
+
export const RETIRED_ROOTS = Object.freeze(["scripts", "hermes", "hooks"]);
|
|
26
|
+
|
|
27
|
+
/** Where each retired root lives now — used only for the failure message. */
|
|
28
|
+
export const MOVED_TO = Object.freeze({
|
|
29
|
+
scripts: ".pi/agent-fleet/scripts",
|
|
30
|
+
hermes: ".pi/agent-fleet/hermes",
|
|
31
|
+
hooks: ".pi/agent-fleet/hooks",
|
|
32
|
+
agents: ".pi/agents/personas",
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const SPECIFIER = /(?:\bfrom|\bimport|\brequire)\s*\(?\s*["'](\.\.?\/[^"']+)["']|new URL\(\s*["'](\.\.?[^"']*)["']/g;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Relative specifiers in `source` that do not resolve to a file on disk.
|
|
39
|
+
*
|
|
40
|
+
* `.js` is accepted for a `.ts` file: that is the NodeNext spelling the
|
|
41
|
+
* harnesses already use, and Node strips types at runtime.
|
|
42
|
+
*/
|
|
43
|
+
export function unresolvedSpecifiers({ root, file, source }) {
|
|
44
|
+
const dir = dirname(join(root, file));
|
|
45
|
+
const out = [];
|
|
46
|
+
for (const match of source.matchAll(SPECIFIER)) {
|
|
47
|
+
const spec = match[1] ?? match[2];
|
|
48
|
+
const target = resolve(dir, spec);
|
|
49
|
+
if (existsSync(target)) continue;
|
|
50
|
+
if (target.endsWith(".js") && existsSync(`${target.slice(0, -3)}.ts`)) continue;
|
|
51
|
+
out.push({ file, specifier: spec, resolved: relative(root, target) });
|
|
52
|
+
}
|
|
53
|
+
return out;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Workspace-relative mentions of a retired root.
|
|
58
|
+
*
|
|
59
|
+
* Matched only at a path boundary, so a skill's own `scripts/` directory
|
|
60
|
+
* (`skills/drafting-workflows/scripts/`), `.claude/hooks/` and the npm scope
|
|
61
|
+
* `@hermes/plugin-sdk` are not hits.
|
|
62
|
+
*/
|
|
63
|
+
export function retiredRootMentions({ file, source, roots = RETIRED_ROOTS }) {
|
|
64
|
+
const pattern = new RegExp(String.raw`(^|[^A-Za-z0-9_./\-@])(${roots.join("|")})/`, "gm");
|
|
65
|
+
const out = [];
|
|
66
|
+
source.split("\n").forEach((line, index) => {
|
|
67
|
+
pattern.lastIndex = 0;
|
|
68
|
+
for (const match of line.matchAll(pattern)) {
|
|
69
|
+
out.push({ file, line: index + 1, root: match[2], text: line.trim().slice(0, 120) });
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
return out;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** Every `.md` file an item installs into a workspace, as repo-relative paths. */
|
|
76
|
+
export function installedMarkdown({ root, manifest, walk }) {
|
|
77
|
+
const files = new Set();
|
|
78
|
+
for (const item of manifest.items ?? []) {
|
|
79
|
+
for (const binding of Object.values(item.agents ?? {})) {
|
|
80
|
+
if (!binding.target) continue; // operator/external items install nothing
|
|
81
|
+
for (const rel of binding.source ?? []) {
|
|
82
|
+
const abs = join(root, rel);
|
|
83
|
+
if (!existsSync(abs)) continue;
|
|
84
|
+
if (rel.endsWith(".md")) { files.add(normalize(rel)); continue; }
|
|
85
|
+
for (const leaf of walk(abs)) {
|
|
86
|
+
if (leaf.endsWith(".md")) files.add(normalize(`${rel}/${leaf}`));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return [...files].sort();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function readSource(root, file) {
|
|
95
|
+
return readFileSync(join(root, file), "utf8");
|
|
96
|
+
}
|
package/bin/lib/personas.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// personas.js — the canonical persona catalogue.
|
|
2
2
|
//
|
|
3
3
|
// `agents/*.md` is written in pi's own frontmatter dialect, so installing a
|
|
4
|
-
// persona is a plain file copy: source and target carry identical bytes.
|
|
4
|
+
// persona is a plain file copy: source and target carry identical bytes. The
|
|
5
|
+
// package keeps its own personas in `agents/`; a workspace receives them under
|
|
6
|
+
// `.pi/agents/personas/` so the repository root stays clean (the YAML fleet
|
|
7
|
+
// configuration owns `.pi/agents/` itself, hence the subdirectory).
|
|
5
8
|
// There is no per-agent frontmatter translation any more — the `transform-persona`
|
|
6
9
|
// CLI subcommand and its mapping table went away with Claude Code as an
|
|
7
10
|
// install target (docs/claude-code-coms-bridge.md explains what remains).
|
|
@@ -13,7 +16,17 @@ import { join } from "node:path";
|
|
|
13
16
|
|
|
14
17
|
/** Install path for a persona, relative to the workspace root. */
|
|
15
18
|
export function targetRelPath(name) {
|
|
16
|
-
return join("agents", `${name}.md`);
|
|
19
|
+
return join(".pi", "agents", "personas", `${name}.md`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Where the installer used to write this persona. Declared on every persona
|
|
24
|
+
* binding so `verify` reports a surviving `agents/<name>.md` instead of letting
|
|
25
|
+
* `scanAgentDirs` silently prefer it over the installed copy — it scans
|
|
26
|
+
* `agents/` first and keeps the first definition per name.
|
|
27
|
+
*/
|
|
28
|
+
export function legacyTargetRelPaths(name) {
|
|
29
|
+
return [join("agents", `${name}.md`)];
|
|
17
30
|
}
|
|
18
31
|
|
|
19
32
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Explicit public serialization boundary: write buffers never cross stdout/stderr.
|
|
2
|
+
const SECRET_BEARING_KEYS = new Set(["text", "original", "replacement", "before", "after", "backup"]);
|
|
3
|
+
export const PUBLIC_PLAN_SCHEMA_VERSION = 1;
|
|
4
|
+
function safe(value, key = "") {
|
|
5
|
+
if (SECRET_BEARING_KEYS.has(key)) return undefined;
|
|
6
|
+
if (Array.isArray(value)) return value.map((item) => safe(item)).filter((item) => item !== undefined);
|
|
7
|
+
if (!value || typeof value !== "object") return value;
|
|
8
|
+
if (Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null) return undefined;
|
|
9
|
+
return Object.fromEntries(Object.entries(value).flatMap(([name, item]) => {
|
|
10
|
+
const cleaned = safe(item, name); return cleaned === undefined ? [] : [[name, cleaned]];
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
export function publicPlan(plan, stage = "preview") { return { ...safe(plan), publicSchemaVersion: PUBLIC_PLAN_SCHEMA_VERSION, stage }; }
|
|
14
|
+
export function publicResult(result, stage = "apply") { return { ...safe(result), publicSchemaVersion: PUBLIC_PLAN_SCHEMA_VERSION, stage }; }
|
|
15
|
+
export function publicRepairPreview(proposal) {
|
|
16
|
+
return { publicSchemaVersion: PUBLIC_PLAN_SCHEMA_VERSION, stage: "config-repair-preview", configRepair: { path: proposal.path, removed: proposal.removed, requiresApproval: true, nextStep: "Run setup interactively, or setup --yes --repair-config. No mutation was applied." } };
|
|
17
|
+
}
|
package/bin/lib/purge.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
// purge.js — explicit human-config boundary for state-owned uninstall.
|
|
2
2
|
import { existsSync, rmSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
+
import { assertSafeWorkspaceTarget } from "./workspace-safety.js";
|
|
4
5
|
|
|
5
6
|
const HUMAN_CONFIG = [".ai/agent-fleet.json", ".ai/agent-fleet-overrides.md", ".ai/stt.json"];
|
|
6
|
-
export function purgeHumanConfig(workspace, { purgeConfig = false } = {}) {
|
|
7
|
-
|
|
7
|
+
export function purgeHumanConfig(workspace, { purgeConfig = false, dryRun = false } = {}) {
|
|
8
|
+
const present = HUMAN_CONFIG.filter((path) => {
|
|
9
|
+
const target = assertSafeWorkspaceTarget(workspace, path, { allowLeafSymlink: false });
|
|
10
|
+
return existsSync(target);
|
|
11
|
+
});
|
|
12
|
+
if (!purgeConfig) return { removed: [], preserved: present };
|
|
13
|
+
if (dryRun) return { removed: [], wouldRemove: present, preserved: present };
|
|
8
14
|
const removed = [];
|
|
9
|
-
for (const path of
|
|
15
|
+
for (const path of present) { rmSync(join(workspace, path), { force: true }); removed.push(path); }
|
|
10
16
|
return { removed, preserved: [] };
|
|
11
17
|
}
|
package/bin/lib/reconcile.js
CHANGED
|
@@ -8,14 +8,14 @@ import { buildPlan } from "./plan.js";
|
|
|
8
8
|
import { readState } from "./state.js";
|
|
9
9
|
import { scanProject } from "./scan.js";
|
|
10
10
|
import { planOverrides } from "./overrides.js";
|
|
11
|
-
import {
|
|
11
|
+
import { planStt } from "./stt-wizard.js";
|
|
12
12
|
|
|
13
13
|
/** Build one setup plan. This function writes nothing. */
|
|
14
14
|
export function buildReconcilePlan(opts) {
|
|
15
15
|
const { workspace, manifest, sourceRoot, packageVersion, agent = "pi", method,
|
|
16
16
|
preset, features, saveDesired = false, tuiDesired = null, dryRun = false,
|
|
17
17
|
migrate = false, yes = false, accept = null, allowExec = false,
|
|
18
|
-
platform = process.platform } = opts;
|
|
18
|
+
sttProvider = null, sttReplacementApproved = false, platform = process.platform } = opts;
|
|
19
19
|
const state = readState(workspace);
|
|
20
20
|
const desiredPath = join(workspace, DESIRED_FILE);
|
|
21
21
|
const firstMigration = Boolean(state && !existsSync(desiredPath));
|
|
@@ -37,13 +37,7 @@ export function buildReconcilePlan(opts) {
|
|
|
37
37
|
method, items: featureResult.roots, accept, allowExec, platform });
|
|
38
38
|
const wanted = new Set(featureResult.selected);
|
|
39
39
|
const overrides = planOverrides(workspace, scanProject(workspace));
|
|
40
|
-
const
|
|
41
|
-
? { provider: "openai", apiKeyEnv: "OPENAI_API_KEY" }
|
|
42
|
-
: null;
|
|
43
|
-
const stt = sttConfig ? {
|
|
44
|
-
path: join(workspace, ".ai", "stt.json"), text: renderSttConfig(sttConfig),
|
|
45
|
-
env: appendEnvPlaceholders(workspace, sttConfig),
|
|
46
|
-
} : null;
|
|
40
|
+
const stt = featureResult.features.includes("voice") ? planStt(workspace, sttProvider, { replacementApproved: sttReplacementApproved }) : null;
|
|
47
41
|
const recorded = Object.keys(state?.items ?? {});
|
|
48
42
|
const removals = recorded.filter((id) => !wanted.has(id)).sort().map((id) => ({
|
|
49
43
|
kind: "remove", id, itemKind: state.items[id].kind ?? "unknown", consent: "file", state: "owned",
|
|
@@ -60,7 +54,7 @@ export function buildReconcilePlan(opts) {
|
|
|
60
54
|
migrationError: migrationBlocked
|
|
61
55
|
? "first migration requires --migrate --preset <default|full> --features <exact-set> --yes"
|
|
62
56
|
: null,
|
|
63
|
-
selection: { ...base.selection, desired: featureResult, resolved: featureResult.selected },
|
|
57
|
+
selection: { ...base.selection, desired: { ...featureResult, requestedFeatures: Object.entries(desiredResult.desired.features).filter(([, enabled]) => enabled).map(([name]) => name).sort() }, resolved: featureResult.selected },
|
|
64
58
|
actions, conflicts,
|
|
65
59
|
overrides,
|
|
66
60
|
stt,
|