@chankov/agent-fleet 2.0.22 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/agent-fleet/scripts/coms-claude-bridge.ts +5 -2
- package/.pi/agent-fleet/scripts/coms-cli.ts +9 -4
- package/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +5 -2
- package/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.pi/agent-fleet/scripts/fleet.ts +35 -4
- package/.pi/agent-fleet/scripts/flow.ts +10 -1
- package/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +122 -0
- package/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +349 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +72 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +53 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +111 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +173 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +384 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +81 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.pi/agent-fleet/scripts/lib/fleet-command.ts +16 -0
- package/.pi/agent-fleet/scripts/lib/flow-command.ts +9 -0
- package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +14 -6
- package/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.pi/agent-fleet/scripts/lib/team-snapshot.ts +13 -0
- package/.pi/agent-fleet/scripts/package-lock.json +22 -0
- package/.pi/agent-fleet/scripts/package.json +1 -0
- package/.pi/agent-fleet/scripts/peer-launch.ts +17 -11
- package/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.pi/agent-fleet/scripts/team-snapshot.ts +14 -6
- package/.pi/agent-fleet/scripts/team-up.ts +16 -9
- package/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +5 -3
- package/.pi/agent-fleet/scripts/workflows/lib/env.ts +3 -1
- package/.pi/agent-fleet/scripts/workflows/lib/git.ts +4 -1
- package/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +10 -5
- package/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +15 -8
- package/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +5 -4
- package/.pi/agent-fleet/scripts/workflows/lib/quality.ts +3 -2
- package/.pi/agent-fleet/scripts/workflows/lib/run.ts +1 -0
- package/.pi/agent-fleet/scripts/workflows/lib/trace.ts +23 -5
- package/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +59 -23
- package/.pi/agents/model-profiles.yaml +3 -3
- package/.pi/agents/voices.yaml +1 -1
- package/.pi/extensions/btw/index.ts +2 -0
- package/.pi/extensions/pi-voice-stt/config.ts +5 -4
- package/.pi/harnesses/agent-hub/README.md +61 -4
- package/.pi/harnesses/agent-hub/acceptance.ts +8 -4
- package/.pi/harnesses/agent-hub/access-approval.ts +146 -21
- package/.pi/harnesses/agent-hub/agentic-hub.ts +2 -1
- package/.pi/harnesses/agent-hub/assertion-ledger.js +1 -0
- package/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.pi/harnesses/agent-hub/commands/context.ts +1 -0
- package/.pi/harnesses/agent-hub/config/agents.ts +3 -0
- package/.pi/harnesses/agent-hub/config/overrides.ts +4 -3
- package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +2 -2
- package/.pi/harnesses/agent-hub/context-continuity-broker.ts +7 -5
- package/.pi/harnesses/agent-hub/context-continuity-client.ts +6 -3
- package/.pi/harnesses/agent-hub/context-continuity-owners.ts +5 -3
- package/.pi/harnesses/agent-hub/damage-guard-approval.ts +41 -17
- package/.pi/harnesses/agent-hub/damage-guard-hub.ts +20 -11
- package/.pi/harnesses/agent-hub/damage-guard-owners.ts +5 -0
- package/.pi/harnesses/agent-hub/damage-guard-state.ts +2 -2
- package/.pi/harnesses/agent-hub/dispatch-coms.ts +7 -2
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +4 -1
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +4 -1
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +5 -0
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +1 -1
- package/.pi/harnesses/agent-hub/execution-evidence.ts +20 -4
- package/.pi/harnesses/agent-hub/file-discovery/hub.ts +2 -1
- package/.pi/harnesses/agent-hub/file-discovery/owners.ts +7 -3
- package/.pi/harnesses/agent-hub/index.ts +77 -11
- package/.pi/harnesses/agent-hub/input/shortcuts.ts +3 -0
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +3 -2
- package/.pi/harnesses/agent-hub/no-progress.ts +3 -3
- package/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.pi/harnesses/agent-hub/orchestration-activation.ts +1 -1
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.pi/harnesses/agent-hub/presentation.ts +7 -1
- package/.pi/harnesses/agent-hub/proactive-config.ts +2 -1
- package/.pi/harnesses/agent-hub/proactive-rules.ts +1 -1
- package/.pi/harnesses/agent-hub/proactive-snapshot.ts +12 -4
- package/.pi/harnesses/agent-hub/proactive-types.ts +3 -0
- package/.pi/harnesses/agent-hub/process-obligations.ts +8 -3
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +1 -1
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +1 -1
- package/.pi/harnesses/agent-hub/return-contract.js +24 -2
- package/.pi/harnesses/agent-hub/review-reuse.ts +3 -3
- package/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.pi/harnesses/agent-hub/runtime-receipts.ts +60 -0
- package/.pi/harnesses/agent-hub/runtime-test-check.ts +11 -0
- package/.pi/harnesses/agent-hub/safety-routing.ts +7 -1
- package/.pi/harnesses/agent-hub/scope-gate.js +10 -5
- package/.pi/harnesses/agent-hub/spawn.ts +80 -17
- package/.pi/harnesses/agent-hub/specialist-result.ts +15 -6
- package/.pi/harnesses/agent-hub/system1-communication-store.ts +8 -0
- package/.pi/harnesses/agent-hub/system1-runtime.ts +9 -3
- package/.pi/harnesses/agent-hub/task-resume-contract.ts +5 -0
- package/.pi/harnesses/agent-hub/task-triage-authorization.ts +36 -17
- package/.pi/harnesses/agent-hub/task-triage-config.ts +2 -1
- package/.pi/harnesses/agent-hub/tools/coms-tools.ts +4 -4
- package/.pi/harnesses/agent-hub/tools/context.ts +2 -1
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +133 -40
- package/.pi/harnesses/agent-hub/tools/fleet-tools.ts +3 -2
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +11 -6
- package/.pi/harnesses/agent-hub/tools/run-flow.ts +21 -11
- package/.pi/harnesses/agent-hub/tools/verification-contract.ts +1 -0
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +3 -1
- package/.pi/harnesses/agent-hub/work-mode.ts +3 -1
- package/.pi/harnesses/ask-user-remote/README.md +2 -2
- package/.pi/harnesses/ask-user-remote/index.ts +4 -2
- package/.pi/harnesses/ask-user-remote/questions.ts +49 -2
- package/.pi/harnesses/ask-user-remote/runtime-ask.ts +13 -6
- package/.pi/harnesses/coms/README.md +5 -0
- package/.pi/harnesses/coms/index.ts +25 -2
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/index.ts +91 -32
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/bash-policy-analysis.ts +1 -1
- package/.pi/harnesses/lib/coms-core-io.ts +10 -1
- package/.pi/harnesses/lib/coms-core.ts +48 -8
- package/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.pi/harnesses/lib/coms-registry-entry.ts +3 -0
- package/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.pi/harnesses/lib/damage-control-shared.ts +63 -16
- package/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.pi/harnesses/lib/fleet-codex-event-bridge.ts +81 -0
- package/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +3 -1
- package/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.pi/harnesses/lib/policy-roots.js +20 -9
- package/.pi/harnesses/lib/policy-roots.ts +2 -1
- package/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.pi/harnesses/lib/session-target.ts +62 -0
- package/.pi/harnesses/lib/system1/config-loader.js +12 -3
- package/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.pi/harnesses/lib/update-check.ts +5 -0
- package/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.23/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.23/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/fleet.ts +245 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/{.pi → .versions/2.0.23/.pi}/agent-fleet/scripts/lib/fleet-codex-session.ts +1 -1
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fleet-command.ts +266 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/team-up.ts +385 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.23/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.23/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.23/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.23/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.23/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.23/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.23/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.23/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.0.23/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.23/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.23/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.23/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.23/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.23/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.23/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.0.23/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.23/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.23/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.23/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.23/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.23/.pi/extensions/package.json +9 -0
- package/.versions/2.0.23/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.23/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.0.23/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.23/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.23/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.23/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.23/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/README.md +1527 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/acceptance.ts +200 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/access-approval.ts +141 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/context.ts +46 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/config/agents.ts +181 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-approval.ts +59 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-hub.ts +256 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +295 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +255 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/fixtures/registration-surface.json +66 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/index.ts +2617 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/no-progress.ts +622 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/process-obligations.ts +159 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/return-contract.js +349 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/runtime-test-check.ts +68 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/scope-gate.js +233 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/spawn.ts +665 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/specialist-result.ts +69 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-communication-store.ts +217 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-authorization.ts +151 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/context.ts +144 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +641 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/work-mode.ts +186 -0
- package/.versions/2.0.23/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.23/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.23/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.0.23/.pi/harnesses/ask-user-remote/questions.ts +159 -0
- package/.versions/2.0.23/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.23/.pi/harnesses/ask-user-remote/runtime-ask.ts +83 -0
- package/.versions/2.0.23/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.23/.pi/harnesses/coms/index.ts +285 -0
- package/.versions/2.0.23/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.23/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/index.ts +621 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.0.23/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.23/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.0.23/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.0.23/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.23/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/lib/coms-core-io.ts +415 -0
- package/.versions/2.0.23/.pi/harnesses/lib/coms-core.ts +686 -0
- package/.versions/2.0.23/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.0.23/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.0.23/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.0.23/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.0.23/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.23/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.0.23/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.0.23/.pi/harnesses/lib/damage-control-shared.ts +245 -0
- package/.versions/2.0.23/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.0.23/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.0.23/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.0.23/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.0.23/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.0.23/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.23/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.23/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.23/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.23/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.0.23/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.0.23/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.0.23/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.0.23/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.0.23/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.0.23/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.0.23/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.0.23/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.0.23/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.0.23/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.0.23/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.0.23/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.0.23/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.23/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.0.23/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.0.23/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.0.23/.pi/harnesses/package.json +13 -0
- package/.versions/2.0.23/.pi/prompts/af-build.md +27 -0
- package/.versions/2.0.23/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.23/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.23/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.23/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.23/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.23/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.23/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.23/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.23/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.23/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.23/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.23/.version +1 -0
- package/.versions/2.0.23/agents/architect.md +24 -0
- package/.versions/2.0.23/agents/bowser.md +28 -0
- package/.versions/2.0.23/agents/builder.md +55 -0
- package/.versions/2.0.23/agents/code-reviewer.md +209 -0
- package/.versions/2.0.23/agents/deep-researcher.md +32 -0
- package/.versions/2.0.23/agents/documenter.md +22 -0
- package/.versions/2.0.23/agents/orchestrator.md +22 -0
- package/.versions/2.0.23/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.23/agents/planner.md +107 -0
- package/.versions/2.0.23/agents/releaser.md +24 -0
- package/.versions/2.0.23/agents/researcher.md +30 -0
- package/.versions/2.0.23/agents/security-auditor.md +167 -0
- package/.versions/2.0.23/agents/test-engineer.md +153 -0
- package/.versions/2.0.23/agents/web-debugger.md +44 -0
- package/.versions/2.0.23/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.23/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.0.23/docs/ARCHITECTURE.md +1023 -0
- package/.versions/2.0.23/docs/agent-fleet-setup.md +1106 -0
- package/.versions/2.0.23/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.0.23/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.23/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.23/docs/getting-started.md +126 -0
- package/.versions/2.0.23/docs/npm-install.md +535 -0
- package/.versions/2.0.23/docs/pi-extensions.md +455 -0
- package/.versions/2.0.23/docs/pi-setup.md +92 -0
- package/.versions/2.0.23/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.23/install-manifest.json +3251 -0
- package/.versions/2.0.23/justfile +247 -0
- package/.versions/2.0.23/manifest-meta.json +1096 -0
- package/.versions/2.0.23/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.23/references/communication-contract.md +26 -0
- package/.versions/2.0.23/references/definition-of-done.md +67 -0
- package/.versions/2.0.23/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.23/references/observability-checklist.md +92 -0
- package/.versions/2.0.23/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.23/references/performance-checklist.md +236 -0
- package/.versions/2.0.23/references/prompting-patterns.md +380 -0
- package/.versions/2.0.23/references/security-checklist.md +245 -0
- package/.versions/2.0.23/references/testing-patterns.md +235 -0
- package/.versions/2.0.23/references/workflow-authoring.md +304 -0
- package/.versions/2.0.23/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.23/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.23/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.23/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.23/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.23/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.23/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.23/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.23/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.23/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.23/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.23/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.23/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.23/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.23/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.23/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.23/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.23/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.23/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.23/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.0.23/skills/incremental-implementation.zip +0 -0
- package/.versions/2.0.23/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.23/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.23/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.23/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.23/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.0.23/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.0.23/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.0.23/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.23/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.23/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.23/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.23/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.23/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.0.23/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.23/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.23/skills/spec-driven-development.zip +0 -0
- package/.versions/2.0.23/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.23/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.1.0/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.1.0/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/fleet.ts +248 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +122 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +349 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +72 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +53 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +111 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +173 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +384 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +81 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/fleet-command.ts +268 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/team-up.ts +385 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.1.0/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.1.0/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.1.0/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.1.0/.pi/agents/peers.yaml +147 -0
- package/.versions/2.1.0/.pi/agents/teams.yaml +41 -0
- package/.versions/2.1.0/.pi/agents/voices.yaml +13 -0
- package/.versions/2.1.0/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.1.0/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.1.0/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.1.0/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.1.0/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.1.0/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.1.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.1.0/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.1.0/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.1.0/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.1.0/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.1.0/.pi/extensions/package.json +9 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.1.0/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/README.md +1584 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/config/agents.ts +181 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +298 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +260 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/index.ts +2682 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/input/shortcuts.ts +23 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/no-progress.ts +622 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/process-obligations.ts +164 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/runtime-receipts.ts +60 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/runtime-test-check.ts +79 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/scope-gate.js +233 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-resume-contract.ts +75 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/context.ts +145 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +734 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +157 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/work-mode.ts +188 -0
- package/.versions/2.1.0/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.1.0/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.1.0/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.1.0/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.1.0/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.1.0/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.1.0/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.1.0/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.1.0/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.1.0/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.1.0/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-core.ts +720 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.1.0/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.1.0/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.1.0/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.1.0/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.1.0/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-codex-event-bridge.ts +81 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.1.0/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.1.0/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.1.0/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.1.0/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.1.0/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.1.0/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.1.0/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.1.0/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.1.0/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.1.0/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.1.0/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.1.0/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.1.0/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.1.0/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.1.0/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.1.0/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.1.0/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.1.0/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.1.0/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.1.0/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.1.0/.pi/harnesses/package.json +13 -0
- package/.versions/2.1.0/.pi/prompts/af-build.md +27 -0
- package/.versions/2.1.0/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.1.0/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.1.0/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.1.0/.pi/prompts/af-review.md +16 -0
- package/.versions/2.1.0/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.1.0/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.1.0/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.1.0/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.1.0/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.1.0/.pi/prompts/af-test.md +19 -0
- package/.versions/2.1.0/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.1.0/.version +1 -0
- package/.versions/2.1.0/agents/architect.md +24 -0
- package/.versions/2.1.0/agents/bowser.md +28 -0
- package/.versions/2.1.0/agents/builder.md +55 -0
- package/.versions/2.1.0/agents/code-reviewer.md +209 -0
- package/.versions/2.1.0/agents/deep-researcher.md +32 -0
- package/.versions/2.1.0/agents/documenter.md +22 -0
- package/.versions/2.1.0/agents/orchestrator.md +22 -0
- package/.versions/2.1.0/agents/plan-reviewer.md +83 -0
- package/.versions/2.1.0/agents/planner.md +107 -0
- package/.versions/2.1.0/agents/releaser.md +24 -0
- package/.versions/2.1.0/agents/researcher.md +30 -0
- package/.versions/2.1.0/agents/security-auditor.md +167 -0
- package/.versions/2.1.0/agents/test-engineer.md +153 -0
- package/.versions/2.1.0/agents/web-debugger.md +44 -0
- package/.versions/2.1.0/agents/web-performance-auditor.md +194 -0
- package/.versions/2.1.0/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.1.0/docs/ARCHITECTURE.md +1158 -0
- package/.versions/2.1.0/docs/agent-fleet-setup.md +1143 -0
- package/.versions/2.1.0/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.1.0/docs/codex-local-mcp.md +434 -0
- package/.versions/2.1.0/docs/codex-session-bridge.md +44 -0
- package/.versions/2.1.0/docs/codex-setup.md +183 -0
- package/.versions/2.1.0/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.1.0/docs/fleet-native-voice.md +135 -0
- package/.versions/2.1.0/docs/getting-started.md +126 -0
- package/.versions/2.1.0/docs/npm-install.md +535 -0
- package/.versions/2.1.0/docs/pi-extensions.md +455 -0
- package/.versions/2.1.0/docs/pi-setup.md +92 -0
- package/.versions/2.1.0/docs/skill-anatomy.md +150 -0
- package/.versions/2.1.0/install-manifest.json +3216 -0
- package/.versions/2.1.0/justfile +247 -0
- package/.versions/2.1.0/manifest-meta.json +1086 -0
- package/.versions/2.1.0/references/accessibility-checklist.md +160 -0
- package/.versions/2.1.0/references/communication-contract.md +26 -0
- package/.versions/2.1.0/references/definition-of-done.md +67 -0
- package/.versions/2.1.0/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.1.0/references/observability-checklist.md +92 -0
- package/.versions/2.1.0/references/orchestration-patterns.md +370 -0
- package/.versions/2.1.0/references/performance-checklist.md +236 -0
- package/.versions/2.1.0/references/prompting-patterns.md +380 -0
- package/.versions/2.1.0/references/security-checklist.md +245 -0
- package/.versions/2.1.0/references/testing-patterns.md +235 -0
- package/.versions/2.1.0/references/workflow-authoring.md +304 -0
- package/.versions/2.1.0/skills/_internal/grilling.md +59 -0
- package/.versions/2.1.0/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.1.0/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.0/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.1.0/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.1.0/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.0/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.1.0/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.0/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.1.0/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.1.0/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.1.0/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.1.0/skills/fleet-native-voice/SKILL.md +73 -0
- package/.versions/2.1.0/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.1.0/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.1.0/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.1.0/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.1.0/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.0/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.0/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.0/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.1.0/skills/incremental-implementation.zip +0 -0
- package/.versions/2.1.0/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.1.0/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.1.0/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.1.0/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.0/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.1.0/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.1.0/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.1.0/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.1.0/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.1.0/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.0/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.1.0/skills/spec-driven-development.zip +0 -0
- package/.versions/2.1.0/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.1.0/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +31 -0
- package/README.md +14 -10
- package/agents/architect.md +2 -2
- package/agents/bowser.md +2 -2
- package/agents/builder.md +2 -2
- package/agents/code-reviewer.md +2 -2
- package/agents/deep-researcher.md +1 -1
- package/agents/documenter.md +1 -1
- package/agents/orchestrator.md +1 -1
- package/agents/plan-reviewer.md +2 -2
- package/agents/planner.md +2 -2
- package/agents/releaser.md +1 -1
- package/agents/researcher.md +1 -1
- package/agents/security-auditor.md +1 -1
- package/agents/test-engineer.md +2 -2
- package/agents/web-debugger.md +2 -2
- package/agents/web-performance-auditor.md +2 -2
- package/bin/catalog/harness-runtime-closure.json +12 -0
- package/bin/cli.js +115 -1
- package/bin/lib/apply.js +8 -1
- package/bin/lib/features.js +4 -1
- package/bin/lib/hermes-profile-artifact.js +21 -10
- package/bin/lib/inspect.js +103 -0
- package/bin/lib/mcp-probe.js +104 -0
- package/bin/lib/public-plan.js +2 -0
- package/bin/lib/repair-desired.js +1 -1
- package/bin/lib/set-codex-mcp.js +699 -0
- package/bin/lib/skill-zip.js +222 -0
- package/bin/snapshot-version.js +3 -1
- package/docs/ARCHITECTURE.md +187 -11
- package/docs/MIGRATION-agent-fleet.md +2 -2
- package/docs/agent-fleet-setup.md +42 -2
- package/docs/codex-local-mcp.md +434 -0
- package/docs/codex-session-bridge.md +28 -203
- package/docs/codex-setup.md +183 -0
- package/docs/fleet-native-voice.md +135 -0
- package/docs/npm-install.md +2 -2
- package/docs/session-worktree-targeting.md +99 -0
- package/docs/system1-agentic.md +1 -1
- package/docs/workflows.md +4 -0
- package/install-manifest.json +73 -67
- package/justfile +6 -6
- package/manifest-meta.json +54 -56
- package/package.json +13 -7
- package/skills/fleet-native-voice.zip +0 -0
- package/skills/incremental-implementation/SKILL.md +1 -1
- package/skills/incremental-implementation.zip +0 -0
- /package/{.pi → .versions/2.0.23/.pi}/agent-fleet/scripts/fleet-codex-client.ts +0 -0
- /package/{.pi → .versions/2.0.23/.pi}/agent-fleet/scripts/fleet-codex-read.py +0 -0
- /package/{.pi → .versions/2.0.23/.pi}/agent-fleet/scripts/lib/fleet-codex-catalog.ts +0 -0
- /package/{.pi → .versions/2.0.23/.pi}/agent-fleet/scripts/lib/fleet-codex-operations.ts +0 -0
- /package/{.pi → .versions/2.0.23/.pi}/agent-fleet/scripts/lib/fleet-codex-transport.ts +0 -0
- /package/{codex → .versions/2.0.23/codex}/fleet-session-client/SKILL.md +0 -0
- /package/{codex → .versions/2.0.23/codex}/fleet-session-client.zip +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {worktreeConsumerService} from '../lib/system1/worktree-service.ts';
|
|
1
2
|
import {randomUUID} from 'node:crypto';
|
|
2
3
|
import {beginRuntimeTrace,type TraceBus} from '../lib/execution-trace.ts';
|
|
3
4
|
import {realpathSync} from 'node:fs';
|
|
@@ -21,10 +22,11 @@ import {createDamageResultScreen,type DamageResultEvent} from '../damage-control
|
|
|
21
22
|
import {captureDamageResult} from '../lib/damage-result-evidence.ts';
|
|
22
23
|
import {createDamageIdentity,validDamageIdentity} from './damage-guard-identity.ts';
|
|
23
24
|
import {createDamageState,validDamageDecision,damageDenyKey,type DamageAction} from './damage-guard-state.ts';
|
|
25
|
+
import {permissionRelayFor,type PermissionRelay} from './permission-relay.ts';
|
|
24
26
|
import {createDamageApproval} from './damage-guard-approval.ts';
|
|
25
27
|
import {requestRuntimeAsk,type RuntimeQuestion} from '../ask-user-remote/runtime-ask.ts';
|
|
26
28
|
export const DAMAGE_INPUT_ENTRY='damage-guard-input',DAMAGE_DENY_ENTRY='damage-guard-denial';
|
|
27
|
-
interface HubSessionOptions {root:string;snapshot:ReturnType<typeof normalizeSystem1Config>;taskId():string;childAuthority?:{taskToken():unknown;admit(identity:DamageOwnerIdentity):boolean};append(type:string,data:unknown):void;entries():unknown[];canRead(path:string):boolean;selected:boolean;service?:System1Service;traceBus?:TraceBus;ask(id:string,question:RuntimeQuestion,signal:AbortSignal,action?:DamageAction):Promise<unknown>;}
|
|
29
|
+
interface HubSessionOptions {relay?:PermissionRelay;root:string;snapshot:ReturnType<typeof normalizeSystem1Config>;taskId():string;childAuthority?:{taskToken():unknown;admit(identity:DamageOwnerIdentity):boolean};append(type:string,data:unknown):void;entries():unknown[];canRead(path:string):boolean;selected:boolean;service?:System1Service;traceBus?:TraceBus;ask(id:string,question:RuntimeQuestion,signal:AbortSignal,action?:DamageAction):Promise<unknown>;}
|
|
28
30
|
export function createDamageHubSession(options:HubSessionOptions){
|
|
29
31
|
const controller=new AbortController();let revoked=false;
|
|
30
32
|
// A decision must follow its authoritative input hash in the same append-only history.
|
|
@@ -63,9 +65,10 @@ export function createDamageHubSession(options:HubSessionOptions){
|
|
|
63
65
|
return owners.validate(owner,tool,cwd);
|
|
64
66
|
},revoke:owners.revoke,
|
|
65
67
|
};
|
|
66
|
-
const
|
|
68
|
+
const scopedService=worktreeConsumerService(options.service,options.snapshot.document,'damageGuard');
|
|
69
|
+
const sharedService: System1Service|undefined=enabled&&scopedService?{evaluate:async request=>{
|
|
67
70
|
if(Date.now()<backoff)return {status:'unavailable',reason:'network'};
|
|
68
|
-
try{const result=await
|
|
71
|
+
try{const result=await scopedService!.evaluate(request);if(result.status!=='ok')backoff=Date.now()+config.limits.outageBackoffMs;return result;}catch(error){backoff=Date.now()+config.limits.outageBackoffMs;throw error;}
|
|
69
72
|
}}:undefined;
|
|
70
73
|
const latestActions=new Map<string,string>();
|
|
71
74
|
function noteAction(action:DamageAction){const key=overrideKey(action),prior=latestActions.get(action.owner);if(prior&&prior!==key)overrides.delete(prior);latestActions.set(action.owner,key);}
|
|
@@ -76,7 +79,7 @@ export function createDamageHubSession(options:HubSessionOptions){
|
|
|
76
79
|
const contexts=new Map<string,DamageCallContext>();
|
|
77
80
|
const guard=createDamageGuard({root:options.root,config:{...config,mode:enabled?'active':'off'},state,binding,canRead:options.canRead,service:sharedService,signal,takeOverride:action=>{const key=overrideKey(action);if(!overrides.has(key))return false;overrides.delete(key);return true;},approve:async(action,input)=>{
|
|
78
81
|
const ctx=contexts.get(JSON.stringify(action));
|
|
79
|
-
const approval=createDamageApproval({state,current:()=>({...action,...binding()}),baseline:()=>!revoked&¤t()&&ctx?.revalidateBaseline?.()===true,ask:options.ask,timeoutMs:config.limits.approvalTimeoutMs});
|
|
82
|
+
const approval=createDamageApproval({state,current:()=>({...action,...binding()}),baseline:()=>!revoked&¤t()&&ctx?.revalidateBaseline?.()===true,ask:options.ask,relay:options.relay,audit:record=>options.append('damage-permission-decision',record),timeoutMs:config.limits.approvalTimeoutMs});
|
|
80
83
|
const result=await approval.request(action,input,signal);return result.status==='allowed'?approval.consumeProof(result.grant,action,signal):false;
|
|
81
84
|
}});
|
|
82
85
|
return {
|
|
@@ -99,7 +102,7 @@ export function createDamageHubSession(options:HubSessionOptions){
|
|
|
99
102
|
};
|
|
100
103
|
}
|
|
101
104
|
// Child-local baseline is deliberately absent from this parent assessment port.
|
|
102
|
-
// A grant
|
|
105
|
+
// A grant carries one-use human or explicit machine decision only; the native hook owes baseline revalidation.
|
|
103
106
|
function remember(action:DamageAction,input:unknown){
|
|
104
107
|
if(!state.needsArm(action)||overrides.has(overrideKey(action))||!actionPresentation(action,{input,cwd:action.cwd}))return;
|
|
105
108
|
try{const copy=structuredClone(input),bytes=Buffer.byteLength(JSON.stringify([action,copy]));
|
|
@@ -118,24 +121,30 @@ export function createDamageHubSession(options:HubSessionOptions){
|
|
|
118
121
|
if(state.needsArm(action)&&!armed)return 'blocked';
|
|
119
122
|
if(!state.held(action)&&!state.needsArm(action)){
|
|
120
123
|
if(!sharedService||Date.now()<backoff)return 'unavailable';
|
|
124
|
+
// Inference must settle before the authenticated transport deadline. Spending
|
|
125
|
+
// the entire IPC budget here races the broker/client timers and turns an
|
|
126
|
+
// optional provider outage into apparent loss of transport authority.
|
|
127
|
+
const assessmentMs=Math.min(context.remainingMs,config.limits.hookTimeoutMs)-100;
|
|
128
|
+
if(assessmentMs<=0)return 'unavailable';
|
|
121
129
|
const controller=new AbortController(),abort=()=>controller.abort();context.signal.addEventListener('abort',abort,{once:true});owner.signal.addEventListener('abort',abort,{once:true});
|
|
122
|
-
const deadline=Date.now()+
|
|
130
|
+
const deadline=Date.now()+assessmentMs,timer=setTimeout(abort,Math.max(1,deadline-Date.now()));
|
|
131
|
+
const timedOut=()=>{backoff=Date.now()+config.limits.outageBackoffMs;return 'unavailable' as const;};
|
|
123
132
|
try{
|
|
124
133
|
const raw=event.input as Record<string,unknown>,input=event.toolName!=='bash'&&typeof raw.path==='string'?{...raw,path:resolve(owner.cwd,raw.path)}:raw;
|
|
125
134
|
const screened=await screenDamagePayload({kind:event.toolName==='bash'?'command':'edit',input},{root:options.root,config,canRead:options.canRead,signal:controller.signal});
|
|
126
|
-
if(!current())return 'revoked';if(controller.signal.aborted)return
|
|
135
|
+
if(!current())return 'revoked';if(controller.signal.aborted)return timedOut();if(screened.status!=='ready')return 'no_hold';
|
|
127
136
|
const request={state:{owner:owner.owner,trigger:event.toolName,scope:screened.scope,coverage:screened.coverage,bytes:screened.bytes,payload:screened.payload},questions:DAMAGE_GUARD_QUESTIONS,questionSetVersion:DAMAGE_GUARD_VERSION,timeoutMs:Math.max(1,deadline-Date.now()),signal:controller.signal};
|
|
128
137
|
if(Buffer.byteLength(JSON.stringify({...request,signal:undefined}))>config.limits.maxPayloadBytes)return 'no_hold';
|
|
129
138
|
const result=await Promise.race([sharedService.evaluate(request),new Promise<import('../lib/system1/contracts.ts').System1Result>(r=>{if(controller.signal.aborted)r({status:'cancelled'});else controller.signal.addEventListener('abort',()=>r({status:'cancelled'}),{once:true});})]);
|
|
130
|
-
if(!current())return 'revoked';if(controller.signal.aborted)return
|
|
139
|
+
if(!current())return 'revoked';if(controller.signal.aborted)return timedOut();if(result.status!=='ok')return 'unavailable';
|
|
131
140
|
if(damageVerdict(result,'call')!=='hold_exact_action')return 'no_hold';
|
|
132
141
|
state.hold(action);
|
|
133
|
-
}catch{return state.held(action)?'blocked':'indeterminate';}
|
|
142
|
+
}catch{return state.held(action)?'blocked':!current()?'revoked':controller.signal.aborted?timedOut():'indeterminate';}
|
|
134
143
|
finally{clearTimeout(timer);context.signal.removeEventListener('abort',abort);owner.signal.removeEventListener('abort',abort);}
|
|
135
144
|
}
|
|
136
145
|
try{state.hold(action);}catch{return 'blocked';}
|
|
137
146
|
if(!current()||!context.held())return 'blocked';
|
|
138
|
-
const approval=createDamageApproval({state,current:()=>({...action,taskId:options.taskId(),inputRevision:identity.revision(options.taskId())}),baseline:current,ask:options.ask,timeoutMs:config.limits.approvalTimeoutMs});
|
|
147
|
+
const approval=createDamageApproval({state,current:()=>({...action,taskId:options.taskId(),inputRevision:identity.revision(options.taskId())}),baseline:current,ask:options.ask,relay:options.relay,audit:record=>options.append('damage-permission-decision',record),timeoutMs:config.limits.approvalTimeoutMs});
|
|
139
148
|
const result=await approval.request(action,event.input,context.signal);
|
|
140
149
|
if(result.status!=='allowed'){remember(action,event.input);return 'blocked';}
|
|
141
150
|
return approval.consumeProof(result.grant,action,context.signal).allowed&¤t()?'granted':'blocked';
|
|
@@ -241,7 +250,7 @@ export async function configureDamageGuardHub(pi:ExtensionAPI,options:{snapshot:
|
|
|
241
250
|
const generation={};generations.set(pi,generation);if(sessions.has(pi)||closures.has(pi))await closeSession(pi);if(generations.get(pi)!==generation)return;
|
|
242
251
|
if(process.env.AGENT_HUB_AGENT_ID||process.env.AGENT_FLEET_AGENTIC_CHILD)return;
|
|
243
252
|
registerDamageGuardHub(pi);
|
|
244
|
-
const runtime=createDamageHubSession({root:options.ctx.cwd,snapshot:options.snapshot,taskId:options.taskId,childAuthority:options.childAuthority,append:(type,data)=>pi.appendEntry(type,data),entries:()=>options.ctx.sessionManager.getEntries(),canRead:path=>currentFileAccessAllowed(options.ctx.cwd,path),selected:readSystem1Selected(options.ctx.cwd),service:options.service,traceBus:pi.events,ask:(id,q,signal,action)=>requestRuntimeAsk(pi.events,id,q,options.ctx,signal,{parentId:action?.actionId,parentKind:'policy',owner:action?.owner,source:'damage-guard'})});
|
|
253
|
+
const runtime=createDamageHubSession({relay:permissionRelayFor(pi),root:options.ctx.cwd,snapshot:options.snapshot,taskId:options.taskId,childAuthority:options.childAuthority,append:(type,data)=>pi.appendEntry(type,data),entries:()=>options.ctx.sessionManager.getEntries(),canRead:path=>currentFileAccessAllowed(options.ctx.cwd,path),selected:readSystem1Selected(options.ctx.cwd),service:options.service,traceBus:pi.events,ask:(id,q,signal,action)=>requestRuntimeAsk(pi.events,id,q,options.ctx,signal,{parentId:action?.actionId,parentKind:'policy',owner:action?.owner,source:'damage-guard'},'permission')});
|
|
245
254
|
const entry={runtime,revoke:registerDamageGuard(runtime)};sessions.set(pi,entry);
|
|
246
255
|
try{await runtime.start();if(generations.get(pi)!==generation||sessions.get(pi)!==entry){await runtime.dispose();return;}}
|
|
247
256
|
catch(error){
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {randomUUID} from 'node:crypto';
|
|
2
|
+
import {sessionRootsFromEnv,validateSessionRoots} from '../lib/workspace-context.ts';
|
|
2
3
|
import {realpathSync} from 'node:fs';
|
|
3
4
|
import {validDamageAssignment, type DamageAssignment} from './damage-guard-broker.ts';
|
|
4
5
|
import {DAMAGE_ASSIGNMENT_ENV} from '../lib/damage-guard-port.ts';
|
|
@@ -29,11 +30,14 @@ export type DamagePhysicalIdentity=Readonly<{owner:string;attempt:string;tools:r
|
|
|
29
30
|
export type DamageOwnerIdentity=Readonly<DamageOwnerAuthority & DamagePhysicalIdentity>;
|
|
30
31
|
/** In-process parent capabilities, not launch permission or serializable credentials. */
|
|
31
32
|
export function createDamageOwners(deps:{current():DamageOwnerAuthority;admit(identity:DamageOwnerIdentity):boolean}){
|
|
33
|
+
const binding=sessionRootsFromEnv();
|
|
34
|
+
const targetCurrent=()=>{if(!binding)return !sessionRootsFromEnv();try{return validateSessionRoots(binding).targetId===sessionRootsFromEnv()?.targetId;}catch{return false;}};
|
|
32
35
|
const records=new Map<DamageOwnerIdentity,{controller:AbortController;parent?:DamageOwnerIdentity}>();let disposed=false;
|
|
33
36
|
const valid=(identity:DamageOwnerIdentity):boolean=>{
|
|
34
37
|
const row=records.get(identity);if(disposed||!row||identity.signal.aborted)return false;
|
|
35
38
|
try {
|
|
36
39
|
const current=deps.current();
|
|
40
|
+
if(!targetCurrent()||binding?.mode==='targeted'&&identity.cwd!==binding.executionRoot){revoke(identity);return false;}
|
|
37
41
|
if(['session','taskToken','taskId','inputRevision'].some(k=>identity[k as keyof DamageOwnerAuthority]!==current[k as keyof DamageOwnerAuthority])||row.parent&&!valid(row.parent)||deps.admit(identity)!==true){revoke(identity);return false;}
|
|
38
42
|
return true;
|
|
39
43
|
} catch {revoke(identity);return false;}
|
|
@@ -42,6 +46,7 @@ export function createDamageOwners(deps:{current():DamageOwnerAuthority;admit(id
|
|
|
42
46
|
return {
|
|
43
47
|
register(spec:DamageOwnerSpec,parent?:DamageOwnerIdentity):DamageOwnerIdentity{
|
|
44
48
|
const current=deps.current(),cwd=realpathSync(spec.cwd);
|
|
49
|
+
if(!targetCurrent()||binding?.mode==='targeted'&&cwd!==binding.executionRoot)throw Error('damage_owner_target_mismatch');
|
|
45
50
|
if(disposed||!spec.owner||spec.owner==='hub'||!spec.tools.length||spec.tools.some(t=>!['bash','write','edit','read','filesystem'].includes(t))||Object.values(current).some(v=>typeof v!=='string'||!v))throw Error('damage_owner_authority_unavailable');
|
|
46
51
|
if(parent&&(!valid(parent)||parent.cwd!==cwd||spec.tools.some(t=>!parent.tools.includes(t))))throw Error('damage_owner_scope_widening');
|
|
47
52
|
const controller=new AbortController(),identity=Object.freeze({...current,owner:`${spec.owner}:${randomUUID()}`,attempt:randomUUID(),tools:Object.freeze([...new Set(spec.tools)]),cwd,signal:controller.signal});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {createHash} from 'node:crypto';
|
|
2
2
|
import {isAbsolute} from 'node:path';
|
|
3
|
-
export interface DamageAction {taskId:string;inputRevision:string;operation:'bash'|'write'|'edit';target:string;cwd:string;actionId:string;owner:string;attempt:string;legacyTargets?:readonly string[];}
|
|
3
|
+
export interface DamageAction {taskId:string;inputRevision:string;operation:'bash'|'write'|'edit';target:string;cwd:string;actionId:string;owner:string;attempt:string;legacyTargets?:readonly string[];requestContext?:Readonly<{source:'child_access'|'baseline_path'|'baseline_bash'|'triage_action';category:string;pattern:string;digest:string;epoch:string}>;}
|
|
4
4
|
export interface DamageDecisionRecord {schema:'damage-denial/v1';taskId:string;inputRevision:string;operation:'bash'|'write'|'edit';target:string;cwd:string;decision:'deny'|'allow'|'hold'|'consumed'|'recovery';}
|
|
5
5
|
export function damageDenyKey(action:Pick<DamageAction,'taskId'|'inputRevision'|'operation'|'target'|'cwd'>){return createHash('sha256').update(JSON.stringify([action.taskId,action.inputRevision,action.operation,action.target,action.cwd])).digest('hex');}
|
|
6
6
|
export function validDamageDecision(row:unknown):row is DamageDecisionRecord{
|
|
7
7
|
if(!row||typeof row!=='object'||Array.isArray(row))return false;const v=row as DamageDecisionRecord;
|
|
8
8
|
return Object.keys(v).every(k=>['schema','taskId','inputRevision','operation','target','cwd','decision'].includes(k))&&v.schema==='damage-denial/v1'&&typeof v.taskId==='string'&&!!v.taskId&&v.taskId.length<=256&&typeof v.inputRevision==='string'&&!!v.inputRevision&&v.inputRevision.length<=256&&['bash','write','edit'].includes(v.operation)&&/^[a-f0-9]{64}$/.test(v.target)&&typeof v.cwd==='string'&&isAbsolute(v.cwd)&&['deny','allow','hold','consumed','recovery'].includes(v.decision);
|
|
9
9
|
}
|
|
10
|
-
/** Restore denials and unresolved fences, never grants. Allow records are human
|
|
10
|
+
/** Restore denials and unresolved fences, never grants. Allow records are decision intent (human or explicit machine), not reusable authority. */
|
|
11
11
|
export function createDamageState(persist:(row:DamageDecisionRecord)=>void){
|
|
12
12
|
const denied=new Set<string>(),held=new Set<string>(),durableHeld=new Set<string>(),recovered=new Set<string>(),durableRecovery=new Set<string>(),epochs=new Map<string,number>();
|
|
13
13
|
const keys=(action:DamageAction)=>[...new Set([action.target,...(action.legacyTargets??[])])].map(target=>damageDenyKey({...action,target}));
|
|
@@ -2,7 +2,8 @@ import { SPECIALIST_CLARIFICATION } from "../lib/clarification-policy.ts";
|
|
|
2
2
|
import { profileService } from './policy/profile-runtime.ts';
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { buildDeliverableProtocol } from "../lib/context-budget-child-prompt.ts";
|
|
5
|
-
import { unlinkSync } from "node:fs";
|
|
5
|
+
import { unlinkSync,realpathSync } from "node:fs";
|
|
6
|
+
import {sessionRootsFromEnv,validateSessionRoots,targetProject} from '../lib/workspace-context.ts';
|
|
6
7
|
import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
7
8
|
import type { ComsIdentity, ComsSendParams, ComsSendResult, PendingReply, RegistryEntry } from "../lib/coms-core.ts";
|
|
8
9
|
import { judgeSessionFileName, type DriftJudgeOutcome } from "./drift-runtime.ts";
|
|
@@ -93,8 +94,11 @@ async function dispatchViaComs(
|
|
|
93
94
|
inputArtifacts: DispatchInputArtifactPreview[],
|
|
94
95
|
scopeGlobs: string[],
|
|
95
96
|
): Promise<ComsDispatchResult | null> {
|
|
97
|
+
const binding=sessionRootsFromEnv();
|
|
98
|
+
const targetCurrent=()=>{try{return sessionRootsFromEnv()?.targetId===binding?.targetId&&(!binding||validateSessionRoots(binding).targetId===binding.targetId);}catch{return false;}};
|
|
99
|
+
const verified=(entry:RegistryEntry|null)=>{if(!targetCurrent())return false;if(binding?.mode!=='targeted')return true;try{const identity=deps.getIdentity();return entry?.targetId===binding.targetId&&identity?.targetId===binding.targetId&&typeof identity.baseProject==='string'&&identity.project===targetProject(identity.baseProject,binding)&&realpathSync(entry.cwd)===binding.executionRoot;}catch{return false;}};
|
|
96
100
|
const peer = deps.resolveTarget(peerName);
|
|
97
|
-
if (!peer || !deps.getIdentity()) {
|
|
101
|
+
if (!peer || !deps.getIdentity() || !verified(peer)) {
|
|
98
102
|
if (allowNativeFallback) return null;
|
|
99
103
|
return { output: `coms dispatch failed: peer "${peerName}" left the pool (fallback: none).`, exitCode: 1, elapsed: 0 };
|
|
100
104
|
}
|
|
@@ -154,6 +158,7 @@ ${buildDeliverableProtocol(agentKey, runNumber, deps.safePathWithin(deps.getSess
|
|
|
154
158
|
if (outcome.error !== "timeout") deps.deletePendingReply(msgId);
|
|
155
159
|
|
|
156
160
|
const after = deps.resolveTarget(peer.name);
|
|
161
|
+
if(binding?.mode==='targeted'&&(!verified(after)||after?.session_id!==peer.session_id))return {output:'coms result refused: target or peer ownership changed; no result was accepted.',exitCode:1,elapsed:0};
|
|
157
162
|
if (after?.context_used_pct != null) state.contextPct = after.context_used_pct;
|
|
158
163
|
if (abandoned) {
|
|
159
164
|
return {
|
|
@@ -28,13 +28,16 @@ export async function completeNativeRun(run: PreparedNativeRun, outcome: NativeS
|
|
|
28
28
|
};
|
|
29
29
|
const diagnosticText = diagnostics.reason ? formatDiagnostics(diagnostics) : "";
|
|
30
30
|
const lifecycle = explicitProcessLifecycle(res.lifecycle);
|
|
31
|
+
// Parser-owned capture integrity travels only as an explicit recognized value; anything else stays absent so the parent cannot read it as clean.
|
|
32
|
+
const captureIntegrity = res.lifecycle?.runtimeCaptureIntegrity;
|
|
33
|
+
const forwardedLifecycle = lifecycle ? { ...lifecycle, ...(captureIntegrity === "complete" || captureIntegrity === "tainted" ? { runtimeCaptureIntegrity: captureIntegrity } : {}) } : undefined;
|
|
31
34
|
const finish = (result: NativeDispatchResult): NativeDispatchResult => {
|
|
32
35
|
const combined = result.output + diagnosticText;
|
|
33
36
|
const parent = res.boundedOutput ? boundOutput({ content: combined, retentionDir: safePathWithin(run.evidenceDir, "bounded-output", "parent"), label: "parent-summary" }) : null;
|
|
34
37
|
return {
|
|
35
38
|
...result, specialistResult: res.specialistResult, specialistResultTool: res.specialistResultTool, runtimeTests: res.runtimeTests, toolEvents: res.toolEvents, writeIsolation: res.writeIsolation, dispatchId: run.dispatchId, transcriptPath: run.transcriptPath, diagnostics, sessionReset,
|
|
36
39
|
// T3: pass through explicit launch/close facts only. Missing lifecycle stays unknown.
|
|
37
|
-
...(
|
|
40
|
+
...(forwardedLifecycle ? { lifecycle: forwardedLifecycle } : {}),
|
|
38
41
|
output: parent?.reply ?? combined,
|
|
39
42
|
};
|
|
40
43
|
};
|
|
@@ -44,10 +44,12 @@ export async function prepareNativeRun(base: NativeRunBase, _resumeRequested: bo
|
|
|
44
44
|
artifacts: requestedContract?.artifacts ?? inputArtifacts.map(artifact => artifact.path),
|
|
45
45
|
model: requestedContract?.model ?? model,
|
|
46
46
|
permissions: requestedContract?.permissions ?? state.def.tools,
|
|
47
|
-
|
|
47
|
+
boundAssertionIds: requestedContract?.boundAssertionIds,
|
|
48
|
+
previous: state.resumeContract,
|
|
48
49
|
});
|
|
49
50
|
const contractOf=(value: typeof resumeContract)=>Object.freeze({
|
|
50
51
|
taskId:value.taskId,instructions:value.instructions,
|
|
52
|
+
boundAssertionIds:value.boundAssertionIds === undefined ? undefined : Object.freeze([...value.boundAssertionIds]),
|
|
51
53
|
scope:Object.freeze([...value.scope]),deliverables:Object.freeze([...value.deliverables]),
|
|
52
54
|
artifacts:Object.freeze([...value.artifacts]),permissions:Object.freeze([...value.permissions]),
|
|
53
55
|
});
|
|
@@ -55,6 +57,7 @@ export async function prepareNativeRun(base: NativeRunBase, _resumeRequested: bo
|
|
|
55
57
|
const contractSnapshot=JSON.stringify(admittedContract);
|
|
56
58
|
const currentContract=()=>contractOf(bindResume({
|
|
57
59
|
taskId:requestedContract?.taskId??task,instructions:requestedContract?.instructions??task,
|
|
60
|
+
boundAssertionIds:requestedContract?.boundAssertionIds,
|
|
58
61
|
scope:requestedContract?.scope??scopeGlobs,deliverables:requestedContract?.deliverables,
|
|
59
62
|
artifacts:requestedContract?.artifacts??inputArtifacts.map(a=>a.path),permissions:requestedContract?.permissions??state.def.tools,
|
|
60
63
|
}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BOUND_ASSERTION_IDS_ENV, validateBoundAssertionIds } from "./return-contract.js";
|
|
1
2
|
import { relative } from "node:path";
|
|
2
3
|
import { RUNTIME_TEST_SCOPE_ENV } from "./runtime-test-check.ts";
|
|
3
4
|
import { TRACE_OWNER_ENV } from "../lib/execution-trace.ts";
|
|
@@ -140,6 +141,9 @@ function createSpawnCallbacks(run: PreparedNativeRun, drift: DriftRuntime, usage
|
|
|
140
141
|
|
|
141
142
|
export async function runPreparedNative(run: PreparedNativeRun): Promise<NativeSpawnOutcome> {
|
|
142
143
|
const { deps, state, ctx, model, effectiveTools, thinkingLevel, replacementSystemPrompt, agentSessionFile, runPrompt, extensions, delegateEnv, turnBudget, personaKey, originalModelFallback } = run;
|
|
144
|
+
// Parent-owned exact IDs. An absent contract or absent IDs is the legacy caller (child keeps A-number
|
|
145
|
+
// extraction; no env key). A provided malformed contract is refused here, before any drift/observer side effect.
|
|
146
|
+
const boundAssertionIds = validateBoundAssertionIds(run.resumeContract?.boundAssertionIds);
|
|
143
147
|
const drift = startDriftRuntime(run);
|
|
144
148
|
const proactive = deps.getProactiveRuntime?.();
|
|
145
149
|
const assignment = run.proactiveAssignment;
|
|
@@ -182,6 +186,7 @@ export async function runPreparedNative(run: PreparedNativeRun): Promise<NativeS
|
|
|
182
186
|
cwd: run.admittedCwd,
|
|
183
187
|
extensions,
|
|
184
188
|
env: { ...deps.guardrailEnv(run.agentKey), ...(delegateEnv || {}), [TRACE_OWNER_ENV]: run.dispatchId,
|
|
189
|
+
...(boundAssertionIds === undefined ? {} : { [BOUND_ASSERTION_IDS_ENV]: JSON.stringify(boundAssertionIds) }),
|
|
185
190
|
[RUNTIME_TEST_SCOPE_ENV]: JSON.stringify(run.scopeGlobs) },
|
|
186
191
|
attemptLifecycle: {
|
|
187
192
|
...drift.attemptLifecycle,
|
|
@@ -97,7 +97,7 @@ export interface NativeDispatchResult {
|
|
|
97
97
|
writeIsolation?: Pick<WriteIsolationResult, "applied" | "failClosed" | "mechanism" | "permissionExpansion" | "rollsBackUserEdits" | "protectsConcurrentUserWrites">;
|
|
98
98
|
toolEvents?: import("./tool-protocol.ts").ToolExecutionEvent[];
|
|
99
99
|
/** T3 runtime lifecycle facts: launch/close/termination are separate from exit/acceptance. */
|
|
100
|
-
lifecycle?: { launched: boolean; closeSeen: boolean };
|
|
100
|
+
lifecycle?: { launched: boolean; closeSeen: boolean; runtimeCaptureIntegrity?: SpawnPiAgentResult["lifecycle"]["runtimeCaptureIntegrity"] };
|
|
101
101
|
evidencePath?: string;
|
|
102
102
|
sessionPath?: string;
|
|
103
103
|
dispatchId?: string;
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import { constants, copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { basename, dirname } from "node:path";
|
|
4
|
+
import {sessionRootsFromEnv,validateSessionRoots} from '../lib/workspace-context.ts';
|
|
5
|
+
import {safeSourceRead} from '../lib/safe-source-read.js';
|
|
4
6
|
import { safePathWithin } from "./helpers.ts";
|
|
5
7
|
|
|
6
8
|
/** Allocate rather than clear: another live session may own any existing directory. */
|
|
7
9
|
export function createEvidenceSession(cwd: string): string {
|
|
8
10
|
const sessionId = randomUUID();
|
|
9
|
-
const
|
|
11
|
+
const roots=sessionRootsFromEnv();
|
|
12
|
+
if(roots?.mode==='targeted')cwd=roots.workspaceRoot;
|
|
13
|
+
const dir = roots?.mode==='targeted'?safePathWithin(cwd,'.pi','agent-sessions','targets',roots.targetId,'sessions',sessionId):safePathWithin(cwd, ".pi", "agent-sessions", "sessions", sessionId);
|
|
10
14
|
mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
11
|
-
writeFileSync(safePathWithin(dir, "session.json"), JSON.stringify({ sessionId, cwd, pid: process.pid, startedAt: new Date().toISOString() }, null, 2), { flag: "wx", mode: 0o600 });
|
|
15
|
+
writeFileSync(safePathWithin(dir, "session.json"), JSON.stringify({ sessionId, cwd:roots?.executionRoot??cwd, ...(roots?.mode==='targeted'?{workspaceRoot:roots.workspaceRoot,executionRoot:roots.executionRoot,targetId:roots.targetId,roots}:{}), pid: process.pid, startedAt: new Date().toISOString() }, null, 2), { flag: "wx", mode: 0o600 });
|
|
12
16
|
return dir;
|
|
13
17
|
}
|
|
14
18
|
|
|
19
|
+
function evidenceTarget(sessionDir:string){
|
|
20
|
+
const path=safePathWithin(sessionDir,'session.json');if(!existsSync(path))return undefined;
|
|
21
|
+
const metadata=JSON.parse(safeSourceRead(sessionDir,path,65536).toString('utf8'));
|
|
22
|
+
if(!metadata.roots)return undefined;
|
|
23
|
+
const roots=validateSessionRoots(metadata.roots);
|
|
24
|
+
if(sessionRootsFromEnv()?.targetId!==roots.targetId)throw Error('evidence_target_mismatch');
|
|
25
|
+
return {targetId:roots.targetId,workspaceRoot:roots.workspaceRoot,executionRoot:roots.executionRoot,repositoryRoot:roots.repositoryRoot};
|
|
26
|
+
}
|
|
27
|
+
|
|
15
28
|
/** Request/result are separate create-exclusive records; even failed and resumed runs survive. */
|
|
16
29
|
export function beginExecutionEvidence(sessionDir: string, dispatchId: string, request: object, inputs: { path: string }[] = []): string {
|
|
30
|
+
const target=evidenceTarget(sessionDir);
|
|
17
31
|
const dir = safePathWithin(sessionDir, "dispatches", dispatchId);
|
|
18
32
|
mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
19
33
|
const retainedInputs = inputs.map((input, i) => {
|
|
@@ -21,13 +35,14 @@ export function beginExecutionEvidence(sessionDir: string, dispatchId: string, r
|
|
|
21
35
|
copyFileSync(input.path, retainedPath, constants.COPYFILE_EXCL);
|
|
22
36
|
return { path: input.path, retainedPath };
|
|
23
37
|
});
|
|
24
|
-
writeFileSync(safePathWithin(dir, "request.json"), JSON.stringify({ ...request, dispatchId, inputs: retainedInputs }, null, 2), { flag: "wx", mode: 0o600 });
|
|
38
|
+
writeFileSync(safePathWithin(dir, "request.json"), JSON.stringify({ ...request, dispatchId, ...(target?{sessionTarget:target}:{}), inputs: retainedInputs }, null, 2), { flag: "wx", mode: 0o600 });
|
|
25
39
|
return dir;
|
|
26
40
|
}
|
|
27
41
|
|
|
28
42
|
export function finishExecutionEvidence<T extends object>(dir: string, result: T): T & { evidencePath: string } {
|
|
29
43
|
const evidencePath = safePathWithin(dir, "result.json");
|
|
30
|
-
const
|
|
44
|
+
const target=evidenceTarget(dirname(dirname(dir)));
|
|
45
|
+
const recorded = { ...result, evidencePath, ...(target?{sessionTarget:target}:{}) };
|
|
31
46
|
writeFileSync(evidencePath, JSON.stringify(recorded, null, 2), { flag: "wx", mode: 0o600 });
|
|
32
47
|
return recorded;
|
|
33
48
|
}
|
|
@@ -72,6 +87,7 @@ export function pruneEvidenceSessions(sessionDir: string, keep: number | null, a
|
|
|
72
87
|
}
|
|
73
88
|
|
|
74
89
|
export function retainDeliverable(sessionDir: string, dispatchId: string, index: number, bytes: Buffer): string {
|
|
90
|
+
evidenceTarget(sessionDir);
|
|
75
91
|
const dir = safePathWithin(sessionDir, "dispatches", dispatchId, "deliverables");
|
|
76
92
|
mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
77
93
|
const path = safePathWithin(dir, String(index));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {worktreeConsumerService} from '../../lib/system1/worktree-service.ts';
|
|
1
2
|
import type {CommunicationStore} from '../system1-communication-store.ts';
|
|
2
3
|
import {originalDamageResult} from '../../lib/damage-result-evidence.ts';
|
|
3
4
|
import {damageResultView} from '../../lib/damage-result-view.ts';
|
|
@@ -40,7 +41,7 @@ export function configureDiscoveryHub(pi:ExtensionAPI,options:{snapshot:ReturnTy
|
|
|
40
41
|
const context=()=>sourceHash(JSON.stringify([options.taskId(),task()]));
|
|
41
42
|
let restored=restoreDiscoveryCounter(entries(),sessionId);const persist=(s:any)=>pi.appendEntry(DISCOVERY_COUNTER,s);
|
|
42
43
|
if(restored){try{persist(restored);}catch{restored=null;}}
|
|
43
|
-
const runtime=createDiscoveryRuntime({root:options.ctx.cwd,sessionId,config,service:options.service,context,persist,restored,observe:metadata=>options.communicationStore?.beginDiscovery(metadata)??(()=>{})});
|
|
44
|
+
const runtime=createDiscoveryRuntime({root:options.ctx.cwd,sessionId,config,service:worktreeConsumerService(options.service,options.snapshot.document,'fileDiscovery'),context,persist,restored,observe:metadata=>options.communicationStore?.beginDiscovery(metadata)??(()=>{})});
|
|
44
45
|
// Latest user text revises Hub advice/cache, not the task bound to a live child.
|
|
45
46
|
const owners=createDiscoveryOwners(sessionId,options.taskId);
|
|
46
47
|
const session:Session={runtime,config,root:options.ctx.cwd,sessionDir:options.sessionDir,task,context,taskId:options.taskId,results:new Map(),events:new Map(),owners,broker:Promise.resolve(null)};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {randomBytes,randomUUID,timingSafeEqual} from 'node:crypto';
|
|
2
|
+
import {sessionRootsFromEnv,validateSessionRoots} from '../../lib/workspace-context.ts';
|
|
2
3
|
import {realpathSync} from 'node:fs';
|
|
3
4
|
import {resolve} from 'node:path';
|
|
4
5
|
import {sourceHash,exportPathAllowed} from '../agentic-sources.ts';
|
|
@@ -11,6 +12,8 @@ export interface DiscoveryOwner {
|
|
|
11
12
|
export interface DiscoveryAssignment {endpoint:string;capability:string;sessionId:string;taskId:string;ownerId:string;attemptId:string;queryHash:string}
|
|
12
13
|
export interface OwnerLease extends DiscoveryOwner {sessionId:string;capability:string;queryHash:string;signal:AbortSignal;attemptSignal:AbortSignal;expiresAt:number}
|
|
13
14
|
export function createDiscoveryOwners(sessionId:string,currentTaskId:()=>string,options:{maxOwners?:number;now?():number;ttlMs?:number;currentContext?():string}={}) {
|
|
15
|
+
const binding=sessionRootsFromEnv();
|
|
16
|
+
const targetCurrent=()=>{try{return sessionRootsFromEnv()?.targetId===binding?.targetId&&(!binding||validateSessionRoots(binding).targetId===binding.targetId);}catch{return false;}};
|
|
14
17
|
const leases=new Map<string,{lease:OwnerLease;controller:AbortController;attemptController:AbortController;timer:ReturnType<typeof setTimeout>;requests:Set<string>;context:string}>();
|
|
15
18
|
const parents=new Map<string,string>(),launches=new Map<string,Map<string,{identity:string;attempts:number;capability:string}>>();
|
|
16
19
|
const now=options.now??Date.now;let closed=false;
|
|
@@ -18,11 +21,12 @@ export function createDiscoveryOwners(sessionId:string,currentTaskId:()=>string,
|
|
|
18
21
|
// authoritative revocation so a later task switch/dispose can still terminate it.
|
|
19
22
|
const expire=(capability:string)=>{const row=leases.get(capability);if(!row)return;row.controller.abort();clearTimeout(row.timer);for(const [child,parent]of parents)if(parent===capability)expire(child);};
|
|
20
23
|
const revoke=(capability:string)=>{const row=leases.get(capability);if(!row)return;expire(capability);for(const [child,parent]of parents)if(parent===capability)revoke(child);row.attemptController.abort();leases.delete(capability);parents.delete(capability);launches.delete(capability);};
|
|
21
|
-
const active=(lease:OwnerLease)
|
|
22
|
-
const fresh=(lease:OwnerLease)
|
|
24
|
+
const active=(lease:OwnerLease)=>targetCurrent()&&!closed&&lease.sessionId===sessionId&&lease.taskId===currentTaskId();
|
|
25
|
+
const fresh=(lease:OwnerLease)=>targetCurrent()&&!closed&&!lease.signal.aborted&&lease.sessionId===sessionId&&lease.taskId===currentTaskId()&&lease.expiresAt>now()&&leases.get(lease.capability)?.context===(options.currentContext?.()??currentTaskId());
|
|
23
26
|
return {
|
|
24
|
-
admitted(owner:Pick<DiscoveryOwner,'taskId'>){return
|
|
27
|
+
admitted(owner:Pick<DiscoveryOwner,'taskId'>){return targetCurrent()&&!closed&&owner.taskId===currentTaskId();},
|
|
25
28
|
register(owner:DiscoveryOwner,ttlMs=options.ttlMs??1200000):OwnerLease {
|
|
29
|
+
if(!targetCurrent()||binding?.mode==='targeted'&&realpathSync(owner.cwd)!==binding.executionRoot)throw Error('owner_target_mismatch');
|
|
26
30
|
if(closed||owner.taskId!==currentTaskId()||!owner.task.trim()||!owner.query.trim()||![sessionId,owner.taskId,owner.ownerId,owner.attemptId].every(v=>typeof v==='string'&&v.length>0&&v.length<=128)||leases.size>=(options.maxOwners??128)||!Number.isSafeInteger(ttlMs)||ttlMs<1||ttlMs>3600000)throw Error('owner_registration_denied');
|
|
27
31
|
if([...leases.values()].some(({lease})=>lease.ownerId===owner.ownerId&&lease.attemptId===owner.attemptId))throw Error('attempt_already_registered');
|
|
28
32
|
const capability=randomBytes(32).toString('hex'),controller=new AbortController(),attemptController=new AbortController();
|
|
@@ -2,6 +2,7 @@ import { registerDiscoveryHub, configureDiscoveryHub, resetDiscoveryHub, discove
|
|
|
2
2
|
import { registerDamageGuardHub, configureDamageGuardHub, resetDamageGuardHub, acceptDamageGuardInput, prepareDamageGuardNative } from './damage-guard-hub.ts';
|
|
3
3
|
import { bindSemanticScope } from '../lib/semantic-approval.ts';
|
|
4
4
|
import { registerAgenticHub, configureAgenticHub, agenticHubEnabled, agenticHubRuntime, resetAgenticHub } from './agentic-hub.ts';
|
|
5
|
+
import {worktreeConsumerService} from '../lib/system1/worktree-service.ts';
|
|
5
6
|
import { loadSystem1Snapshot } from "../lib/system1/config-loader.js";
|
|
6
7
|
import { normalizeSystem1Config } from "../lib/system1/config-v2.js";
|
|
7
8
|
import { registerDispatchTriage } from "./tools/dispatch-triage.ts";
|
|
@@ -93,6 +94,7 @@ import { registerAgentsKill } from "./commands/agents-kill.ts";
|
|
|
93
94
|
import { registerAgentsRestart } from "./commands/agents-restart.ts";
|
|
94
95
|
import { registerContextCommand } from "./commands/context-command.ts";
|
|
95
96
|
import { registerAudit } from "./commands/audit.ts";
|
|
97
|
+
import { registerConfig } from "./commands/config.ts";
|
|
96
98
|
import { showSessionAudit } from "./session-audit.ts";
|
|
97
99
|
import { createExecutionTrace, createNativeExecutionTrace, registerExecutionTrace, EXECUTION_TRACE_ENTRY } from "./execution-trace.ts";
|
|
98
100
|
import { beginRuntimeTrace } from "../lib/execution-trace.ts";
|
|
@@ -132,7 +134,10 @@ import { confirmationOutcome, capabilityConfirmationPack, capabilityConfirmation
|
|
|
132
134
|
import { confirmRecoverAction, confirmTaskSupersession, createReservedTaskIdentityReset } from "./budget-recovery.ts";
|
|
133
135
|
import { requestRuntimeAsk } from "../ask-user-remote/runtime-ask.ts";
|
|
134
136
|
import { observeAskUserResults } from "../ask-user-remote/index.ts";
|
|
135
|
-
import {
|
|
137
|
+
import {PermissionRelay,registerPermissionRelay,handlePermissionEnvelope} from './permission-relay.ts';
|
|
138
|
+
import { handleQuestionEnvelope, registerQuestionPeer, questionChannel } from "../ask-user-remote/questions.ts";
|
|
139
|
+
import { handleObservationEnvelope } from "../lib/coms-observation.ts";
|
|
140
|
+
import { handleInstructionReceipt } from "../lib/coms-instruction-receipts.ts";
|
|
136
141
|
import { buildHubPeerSpawnPlan, launchHubPeerInPane } from "./peer-spawn-plan.ts";
|
|
137
142
|
import { RESEARCH_TOOLS, createResearchRuntime, parseResearchHandle } from "./research/runtime.ts";
|
|
138
143
|
import { requireSafetyHarness, resolveSafetyHarness } from "./safety-routing.ts";
|
|
@@ -158,6 +163,7 @@ import { createFleetActions } from "./ui/fleet-actions.ts";
|
|
|
158
163
|
import { createDetailPanel } from "./ui/detail-panel.ts";
|
|
159
164
|
import { createFleetDashboard } from "./ui/fleet-dashboard.ts";
|
|
160
165
|
import { createContextBudgetUi } from "./ui/context-budget.ts";
|
|
166
|
+
import { createFleetConfigUi } from "../lib/fleet-config/ui.ts";
|
|
161
167
|
import { createPoolPresentation } from "./ui/pool.ts";
|
|
162
168
|
import { registerInputShortcuts } from "./input/shortcuts.ts";
|
|
163
169
|
import { createCompletionPresentation } from "./input/completions.ts";
|
|
@@ -267,20 +273,51 @@ export default function (pi: ExtensionAPI) {
|
|
|
267
273
|
// ── Embedded coms: shared peer state ──
|
|
268
274
|
let currentCtx: ExtensionContext | null = null;
|
|
269
275
|
let refreshFleetUi = () => {};
|
|
276
|
+
const permissionRelay=new PermissionRelay(()=>observationOwner(),()=>accessTaskIdentity());registerPermissionRelay(pi,permissionRelay);registerPermissionRelay(pi.events,permissionRelay);
|
|
277
|
+
let codexNotifications:import('../../agent-fleet/scripts/lib/fleet-codex-event-runtime.ts').FleetCodexNotificationRuntime|undefined;
|
|
278
|
+
// Explicit user command only: no configuration discovery or default host activation.
|
|
279
|
+
pi.registerCommand('af-codex-events',{description:'prepare|enable <private config.json> or disable; never starts daemon or grants approve',handler:async(args,ctx)=>{
|
|
280
|
+
let started:typeof codexNotifications;
|
|
281
|
+
try{
|
|
282
|
+
const split=args.trim().indexOf(' '),operation=split<0?args.trim():args.trim().slice(0,split),path=split<0?'':args.trim().slice(split+1).trim();
|
|
283
|
+
if(operation==='disable'){codexNotifications?.stop();codexNotifications=undefined;ctx.ui.notify('Codex event runtime stopped; no grants changed.','info');return;}
|
|
284
|
+
if(!['prepare','enable'].includes(operation)||!path)throw Error('notification_command_invalid');
|
|
285
|
+
const {readNotificationConfiguration,notificationConfigurationUnchanged,notificationPreview,FleetCodexNotificationRuntime}=await import('../../agent-fleet/scripts/lib/fleet-codex-event-runtime.ts');
|
|
286
|
+
const config=readNotificationConfiguration(path),preview=notificationPreview(config,observationOwner());
|
|
287
|
+
if(operation==='prepare'||!preview.ready){ctx.ui.notify(JSON.stringify(preview),preview.ready?'info':'warning');return;}
|
|
288
|
+
if(codexNotifications)throw Error('notification_runtime_already_running');
|
|
289
|
+
const runtime=new FleetCodexNotificationRuntime(config,()=>notificationConfigurationUnchanged(path,config)?observationOwner():null);const startup=runtime.start();started=runtime;codexNotifications=runtime;await startup;
|
|
290
|
+
ctx.ui.notify('Codex event ingress enabled explicitly; ACK is not model delivery, no approve granted.','info');
|
|
291
|
+
}catch{if(started){started.stop();if(codexNotifications===started)codexNotifications=undefined;}ctx.ui.notify('Codex event operation refused or uncertain; inspect private journal, do not replay.','error');}
|
|
292
|
+
}});
|
|
293
|
+
pi.on('session_shutdown',async()=>{codexNotifications?.stop();codexNotifications=undefined;});
|
|
270
294
|
const coms = createComsPeer({
|
|
271
295
|
pi,
|
|
272
296
|
getContext: () => currentCtx,
|
|
297
|
+
instructionReceipts: true,
|
|
273
298
|
onPeersChanged: () => refreshFleetUi(),
|
|
274
299
|
acceptInbound: () => currentCtx && modelWorkBlockedByRosterRecovery(currentCtx)
|
|
275
300
|
? "orchestrator roster recovery required"
|
|
276
301
|
: null,
|
|
277
302
|
handleCustomEnvelope: (socket, envelope) => {
|
|
278
|
-
if (
|
|
303
|
+
if (handleObservationEnvelope(socket, envelope, {
|
|
304
|
+
owner: observationOwner,
|
|
305
|
+
session: () => currentCtx?.sessionManager,
|
|
306
|
+
questions: () => { const owner = observationOwner(); return owner ? questionChannel.list(owner) : { status: 'stale' }; },
|
|
307
|
+
permissions:()=>permissionRelay.summary(),
|
|
308
|
+
})) return true;
|
|
309
|
+
if (handleInstructionReceipt(envelope, socket, observationOwner, currentCtx?.sessionManager)) return true;
|
|
310
|
+
if (handlePermissionEnvelope(socket,envelope,permissionRelay,observationOwner())) return true;
|
|
311
|
+
if (handleQuestionEnvelope(socket, envelope)) return true;
|
|
279
312
|
if (envelope.type !== "access_request") return false;
|
|
280
313
|
void accessApprovalRouter.handle(socket, envelope as AccessRequest);
|
|
281
314
|
return true;
|
|
282
315
|
},
|
|
283
316
|
});
|
|
317
|
+
function observationOwner() { return coms.ready && coms.identity ? {
|
|
318
|
+
project: coms.identity.project, peer: coms.identity.name,
|
|
319
|
+
sessionId: coms.identity.session_id, startedAt: coms.identity.started_at,
|
|
320
|
+
} : null; }
|
|
284
321
|
const unregisterQuestions = registerQuestionPeer(() => coms.ready && coms.identity ? {
|
|
285
322
|
project: coms.identity.project, peer: coms.identity.name,
|
|
286
323
|
sessionId: coms.identity.session_id, startedAt: coms.identity.started_at,
|
|
@@ -302,11 +339,14 @@ export default function (pi: ExtensionAPI) {
|
|
|
302
339
|
// escalations land here, and spawned children read it through the
|
|
303
340
|
// AGENT_HUB_EXEMPTIONS_FILE env plumbing.
|
|
304
341
|
let exemptionsFile: string | null = null;
|
|
342
|
+
const accessEpochs=new Map<string,string>();
|
|
343
|
+
const accessTaskIdentity=()=>({taskId:noProgress.taskId(),inputRevision:crypto.createHash('sha256').update(JSON.stringify({task:hubTaskText,revision:taskTriage?.current?.revision??''})).digest('hex')});
|
|
305
344
|
const accessApprovalRouter = createAccessApprovalRouter({
|
|
345
|
+
relay:permissionRelay,appendPermissionLog:entry=>pi.appendEntry('damage-permission-decision',entry),taskIdentity:accessTaskIdentity,currentChild:request=>accessEpochs.get(request.agent)===request.accessEpoch&&agentStates.get(request.agent)?.status==='running',
|
|
306
346
|
traceBus: pi.events,
|
|
307
347
|
getContext: () => currentCtx,
|
|
308
348
|
getExemptionsFile: () => exemptionsFile,
|
|
309
|
-
appendLog: (entry) => {
|
|
349
|
+
appendLog: (entry) => { pi.appendEntry("damage-control-log", entry); },
|
|
310
350
|
now: nowIso,
|
|
311
351
|
});
|
|
312
352
|
|
|
@@ -850,7 +890,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
850
890
|
// Shared child guardrail environment. Dispatch-native and research use the
|
|
851
891
|
// same root-owned exemptions and coms escalation endpoint.
|
|
852
892
|
function guardrailEnv(agentId: string): Record<string, string> {
|
|
853
|
-
|
|
893
|
+
const epoch=crypto.randomUUID();accessEpochs.set(agentId,epoch);
|
|
894
|
+
const env: Record<string, string> = { [AGENT_ID_ENV]: agentId,AGENT_HUB_ACCESS_EPOCH:epoch };
|
|
854
895
|
if (sessionOverrides?.policyRoots) env[FILESYSTEM_POLICY_ROOTS_ENV]=JSON.stringify(sessionOverrides.policyRoots);
|
|
855
896
|
if (exemptionsFile) env[EXEMPTIONS_FILE_ENV] = exemptionsFile;
|
|
856
897
|
if (comsReady && identity) env[ASK_ENDPOINT_ENV] = identity.endpoint;
|
|
@@ -1122,6 +1163,20 @@ export default function (pi: ExtensionAPI) {
|
|
|
1122
1163
|
|
|
1123
1164
|
// ── Commands ─────────────────────────────────
|
|
1124
1165
|
|
|
1166
|
+
// /af-config and Alt+, — read-only configuration screen (shared with coms peers via lib/fleet-config).
|
|
1167
|
+
const fleetConfigUi = createFleetConfigUi({
|
|
1168
|
+
readHubOverrides: cwd => parseAgentTeamOverrides(cwd),
|
|
1169
|
+
livePeerNames: () => identity ? readAllRegistryEntries(identity.project).map(entry => entry.name) : [],
|
|
1170
|
+
runtimeRows: () => [
|
|
1171
|
+
{ label: "Work mode", detail: workModeStatusText(), origin: "runtime" },
|
|
1172
|
+
{ label: "Active roster", detail: activeTeamName ? `${activeTeamName} (${agentStates.size} specialists)` : "(none)", origin: ".pi/agents/teams.yaml" },
|
|
1173
|
+
{ label: "Coms identity", detail: identity ? `${identity.name}@${identity.project}${comsReady ? "" : " · not ready"}` : "not connected", origin: "runtime" },
|
|
1174
|
+
{ label: "Node", detail: process.version, origin: "runtime" },
|
|
1175
|
+
{ label: "Related screens", detail: "/af-work-mode · /af-agents-team · /af-dispatch-policy · /af-context · /af-allowed · /af-coms", origin: "runtime" },
|
|
1176
|
+
],
|
|
1177
|
+
});
|
|
1178
|
+
const openFleetConfig = (ctx: ExtensionContext, args = "") => gridUI.withSuspended(() => fleetConfigUi.open(ctx, args));
|
|
1179
|
+
|
|
1125
1180
|
const commandCtx: CommandContext = {
|
|
1126
1181
|
setWidgetContext: ctx => { widgetCtx = ctx; },
|
|
1127
1182
|
applyWorkModeSelection,
|
|
@@ -1147,7 +1202,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1147
1202
|
if (!addition || !words.length || processBlock()) return false;
|
|
1148
1203
|
const next = await confirmTaskTriageWaiver(processState, { taskId: addition.taskId, evaluationId: addition.evaluationId, inputRevision: addition.inputRevision, additionId: id, reason: words.join(" ") }, {
|
|
1149
1204
|
taskId: () => noProgress.taskId(), inputRevision: () => taskTriage?.current?.revision ?? "",
|
|
1150
|
-
ask: (nonce, question, askCtx, signal) => requestRuntimeAsk(pi.events, nonce, question, askCtx, signal),
|
|
1205
|
+
ask: (nonce, question, askCtx, signal) => requestRuntimeAsk(pi.events, nonce, question, askCtx, signal, undefined, 'permission'),
|
|
1151
1206
|
startWait: nonce => executionHistory.startAskUser(nonce), endWait: (nonce, sameTask) => { const wait = executionHistory.endAskUser(nonce, Date.now()); if (sameTask && wait > 0) taskClock = addTaskClockWait(taskClock, wait); },
|
|
1152
1207
|
persist: value => pi.appendEntry("agent-hub-process-state", processAuditRecord(value, evaluateProcessObligations(value, { writable: true, budgetTier: taskTier ?? DEFAULT_TASK_TIER }))),
|
|
1153
1208
|
}, ctx);
|
|
@@ -1290,6 +1345,10 @@ export default function (pi: ExtensionAPI) {
|
|
|
1290
1345
|
widgetCtx = ctx;
|
|
1291
1346
|
await openContextBudget(ctx);
|
|
1292
1347
|
},
|
|
1348
|
+
handleConfig: async (args, ctx) => {
|
|
1349
|
+
widgetCtx = ctx;
|
|
1350
|
+
await openFleetConfig(ctx, args);
|
|
1351
|
+
},
|
|
1293
1352
|
handleHubReport: async (args, ctx) => {
|
|
1294
1353
|
widgetCtx = ctx;
|
|
1295
1354
|
const fmtTok = (n: number) => n >= 1_000_000 ? `${(n / 1_000_000).toFixed(1)}M` : n >= 1000 ? `${Math.round(n / 1000)}k` : String(n);
|
|
@@ -1887,6 +1946,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1887
1946
|
registerAgentsHistory(pi, commandCtx);
|
|
1888
1947
|
registerContextCommand(pi, commandCtx);
|
|
1889
1948
|
registerAudit(pi, commandCtx);
|
|
1949
|
+
registerConfig(pi, commandCtx);
|
|
1890
1950
|
registerWorkMode(pi, commandCtx);
|
|
1891
1951
|
registerWatchdog(pi, commandCtx);
|
|
1892
1952
|
registerAgentsAdd(pi, commandCtx);
|
|
@@ -1973,6 +2033,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1973
2033
|
loadAvailableModels: loadAvailableModelChoices,
|
|
1974
2034
|
openDetail: openFleetDetail,
|
|
1975
2035
|
openHistory: ctx => openHistory(ctx, executionHistory, () => (activeTeamName ? `Team: ${activeTeamName}` : "Agent Hub")),
|
|
2036
|
+
openConfig: ctx => fleetConfigUi.open(ctx as ExtensionContext),
|
|
1976
2037
|
modelWorkBlocked: modelWorkBlockedByRosterRecovery,
|
|
1977
2038
|
restartSpecialist: researchControls.restartSpecialist,
|
|
1978
2039
|
removeResearch: researchControls.remove,
|
|
@@ -2033,6 +2094,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
2033
2094
|
setWidgetContext: ctx => { widgetCtx = ctx; }, openFleetDashboard,
|
|
2034
2095
|
toggleFleetWidget: () => gridUI.toggle(),
|
|
2035
2096
|
workModeStatusText, openWorkModePicker,
|
|
2097
|
+
openFleetConfig: ctx => openFleetConfig(ctx),
|
|
2036
2098
|
});
|
|
2037
2099
|
|
|
2038
2100
|
// Root owns subscription order; lifecycle modules own handler bodies.
|
|
@@ -2084,15 +2146,18 @@ export default function (pi: ExtensionAPI) {
|
|
|
2084
2146
|
catch { /* Diagnostic trace cannot alter effect authorization. */ }
|
|
2085
2147
|
};
|
|
2086
2148
|
observeAction("requested");
|
|
2149
|
+
let presentationFailure = "";
|
|
2087
2150
|
const grant = await confirmTaskTriageAction(action, {
|
|
2151
|
+
relay:permissionRelay,permissionAudit:entry=>pi.appendEntry('task-triage-permission-decision',entry),
|
|
2152
|
+
presentationRefused: reason => { presentationFailure = `Task-triage approval was not shown: ${reason}. Exact action presentation refused; no authorization issued.`; },
|
|
2088
2153
|
taskId: () => noProgress.taskId(), inputRevision: () => taskTriage?.current?.revision ?? "",
|
|
2089
|
-
ask: (id, question, askCtx, signal) => requestRuntimeAsk(pi.events, id, question, askCtx, signal, { parentId: action.actionId, source: "task-triage" }),
|
|
2154
|
+
ask: (id, question, askCtx, signal) => requestRuntimeAsk(pi.events, id, question, askCtx, signal, { parentId: action.actionId, source: "task-triage" }, 'permission'),
|
|
2090
2155
|
startWait: id => executionHistory.startAskUser(id), endWait: (id, sameTask) => { const wait = executionHistory.endAskUser(id, Date.now()); if (sameTask && wait > 0) taskClock = addTaskClockWait(taskClock, wait); },
|
|
2091
2156
|
}, ctx, contract => { pi.appendEntry("agent-hub-task-triage-action-grant", contract); return true; }, undefined, { input: event.input, cwd: ctx.cwd });
|
|
2092
2157
|
if (processBlock() || ctx.cwd !== action.cwd || String(event.toolName) !== action.operation || String(event.toolCallId) !== action.actionId
|
|
2093
2158
|
|| noProgress.taskId() !== action.taskId || taskTriage?.current?.revision !== action.inputRevision
|
|
2094
2159
|
|| crypto.createHash("sha256").update(JSON.stringify(event.input)).digest("hex") !== action.target) { finishPolicy({ status: "blocked" }); return { block: true, reason: "Action changed while confirmation was pending; effect refused." }; }
|
|
2095
|
-
if (!grant || !consumeActionGrant(grant, action)) { observeAction("not_granted"); finishPolicy({ status: "blocked" }); return { block: true, reason: gate.message }; }
|
|
2160
|
+
if (!grant || !consumeActionGrant(grant, action)) { observeAction("not_granted"); finishPolicy({ status: "blocked" }); return { block: true, reason: presentationFailure || gate.message }; }
|
|
2096
2161
|
try { pi.appendEntry("agent-hub-task-triage-action-consumed", action); }
|
|
2097
2162
|
catch { observeAction("consumption_failed"); finishPolicy({ status: "blocked" }); return { block: true, reason: "One-use authorization consumption could not be persisted; effect refused." }; }
|
|
2098
2163
|
} catch (error) { finishPolicy({ status: "failed" }); throw error; }
|
|
@@ -2310,7 +2375,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
2310
2375
|
resetSession: async (_ctx) => { await resetDamageGuardHub(pi); resetHubSession(_ctx, {
|
|
2311
2376
|
registerVersion: registerVersionStatus, resetPressure: pressureLifecycle.reset,
|
|
2312
2377
|
clearRosterRecovery: workModePolicy.clearRosterRecovery, captureBaselineTools: () => { baselineTools = pi.getActiveTools(); },
|
|
2313
|
-
resetAccessApproval: accessApprovalRouter.reset,
|
|
2378
|
+
resetAccessApproval: () => {codexNotifications?.stop();codexNotifications=undefined;accessApprovalRouter.reset();permissionRelay.reset();accessEpochs.clear();},
|
|
2314
2379
|
terminateResearch: () => { for (const st of researchStates.values()) if (st.proc && st.status === "running") { st.killedByOperator = true; st.proc.kill("SIGTERM"); } },
|
|
2315
2380
|
resetResearch: researchRuntime.reset, resetHistory: executionHistory.reset,
|
|
2316
2381
|
resetBudgets: () => { hubCapture.reset(); hubTaskText = undefined; proactiveRuntime = null; proactiveConfig = null; system1Snapshot = normalizeSystem1Config(null);
|
|
@@ -2360,6 +2425,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
2360
2425
|
loadAgents: (_ctx) => {
|
|
2361
2426
|
// Allocate a fresh namespace; shared legacy files belong to prior/live sessions.
|
|
2362
2427
|
sessionOverrides = parseAgentTeamOverrides(_ctx.cwd);
|
|
2428
|
+
fleetConfigUi.recordBaseline(_ctx.cwd);
|
|
2363
2429
|
try {
|
|
2364
2430
|
const config = loadProactiveConfig(_ctx.cwd,system1Snapshot,sessionOverrides.policyRoots);
|
|
2365
2431
|
proactiveConfig = isCaptureEnabled(config) ? config : null;
|
|
@@ -2412,7 +2478,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
2412
2478
|
taskTriageConfigured = taskTriageConfig.status !== "missing";
|
|
2413
2479
|
taskTriageConfigStatus = taskTriageConfig.status === "active" ? "active" : taskTriageConfig.status === "invalid" ? "invalid" : "off";
|
|
2414
2480
|
taskTriageActivity = taskTriageConfig.status === "active" ? createTaskTriageActivity({ directory: sessionDir ? path.join(sessionDir, "artifacts/task-triage-activity") : undefined }) : null;
|
|
2415
|
-
taskTriage = taskTriageConfig.status === "active" ? createTaskTriageRuntime({ root: _ctx.cwd || process.cwd(), service: sharedService, serviceUnavailableReason, persist: state => pi.appendEntry(TASK_TRIAGE_RUNTIME_ENTRY, state), observer: taskTriageActivity! }) : null;
|
|
2481
|
+
taskTriage = taskTriageConfig.status === "active" ? createTaskTriageRuntime({ root: _ctx.cwd || process.cwd(), service: worktreeConsumerService(sharedService,system1Snapshot.document,'taskTriage'), serviceUnavailableReason, persist: state => pi.appendEntry(TASK_TRIAGE_RUNTIME_ENTRY, state), observer: taskTriageActivity! }) : null;
|
|
2416
2482
|
if (taskTriageTestTransportActive && process.env.AGENT_HUB_TASK_TRIAGE_FAKE_STATE_RECORD) {
|
|
2417
2483
|
try { fs.appendFileSync(process.env.AGENT_HUB_TASK_TRIAGE_FAKE_STATE_RECORD, JSON.stringify({ pid: process.pid, phase: "service_init", configStatus: taskTriageConfig.status, consumerPresent: !!taskTriage, fakeTransportActive: taskTriageTestTransportActive, sharedServiceReady: !!sharedService, serviceUnavailableReason }) + "\n"); } catch { /* diagnostic only */ }
|
|
2418
2484
|
}
|
|
@@ -2420,7 +2486,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
2420
2486
|
try { _ctx.ui.notify(`Task triage is enabled but unavailable (${serviceUnavailableReason}); no inference or new requirements will be added. Existing process obligations remain enforced.`, "warning"); }
|
|
2421
2487
|
catch { /* Optional UI must not change process enforcement. The prompt retains the status. */ }
|
|
2422
2488
|
}
|
|
2423
|
-
triageRuntime = createTriageRuntime({ config: triageConfig, service: watchdogSystem1?.sharedService,
|
|
2489
|
+
triageRuntime = createTriageRuntime({ config: triageConfig, service: worktreeConsumerService(watchdogSystem1?.sharedService,system1Snapshot.document,'dispatchTriage'),
|
|
2424
2490
|
current: input => triageInput(input.task,input.scope,input.language,input.domain),
|
|
2425
2491
|
trace: event => pi.appendEntry("agent-hub-triage", event),
|
|
2426
2492
|
});
|
|
@@ -2439,7 +2505,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
2439
2505
|
});
|
|
2440
2506
|
if (proactiveConfig && sessionDir) {
|
|
2441
2507
|
try { proactiveRuntime = composeHubProactive({ config: proactiveConfig, root: _ctx.cwd, sessionDir,
|
|
2442
|
-
rulesRoots: sessionOverrides.rulesDirs, policyRoots: sessionOverrides.policyRoots, service: watchdogSystem1?.sharedService, capture: hubCapture, onChange: updateWidget }); }
|
|
2508
|
+
rulesRoots: sessionOverrides.rulesDirs, policyRoots: sessionOverrides.policyRoots, service: worktreeConsumerService(watchdogSystem1?.sharedService,system1Snapshot.document,'proactiveReview'), capture: hubCapture, onChange: updateWidget }); }
|
|
2443
2509
|
catch { proactiveRuntime = null; proactiveConfig = null; } // unavailable composition never reports reviewed
|
|
2444
2510
|
}
|
|
2445
2511
|
},
|