@chankov/agent-fleet 2.0.23 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.pi/agent-fleet/scripts/fleet.ts +3 -0
- package/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +122 -0
- package/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +349 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +72 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +53 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +111 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +173 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +384 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +81 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.pi/agent-fleet/scripts/lib/fleet-command.ts +2 -0
- package/.pi/agent-fleet/scripts/package-lock.json +22 -0
- package/.pi/agent-fleet/scripts/package.json +1 -0
- package/.pi/agents/voices.yaml +1 -1
- package/.pi/harnesses/agent-hub/README.md +61 -4
- package/.pi/harnesses/agent-hub/acceptance.ts +8 -4
- package/.pi/harnesses/agent-hub/access-approval.ts +146 -21
- package/.pi/harnesses/agent-hub/assertion-ledger.js +1 -0
- package/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/context.ts +1 -0
- package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +2 -2
- package/.pi/harnesses/agent-hub/damage-guard-approval.ts +41 -17
- package/.pi/harnesses/agent-hub/damage-guard-hub.ts +16 -9
- package/.pi/harnesses/agent-hub/damage-guard-state.ts +2 -2
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +4 -1
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +4 -1
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +5 -0
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +1 -1
- package/.pi/harnesses/agent-hub/index.ts +73 -8
- package/.pi/harnesses/agent-hub/input/shortcuts.ts +3 -0
- package/.pi/harnesses/agent-hub/no-progress.ts +3 -3
- package/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.pi/harnesses/agent-hub/orchestration-activation.ts +1 -1
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.pi/harnesses/agent-hub/process-obligations.ts +8 -3
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +1 -1
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +1 -1
- package/.pi/harnesses/agent-hub/return-contract.js +24 -2
- package/.pi/harnesses/agent-hub/review-reuse.ts +3 -3
- package/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.pi/harnesses/agent-hub/runtime-receipts.ts +60 -0
- package/.pi/harnesses/agent-hub/runtime-test-check.ts +11 -0
- package/.pi/harnesses/agent-hub/spawn.ts +50 -13
- package/.pi/harnesses/agent-hub/specialist-result.ts +15 -6
- package/.pi/harnesses/agent-hub/system1-communication-store.ts +8 -0
- package/.pi/harnesses/agent-hub/task-resume-contract.ts +5 -0
- package/.pi/harnesses/agent-hub/task-triage-authorization.ts +36 -17
- package/.pi/harnesses/agent-hub/tools/coms-tools.ts +4 -4
- package/.pi/harnesses/agent-hub/tools/context.ts +2 -1
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +133 -40
- package/.pi/harnesses/agent-hub/tools/verification-contract.ts +1 -0
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +3 -1
- package/.pi/harnesses/agent-hub/work-mode.ts +3 -1
- package/.pi/harnesses/ask-user-remote/README.md +2 -2
- package/.pi/harnesses/ask-user-remote/questions.ts +49 -2
- package/.pi/harnesses/ask-user-remote/runtime-ask.ts +13 -6
- package/.pi/harnesses/coms/README.md +5 -0
- package/.pi/harnesses/coms/index.ts +25 -2
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/index.ts +69 -31
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/bash-policy-analysis.ts +1 -1
- package/.pi/harnesses/lib/coms-core-io.ts +8 -1
- package/.pi/harnesses/lib/coms-core.ts +42 -8
- package/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.pi/harnesses/lib/damage-control-shared.ts +46 -15
- package/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.pi/harnesses/lib/fleet-codex-event-bridge.ts +81 -0
- package/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +3 -1
- package/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.pi/harnesses/lib/update-check.ts +5 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.1.0/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fleet.ts +248 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +122 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +349 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +72 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +53 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +111 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +173 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +384 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +81 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-command.ts +268 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/team-up.ts +385 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.1.0/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.1.0/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.1.0/.pi/agents/peers.yaml +147 -0
- package/.versions/2.1.0/.pi/agents/teams.yaml +41 -0
- package/.versions/2.1.0/.pi/agents/voices.yaml +13 -0
- package/.versions/2.1.0/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.1.0/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.1.0/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.1.0/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.1.0/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.1.0/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.1.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.1.0/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.1.0/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.1.0/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.1.0/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.1.0/.pi/extensions/package.json +9 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/README.md +1584 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/config/agents.ts +181 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +298 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +260 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/index.ts +2682 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/input/shortcuts.ts +23 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/no-progress.ts +622 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/process-obligations.ts +164 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/runtime-receipts.ts +60 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/runtime-test-check.ts +79 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/scope-gate.js +233 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-resume-contract.ts +75 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/context.ts +145 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +734 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +157 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/work-mode.ts +188 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.1.0/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.1.0/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.1.0/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.1.0/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.1.0/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.1.0/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-core.ts +720 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.1.0/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.1.0/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-codex-event-bridge.ts +81 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.1.0/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.1.0/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.1.0/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.1.0/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.1.0/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.1.0/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.1.0/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.1.0/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.1.0/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.1.0/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.1.0/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.1.0/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.1.0/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.1.0/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.1.0/.pi/harnesses/package.json +13 -0
- package/.versions/2.1.0/.pi/prompts/af-build.md +27 -0
- package/.versions/2.1.0/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.1.0/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.1.0/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.1.0/.pi/prompts/af-review.md +16 -0
- package/.versions/2.1.0/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.1.0/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.1.0/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.1.0/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.1.0/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.1.0/.pi/prompts/af-test.md +19 -0
- package/.versions/2.1.0/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.1.0/.version +1 -0
- package/.versions/2.1.0/agents/architect.md +24 -0
- package/.versions/2.1.0/agents/bowser.md +28 -0
- package/.versions/2.1.0/agents/builder.md +55 -0
- package/.versions/2.1.0/agents/code-reviewer.md +209 -0
- package/.versions/2.1.0/agents/deep-researcher.md +32 -0
- package/.versions/2.1.0/agents/documenter.md +22 -0
- package/.versions/2.1.0/agents/orchestrator.md +22 -0
- package/.versions/2.1.0/agents/plan-reviewer.md +83 -0
- package/.versions/2.1.0/agents/planner.md +107 -0
- package/.versions/2.1.0/agents/releaser.md +24 -0
- package/.versions/2.1.0/agents/researcher.md +30 -0
- package/.versions/2.1.0/agents/security-auditor.md +167 -0
- package/.versions/2.1.0/agents/test-engineer.md +153 -0
- package/.versions/2.1.0/agents/web-debugger.md +44 -0
- package/.versions/2.1.0/agents/web-performance-auditor.md +194 -0
- package/.versions/2.1.0/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.1.0/docs/ARCHITECTURE.md +1158 -0
- package/.versions/2.1.0/docs/agent-fleet-setup.md +1143 -0
- package/.versions/2.1.0/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.1.0/docs/codex-local-mcp.md +434 -0
- package/.versions/2.1.0/docs/codex-session-bridge.md +44 -0
- package/.versions/2.1.0/docs/codex-setup.md +183 -0
- package/.versions/2.1.0/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.1.0/docs/fleet-native-voice.md +135 -0
- package/.versions/2.1.0/docs/getting-started.md +126 -0
- package/.versions/2.1.0/docs/npm-install.md +535 -0
- package/.versions/2.1.0/docs/pi-extensions.md +455 -0
- package/.versions/2.1.0/docs/pi-setup.md +92 -0
- package/.versions/2.1.0/docs/skill-anatomy.md +150 -0
- package/.versions/2.1.0/install-manifest.json +3216 -0
- package/.versions/2.1.0/justfile +247 -0
- package/.versions/2.1.0/manifest-meta.json +1086 -0
- package/.versions/2.1.0/references/accessibility-checklist.md +160 -0
- package/.versions/2.1.0/references/communication-contract.md +26 -0
- package/.versions/2.1.0/references/definition-of-done.md +67 -0
- package/.versions/2.1.0/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.1.0/references/observability-checklist.md +92 -0
- package/.versions/2.1.0/references/orchestration-patterns.md +370 -0
- package/.versions/2.1.0/references/performance-checklist.md +236 -0
- package/.versions/2.1.0/references/prompting-patterns.md +380 -0
- package/.versions/2.1.0/references/security-checklist.md +245 -0
- package/.versions/2.1.0/references/testing-patterns.md +235 -0
- package/.versions/2.1.0/references/workflow-authoring.md +304 -0
- package/.versions/2.1.0/skills/_internal/grilling.md +59 -0
- package/.versions/2.1.0/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.1.0/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.0/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.1.0/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.1.0/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.0/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.1.0/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.0/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.1.0/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.1.0/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.1.0/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.1.0/skills/fleet-native-voice/SKILL.md +73 -0
- package/.versions/2.1.0/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.1.0/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.1.0/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.1.0/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.1.0/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.0/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.0/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.0/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.1.0/skills/incremental-implementation.zip +0 -0
- package/.versions/2.1.0/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.1.0/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.1.0/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.1.0/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.0/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.1.0/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.1.0/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.1.0/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.1.0/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.0/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.1.0/skills/spec-driven-development.zip +0 -0
- package/.versions/2.1.0/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +21 -5
- package/README.md +12 -11
- package/agents/architect.md +1 -1
- package/agents/bowser.md +1 -1
- package/agents/builder.md +1 -1
- package/agents/code-reviewer.md +1 -1
- package/agents/plan-reviewer.md +1 -1
- package/agents/planner.md +1 -1
- package/agents/test-engineer.md +1 -1
- package/agents/web-debugger.md +1 -1
- package/agents/web-performance-auditor.md +1 -1
- package/bin/cli.js +115 -1
- package/bin/lib/apply.js +8 -1
- package/bin/lib/features.js +4 -1
- package/bin/lib/hermes-profile-artifact.js +21 -10
- package/bin/lib/inspect.js +103 -0
- package/bin/lib/mcp-probe.js +104 -0
- package/bin/lib/public-plan.js +2 -0
- package/bin/lib/repair-desired.js +1 -1
- package/bin/lib/set-codex-mcp.js +699 -0
- package/bin/lib/skill-zip.js +222 -0
- package/bin/snapshot-version.js +3 -1
- package/docs/ARCHITECTURE.md +147 -12
- package/docs/MIGRATION-agent-fleet.md +2 -2
- package/docs/agent-fleet-setup.md +39 -2
- package/docs/codex-local-mcp.md +434 -0
- package/docs/codex-session-bridge.md +28 -203
- package/docs/codex-setup.md +183 -0
- package/docs/fleet-native-voice.md +135 -0
- package/docs/npm-install.md +2 -2
- package/docs/session-worktree-targeting.md +79 -79
- package/docs/system1-agentic.md +1 -1
- package/docs/workflows.md +2 -2
- package/install-manifest.json +31 -66
- package/manifest-meta.json +47 -57
- package/package.json +12 -7
- package/skills/fleet-native-voice.zip +0 -0
- package/skills/incremental-implementation/SKILL.md +1 -1
- package/skills/incremental-implementation.zip +0 -0
- package/.pi/agent-fleet/scripts/fleet-codex-client.ts +0 -69
- package/.pi/agent-fleet/scripts/fleet-codex-read.py +0 -148
- package/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +0 -63
- package/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +0 -190
- package/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +0 -166
- package/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +0 -124
- package/codex/fleet-session-client/SKILL.md +0 -34
- package/codex/fleet-session-client.zip +0 -0
package/manifest-meta.json
CHANGED
|
@@ -173,7 +173,8 @@
|
|
|
173
173
|
"exclude": {
|
|
174
174
|
"_comment": "Installer-only or non-artifact entries that must never appear as menu rows.",
|
|
175
175
|
"skills": [
|
|
176
|
-
"_internal"
|
|
176
|
+
"_internal",
|
|
177
|
+
"fleet-native-voice"
|
|
177
178
|
],
|
|
178
179
|
"personas": [],
|
|
179
180
|
"commands": [
|
|
@@ -580,7 +581,15 @@
|
|
|
580
581
|
"companion:session-worktree-guide": {
|
|
581
582
|
"title": "Session worktree targeting guide",
|
|
582
583
|
"summary": "Workspace/target roots, consent, resume and integration boundaries",
|
|
583
|
-
"agents": {
|
|
584
|
+
"agents": {
|
|
585
|
+
"pi": {
|
|
586
|
+
"source": [
|
|
587
|
+
"docs/session-worktree-targeting.md"
|
|
588
|
+
],
|
|
589
|
+
"target": ".pi/agent-fleet/docs/session-worktree-targeting.md",
|
|
590
|
+
"strategy": "copy-file"
|
|
591
|
+
}
|
|
592
|
+
}
|
|
584
593
|
},
|
|
585
594
|
"companion:skills-internal-grilling": {
|
|
586
595
|
"title": "skills/_internal/grilling.md",
|
|
@@ -783,6 +792,28 @@
|
|
|
783
792
|
".pi/agent-fleet/scripts/package.json",
|
|
784
793
|
".pi/agent-fleet/scripts/package-lock.json",
|
|
785
794
|
".pi/agent-fleet/scripts/lib/flow-command.ts",
|
|
795
|
+
".pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts",
|
|
796
|
+
".pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts",
|
|
797
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts",
|
|
798
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts",
|
|
799
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts",
|
|
800
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts",
|
|
801
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-resync.ts",
|
|
802
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts",
|
|
803
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts",
|
|
804
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts",
|
|
805
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-observe.ts",
|
|
806
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-overview.ts",
|
|
807
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts",
|
|
808
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts",
|
|
809
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts",
|
|
810
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-answers.ts",
|
|
811
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts",
|
|
812
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts",
|
|
813
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts",
|
|
814
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts",
|
|
815
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts",
|
|
816
|
+
".pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts",
|
|
786
817
|
".pi/agent-fleet/scripts/lib/flow-maintenance.ts",
|
|
787
818
|
".pi/agent-fleet/scripts/lib/resource-closure.js",
|
|
788
819
|
".pi/agent-fleet/scripts/workflows",
|
|
@@ -812,6 +843,14 @@
|
|
|
812
843
|
".pi/harnesses/agent-hub/agentic-sources-worker.mjs",
|
|
813
844
|
".pi/harnesses/agent-hub/system1-communication-store.ts",
|
|
814
845
|
".pi/harnesses/agent-hub/task-triage-contract.ts",
|
|
846
|
+
".pi/harnesses/agent-hub/permission-relay.ts",
|
|
847
|
+
".pi/harnesses/agent-hub/permission-channel.ts",
|
|
848
|
+
".pi/harnesses/agent-hub/task-triage-authorization.ts",
|
|
849
|
+
".pi/harnesses/agent-hub/action-authorization.ts",
|
|
850
|
+
".pi/harnesses/agent-hub/task-triage-obligations.ts",
|
|
851
|
+
".pi/harnesses/agent-hub/process-obligations.ts",
|
|
852
|
+
".pi/harnesses/agent-hub/runtime-receipts.ts",
|
|
853
|
+
".pi/harnesses/agent-hub/review-reuse.ts",
|
|
815
854
|
".pi/harnesses/agent-hub/runtime-test-check.ts",
|
|
816
855
|
".pi/harnesses/agent-hub/tool-protocol.ts",
|
|
817
856
|
".pi/harnesses/agent-hub/policy/profile-runtime.ts",
|
|
@@ -900,51 +939,6 @@
|
|
|
900
939
|
],
|
|
901
940
|
"cwd": "."
|
|
902
941
|
}
|
|
903
|
-
},
|
|
904
|
-
"companion:fleet-client-runtime": {
|
|
905
|
-
"title": "Lightweight ChatGPT Fleet client",
|
|
906
|
-
"summary": "Local instruction and read client; no daemon or model calls",
|
|
907
|
-
"stability": "experimental",
|
|
908
|
-
"agents": {
|
|
909
|
-
"pi": {
|
|
910
|
-
"source": [
|
|
911
|
-
".pi/agent-fleet/scripts/fleet-codex-client.ts",
|
|
912
|
-
".pi/agent-fleet/scripts/fleet-codex-read.py",
|
|
913
|
-
".pi/agent-fleet/scripts/package.json",
|
|
914
|
-
".pi/agent-fleet/scripts/lib/fleet-codex-session.ts",
|
|
915
|
-
".pi/agent-fleet/scripts/lib/fleet-codex-operations.ts",
|
|
916
|
-
".pi/agent-fleet/scripts/lib/fleet-codex-transport.ts",
|
|
917
|
-
".pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts",
|
|
918
|
-
".pi/agent-fleet/scripts/lib/coms-envelope.ts",
|
|
919
|
-
".pi/harnesses/lib/herdr-client.ts",
|
|
920
|
-
".pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py",
|
|
921
|
-
".pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py",
|
|
922
|
-
".pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py",
|
|
923
|
-
".pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py"
|
|
924
|
-
],
|
|
925
|
-
"sourceMode": "all",
|
|
926
|
-
"preserveLayout": true,
|
|
927
|
-
"target": null,
|
|
928
|
-
"strategy": "copy-tree"
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
},
|
|
932
|
-
"companion:fleet-client-skill": {
|
|
933
|
-
"title": "ChatGPT Fleet client skill",
|
|
934
|
-
"summary": "Workspace Codex skill for the explicit session client",
|
|
935
|
-
"stability": "experimental",
|
|
936
|
-
"agents": {
|
|
937
|
-
"pi": {
|
|
938
|
-
"source": [
|
|
939
|
-
"codex/fleet-session-client"
|
|
940
|
-
],
|
|
941
|
-
"target": ".agents/skills/fleet-session-client",
|
|
942
|
-
"strategy": "copy-tree"
|
|
943
|
-
}
|
|
944
|
-
},
|
|
945
|
-
"companions": [
|
|
946
|
-
"companion:fleet-client-runtime"
|
|
947
|
-
]
|
|
948
942
|
}
|
|
949
943
|
},
|
|
950
944
|
"externalPackages": {
|
|
@@ -1070,14 +1064,6 @@
|
|
|
1070
1064
|
"skill:peer-coms"
|
|
1071
1065
|
]
|
|
1072
1066
|
},
|
|
1073
|
-
"chatgpt-client": {
|
|
1074
|
-
"title": "ChatGPT Fleet session client",
|
|
1075
|
-
"stability": "experimental",
|
|
1076
|
-
"items": [
|
|
1077
|
-
"companion:fleet-client-runtime",
|
|
1078
|
-
"companion:fleet-client-skill"
|
|
1079
|
-
]
|
|
1080
|
-
},
|
|
1081
1067
|
"system1": {
|
|
1082
1068
|
"title": "System 1 provider foundation",
|
|
1083
1069
|
"stability": "experimental",
|
|
@@ -1089,8 +1075,12 @@
|
|
|
1089
1075
|
"system1-task-triage": {
|
|
1090
1076
|
"title": "Active System 1 task triage (separate data consent required)",
|
|
1091
1077
|
"stability": "experimental",
|
|
1092
|
-
"requiresFeatures": [
|
|
1093
|
-
|
|
1078
|
+
"requiresFeatures": [
|
|
1079
|
+
"system1"
|
|
1080
|
+
],
|
|
1081
|
+
"items": [
|
|
1082
|
+
"pi-harness:agent-hub"
|
|
1083
|
+
]
|
|
1094
1084
|
}
|
|
1095
1085
|
}
|
|
1096
1086
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chankov/agent-fleet",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Subagent orchestration for the pi coding agent — a thin dispatcher runs parallel subagents under a verification contract, keeping their output out of its context window. Multi-agent fleets, 15 personas, skills, herdr panes, peer coms, Hermes desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"subagents",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"bin/",
|
|
58
58
|
"catalog/",
|
|
59
59
|
"skills/",
|
|
60
|
+
"!skills/fleet-native-voice/",
|
|
60
61
|
"agents/",
|
|
61
62
|
".pi/prompts/",
|
|
62
63
|
".pi/extensions/*.json",
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
".pi/agents/",
|
|
83
84
|
".pi/damage-control-rules.yaml",
|
|
84
85
|
".pi/agent-fleet/scripts/*.ts",
|
|
86
|
+
".pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs",
|
|
85
87
|
".pi/agent-fleet/scripts/package.json",
|
|
86
88
|
".pi/agent-fleet/scripts/package-lock.json",
|
|
87
89
|
".pi/agent-fleet/scripts/workflows/*.ts",
|
|
@@ -93,7 +95,6 @@
|
|
|
93
95
|
"!.pi/agent-fleet/scripts/hermes-monitor-scenario.test.ts",
|
|
94
96
|
".pi/agent-fleet/scripts/lib/*.ts",
|
|
95
97
|
".pi/agent-fleet/scripts/lib/*.js",
|
|
96
|
-
"codex/",
|
|
97
98
|
".pi/agent-fleet/hermes/README.md",
|
|
98
99
|
".pi/agent-fleet/hermes/skills/",
|
|
99
100
|
".pi/agent-fleet/hermes/plugins/",
|
|
@@ -139,8 +140,10 @@
|
|
|
139
140
|
"!**/*-test.sh",
|
|
140
141
|
"!**/.DS_Store",
|
|
141
142
|
"!docs/plans/**",
|
|
142
|
-
".pi/agent-fleet/scripts/fleet-codex-read.py",
|
|
143
143
|
"docs/codex-session-bridge.md",
|
|
144
|
+
"docs/codex-local-mcp.md",
|
|
145
|
+
"docs/fleet-native-voice.md",
|
|
146
|
+
"docs/codex-setup.md",
|
|
144
147
|
".pi/harnesses/agent-hub/proactive-snapshot-worker.mjs",
|
|
145
148
|
"!**/task-triage*.user-run.mjs",
|
|
146
149
|
"docs/system1-config.md",
|
|
@@ -165,8 +168,9 @@
|
|
|
165
168
|
"test:damage-guard": "cd bin/test/helpers && NODE_OPTIONS=\"--import=$PWD/system1-no-network.js\" node --test --test-timeout=120000 --test-concurrency=2 ../../../.pi/harnesses/agent-hub/damage-guard-*.test.ts ../../../.pi/harnesses/agent-hub/action-authorization.test.ts ../../../.pi/harnesses/agent-hub/approval-wait.test.ts ../../../.pi/harnesses/agent-hub/system1-communication-store.test.ts ../../../.pi/harnesses/agent-hub/spawn-system1-env.test.ts ../../../.pi/harnesses/damage-control-continue/system1-*.test.ts ../../../.pi/harnesses/damage-control-continue/result*.test.ts ../../../.pi/harnesses/damage-control-continue/exemptions.test.js ../../../.pi/harnesses/lib/damage-guard-port.test.ts ../../../.pi/harnesses/lib/damage-guard-loader.test.ts ../../../.pi/harnesses/lib/damage-result-evidence.test.ts ../../../.pi/harnesses/lib/system1/config-damage-guard.test.js ../../../.pi/harnesses/lib/system1/config-v2.test.js ../../../.pi/harnesses/lib/system1/config-context-compaction.test.js ../../../.pi/harnesses/lib/system1/config-example.test.js ../../../.pi/harnesses/lib/system1/payload-screen.test.ts",
|
|
166
169
|
"test:fast": "node bin/test/run-fast.js",
|
|
167
170
|
"test:context-continuity": "node --import ./bin/test/helpers/system1-no-network.js --test --test-timeout=120000 --test-concurrency=2 .pi/harnesses/agent-hub/context-continuity*.test.ts .pi/harnesses/agent-hub/context-compaction*.test.ts .pi/harnesses/lib/system1/config-context-compaction.test.js .pi/harnesses/agent-hub/lifecycle/lifecycle.test.ts .pi/harnesses/agent-hub/policy/work-mode.test.ts .pi/harnesses/agent-hub/context/budgets.test.ts .pi/harnesses/agent-hub/tools/action-executors.test.ts .pi/harnesses/agent-hub/budget-continuation.integration.test.ts",
|
|
168
|
-
"test:full": "npm run test:fast && npm run typecheck:workflows && npm run typecheck:hub && npm run test:system1 && npm run test:task-triage && npm run test:task-triage-pilot && node bin/cli.js --version && node bin/cli.js --help && node --test --test-timeout=120000 bin/test/setup-tty.test.js && node --test --test-skip-pattern='real TTY|readline-owned' --test-concurrency=4 --test-timeout=120000 bin/test/*.test.js .pi/agent-fleet/scripts/agent-hub-helpers.test.mjs .pi/agent-fleet/scripts/agent-hub-spawn.test.mjs .pi/agent-fleet/scripts/agent-hub-delegate.test.mjs .pi/agent-fleet/scripts/agent-hub-research.test.mjs .pi/harnesses/lib/herdr-client.test.ts .pi/harnesses/lib/herdr-presence.test.ts .pi/harnesses/lib/coms-registry-entry.test.ts .pi/harnesses/lib/coms-core.test.ts .pi/harnesses/lib/fleet-overlay.test.ts .pi/harnesses/lib/fleet-selection.test.ts .pi/harnesses/lib/fleet-panel.test.ts .pi/harnesses/lib/context-budget.test.ts .pi/harnesses/lib/context-budget-view.test.ts .pi/harnesses/lib/context-budget-hub-prompt.test.ts .pi/harnesses/lib/context-budget-child-prompt.test.ts .pi/harnesses/agent-hub/prompts/system-prompt.test.ts .pi/harnesses/agent-hub/prompts/session-start.test.ts .pi/harnesses/agent-hub/session-start.test.ts .pi/harnesses/agent-hub/context-budget-snapshot.test.ts .pi/harnesses/agent-hub/context-budget.integration.test.ts .pi/harnesses/agent-hub/context-pressure.test.ts .pi/harnesses/agent-hub/capability-packs.test.ts .pi/harnesses/agent-hub/capability-confirmation.test.ts .pi/harnesses/agent-hub/capability-matrix.test.ts .pi/harnesses/lib/fleet-read-model.test.ts .pi/harnesses/lib/fleet-strip-view.test.ts .pi/harnesses/lib/fleet-strip-controller.test.ts .pi/harnesses/lib/fleet-dashboard-view.test.ts .pi/harnesses/lib/fleet-dashboard-ops.test.ts .pi/harnesses/lib/fleet-detail-view.test.ts .pi/harnesses/lib/fleet-transcript-store.test.ts .pi/harnesses/agent-hub/fleet-dashboard.integration.test.ts .pi/agent-fleet/scripts/coms-cli.test.ts .pi/agent-fleet/scripts/fleet-codex-client.test.ts .pi/agent-fleet/scripts/fleet-codex-transport.test.ts .pi/agent-fleet/scripts/fleet-codex-questions.test.ts .pi/agent-fleet/scripts/lib/fleet-command.test.ts .pi/agent-fleet/scripts/lib/flow-command.test.ts .pi/agent-fleet/scripts/lib/flow-maintenance.test.ts .pi/agent-fleet/scripts/workflows/lib/env.test.ts .pi/agent-fleet/scripts/workflows/lib/git.test.ts .pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.test.ts .pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.test.ts .pi/agent-fleet/scripts/workflows/lib/run.test.ts .pi/agent-fleet/scripts/workflows/lib/quality.test.ts .pi/agent-fleet/scripts/workflows/lib/changes.test.ts .pi/agent-fleet/scripts/workflows/lib/gates.test.ts .pi/agent-fleet/scripts/workflows/lib/permissions.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes.test.ts .pi/agent-fleet/scripts/workflows/lib/agent-phase.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes-triad.test.ts .pi/agent-fleet/scripts/workflows/lib/voices.test.ts .pi/agent-fleet/scripts/workflows/lib/model-visibility.test.ts .pi/agent-fleet/scripts/workflows/lib/poll.test.ts .pi/agent-fleet/scripts/workflows/lib/merge.test.ts .pi/agent-fleet/scripts/workflows/lib/debate.test.ts .pi/agent-fleet/scripts/workflows/lib/writer-lease.test.ts .pi/agent-fleet/scripts/workflows/wf-scout.test.ts .pi/agent-fleet/scripts/workflows/wf-build-test.test.ts .pi/agent-fleet/scripts/workflows/wf-document.test.ts .pi/agent-fleet/scripts/workflows/wf-poll.test.ts .pi/agent-fleet/scripts/workflows/wf-debate.test.ts skills/drafting-workflows/scripts/make-workflow.test.ts .pi/agent-fleet/scripts/lib/team-project.test.ts .pi/agent-fleet/scripts/lib/herdr-layout.test.ts .pi/agent-fleet/scripts/lib/peer-launch.test.ts .pi/agent-fleet/scripts/lib/spawn-stagger.test.ts .pi/agent-fleet/scripts/lib/monitor-env.test.ts .pi/agent-fleet/scripts/lib/fleet-extras.test.ts .pi/agent-fleet/scripts/lib/team-snapshot.test.ts .pi/agent-fleet/scripts/team-snapshot.command.test.ts .pi/agent-fleet/scripts/lib/coms-envelope.test.ts .pi/agent-fleet/scripts/lib/claude-bridge-core.test.ts .pi/agent-fleet/scripts/lib/hermes-bridge-core.test.ts .pi/agent-fleet/scripts/coms-hermes-bridge.test.ts .pi/harnesses/ask-user-remote/race-core.test.js .pi/harnesses/ask-user-remote/questions.test.ts .pi/harnesses/ask-user-remote/index.test.ts .pi/harnesses/agent-hub/extension-loader.test.ts .pi/harnesses/agent-hub/lifecycle/session-orchestration.test.ts .pi/harnesses/agent-hub/registration-surface.test.ts .pi/harnesses/agent-hub/external-policy-registration.test.ts .pi/agent-fleet/scripts/workflows/lib/project-policy.test.ts .pi/harnesses/agent-hub/poll-command.test.ts .pi/harnesses/agent-hub/debate-command.test.ts .pi/harnesses/agent-hub/delegate-thinking.test.ts .pi/harnesses/agent-hub/backend-routing.integration.test.ts .pi/harnesses/agent-hub/dispatch-core.test.ts .pi/extensions/btw/state.test.js .pi/extensions/btw/index.test.ts .pi/harnesses/agent-hub/work-mode.test.ts .pi/harnesses/agent-hub/work-mode-controls.test.ts .pi/harnesses/agent-hub/work-mode-integration.test.ts .pi/harnesses/agent-hub/policy/work-mode.test.ts .pi/harnesses/agent-hub/footer.test.ts .pi/harnesses/agent-hub/view-default.test.ts .pi/harnesses/agent-hub/overlay-migration.test.ts .pi/harnesses/agent-hub/safety-routing.test.ts .pi/harnesses/agent-hub/approval-routing.integration.test.ts .pi/harnesses/agent-hub/run-budget.test.js .pi/harnesses/agent-hub/budget-continuation.integration.test.ts .pi/harnesses/agent-hub/budget-recovery.test.ts .pi/harnesses/agent-hub/evidence-retention.test.ts .pi/harnesses/agent-hub/deterministic-fs.test.ts .pi/harnesses/agent-hub/filesystem-tool.integration.test.ts .pi/harnesses/agent-hub/bounded-output.test.ts .pi/harnesses/agent-hub/write-isolation.test.ts .pi/harnesses/agent-hub/session-audit.test.ts .pi/harnesses/agent-hub/drift-runtime.test.ts .pi/harnesses/agent-hub/spawn-system1-env.test.ts .pi/harnesses/agent-hub/drift-system1.test.ts .pi/harnesses/agent-hub/system1-runtime.test.ts .pi/harnesses/agent-hub/drift-judge.test.ts .pi/harnesses/agent-hub/system1-activity.test.ts .pi/harnesses/agent-hub/system1-timeline.test.ts .pi/harnesses/agent-hub/system1-report.test.ts .pi/harnesses/agent-hub/drift-system1-policy.test.ts .pi/harnesses/agent-hub/watchdog-evaluation.test.ts .pi/harnesses/agent-hub/diagnostic-series-budget.test.ts .pi/harnesses/agent-hub/diagnostic-probe-extension.test.ts .pi/harnesses/agent-hub/tools/run-flow.test.ts .pi/harnesses/agent-hub/t0a-synthetic-fixtures.test.ts .pi/harnesses/agent-hub/t4-t6-t10a-contract.red.test.ts .pi/harnesses/agent-hub/no-progress.test.ts .pi/harnesses/agent-hub/orchestration-metrics.test.ts .pi/harnesses/agent-hub/orchestration-route.test.ts .pi/harnesses/agent-hub/evidence-manifest.test.ts .pi/harnesses/agent-hub/review-closure.test.ts .pi/harnesses/agent-hub/rerun-policy.test.ts .pi/harnesses/agent-hub/routing-observation.test.ts .pi/harnesses/agent-hub/routing-proposal.test.ts .pi/harnesses/agent-hub/recover-state.test.ts .pi/harnesses/agent-hub/recover-policy.test.ts .pi/harnesses/agent-hub/reconcile.test.ts .pi/harnesses/agent-hub/recover.integration.test.ts .pi/harnesses/agent-hub/recovery-contract.test.ts .pi/harnesses/lib/approval-loader.test.ts .pi/harnesses/lib/damage-guard-loader.test.ts .pi/harnesses/lib/process-shared.test.ts .pi/extensions/compact-and-continue/index.test.ts .pi/harnesses/lib/semantic-approval.test.ts .pi/harnesses/lib/identical-dialog.test.ts .pi/harnesses/agent-hub/execution-trace.test.ts .pi/harnesses/damage-control-continue/false-positive-regressions.test.js .pi/harnesses/damage-control-continue/bash-policy-safety-review.test.js .pi/harnesses/damage-control-continue/bash-policy-lexical-review.test.js .pi/harnesses/agent-hub/review-reuse.test.ts .pi/harnesses/agent-hub/history-projection.test.ts .pi/harnesses/agent-hub/task-continuation.test.ts .pi/harnesses/agent-hub/acceptance.test.ts .pi/harnesses/agent-hub/runtime-test-check.test.ts .pi/harnesses/agent-hub/context/assertions-artifacts.test.ts .pi/harnesses/agent-hub/tools/action-executors.test.ts .pi/harnesses/agent-hub/tools/dispatch-execution.test.ts .pi/harnesses/agent-hub/context/budgets.test.ts .pi/harnesses/agent-hub/lifecycle/lifecycle.test.ts .pi/harnesses/ask-user-remote/runtime-ask.test.ts .pi/harnesses/agent-hub/hub-state-audit.test.js .pi/harnesses/agent-hub/docs-lane.test.js .pi/harnesses/agent-hub/external-blocker.test.js .pi/harnesses/agent-hub/run-namespace.test.js .pi/harnesses/agent-hub/review-findings.test.js .pi/harnesses/agent-hub/assertion-ledger.test.js .pi/harnesses/agent-hub/provider-semaphore.test.js .pi/harnesses/lib/spawned-peers.test.js .pi/harnesses/agent-hub/context-window.test.js .pi/harnesses/agent-hub/drift-watchdog.test.js .pi/harnesses/agent-hub/session-health.test.js .pi/harnesses/agent-hub/return-contract.test.js .pi/harnesses/agent-hub/return-extract.test.js .pi/harnesses/agent-hub/backend-policy.test.js .pi/harnesses/agent-hub/artifacts.test.js .pi/harnesses/agent-hub/scope-gate.test.js .pi/harnesses/agent-hub/evidence-rules.test.js .pi/harnesses/agent-hub/research/runtime.test.ts .pi/harnesses/agent-hub/research/controls.test.ts .pi/harnesses/agent-hub/ui/fleet-source.test.ts .pi/harnesses/agent-hub/input/shortcuts.test.ts .pi/harnesses/agent-hub/ui/fleet-editor.test.ts .pi/harnesses/agent-hub/ui/fleet-actions.test.ts .pi/harnesses/agent-hub/ui/grid.test.ts .pi/harnesses/agent-hub/ui/fleet-dashboard.test.ts .pi/harnesses/agent-hub/input/presentation.test.ts .pi/harnesses/agent-hub/config/overrides.test.ts .pi/harnesses/lib/damage-control-shared.test.ts .pi/harnesses/lib/changed-file-diagnostics.test.ts .pi/harnesses/lib/policy-roots.test.ts .pi/harnesses/lib/update-check.test.ts .pi/harnesses/damage-control-continue/herdr-rules.test.js .pi/harnesses/damage-control-continue/exemptions.test.js .pi/agent-fleet/scripts/lib/hermes-monitor-model.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-events.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-store.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-retention.integration.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-registry.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-data-path.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-slice7-9-backend.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-control-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-e2e.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-plugin-handshake.test.ts .pi/agent-fleet/scripts/hermes-monitor-capability-runner.test.ts .pi/agent-fleet/scripts/hermes-monitor-scenario.test.ts .pi/agent-fleet/scripts/hermes-watchdog-capability-probe.test.ts .pi/harnesses/agent-hub/monitor-invoke.test.ts .pi/harnesses/agent-hub/monitor-invoke-journal.test.ts .pi/harnesses/agent-hub/monitor-control.test.ts .pi/harnesses/agent-hub/monitor-live-bridge-gaps.test.ts .pi/harnesses/agent-hub/monitor-review-live-wiring.red.test.ts .pi/harnesses/agent-hub/monitor-runtime.test.ts .pi/harnesses/agent-hub/monitor-bridge-runtime.test.ts .pi/harnesses/agent-hub/monitor-reconcile.test.ts .pi/harnesses/agent-hub/monitor-recovery.test.ts .pi/harnesses/agent-hub/monitor-lifecycle-lease.test.ts .pi/harnesses/agent-hub/monitor-session-bridge-race.test.ts .pi/harnesses/agent-hub/monitor-session-bridge.test.ts .pi/harnesses/agent-hub/monitor-cancel-race.test.ts .pi/harnesses/agent-hub/monitor-wait-only.test.ts .pi/harnesses/agent-hub/monitor-publisher.test.ts .pi/harnesses/agent-hub/monitor-index.integration.test.ts .pi/harnesses/agent-hub/monitor-coms-turn.test.ts .pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.test.js .pi/harnesses/agent-hub/config/model-profiles.test.ts .pi/harnesses/agent-hub/policy/models.test.ts .pi/harnesses/agent-hub/policy/profile-activation.test.ts .pi/harnesses/agent-hub/profile-execution.test.ts .pi/agent-fleet/scripts/docs-links.test.mjs .pi/harnesses/agent-hub/proactive-*.test.ts && npm run test:watchdog-py",
|
|
169
|
-
"test:task-triage": "node --import ./bin/test/helpers/system1-no-network.js --experimental-strip-types --test --test-timeout=120000 .pi/harnesses/agent-hub/task-triage-config.test.ts .pi/harnesses/agent-hub/task-triage-state.test.ts .pi/harnesses/agent-hub/task-triage-policy.test.ts .pi/harnesses/agent-hub/task-triage-obligations.test.ts .pi/harnesses/agent-hub/task-triage-authorization.test.ts .pi/harnesses/agent-hub/task-triage-runtime.test.ts .pi/harnesses/agent-hub/task-triage-effects.integration.test.ts .pi/harnesses/agent-hub/task-triage-pressure.integration.test.ts .pi/harnesses/agent-hub/task-triage-persisted-compaction.integration.test.ts .pi/harnesses/agent-hub/task-triage-real-pi.integration.test.ts",
|
|
171
|
+
"test:damage-relay": "node --import ./bin/test/helpers/system1-no-network.js --experimental-strip-types --test --test-timeout=120000 .pi/agent-fleet/scripts/fleet-codex-permissions.integration.test.ts .pi/agent-fleet/scripts/fleet-codex-desktop-queue.test.ts .pi/agent-fleet/scripts/fleet-codex-catalog-readiness.test.ts .pi/agent-fleet/scripts/fleet-codex-event-*.test.ts .pi/agent-fleet/scripts/fleet-codex-relay-latency.test.ts .pi/harnesses/lib/damage-control-shared.test.ts .pi/harnesses/agent-hub/permission*.test.ts .pi/harnesses/agent-hub/access-approval-isolation.test.ts .pi/harnesses/lib/damage-auto-policy.test.ts .pi/harnesses/lib/damage-control-presentation.test.ts .pi/harnesses/lib/fleet-codex-event-bridge.test.ts .pi/harnesses/lib/damage-guard-loader.test.ts",
|
|
172
|
+
"test:full": "npm run test:fast && npm run test:damage-relay && npm run typecheck:workflows && npm run typecheck:hub && npm run test:system1 && npm run test:task-triage && npm run test:task-triage-pilot && node bin/cli.js --version && node bin/cli.js --help && node --test --test-timeout=120000 bin/test/setup-tty.test.js && node --test --test-skip-pattern='real TTY|readline-owned' --test-concurrency=4 --test-timeout=120000 bin/test/*.test.js .pi/agent-fleet/scripts/agent-hub-helpers.test.mjs .pi/agent-fleet/scripts/agent-hub-spawn.test.mjs .pi/agent-fleet/scripts/agent-hub-delegate.test.mjs .pi/agent-fleet/scripts/agent-hub-research.test.mjs .pi/harnesses/lib/herdr-client.test.ts .pi/harnesses/lib/herdr-presence.test.ts .pi/harnesses/lib/coms-registry-entry.test.ts .pi/harnesses/lib/coms-core.test.ts .pi/harnesses/lib/fleet-overlay.test.ts .pi/harnesses/lib/fleet-selection.test.ts .pi/harnesses/lib/fleet-panel.test.ts .pi/harnesses/lib/context-budget.test.ts .pi/harnesses/lib/context-budget-view.test.ts .pi/harnesses/lib/context-budget-hub-prompt.test.ts .pi/harnesses/lib/context-budget-child-prompt.test.ts .pi/harnesses/agent-hub/prompts/system-prompt.test.ts .pi/harnesses/agent-hub/prompts/session-start.test.ts .pi/harnesses/agent-hub/session-start.test.ts .pi/harnesses/agent-hub/context-budget-snapshot.test.ts .pi/harnesses/agent-hub/context-budget.integration.test.ts .pi/harnesses/agent-hub/context-pressure.test.ts .pi/harnesses/agent-hub/capability-packs.test.ts .pi/harnesses/agent-hub/capability-confirmation.test.ts .pi/harnesses/agent-hub/capability-matrix.test.ts .pi/harnesses/lib/fleet-read-model.test.ts .pi/harnesses/lib/fleet-strip-view.test.ts .pi/harnesses/lib/fleet-strip-controller.test.ts .pi/harnesses/lib/fleet-dashboard-view.test.ts .pi/harnesses/lib/fleet-dashboard-ops.test.ts .pi/harnesses/lib/fleet-detail-view.test.ts .pi/harnesses/lib/fleet-transcript-store.test.ts .pi/harnesses/agent-hub/fleet-dashboard.integration.test.ts .pi/agent-fleet/scripts/coms-cli.test.ts .pi/agent-fleet/scripts/fleet-codex*.test.ts .pi/agent-fleet/scripts/lib/fleet-command.test.ts .pi/agent-fleet/scripts/lib/flow-command.test.ts .pi/agent-fleet/scripts/lib/flow-maintenance.test.ts .pi/agent-fleet/scripts/workflows/lib/env.test.ts .pi/agent-fleet/scripts/workflows/lib/git.test.ts .pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.test.ts .pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.test.ts .pi/agent-fleet/scripts/workflows/lib/run.test.ts .pi/agent-fleet/scripts/workflows/lib/quality.test.ts .pi/agent-fleet/scripts/workflows/lib/changes.test.ts .pi/agent-fleet/scripts/workflows/lib/gates.test.ts .pi/agent-fleet/scripts/workflows/lib/permissions.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes.test.ts .pi/agent-fleet/scripts/workflows/lib/agent-phase.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes-triad.test.ts .pi/agent-fleet/scripts/workflows/lib/voices.test.ts .pi/agent-fleet/scripts/workflows/lib/model-visibility.test.ts .pi/agent-fleet/scripts/workflows/lib/poll.test.ts .pi/agent-fleet/scripts/workflows/lib/merge.test.ts .pi/agent-fleet/scripts/workflows/lib/debate.test.ts .pi/agent-fleet/scripts/workflows/lib/writer-lease.test.ts .pi/agent-fleet/scripts/workflows/wf-scout.test.ts .pi/agent-fleet/scripts/workflows/wf-build-test.test.ts .pi/agent-fleet/scripts/workflows/wf-document.test.ts .pi/agent-fleet/scripts/workflows/wf-poll.test.ts .pi/agent-fleet/scripts/workflows/wf-debate.test.ts skills/drafting-workflows/scripts/make-workflow.test.ts .pi/agent-fleet/scripts/lib/team-project.test.ts .pi/agent-fleet/scripts/lib/herdr-layout.test.ts .pi/agent-fleet/scripts/lib/peer-launch.test.ts .pi/agent-fleet/scripts/lib/spawn-stagger.test.ts .pi/agent-fleet/scripts/lib/monitor-env.test.ts .pi/agent-fleet/scripts/lib/fleet-extras.test.ts .pi/agent-fleet/scripts/lib/team-snapshot.test.ts .pi/agent-fleet/scripts/team-snapshot.command.test.ts .pi/agent-fleet/scripts/lib/coms-envelope.test.ts .pi/agent-fleet/scripts/lib/claude-bridge-core.test.ts .pi/agent-fleet/scripts/lib/hermes-bridge-core.test.ts .pi/agent-fleet/scripts/coms-hermes-bridge.test.ts .pi/harnesses/ask-user-remote/race-core.test.js .pi/harnesses/ask-user-remote/questions.test.ts .pi/harnesses/ask-user-remote/index.test.ts .pi/harnesses/agent-hub/extension-loader.test.ts .pi/harnesses/agent-hub/lifecycle/session-orchestration.test.ts .pi/harnesses/agent-hub/registration-surface.test.ts .pi/harnesses/agent-hub/external-policy-registration.test.ts .pi/agent-fleet/scripts/workflows/lib/project-policy.test.ts .pi/harnesses/agent-hub/poll-command.test.ts .pi/harnesses/agent-hub/debate-command.test.ts .pi/harnesses/agent-hub/delegate-thinking.test.ts .pi/harnesses/agent-hub/backend-routing.integration.test.ts .pi/harnesses/agent-hub/dispatch-core.test.ts .pi/extensions/btw/state.test.js .pi/extensions/btw/index.test.ts .pi/harnesses/agent-hub/work-mode.test.ts .pi/harnesses/agent-hub/work-mode-controls.test.ts .pi/harnesses/agent-hub/work-mode-integration.test.ts .pi/harnesses/agent-hub/policy/work-mode.test.ts .pi/harnesses/agent-hub/footer.test.ts .pi/harnesses/agent-hub/view-default.test.ts .pi/harnesses/agent-hub/overlay-migration.test.ts .pi/harnesses/agent-hub/safety-routing.test.ts .pi/harnesses/agent-hub/approval-routing.integration.test.ts .pi/harnesses/agent-hub/run-budget.test.js .pi/harnesses/agent-hub/budget-continuation.integration.test.ts .pi/harnesses/agent-hub/budget-recovery.test.ts .pi/harnesses/agent-hub/evidence-retention.test.ts .pi/harnesses/agent-hub/deterministic-fs.test.ts .pi/harnesses/agent-hub/filesystem-tool.integration.test.ts .pi/harnesses/agent-hub/bounded-output.test.ts .pi/harnesses/agent-hub/write-isolation.test.ts .pi/harnesses/agent-hub/session-audit.test.ts .pi/harnesses/agent-hub/drift-runtime.test.ts .pi/harnesses/agent-hub/spawn-system1-env.test.ts .pi/harnesses/agent-hub/drift-system1.test.ts .pi/harnesses/agent-hub/system1-runtime.test.ts .pi/harnesses/agent-hub/drift-judge.test.ts .pi/harnesses/agent-hub/system1-activity.test.ts .pi/harnesses/agent-hub/system1-timeline.test.ts .pi/harnesses/agent-hub/system1-report.test.ts .pi/harnesses/agent-hub/drift-system1-policy.test.ts .pi/harnesses/agent-hub/watchdog-evaluation.test.ts .pi/harnesses/agent-hub/diagnostic-series-budget.test.ts .pi/harnesses/agent-hub/diagnostic-probe-extension.test.ts .pi/harnesses/agent-hub/tools/run-flow.test.ts .pi/harnesses/agent-hub/t0a-synthetic-fixtures.test.ts .pi/harnesses/agent-hub/t4-t6-t10a-contract.red.test.ts .pi/harnesses/agent-hub/no-progress.test.ts .pi/harnesses/agent-hub/orchestration-metrics.test.ts .pi/harnesses/agent-hub/orchestration-route.test.ts .pi/harnesses/agent-hub/evidence-manifest.test.ts .pi/harnesses/agent-hub/review-closure.test.ts .pi/harnesses/agent-hub/rerun-policy.test.ts .pi/harnesses/agent-hub/routing-observation.test.ts .pi/harnesses/agent-hub/routing-proposal.test.ts .pi/harnesses/agent-hub/recover-state.test.ts .pi/harnesses/agent-hub/recover-policy.test.ts .pi/harnesses/agent-hub/reconcile.test.ts .pi/harnesses/agent-hub/recover.integration.test.ts .pi/harnesses/agent-hub/recovery-contract.test.ts .pi/harnesses/lib/approval-loader.test.ts .pi/harnesses/lib/damage-guard-loader.test.ts .pi/harnesses/lib/process-shared.test.ts .pi/extensions/compact-and-continue/index.test.ts .pi/harnesses/lib/semantic-approval.test.ts .pi/harnesses/lib/identical-dialog.test.ts .pi/harnesses/agent-hub/execution-trace.test.ts .pi/harnesses/damage-control-continue/false-positive-regressions.test.js .pi/harnesses/damage-control-continue/bash-policy-safety-review.test.js .pi/harnesses/damage-control-continue/bash-policy-lexical-review.test.js .pi/harnesses/agent-hub/review-reuse.test.ts .pi/harnesses/agent-hub/history-projection.test.ts .pi/harnesses/agent-hub/task-continuation.test.ts .pi/harnesses/agent-hub/acceptance.test.ts .pi/harnesses/agent-hub/runtime-test-check.test.ts .pi/harnesses/agent-hub/context/assertions-artifacts.test.ts .pi/harnesses/agent-hub/tools/action-executors.test.ts .pi/harnesses/agent-hub/tools/dispatch-execution.test.ts .pi/harnesses/agent-hub/context/budgets.test.ts .pi/harnesses/agent-hub/lifecycle/lifecycle.test.ts .pi/harnesses/ask-user-remote/runtime-ask.test.ts .pi/harnesses/agent-hub/hub-state-audit.test.js .pi/harnesses/agent-hub/docs-lane.test.js .pi/harnesses/agent-hub/external-blocker.test.js .pi/harnesses/agent-hub/run-namespace.test.js .pi/harnesses/agent-hub/review-findings.test.js .pi/harnesses/agent-hub/assertion-ledger.test.js .pi/harnesses/agent-hub/provider-semaphore.test.js .pi/harnesses/lib/spawned-peers.test.js .pi/harnesses/agent-hub/context-window.test.js .pi/harnesses/agent-hub/drift-watchdog.test.js .pi/harnesses/agent-hub/session-health.test.js .pi/harnesses/agent-hub/return-contract.test.js .pi/harnesses/agent-hub/return-extract.test.js .pi/harnesses/agent-hub/backend-policy.test.js .pi/harnesses/agent-hub/artifacts.test.js .pi/harnesses/agent-hub/scope-gate.test.js .pi/harnesses/agent-hub/evidence-rules.test.js .pi/harnesses/agent-hub/research/runtime.test.ts .pi/harnesses/agent-hub/research/controls.test.ts .pi/harnesses/agent-hub/ui/fleet-source.test.ts .pi/harnesses/agent-hub/input/shortcuts.test.ts .pi/harnesses/agent-hub/ui/fleet-editor.test.ts .pi/harnesses/agent-hub/ui/fleet-actions.test.ts .pi/harnesses/agent-hub/ui/grid.test.ts .pi/harnesses/agent-hub/ui/fleet-dashboard.test.ts .pi/harnesses/agent-hub/input/presentation.test.ts .pi/harnesses/agent-hub/config/overrides.test.ts .pi/harnesses/lib/damage-control-shared.test.ts .pi/harnesses/lib/changed-file-diagnostics.test.ts .pi/harnesses/lib/policy-roots.test.ts .pi/harnesses/lib/update-check.test.ts .pi/harnesses/damage-control-continue/herdr-rules.test.js .pi/harnesses/damage-control-continue/exemptions.test.js .pi/agent-fleet/scripts/lib/hermes-monitor-model.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-events.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-store.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-retention.integration.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-registry.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-data-path.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-slice7-9-backend.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-control-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-e2e.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-plugin-handshake.test.ts .pi/agent-fleet/scripts/hermes-monitor-capability-runner.test.ts .pi/agent-fleet/scripts/hermes-monitor-scenario.test.ts .pi/agent-fleet/scripts/hermes-watchdog-capability-probe.test.ts .pi/harnesses/agent-hub/monitor-invoke.test.ts .pi/harnesses/agent-hub/monitor-invoke-journal.test.ts .pi/harnesses/agent-hub/monitor-control.test.ts .pi/harnesses/agent-hub/monitor-live-bridge-gaps.test.ts .pi/harnesses/agent-hub/monitor-review-live-wiring.red.test.ts .pi/harnesses/agent-hub/monitor-runtime.test.ts .pi/harnesses/agent-hub/monitor-bridge-runtime.test.ts .pi/harnesses/agent-hub/monitor-reconcile.test.ts .pi/harnesses/agent-hub/monitor-recovery.test.ts .pi/harnesses/agent-hub/monitor-lifecycle-lease.test.ts .pi/harnesses/agent-hub/monitor-session-bridge-race.test.ts .pi/harnesses/agent-hub/monitor-session-bridge.test.ts .pi/harnesses/agent-hub/monitor-cancel-race.test.ts .pi/harnesses/agent-hub/monitor-wait-only.test.ts .pi/harnesses/agent-hub/monitor-publisher.test.ts .pi/harnesses/agent-hub/monitor-index.integration.test.ts .pi/harnesses/agent-hub/monitor-coms-turn.test.ts .pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.test.js .pi/harnesses/agent-hub/config/model-profiles.test.ts .pi/harnesses/agent-hub/policy/models.test.ts .pi/harnesses/agent-hub/policy/profile-activation.test.ts .pi/harnesses/agent-hub/profile-execution.test.ts .pi/agent-fleet/scripts/docs-links.test.mjs .pi/harnesses/agent-hub/proactive-*.test.ts && npm run test:watchdog-py",
|
|
173
|
+
"test:task-triage": "node --import ./bin/test/helpers/system1-no-network.js --experimental-strip-types --test --test-timeout=120000 .pi/harnesses/agent-hub/task-triage-config.test.ts .pi/harnesses/agent-hub/task-triage-state.test.ts .pi/harnesses/agent-hub/task-triage-policy.test.ts .pi/harnesses/agent-hub/task-triage-obligations.test.ts .pi/harnesses/agent-hub/task-triage-authorization.test.ts .pi/harnesses/agent-hub/action-presentation-regression.test.ts .pi/harnesses/agent-hub/task-triage-runtime.test.ts .pi/harnesses/agent-hub/task-triage-effects.integration.test.ts .pi/harnesses/agent-hub/task-triage-pressure.integration.test.ts .pi/harnesses/agent-hub/task-triage-persisted-compaction.integration.test.ts .pi/harnesses/agent-hub/task-triage-real-pi.integration.test.ts",
|
|
170
174
|
"test:triage": "node --import ./bin/test/helpers/system1-no-network.js --test --test-timeout=120000 .pi/harnesses/agent-hub/dispatch-triage.test.ts .pi/harnesses/agent-hub/system1-communication-store.test.ts .pi/harnesses/agent-hub/ui/system1-communication.test.ts",
|
|
171
175
|
"test:task-triage-pilot": "tsc --noEmit -p bin/test/helpers/task-triage-pilot-tsconfig.json && node --import ./bin/test/helpers/system1-no-network.js --test --test-timeout=120000 bin/test/task-triage-pilot-budget.test.ts bin/test/task-triage-pilot.test.ts",
|
|
172
176
|
"test:agentic": "node --import ./bin/test/helpers/system1-no-network.js --test --test-timeout=120000 .pi/harnesses/lib/system1/config-agentic.test.js .pi/harnesses/agent-hub/agentic*.test.ts",
|
|
@@ -182,8 +186,8 @@
|
|
|
182
186
|
"check:manifest": "node bin/build-manifest.js --check",
|
|
183
187
|
"version:changeset": "node bin/force-patch-changesets.js && changeset version && node bin/sync-harness-versions.js && npm install --package-lock-only --ignore-scripts --no-audit --no-fund && node bin/build-manifest.js && node bin/snapshot-version.js",
|
|
184
188
|
"release": "changeset publish",
|
|
185
|
-
"test:
|
|
186
|
-
"test:
|
|
189
|
+
"test:file-discovery": "node --import ./bin/test/helpers/system1-no-network.js --test --test-concurrency=2 --test-timeout=120000 .pi/harnesses/lib/system1/config-file-discovery.test.js .pi/harnesses/lib/system1/config-v2.test.js .pi/harnesses/agent-hub/file-discovery/*.test.ts .pi/harnesses/agent-hub/spawn-system1-env.test.ts .pi/harnesses/agent-hub/system1-communication-store.test.ts .pi/harnesses/agent-hub/ui/system1-communication.test.ts",
|
|
190
|
+
"test:fleet-native": "node --test --test-timeout=120000 .pi/agent-fleet/scripts/fleet-codex*.test.ts"
|
|
187
191
|
},
|
|
188
192
|
"devDependencies": {
|
|
189
193
|
"@changesets/cli": "^2.27.1",
|
|
@@ -200,6 +204,7 @@
|
|
|
200
204
|
"dependencies": {
|
|
201
205
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
202
206
|
"pi-ask-user": "^0.14.0",
|
|
207
|
+
"ws": "8.22.0",
|
|
203
208
|
"yaml": "^2.9.0"
|
|
204
209
|
},
|
|
205
210
|
"bundledDependencies": [
|
|
Binary file
|
|
@@ -79,7 +79,7 @@ A small plan or a separate worktree is a reason the operator might ask. It is no
|
|
|
79
79
|
|
|
80
80
|
**Counts as explicit**
|
|
81
81
|
|
|
82
|
-
- A direct request in the current execution instruction, in English or Bulgarian, to run this plan at once.
|
|
82
|
+
- A direct request in the current execution instruction, in English or Bulgarian, to run this plan at once. English examples: "execute the whole plan", "run the plan at once", "whole-plan". Bulgarian examples: "изпълни целия план наведнъж" ("execute the entire plan at once"), "без slice-ове" ("without slices"), "автономно без въпроси" ("autonomously without questions"), when they refer to executing this plan.
|
|
83
83
|
- An operator-authored line already in the plan, such as `Execution: whole-plan`. Do not write that line yourself to waive the gate.
|
|
84
84
|
|
|
85
85
|
Those phrases waive slice approval only. They do not waive `ask_user`. If the operator said "without questions" and an unresolved plan or PRD problem still appears, interrupt and ask.
|
|
Binary file
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import * as fs from 'node:fs';
|
|
3
|
-
import {spawnSync} from 'node:child_process';
|
|
4
|
-
import * as os from 'node:os';
|
|
5
|
-
import * as path from 'node:path';
|
|
6
|
-
import { fileURLToPath } from 'node:url';
|
|
7
|
-
import { FleetSessionClient } from './lib/fleet-codex-session.ts';
|
|
8
|
-
import { clientCatalog, parseClientArguments } from './lib/fleet-codex-catalog.ts';
|
|
9
|
-
import { FleetClientOperations } from './lib/fleet-codex-operations.ts';
|
|
10
|
-
|
|
11
|
-
function readInstructionFile(filePath: string): string {
|
|
12
|
-
const resolved = path.resolve(filePath);
|
|
13
|
-
const stats = fs.lstatSync(resolved);
|
|
14
|
-
if (stats.isSymbolicLink() || !stats.isFile() || (process.getuid && stats.uid !== process.getuid()) || (stats.mode & 0o077)) {
|
|
15
|
-
throw Error('unsafe text file');
|
|
16
|
-
}
|
|
17
|
-
if (stats.size > 16000) throw Error('text file must contain at most 16000 bytes');
|
|
18
|
-
const flags = fs.constants.O_RDONLY | (typeof fs.constants.O_NOFOLLOW === 'number' ? fs.constants.O_NOFOLLOW : 0);
|
|
19
|
-
const fd = fs.openSync(resolved, flags);
|
|
20
|
-
try {
|
|
21
|
-
const opened = fs.fstatSync(fd);
|
|
22
|
-
if (!opened.isFile() || opened.size > 16000 || (process.getuid && opened.uid !== process.getuid()) || (opened.mode & 0o077)) {
|
|
23
|
-
throw Error('unsafe text file');
|
|
24
|
-
}
|
|
25
|
-
return fs.readFileSync(fd, 'utf8');
|
|
26
|
-
} finally { fs.closeSync(fd); }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export async function runClient(argv:string[],env:NodeJS.ProcessEnv=process.env,emit:(value:unknown)=>void=()=>{}) {
|
|
30
|
-
if(argv.length===1&&argv[0]==='--help')return clientCatalog();
|
|
31
|
-
const {command,flags}=parseClientArguments(argv);
|
|
32
|
-
const client=new FleetSessionClient({stateDir:flags['state-dir']??path.join(env.CODEX_HOME||path.join(os.homedir(),'.codex'),'fleet-client'),clientId:env.CODEX_THREAD_ID});
|
|
33
|
-
const operations=new FleetClientOperations(client);
|
|
34
|
-
switch(command){
|
|
35
|
-
case 'describe':return operations.describe();
|
|
36
|
-
case 'sessions':return client.sessions(flags.project);
|
|
37
|
-
case 'select':return client.select(flags.project,flags.peer);
|
|
38
|
-
case 'status':return operations.status();
|
|
39
|
-
case 'doctor': {
|
|
40
|
-
const dependency=(binary:string)=>{const r=spawnSync(binary,['--version'],{encoding:'utf8',timeout:3000,maxBuffer:4096});return {available:r.status===0,version:r.status===0?r.stdout.trim():null};};
|
|
41
|
-
return {node:process.version,python:dependency('python3'),herdr:dependency('herdr'),identityAvailable:!!env.CODEX_THREAD_ID,selection:env.CODEX_THREAD_ID?client.status():null,scope:'local client; no service lifecycle or model changes'};
|
|
42
|
-
}
|
|
43
|
-
case 'detach':return client.detach();
|
|
44
|
-
case 'activity':case 'summary':return operations.resync(true);
|
|
45
|
-
case 'resync':return operations.resync();
|
|
46
|
-
case 'replay':return operations.replay();
|
|
47
|
-
case 'receipts':return operations.receipts();
|
|
48
|
-
case 'questions':return operations.questions(flags.after);
|
|
49
|
-
case 'answer':return operations.answerQuestion(flags.id,flags.question,JSON.parse(readInstructionFile(flags['answer-file'])));
|
|
50
|
-
case 'cancel-question':return operations.answerQuestion(flags.id,flags.question,null);
|
|
51
|
-
case 'send':
|
|
52
|
-
return operations.send(flags.id,readInstructionFile(flags['text-file']),Number(flags['wait-ms']??1000));
|
|
53
|
-
case 'watch': {
|
|
54
|
-
const seconds=Number(flags.seconds);if(!Number.isInteger(seconds)||seconds<1||seconds>60)throw Error('watch seconds must be 1–60');
|
|
55
|
-
const end=Date.now()+seconds*1000;let count=0;
|
|
56
|
-
do {
|
|
57
|
-
// A source poll, not a model invocation. SIGINT ends only this local observer.
|
|
58
|
-
const start=Date.now();emit({type:'progress',...(await operations.resync(false,0))});count++;
|
|
59
|
-
const delay=Math.min(2000-(Date.now()-start),end-Date.now());if(delay>0)await new Promise(r=>setTimeout(r,delay));
|
|
60
|
-
}while(Date.now()<end);
|
|
61
|
-
return {type:'watch-ended',reason:'window elapsed; Pi continues independently',snapshots:count};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if(process.argv[1]&&fs.realpathSync(process.argv[1])===fileURLToPath(import.meta.url)){
|
|
66
|
-
const emit=(value:unknown)=>process.stdout.write(JSON.stringify(value)+'\n');
|
|
67
|
-
try {emit(await runClient(process.argv.slice(2),process.env,emit));}
|
|
68
|
-
catch(error){emit({error:error instanceof Error?error.message:'client failure'});process.exitCode=1;}
|
|
69
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Bounded read-only adapter; reuses Hermes readers without importing its server."""
|
|
3
|
-
import hashlib
|
|
4
|
-
import json
|
|
5
|
-
import os
|
|
6
|
-
import sys
|
|
7
|
-
import time
|
|
8
|
-
from datetime import datetime, timezone
|
|
9
|
-
from itertools import islice
|
|
10
|
-
from pathlib import Path
|
|
11
|
-
|
|
12
|
-
# The fleet runtime root (.pi/agent-fleet), not the project root: the Hermes
|
|
13
|
-
# readers this reuses are siblings of .pi/agent-fleet/scripts/, and both move together.
|
|
14
|
-
FLEET_ROOT = Path(__file__).resolve().parent.parent
|
|
15
|
-
sys.path.insert(0, str(FLEET_ROOT / 'hermes/plugins/agent-fleet-herdr/dashboard'))
|
|
16
|
-
sys.path.insert(0, str(FLEET_ROOT / 'hermes/skills/hub-watchdog/scripts'))
|
|
17
|
-
import activity
|
|
18
|
-
import herdr_source
|
|
19
|
-
from watchdog_transport import discover, MonitorTransport
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def read_pane(project, peer):
|
|
23
|
-
try:
|
|
24
|
-
matches = [a for a in herdr_source.list_agents() if herdr_source.peer_key(a) == (project, peer) and a.get('agent') == 'pi']
|
|
25
|
-
if len(matches) != 1:
|
|
26
|
-
return {'paneId':None, 'state':'unknown', 'reason':'ambiguous' if matches else 'unavailable'}
|
|
27
|
-
a = matches[0]
|
|
28
|
-
return {'paneId':a.get('pane_id'), 'state':herdr_source.normalize_state(a.get('agent_status')), 'reason':''}
|
|
29
|
-
except herdr_source.HerdrUnavailable:
|
|
30
|
-
return {'paneId':None, 'state':'unknown', 'reason':'herdr unavailable'}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def read_activity(entry, cursor, root=None):
|
|
34
|
-
transcript, reason = activity.transcript_for_entry(entry, root=root)
|
|
35
|
-
if transcript is None:
|
|
36
|
-
return {**activity.unavailable(reason), 'cursor':cursor, 'gap':True}
|
|
37
|
-
info = transcript.stat()
|
|
38
|
-
identity = hashlib.sha256(f'{transcript}:{info.st_dev}:{info.st_ino}'.encode()).hexdigest()
|
|
39
|
-
after = cursor.get('seq', 0)
|
|
40
|
-
reset = bool(cursor) and (cursor.get('identity') != identity or after > info.st_size)
|
|
41
|
-
if reset: after = 0
|
|
42
|
-
steps = activity.steps_for_path(transcript)
|
|
43
|
-
fresh = [s for s in steps if s['seq'] > after]
|
|
44
|
-
result = activity.activity_for_entry(entry, after=after, limit=50, root=root)
|
|
45
|
-
# The canonical reader trims to newest whole lines. Surface that loss explicitly.
|
|
46
|
-
gap = reset or (info.st_size > activity.TAIL_BYTES and after < max(0, info.st_size-activity.TAIL_BYTES)) or len(fresh) > len(result['steps'])
|
|
47
|
-
return {**result, 'gap':gap, 'cursor':{'identity':identity, 'seq':result['seq']}, 'source':'pi_transcript'}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TASK_FIELDS = ('id','generation','kind','state','specialist','parentId','parentGeneration','updatedAt','outputSequence')
|
|
51
|
-
|
|
52
|
-
def read_tasks(transport, tasks, owner, hub, cursors):
|
|
53
|
-
selected = [t for t in tasks if t.get('ownerSessionId') == owner]
|
|
54
|
-
# Fair bounded window: oldest unread outputs first, then current task metadata.
|
|
55
|
-
selected.sort(key=lambda t: (cursors.get(f"{owner}:{hub}:{t['id']}:{t['generation']}", 0) >= t.get('outputSequence', 0), t.get('updatedAt','')))
|
|
56
|
-
results, next_cursors, gap = [], dict(cursors), len(selected) > 100
|
|
57
|
-
reads, pending = 0, 0
|
|
58
|
-
for task in selected[:100]:
|
|
59
|
-
item = {k:task[k] for k in TASK_FIELDS if k in task}
|
|
60
|
-
item.update(ownerSessionId=owner, hubInstanceId=hub)
|
|
61
|
-
key = f"{owner}:{hub}:{task['id']}:{task['generation']}"
|
|
62
|
-
after = cursors.get(key, 0)
|
|
63
|
-
if reads < 8 and (key not in cursors or task.get('outputSequence', 0) > after):
|
|
64
|
-
reads += 1
|
|
65
|
-
try:
|
|
66
|
-
output = transport._call({'type':'output','taskId':task['id'],'generation':task['generation'],'afterSequence':after})['output']
|
|
67
|
-
text = output.get('text', '')
|
|
68
|
-
item['output'] = text[-32768:]
|
|
69
|
-
item['outputGap'] = bool(output.get('truncated') or len(text) > 32768 or output.get('firstSequence', 0) > after + 1)
|
|
70
|
-
gap = gap or item['outputGap']
|
|
71
|
-
next_cursors[key] = output.get('sequence', after)
|
|
72
|
-
except Exception:
|
|
73
|
-
item['outputUnavailable'] = True; gap = True
|
|
74
|
-
if reads >= 8 and (key not in next_cursors or task.get('outputSequence',0) > next_cursors.get(key,0)):
|
|
75
|
-
item['outputDeferred'] = True; pending += 1
|
|
76
|
-
results.append(item)
|
|
77
|
-
active_keys = {f"{owner}:{hub}:{t['id']}:{t['generation']}" for t in selected}
|
|
78
|
-
return {'tasks':results, 'pendingOutputs':pending, 'cursor':{k:v for k,v in next_cursors.items() if k in active_keys}, 'gap':gap}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
def read_monitor(entry, cursor, wait_ms=0):
|
|
82
|
-
runtime = Path(os.environ.get('AGENT_FLEET_MONITOR_RUNTIME_DIR', f'/tmp/agent-fleet-monitor-{os.getuid()}'))
|
|
83
|
-
profile = os.environ.get('AGENT_FLEET_PROFILE_ID')
|
|
84
|
-
pattern = (hashlib.sha256(profile.encode()).hexdigest() if profile else '*') + '/*/discovery-*.json'
|
|
85
|
-
candidates = []
|
|
86
|
-
try:
|
|
87
|
-
if runtime.is_symlink() or runtime.stat().st_uid != os.getuid(): raise ValueError()
|
|
88
|
-
paths = list(islice(runtime.glob(pattern), 33))
|
|
89
|
-
if len(paths) > 32: raise ValueError()
|
|
90
|
-
for p in paths:
|
|
91
|
-
try:
|
|
92
|
-
d = discover(str(runtime), p.parent.parent.name, p.parent.name, datetime.now(timezone.utc))
|
|
93
|
-
if d['lease'].get('pid') == entry['pid']: candidates.append(d)
|
|
94
|
-
except Exception:
|
|
95
|
-
continue
|
|
96
|
-
except Exception:
|
|
97
|
-
return {'available':False, 'reason':'monitor discovery unavailable', 'tasks':[], 'cursor':cursor, 'gap':True}
|
|
98
|
-
if len(candidates) != 1:
|
|
99
|
-
return {'available':False, 'reason':'monitor missing or ambiguous for selected Pi process', 'tasks':[], 'cursor':cursor, 'gap':True}
|
|
100
|
-
d = candidates[0]; transport = MonitorTransport(d, timeout=2)
|
|
101
|
-
owner = d['owner']; hub = d['lease']['hub']
|
|
102
|
-
reset = bool(cursor) and cursor.get('owner') != owner
|
|
103
|
-
previous = {} if reset else cursor
|
|
104
|
-
gap = reset
|
|
105
|
-
try:
|
|
106
|
-
if wait_ms: time.sleep(min(wait_ms, 2000)/1000)
|
|
107
|
-
snap = transport.snapshot()['snapshot']
|
|
108
|
-
tasks = read_tasks(transport, snap.get('tasks',[]), owner, hub, previous.get('outputs',{}))
|
|
109
|
-
return {'available':True, 'source':'hub_monitor', 'tasks':tasks['tasks'], 'pendingOutputs':tasks['pendingOutputs'], 'gap':gap or tasks['gap'],
|
|
110
|
-
'cursor':{'owner':owner,'outputs':tasks['cursor']}}
|
|
111
|
-
except Exception:
|
|
112
|
-
return {'available':False, 'reason':'monitor unavailable', 'tasks':[], 'cursor':cursor, 'gap':True}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
def project_replies(rows, pending):
|
|
116
|
-
"""Match Pi's own respond() audit to the assistant text it used, never a guessed next turn."""
|
|
117
|
-
replies, latest = [], None
|
|
118
|
-
wanted = set(pending)
|
|
119
|
-
for _, line in rows:
|
|
120
|
-
try: record = json.loads(line)
|
|
121
|
-
except ValueError: continue
|
|
122
|
-
if record.get('type') == 'message' and record.get('message',{}).get('role') == 'assistant':
|
|
123
|
-
content = record['message'].get('content')
|
|
124
|
-
if isinstance(content,str): latest = content
|
|
125
|
-
elif isinstance(content,list): latest = '\n'.join(c['text'] for c in content if c.get('type') == 'text' and isinstance(c.get('text'),str))
|
|
126
|
-
data = record.get('data',{})
|
|
127
|
-
if record.get('customType') == 'coms-log' and data.get('event') in ('outbound_response','outbound_response_failed') and data.get('msg_id') in wanted and latest is not None:
|
|
128
|
-
replies.append({'wireId':data['msg_id'], 'state':'failed' if data.get('error') else 'result', 'result':latest[:16000], 'truncated':len(latest)>16000})
|
|
129
|
-
return replies
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
def read(request):
|
|
133
|
-
entry = request['entry']; cursor = request.get('cursor') or {}
|
|
134
|
-
pane = read_pane(request['project'], entry['name'])
|
|
135
|
-
transcript = read_activity(entry, cursor.get('activity',{}))
|
|
136
|
-
monitor = read_monitor(entry, cursor.get('monitor',{}), request.get('waitMs',0))
|
|
137
|
-
path, _ = activity.transcript_for_entry(entry)
|
|
138
|
-
replies = project_replies(activity.read_tail(path), request.get('pending', [])) if path else []
|
|
139
|
-
return {'replies':replies, 'observedAt':datetime.now(timezone.utc).isoformat(), 'pane':pane, 'activity':transcript, 'monitor':monitor,
|
|
140
|
-
'partial':not transcript['available'] or not monitor['available'] or transcript['gap'] or monitor['gap'] or bool(monitor.get('pendingOutputs')),
|
|
141
|
-
'cursor':{'activity':transcript['cursor'],'monitor':monitor['cursor']}}
|
|
142
|
-
|
|
143
|
-
if __name__ == '__main__':
|
|
144
|
-
try:
|
|
145
|
-
request = json.loads(sys.stdin.buffer.read(65537))
|
|
146
|
-
print(json.dumps(read(request), ensure_ascii=False))
|
|
147
|
-
except Exception:
|
|
148
|
-
print(json.dumps({'error':'read sources unavailable'})); sys.exit(1)
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/** JSON-serializable CLI contract. Help and argument validation derive from this source. */
|
|
2
|
-
interface Parameter {type:'string'|'integer';description:string;minimum?:number;maximum?:number;default?:number;pattern?:string;maxLength?:number;}
|
|
3
|
-
export type Requirement='none'|'identity'|'binding'|'report'|'sources'|'instruction'|'questions';
|
|
4
|
-
export interface Operation {
|
|
5
|
-
name:string;description:string;usage:string;
|
|
6
|
-
inputSchema:{type:'object';properties:Record<string,Parameter>;required:string[];additionalProperties:false};
|
|
7
|
-
effects:{remote:'none'|'read'|'instruction'|'answer';local:'none'|'binding'|'journal'};
|
|
8
|
-
requirements:Requirement[];limitations:string[];
|
|
9
|
-
}
|
|
10
|
-
export interface Availability {status:'available'|'unsupported'|'unavailable';reason:string;}
|
|
11
|
-
const string=(description:string):Parameter=>({type:'string',description});
|
|
12
|
-
const id:Parameter={...string('Stable request/question identifier; never reuse for a different payload or target.'),pattern:'^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$'};
|
|
13
|
-
const project:Parameter={...string('Explicit coms project; never inferred only from cwd.')};
|
|
14
|
-
const stateDir=string('Optional private 0700 directory; defaults to CODEX_HOME/fleet-client.');
|
|
15
|
-
function operation(name:string,description:string,properties:Record<string,Parameter>,required:string[],requirements:Requirement[],remote:Operation['effects']['remote']='none',local:Operation['effects']['local']='none',limitations:string[]=[]):Operation {
|
|
16
|
-
const args=Object.entries(properties).map(([key,p])=>{
|
|
17
|
-
const value=p.type==='integer'?`${p.minimum}..${p.maximum}`:key;
|
|
18
|
-
const flag=`--${key} <${value}>`;return required.includes(key)?flag:`[${flag}]`;
|
|
19
|
-
});
|
|
20
|
-
return {name,description,usage:[name,...args].join(' '),inputSchema:{type:'object',properties:{...properties,'state-dir':stateDir},required,additionalProperties:false},effects:{remote,local},requirements,limitations};
|
|
21
|
-
}
|
|
22
|
-
const sources=['Bounded source coverage; unavailable and partial sources remain explicit.','Question reads cover at most four pages; follow nextCursor with questions --after.'];
|
|
23
|
-
const answers=['Requires an explicit human response to the exact pending owner/question/tool call.','Pi validates flags and arbitrates the first valid answer. Availability does not prove a particular question is pending.','Receipt persisted before delivery; unknown outcomes must not be retried automatically.'];
|
|
24
|
-
const operations:Operation[]=[
|
|
25
|
-
operation('sessions','Discover existing Pi sessions in an explicit project.',{project},['project'],['none']),
|
|
26
|
-
operation('select','Bind this conversation to a fresh, unambiguous project/peer identity.',{project,peer:string('Exact Pi peer name.')},['project','peer'],['identity'],'none','binding',['Requested project/peer is validated at selection time.']),
|
|
27
|
-
operation('status','Read selection/registry presence and separate question state.',{},[],['identity'],'read','journal',['Registry presence is not execution or transport readiness.']),
|
|
28
|
-
operation('activity','Read a fresh bounded activity, monitor and question snapshot.',{},[],['sources'],'read','journal',sources),
|
|
29
|
-
operation('summary','Read fresh bounded source evidence for a conversational summary.',{},[],['sources'],'read','journal',sources),
|
|
30
|
-
operation('resync','Advance source cursors and recover exactly correlated receipts.',{},[],['sources'],'read','journal',sources),
|
|
31
|
-
operation('replay','Read the last stored report, explicitly marked historical.',{},[],['report'],'none','none',['Requires a saved report for this exact binding; does not prove current question state.']),
|
|
32
|
-
operation('receipts','Read recorded instruction and answer outcomes, including offline.',{},[],['binding']),
|
|
33
|
-
operation('send','Submit a human-authorized Pi follow-up instruction.',{id,'text-file':string('Owned regular non-symlink 0600 UTF-8 file, 1–16000 bytes.'),'wait-ms':{type:'integer',description:'Bounded reply wait in milliseconds.',minimum:100,maximum:60000,default:1000}},['id','text-file'],['instruction'],'instruction','journal',['Requires a unique visible herdr Pi pane and correlated coms ping.','Busy Hub instructions queue; immediate child steering is not guaranteed.','Submitted/queued is not completion. Duplicate IDs never cause another send; unknown requires inspection.']),
|
|
34
|
-
operation('watch','Emit bounded NDJSON source snapshots while the client is active.',{seconds:{type:'integer',description:'Active observation window in seconds.',minimum:1,maximum:60}},['seconds'],['sources'],'read','journal',[...sources,'No idle wake or model polling; ending watch does not stop Pi. Slow source calls may extend a sample until timeout.']),
|
|
35
|
-
operation('doctor','Read local dependency versions and selection diagnostics.',{},[],['none']),
|
|
36
|
-
operation('detach','Remove only this conversation selection; leave Pi running.',{},[],['identity'],'none','binding'),
|
|
37
|
-
operation('questions','Read one page of addressed pending questions and terminal IDs.',{after:{...id,description:'Question cursor from nextCursor.'}},[],['questions'],'read','journal',['Requires a compatible Pi wrapper; unsupported is not an empty list.','Pages are bounded to 32 KiB; terminal history is bounded.']),
|
|
38
|
-
operation('answer','Submit an explicit structured human answer to one question.',{id,question:id,'answer-file':string('Owned regular non-symlink 0600 JSON file, at most 16000 bytes; selection or freeform matching question flags.')},['id','question','answer-file'],['questions'],'answer','journal',answers),
|
|
39
|
-
operation('cancel-question','Submit the human\'s explicit refusal for one question.',{id,question:id},['id','question'],['questions'],'answer','journal',answers),
|
|
40
|
-
operation('describe','Describe the contract and check current prerequisites without executing mutations.',{},[],['none'],'read','none',['Point-in-time capability check; operations revalidate their own prerequisites.','Does not send instructions, answer questions or update observations/cursors/receipts.']),
|
|
41
|
-
];
|
|
42
|
-
export function clientCatalog() {
|
|
43
|
-
return structuredClone({schemaVersion:1,client:'fleet-session-client',operations,usage:operations.map(o=>o.usage),
|
|
44
|
-
options:'--state-dir <private-directory>',identity:'CODEX_THREAD_ID from execution environment',
|
|
45
|
-
scope:'Existing Pi; active bounded reads, no idle wake or automatic human choice.',
|
|
46
|
-
availabilitySemantics:'Available means observed prerequisites, not authorization or guaranteed future delivery. Unavailable means missing/unverifiable prerequisites; unsupported means a verified protocol/runtime limitation.'});
|
|
47
|
-
}
|
|
48
|
-
export function parseClientArguments(argv:string[]) {
|
|
49
|
-
const [command,...args]=argv;const op=operations.find(o=>o.name===command);
|
|
50
|
-
if(!op)throw Error('Unknown command; use --help');
|
|
51
|
-
const flags:Record<string,string>={};
|
|
52
|
-
for(let i=0;i<args.length;i+=2){
|
|
53
|
-
const key=args[i].startsWith('--')?args[i].slice(2):'';const value=args[i+1];
|
|
54
|
-
if(!Object.hasOwn(op.inputSchema.properties,key)||flags[key]!==undefined||!value||value.startsWith('--'))throw Error('Invalid or duplicate command option');
|
|
55
|
-
const p=op.inputSchema.properties[key];
|
|
56
|
-
if(p.type==='integer'&&(!Number.isInteger(Number(value))||Number(value)<p.minimum!||Number(value)>p.maximum!))throw Error(`--${key} must be ${p.minimum}–${p.maximum}`);
|
|
57
|
-
if(p.pattern&&!new RegExp(p.pattern).test(value))throw Error(`Invalid --${key}`);
|
|
58
|
-
flags[key]=value;
|
|
59
|
-
}
|
|
60
|
-
for(const key of op.inputSchema.required)if(!flags[key])throw Error(`--${key} is required`);
|
|
61
|
-
for(const [key,p] of Object.entries(op.inputSchema.properties))if(flags[key]===undefined&&p.default!==undefined)flags[key]=String(p.default);
|
|
62
|
-
return {command,flags};
|
|
63
|
-
}
|