@chankov/agent-fleet 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/agents/model-profiles.yaml +3 -3
- package/.pi/agents/peers.yaml +2 -2
- package/.pi/agents/voices.yaml +2 -2
- package/.pi/harnesses/agent-hub/README.md +8 -1
- package/.pi/harnesses/agent-hub/access-approval.ts +20 -8
- package/.pi/harnesses/agent-hub/damage-guard-state.ts +5 -2
- package/.pi/harnesses/agent-hub/execution-trace.ts +1 -1
- package/.pi/harnesses/agent-hub/index.ts +26 -4
- package/.pi/harnesses/agent-hub/no-progress.ts +34 -2
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/permission-relay.ts +15 -6
- package/.pi/harnesses/agent-hub/process-obligations.ts +20 -0
- package/.pi/harnesses/agent-hub/spawn.ts +4 -0
- package/.pi/harnesses/agent-hub/task-continuation.ts +19 -2
- package/.pi/harnesses/agent-hub/task-triage-authorization.ts +22 -5
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +9 -3
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +11 -6
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/README.md +15 -3
- package/.pi/harnesses/damage-control-continue/index.ts +100 -62
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/bash-policy-analysis.ts +30 -18
- package/.pi/harnesses/lib/damage-control-shared.ts +6 -3
- package/.pi/harnesses/lib/exact-permission-port.ts +10 -3
- package/.versions/2.2.4/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.2.4/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.2.4/.pi/agent-fleet/hooks/coms-stop-hook.mjs +124 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/0.167-shared.json +1900 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/assessment.md +83 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile.md +43 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap.md +45 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture-profile.ts +53 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture.ts +102 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/catalog.md +91 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/channel.md +21 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurement.md +133 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurements.json +74 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/notification-profile-0.167.json +2679 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/observer.md +101 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/opaque-response.md +57 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/open-sent.md +68 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/probe-reader.md +51 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/profile.md +71 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/projection.md +147 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/reconnect.md +40 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/response-unions.md +74 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/semver.md +124 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/surface.md +73 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +63 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/fleet.ts +244 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +52 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-connection-history.ts +51 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +113 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +101 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +453 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +207 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +76 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +132 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +435 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +44 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/fleet-command.ts +264 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +239 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/team-project.ts +176 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/git.ts +108 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/quality.ts +78 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.2.4/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.2.4/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.2.4/.pi/agents/model-profiles.yaml +132 -0
- package/.versions/2.2.4/.pi/agents/peers.yaml +147 -0
- package/.versions/2.2.4/.pi/agents/teams.yaml +41 -0
- package/.versions/2.2.4/.pi/agents/voices.yaml +13 -0
- package/.versions/2.2.4/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.2.4/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.2.4/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.2.4/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.2.4/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.2.4/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.2.4/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.2.4/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.2.4/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.2.4/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.2.4/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.2.4/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.2.4/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.2.4/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.2.4/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.2.4/.pi/extensions/package.json +9 -0
- package/.versions/2.2.4/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.2.4/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.2.4/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.2.4/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.2.4/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.2.4/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.2.4/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/README.md +1664 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/access-approval.ts +278 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/budget-recovery.ts +151 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/capability-packs.ts +187 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/context.ts +43 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/recover.ts +81 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/config/agents.ts +183 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/config/model-profiles.ts +240 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context/assertion-journal.ts +133 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +234 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-state.ts +46 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +318 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +264 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-native-types.ts +297 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-native.ts +242 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/drift-watchdog.js +344 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/fixtures/registration-surface.json +69 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/footer.ts +29 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/helpers.ts +269 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/index.ts +2827 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/input/shortcuts.ts +16 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/no-progress.ts +773 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/operator-current-state.ts +102 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/permission-relay.ts +93 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/policy/roster.ts +103 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/policy/work-mode.ts +104 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/poll-command.ts +184 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-snapshot.ts +287 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/process-obligations.ts +230 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/prompts/context.ts +72 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/prompts/fragments.ts +94 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/prompts/session-start.ts +89 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/prompts/system-prompt.ts +142 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/provider-semaphore.js +143 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/recover-state.ts +144 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/recovery-continuation.ts +134 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/review-continuity.ts +76 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/review-reuse.ts +48 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/run-budget.js +362 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/scope-gate.js +271 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/spawn.ts +706 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-brief.ts +98 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-continuation.ts +21 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-authorization.ts +187 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-runtime.ts +132 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +83 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tool-catalog-state.ts +125 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/action-executors.ts +243 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/context.ts +151 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +93 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +976 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +23 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/recover-task.ts +16 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/run-flow.ts +177 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +173 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/verification-diagnostics.ts +23 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/work-mode.ts +185 -0
- package/.versions/2.2.4/.pi/harnesses/agent-hub/write-isolation.ts +232 -0
- package/.versions/2.2.4/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.2.4/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.2.4/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.2.4/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.2.4/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.2.4/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.2.4/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.2.4/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.2.4/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/README.md +173 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/index.ts +699 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.2.4/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.2.4/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.2.4/.pi/harnesses/lib/bash-policy-analysis.ts +205 -0
- package/.versions/2.2.4/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.2.4/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/lib/codex-compat.ts +97 -0
- package/.versions/2.2.4/.pi/harnesses/lib/codex-contract.ts +259 -0
- package/.versions/2.2.4/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
- package/.versions/2.2.4/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.2.4/.pi/harnesses/lib/coms-core.ts +738 -0
- package/.versions/2.2.4/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.2.4/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.2.4/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.2.4/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.versions/2.2.4/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.2.4/.pi/harnesses/lib/context-budget-hub-prompt.ts +124 -0
- package/.versions/2.2.4/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.2.4/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.2.4/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-control-shared.ts +279 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.2.4/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.2.4/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.2.4/.pi/harnesses/lib/exact-permission-port.ts +47 -0
- package/.versions/2.2.4/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-codex-chat-view.ts +55 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-connection-control.ts +94 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-connection-diagnostics.ts +7 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-notification-bootstrap.ts +172 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-notification-validation.ts +122 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.2.4/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.2.4/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.2.4/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.2.4/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.2.4/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.2.4/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.2.4/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.2.4/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.2.4/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.2.4/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.2.4/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.2.4/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.2.4/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.2.4/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.2.4/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.2.4/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.2.4/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.2.4/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.2.4/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.2.4/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.2.4/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.2.4/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.2.4/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.2.4/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.2.4/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.2.4/.pi/harnesses/package.json +13 -0
- package/.versions/2.2.4/.pi/prompts/af-build.md +27 -0
- package/.versions/2.2.4/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.2.4/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.2.4/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.2.4/.pi/prompts/af-review.md +16 -0
- package/.versions/2.2.4/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.2.4/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.2.4/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.2.4/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.2.4/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.2.4/.pi/prompts/af-test.md +19 -0
- package/.versions/2.2.4/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.2.4/.version +1 -0
- package/.versions/2.2.4/agents/architect.md +24 -0
- package/.versions/2.2.4/agents/bowser.md +28 -0
- package/.versions/2.2.4/agents/builder.md +55 -0
- package/.versions/2.2.4/agents/code-reviewer.md +209 -0
- package/.versions/2.2.4/agents/deep-researcher.md +32 -0
- package/.versions/2.2.4/agents/documenter.md +22 -0
- package/.versions/2.2.4/agents/plan-reviewer.md +83 -0
- package/.versions/2.2.4/agents/planner.md +107 -0
- package/.versions/2.2.4/agents/releaser.md +24 -0
- package/.versions/2.2.4/agents/researcher.md +30 -0
- package/.versions/2.2.4/agents/security-auditor.md +167 -0
- package/.versions/2.2.4/agents/test-engineer.md +153 -0
- package/.versions/2.2.4/agents/web-debugger.md +44 -0
- package/.versions/2.2.4/agents/web-performance-auditor.md +194 -0
- package/.versions/2.2.4/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.2.4/docs/ARCHITECTURE.md +1291 -0
- package/.versions/2.2.4/docs/agent-fleet-setup.md +1161 -0
- package/.versions/2.2.4/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.2.4/docs/codex-local-mcp.md +528 -0
- package/.versions/2.2.4/docs/codex-session-bridge.md +44 -0
- package/.versions/2.2.4/docs/codex-setup.md +183 -0
- package/.versions/2.2.4/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.2.4/docs/fleet-native-voice.md +151 -0
- package/.versions/2.2.4/docs/getting-started.md +126 -0
- package/.versions/2.2.4/docs/npm-install.md +535 -0
- package/.versions/2.2.4/docs/pi-extensions.md +450 -0
- package/.versions/2.2.4/docs/pi-setup.md +92 -0
- package/.versions/2.2.4/docs/skill-anatomy.md +150 -0
- package/.versions/2.2.4/install-manifest.json +3227 -0
- package/.versions/2.2.4/justfile +246 -0
- package/.versions/2.2.4/manifest-meta.json +1099 -0
- package/.versions/2.2.4/references/accessibility-checklist.md +160 -0
- package/.versions/2.2.4/references/communication-contract.md +26 -0
- package/.versions/2.2.4/references/definition-of-done.md +67 -0
- package/.versions/2.2.4/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.2.4/references/observability-checklist.md +92 -0
- package/.versions/2.2.4/references/orchestration-patterns.md +370 -0
- package/.versions/2.2.4/references/performance-checklist.md +236 -0
- package/.versions/2.2.4/references/prompting-patterns.md +380 -0
- package/.versions/2.2.4/references/security-checklist.md +245 -0
- package/.versions/2.2.4/references/testing-patterns.md +235 -0
- package/.versions/2.2.4/references/workflow-authoring.md +304 -0
- package/.versions/2.2.4/skills/_internal/grilling.md +59 -0
- package/.versions/2.2.4/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.2.4/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.2.4/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.2.4/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.2.4/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.2.4/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.2.4/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.2.4/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.2.4/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.2.4/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.2.4/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.2.4/skills/fleet-connect/SKILL.md +29 -0
- package/.versions/2.2.4/skills/fleet-connect.zip +0 -0
- package/.versions/2.2.4/skills/fleet-native-voice/SKILL.md +103 -0
- package/.versions/2.2.4/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.2.4/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.2.4/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.2.4/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.2.4/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.2.4/skills/idea-refine/examples.md +238 -0
- package/.versions/2.2.4/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.2.4/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.2.4/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.2.4/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.2.4/skills/incremental-implementation.zip +0 -0
- package/.versions/2.2.4/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.2.4/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.2.4/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.2.4/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.2.4/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.2.4/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.2.4/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.2.4/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.2.4/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.2.4/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.2.4/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.2.4/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.2.4/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.2.4/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.2.4/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.2.4/skills/spec-driven-development.zip +0 -0
- package/.versions/2.2.4/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.2.4/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +25 -0
- package/README.md +3 -3
- package/agents/architect.md +2 -2
- package/agents/bowser.md +1 -1
- package/agents/builder.md +2 -2
- package/agents/code-reviewer.md +2 -2
- package/agents/deep-researcher.md +1 -1
- package/agents/documenter.md +1 -1
- package/agents/plan-reviewer.md +2 -2
- package/agents/planner.md +5 -5
- package/agents/releaser.md +1 -1
- package/agents/researcher.md +1 -1
- package/agents/security-auditor.md +1 -1
- package/agents/test-engineer.md +2 -2
- package/agents/web-debugger.md +2 -2
- package/agents/web-performance-auditor.md +2 -2
- package/bin/force-patch-changesets.js +2 -3
- package/bin/snapshot-version.js +1 -1
- package/docs/agent-fleet-setup.md +3 -3
- package/docs/codex-local-mcp.md +13 -5
- package/install-manifest.json +1 -1
- package/package.json +1 -1
package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"""Source A — which Agent Fleet sessions exist, and in which project.
|
|
2
|
+
|
|
3
|
+
Reads `~/.pi/coms/projects/<project>/agents/<name>.json` directly. The
|
|
4
|
+
directory IS the project: that is exactly the scope `team-up --project X`
|
|
5
|
+
creates, so grouping by it needs no extra bookkeeping.
|
|
6
|
+
|
|
7
|
+
Deliberately NOT going through `coms-cli list`: that CLI wants `--project` and
|
|
8
|
+
`--name`, answers for one project only, and excludes the caller — the opposite
|
|
9
|
+
of "every project". The price is a dependency on someone else's on-disk shape;
|
|
10
|
+
`SUPPORTED_VERSION` below is the tripwire for when it changes.
|
|
11
|
+
|
|
12
|
+
Read-only by construction. `pruneDeadEntries()` in .pi/agent-fleet/scripts/lib/coms-envelope.ts
|
|
13
|
+
deletes dead records; we copy only its liveness CRITERION. A visualisation
|
|
14
|
+
plugin that races the real coms writer over file deletion is the wrong shape.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
import os
|
|
19
|
+
from datetime import datetime, timezone
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
|
|
22
|
+
# Mirrors REGISTRY_HEARTBEAT_FRESH_MS in .pi/agent-fleet/scripts/lib/coms-envelope.ts:25, and
|
|
23
|
+
# the -5s clock-skew tolerance of registryHeartbeatIsFresh().
|
|
24
|
+
HEARTBEAT_FRESH_MS = 90_000
|
|
25
|
+
HEARTBEAT_SKEW_MS = 5_000
|
|
26
|
+
|
|
27
|
+
# `version` in the registry record. A record from a coms that bumped the schema
|
|
28
|
+
# is reported as unavailable rather than silently mis-parsed — a wrong panel is
|
|
29
|
+
# worse than an honest one that says it cannot read the registry.
|
|
30
|
+
SUPPORTED_VERSION = 1
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class RegistryUnavailable(Exception):
|
|
34
|
+
"""The coms registry cannot be read or is written in a schema we don't know."""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def default_projects_root() -> Path:
|
|
38
|
+
return Path.home() / ".pi" / "coms" / "projects"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def parse_timestamp_ms(value) -> float | None:
|
|
42
|
+
"""ISO-8601 (the `Z` form coms writes) to epoch milliseconds."""
|
|
43
|
+
if not isinstance(value, str) or not value:
|
|
44
|
+
return None
|
|
45
|
+
try:
|
|
46
|
+
parsed = datetime.fromisoformat(value.replace("Z", "+00:00"))
|
|
47
|
+
except ValueError:
|
|
48
|
+
return None
|
|
49
|
+
if parsed.tzinfo is None:
|
|
50
|
+
parsed = parsed.replace(tzinfo=timezone.utc)
|
|
51
|
+
return parsed.timestamp() * 1000
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def heartbeat_is_fresh(entry: dict, now_ms: float) -> bool:
|
|
55
|
+
heartbeat = parse_timestamp_ms(entry.get("heartbeat_at"))
|
|
56
|
+
if heartbeat is None:
|
|
57
|
+
return False
|
|
58
|
+
age = now_ms - heartbeat
|
|
59
|
+
return -HEARTBEAT_SKEW_MS <= age <= HEARTBEAT_FRESH_MS
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def pid_is_alive(pid) -> bool:
|
|
63
|
+
"""`kill(pid, 0)`: ESRCH means gone, EPERM means alive but not ours."""
|
|
64
|
+
if not isinstance(pid, int) or isinstance(pid, bool) or pid <= 0:
|
|
65
|
+
return False
|
|
66
|
+
try:
|
|
67
|
+
os.kill(pid, 0)
|
|
68
|
+
except ProcessLookupError:
|
|
69
|
+
return False
|
|
70
|
+
except PermissionError:
|
|
71
|
+
return True
|
|
72
|
+
except OSError:
|
|
73
|
+
return True
|
|
74
|
+
return True
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def entry_is_live(entry: dict, now_ms: float, pid_probe=pid_is_alive) -> bool:
|
|
78
|
+
"""A fresh heartbeat wins before the PID probe — Codex remote commands can
|
|
79
|
+
run in a different PID namespace, where the probe would answer nonsense."""
|
|
80
|
+
if heartbeat_is_fresh(entry, now_ms):
|
|
81
|
+
return True
|
|
82
|
+
return pid_probe(entry.get("pid"))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _read_entry(path: Path) -> dict | None:
|
|
86
|
+
"""One registry file, or None when it is not a usable record.
|
|
87
|
+
|
|
88
|
+
Unparseable or half-written files are skipped, not fatal: the writer is
|
|
89
|
+
another live process and we may catch it mid-write.
|
|
90
|
+
"""
|
|
91
|
+
try:
|
|
92
|
+
entry = json.loads(path.read_text(encoding="utf-8"))
|
|
93
|
+
except (OSError, ValueError):
|
|
94
|
+
return None
|
|
95
|
+
if not isinstance(entry, dict) or not isinstance(entry.get("name"), str) or not entry["name"]:
|
|
96
|
+
return None
|
|
97
|
+
version = entry.get("version", SUPPORTED_VERSION)
|
|
98
|
+
if version != SUPPORTED_VERSION:
|
|
99
|
+
raise RegistryUnavailable(
|
|
100
|
+
f"coms registry record {path.name} declares schema version {version!r}, "
|
|
101
|
+
f"this plugin reads version {SUPPORTED_VERSION}"
|
|
102
|
+
)
|
|
103
|
+
return entry
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def live_sessions_by_project(root: Path | None = None, now_ms: float | None = None, pid_probe=pid_is_alive) -> dict[str, list[dict]]:
|
|
107
|
+
"""Every live coms session, keyed by project directory name.
|
|
108
|
+
|
|
109
|
+
Projects with no live session are omitted entirely: `~/.pi/coms/projects/`
|
|
110
|
+
accumulates dozens of historical scopes, and an empty group is noise.
|
|
111
|
+
"""
|
|
112
|
+
root = Path(root) if root is not None else default_projects_root()
|
|
113
|
+
now_ms = now_ms if now_ms is not None else datetime.now(timezone.utc).timestamp() * 1000
|
|
114
|
+
|
|
115
|
+
try:
|
|
116
|
+
project_dirs = sorted(child for child in root.iterdir() if child.is_dir())
|
|
117
|
+
except OSError as error:
|
|
118
|
+
raise RegistryUnavailable(f"cannot read coms registry at {root}: {error}") from error
|
|
119
|
+
|
|
120
|
+
projects: dict[str, list[dict]] = {}
|
|
121
|
+
for project_dir in project_dirs:
|
|
122
|
+
agents_dir = project_dir / "agents"
|
|
123
|
+
try:
|
|
124
|
+
files = sorted(agents_dir.glob("*.json"))
|
|
125
|
+
except OSError:
|
|
126
|
+
continue
|
|
127
|
+
live = []
|
|
128
|
+
for path in files:
|
|
129
|
+
entry = _read_entry(path)
|
|
130
|
+
if entry is not None and entry_is_live(entry, now_ms, pid_probe):
|
|
131
|
+
live.append(entry)
|
|
132
|
+
if live:
|
|
133
|
+
projects[project_dir.name] = live
|
|
134
|
+
return projects
|
package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
"""The write half — hand a prompt to a live coms peer and keep its answer.
|
|
2
|
+
|
|
3
|
+
This is the one module in the plugin that is not read-only, so its boundaries
|
|
4
|
+
are drawn tightly:
|
|
5
|
+
|
|
6
|
+
- the renderer never names an ENDPOINT, only `(project, name)`. The socket
|
|
7
|
+
path is looked up here, from the registry, and never travels outward. A
|
|
8
|
+
renderer running with the full privileges of the app must not also be
|
|
9
|
+
holding write doors into other agents' processes.
|
|
10
|
+
- `project` and `name` are validated against the same character classes the
|
|
11
|
+
TS side enforces (coms-envelope.ts), before either touches a path.
|
|
12
|
+
- delivery is fire-and-forget. The peer answers on its own schedule — minutes,
|
|
13
|
+
for anything worth asking — so the HTTP request returns as soon as the
|
|
14
|
+
prompt is ACKed, and the answer arrives later on the reply socket opened for
|
|
15
|
+
it. A panel that polls every 3s must never hold a request open for minutes.
|
|
16
|
+
|
|
17
|
+
Wire format is coms-envelope.ts exactly: one JSON object per line over a unix
|
|
18
|
+
socket, answered with a single `ack`/`nack` line. Any drift here is a protocol
|
|
19
|
+
break, not a refactor.
|
|
20
|
+
|
|
21
|
+
State: replies live in memory, bounded and per-process. A gateway restart loses
|
|
22
|
+
the transcript — the agent's own pane has it, and this pane is a fleet view, not
|
|
23
|
+
a message store.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
import json
|
|
27
|
+
import os
|
|
28
|
+
import re
|
|
29
|
+
import secrets
|
|
30
|
+
import socket
|
|
31
|
+
import threading
|
|
32
|
+
import time
|
|
33
|
+
from datetime import datetime, timezone
|
|
34
|
+
from pathlib import Path
|
|
35
|
+
|
|
36
|
+
import coms_registry
|
|
37
|
+
|
|
38
|
+
# Mirrors COMS_PROJECT_SAFE / COMS_NAME_SAFE in .pi/agent-fleet/scripts/lib/coms-envelope.ts.
|
|
39
|
+
_PROJECT_SAFE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._-]*$")
|
|
40
|
+
_NAME_SAFE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$")
|
|
41
|
+
|
|
42
|
+
# Who the fleet sees this dispatch as. Deliberately not a registered peer: the
|
|
43
|
+
# panel is a window onto the pool, not a member of it, and registering would put
|
|
44
|
+
# it in everyone's `coms_list`.
|
|
45
|
+
SENDER_NAME = "hermes-panel"
|
|
46
|
+
|
|
47
|
+
# LINE_CAP_BYTES in coms-envelope.ts is 64 KiB for the WHOLE envelope; leave
|
|
48
|
+
# room for the ~600 bytes of framing around the prompt.
|
|
49
|
+
MAX_PROMPT_CHARS = 32_000
|
|
50
|
+
|
|
51
|
+
# How long a reply socket waits before giving up and cleaning itself up. Long
|
|
52
|
+
# turns are normal; an abandoned socket is not.
|
|
53
|
+
REPLY_TTL_S = 1800.0
|
|
54
|
+
|
|
55
|
+
# Most recent dispatches kept. Enough to cover a session's worth of asking,
|
|
56
|
+
# small enough that an idle gateway is not holding a transcript.
|
|
57
|
+
MAX_TRACKED = 50
|
|
58
|
+
|
|
59
|
+
_CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class ComsSendError(Exception):
|
|
63
|
+
"""The prompt could not be handed over. Carries a human-readable reason."""
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def now_iso() -> str:
|
|
67
|
+
return datetime.now(timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", "Z")
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def ulid() -> str:
|
|
71
|
+
"""Port of ulid() in coms-envelope.ts — 10 chars of time, 16 of randomness."""
|
|
72
|
+
ms = int(time.time() * 1000)
|
|
73
|
+
time_part = ""
|
|
74
|
+
for _ in range(10):
|
|
75
|
+
time_part = _CROCKFORD[ms % 32] + time_part
|
|
76
|
+
ms //= 32
|
|
77
|
+
rand_part = "".join(secrets.choice(_CROCKFORD) for _ in range(16))
|
|
78
|
+
return (time_part + rand_part)[:26]
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def validate_project(project: str) -> str:
|
|
82
|
+
if not isinstance(project, str) or ".." in project or "/" in project or "\\" in project:
|
|
83
|
+
raise ComsSendError(f"invalid project name: {project!r}")
|
|
84
|
+
if project in (".", "") or not _PROJECT_SAFE.match(project):
|
|
85
|
+
raise ComsSendError(f"invalid project name: {project!r}")
|
|
86
|
+
return project
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def validate_name(name: str) -> str:
|
|
90
|
+
if not isinstance(name, str) or not _NAME_SAFE.match(name) or name == "projects":
|
|
91
|
+
raise ComsSendError(f"invalid coms name: {name!r}")
|
|
92
|
+
return name
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def resolve_endpoint(project: str, name: str, root: Path | None = None) -> str:
|
|
96
|
+
"""The peer's socket path — the only place this value is produced.
|
|
97
|
+
|
|
98
|
+
Re-reads the registry rather than trusting anything the caller passed: the
|
|
99
|
+
panel's snapshot is up to 3 seconds old, and a peer that died in that window
|
|
100
|
+
must fail here instead of having a prompt written into a stale path.
|
|
101
|
+
"""
|
|
102
|
+
root = Path(root) if root is not None else coms_registry.default_projects_root()
|
|
103
|
+
path = root / project / "agents" / f"{name}.json"
|
|
104
|
+
try:
|
|
105
|
+
entry = json.loads(path.read_text(encoding="utf-8"))
|
|
106
|
+
except FileNotFoundError as error:
|
|
107
|
+
raise ComsSendError(f"no live peer {name!r} in project {project!r}") from error
|
|
108
|
+
except (OSError, ValueError) as error:
|
|
109
|
+
raise ComsSendError(f"cannot read the registry entry for {name!r}: {error}") from error
|
|
110
|
+
|
|
111
|
+
now_ms = datetime.now(timezone.utc).timestamp() * 1000
|
|
112
|
+
if not coms_registry.entry_is_live(entry, now_ms):
|
|
113
|
+
raise ComsSendError(f"peer {name!r} in project {project!r} is no longer live")
|
|
114
|
+
|
|
115
|
+
endpoint = entry.get("endpoint")
|
|
116
|
+
if not isinstance(endpoint, str) or not endpoint:
|
|
117
|
+
raise ComsSendError(f"peer {name!r} has no endpoint to write to")
|
|
118
|
+
return endpoint
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def _read_line(sock: socket.socket, cap: int = 65_536) -> str:
|
|
122
|
+
chunks: list[bytes] = []
|
|
123
|
+
total = 0
|
|
124
|
+
while True:
|
|
125
|
+
chunk = sock.recv(4096)
|
|
126
|
+
if not chunk:
|
|
127
|
+
break
|
|
128
|
+
chunks.append(chunk)
|
|
129
|
+
total += len(chunk)
|
|
130
|
+
if b"\n" in chunk or total > cap:
|
|
131
|
+
break
|
|
132
|
+
return b"".join(chunks).split(b"\n", 1)[0].decode("utf-8", "replace")
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def send_envelope(endpoint: str, envelope: dict, timeout: float = 5.0) -> dict:
|
|
136
|
+
"""Write one envelope, read one ack/nack. Mirrors sendEnvelope()."""
|
|
137
|
+
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
|
138
|
+
sock.settimeout(timeout)
|
|
139
|
+
try:
|
|
140
|
+
try:
|
|
141
|
+
sock.connect(endpoint)
|
|
142
|
+
except OSError as error:
|
|
143
|
+
raise ComsSendError(f"peer is not listening: {error}") from error
|
|
144
|
+
sock.sendall((json.dumps(envelope) + "\n").encode("utf-8"))
|
|
145
|
+
line = _read_line(sock)
|
|
146
|
+
except socket.timeout as error:
|
|
147
|
+
raise ComsSendError("peer did not acknowledge in time") from error
|
|
148
|
+
finally:
|
|
149
|
+
try:
|
|
150
|
+
sock.close()
|
|
151
|
+
except OSError:
|
|
152
|
+
pass
|
|
153
|
+
|
|
154
|
+
try:
|
|
155
|
+
parsed = json.loads(line)
|
|
156
|
+
except ValueError as error:
|
|
157
|
+
raise ComsSendError("peer answered with something that is not an envelope") from error
|
|
158
|
+
if isinstance(parsed, dict) and parsed.get("type") == "nack":
|
|
159
|
+
raise ComsSendError(str(parsed.get("error") or "peer refused the prompt"))
|
|
160
|
+
return parsed if isinstance(parsed, dict) else {}
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
class Dispatcher:
|
|
164
|
+
"""Sends prompts and holds the answers that come back.
|
|
165
|
+
|
|
166
|
+
One reply socket per dispatch, closed as soon as its answer lands (or when
|
|
167
|
+
REPLY_TTL_S expires). A single shared socket would be tidier until two
|
|
168
|
+
prompts are outstanding and the answers have to be told apart by msg_id
|
|
169
|
+
alone — which is exactly when it matters that they cannot be confused.
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
def __init__(self, sockets_dir: Path | None = None, ttl_s: float = REPLY_TTL_S):
|
|
173
|
+
self._dir = Path(sockets_dir) if sockets_dir is not None else Path.home() / ".pi" / "coms" / "sockets"
|
|
174
|
+
self._ttl_s = ttl_s
|
|
175
|
+
self._lock = threading.Lock()
|
|
176
|
+
self._tracked: dict[str, dict] = {}
|
|
177
|
+
|
|
178
|
+
# ── the answer side ────────────────────────────────────────────────────
|
|
179
|
+
|
|
180
|
+
def _record(self, msg_id: str, **fields) -> None:
|
|
181
|
+
with self._lock:
|
|
182
|
+
entry = self._tracked.get(msg_id)
|
|
183
|
+
if entry is None:
|
|
184
|
+
return
|
|
185
|
+
entry.update(fields)
|
|
186
|
+
|
|
187
|
+
def _serve_reply(self, server: socket.socket, path: Path, msg_id: str) -> None:
|
|
188
|
+
"""Accept at most one response for `msg_id`, then take the socket down."""
|
|
189
|
+
try:
|
|
190
|
+
server.settimeout(self._ttl_s)
|
|
191
|
+
while True:
|
|
192
|
+
try:
|
|
193
|
+
conn, _ = server.accept()
|
|
194
|
+
except socket.timeout:
|
|
195
|
+
self._record(msg_id, status="timeout", detail=f"no answer within {int(self._ttl_s)}s")
|
|
196
|
+
return
|
|
197
|
+
except OSError:
|
|
198
|
+
return
|
|
199
|
+
with conn:
|
|
200
|
+
conn.settimeout(5.0)
|
|
201
|
+
try:
|
|
202
|
+
line = _read_line(conn)
|
|
203
|
+
envelope = json.loads(line)
|
|
204
|
+
except (OSError, ValueError):
|
|
205
|
+
continue
|
|
206
|
+
if not isinstance(envelope, dict):
|
|
207
|
+
continue
|
|
208
|
+
kind = envelope.get("type")
|
|
209
|
+
# Peers ping an endpoint to check it is alive; that is not
|
|
210
|
+
# an answer and must not close the socket.
|
|
211
|
+
if kind == "ping":
|
|
212
|
+
self._ack(conn, envelope.get("msg_id") or "")
|
|
213
|
+
continue
|
|
214
|
+
if kind != "response" or envelope.get("msg_id") != msg_id:
|
|
215
|
+
continue
|
|
216
|
+
self._ack(conn, msg_id)
|
|
217
|
+
error = envelope.get("error")
|
|
218
|
+
self._record(
|
|
219
|
+
msg_id,
|
|
220
|
+
status="error" if error else "answered",
|
|
221
|
+
detail=str(error) if error else None,
|
|
222
|
+
response=_as_text(envelope.get("response")),
|
|
223
|
+
answered_at=now_iso(),
|
|
224
|
+
)
|
|
225
|
+
return
|
|
226
|
+
finally:
|
|
227
|
+
try:
|
|
228
|
+
server.close()
|
|
229
|
+
except OSError:
|
|
230
|
+
pass
|
|
231
|
+
try:
|
|
232
|
+
path.unlink()
|
|
233
|
+
except OSError:
|
|
234
|
+
pass
|
|
235
|
+
|
|
236
|
+
@staticmethod
|
|
237
|
+
def _ack(conn: socket.socket, msg_id: str) -> None:
|
|
238
|
+
try:
|
|
239
|
+
conn.sendall((json.dumps({"type": "ack", "msg_id": msg_id}) + "\n").encode("utf-8"))
|
|
240
|
+
except OSError:
|
|
241
|
+
pass
|
|
242
|
+
|
|
243
|
+
def _open_reply_socket(self, session_id: str) -> tuple[socket.socket, Path]:
|
|
244
|
+
self._dir.mkdir(parents=True, exist_ok=True)
|
|
245
|
+
path = self._dir / f"{session_id}.sock"
|
|
246
|
+
try:
|
|
247
|
+
path.unlink()
|
|
248
|
+
except OSError:
|
|
249
|
+
pass
|
|
250
|
+
server = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
|
251
|
+
server.bind(str(path))
|
|
252
|
+
server.listen(4)
|
|
253
|
+
return server, path
|
|
254
|
+
|
|
255
|
+
# ── the ask side ───────────────────────────────────────────────────────
|
|
256
|
+
|
|
257
|
+
def dispatch(self, project: str, name: str, prompt: str, root: Path | None = None) -> dict:
|
|
258
|
+
project = validate_project(project)
|
|
259
|
+
name = validate_name(name)
|
|
260
|
+
if not isinstance(prompt, str) or not prompt.strip():
|
|
261
|
+
raise ComsSendError("a prompt is required")
|
|
262
|
+
if len(prompt) > MAX_PROMPT_CHARS:
|
|
263
|
+
raise ComsSendError(f"prompt is longer than {MAX_PROMPT_CHARS} characters")
|
|
264
|
+
|
|
265
|
+
endpoint = resolve_endpoint(project, name, root)
|
|
266
|
+
session_id = ulid()
|
|
267
|
+
server, reply_path = self._open_reply_socket(session_id)
|
|
268
|
+
envelope = {
|
|
269
|
+
"type": "prompt",
|
|
270
|
+
"msg_id": ulid(),
|
|
271
|
+
"sender_session": session_id,
|
|
272
|
+
"sender_endpoint": str(reply_path),
|
|
273
|
+
"hops": 0,
|
|
274
|
+
"timestamp": now_iso(),
|
|
275
|
+
"prompt": prompt,
|
|
276
|
+
"sender_name": SENDER_NAME,
|
|
277
|
+
"sender_cwd": os.getcwd(),
|
|
278
|
+
"conversation_id": None,
|
|
279
|
+
"response_schema": None,
|
|
280
|
+
}
|
|
281
|
+
msg_id = envelope["msg_id"]
|
|
282
|
+
|
|
283
|
+
with self._lock:
|
|
284
|
+
self._tracked[msg_id] = {
|
|
285
|
+
"msg_id": msg_id,
|
|
286
|
+
"project": project,
|
|
287
|
+
"name": name,
|
|
288
|
+
"prompt": prompt,
|
|
289
|
+
"sent_at": now_iso(),
|
|
290
|
+
"status": "pending",
|
|
291
|
+
"detail": None,
|
|
292
|
+
"response": None,
|
|
293
|
+
"answered_at": None,
|
|
294
|
+
}
|
|
295
|
+
# Oldest first; `dict` preserves insertion order.
|
|
296
|
+
while len(self._tracked) > MAX_TRACKED:
|
|
297
|
+
self._tracked.pop(next(iter(self._tracked)))
|
|
298
|
+
|
|
299
|
+
# The listener must be up before the prompt goes out: a fast peer can
|
|
300
|
+
# answer before a thread that is started afterwards ever accepts.
|
|
301
|
+
threading.Thread(
|
|
302
|
+
target=self._serve_reply,
|
|
303
|
+
args=(server, reply_path, msg_id),
|
|
304
|
+
name=f"coms-reply-{msg_id[:8]}",
|
|
305
|
+
daemon=True,
|
|
306
|
+
).start()
|
|
307
|
+
|
|
308
|
+
try:
|
|
309
|
+
send_envelope(endpoint, envelope)
|
|
310
|
+
except ComsSendError:
|
|
311
|
+
self._record(msg_id, status="failed")
|
|
312
|
+
try:
|
|
313
|
+
server.close()
|
|
314
|
+
except OSError:
|
|
315
|
+
pass
|
|
316
|
+
raise
|
|
317
|
+
|
|
318
|
+
with self._lock:
|
|
319
|
+
return dict(self._tracked[msg_id])
|
|
320
|
+
|
|
321
|
+
def recent(self, limit: int = 20) -> list[dict]:
|
|
322
|
+
"""Newest first, prompts trimmed — this feeds a 300px-wide pane."""
|
|
323
|
+
with self._lock:
|
|
324
|
+
rows = list(self._tracked.values())[-limit:]
|
|
325
|
+
rows.reverse()
|
|
326
|
+
return [
|
|
327
|
+
{
|
|
328
|
+
**row,
|
|
329
|
+
"prompt": _clip(row["prompt"], 200),
|
|
330
|
+
"response": _clip(row["response"], 2000) if row["response"] else None,
|
|
331
|
+
}
|
|
332
|
+
for row in rows
|
|
333
|
+
]
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
def _as_text(response) -> str | None:
|
|
337
|
+
if response is None:
|
|
338
|
+
return None
|
|
339
|
+
if isinstance(response, str):
|
|
340
|
+
return response
|
|
341
|
+
try:
|
|
342
|
+
return json.dumps(response, indent=2)
|
|
343
|
+
except (TypeError, ValueError):
|
|
344
|
+
return str(response)
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
def _clip(text: str | None, limit: int) -> str | None:
|
|
348
|
+
if text is None:
|
|
349
|
+
return None
|
|
350
|
+
return text if len(text) <= limit else text[: limit - 1] + "…"
|
package/.versions/2.2.4/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"""Source B — what each session is doing right now, from herdr.
|
|
2
|
+
|
|
3
|
+
`herdr agent list` needs nothing but `HOME` in the environment: it finds its own
|
|
4
|
+
socket. That is why the gateway process, which carries no `HERDR_*` variables,
|
|
5
|
+
can call it without setup — and why this is a subprocess and not a socket
|
|
6
|
+
client. A socket client would save ~20ms per poll and unlock
|
|
7
|
+
`pane.agent_status_changed` push, at the cost of reimplementing the JSON-lines
|
|
8
|
+
protocol in Python. At a 3s interval that trade is not worth taking yet.
|
|
9
|
+
|
|
10
|
+
Nothing here raises for a herdr that is down or slow: the caller degrades every
|
|
11
|
+
row to `state: "unknown"` and still renders the sessions. A missing herdr means
|
|
12
|
+
"we don't know what they're doing", never "there are no sessions".
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import json
|
|
16
|
+
import re
|
|
17
|
+
import subprocess
|
|
18
|
+
|
|
19
|
+
HERDR_BIN = "herdr"
|
|
20
|
+
HERDR_TIMEOUT_S = 3.0
|
|
21
|
+
|
|
22
|
+
# herdr's own vocabulary. Anything else (including a herdr that grows a new
|
|
23
|
+
# state) normalises to "unknown" rather than leaking a label the UI can't tone.
|
|
24
|
+
KNOWN_STATES = ("idle", "working", "blocked")
|
|
25
|
+
|
|
26
|
+
# Port of parsePeerName in .pi/harnesses/lib/herdr-presence.ts — the inverse of
|
|
27
|
+
# formatPeerStatus's `<name> <pct>% q<depth>`. Kept character-identical
|
|
28
|
+
# (including the tolerant `q\d*` tail) so both ends agree on truncated input.
|
|
29
|
+
# Only reachable on herdr <= 0.7.3; see peer_key().
|
|
30
|
+
_PEER_STATUS = re.compile(r"^(.*?)\s+\d+%\s+q\d*$")
|
|
31
|
+
|
|
32
|
+
# Pane fields the join is allowed to see. `terminal_id` and the session paths
|
|
33
|
+
# herdr also reports stay behind this line — see the allowlist note in
|
|
34
|
+
# sessions.py.
|
|
35
|
+
_PANE_FIELDS = ("agent", "pane_id", "focused", "workspace_id")
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class HerdrUnavailable(Exception):
|
|
39
|
+
"""herdr could not be asked: missing binary, timeout, or a bad answer."""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def parse_peer_name(custom_status) -> str | None:
|
|
43
|
+
"""`"reviewer 12% q0"` -> `"reviewer"`.
|
|
44
|
+
|
|
45
|
+
`custom_status` is capped at 32 chars by the herdr server, which is exactly
|
|
46
|
+
why the coms peer name is written FIRST: a truncated tail still leaves the
|
|
47
|
+
identity readable. When the tail is cut off mid-way the regex misses and we
|
|
48
|
+
return the raw string — the caller resolves that by prefix, and treats an
|
|
49
|
+
ambiguous prefix as unknown rather than guessing.
|
|
50
|
+
"""
|
|
51
|
+
if not isinstance(custom_status, str) or not custom_status.strip():
|
|
52
|
+
return None
|
|
53
|
+
match = _PEER_STATUS.match(custom_status)
|
|
54
|
+
name = (match.group(1) if match else custom_status).strip()
|
|
55
|
+
return name or None
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def peer_key(agent: dict) -> tuple[str | None, str] | None:
|
|
59
|
+
"""`(project, name)` for the coms peer occupying a pane, or None.
|
|
60
|
+
|
|
61
|
+
Mirrors peerNameFrom/peerProjectFrom in herdr-presence.ts. `project` is None
|
|
62
|
+
only for the legacy `custom_status` dialect, which had 32 characters to work
|
|
63
|
+
with and no room for it — and that missing project is precisely why two
|
|
64
|
+
projects each running an `orchestrator` used to be unjoinable.
|
|
65
|
+
|
|
66
|
+
`name` (herdr's `agent rename`) is a human label rather than a coms
|
|
67
|
+
identity, so it is the last resort, never the first.
|
|
68
|
+
"""
|
|
69
|
+
tokens = agent.get("tokens")
|
|
70
|
+
if isinstance(tokens, dict):
|
|
71
|
+
name = tokens.get("coms")
|
|
72
|
+
if isinstance(name, str) and name.strip():
|
|
73
|
+
project = tokens.get("proj")
|
|
74
|
+
scope = project.strip() if isinstance(project, str) and project.strip() else None
|
|
75
|
+
return (scope, name.strip())
|
|
76
|
+
|
|
77
|
+
legacy = parse_peer_name(agent.get("custom_status"))
|
|
78
|
+
if legacy:
|
|
79
|
+
return (None, legacy)
|
|
80
|
+
|
|
81
|
+
named = agent.get("name")
|
|
82
|
+
if isinstance(named, str) and named.strip():
|
|
83
|
+
return (None, named.strip())
|
|
84
|
+
return None
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def normalize_state(agent_status) -> str:
|
|
88
|
+
return agent_status if agent_status in KNOWN_STATES else "unknown"
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def run_herdr(args: list[str], timeout: float, runner=subprocess.run) -> str:
|
|
92
|
+
"""The one place a herdr failure becomes `HerdrUnavailable`."""
|
|
93
|
+
try:
|
|
94
|
+
result = runner(
|
|
95
|
+
args,
|
|
96
|
+
capture_output=True,
|
|
97
|
+
text=True,
|
|
98
|
+
timeout=timeout,
|
|
99
|
+
check=False,
|
|
100
|
+
)
|
|
101
|
+
except FileNotFoundError as error:
|
|
102
|
+
raise HerdrUnavailable(f"{args[0]} not found on PATH") from error
|
|
103
|
+
except subprocess.TimeoutExpired as error:
|
|
104
|
+
raise HerdrUnavailable(f"{' '.join(args)} timed out after {timeout}s") from error
|
|
105
|
+
except OSError as error:
|
|
106
|
+
raise HerdrUnavailable(f"{' '.join(args)} failed: {error}") from error
|
|
107
|
+
if result.returncode != 0:
|
|
108
|
+
raise HerdrUnavailable(f"{' '.join(args)} exited {result.returncode}: {result.stderr.strip()[:200]}")
|
|
109
|
+
return result.stdout
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def list_agents(run=run_herdr, timeout: float = HERDR_TIMEOUT_S) -> list[dict]:
|
|
113
|
+
"""Raw pane records from `herdr agent list`."""
|
|
114
|
+
raw = run([HERDR_BIN, "agent", "list"], timeout)
|
|
115
|
+
try:
|
|
116
|
+
payload = json.loads(raw)
|
|
117
|
+
except ValueError as error:
|
|
118
|
+
raise HerdrUnavailable("herdr agent list returned non-JSON output") from error
|
|
119
|
+
# The CLI wraps its answer in the wire envelope (`{"id":…,"result":{…}}`);
|
|
120
|
+
# accept the bare form too, so a future unwrapped CLI does not break us.
|
|
121
|
+
container = payload.get("result", payload) if isinstance(payload, dict) else {}
|
|
122
|
+
agents = container.get("agents") if isinstance(container, dict) else None
|
|
123
|
+
if not isinstance(agents, list):
|
|
124
|
+
raise HerdrUnavailable("herdr agent list returned no agents array")
|
|
125
|
+
return [agent for agent in agents if isinstance(agent, dict)]
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def pane_snapshot(run=run_herdr, timeout: float = HERDR_TIMEOUT_S) -> tuple[dict[tuple[str | None, str], dict], int]:
|
|
129
|
+
"""The panes we can join, and how many panes herdr reported in total.
|
|
130
|
+
|
|
131
|
+
One `herdr agent list` for both numbers. The total includes panes with no
|
|
132
|
+
peer annotation, which is the point: it is what lets the panel tell "herdr
|
|
133
|
+
sees nothing at all" apart from "herdr sees panes, none of them is yours".
|
|
134
|
+
"""
|
|
135
|
+
agents = list_agents(run, timeout)
|
|
136
|
+
return panes_from_agents(agents), len(agents)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def panes_by_peer_key(run=run_herdr, timeout: float = HERDR_TIMEOUT_S) -> dict[tuple[str | None, str], dict]:
|
|
140
|
+
"""Panes keyed by the `(project, name)` coms peer they advertise."""
|
|
141
|
+
return panes_from_agents(list_agents(run, timeout))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def panes_from_agents(agents: list[dict]) -> dict[tuple[str | None, str], dict]:
|
|
145
|
+
"""Panes keyed by the `(project, name)` coms peer they advertise.
|
|
146
|
+
|
|
147
|
+
Panes without a peer annotation are dropped: they are not Agent Fleet
|
|
148
|
+
sessions (or have not reported presence yet), and the registry side of the
|
|
149
|
+
join is what decides who exists. Two panes claiming one key collapse to a
|
|
150
|
+
single ambiguous marker — a wrong status on the right row is worse than an
|
|
151
|
+
honest "unknown".
|
|
152
|
+
"""
|
|
153
|
+
claims: dict[tuple[str | None, str], list[dict]] = {}
|
|
154
|
+
for agent in agents:
|
|
155
|
+
key = peer_key(agent)
|
|
156
|
+
if not key:
|
|
157
|
+
continue
|
|
158
|
+
pane = {field: agent.get(field) for field in _PANE_FIELDS if agent.get(field) is not None}
|
|
159
|
+
pane["state"] = normalize_state(agent.get("agent_status"))
|
|
160
|
+
claims.setdefault(key, []).append(pane)
|
|
161
|
+
|
|
162
|
+
panes: dict[tuple[str | None, str], dict] = {}
|
|
163
|
+
for key, matches in claims.items():
|
|
164
|
+
panes[key] = matches[0] if len(matches) == 1 else {"state": "unknown", "ambiguous": True}
|
|
165
|
+
return panes
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
# herdr's own ids (`wA`, `wA:p13`). Validated before reaching argv even though
|
|
169
|
+
# nothing here goes through a shell: an id is a machine token, and the moment a
|
|
170
|
+
# renderer can put arbitrary text in one, "not a shell" is the only thing left
|
|
171
|
+
# between it and the command line.
|
|
172
|
+
_WORKSPACE_ID = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$")
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def focus_workspace(workspace_id, run=run_herdr, timeout: float = HERDR_TIMEOUT_S) -> None:
|
|
176
|
+
"""Bring a workspace forward. The only write this module makes.
|
|
177
|
+
|
|
178
|
+
Raises `HerdrUnavailable` when herdr refuses or cannot be reached — the
|
|
179
|
+
caller turns that into an answer on screen, because a focus that silently
|
|
180
|
+
did nothing is worse than one that says it failed.
|
|
181
|
+
"""
|
|
182
|
+
if not isinstance(workspace_id, str) or not _WORKSPACE_ID.match(workspace_id):
|
|
183
|
+
raise HerdrUnavailable(f"not a herdr workspace id: {workspace_id!r}")
|
|
184
|
+
run([HERDR_BIN, "workspace", "focus", workspace_id], timeout)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def herdr_version(run=run_herdr, timeout: float = HERDR_TIMEOUT_S) -> str | None:
|
|
188
|
+
"""Reported for `/capabilities` only — never gates behaviour."""
|
|
189
|
+
try:
|
|
190
|
+
text = run([HERDR_BIN, "--version"], timeout).strip()
|
|
191
|
+
except HerdrUnavailable:
|
|
192
|
+
return None
|
|
193
|
+
return text.splitlines()[0].strip() if text else None
|