@chankov/agent-fleet 2.1.0 → 2.1.2
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/lib/codex-desktop-queue-host.ts +9 -25
- package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +31 -13
- package/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +2 -1
- package/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +70 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +9 -4
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +22 -17
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +2 -2
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +4 -2
- package/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +39 -8
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +4 -4
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +3 -1
- package/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +1 -1
- package/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.pi/harnesses/agent-hub/README.md +1 -1
- package/.pi/harnesses/agent-hub/context-continuity-compat.ts +18 -3
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +3 -0
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +3 -1
- package/.pi/harnesses/agent-hub/index.ts +30 -7
- package/.pi/harnesses/agent-hub/no-progress.ts +4 -4
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.pi/harnesses/agent-hub/process-obligations.ts +21 -8
- package/.pi/harnesses/agent-hub/runtime-receipts.ts +3 -0
- package/.pi/harnesses/agent-hub/runtime-test-check.ts +8 -2
- package/.pi/harnesses/agent-hub/task-resume-contract.ts +5 -0
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +4 -2
- package/.pi/harnesses/agent-hub/tools/context.ts +3 -1
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +14 -12
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +59 -16
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +8 -2
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/coms-core.ts +21 -7
- package/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.pi/harnesses/lib/fleet-codex-event-bridge.ts +2 -1
- package/.pi/harnesses/lib/fleet-connection-control.ts +77 -0
- package/.pi/harnesses/lib/fleet-notification-validation.ts +67 -0
- package/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.pi/harnesses/lib/fleet-transcript-store.ts +1 -1
- package/.versions/2.1.1/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.1.1/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.1.1/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/fleet.ts +248 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +106 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +367 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +70 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +116 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +173 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +406 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/fleet-command.ts +268 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/team-up.ts +385 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.1.1/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.1.1/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.1.1/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.1.1/.pi/agents/peers.yaml +147 -0
- package/.versions/2.1.1/.pi/agents/teams.yaml +41 -0
- package/.versions/2.1.1/.pi/agents/voices.yaml +13 -0
- package/.versions/2.1.1/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.1.1/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.1.1/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.1.1/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.1.1/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.1.1/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.1.1/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.1.1/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.1.1/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.1.1/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.1.1/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.1.1/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.1.1/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.1.1/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.1.1/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.1.1/.pi/extensions/package.json +9 -0
- package/.versions/2.1.1/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.1.1/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.1.1/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.1.1/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.1.1/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.1.1/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.1.1/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/README.md +1584 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/config/agents.ts +181 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +301 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +262 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/index.ts +2705 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/input/shortcuts.ts +23 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/no-progress.ts +622 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/process-obligations.ts +177 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/scope-gate.js +233 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/action-executors.ts +216 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/context.ts +147 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +92 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +777 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +163 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/work-mode.ts +188 -0
- package/.versions/2.1.1/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.1.1/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.1.1/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.1.1/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.1.1/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.1.1/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.1.1/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.1.1/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.1.1/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.1.1/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.1.1/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.1.1/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.1.1/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.1.1/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.1.1/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.1.1/.pi/harnesses/lib/coms-core.ts +720 -0
- package/.versions/2.1.1/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.1.1/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.1.1/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.1.1/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.1.1/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.1.1/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.1.1/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.1.1/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.1.1/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.1.1/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.1.1/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.1.1/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-connection-control.ts +77 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-notification-validation.ts +66 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.1.1/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.1.1/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.1.1/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.1.1/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.1.1/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.1.1/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.1.1/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.1.1/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.1.1/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.1.1/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.1.1/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.1.1/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.1.1/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.1.1/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.1.1/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.1.1/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.1.1/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.1.1/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.1.1/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.1.1/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.1.1/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.1.1/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.1.1/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.1.1/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.1.1/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.1.1/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.1.1/.pi/harnesses/package.json +13 -0
- package/.versions/2.1.1/.pi/prompts/af-build.md +27 -0
- package/.versions/2.1.1/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.1.1/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.1.1/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.1.1/.pi/prompts/af-review.md +16 -0
- package/.versions/2.1.1/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.1.1/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.1.1/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.1.1/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.1.1/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.1.1/.pi/prompts/af-test.md +19 -0
- package/.versions/2.1.1/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.1.1/.version +1 -0
- package/.versions/2.1.1/agents/architect.md +24 -0
- package/.versions/2.1.1/agents/bowser.md +28 -0
- package/.versions/2.1.1/agents/builder.md +55 -0
- package/.versions/2.1.1/agents/code-reviewer.md +209 -0
- package/.versions/2.1.1/agents/deep-researcher.md +32 -0
- package/.versions/2.1.1/agents/documenter.md +22 -0
- package/.versions/2.1.1/agents/orchestrator.md +22 -0
- package/.versions/2.1.1/agents/plan-reviewer.md +83 -0
- package/.versions/2.1.1/agents/planner.md +107 -0
- package/.versions/2.1.1/agents/releaser.md +24 -0
- package/.versions/2.1.1/agents/researcher.md +30 -0
- package/.versions/2.1.1/agents/security-auditor.md +167 -0
- package/.versions/2.1.1/agents/test-engineer.md +153 -0
- package/.versions/2.1.1/agents/web-debugger.md +44 -0
- package/.versions/2.1.1/agents/web-performance-auditor.md +194 -0
- package/.versions/2.1.1/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.1.1/docs/ARCHITECTURE.md +1187 -0
- package/.versions/2.1.1/docs/agent-fleet-setup.md +1143 -0
- package/.versions/2.1.1/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.1.1/docs/codex-local-mcp.md +487 -0
- package/.versions/2.1.1/docs/codex-session-bridge.md +44 -0
- package/.versions/2.1.1/docs/codex-setup.md +183 -0
- package/.versions/2.1.1/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.1.1/docs/fleet-native-voice.md +137 -0
- package/.versions/2.1.1/docs/getting-started.md +126 -0
- package/.versions/2.1.1/docs/npm-install.md +535 -0
- package/.versions/2.1.1/docs/pi-extensions.md +455 -0
- package/.versions/2.1.1/docs/pi-setup.md +92 -0
- package/.versions/2.1.1/docs/skill-anatomy.md +150 -0
- package/.versions/2.1.1/install-manifest.json +3239 -0
- package/.versions/2.1.1/justfile +247 -0
- package/.versions/2.1.1/manifest-meta.json +1087 -0
- package/.versions/2.1.1/references/accessibility-checklist.md +160 -0
- package/.versions/2.1.1/references/communication-contract.md +26 -0
- package/.versions/2.1.1/references/definition-of-done.md +67 -0
- package/.versions/2.1.1/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.1.1/references/observability-checklist.md +92 -0
- package/.versions/2.1.1/references/orchestration-patterns.md +370 -0
- package/.versions/2.1.1/references/performance-checklist.md +236 -0
- package/.versions/2.1.1/references/prompting-patterns.md +380 -0
- package/.versions/2.1.1/references/security-checklist.md +245 -0
- package/.versions/2.1.1/references/testing-patterns.md +235 -0
- package/.versions/2.1.1/references/workflow-authoring.md +304 -0
- package/.versions/2.1.1/skills/_internal/grilling.md +59 -0
- package/.versions/2.1.1/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.1.1/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.1/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.1.1/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.1.1/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.1/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.1.1/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.1/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.1.1/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.1.1/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.1.1/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.1.1/skills/fleet-connect/SKILL.md +25 -0
- package/.versions/2.1.1/skills/fleet-native-voice/SKILL.md +79 -0
- package/.versions/2.1.1/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.1.1/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.1.1/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.1/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.1.1/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.1.1/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.1/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.1/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.1/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.1/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.1.1/skills/incremental-implementation.zip +0 -0
- package/.versions/2.1.1/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.1.1/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.1.1/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.1.1/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.1/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.1.1/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.1.1/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.1.1/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.1.1/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.1.1/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.1.1/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.1.1/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.1.1/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.1.1/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.1/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.1.1/skills/spec-driven-development.zip +0 -0
- package/.versions/2.1.1/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.1.1/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.1.2/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet.ts +248 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +106 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +367 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +70 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +116 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +415 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-command.ts +268 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/team-up.ts +385 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.1.2/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.1.2/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.1.2/.pi/agents/peers.yaml +147 -0
- package/.versions/2.1.2/.pi/agents/teams.yaml +41 -0
- package/.versions/2.1.2/.pi/agents/voices.yaml +13 -0
- package/.versions/2.1.2/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.1.2/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.1.2/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.1.2/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.1.2/.pi/extensions/package.json +9 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/README.md +1584 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/agents.ts +181 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +301 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +262 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/index.ts +2705 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/input/shortcuts.ts +23 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/no-progress.ts +622 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/process-obligations.ts +177 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/scope-gate.js +233 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/action-executors.ts +216 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/context.ts +147 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +777 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +163 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/work-mode.ts +188 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.1.2/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.1.2/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.1.2/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.1.2/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.1.2/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-core.ts +734 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.1.2/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-connection-control.ts +77 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-notification-validation.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.1.2/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.1.2/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.1.2/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.1.2/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.1.2/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.1.2/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.1.2/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.1.2/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.1.2/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.1.2/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.1.2/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.1.2/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.1.2/.pi/harnesses/package.json +13 -0
- package/.versions/2.1.2/.pi/prompts/af-build.md +27 -0
- package/.versions/2.1.2/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.1.2/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.1.2/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.1.2/.pi/prompts/af-review.md +16 -0
- package/.versions/2.1.2/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.1.2/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.1.2/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.1.2/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.1.2/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.1.2/.pi/prompts/af-test.md +19 -0
- package/.versions/2.1.2/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.1.2/.version +1 -0
- package/.versions/2.1.2/agents/architect.md +24 -0
- package/.versions/2.1.2/agents/bowser.md +28 -0
- package/.versions/2.1.2/agents/builder.md +55 -0
- package/.versions/2.1.2/agents/code-reviewer.md +209 -0
- package/.versions/2.1.2/agents/deep-researcher.md +32 -0
- package/.versions/2.1.2/agents/documenter.md +22 -0
- package/.versions/2.1.2/agents/orchestrator.md +22 -0
- package/.versions/2.1.2/agents/plan-reviewer.md +83 -0
- package/.versions/2.1.2/agents/planner.md +107 -0
- package/.versions/2.1.2/agents/releaser.md +24 -0
- package/.versions/2.1.2/agents/researcher.md +30 -0
- package/.versions/2.1.2/agents/security-auditor.md +167 -0
- package/.versions/2.1.2/agents/test-engineer.md +153 -0
- package/.versions/2.1.2/agents/web-debugger.md +44 -0
- package/.versions/2.1.2/agents/web-performance-auditor.md +194 -0
- package/.versions/2.1.2/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.1.2/docs/ARCHITECTURE.md +1195 -0
- package/.versions/2.1.2/docs/agent-fleet-setup.md +1143 -0
- package/.versions/2.1.2/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.1.2/docs/codex-local-mcp.md +503 -0
- package/.versions/2.1.2/docs/codex-session-bridge.md +44 -0
- package/.versions/2.1.2/docs/codex-setup.md +183 -0
- package/.versions/2.1.2/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.1.2/docs/fleet-native-voice.md +145 -0
- package/.versions/2.1.2/docs/getting-started.md +126 -0
- package/.versions/2.1.2/docs/npm-install.md +535 -0
- package/.versions/2.1.2/docs/pi-extensions.md +455 -0
- package/.versions/2.1.2/docs/pi-setup.md +92 -0
- package/.versions/2.1.2/docs/skill-anatomy.md +150 -0
- package/.versions/2.1.2/install-manifest.json +3239 -0
- package/.versions/2.1.2/justfile +247 -0
- package/.versions/2.1.2/manifest-meta.json +1087 -0
- package/.versions/2.1.2/references/accessibility-checklist.md +160 -0
- package/.versions/2.1.2/references/communication-contract.md +26 -0
- package/.versions/2.1.2/references/definition-of-done.md +67 -0
- package/.versions/2.1.2/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.1.2/references/observability-checklist.md +92 -0
- package/.versions/2.1.2/references/orchestration-patterns.md +370 -0
- package/.versions/2.1.2/references/performance-checklist.md +236 -0
- package/.versions/2.1.2/references/prompting-patterns.md +380 -0
- package/.versions/2.1.2/references/security-checklist.md +245 -0
- package/.versions/2.1.2/references/testing-patterns.md +235 -0
- package/.versions/2.1.2/references/workflow-authoring.md +304 -0
- package/.versions/2.1.2/skills/_internal/grilling.md +59 -0
- package/.versions/2.1.2/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.1.2/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.2/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.1.2/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.1.2/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.2/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.1.2/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.2/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.1.2/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.1.2/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.1.2/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.1.2/skills/fleet-connect/SKILL.md +25 -0
- package/.versions/2.1.2/skills/fleet-native-voice/SKILL.md +87 -0
- package/.versions/2.1.2/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.1.2/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.1.2/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.2/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.1.2/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.1.2/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.2/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.2/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.2/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.2/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.1.2/skills/incremental-implementation.zip +0 -0
- package/.versions/2.1.2/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.1.2/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.1.2/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.1.2/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.2/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.1.2/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.1.2/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.1.2/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.1.2/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.2/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.1.2/skills/spec-driven-development.zip +0 -0
- package/.versions/2.1.2/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +17 -0
- package/docs/ARCHITECTURE.md +38 -1
- package/docs/codex-local-mcp.md +71 -2
- package/docs/codex-session-bridge.md +2 -2
- package/docs/codex-setup.md +1 -1
- package/docs/fleet-native-voice.md +17 -7
- package/docs/system1-context-continuity.md +11 -5
- package/install-manifest.json +24 -1
- package/manifest-meta.json +1 -0
- package/package.json +1 -1
- package/skills/fleet-connect/SKILL.md +25 -0
- package/skills/fleet-native-voice.zip +0 -0
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { resetIdenticalDialogs } from "../lib/identical-dialog.ts";
|
|
2
|
+
import { beginRuntimeTrace, traceAskResult, type TraceBus } from "../lib/execution-trace.ts";
|
|
3
|
+
// ask-user-remote harness
|
|
4
|
+
//
|
|
5
|
+
// Captures the stock pi-ask-user `ask_user` tool, then registers a wrapper with
|
|
6
|
+
// the same schema/renderers/result shape. With no live `user-remote` coms peer
|
|
7
|
+
// it delegates to stock execute with the original arguments unchanged. When the
|
|
8
|
+
// peer is live, it races the stock local UI against a remote coms round trip.
|
|
9
|
+
|
|
10
|
+
import * as fs from "node:fs";
|
|
11
|
+
import * as os from "node:os";
|
|
12
|
+
import * as path from "node:path";
|
|
13
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
14
|
+
|
|
15
|
+
import { raceAskUser } from "./race-core.js";
|
|
16
|
+
import { questionChannel, type QuestionChannel } from "./questions.ts";
|
|
17
|
+
import { registerRuntimeAsk } from "./runtime-ask.ts";
|
|
18
|
+
import { resetSemanticApprovals } from "../lib/semantic-approval.ts";
|
|
19
|
+
|
|
20
|
+
interface ToolRegistration {
|
|
21
|
+
name: string;
|
|
22
|
+
execute?: (...args: any[]) => Promise<any> | any;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ExtensionLike {
|
|
27
|
+
registerTool: (tool: ToolRegistration) => void;
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface InstallOptions {
|
|
32
|
+
traceBus?: TraceBus;
|
|
33
|
+
stockFactory?: (pi: ExtensionLike) => void;
|
|
34
|
+
startRemote?: (params: any, ctx?: any) => Promise<{ qid: string; result: Promise<any> } | null> | { qid: string; result: Promise<any> } | null;
|
|
35
|
+
cancelRemote?: (qid: string, reason: string) => Promise<void> | void;
|
|
36
|
+
warn?: (message: string) => void;
|
|
37
|
+
createAbortController?: () => AbortController;
|
|
38
|
+
settingsPaths?: string[];
|
|
39
|
+
/** When true, settings-listed packages are dormant (Pi `--no-extensions`/`-ne`). */
|
|
40
|
+
extensionDiscoveryDisabled?: boolean;
|
|
41
|
+
remoteProject?: string | (() => string);
|
|
42
|
+
questionChannel?: QuestionChannel;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface AskUserResultObservation {
|
|
46
|
+
params: { question?: unknown; context?: unknown; options?: unknown };
|
|
47
|
+
result?: unknown;
|
|
48
|
+
phase: "start" | "result";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const askUserResultObservers = new Set<(observation: AskUserResultObservation) => void>();
|
|
52
|
+
|
|
53
|
+
/** Observe compact ask calls without inspecting human prose. */
|
|
54
|
+
export function observeAskUserResults(observer: (observation: AskUserResultObservation) => void): () => void {
|
|
55
|
+
askUserResultObservers.add(observer);
|
|
56
|
+
return () => askUserResultObservers.delete(observer);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function emitAskUserObservation(observation: AskUserResultObservation): void {
|
|
60
|
+
for (const observer of askUserResultObservers) {
|
|
61
|
+
try { observer(observation); } catch { /* observers cannot break asking */ }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface ResolveStockOptions {
|
|
66
|
+
moduleUrl?: string;
|
|
67
|
+
cwd?: string;
|
|
68
|
+
homeDir?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// A stock `pi-ask-user` package listed in pi settings is loaded by pi core
|
|
72
|
+
// itself only when extension discovery is enabled. Under `--no-extensions`/
|
|
73
|
+
// `-ne` the entry is dormant, so this harness must still install the wrapper.
|
|
74
|
+
// When discovery is enabled, registering here first would make pi core
|
|
75
|
+
// hard-crash later with a tool-name conflict — the preflight skips instead.
|
|
76
|
+
const STOCK_PACKAGE_PATTERN = /(^|[/:])pi-ask-user(@[^/]*)?$/;
|
|
77
|
+
|
|
78
|
+
import {workspaceRoot} from '../lib/workspace-context.ts';
|
|
79
|
+
|
|
80
|
+
export function defaultSettingsPaths(): string[] {
|
|
81
|
+
return [
|
|
82
|
+
path.join(workspaceRoot(process.cwd()), ".pi", "settings.json"),
|
|
83
|
+
path.join(os.homedir(), ".pi", "agent", "settings.json"),
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** True when argv disables Pi package/extension discovery (explicit `-e` still works). */
|
|
88
|
+
export function hasDisabledExtensionDiscovery(argv: string[] = process.argv): boolean {
|
|
89
|
+
return argv.includes("--no-extensions") || argv.includes("-ne");
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface StockPackageEntry {
|
|
93
|
+
source: string;
|
|
94
|
+
autoload?: boolean;
|
|
95
|
+
extensions?: unknown;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function parseStockPackageEntry(value: unknown): StockPackageEntry | null {
|
|
99
|
+
if (typeof value === "string") {
|
|
100
|
+
return STOCK_PACKAGE_PATTERN.test(value) ? { source: value } : null;
|
|
101
|
+
}
|
|
102
|
+
if (!value || typeof value !== "object") return null;
|
|
103
|
+
const entry = value as { source?: unknown; autoload?: unknown; extensions?: unknown };
|
|
104
|
+
if (typeof entry.source !== "string" || !STOCK_PACKAGE_PATTERN.test(entry.source)) return null;
|
|
105
|
+
return {
|
|
106
|
+
source: entry.source,
|
|
107
|
+
autoload: entry.autoload === false ? false : undefined,
|
|
108
|
+
extensions: entry.extensions,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function stockExtensionPatternMatches(rawPattern: string): boolean {
|
|
113
|
+
let pattern = rawPattern;
|
|
114
|
+
if (pattern.startsWith("!") || pattern.startsWith("+") || pattern.startsWith("-")) pattern = pattern.slice(1);
|
|
115
|
+
pattern = pattern.replace(/^\.\//, "");
|
|
116
|
+
let expression = "";
|
|
117
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
118
|
+
const char = pattern[i];
|
|
119
|
+
if (char === "*") {
|
|
120
|
+
if (pattern[i + 1] === "*") {
|
|
121
|
+
expression += ".*";
|
|
122
|
+
i++;
|
|
123
|
+
} else {
|
|
124
|
+
expression += "[^/]*";
|
|
125
|
+
}
|
|
126
|
+
} else if (char === "?") {
|
|
127
|
+
expression += "[^/]";
|
|
128
|
+
} else {
|
|
129
|
+
expression += char.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return new RegExp(`^${expression}$`).test("index.ts");
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function applyStockExtensionFilter(filter: unknown, inherited: boolean): boolean {
|
|
136
|
+
if (filter === undefined || !Array.isArray(filter)) return inherited;
|
|
137
|
+
if (filter.length === 0) return false;
|
|
138
|
+
|
|
139
|
+
const patterns = filter.filter((value): value is string => typeof value === "string" && value.length > 0);
|
|
140
|
+
const selectors = patterns.filter((pattern) => !pattern.startsWith("!") && !pattern.startsWith("+") && !pattern.startsWith("-"));
|
|
141
|
+
let enabled = selectors.length > 0
|
|
142
|
+
? selectors.some(stockExtensionPatternMatches)
|
|
143
|
+
: inherited;
|
|
144
|
+
|
|
145
|
+
for (const pattern of patterns) {
|
|
146
|
+
if (!stockExtensionPatternMatches(pattern)) continue;
|
|
147
|
+
if (pattern.startsWith("!") || pattern.startsWith("-")) enabled = false;
|
|
148
|
+
else if (pattern.startsWith("+")) enabled = true;
|
|
149
|
+
}
|
|
150
|
+
return enabled;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function findStockAskUserPackageEntry(settingsPaths: string[]): { entry: string; settingsPath: string } | null {
|
|
154
|
+
const located: Array<{ entry: StockPackageEntry; settingsPath: string }> = [];
|
|
155
|
+
for (const settingsPath of settingsPaths) {
|
|
156
|
+
let packages: unknown;
|
|
157
|
+
try {
|
|
158
|
+
packages = JSON.parse(fs.readFileSync(settingsPath, "utf8"))?.packages;
|
|
159
|
+
} catch {
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (!Array.isArray(packages)) continue;
|
|
163
|
+
const entry = packages.map(parseStockPackageEntry).find(Boolean);
|
|
164
|
+
if (entry) located.push({ entry, settingsPath });
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Pi resolves lower-precedence settings first. A normal project entry
|
|
168
|
+
// replaces the global entry; `autoload:false` applies only its resource
|
|
169
|
+
// filter as a delta over the inherited package state.
|
|
170
|
+
let enabled = false;
|
|
171
|
+
let owner: { entry: StockPackageEntry; settingsPath: string } | null = null;
|
|
172
|
+
for (let i = located.length - 1; i >= 0; i--) {
|
|
173
|
+
const current = located[i];
|
|
174
|
+
const inherited = current.entry.autoload === false ? enabled : true;
|
|
175
|
+
enabled = applyStockExtensionFilter(current.entry.extensions, inherited);
|
|
176
|
+
owner = enabled ? current : null;
|
|
177
|
+
}
|
|
178
|
+
return owner ? { entry: owner.entry.source, settingsPath: owner.settingsPath } : null;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function captureAskUserTool(stockFactory: (pi: ExtensionLike) => void, pi: ExtensionLike): ToolRegistration {
|
|
182
|
+
let captured: ToolRegistration | null = null;
|
|
183
|
+
const proxy = new Proxy(pi, {
|
|
184
|
+
get(target, prop, receiver) {
|
|
185
|
+
if (prop === "registerTool") {
|
|
186
|
+
return (tool: ToolRegistration) => {
|
|
187
|
+
if (tool?.name === "ask_user") {
|
|
188
|
+
captured = tool;
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
return target.registerTool(tool);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
return Reflect.get(target, prop, receiver);
|
|
195
|
+
},
|
|
196
|
+
}) as ExtensionLike;
|
|
197
|
+
|
|
198
|
+
stockFactory(proxy);
|
|
199
|
+
if (!captured) throw new Error("ask-user-remote: stock pi-ask-user did not register ask_user");
|
|
200
|
+
return captured;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function warn(pi: ExtensionLike, options: InstallOptions, message: string): void {
|
|
204
|
+
if (typeof options.warn === "function") {
|
|
205
|
+
options.warn(message);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
if (typeof pi.logger?.warn === "function") {
|
|
209
|
+
pi.logger.warn(message);
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (typeof pi.log?.warn === "function") {
|
|
213
|
+
pi.log.warn(message);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
console.warn(message);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function resolveRemoteProject(pi: ExtensionLike, argv: string[] = process.argv): string {
|
|
220
|
+
for (let i = argv.length - 2; i >= 0; i--) {
|
|
221
|
+
if (argv[i] === "--project" && typeof argv[i + 1] === "string" && argv[i + 1].trim()) {
|
|
222
|
+
return argv[i + 1].trim();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const inlineProject = [...argv].reverse().find((arg) => arg.startsWith("--project="))?.slice("--project=".length).trim();
|
|
226
|
+
if (inlineProject) return inlineProject;
|
|
227
|
+
const cliProject = typeof pi.getFlag === "function" ? pi.getFlag("project") : undefined;
|
|
228
|
+
if (typeof cliProject === "string" && cliProject.trim()) return cliProject.trim();
|
|
229
|
+
const envProject = process.env.PI_COMS_PROJECT;
|
|
230
|
+
return envProject?.trim() || "default";
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function linkAbortSignal(parent: AbortSignal | undefined, child: AbortController): void {
|
|
234
|
+
if (!parent) return;
|
|
235
|
+
if (parent.aborted) {
|
|
236
|
+
child.abort();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
parent.addEventListener("abort", () => child.abort(), { once: true });
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function stockResultFromRemote(params: any, response: any): any {
|
|
243
|
+
const summary = response?.kind === "selection"
|
|
244
|
+
? (Array.isArray(response.selections) ? response.selections.join(", ") : "")
|
|
245
|
+
: response?.kind === "freeform"
|
|
246
|
+
? String(response.text ?? "")
|
|
247
|
+
: typeof response === "string"
|
|
248
|
+
? response
|
|
249
|
+
: JSON.stringify(response);
|
|
250
|
+
return {
|
|
251
|
+
content: [{ type: "text", text: `User answered: ${summary}` }],
|
|
252
|
+
details: {
|
|
253
|
+
question: params?.question,
|
|
254
|
+
context: params?.context?.trim?.() || params?.context,
|
|
255
|
+
options: normalizeOptions(params?.options ?? []),
|
|
256
|
+
response,
|
|
257
|
+
cancelled: false,
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function normalizeOptions(options: any[]): Array<{ title: string; description?: string }> {
|
|
263
|
+
return (Array.isArray(options) ? options : [])
|
|
264
|
+
.map((option) => {
|
|
265
|
+
if (typeof option === "string") return { title: option };
|
|
266
|
+
if (option && typeof option === "object" && typeof option.title === "string") {
|
|
267
|
+
return typeof option.description === "string"
|
|
268
|
+
? { title: option.title, description: option.description }
|
|
269
|
+
: { title: option.title };
|
|
270
|
+
}
|
|
271
|
+
return null;
|
|
272
|
+
})
|
|
273
|
+
.filter(Boolean) as Array<{ title: string; description?: string }>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// Live remote questions started by defaultStartRemote, keyed by qid. A cancel
|
|
277
|
+
// must settle the pending result so the per-question endpoint server is closed;
|
|
278
|
+
// otherwise every locally-answered race leaks a bound socket until process exit.
|
|
279
|
+
const activeRemote = new Map<string, (error: Error) => void>();
|
|
280
|
+
|
|
281
|
+
export function activeRemoteCount(): number {
|
|
282
|
+
return activeRemote.size;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
async function defaultStartRemote(params: any, project: string): Promise<{ qid: string; result: Promise<any> } | null> {
|
|
286
|
+
const coms = await import("../../agent-fleet/scripts/lib/coms-envelope.ts");
|
|
287
|
+
const peerName = process.env.PI_ASK_USER_REMOTE_PEER || "user-remote";
|
|
288
|
+
const peer = coms.pruneDeadEntries(project).find((entry: any) => entry.name === peerName);
|
|
289
|
+
if (!peer) return null;
|
|
290
|
+
|
|
291
|
+
coms.ensureComsDirs(project);
|
|
292
|
+
const id = {
|
|
293
|
+
session_id: coms.ulid(),
|
|
294
|
+
name: "ask-user-remote",
|
|
295
|
+
endpoint: "",
|
|
296
|
+
cwd: process.cwd(),
|
|
297
|
+
};
|
|
298
|
+
id.endpoint = coms.makeEndpoint(id.session_id);
|
|
299
|
+
|
|
300
|
+
let resolveResult!: (value: any) => void;
|
|
301
|
+
let rejectResult!: (error: Error) => void;
|
|
302
|
+
const rawResult = new Promise<any>((resolve, reject) => {
|
|
303
|
+
resolveResult = resolve;
|
|
304
|
+
rejectResult = reject;
|
|
305
|
+
});
|
|
306
|
+
const server = await coms.bindEndpoint(
|
|
307
|
+
id.endpoint,
|
|
308
|
+
coms.makeConnHandler((env: Record<string, unknown>, socket: any) => {
|
|
309
|
+
if (coms.isResponseEnvelope(env)) {
|
|
310
|
+
coms.writeAck(socket, env.msg_id);
|
|
311
|
+
if (env.error) rejectResult(new Error(String(env.error)));
|
|
312
|
+
else resolveResult(stockResultFromRemote(params, env.response));
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
coms.writeNack(socket, (env as { msg_id?: string }).msg_id ?? "", "ask-user-remote awaits responses only");
|
|
316
|
+
}),
|
|
317
|
+
);
|
|
318
|
+
const cleanup = () => {
|
|
319
|
+
try { server.close(); } catch { /* ignore */ }
|
|
320
|
+
try { fs.unlinkSync(id.endpoint); } catch { /* ignore */ }
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
const promptPayload = JSON.stringify({
|
|
324
|
+
question: params?.question,
|
|
325
|
+
context: params?.context,
|
|
326
|
+
options: params?.options ?? [],
|
|
327
|
+
});
|
|
328
|
+
const env = coms.makePromptEnvelope(id, promptPayload);
|
|
329
|
+
activeRemote.set(env.msg_id, rejectResult);
|
|
330
|
+
const result = rawResult.finally(() => {
|
|
331
|
+
activeRemote.delete(env.msg_id);
|
|
332
|
+
cleanup();
|
|
333
|
+
});
|
|
334
|
+
try {
|
|
335
|
+
await coms.sendEnvelope(peer.endpoint, env);
|
|
336
|
+
} catch (error) {
|
|
337
|
+
rejectResult(error instanceof Error ? error : new Error(String(error)));
|
|
338
|
+
}
|
|
339
|
+
return { qid: env.msg_id, result };
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
async function defaultCancelRemote(qid: string, reason: string, project: string): Promise<void> {
|
|
343
|
+
try {
|
|
344
|
+
const coms = await import("../../agent-fleet/scripts/lib/coms-envelope.ts");
|
|
345
|
+
const peerName = process.env.PI_ASK_USER_REMOTE_PEER || "user-remote";
|
|
346
|
+
const peer = coms.pruneDeadEntries(project).find((entry: any) => entry.name === peerName);
|
|
347
|
+
if (peer) {
|
|
348
|
+
await coms.sendEnvelope(peer.endpoint, coms.makeCancelEnvelope({
|
|
349
|
+
from: "ask-user-remote",
|
|
350
|
+
to: peer.name,
|
|
351
|
+
ref_msg_id: qid,
|
|
352
|
+
}));
|
|
353
|
+
}
|
|
354
|
+
} finally {
|
|
355
|
+
// The bridge sends no response for a cancelled qid, so settle the pending
|
|
356
|
+
// result here to release the per-question endpoint server.
|
|
357
|
+
activeRemote.get(qid)?.(new Error(`ask-user-remote: cancelled (${reason})`));
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// Keep UI preferences in the stock implementation; expose only question semantics.
|
|
362
|
+
export const COMPACT_ASK_USER_PARAMETERS = {
|
|
363
|
+
type: "object",
|
|
364
|
+
properties: {
|
|
365
|
+
question: { type: "string", description: "One focused question." },
|
|
366
|
+
context: { type: "string", description: "Short decision context." },
|
|
367
|
+
options: { type: "array", items: { type: "string", description: "Choice label." }, minItems: 2, maxItems: 6, description: "Two to six choices." },
|
|
368
|
+
allowMultiple: { type: "boolean", description: "Allow several choices." },
|
|
369
|
+
allowFreeform: { type: "boolean", description: "Allow a typed answer." },
|
|
370
|
+
allowComment: { type: "boolean", description: "Allow an optional comment." },
|
|
371
|
+
},
|
|
372
|
+
required: ["question"],
|
|
373
|
+
} as const;
|
|
374
|
+
|
|
375
|
+
export function compactAskUserParams(params: any): any {
|
|
376
|
+
return {
|
|
377
|
+
question: params?.question,
|
|
378
|
+
...(params?.context === undefined ? {} : { context: params.context }),
|
|
379
|
+
...(params?.options === undefined ? {} : { options: normalizeOptions(params.options) }),
|
|
380
|
+
...(params?.allowMultiple === undefined ? {} : { allowMultiple: params.allowMultiple }),
|
|
381
|
+
...(params?.allowFreeform === undefined ? {} : { allowFreeform: params.allowFreeform }),
|
|
382
|
+
...(params?.allowComment === undefined ? {} : { allowComment: params.allowComment }),
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export function wrapAskUserTool(stockTool: ToolRegistration, options: InstallOptions = {}): ToolRegistration {
|
|
387
|
+
return {
|
|
388
|
+
...stockTool,
|
|
389
|
+
description: "Ask one focused human question; choices are optional.",
|
|
390
|
+
promptSnippet: "Ask one focused human question",
|
|
391
|
+
promptGuidelines: ["Ask one focused question per call."],
|
|
392
|
+
parameters: COMPACT_ASK_USER_PARAMETERS,
|
|
393
|
+
async execute(toolCallId: string, params: any, signal?: AbortSignal, onUpdate?: any, ctx?: any) {
|
|
394
|
+
const stockParams = compactAskUserParams(params);
|
|
395
|
+
const finishTrace = beginRuntimeTrace(options.traceBus, { kind: "approval", id: toolCallId, parentId: toolCallId });
|
|
396
|
+
const traceResult = (result: unknown) => finishTrace(traceAskResult(result, Array.isArray(stockParams.options) ? stockParams.options : []));
|
|
397
|
+
try {
|
|
398
|
+
emitAskUserObservation({ params: stockParams, phase: "start" });
|
|
399
|
+
const configuredProject = typeof options.remoteProject === "function" ? options.remoteProject() : options.remoteProject;
|
|
400
|
+
const remoteProject = configuredProject ?? process.env.PI_COMS_PROJECT?.trim() ?? "default";
|
|
401
|
+
const startRemote = options.startRemote ?? ((remoteParams: any) => defaultStartRemote(remoteParams, remoteProject));
|
|
402
|
+
let remoteStart: { qid: string; result: Promise<any> } | null = null;
|
|
403
|
+
try {
|
|
404
|
+
remoteStart = await startRemote(stockParams, ctx);
|
|
405
|
+
} catch {
|
|
406
|
+
remoteStart = null;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
const commentPreference = process.env.PI_ASK_USER_ALLOW_COMMENT?.trim().toLowerCase();
|
|
410
|
+
const addressed = (options.questionChannel ?? questionChannel).open(toolCallId, {
|
|
411
|
+
...stockParams,
|
|
412
|
+
allowComment: stockParams.allowComment ?? ["1", "true", "yes", "on"].includes(commentPreference ?? ""),
|
|
413
|
+
});
|
|
414
|
+
if (remoteStart && addressed) remoteStart = {
|
|
415
|
+
...remoteStart, result: remoteStart.result.then(addressed.validateRemote),
|
|
416
|
+
};
|
|
417
|
+
if (!remoteStart && !addressed) {
|
|
418
|
+
const result = await stockTool.execute?.(toolCallId, stockParams, signal, onUpdate, ctx);
|
|
419
|
+
traceResult(result);
|
|
420
|
+
emitAskUserObservation({ params: stockParams, result, phase: "result" });
|
|
421
|
+
return result;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
const expire = () => addressed?.expire();
|
|
425
|
+
if (signal?.aborted) expire();
|
|
426
|
+
else signal?.addEventListener("abort", expire, { once: true });
|
|
427
|
+
try {
|
|
428
|
+
const result = await raceAskUser({
|
|
429
|
+
runLocal: (localSignal: AbortSignal) => stockTool.execute?.(toolCallId, stockParams, localSignal, onUpdate, ctx),
|
|
430
|
+
startRemote: () => remoteStart,
|
|
431
|
+
cancelRemote: options.cancelRemote ?? ((qid: string, reason: string) => defaultCancelRemote(qid, reason, remoteProject)),
|
|
432
|
+
createAbortController: () => {
|
|
433
|
+
const controller = options.createAbortController?.() ?? new AbortController();
|
|
434
|
+
linkAbortSignal(signal, controller);
|
|
435
|
+
return controller;
|
|
436
|
+
},
|
|
437
|
+
signal,
|
|
438
|
+
registerAnswer: addressed?.registerAnswer,
|
|
439
|
+
onSettled: addressed?.onSettled,
|
|
440
|
+
});
|
|
441
|
+
traceResult(result);
|
|
442
|
+
emitAskUserObservation({ params: stockParams, result, phase: "result" });
|
|
443
|
+
return result;
|
|
444
|
+
} finally {
|
|
445
|
+
signal?.removeEventListener("abort", expire);
|
|
446
|
+
expire();
|
|
447
|
+
}
|
|
448
|
+
} catch (error) { finishTrace({ status: signal?.aborted ? "cancelled" : "failed" }); throw error; }
|
|
449
|
+
},
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export function installAskUserRemote(pi: ExtensionLike, options: InstallOptions = {}): { registered: boolean; tool?: ToolRegistration } {
|
|
454
|
+
const discoveryDisabled = options.extensionDiscoveryDisabled === true;
|
|
455
|
+
// Settings presence is not runtime availability: under --no-extensions the
|
|
456
|
+
// package entry is dormant and the wrapper must still install itself.
|
|
457
|
+
if (!discoveryDisabled && options.settingsPaths) {
|
|
458
|
+
const listed = findStockAskUserPackageEntry(options.settingsPaths);
|
|
459
|
+
if (listed) {
|
|
460
|
+
warn(pi, options, `ask-user-remote: "${listed.entry}" is listed in ${listed.settingsPath} "packages" and extension discovery is enabled; skipping the ask_user wrapper so the stock package registers without a tool conflict (remote answer racing disabled for this session).`);
|
|
461
|
+
return { registered: false };
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
if (!options.stockFactory) throw new Error("ask-user-remote: stockFactory is required for synchronous install");
|
|
465
|
+
const stockTool = captureAskUserTool(options.stockFactory, pi);
|
|
466
|
+
const wrapped = wrapAskUserTool(stockTool, {
|
|
467
|
+
...options,
|
|
468
|
+
traceBus: options.traceBus ?? pi.events,
|
|
469
|
+
remoteProject: options.remoteProject ?? (() => resolveRemoteProject(pi)),
|
|
470
|
+
});
|
|
471
|
+
try {
|
|
472
|
+
pi.registerTool(wrapped);
|
|
473
|
+
if (pi.events?.on && wrapped.execute) registerRuntimeAsk(pi.events, (...args) => wrapped.execute!(...args));
|
|
474
|
+
const channel = options.questionChannel ?? questionChannel;
|
|
475
|
+
channel.enabled = true;
|
|
476
|
+
pi.on?.("session_start", () => { resetSemanticApprovals(); resetIdenticalDialogs(); channel.reset(); channel.enabled = true; });
|
|
477
|
+
pi.on?.("session_shutdown", () => { resetSemanticApprovals(); resetIdenticalDialogs(); channel.reset(); channel.enabled = false; });
|
|
478
|
+
return { registered: true, tool: wrapped };
|
|
479
|
+
} catch (error) {
|
|
480
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
481
|
+
warn(pi, options, `ask-user-remote: ask_user already registered; wrapper not installed (${message})`);
|
|
482
|
+
return { registered: false };
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
const STOCK_ENTRY_NAMES = ["index.ts", "index.js", "index.mjs"] as const;
|
|
487
|
+
|
|
488
|
+
function stockEntriesUnder(packageDir: string): string[] {
|
|
489
|
+
return STOCK_ENTRY_NAMES.map((name) => path.join(packageDir, name));
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Candidate filesystem paths for stock `pi-ask-user`, in priority order:
|
|
494
|
+
* 1. Package-native bundled dependency beside the Agent Fleet package
|
|
495
|
+
* 2. Project Pi package (`.pi/npm`)
|
|
496
|
+
* 3. Harness runtime dependency (`.pi/harnesses/node_modules`)
|
|
497
|
+
* 4. Global Pi package (`~/.pi/agent/npm`)
|
|
498
|
+
*
|
|
499
|
+
* Each root expands to `index.ts`, then `index.js` / `index.mjs` so plain-Node
|
|
500
|
+
* smoke fixtures can supply a JS stub while production still prefers the
|
|
501
|
+
* upstream TypeScript entry that Pi's jiti loader understands.
|
|
502
|
+
*/
|
|
503
|
+
export function stockAskUserCandidatePaths(options: ResolveStockOptions = {}): string[] {
|
|
504
|
+
const moduleUrl = options.moduleUrl ?? import.meta.url;
|
|
505
|
+
const cwd = workspaceRoot(options.cwd ?? process.cwd());
|
|
506
|
+
const homeDir = options.homeDir ?? os.homedir();
|
|
507
|
+
|
|
508
|
+
// Pi's jiti loader preserves the workspace-facing path of a symlinked
|
|
509
|
+
// harness. Canonicalize this module first so the bundled dependency is
|
|
510
|
+
// resolved beside the actual Agent Fleet package, not at workspace root.
|
|
511
|
+
const realModulePath = fs.realpathSync(fileURLToPath(moduleUrl));
|
|
512
|
+
const moduleDir = path.dirname(realModulePath);
|
|
513
|
+
// ask-user-remote lives at <package>/.pi/harnesses/ask-user-remote
|
|
514
|
+
const packageRoot = path.resolve(moduleDir, "../../..");
|
|
515
|
+
const harnessRoot = path.resolve(moduleDir, "..");
|
|
516
|
+
|
|
517
|
+
let isPackageNative = false;
|
|
518
|
+
try {
|
|
519
|
+
isPackageNative = JSON.parse(fs.readFileSync(path.join(packageRoot, "package.json"), "utf8"))?.name === "@chankov/agent-fleet";
|
|
520
|
+
} catch {
|
|
521
|
+
// A copied harness has no Agent Fleet package root; do not treat the
|
|
522
|
+
// downstream application's node_modules as a bundled runtime source.
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
const roots = [
|
|
526
|
+
...(isPackageNative ? [path.join(packageRoot, "node_modules", "pi-ask-user")] : []),
|
|
527
|
+
path.join(cwd, ".pi", "npm", "node_modules", "pi-ask-user"),
|
|
528
|
+
path.join(harnessRoot, "node_modules", "pi-ask-user"),
|
|
529
|
+
path.join(cwd, ".pi", "harnesses", "node_modules", "pi-ask-user"),
|
|
530
|
+
path.join(homeDir, ".pi", "agent", "npm", "node_modules", "pi-ask-user"),
|
|
531
|
+
];
|
|
532
|
+
return roots.flatMap((root) => stockEntriesUnder(root));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export const MISSING_STOCK_ASK_USER_MESSAGE =
|
|
536
|
+
"ask-user-remote: pi-ask-user not found. Run `npm ci --prefix .pi/harnesses` and/or `pi install -l npm:pi-ask-user`.";
|
|
537
|
+
|
|
538
|
+
export function resolveStockAskUserModule(options: ResolveStockOptions | string = {}): string {
|
|
539
|
+
// Back-compat: older callers passed moduleUrl as the first positional arg.
|
|
540
|
+
const normalized: ResolveStockOptions = typeof options === "string" ? { moduleUrl: options } : options;
|
|
541
|
+
const seen = new Set<string>();
|
|
542
|
+
for (const candidate of stockAskUserCandidatePaths(normalized)) {
|
|
543
|
+
const resolved = path.resolve(candidate);
|
|
544
|
+
if (seen.has(resolved)) continue;
|
|
545
|
+
seen.add(resolved);
|
|
546
|
+
if (fs.existsSync(resolved)) {
|
|
547
|
+
return pathToFileURL(fs.realpathSync(resolved)).href;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
throw new Error(MISSING_STOCK_ASK_USER_MESSAGE);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
async function loadStockFactory(): Promise<(pi: ExtensionLike) => void> {
|
|
554
|
+
const mod = await import(resolveStockAskUserModule());
|
|
555
|
+
return mod.default as (pi: ExtensionLike) => void;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export default async function askUserRemote(pi: ExtensionLike): Promise<void> {
|
|
559
|
+
// Await registration so session_start probes (e.g. agent-hub getAllTools)
|
|
560
|
+
// see ask_user after extension factories finish loading.
|
|
561
|
+
try {
|
|
562
|
+
const stockFactory = await loadStockFactory();
|
|
563
|
+
installAskUserRemote(pi, {
|
|
564
|
+
stockFactory,
|
|
565
|
+
settingsPaths: defaultSettingsPaths(),
|
|
566
|
+
extensionDiscoveryDisabled: hasDisabledExtensionDiscovery(),
|
|
567
|
+
});
|
|
568
|
+
} catch (error) {
|
|
569
|
+
warn(pi, {}, `ask-user-remote: failed to load pi-ask-user (${error instanceof Error ? error.message : String(error)})`);
|
|
570
|
+
}
|
|
571
|
+
}
|