@chankov/agent-fleet 2.0.16 → 2.0.18
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/scripts/coms-claude-bridge.ts +75 -49
- package/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +18 -20
- package/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +3 -1
- package/.pi/agents/model-profiles.yaml +5 -5
- package/.pi/agents/peers.yaml +3 -3
- package/.pi/agents/voices.yaml +1 -1
- package/.pi/harnesses/agent-hub/README.md +39 -8
- package/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.pi/harnesses/agent-hub/agentic-hub.ts +54 -0
- package/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.pi/harnesses/agent-hub/config/overrides.ts +13 -3
- package/.pi/harnesses/agent-hub/delegate.ts +16 -5
- package/.pi/harnesses/agent-hub/deterministic-fs.ts +7 -4
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +13 -2
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +2 -0
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +7 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +1 -1
- package/.pi/harnesses/agent-hub/file-discovery/adapters.ts +82 -0
- package/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +56 -0
- package/.pi/harnesses/agent-hub/file-discovery/broker.ts +125 -0
- package/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +33 -0
- package/.pi/harnesses/agent-hub/file-discovery/descendant.ts +63 -0
- package/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +48 -0
- package/.pi/harnesses/agent-hub/file-discovery/hub.ts +152 -0
- package/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.pi/harnesses/agent-hub/file-discovery/owners.ts +96 -0
- package/.pi/harnesses/agent-hub/file-discovery/results.ts +54 -0
- package/.pi/harnesses/agent-hub/file-discovery/runtime.ts +120 -0
- package/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.pi/harnesses/agent-hub/filesystem-tool.ts +74 -26
- package/.pi/harnesses/agent-hub/index.ts +30 -6
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +3 -2
- package/.pi/harnesses/agent-hub/no-progress.ts +45 -15
- 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/policy/work-mode.ts +3 -1
- package/.pi/harnesses/agent-hub/proactive-config.ts +8 -3
- package/.pi/harnesses/agent-hub/proactive-external-git.ts +59 -0
- package/.pi/harnesses/agent-hub/proactive-external.ts +77 -0
- package/.pi/harnesses/agent-hub/proactive-local.ts +25 -7
- package/.pi/harnesses/agent-hub/proactive-observer.ts +2 -1
- package/.pi/harnesses/agent-hub/proactive-rules.ts +39 -11
- package/.pi/harnesses/agent-hub/proactive-runtime.ts +8 -6
- package/.pi/harnesses/agent-hub/proactive-snapshot.ts +41 -26
- package/.pi/harnesses/agent-hub/proactive-types.ts +5 -1
- package/.pi/harnesses/agent-hub/prompts/context.ts +2 -0
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +23 -44
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +4 -1
- package/.pi/harnesses/agent-hub/research/runtime.ts +7 -3
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +17 -6
- package/.pi/harnesses/agent-hub/spawn.ts +38 -9
- package/.pi/harnesses/agent-hub/system1-communication-store.ts +68 -7
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +6 -1
- package/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +4 -4
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +4 -2
- package/.pi/harnesses/agent-hub/tools/set-task-tier.ts +3 -3
- package/.pi/harnesses/agent-hub/tools/spawn-research.ts +3 -1
- package/.pi/harnesses/agent-hub/ui/system1-communication.ts +1 -1
- package/.pi/harnesses/agent-hub/work-mode.ts +9 -1
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/index.ts +6 -23
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +3 -2
- package/.pi/harnesses/lib/damage-control-shared.ts +29 -0
- package/.pi/harnesses/lib/deterministic-handle-path.ts +2 -0
- package/.pi/harnesses/lib/policy-roots.ts +142 -0
- package/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.pi/harnesses/lib/system1/config-file-discovery.js +21 -0
- package/.pi/harnesses/lib/system1/config-proactive.js +13 -2
- package/.pi/harnesses/lib/system1/config-v2.js +10 -4
- package/.versions/2.0.17/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.17/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.17/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/fleet.ts +217 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.17/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.17/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.17/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.17/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.17/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.17/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.17/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.17/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.17/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.17/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.17/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.17/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.17/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.17/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.17/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.17/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.17/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.17/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.17/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.17/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.17/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.17/.pi/extensions/package.json +9 -0
- package/.versions/2.0.17/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.17/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.17/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.17/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.17/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.17/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.17/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/README.md +1456 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/agentic-hub.ts +54 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/agentic-sources.ts +50 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/config/overrides.ts +155 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/context/budgets.ts +206 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/delegate.ts +467 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/deterministic-fs.ts +166 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +259 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-native-types.ts +260 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-native.ts +234 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/filesystem-tool.ts +137 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/fixtures/registration-surface.json +65 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/index.ts +2607 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +133 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/no-progress.ts +563 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/orchestration-activation.ts +112 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/orchestration-route.ts +76 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/policy/work-mode.ts +136 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-config.ts +16 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-local.ts +71 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-snapshot.ts +228 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/process-obligations.ts +158 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/prompts/context.ts +56 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/prompts/fragments.ts +123 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/prompts/system-prompt.ts +124 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/recovery-contract.ts +150 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/research/runtime.ts +197 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/research/spawn-run.ts +183 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/return-contract.js +349 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/review-findings.js +104 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/run-budget.js +554 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/scope-gate.js +144 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/session-audit.ts +313 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/spawn.ts +534 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/system1-communication-store.ts +151 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/system1-runtime.ts +258 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-authorization.ts +122 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-config.ts +29 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-obligations.ts +104 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-runtime.ts +125 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/action-executors.ts +208 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/context.ts +144 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +558 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/herdr-executors.ts +95 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/work-mode.ts +184 -0
- package/.versions/2.0.17/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.17/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.17/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.17/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.17/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.17/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
- package/.versions/2.0.17/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.17/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.17/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.17/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.17/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.17/.pi/harnesses/damage-control-continue/index.ts +533 -0
- package/.versions/2.0.17/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.17/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.17/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.17/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.17/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.17/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.17/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
- package/.versions/2.0.17/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.0.17/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.17/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.17/.pi/harnesses/lib/damage-control-shared.ts +226 -0
- package/.versions/2.0.17/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.17/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.17/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.17/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.17/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.17/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.17/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.17/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.17/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.17/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.17/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.0.17/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/config-agentic.js +14 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/config-loader.js +44 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/config-proactive.js +57 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/config-v2.js +103 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.0.17/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.17/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.17/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.17/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.17/.pi/prompts/af-build.md +27 -0
- package/.versions/2.0.17/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.17/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.17/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.17/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.17/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.17/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.17/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.17/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.17/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.17/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.17/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.17/.version +1 -0
- package/.versions/2.0.17/agents/architect.md +24 -0
- package/.versions/2.0.17/agents/bowser.md +28 -0
- package/.versions/2.0.17/agents/builder.md +55 -0
- package/.versions/2.0.17/agents/code-reviewer.md +209 -0
- package/.versions/2.0.17/agents/deep-researcher.md +32 -0
- package/.versions/2.0.17/agents/documenter.md +22 -0
- package/.versions/2.0.17/agents/orchestrator.md +22 -0
- package/.versions/2.0.17/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.17/agents/planner.md +105 -0
- package/.versions/2.0.17/agents/releaser.md +24 -0
- package/.versions/2.0.17/agents/researcher.md +30 -0
- package/.versions/2.0.17/agents/security-auditor.md +167 -0
- package/.versions/2.0.17/agents/test-engineer.md +153 -0
- package/.versions/2.0.17/agents/web-debugger.md +44 -0
- package/.versions/2.0.17/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.17/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.17/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.17/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.17/docs/ARCHITECTURE.md +834 -0
- package/.versions/2.0.17/docs/agent-fleet-setup.md +1101 -0
- package/.versions/2.0.17/docs/claude-code-coms-bridge.md +134 -0
- package/.versions/2.0.17/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.17/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.17/docs/getting-started.md +126 -0
- package/.versions/2.0.17/docs/npm-install.md +530 -0
- package/.versions/2.0.17/docs/pi-extensions.md +454 -0
- package/.versions/2.0.17/docs/pi-setup.md +92 -0
- package/.versions/2.0.17/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.17/install-manifest.json +3193 -0
- package/.versions/2.0.17/justfile +247 -0
- package/.versions/2.0.17/manifest-meta.json +1071 -0
- package/.versions/2.0.17/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.17/references/communication-contract.md +26 -0
- package/.versions/2.0.17/references/definition-of-done.md +67 -0
- package/.versions/2.0.17/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.17/references/observability-checklist.md +92 -0
- package/.versions/2.0.17/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.17/references/performance-checklist.md +236 -0
- package/.versions/2.0.17/references/prompting-patterns.md +380 -0
- package/.versions/2.0.17/references/security-checklist.md +245 -0
- package/.versions/2.0.17/references/testing-patterns.md +235 -0
- package/.versions/2.0.17/references/workflow-authoring.md +304 -0
- package/.versions/2.0.17/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.17/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.17/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.17/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.17/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.17/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.17/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.17/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.17/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.17/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.17/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.17/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.17/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.17/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.17/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.17/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.17/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.17/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.17/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.17/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.0.17/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.17/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.17/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.17/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.17/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.0.17/skills/repository-ai-setup/SKILL.md +117 -0
- package/.versions/2.0.17/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.17/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.17/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.17/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.17/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.17/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.17/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.17/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.17/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.18/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.18/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/coms-claude-bridge.ts +437 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/fleet.ts +217 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +36 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.18/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.18/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.18/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.18/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.18/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.18/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.18/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.18/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.18/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.18/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.18/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.18/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.18/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.18/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.18/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.18/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.18/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.18/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.18/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.18/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.18/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.18/.pi/extensions/package.json +9 -0
- package/.versions/2.0.18/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.18/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.18/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.18/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.18/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.18/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.18/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/README.md +1483 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/agentic-hub.ts +54 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/config/overrides.ts +165 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/context/budgets.ts +206 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/deterministic-fs.ts +169 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +270 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +233 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-native-types.ts +267 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-native.ts +234 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/adapters.ts +82 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +56 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/broker.ts +125 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +33 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/descendant.ts +63 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +48 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/hub.ts +152 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +99 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/owners.ts +96 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/results.ts +54 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/runtime.ts +120 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/filesystem-tool.ts +185 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/fixtures/registration-surface.json +65 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/index.ts +2625 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +133 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +144 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/no-progress.ts +593 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/orchestration-activation.ts +112 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/orchestration-route.ts +76 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/policy/work-mode.ts +137 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-config.ts +21 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-external-git.ts +59 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-external.ts +77 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-snapshot.ts +258 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/proactive-types.ts +67 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/process-obligations.ts +158 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/prompts/context.ts +56 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/prompts/fragments.ts +95 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/recovery-contract.ts +150 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/research/runtime.ts +201 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/research/spawn-run.ts +194 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/return-contract.js +349 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/review-findings.js +104 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/run-budget.js +554 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/scope-gate.js +144 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/session-audit.ts +313 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/spawn.ts +563 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/system1-communication-store.ts +190 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/system1-runtime.ts +258 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-authorization.ts +122 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-config.ts +29 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-obligations.ts +104 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-runtime.ts +125 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/action-executors.ts +213 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/context.ts +144 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +560 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/herdr-executors.ts +95 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/work-mode.ts +187 -0
- package/.versions/2.0.18/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.18/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.18/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.18/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.18/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.18/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
- package/.versions/2.0.18/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.18/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.18/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.18/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.18/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.18/.pi/harnesses/damage-control-continue/index.ts +533 -0
- package/.versions/2.0.18/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.18/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.18/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.18/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.18/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.18/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.18/.pi/harnesses/lib/context-budget-child-prompt.ts +220 -0
- package/.versions/2.0.18/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.0.18/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.18/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.18/.pi/harnesses/lib/damage-control-shared.ts +226 -0
- package/.versions/2.0.18/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.18/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.18/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.18/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.18/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.18/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.18/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.18/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.18/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.18/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.18/.pi/harnesses/lib/policy-roots.ts +142 -0
- package/.versions/2.0.18/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.0.18/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config-file-discovery.js +21 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config-loader.js +44 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config-v2.js +106 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.0.18/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.18/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.18/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.18/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.18/.pi/prompts/af-build.md +27 -0
- package/.versions/2.0.18/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.18/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.18/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.18/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.18/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.18/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.18/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.18/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.18/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.18/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.18/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.18/.version +1 -0
- package/.versions/2.0.18/agents/architect.md +24 -0
- package/.versions/2.0.18/agents/bowser.md +28 -0
- package/.versions/2.0.18/agents/builder.md +55 -0
- package/.versions/2.0.18/agents/code-reviewer.md +209 -0
- package/.versions/2.0.18/agents/deep-researcher.md +32 -0
- package/.versions/2.0.18/agents/documenter.md +22 -0
- package/.versions/2.0.18/agents/orchestrator.md +22 -0
- package/.versions/2.0.18/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.18/agents/planner.md +105 -0
- package/.versions/2.0.18/agents/releaser.md +24 -0
- package/.versions/2.0.18/agents/researcher.md +30 -0
- package/.versions/2.0.18/agents/security-auditor.md +167 -0
- package/.versions/2.0.18/agents/test-engineer.md +153 -0
- package/.versions/2.0.18/agents/web-debugger.md +44 -0
- package/.versions/2.0.18/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.18/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.18/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.18/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.18/docs/ARCHITECTURE.md +874 -0
- package/.versions/2.0.18/docs/agent-fleet-setup.md +1101 -0
- package/.versions/2.0.18/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.0.18/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.18/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.18/docs/getting-started.md +126 -0
- package/.versions/2.0.18/docs/npm-install.md +535 -0
- package/.versions/2.0.18/docs/pi-extensions.md +454 -0
- package/.versions/2.0.18/docs/pi-setup.md +92 -0
- package/.versions/2.0.18/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.18/install-manifest.json +3193 -0
- package/.versions/2.0.18/justfile +247 -0
- package/.versions/2.0.18/manifest-meta.json +1071 -0
- package/.versions/2.0.18/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.18/references/communication-contract.md +26 -0
- package/.versions/2.0.18/references/definition-of-done.md +67 -0
- package/.versions/2.0.18/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.18/references/observability-checklist.md +92 -0
- package/.versions/2.0.18/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.18/references/performance-checklist.md +236 -0
- package/.versions/2.0.18/references/prompting-patterns.md +380 -0
- package/.versions/2.0.18/references/security-checklist.md +245 -0
- package/.versions/2.0.18/references/testing-patterns.md +235 -0
- package/.versions/2.0.18/references/workflow-authoring.md +304 -0
- package/.versions/2.0.18/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.18/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.18/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.18/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.18/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.18/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.18/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.18/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.18/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.18/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.18/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.18/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.18/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.18/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.18/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.18/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.18/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.18/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.18/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.18/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.0.18/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.18/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.18/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.18/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.18/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.0.18/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.0.18/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.18/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.18/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.18/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.18/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.18/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.0.18/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.18/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.18/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.18/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +18 -0
- package/README.md +2 -2
- package/agents/architect.md +2 -2
- package/agents/bowser.md +1 -1
- package/agents/builder.md +5 -5
- package/agents/code-reviewer.md +2 -2
- package/agents/deep-researcher.md +2 -2
- package/agents/documenter.md +3 -3
- package/agents/orchestrator.md +2 -2
- package/agents/plan-reviewer.md +2 -2
- package/agents/planner.md +4 -4
- package/agents/releaser.md +2 -2
- package/agents/researcher.md +2 -2
- package/agents/security-auditor.md +2 -2
- package/agents/test-engineer.md +4 -4
- package/agents/web-debugger.md +2 -2
- package/agents/web-performance-auditor.md +2 -2
- package/bin/cli.js +2 -2
- package/bin/lib/external-content.js +33 -0
- package/bin/lib/project-provenance.js +19 -13
- package/bin/lib/transaction.js +32 -1
- package/docs/ARCHITECTURE.md +42 -2
- package/docs/agent-fleet-setup.md +4 -4
- package/docs/claude-code-coms-bridge.md +17 -4
- package/docs/external-project-ai-content.md +48 -0
- package/docs/npm-install.md +5 -0
- package/docs/system1-agentic.md +133 -0
- package/docs/system1-config.md +23 -1
- package/docs/system1-file-discovery.md +220 -0
- package/install-manifest.json +1 -1
- package/package.json +19 -7
- package/skills/repository-ai-setup/SKILL.md +18 -0
- package/skills/repository-ai-setup.zip +0 -0
package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
"""HTTP boundary for the Agent Fleet herdr panel.
|
|
2
|
+
|
|
3
|
+
Mounted by the gateway at `/api/plugins/agent-fleet-herdr/` (web_server.py:19794)
|
|
4
|
+
once BOTH hold: this tree is reachable as `<hermes home>/plugins/agent-fleet-herdr/`
|
|
5
|
+
with a `dashboard/manifest.json` naming this file, AND `agent-fleet-herdr` is
|
|
6
|
+
listed in `plugins.enabled` in config.yaml. Missing either produces the same
|
|
7
|
+
`404 {"detail": "Plugin not found"}` — the enable check is middleware that runs
|
|
8
|
+
BEFORE routing, so a 404 never distinguishes "not mounted" from "not enabled".
|
|
9
|
+
Routers are included at app construction, so any change to this file needs
|
|
10
|
+
`hermes gateway restart`; the Desktop half hot-reloads instead.
|
|
11
|
+
|
|
12
|
+
Thin on purpose: the sources fail independently and the composition is tested
|
|
13
|
+
without FastAPI in sessions.test.py.
|
|
14
|
+
|
|
15
|
+
Reads are GET and stateless, with one exception that is stateful and one that
|
|
16
|
+
is not a read at all:
|
|
17
|
+
|
|
18
|
+
- GET /events?after=<seq> drains the watcher's ring buffer (watch.py). Every
|
|
19
|
+
/sessions request also FEEDS that watcher, and the first one starts the
|
|
20
|
+
background poller so the fleet is still watched while the pane is closed.
|
|
21
|
+
- WS /events/stream?after=<seq> is the same buffer, pushed. It accelerates
|
|
22
|
+
the poll above and never replaces it — `ctx.socket` is a no-op on OAuth
|
|
23
|
+
remotes, so a pane that only listened would silently stop hearing. It also
|
|
24
|
+
has to gate ITSELF: every gateway middleware is registered for the `http`
|
|
25
|
+
scope only, so neither the auth check nor the plugins-enabled check that
|
|
26
|
+
protect the routes above runs on a WebSocket upgrade.
|
|
27
|
+
- GET /sessions/…/activity?after=<seq> reads that agent's pi transcript
|
|
28
|
+
(activity.py). Stateless, but the cursor is a byte offset into somebody
|
|
29
|
+
else's file rather than a number this process assigned.
|
|
30
|
+
- GET /sessions/…/tasks reads the agent-fleet-monitor's task tree for the
|
|
31
|
+
hub in that agent's herdr pane, and POST …/tasks/{id}/{gen}/cancel stops
|
|
32
|
+
one of them (tasks.py). Both go out over the monitor's own UDS; the cancel
|
|
33
|
+
re-derives ownership from a fresh snapshot before trusting the id it was
|
|
34
|
+
handed.
|
|
35
|
+
- POST /sessions/…/prompt hands a prompt to a live peer. It takes
|
|
36
|
+
`(project, name)` and resolves the socket path itself, so no endpoint ever
|
|
37
|
+
reaches the renderer (coms_send.py). The Desktop pane no longer calls it —
|
|
38
|
+
its ask box was withdrawn — and the route is kept because the dispatcher
|
|
39
|
+
behind it is also what produces the dispatch events.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
import sys
|
|
43
|
+
from pathlib import Path
|
|
44
|
+
|
|
45
|
+
# The gateway imports this file by path (`spec_from_file_location`), which does
|
|
46
|
+
# NOT put its directory on `sys.path` — sibling imports would fail without this.
|
|
47
|
+
_HERE = Path(__file__).resolve().parent
|
|
48
|
+
if str(_HERE) not in sys.path:
|
|
49
|
+
sys.path.insert(0, str(_HERE))
|
|
50
|
+
|
|
51
|
+
from fastapi import APIRouter, HTTPException, WebSocket, WebSocketDisconnect # noqa: E402
|
|
52
|
+
from pydantic import BaseModel, Field # noqa: E402
|
|
53
|
+
|
|
54
|
+
import activity # noqa: E402
|
|
55
|
+
import coms_registry # noqa: E402
|
|
56
|
+
import coms_send # noqa: E402
|
|
57
|
+
import herdr_source # noqa: E402
|
|
58
|
+
import tasks # noqa: E402
|
|
59
|
+
import watch # noqa: E402
|
|
60
|
+
|
|
61
|
+
router = APIRouter()
|
|
62
|
+
|
|
63
|
+
# One dispatcher per process: it owns the open reply sockets and the bounded
|
|
64
|
+
# transcript, so a per-request instance would drop every answer.
|
|
65
|
+
_dispatcher = coms_send.Dispatcher()
|
|
66
|
+
|
|
67
|
+
# Likewise one watcher: it IS the memory between two snapshots, and a
|
|
68
|
+
# per-request instance would see every fleet as brand new and report nothing.
|
|
69
|
+
# Its outbound sink is whatever the config file opts into — nothing, by default.
|
|
70
|
+
_watch_config = watch.load_config()
|
|
71
|
+
_watcher = watch.build_watcher(_watch_config)
|
|
72
|
+
_WATCH_INTERVAL_S = watch.interval_from(_watch_config)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class PromptBody(BaseModel):
|
|
76
|
+
prompt: str = Field(min_length=1, max_length=coms_send.MAX_PROMPT_CHARS)
|
|
77
|
+
|
|
78
|
+
# The Desktop pane polls at this cadence; served from here so the interval is
|
|
79
|
+
# one decision, not two.
|
|
80
|
+
POLL_MS = 3000
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _panes() -> tuple[dict | None, int | None]:
|
|
84
|
+
"""herdr's view and its pane count, or `(None, None)` when herdr is down."""
|
|
85
|
+
try:
|
|
86
|
+
return herdr_source.pane_snapshot()
|
|
87
|
+
except herdr_source.HerdrUnavailable:
|
|
88
|
+
return None, None
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@router.get("/capabilities")
|
|
92
|
+
def capabilities() -> dict:
|
|
93
|
+
"""The two sources reported separately, because they fail separately.
|
|
94
|
+
|
|
95
|
+
`coms_registry: false` means there are no Agent Fleet sessions to show at
|
|
96
|
+
all. `herdr: false` means there may well be sessions, we just don't know
|
|
97
|
+
what they are doing — the panel still lists them, as `unknown`.
|
|
98
|
+
|
|
99
|
+
`events_stream` is not a source: it is the version marker. Backend routes
|
|
100
|
+
mount at app construction, so the honest answer to "did Hermes restart since
|
|
101
|
+
the plugin changed" is whether this key is here at all.
|
|
102
|
+
"""
|
|
103
|
+
try:
|
|
104
|
+
registry_ok = coms_registry.default_projects_root().is_dir()
|
|
105
|
+
except OSError:
|
|
106
|
+
registry_ok = False
|
|
107
|
+
version = herdr_source.herdr_version()
|
|
108
|
+
return {
|
|
109
|
+
"coms_registry": registry_ok,
|
|
110
|
+
"herdr": version is not None,
|
|
111
|
+
"herdr_version": version,
|
|
112
|
+
"poll_ms": POLL_MS,
|
|
113
|
+
"events_stream": True,
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@router.get("/sessions")
|
|
118
|
+
def list_sessions() -> dict:
|
|
119
|
+
"""Live sessions grouped by project.
|
|
120
|
+
|
|
121
|
+
503 only when the coms registry itself is unreadable — that is the one
|
|
122
|
+
failure where we genuinely have nothing to say. A dead herdr is a 200 with
|
|
123
|
+
every row degraded to `unknown`; never a 500.
|
|
124
|
+
|
|
125
|
+
Also the watcher's front door: the payload it would diff is the payload the
|
|
126
|
+
pane is looking at, so feeding it here costs nothing and guarantees the two
|
|
127
|
+
can never disagree about what was on screen.
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
payload = watch.collect_snapshot(_dispatcher)
|
|
131
|
+
except coms_registry.RegistryUnavailable as error:
|
|
132
|
+
raise HTTPException(status_code=503, detail=f"coms registry unavailable: {error}") from error
|
|
133
|
+
except Exception as error: # never let an unexpected read fault become a 500
|
|
134
|
+
raise HTTPException(status_code=503, detail="coms registry unavailable") from error
|
|
135
|
+
|
|
136
|
+
_watcher.observe(payload)
|
|
137
|
+
# Lazy, idempotent, and only from here: a gateway whose fleet pane nobody
|
|
138
|
+
# opens should not be running `herdr agent list` in a loop.
|
|
139
|
+
watch.ensure_runner(_watcher, _WATCH_INTERVAL_S, _dispatcher)
|
|
140
|
+
return payload
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
@router.get("/events")
|
|
144
|
+
def list_events(after: int = 0) -> dict:
|
|
145
|
+
"""Fleet transitions numbered above `after`, oldest first.
|
|
146
|
+
|
|
147
|
+
Cursor-based rather than time-based so a pane that was hidden for a minute
|
|
148
|
+
catches up exactly once. The buffer is bounded and per gateway process, and
|
|
149
|
+
`seq` comes back even when `events` is empty — a client that fell further
|
|
150
|
+
behind than the buffer resumes from the present instead of replaying a
|
|
151
|
+
truncated past as if it were new.
|
|
152
|
+
"""
|
|
153
|
+
return _watcher.since(max(0, after))
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# This plugin's directory name, which is also its namespace in `plugins.enabled`
|
|
157
|
+
# — the socket gate below has to re-check that itself.
|
|
158
|
+
PLUGIN_ID = "agent-fleet-herdr"
|
|
159
|
+
|
|
160
|
+
# Close codes the pane never sees (a WebSocket close code does not reach
|
|
161
|
+
# `ctx.socket`'s caller), so they exist for `hermes logs gui` and for tests.
|
|
162
|
+
WS_UNAUTHORIZED = 4401
|
|
163
|
+
WS_FORBIDDEN = 4403
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def _host_module():
|
|
167
|
+
"""The gateway module that imported us, if this process is the gateway.
|
|
168
|
+
|
|
169
|
+
`sys.modules` rather than an import: `hermes_cli.web_server` is a very large
|
|
170
|
+
module with side effects, and the only case where the socket may serve is
|
|
171
|
+
the one where it is already loaded — it is the thing that mounted this
|
|
172
|
+
router.
|
|
173
|
+
"""
|
|
174
|
+
return sys.modules.get("hermes_cli.web_server")
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def _socket_gate(websocket: WebSocket) -> str | None:
|
|
178
|
+
"""Why this upgrade must be refused, or `None` to serve it.
|
|
179
|
+
|
|
180
|
+
Every gateway middleware — the auth gate AND the one that 404s a disabled
|
|
181
|
+
plugin — is registered for the `http` scope, so a WebSocket route reaches
|
|
182
|
+
this file with nothing checked. The two checks are therefore re-done here,
|
|
183
|
+
with the gateway's own functions rather than a second implementation of
|
|
184
|
+
them.
|
|
185
|
+
|
|
186
|
+
**Unresolvable means refused.** If the host does not expose the check under
|
|
187
|
+
the name we know, the socket does not open — and the pane keeps polling,
|
|
188
|
+
which is the whole reason the poll was kept. Degrading to "serve it anyway"
|
|
189
|
+
would turn a Hermes rename into an unauthenticated event feed.
|
|
190
|
+
"""
|
|
191
|
+
host = _host_module()
|
|
192
|
+
if host is None:
|
|
193
|
+
return "no gateway to authenticate against"
|
|
194
|
+
|
|
195
|
+
allowed = getattr(host, "_ws_request_is_allowed", None)
|
|
196
|
+
authorized = getattr(host, "_ws_auth_ok", None)
|
|
197
|
+
if not callable(allowed) or not callable(authorized):
|
|
198
|
+
return "this Hermes does not expose the WebSocket auth check"
|
|
199
|
+
|
|
200
|
+
try:
|
|
201
|
+
if not allowed(websocket):
|
|
202
|
+
return "origin or client is outside the dashboard boundary"
|
|
203
|
+
if not authorized(websocket):
|
|
204
|
+
return "no valid credential on the upgrade"
|
|
205
|
+
except Exception as error: # a refused upgrade is never a crashed gateway
|
|
206
|
+
return f"the WebSocket auth check failed: {error}"
|
|
207
|
+
|
|
208
|
+
return _enabled_gate()
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
def _enabled_gate() -> str | None:
|
|
212
|
+
"""The plugins-enabled check the HTTP middleware does and this scope skips.
|
|
213
|
+
|
|
214
|
+
Same policy, same source of truth (`plugins.enabled` in config.yaml), so a
|
|
215
|
+
plugin that is turned off stops pushing rather than keeping a live feed open
|
|
216
|
+
on the strength of having been enabled when the pane was opened.
|
|
217
|
+
|
|
218
|
+
A host without the plugin loader is not the gateway, so there is no enabled
|
|
219
|
+
set to consult and nothing to refuse on — the auth check above is what
|
|
220
|
+
protects that case.
|
|
221
|
+
"""
|
|
222
|
+
try:
|
|
223
|
+
from hermes_cli.plugins_cmd import _get_disabled_set, _get_enabled_set
|
|
224
|
+
except ImportError:
|
|
225
|
+
return None
|
|
226
|
+
try:
|
|
227
|
+
if PLUGIN_ID in _get_disabled_set() or PLUGIN_ID not in _get_enabled_set():
|
|
228
|
+
return "the plugin is not enabled"
|
|
229
|
+
except Exception as error:
|
|
230
|
+
return f"the plugins-enabled check failed: {error}"
|
|
231
|
+
|
|
232
|
+
return None
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
@router.websocket("/events/stream")
|
|
236
|
+
async def stream_events(websocket: WebSocket, after: int = 0) -> None:
|
|
237
|
+
"""The `/events` buffer, pushed as it fills.
|
|
238
|
+
|
|
239
|
+
An accelerator, not a transport change: same events, same sequence numbers,
|
|
240
|
+
same cursor, so a client can move between the two feeds mid-stream without
|
|
241
|
+
seeing an event twice or missing one. The pane keeps its poll running at a
|
|
242
|
+
slower cadence for exactly that reason — `ctx.socket` resolves to nothing on
|
|
243
|
+
an OAuth remote, and a socket can drop at any time.
|
|
244
|
+
|
|
245
|
+
The connection is never read from. There is nothing a client may say, and
|
|
246
|
+
the keepalive frame doubles as the disconnect check: a departed client is
|
|
247
|
+
noticed at the next send, which is at most `STREAM_KEEPALIVE_S` away.
|
|
248
|
+
"""
|
|
249
|
+
reason = _socket_gate(websocket)
|
|
250
|
+
if reason is not None:
|
|
251
|
+
print(f"agent-fleet-herdr: refused an event stream — {reason}", file=sys.stderr)
|
|
252
|
+
await websocket.close(code=WS_UNAUTHORIZED if "credential" in reason else WS_FORBIDDEN)
|
|
253
|
+
return
|
|
254
|
+
|
|
255
|
+
await websocket.accept()
|
|
256
|
+
# A socket-only client is still a reason to watch: without this, a pane that
|
|
257
|
+
# never polls (or polls slowly) would be subscribed to a watcher nobody is
|
|
258
|
+
# feeding.
|
|
259
|
+
watch.ensure_runner(_watcher, _WATCH_INTERVAL_S, _dispatcher)
|
|
260
|
+
stream = watch.EventStream(_watcher, after=after)
|
|
261
|
+
try:
|
|
262
|
+
await websocket.send_json(stream.backlog())
|
|
263
|
+
while True:
|
|
264
|
+
await websocket.send_json(await stream.next_frame())
|
|
265
|
+
except (WebSocketDisconnect, RuntimeError):
|
|
266
|
+
pass # the client left; a closed socket is the ordinary end of this loop
|
|
267
|
+
finally:
|
|
268
|
+
stream.close()
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
@router.get("/sessions/{project}/{name}/activity")
|
|
272
|
+
def session_activity(project: str, name: str, after: int = 0, limit: int = activity.DEFAULT_LIMIT) -> dict:
|
|
273
|
+
"""What that agent is actually doing, read from its own pi transcript.
|
|
274
|
+
|
|
275
|
+
Only `(project, name)` crosses the wire; the transcript is found here, from
|
|
276
|
+
the registry entry's `session_id` and `cwd` — neither of which the renderer
|
|
277
|
+
is ever told (sessions.py's allowlist stops both).
|
|
278
|
+
|
|
279
|
+
Everything except a malformed request is a 200. No transcript, no registry
|
|
280
|
+
entry, an unreadable file: all `available: false` with a reason, because a
|
|
281
|
+
session with nothing on disk to read is the ordinary case — a bridged Claude
|
|
282
|
+
Code peer, a cwd that moved — and a panel that turned that into an error
|
|
283
|
+
would be crying wolf every three seconds.
|
|
284
|
+
"""
|
|
285
|
+
try:
|
|
286
|
+
project = coms_send.validate_project(project)
|
|
287
|
+
name = coms_send.validate_name(name)
|
|
288
|
+
except coms_send.ComsSendError as error:
|
|
289
|
+
raise HTTPException(status_code=422, detail=str(error)) from error
|
|
290
|
+
|
|
291
|
+
try:
|
|
292
|
+
entry = activity.find_entry(coms_registry.live_sessions_by_project(), project, name)
|
|
293
|
+
except Exception:
|
|
294
|
+
return activity.unavailable("the coms registry could not be read")
|
|
295
|
+
if entry is None:
|
|
296
|
+
return activity.unavailable(f"no live session named {name!r} in {project!r}")
|
|
297
|
+
|
|
298
|
+
# A bridged Claude Code peer is found through its herdr pane, because the
|
|
299
|
+
# bridge mints its own coms session id and Claude Code's transcript carries
|
|
300
|
+
# no trace of it (activity.claude_transcript). Asked for ONLY in that case:
|
|
301
|
+
# a pi peer is matched from its own file, and paying a `herdr agent list`
|
|
302
|
+
# per activity poll for every session would double the panel's subprocess
|
|
303
|
+
# cost to answer a question pi already answers for free.
|
|
304
|
+
pane_id = None
|
|
305
|
+
if entry.get("model") == activity.CLAUDE_MODEL:
|
|
306
|
+
panes, _total = _panes()
|
|
307
|
+
pane = (panes or {}).get((project, name)) or (panes or {}).get((None, name)) or {}
|
|
308
|
+
pane_id = pane.get("pane_id")
|
|
309
|
+
|
|
310
|
+
try:
|
|
311
|
+
return activity.activity_for_entry(entry, after=after, limit=limit, pane_id=pane_id)
|
|
312
|
+
except Exception as error: # a transcript is somebody else's file; it can be anything
|
|
313
|
+
return activity.unavailable(f"the transcript could not be read: {error}")
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
def _pane_id_for(project: str, name: str) -> str | None:
|
|
317
|
+
"""The herdr pane hosting a peer, from a herdr answer taken now.
|
|
318
|
+
|
|
319
|
+
The monitor correlates its child tasks by `hubPaneId`, which IS this id, so
|
|
320
|
+
this lookup is the whole join. Taken fresh rather than from the panel's
|
|
321
|
+
snapshot for the same reason `/focus` does it: a stale pane id would
|
|
322
|
+
attribute one hub's subagents to another hub's row.
|
|
323
|
+
"""
|
|
324
|
+
panes, _total = _panes()
|
|
325
|
+
pane = (panes or {}).get((project, name)) or (panes or {}).get((None, name)) or {}
|
|
326
|
+
|
|
327
|
+
return pane.get("pane_id")
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
@router.get("/sessions/{project}/{name}/tasks")
|
|
331
|
+
def session_tasks(project: str, name: str) -> dict:
|
|
332
|
+
"""The subagents this hub is running, as a tree, with their live output.
|
|
333
|
+
|
|
334
|
+
The half the activity tail cannot reach: a transcript records what the hub
|
|
335
|
+
did, not what its children are doing, and offers no way to stop one.
|
|
336
|
+
|
|
337
|
+
Same contract as `…/activity`: everything but a malformed name is a 200.
|
|
338
|
+
No monitor, no pane, an unreachable socket and a hub that has spawned
|
|
339
|
+
nothing are four different sentences and zero errors — the monitor is
|
|
340
|
+
opt-in, so "there isn't one" is the ordinary answer, not a fault.
|
|
341
|
+
"""
|
|
342
|
+
try:
|
|
343
|
+
project = coms_send.validate_project(project)
|
|
344
|
+
name = coms_send.validate_name(name)
|
|
345
|
+
except coms_send.ComsSendError as error:
|
|
346
|
+
raise HTTPException(status_code=422, detail=str(error)) from error
|
|
347
|
+
|
|
348
|
+
try:
|
|
349
|
+
pane_id = _pane_id_for(project, name)
|
|
350
|
+
except Exception:
|
|
351
|
+
return tasks.unavailable("herdr is not answering, so the hub's pane is unknown")
|
|
352
|
+
|
|
353
|
+
try:
|
|
354
|
+
return tasks.tasks_for_pane(pane_id)
|
|
355
|
+
except Exception as error: # the monitor is another process; it can do anything
|
|
356
|
+
return tasks.unavailable(f"the monitor could not be read: {error}")
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
@router.post("/sessions/{project}/{name}/tasks/{task_id}/{generation}/cancel")
|
|
360
|
+
def cancel_session_task(project: str, name: str, task_id: str, generation: int) -> dict:
|
|
361
|
+
"""Stop one generation of one subagent.
|
|
362
|
+
|
|
363
|
+
The only write this phase adds, and the feature that justifies the whole
|
|
364
|
+
monitor transport — the activity tail can show a runaway subagent but not
|
|
365
|
+
end it.
|
|
366
|
+
|
|
367
|
+
`task_id` is a value the renderer read from `…/tasks`, so it is checked
|
|
368
|
+
against a fresh snapshot scoped to THIS agent's pane before it reaches the
|
|
369
|
+
socket (tasks.cancel_task). 422 covers every way the ask is wrong — a task
|
|
370
|
+
that belongs to another hub, one that already finished, a monitor that is
|
|
371
|
+
gone — because from the panel's side they are one thing: it did not get
|
|
372
|
+
cancelled, and the reason belongs on screen.
|
|
373
|
+
"""
|
|
374
|
+
try:
|
|
375
|
+
project = coms_send.validate_project(project)
|
|
376
|
+
name = coms_send.validate_name(name)
|
|
377
|
+
except coms_send.ComsSendError as error:
|
|
378
|
+
raise HTTPException(status_code=422, detail=str(error)) from error
|
|
379
|
+
|
|
380
|
+
try:
|
|
381
|
+
pane_id = _pane_id_for(project, name)
|
|
382
|
+
except Exception as error:
|
|
383
|
+
raise HTTPException(status_code=503, detail="herdr is not answering") from error
|
|
384
|
+
if not pane_id:
|
|
385
|
+
raise HTTPException(status_code=422, detail=f"{name} is not in a herdr pane")
|
|
386
|
+
|
|
387
|
+
try:
|
|
388
|
+
return tasks.cancel_task(pane_id, task_id, generation)
|
|
389
|
+
except LookupError as error:
|
|
390
|
+
raise HTTPException(status_code=422, detail=str(error)) from error
|
|
391
|
+
except Exception as error:
|
|
392
|
+
raise HTTPException(status_code=422, detail=f"the monitor refused the cancel: {error}") from error
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
@router.post("/sessions/{project}/{name}/prompt")
|
|
396
|
+
def send_prompt(project: str, name: str, body: PromptBody) -> dict:
|
|
397
|
+
"""Hand a prompt to a live peer and return immediately.
|
|
398
|
+
|
|
399
|
+
422 covers every way the ask is wrong — bad name, dead peer, peer refused —
|
|
400
|
+
because from the panel's side they are one thing: the prompt did not land,
|
|
401
|
+
and the reason belongs on screen. Nothing here is retried for you; a peer
|
|
402
|
+
that was alive 3 seconds ago and is gone now should say so, not be chased.
|
|
403
|
+
"""
|
|
404
|
+
try:
|
|
405
|
+
return _dispatcher.dispatch(project, name, body.prompt)
|
|
406
|
+
except coms_send.ComsSendError as error:
|
|
407
|
+
raise HTTPException(status_code=422, detail=str(error)) from error
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
@router.post("/sessions/{project}/{name}/focus")
|
|
411
|
+
def focus_session(project: str, name: str) -> dict:
|
|
412
|
+
"""Bring the pane hosting this peer to the front.
|
|
413
|
+
|
|
414
|
+
Same shape as the prompt endpoint: the renderer names `(project, name)` and
|
|
415
|
+
the workspace is resolved here, from a herdr answer taken now rather than
|
|
416
|
+
from the panel's snapshot. 422 when nothing hosts the peer — a `detached`
|
|
417
|
+
row has nothing to focus, and that is an answer, not a failure.
|
|
418
|
+
"""
|
|
419
|
+
try:
|
|
420
|
+
project = coms_send.validate_project(project)
|
|
421
|
+
name = coms_send.validate_name(name)
|
|
422
|
+
except coms_send.ComsSendError as error:
|
|
423
|
+
raise HTTPException(status_code=422, detail=str(error)) from error
|
|
424
|
+
|
|
425
|
+
panes, _total = _panes()
|
|
426
|
+
if panes is None:
|
|
427
|
+
raise HTTPException(status_code=503, detail="herdr is not answering")
|
|
428
|
+
# `(None, name)` is the legacy dialect, which could not carry a project.
|
|
429
|
+
pane = panes.get((project, name)) or panes.get((None, name)) or {}
|
|
430
|
+
workspace_id = pane.get("workspace_id")
|
|
431
|
+
if not workspace_id:
|
|
432
|
+
raise HTTPException(status_code=422, detail=f"{name} is not in a herdr pane")
|
|
433
|
+
|
|
434
|
+
try:
|
|
435
|
+
herdr_source.focus_workspace(workspace_id)
|
|
436
|
+
except herdr_source.HerdrUnavailable as error:
|
|
437
|
+
raise HTTPException(status_code=422, detail=str(error)) from error
|
|
438
|
+
return {"focused": workspace_id}
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
@router.get("/dispatches")
|
|
442
|
+
def list_dispatches() -> dict:
|
|
443
|
+
"""Prompts sent from this panel, newest first, with answers as they land."""
|
|
444
|
+
return {"dispatches": _dispatcher.recent()}
|
package/.versions/2.0.18/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"""The join — coms registry (who exists) × herdr (what they are doing).
|
|
2
|
+
|
|
3
|
+
An outer LEFT join from the registry, never the other way round:
|
|
4
|
+
|
|
5
|
+
registry entry + herdr pane -> full row with a live state
|
|
6
|
+
registry entry, no pane -> `detached` — the session lives, but not in a pane
|
|
7
|
+
herdr pane, no registry -> not shown at all — it is not an Agent Fleet session
|
|
8
|
+
|
|
9
|
+
Joined by COMS PEER IDENTITY — `(project, name)` — not by cwd. The reason is
|
|
10
|
+
the normal case, not an exotic one: a pi pane and a Claude Code pane driving the
|
|
11
|
+
same repo share a cwd exactly, so a cwd join would merge two sessions into one
|
|
12
|
+
row or swap their statuses.
|
|
13
|
+
|
|
14
|
+
The key is the PAIR because `resolveUniqueName()` keeps peer names unique
|
|
15
|
+
inside a project and says nothing across projects: two projects each running an
|
|
16
|
+
`orchestrator` is ordinary, and a name-only key makes both unresolvable. Panes
|
|
17
|
+
annotated by a herdr too old to carry the project (see herdr_source.peer_key)
|
|
18
|
+
key as `(None, name)` and are matched by name alone — but only when that name is
|
|
19
|
+
unambiguous across the whole registry.
|
|
20
|
+
|
|
21
|
+
This module also owns the output allowlist — the last line before data reaches
|
|
22
|
+
a renderer that runs with the full privileges of the application.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
import os
|
|
26
|
+
from datetime import datetime, timezone
|
|
27
|
+
|
|
28
|
+
import coms_registry
|
|
29
|
+
|
|
30
|
+
# Everything the panel is allowed to learn. `endpoint` (a writable socket path
|
|
31
|
+
# into another agent's process), `pid`, `session_id` and herdr's `terminal_id`
|
|
32
|
+
# deliberately stop here: the panel has no use for them, and the renderer is not
|
|
33
|
+
# a place to hand out a write door.
|
|
34
|
+
_REGISTRY_FIELDS = (
|
|
35
|
+
"name",
|
|
36
|
+
"model",
|
|
37
|
+
"purpose",
|
|
38
|
+
"cwd",
|
|
39
|
+
"started_at",
|
|
40
|
+
"heartbeat_at",
|
|
41
|
+
"context_used_pct",
|
|
42
|
+
"queue_depth",
|
|
43
|
+
)
|
|
44
|
+
# `workspace_id` is here so the panel can offer "focus that pane" without ever
|
|
45
|
+
# being told a pane's terminal or session paths.
|
|
46
|
+
_PANE_FIELDS = ("agent", "pane_id", "focused", "workspace_id")
|
|
47
|
+
|
|
48
|
+
# No herdr answer at all. Distinct from `detached`, which is a herdr that
|
|
49
|
+
# answered and simply had no pane for this peer.
|
|
50
|
+
STATE_UNKNOWN = "unknown"
|
|
51
|
+
STATE_DETACHED = "detached"
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def match_panes(
|
|
55
|
+
keys: list[tuple[str, str]],
|
|
56
|
+
panes: dict[tuple[str | None, str], dict],
|
|
57
|
+
) -> dict[tuple[str, str], dict]:
|
|
58
|
+
"""Registry `(project, name)` -> herdr pane.
|
|
59
|
+
|
|
60
|
+
Two passes, from most to least certain:
|
|
61
|
+
1. exact `(project, name)` matches, which consume their pane — a fully
|
|
62
|
+
annotated pane is unambiguous by construction, even when another
|
|
63
|
+
project runs a peer of the same name;
|
|
64
|
+
2. unscoped `(None, name)` panes for whatever is left. Exact name first,
|
|
65
|
+
then prefix, because the legacy 32-char cap can truncate
|
|
66
|
+
`<name> <pct>% q<n>` mid-tail (see parse_peer_name).
|
|
67
|
+
|
|
68
|
+
A key stays UNMATCHED when nothing claims it — the caller renders that as
|
|
69
|
+
`detached`, which is the truth: the session is alive and no pane hosts it.
|
|
70
|
+
It is marked AMBIGUOUS only when a claim exists that cannot be assigned:
|
|
71
|
+
several candidate panes, or one unscoped pane and two projects running a
|
|
72
|
+
peer by that name. Ambiguity is a statement about competing evidence, so it
|
|
73
|
+
must never be reported in the absence of any.
|
|
74
|
+
"""
|
|
75
|
+
matched: dict[tuple[str, str], dict] = {}
|
|
76
|
+
pool = dict(panes)
|
|
77
|
+
|
|
78
|
+
for key in keys:
|
|
79
|
+
if key in matched:
|
|
80
|
+
continue
|
|
81
|
+
pane = pool.pop(key, None)
|
|
82
|
+
if pane is not None:
|
|
83
|
+
matched[key] = pane
|
|
84
|
+
|
|
85
|
+
# Names the registry itself cannot disambiguate without a project.
|
|
86
|
+
names = [name for _project, name in keys]
|
|
87
|
+
duplicated = {name for name in names if names.count(name) > 1}
|
|
88
|
+
|
|
89
|
+
for key in dict.fromkeys(keys):
|
|
90
|
+
if key in matched:
|
|
91
|
+
continue
|
|
92
|
+
name = key[1]
|
|
93
|
+
if (None, name) in pool:
|
|
94
|
+
candidates = [(None, name)]
|
|
95
|
+
else:
|
|
96
|
+
candidates = [
|
|
97
|
+
(scope, claimed)
|
|
98
|
+
for (scope, claimed) in pool
|
|
99
|
+
if scope is None and (claimed.startswith(name) or name.startswith(claimed))
|
|
100
|
+
]
|
|
101
|
+
if not candidates:
|
|
102
|
+
continue
|
|
103
|
+
if len(candidates) > 1 or name in duplicated:
|
|
104
|
+
# Left in the pool on purpose: the other project's row must reach
|
|
105
|
+
# the same verdict rather than inherit this pane.
|
|
106
|
+
matched[key] = {"state": STATE_UNKNOWN, "ambiguous": True}
|
|
107
|
+
continue
|
|
108
|
+
matched[key] = pool.pop(candidates[0])
|
|
109
|
+
return matched
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def _age_s(value, now_ms: float) -> int | None:
|
|
113
|
+
"""Whole seconds between an ISO timestamp and now, or None if unreadable.
|
|
114
|
+
|
|
115
|
+
Never negative: a peer whose clock runs ahead of the gateway's is a clock
|
|
116
|
+
problem, not a session that started in the future.
|
|
117
|
+
"""
|
|
118
|
+
parsed = coms_registry.parse_timestamp_ms(value)
|
|
119
|
+
if parsed is None:
|
|
120
|
+
return None
|
|
121
|
+
return max(0, int((now_ms - parsed) / 1000))
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def _row(entry: dict, pane: dict | None, herdr_available: bool, now_ms: float) -> dict:
|
|
125
|
+
if not herdr_available:
|
|
126
|
+
state = STATE_UNKNOWN
|
|
127
|
+
elif pane is None:
|
|
128
|
+
state = STATE_DETACHED
|
|
129
|
+
else:
|
|
130
|
+
state = pane.get("state", STATE_UNKNOWN)
|
|
131
|
+
|
|
132
|
+
row = {field: entry.get(field) for field in _REGISTRY_FIELDS}
|
|
133
|
+
row["repo"] = os.path.basename(str(entry.get("cwd") or "").rstrip("/")) or None
|
|
134
|
+
row["state"] = state
|
|
135
|
+
# Derived here rather than in the renderer: the pane holds a snapshot up to
|
|
136
|
+
# 3 seconds old and has no idea when it was collected, so it cannot do this
|
|
137
|
+
# arithmetic correctly. `None` means the timestamp was unreadable — an
|
|
138
|
+
# entry written by an older coms — and the renderer must show nothing at
|
|
139
|
+
# all rather than "0s".
|
|
140
|
+
row["uptime_s"] = _age_s(entry.get("started_at"), now_ms)
|
|
141
|
+
row["heartbeat_age_s"] = _age_s(entry.get("heartbeat_at"), now_ms)
|
|
142
|
+
# The liveness rule the registry reader already applies, exposed as its own
|
|
143
|
+
# boolean. A stale row is still LIVE — it survived `entry_is_live` on the
|
|
144
|
+
# PID probe — but it stopped heartbeating, which is worth seeing.
|
|
145
|
+
row["stale"] = (
|
|
146
|
+
row["heartbeat_age_s"] is not None
|
|
147
|
+
and row["heartbeat_age_s"] > coms_registry.HEARTBEAT_FRESH_MS / 1000
|
|
148
|
+
)
|
|
149
|
+
# One boolean, computed once. The renderer must not have to know which
|
|
150
|
+
# herdr states mean "a human is being waited on" — when phase 2 adds the
|
|
151
|
+
# bridge's real questions, the meaning widens here and nowhere else.
|
|
152
|
+
row["needs_answer"] = state == "blocked"
|
|
153
|
+
for field in _PANE_FIELDS:
|
|
154
|
+
row[field] = (pane or {}).get(field)
|
|
155
|
+
row["focused"] = bool(row["focused"])
|
|
156
|
+
return row
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def build_sessions(
|
|
160
|
+
projects: dict[str, list[dict]],
|
|
161
|
+
panes: dict[tuple[str | None, str], dict] | None,
|
|
162
|
+
collected_at: str | None = None,
|
|
163
|
+
now_ms: float | None = None,
|
|
164
|
+
pane_total: int | None = None,
|
|
165
|
+
) -> dict:
|
|
166
|
+
"""The `/sessions` payload.
|
|
167
|
+
|
|
168
|
+
`panes=None` means herdr could not be asked: every row degrades to
|
|
169
|
+
`unknown` and the payload says so, so the panel can show the sessions it
|
|
170
|
+
knows about instead of an empty list or an error.
|
|
171
|
+
|
|
172
|
+
`pane_total` is how many panes herdr reported in all — including the ones
|
|
173
|
+
that carry no peer annotation and are therefore not in `panes`. It exists
|
|
174
|
+
so `detached` can be explained: a herdr that sees no panes at all and a
|
|
175
|
+
peer that genuinely left its pane are the same word with different causes.
|
|
176
|
+
"""
|
|
177
|
+
herdr_available = panes is not None
|
|
178
|
+
now_ms = now_ms if now_ms is not None else datetime.now(timezone.utc).timestamp() * 1000
|
|
179
|
+
keys = [
|
|
180
|
+
(project, entry.get("name"))
|
|
181
|
+
for project, entries in projects.items()
|
|
182
|
+
for entry in entries
|
|
183
|
+
if entry.get("name")
|
|
184
|
+
]
|
|
185
|
+
matched = match_panes(keys, panes or {})
|
|
186
|
+
|
|
187
|
+
grouped = []
|
|
188
|
+
for project in sorted(projects):
|
|
189
|
+
rows = [
|
|
190
|
+
_row(entry, matched.get((project, entry.get("name"))), herdr_available, now_ms)
|
|
191
|
+
for entry in projects[project]
|
|
192
|
+
]
|
|
193
|
+
rows.sort(key=lambda row: (not row["needs_answer"], row["name"] or ""))
|
|
194
|
+
grouped.append({"project": project, "sessions": rows})
|
|
195
|
+
|
|
196
|
+
# Projects with someone waiting on a human float to the top: that is the
|
|
197
|
+
# only reason this panel is opened in a hurry.
|
|
198
|
+
grouped.sort(key=lambda group: (not any(row["needs_answer"] for row in group["sessions"]), group["project"]))
|
|
199
|
+
|
|
200
|
+
return {
|
|
201
|
+
"projects": grouped,
|
|
202
|
+
"herdr": herdr_available,
|
|
203
|
+
"herdr_panes": pane_total if herdr_available else None,
|
|
204
|
+
"collected_at": collected_at or datetime.now(timezone.utc).isoformat(timespec="seconds").replace("+00:00", "Z"),
|
|
205
|
+
}
|