@chankov/agent-fleet 2.1.1 → 2.2.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/hooks/coms-stop-hook.mjs +53 -13
- package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
- package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
- package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +4 -0
- package/.pi/agent-fleet/scripts/fleet.ts +13 -17
- package/.pi/agent-fleet/scripts/flow.ts +2 -2
- package/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
- package/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +44 -0
- package/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
- package/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
- package/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
- package/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
- package/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +20 -13
- package/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
- package/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
- package/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
- package/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
- package/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +23 -13
- package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +100 -14
- package/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +1 -1
- package/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +204 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +10 -4
- package/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +32 -16
- package/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +3 -1
- package/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +52 -23
- package/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +21 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.pi/agent-fleet/scripts/lib/fleet-command.ts +4 -8
- package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +2 -1
- package/.pi/agent-fleet/scripts/lib/team-project.ts +0 -2
- package/.pi/agent-fleet/scripts/team-up.ts +5 -12
- package/.pi/agent-fleet/scripts/workflows/lib/git.ts +9 -0
- package/.pi/agent-fleet/scripts/workflows/lib/quality.ts +17 -4
- package/.pi/agents/model-profiles.yaml +0 -2
- package/.pi/harnesses/agent-hub/README.md +117 -68
- package/.pi/harnesses/agent-hub/capability-packs.ts +7 -4
- package/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
- package/.pi/harnesses/agent-hub/commands/context.ts +0 -4
- package/.pi/harnesses/agent-hub/commands/recover.ts +2 -1
- package/.pi/harnesses/agent-hub/config/agents.ts +3 -1
- package/.pi/harnesses/agent-hub/config/model-profiles.ts +3 -0
- package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +14 -1
- package/.pi/harnesses/agent-hub/context-continuity-compat.ts +18 -3
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +17 -0
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +3 -1
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +4 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +9 -3
- package/.pi/harnesses/agent-hub/drift-watchdog.js +5 -10
- package/.pi/harnesses/agent-hub/execution-trace.ts +1 -1
- package/.pi/harnesses/agent-hub/filesystem-tool.ts +1 -1
- package/.pi/harnesses/agent-hub/footer.ts +2 -3
- package/.pi/harnesses/agent-hub/helpers.ts +4 -5
- package/.pi/harnesses/agent-hub/history-projection.ts +1 -1
- package/.pi/harnesses/agent-hub/index.ts +213 -196
- package/.pi/harnesses/agent-hub/input/shortcuts.ts +0 -7
- package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +0 -2
- package/.pi/harnesses/agent-hub/no-progress.ts +14 -9
- package/.pi/harnesses/agent-hub/operator-current-state.ts +5 -1
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/roster.ts +12 -3
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +10 -49
- package/.pi/harnesses/agent-hub/poll-command.ts +12 -4
- package/.pi/harnesses/agent-hub/proactive-snapshot.ts +12 -4
- package/.pi/harnesses/agent-hub/process-obligations.ts +42 -9
- package/.pi/harnesses/agent-hub/prompts/context.ts +17 -0
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +9 -1
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +2 -3
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +25 -8
- package/.pi/harnesses/agent-hub/provider-semaphore.js +5 -0
- package/.pi/harnesses/agent-hub/review-continuity.ts +5 -2
- package/.pi/harnesses/agent-hub/review-reuse.ts +2 -1
- package/.pi/harnesses/agent-hub/run-budget.js +22 -2
- package/.pi/harnesses/agent-hub/scope-gate.js +38 -0
- package/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
- package/.pi/harnesses/agent-hub/task-brief.ts +98 -0
- package/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +4 -0
- package/.pi/harnesses/agent-hub/tool-catalog-state.ts +5 -3
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +5 -7
- package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -1
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +184 -33
- package/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
- package/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
- package/.pi/harnesses/agent-hub/tools/run-flow.ts +41 -10
- package/.pi/harnesses/agent-hub/tools/team-adjust.ts +1 -1
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +12 -2
- package/.pi/harnesses/agent-hub/work-mode.ts +44 -49
- package/.pi/harnesses/agent-hub/write-isolation.ts +53 -8
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/codex-compat.ts +97 -0
- package/.pi/harnesses/lib/codex-contract.ts +259 -0
- package/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
- package/.pi/harnesses/lib/coms-core.ts +29 -11
- package/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +1 -1
- package/.pi/harnesses/lib/context-budget-hub-prompt.ts +6 -3
- package/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
- package/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
- package/.pi/harnesses/lib/fleet-codex-chat-view.ts +43 -0
- package/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
- package/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
- package/.pi/harnesses/lib/fleet-connection-control.ts +20 -3
- package/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
- package/.pi/harnesses/lib/fleet-notification-bootstrap.ts +152 -0
- package/.pi/harnesses/lib/fleet-notification-validation.ts +80 -24
- package/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
- package/.pi/harnesses/lib/fleet-transcript-store.ts +1 -1
- package/.versions/2.1.2/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.1.2/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.1.2/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +59 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/fleet.ts +248 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +106 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +91 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +367 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +70 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +116 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +415 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +23 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/fleet-command.ts +268 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/team-up.ts +385 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.1.2/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.1.2/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.1.2/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.1.2/.pi/agents/peers.yaml +147 -0
- package/.versions/2.1.2/.pi/agents/teams.yaml +41 -0
- package/.versions/2.1.2/.pi/agents/voices.yaml +13 -0
- package/.versions/2.1.2/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.1.2/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.1.2/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.1.2/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.1.2/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.1.2/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.1.2/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.1.2/.pi/extensions/package.json +9 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.1.2/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/README.md +1584 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/agents.ts +181 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +301 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +262 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/index.ts +2705 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/input/shortcuts.ts +23 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/no-progress.ts +622 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/operator-current-state.ts +53 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/process-obligations.ts +177 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/scope-gate.js +233 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/action-executors.ts +216 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/context.ts +147 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +92 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +777 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +163 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/work-mode.ts +188 -0
- package/.versions/2.1.2/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.1.2/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.1.2/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.1.2/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.1.2/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.1.2/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.1.2/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.1.2/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.1.2/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-core.ts +734 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.1.2/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.1.2/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.1.2/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.1.2/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.1.2/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-connection-control.ts +77 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-notification-validation.ts +67 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.1.2/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.1.2/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.1.2/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.1.2/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.1.2/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.1.2/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.1.2/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.1.2/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.1.2/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.1.2/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.1.2/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.1.2/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.1.2/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.1.2/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.1.2/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.1.2/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.1.2/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.1.2/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.1.2/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.1.2/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.1.2/.pi/harnesses/package.json +13 -0
- package/.versions/2.1.2/.pi/prompts/af-build.md +27 -0
- package/.versions/2.1.2/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.1.2/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.1.2/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.1.2/.pi/prompts/af-review.md +16 -0
- package/.versions/2.1.2/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.1.2/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.1.2/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.1.2/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.1.2/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.1.2/.pi/prompts/af-test.md +19 -0
- package/.versions/2.1.2/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.1.2/.version +1 -0
- package/.versions/2.1.2/agents/architect.md +24 -0
- package/.versions/2.1.2/agents/bowser.md +28 -0
- package/.versions/2.1.2/agents/builder.md +55 -0
- package/.versions/2.1.2/agents/code-reviewer.md +209 -0
- package/.versions/2.1.2/agents/deep-researcher.md +32 -0
- package/.versions/2.1.2/agents/documenter.md +22 -0
- package/.versions/2.1.2/agents/plan-reviewer.md +83 -0
- package/.versions/2.1.2/agents/planner.md +107 -0
- package/.versions/2.1.2/agents/releaser.md +24 -0
- package/.versions/2.1.2/agents/researcher.md +30 -0
- package/.versions/2.1.2/agents/security-auditor.md +167 -0
- package/.versions/2.1.2/agents/test-engineer.md +153 -0
- package/.versions/2.1.2/agents/web-debugger.md +44 -0
- package/.versions/2.1.2/agents/web-performance-auditor.md +194 -0
- package/.versions/2.1.2/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.1.2/docs/ARCHITECTURE.md +1195 -0
- package/.versions/2.1.2/docs/agent-fleet-setup.md +1143 -0
- package/.versions/2.1.2/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.1.2/docs/codex-local-mcp.md +503 -0
- package/.versions/2.1.2/docs/codex-session-bridge.md +44 -0
- package/.versions/2.1.2/docs/codex-setup.md +183 -0
- package/.versions/2.1.2/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.1.2/docs/fleet-native-voice.md +145 -0
- package/.versions/2.1.2/docs/getting-started.md +126 -0
- package/.versions/2.1.2/docs/npm-install.md +535 -0
- package/.versions/2.1.2/docs/pi-extensions.md +455 -0
- package/.versions/2.1.2/docs/pi-setup.md +92 -0
- package/.versions/2.1.2/docs/skill-anatomy.md +150 -0
- package/.versions/2.1.2/install-manifest.json +3239 -0
- package/.versions/2.1.2/justfile +247 -0
- package/.versions/2.1.2/manifest-meta.json +1087 -0
- package/.versions/2.1.2/references/accessibility-checklist.md +160 -0
- package/.versions/2.1.2/references/communication-contract.md +26 -0
- package/.versions/2.1.2/references/definition-of-done.md +67 -0
- package/.versions/2.1.2/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.1.2/references/observability-checklist.md +92 -0
- package/.versions/2.1.2/references/orchestration-patterns.md +370 -0
- package/.versions/2.1.2/references/performance-checklist.md +236 -0
- package/.versions/2.1.2/references/prompting-patterns.md +380 -0
- package/.versions/2.1.2/references/security-checklist.md +245 -0
- package/.versions/2.1.2/references/testing-patterns.md +235 -0
- package/.versions/2.1.2/references/workflow-authoring.md +304 -0
- package/.versions/2.1.2/skills/_internal/grilling.md +59 -0
- package/.versions/2.1.2/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.1.2/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.2/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.1.2/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.1.2/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.2/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.1.2/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.2/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.1.2/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.1.2/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.1.2/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.1.2/skills/fleet-connect/SKILL.md +25 -0
- package/.versions/2.1.2/skills/fleet-native-voice/SKILL.md +87 -0
- package/.versions/2.1.2/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.1.2/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.1.2/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.2/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.1.2/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.1.2/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.2/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.2/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.2/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.2/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.1.2/skills/incremental-implementation.zip +0 -0
- package/.versions/2.1.2/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.1.2/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.1.2/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.1.2/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.2/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.1.2/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.1.2/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.1.2/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.1.2/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.1.2/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.2/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.1.2/skills/spec-driven-development.zip +0 -0
- package/.versions/2.1.2/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.1.2/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.2.0/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.2.0/.pi/agent-fleet/hooks/coms-stop-hook.mjs +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/0.167-shared.json +1900 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/assessment.md +83 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile.md +43 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap.md +45 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture-profile.ts +53 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture.ts +102 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/catalog.md +91 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/channel.md +21 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurement.md +133 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurements.json +74 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/notification-profile-0.167.json +2679 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/observer.md +101 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/opaque-response.md +57 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/open-sent.md +68 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/probe-reader.md +51 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/profile.md +71 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/projection.md +147 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/reconnect.md +40 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/response-unions.md +74 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/semver.md +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/surface.md +73 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +63 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet.ts +244 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/flow.ts +166 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +44 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +113 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +101 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +453 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +204 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +76 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +132 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +435 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +44 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-command.ts +264 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +239 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-project.ts +176 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/package-lock.json +57 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/package.json +10 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/pi-session.ts +9 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/git.ts +108 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/quality.ts +78 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.2.0/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.2.0/.pi/agents/model-profiles.yaml +132 -0
- package/.versions/2.2.0/.pi/agents/peers.yaml +147 -0
- package/.versions/2.2.0/.pi/agents/teams.yaml +41 -0
- package/.versions/2.2.0/.pi/agents/voices.yaml +13 -0
- package/.versions/2.2.0/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.2.0/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.2.0/.pi/extensions/btw/index.ts +916 -0
- package/.versions/2.2.0/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.2.0/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.2.0/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.2.0/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.2.0/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.2.0/.pi/extensions/package.json +9 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/config.ts +199 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.2.0/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/README.md +1633 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/acceptance.ts +204 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/access-approval.ts +266 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-packs.ts +187 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/config.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/recover.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/config/agents.ts +183 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/config/model-profiles.ts +240 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +234 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +318 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +264 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-types.ts +297 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native.ts +242 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-watchdog.js +344 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/external-blocker.js +92 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/footer.ts +29 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/helpers.ts +269 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/index.ts +2722 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/input/shortcuts.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/no-progress.ts +627 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-current-state.ts +57 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/roster.ts +103 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/work-mode.ts +103 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/poll-command.ts +184 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/presentation.ts +54 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot.ts +287 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/process-obligations.ts +210 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/context.ts +72 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/fragments.ts +94 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/session-start.ts +89 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/system-prompt.ts +142 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/provider-semaphore.js +143 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/return-contract.js +371 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-continuity.ts +76 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-reuse.ts +48 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/run-budget.js +362 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-gate.js +271 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/spawn.ts +702 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-brief.ts +98 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +83 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-state.ts +125 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/context.ts +149 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +93 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +928 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/run-flow.ts +177 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +173 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/work-mode.ts +183 -0
- package/.versions/2.2.0/.pi/harnesses/agent-hub/write-isolation.ts +232 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/index.ts +571 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/questions.ts +206 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.2.0/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
- package/.versions/2.2.0/.pi/harnesses/coms/README.md +105 -0
- package/.versions/2.2.0/.pi/harnesses/coms/index.ts +308 -0
- package/.versions/2.2.0/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.2.0/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/index.ts +659 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.2.0/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.2.0/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
- package/.versions/2.2.0/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.2.0/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/lib/codex-compat.ts +97 -0
- package/.versions/2.2.0/.pi/harnesses/lib/codex-contract.ts +259 -0
- package/.versions/2.2.0/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-core-io.ts +422 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-core.ts +738 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-observation.ts +74 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
- package/.versions/2.2.0/.pi/harnesses/lib/coms-response-read.ts +107 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget-hub-prompt.ts +124 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.2.0/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-control-shared.ts +276 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-policy.ts +35 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.2.0/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.2.0/.pi/harnesses/lib/exact-permission-port.ts +38 -0
- package/.versions/2.2.0/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-chat-view.ts +43 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/view.ts +338 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-connection-control.ts +94 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-event-source.ts +21 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-bootstrap.ts +152 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-validation.ts +122 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.2.0/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.2.0/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.2.0/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.2.0/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.2.0/.pi/harnesses/lib/peer-target.ts +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.js +117 -0
- package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.ts +32 -0
- package/.versions/2.2.0/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.2.0/.pi/harnesses/lib/resource-closure.js +26 -0
- package/.versions/2.2.0/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.2.0/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.2.0/.pi/harnesses/lib/session-target.ts +62 -0
- package/.versions/2.2.0/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-loader.js +53 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
- package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
- package/.versions/2.2.0/.pi/harnesses/lib/target-capabilities.js +7 -0
- package/.versions/2.2.0/.pi/harnesses/lib/update-check.ts +227 -0
- package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.js +115 -0
- package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.ts +22 -0
- package/.versions/2.2.0/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.2.0/.pi/harnesses/package.json +13 -0
- package/.versions/2.2.0/.pi/prompts/af-build.md +27 -0
- package/.versions/2.2.0/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.2.0/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.2.0/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.2.0/.pi/prompts/af-review.md +16 -0
- package/.versions/2.2.0/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.2.0/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.2.0/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.2.0/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.2.0/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.2.0/.pi/prompts/af-test.md +19 -0
- package/.versions/2.2.0/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.2.0/.version +1 -0
- package/.versions/2.2.0/agents/architect.md +24 -0
- package/.versions/2.2.0/agents/bowser.md +28 -0
- package/.versions/2.2.0/agents/builder.md +55 -0
- package/.versions/2.2.0/agents/code-reviewer.md +209 -0
- package/.versions/2.2.0/agents/deep-researcher.md +32 -0
- package/.versions/2.2.0/agents/documenter.md +22 -0
- package/.versions/2.2.0/agents/plan-reviewer.md +83 -0
- package/.versions/2.2.0/agents/planner.md +107 -0
- package/.versions/2.2.0/agents/releaser.md +24 -0
- package/.versions/2.2.0/agents/researcher.md +30 -0
- package/.versions/2.2.0/agents/security-auditor.md +167 -0
- package/.versions/2.2.0/agents/test-engineer.md +153 -0
- package/.versions/2.2.0/agents/web-debugger.md +44 -0
- package/.versions/2.2.0/agents/web-performance-auditor.md +194 -0
- package/.versions/2.2.0/bin/catalog/harness-runtime-closure.json +85 -0
- package/.versions/2.2.0/docs/ARCHITECTURE.md +1291 -0
- package/.versions/2.2.0/docs/agent-fleet-setup.md +1161 -0
- package/.versions/2.2.0/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.2.0/docs/codex-local-mcp.md +520 -0
- package/.versions/2.2.0/docs/codex-session-bridge.md +44 -0
- package/.versions/2.2.0/docs/codex-setup.md +183 -0
- package/.versions/2.2.0/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.2.0/docs/fleet-native-voice.md +151 -0
- package/.versions/2.2.0/docs/getting-started.md +126 -0
- package/.versions/2.2.0/docs/npm-install.md +535 -0
- package/.versions/2.2.0/docs/pi-extensions.md +450 -0
- package/.versions/2.2.0/docs/pi-setup.md +92 -0
- package/.versions/2.2.0/docs/skill-anatomy.md +150 -0
- package/.versions/2.2.0/install-manifest.json +3226 -0
- package/.versions/2.2.0/justfile +246 -0
- package/.versions/2.2.0/manifest-meta.json +1098 -0
- package/.versions/2.2.0/references/accessibility-checklist.md +160 -0
- package/.versions/2.2.0/references/communication-contract.md +26 -0
- package/.versions/2.2.0/references/definition-of-done.md +67 -0
- package/.versions/2.2.0/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.2.0/references/observability-checklist.md +92 -0
- package/.versions/2.2.0/references/orchestration-patterns.md +370 -0
- package/.versions/2.2.0/references/performance-checklist.md +236 -0
- package/.versions/2.2.0/references/prompting-patterns.md +380 -0
- package/.versions/2.2.0/references/security-checklist.md +245 -0
- package/.versions/2.2.0/references/testing-patterns.md +235 -0
- package/.versions/2.2.0/references/workflow-authoring.md +304 -0
- package/.versions/2.2.0/skills/_internal/grilling.md +59 -0
- package/.versions/2.2.0/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.2.0/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.2.0/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.2.0/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.2.0/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.2.0/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.2.0/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.2.0/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.2.0/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.2.0/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.2.0/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.2.0/skills/fleet-connect/SKILL.md +29 -0
- package/.versions/2.2.0/skills/fleet-connect.zip +0 -0
- package/.versions/2.2.0/skills/fleet-native-voice/SKILL.md +103 -0
- package/.versions/2.2.0/skills/fleet-native-voice/agents/openai.yaml +4 -0
- package/.versions/2.2.0/skills/fleet-native-voice.zip +0 -0
- package/.versions/2.2.0/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.2.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.2.0/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.2.0/skills/idea-refine/examples.md +238 -0
- package/.versions/2.2.0/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.2.0/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.2.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.2.0/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.2.0/skills/incremental-implementation.zip +0 -0
- package/.versions/2.2.0/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.2.0/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.2.0/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.2.0/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.2.0/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.2.0/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.2.0/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.2.0/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.2.0/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.2.0/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.2.0/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.2.0/skills/spec-driven-development.zip +0 -0
- package/.versions/2.2.0/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.2.0/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +40 -0
- package/README.md +7 -10
- package/bin/lib/set-codex-mcp.js +1 -1
- package/bin/lib/validate-overrides.js +8 -1
- package/docs/ARCHITECTURE.md +130 -26
- package/docs/MIGRATION-agent-fleet.md +26 -5
- package/docs/agent-fleet-setup.md +44 -26
- package/docs/claude-code-coms-bridge.md +1 -1
- package/docs/codex-local-mcp.md +44 -11
- package/docs/codex-session-bridge.md +2 -2
- package/docs/codex-setup.md +1 -1
- package/docs/fleet-native-voice.md +18 -4
- package/docs/npm-install.md +1 -1
- package/docs/pi-extensions.md +13 -18
- package/docs/system1-agentic.md +1 -1
- package/docs/system1-context-continuity.md +11 -5
- package/docs/system1-file-discovery.md +2 -2
- package/docs/workflows.md +24 -1
- package/install-manifest.json +15 -28
- package/justfile +3 -4
- package/manifest-meta.json +13 -2
- package/package.json +4 -2
- package/skills/fleet-connect/SKILL.md +20 -16
- package/skills/fleet-connect.zip +0 -0
- package/skills/fleet-native-voice.zip +0 -0
- /package/{.pi → .versions/2.1.2/.pi}/harnesses/agent-hub/commands/work-mode.ts +0 -0
- /package/{.pi → .versions/2.1.2/.pi}/harnesses/agent-hub/work-mode-controls.ts +0 -0
- /package/{agents → .versions/2.1.2/agents}/orchestrator.md +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { component, type ContextBudgetComponent, type ContextCategory } from "./context-budget.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Prompt inputs are deliberately split between stable policy and a small volatile
|
|
5
|
+
* state capsule. Callers must not put counters or task state in policy fragments.
|
|
6
|
+
*/
|
|
7
|
+
export interface HubPromptParts {
|
|
8
|
+
intro: string;
|
|
9
|
+
toolList: string;
|
|
10
|
+
languageLines: string;
|
|
11
|
+
activeTeamName: string;
|
|
12
|
+
teamMembers: string;
|
|
13
|
+
dispatchSection: string;
|
|
14
|
+
userLanguage: string;
|
|
15
|
+
askUserBlock: string;
|
|
16
|
+
modeSection: string;
|
|
17
|
+
verificationSection: string;
|
|
18
|
+
projectPolicySection?: string;
|
|
19
|
+
comsSection: string;
|
|
20
|
+
herdrSection: string;
|
|
21
|
+
compactionSection?: string;
|
|
22
|
+
hardRules: string;
|
|
23
|
+
ambiguityRule: string;
|
|
24
|
+
agentCatalog: string;
|
|
25
|
+
researchCatalog: string;
|
|
26
|
+
/** Changes per turn: tier, budgets, active counters, and pending state only. */
|
|
27
|
+
stateCapsule?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const HUB_HERDR_SECTION = `
|
|
31
|
+
## Fleet (herdr)
|
|
32
|
+
- Use panes only for auxiliary processes; never bypass specialist delegation.
|
|
33
|
+
- Spawn a peer immediately before its first message. It boots idle; \`peer_ready: false\` is a failed start.
|
|
34
|
+
- Check \`coms_list\` for peer status; read panes only for unbridged tools or post-mortems.
|
|
35
|
+
- \`herdr_close_pane\` requires human confirmation. Close only panes you opened when their work ends.
|
|
36
|
+
- \`herdr_notify\` reaches an away human; it never replaces \`ask_user\`.
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
/** Assemble the effective Hub replacement prompt. Ledger metadata is never interpolated.
|
|
40
|
+
*
|
|
41
|
+
* T9 truthful guidance: the prompt points at the active catalog and the read-only
|
|
42
|
+
* inspection route, never at routine slash resets. Preflight refusals carry their
|
|
43
|
+
* authoritative tier/catalog/revision snapshot; tool availability is never gate admission.
|
|
44
|
+
*/
|
|
45
|
+
export function assembleHubSystemPrompt(parts: HubPromptParts): string {
|
|
46
|
+
const team = parts.activeTeamName || "(none)";
|
|
47
|
+
const members = parts.teamMembers || "(none — add a persona before using dispatch_agent)";
|
|
48
|
+
const state = parts.stateCapsule ? `\n${parts.stateCapsule}\n` : "";
|
|
49
|
+
const fleet = parts.dispatchSection ? `
|
|
50
|
+
## Native Roster: ${team}
|
|
51
|
+
Members: ${members}
|
|
52
|
+
Dispatch only listed agents. The roster may change through its Fleet commands or \`team_adjust\` when it genuinely cannot serve the task; more personas is usually the wrong answer.
|
|
53
|
+
|
|
54
|
+
## How to Work
|
|
55
|
+
${parts.dispatchSection}
|
|
56
|
+
- Choose \`backend: native\` only for an explicitly requested local Pi specialist, \`backend: coms\` only for an explicitly requested live same-name peer, and \`backend: auto\` otherwise. Never substitute an explicit backend.
|
|
57
|
+
- Review results, follow up when needed, and summarize for the user in ${parts.userLanguage}.
|
|
58
|
+
|
|
59
|
+
## Research helpers (read-only)
|
|
60
|
+
- \`spawn_research\` is read-only (read/grep/find/ls; no bash or writes). Use it for necessary reconnaissance, not to read a return artifact you already have.
|
|
61
|
+
- Choose a light persona for simple reads and a stronger one for ambiguous, cross-cutting, or high-stakes research.
|
|
62
|
+
- Specialists cannot spawn helpers; run necessary research and pass its findings or artifact path to the specialist.
|
|
63
|
+
|
|
64
|
+
## Agents
|
|
65
|
+
|
|
66
|
+
${parts.agentCatalog}
|
|
67
|
+
|
|
68
|
+
## Research personas
|
|
69
|
+
|
|
70
|
+
${parts.researchCatalog}
|
|
71
|
+
` : "";
|
|
72
|
+
const verification = parts.verificationSection ? `\n${parts.verificationSection}\n` : "";
|
|
73
|
+
const policy = `${parts.intro} You have ${parts.toolList}.
|
|
74
|
+
|
|
75
|
+
## Language
|
|
76
|
+
${parts.languageLines}${fleet}
|
|
77
|
+
${parts.askUserBlock}
|
|
78
|
+
|
|
79
|
+
${parts.modeSection}${state}${verification}${parts.projectPolicySection ?? ""}
|
|
80
|
+
${parts.comsSection}${parts.herdrSection}${parts.compactionSection ?? ""}
|
|
81
|
+
## Hard Rules
|
|
82
|
+
${parts.hardRules}
|
|
83
|
+
${parts.ambiguityRule}
|
|
84
|
+
- Keep each dispatch focused and use the returned evidence before reporting completion.`;
|
|
85
|
+
return policy;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface NamedHubPart { id: string; text: string; category: ContextCategory; persistence?: ContextBudgetComponent["persistence"]; source?: string; }
|
|
89
|
+
|
|
90
|
+
export function namedHubLedgerParts(input: {
|
|
91
|
+
intro: string; languageLines: string; teamMembers: string; agentCards: readonly { id: string; text: string }[];
|
|
92
|
+
dispatchSection: string; modeSection: string; verificationSection: string; projectPolicySection?: string; researchCards: readonly { id: string; text: string }[];
|
|
93
|
+
researchCatalog: string; comsSection: string; herdrSection: string; compactionSection?: string; stateCapsule?: string;
|
|
94
|
+
}): NamedHubPart[] {
|
|
95
|
+
return [
|
|
96
|
+
{ id: "hub/policy/work-mode", text: input.intro, category: "system", persistence: "fixed", source: "work-mode.ts" },
|
|
97
|
+
{ id: "hub/policy/language", text: input.languageLines, category: "protocol", persistence: "fixed", source: "hub-policy" },
|
|
98
|
+
{ id: "hub/roster-header", text: input.teamMembers, category: "roster", persistence: "session", source: "active-roster" },
|
|
99
|
+
...input.agentCards.map(card => ({ id: `hub/roster/${card.id}`, text: card.text, category: "roster" as const, persistence: "session" as const, source: "agent-persona" })),
|
|
100
|
+
{ id: "hub/policy/dispatch", text: input.dispatchSection, category: "protocol", persistence: "fixed", source: "hub-policy" },
|
|
101
|
+
{ id: "hub/policy/triage", text: input.modeSection, category: "protocol", persistence: "fixed", source: "run-budget" },
|
|
102
|
+
{ id: "hub/policy/verification", text: input.verificationSection, category: "protocol", persistence: "fixed", source: "orchestration-verification" },
|
|
103
|
+
{ id: "hub/policy/project", text: input.projectPolicySection ?? "", category: "protocol", persistence: "session", source: "project-overrides" },
|
|
104
|
+
{ id: "hub/state", text: input.stateCapsule ?? "", category: "system", persistence: "turn", source: "hub-state" },
|
|
105
|
+
...(input.researchCards.length ? input.researchCards.map(card => ({ id: `hub/research/${card.id}`, text: card.text, category: "persona" as const, persistence: "session" as const, source: "research-persona" })) : [{ id: "hub/research-empty", text: input.researchCatalog, category: "persona" as const, persistence: "session" as const, source: "research-persona" }]),
|
|
106
|
+
{ id: "hub/policy/coms", text: input.comsSection, category: "protocol", persistence: "fixed", source: "coms" },
|
|
107
|
+
{ id: "hub/policy/workspace", text: input.herdrSection, category: "protocol", persistence: "fixed", source: "herdr" },
|
|
108
|
+
{ id: "hub/policy/compaction", text: input.compactionSection ?? "", category: "protocol", persistence: "fixed", source: "compaction" },
|
|
109
|
+
];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function recordHubLedger(systemPrompt: string, parts: readonly NamedHubPart[]): ContextBudgetComponent[] {
|
|
113
|
+
const namedChars = parts.reduce((sum, part) => sum + part.text.length, 0);
|
|
114
|
+
return parts.map(part => component({
|
|
115
|
+
id: part.id, plane: "hub", category: part.category, label: part.id.replace("hub/", "Hub "), source: part.source,
|
|
116
|
+
persistence: part.persistence ?? "turn", visibility: "model-visible", confidence: "exact-chars", chars: part.text.length,
|
|
117
|
+
})).concat(component({
|
|
118
|
+
id: "hub/separators-and-rules", plane: "hub", category: "system", label: "Hub separators and formatting", source: "hub-prompt-template",
|
|
119
|
+
persistence: "fixed", visibility: "model-visible", confidence: "exact-chars", chars: Math.max(0, systemPrompt.length - namedChars),
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { clampScroll, fitToHeight } from "./fleet-overlay.ts";
|
|
2
|
+
import { moveSelection, reconcileSelection, type Selection } from "./fleet-selection.ts";
|
|
3
|
+
import type { ContextBudgetSnapshot } from "../agent-hub/context-budget-snapshot.ts";
|
|
4
|
+
|
|
5
|
+
export interface ContextBudgetViewState { selection: Selection; expanded: Set<string>; scrollOffset: number; }
|
|
6
|
+
export const CONTEXT_BUDGET_CHROME_ROWS = 5;
|
|
7
|
+
const tokens = (n: number | undefined) => n == null ? "—" : Intl.NumberFormat("en").format(Math.round(n));
|
|
8
|
+
const pct = (n: number | undefined) => n == null ? "window unknown" : `${n.toFixed(1)}%`;
|
|
9
|
+
const ANSI = /\x1B\[[0-?]*[ -\/]*[@-~]/;
|
|
10
|
+
/** Truncate by terminal cells while never cutting an ANSI escape sequence. */
|
|
11
|
+
export function ansiTruncate(value: string, width: number): string {
|
|
12
|
+
let cells = 0; let out = "";
|
|
13
|
+
for (let i = 0; i < value.length;) {
|
|
14
|
+
const escape = value.slice(i).match(/^\x1B\[[0-?]*[ -\/]*[@-~]/)?.[0];
|
|
15
|
+
if (escape) { out += escape; i += escape.length; continue; }
|
|
16
|
+
const char = String.fromCodePoint(value.codePointAt(i)!); if (cells + 1 > width) break;
|
|
17
|
+
out += char; cells++; i += char.length;
|
|
18
|
+
}
|
|
19
|
+
return out + (ANSI.test(out) ? "\x1b[0m" : "");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function groupKey(category: string): string {
|
|
23
|
+
if (category === "tool") return "group/tools";
|
|
24
|
+
if (category === "addon") return "group/addons";
|
|
25
|
+
if (category === "skill") return "group/skills";
|
|
26
|
+
if (category === "conversation") return "group/conversation";
|
|
27
|
+
if (category === "project") return "group/project";
|
|
28
|
+
if (category === "roster" || category === "persona") return "group/roster";
|
|
29
|
+
return "group/system";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ContextBudgetRow { key: string; label: string; detail: string; expandable?: boolean; }
|
|
33
|
+
|
|
34
|
+
export function contextBudgetRows(snapshot: ContextBudgetSnapshot, expanded: Set<string> = new Set()): ContextBudgetRow[] {
|
|
35
|
+
const groups = new Map<string, { key: string; label: string; children: ContextBudgetRow[] }>();
|
|
36
|
+
const order = ["group/system", "group/project", "group/roster", "group/tools", "group/addons", "group/skills", "group/conversation"];
|
|
37
|
+
for (const component of snapshot.components) {
|
|
38
|
+
const key = groupKey(component.category);
|
|
39
|
+
if (!groups.has(key)) groups.set(key, { key, label: key.replace("group/", ""), children: [] });
|
|
40
|
+
groups.get(key)!.children.push({
|
|
41
|
+
key: `hub/${component.id}`,
|
|
42
|
+
label: ` ${component.label}`,
|
|
43
|
+
detail: `${component.visibility} · ${component.confidence} · ${tokens(component.adjustedTokens ?? component.estimatedTokens)} tok`,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const rows: ContextBudgetRow[] = [];
|
|
47
|
+
const monitor=snapshot.pressure?.monitor;
|
|
48
|
+
if(monitor) {
|
|
49
|
+
rows.push({key:"compaction/policy",label:"Auto compaction",detail:`min ${monitor.minimumPercent}% · early ${monitor.earlyPercent}% · target ${monitor.targetPercent}% · ceiling ${monitor.maximumPercent}%`});
|
|
50
|
+
rows.push({key:"compaction/recovery",label:"Last compaction",detail:`${monitor.phase} · episode ${monitor.episode} · before ${monitor.beforePercent?.toFixed(1)??"unknown"}% → after ${monitor.afterPercent?.toFixed(1)??"unknown"}%`});
|
|
51
|
+
}
|
|
52
|
+
for (const key of order) {
|
|
53
|
+
const group = groups.get(key);
|
|
54
|
+
if (!group) continue;
|
|
55
|
+
rows.push({ key: group.key, label: group.label, detail: `${group.children.length} items`, expandable: true });
|
|
56
|
+
if (expanded.has(group.key)) rows.push(...group.children);
|
|
57
|
+
}
|
|
58
|
+
for (const plane of snapshot.planes) {
|
|
59
|
+
const key = `plane/${plane.summary.plane}/${plane.components[0]?.id ?? plane.summary.plane}`;
|
|
60
|
+
rows.push({ key, label: `${plane.summary.plane} plane`, detail: `${tokens(plane.summary.measuredTokens)} / ${tokens(plane.summary.window)} · ${pct(plane.summary.occupancyPercent)}`, expandable: true });
|
|
61
|
+
if (expanded.has(key)) {
|
|
62
|
+
for (const component of plane.components) {
|
|
63
|
+
rows.push({ key: `${key}/${component.id}`, label: ` ${component.label}`, detail: `${component.confidence} · ${tokens(component.adjustedTokens ?? component.estimatedTokens)} tok` });
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return rows;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function keepSelectionVisible(state: ContextBudgetViewState, rows: readonly ContextBudgetRow[], bodyHeight: number): void {
|
|
71
|
+
const viewport = Math.max(1, bodyHeight);
|
|
72
|
+
if (state.selection.index < state.scrollOffset) state.scrollOffset = state.selection.index;
|
|
73
|
+
else if (state.selection.index >= state.scrollOffset + viewport) state.scrollOffset = state.selection.index - viewport + 1;
|
|
74
|
+
state.scrollOffset = clampScroll(state.scrollOffset, rows.length, viewport);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function contextBudgetTransition(data: string, state: ContextBudgetViewState, snapshot: ContextBudgetSnapshot, bodyHeight: number): "close" | "refresh" | undefined {
|
|
78
|
+
let rows = contextBudgetRows(snapshot, state.expanded); reconcileSelection(state.selection, rows);
|
|
79
|
+
if (data === "q" || data === "\u001b") return "close";
|
|
80
|
+
if (data === "r") return "refresh";
|
|
81
|
+
if (data === "\u001b[A") moveSelection(state.selection, rows, -1);
|
|
82
|
+
else if (data === "\u001b[B") moveSelection(state.selection, rows, 1);
|
|
83
|
+
else if (data === "\u001b[5~") moveSelection(state.selection, rows, -Math.max(1, bodyHeight));
|
|
84
|
+
else if (data === "\u001b[6~") moveSelection(state.selection, rows, Math.max(1, bodyHeight));
|
|
85
|
+
else if (data === "g") { state.selection.index = 0; state.selection.key = rows[0]?.key; }
|
|
86
|
+
else if (data === "G") { state.selection.index = Math.max(0, rows.length - 1); state.selection.key = rows.at(-1)?.key; }
|
|
87
|
+
else if (data === "\r" && rows[state.selection.index]?.expandable) {
|
|
88
|
+
const key = state.selection.key!;
|
|
89
|
+
state.expanded.has(key) ? state.expanded.delete(key) : state.expanded.add(key);
|
|
90
|
+
rows = contextBudgetRows(snapshot, state.expanded);
|
|
91
|
+
reconcileSelection(state.selection, rows);
|
|
92
|
+
}
|
|
93
|
+
keepSelectionVisible(state, rows, bodyHeight);
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** Fixed-height, metadata-only overlay rendering. */
|
|
98
|
+
export function renderContextBudget(snapshot: ContextBudgetSnapshot, state: ContextBudgetViewState, width: number, height: number): string[] {
|
|
99
|
+
const rows = contextBudgetRows(snapshot, state.expanded); reconcileSelection(state.selection, rows);
|
|
100
|
+
keepSelectionVisible(state, rows, Math.max(0, height - 2));
|
|
101
|
+
const hub = snapshot.hub.summary;
|
|
102
|
+
const pressure = snapshot.pressure;
|
|
103
|
+
const pressureLabel = pressure ? ` · pressure ${pressure.phase}` : "";
|
|
104
|
+
const header = ansiTruncate(`CONTEXT BUDGET ${snapshot.model ?? "model unknown"} · ${tokens(hub.measuredTokens)} / ${tokens(hub.window)} (${pct(hub.occupancyPercent)})${pressureLabel} · ${snapshot.estimator}`, Math.max(1, width));
|
|
105
|
+
const visible = rows.slice(state.scrollOffset, state.scrollOffset + Math.max(0, height - 2));
|
|
106
|
+
const body = visible.map((row) => ansiTruncate(`${state.selection.key === row.key ? ">" : " "} ${row.label} — ${row.detail}`, Math.max(1, width)));
|
|
107
|
+
const recovery = pressure
|
|
108
|
+
? `warn ${pressure.warningPercent}% · auto ${pressure.automaticPercent}% · last ${pressure.lastRecoveryOutcome} · `
|
|
109
|
+
: "";
|
|
110
|
+
const footer = ansiTruncate(`${recovery}Attributed ${tokens(hub.attributedTokens)} · residual ${tokens(hub.residualTokens)} · ↑↓ Enter r q`, Math.max(1, width));
|
|
111
|
+
return fitToHeight([header, ...fitToHeight(body, Math.max(0, height - 2)), footer], height);
|
|
112
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export type ContextPlane = "hub" | "specialist" | "research" | "delegate" | "peer";
|
|
2
|
+
export type ContextCategory = "system" | "project" | "persona" | "roster" | "skill" | "tool" | "addon" | "conversation" | "protocol" | "unattributed";
|
|
3
|
+
export type ContextPersistence = "fixed" | "session" | "turn" | "message" | "projected";
|
|
4
|
+
export type ContextVisibility = "model-visible" | "loaded-excluded" | "ui-only" | "unknown";
|
|
5
|
+
export type ContextConfidence = "exact-chars" | "heuristic" | "provider-scaled" | "provider-total" | "unavailable";
|
|
6
|
+
|
|
7
|
+
/** Metadata-only accounting record. Deliberately contains no component text. */
|
|
8
|
+
export interface ContextBudgetComponent {
|
|
9
|
+
id: string;
|
|
10
|
+
parentId?: string;
|
|
11
|
+
plane: ContextPlane;
|
|
12
|
+
category: ContextCategory;
|
|
13
|
+
label: string;
|
|
14
|
+
source?: string;
|
|
15
|
+
persistence: ContextPersistence;
|
|
16
|
+
visibility: ContextVisibility;
|
|
17
|
+
chars: number;
|
|
18
|
+
estimatedTokens: number;
|
|
19
|
+
adjustedTokens?: number;
|
|
20
|
+
confidence: ContextConfidence;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ContextPlaneSummary {
|
|
24
|
+
plane: ContextPlane;
|
|
25
|
+
measuredTokens?: number;
|
|
26
|
+
attributedTokens: number;
|
|
27
|
+
residualTokens?: number;
|
|
28
|
+
window?: number;
|
|
29
|
+
occupancyPercent?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const TOKEN_ESTIMATOR = "chars/4-v1";
|
|
33
|
+
|
|
34
|
+
/** A named, provider-independent heuristic retained beside provider measurements. */
|
|
35
|
+
export function estimateTokens(chars: number): number {
|
|
36
|
+
return Math.ceil(Math.max(0, Number.isFinite(chars) ? chars : 0) / 4);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Exact JavaScript string character count (not bytes) without retaining text. */
|
|
40
|
+
export function characterCount(value: unknown): number {
|
|
41
|
+
return typeof value === "string" ? value.length : String(value ?? "").length;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Safely measure a schema's serialised representation. Unsupported values are
|
|
46
|
+
* represented by stable markers; this never throws on circular user schemas.
|
|
47
|
+
*/
|
|
48
|
+
export function safeSchemaChars(schema: unknown): number {
|
|
49
|
+
const seen = new WeakSet<object>();
|
|
50
|
+
const json = JSON.stringify(schema, (_key, value) => {
|
|
51
|
+
if (typeof value === "bigint") return "[bigint]";
|
|
52
|
+
if (typeof value === "function") return "[function]";
|
|
53
|
+
if (typeof value === "symbol") return "[symbol]";
|
|
54
|
+
if (value && typeof value === "object") {
|
|
55
|
+
if (seen.has(value)) return "[circular]";
|
|
56
|
+
seen.add(value);
|
|
57
|
+
}
|
|
58
|
+
return value;
|
|
59
|
+
});
|
|
60
|
+
return characterCount(json ?? "[undefined]");
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function component(input: Omit<ContextBudgetComponent, "chars" | "estimatedTokens"> & { chars?: number }): ContextBudgetComponent {
|
|
64
|
+
const chars = Math.max(0, Number(input.chars) || 0);
|
|
65
|
+
return { ...input, chars, estimatedTokens: estimateTokens(chars) };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Reconcile visible component estimates with a provider total. The raw estimate
|
|
70
|
+
* always remains intact. Estimated components are scaled only when needed;
|
|
71
|
+
* non-negative residual absorbs all rounding.
|
|
72
|
+
*/
|
|
73
|
+
export function reconcileComponents(components: readonly ContextBudgetComponent[], measuredTokens?: number): ContextBudgetComponent[] {
|
|
74
|
+
const measured = Number(measuredTokens);
|
|
75
|
+
const hasMeasured = Number.isFinite(measured) && measured >= 0;
|
|
76
|
+
const visible = components.filter((entry) => entry.visibility === "model-visible");
|
|
77
|
+
const estimate = visible.reduce((sum, entry) => sum + Math.max(0, entry.estimatedTokens), 0);
|
|
78
|
+
const scale = hasMeasured && estimate > measured && estimate > 0 ? measured / estimate : 1;
|
|
79
|
+
return components.map((entry) => {
|
|
80
|
+
if (entry.visibility !== "model-visible") return { ...entry, adjustedTokens: 0, confidence: entry.confidence === "unavailable" ? "unavailable" : "exact-chars" };
|
|
81
|
+
const adjustedTokens = Math.max(0, Math.floor(Math.max(0, entry.estimatedTokens) * scale));
|
|
82
|
+
return {
|
|
83
|
+
...entry,
|
|
84
|
+
adjustedTokens,
|
|
85
|
+
confidence: hasMeasured && scale < 1 ? "provider-scaled" : entry.confidence,
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** Produce a non-negative provider residual and an exact post-rounding total. */
|
|
91
|
+
export function reconcilePlane(components: readonly ContextBudgetComponent[], plane: ContextPlane, measuredTokens?: number, window?: number): { components: ContextBudgetComponent[]; summary: ContextPlaneSummary; residual?: ContextBudgetComponent } {
|
|
92
|
+
const reconciled = reconcileComponents(components, measuredTokens);
|
|
93
|
+
const measured = Number(measuredTokens);
|
|
94
|
+
const hasMeasured = Number.isFinite(measured) && measured >= 0;
|
|
95
|
+
const attributedTokens = reconciled
|
|
96
|
+
.filter((entry) => entry.plane === plane && entry.visibility === "model-visible")
|
|
97
|
+
.reduce((sum, entry) => sum + Math.max(0, entry.adjustedTokens ?? 0), 0);
|
|
98
|
+
const residualTokens = hasMeasured ? Math.max(0, measured - attributedTokens) : undefined;
|
|
99
|
+
const validWindow = Number(window);
|
|
100
|
+
const occupancyPercent = hasMeasured && Number.isFinite(validWindow) && validWindow > 0 ? (measured / validWindow) * 100 : undefined;
|
|
101
|
+
const residual: ContextBudgetComponent | undefined = residualTokens === undefined ? undefined : {
|
|
102
|
+
id: `${plane}/provider-unattributed`, plane, category: "unattributed", label: "Provider / serialization / unattributed",
|
|
103
|
+
persistence: "turn", visibility: "model-visible", chars: 0, estimatedTokens: 0, adjustedTokens: residualTokens,
|
|
104
|
+
confidence: "provider-total" as const,
|
|
105
|
+
};
|
|
106
|
+
return { components: reconciled, summary: { plane, measuredTokens: hasMeasured ? measured : undefined, attributedTokens, residualTokens, window: Number.isFinite(validWindow) && validWindow > 0 ? validWindow : undefined, occupancyPercent }, residual };
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Context capacity is meaningful only with this plane's own known window. */
|
|
110
|
+
export function planeOccupancy(tokens: number | undefined, window: number | undefined): number | undefined {
|
|
111
|
+
const total = Number(tokens);
|
|
112
|
+
const capacity = Number(window);
|
|
113
|
+
return Number.isFinite(total) && total >= 0 && Number.isFinite(capacity) && capacity > 0 ? (total / capacity) * 100 : undefined;
|
|
114
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Operator-approved automatic policy. Explicit user compaction is independent. */
|
|
2
|
+
export const COMPACTION_MIN_PERCENT = 50;
|
|
3
|
+
export const COMPACTION_EARLY_PERCENT = 60;
|
|
4
|
+
export const COMPACTION_TARGET_PERCENT = 70;
|
|
5
|
+
export const COMPACTION_MAX_PERCENT = 80;
|
|
6
|
+
/** One hysteresis band of new history since the first post-compaction measurement. */
|
|
7
|
+
export const COMPACTION_REARM_GROWTH_PERCENT = COMPACTION_TARGET_PERCENT - COMPACTION_EARLY_PERCENT;
|
|
8
|
+
|
|
9
|
+
/** @param {unknown} value @returns {value is number} */
|
|
10
|
+
const count = value => typeof value === "number" && Number.isFinite(value) && value >= 0;
|
|
11
|
+
|
|
12
|
+
/** A window whose post-compaction baseline stays above the early threshold (system
|
|
13
|
+
* prompt, tool schemas, summary and kept recent turns) can never fall below it, so
|
|
14
|
+
* automatic compaction also re-arms once that much new history could be summarized.
|
|
15
|
+
* @param {number|null|undefined} baselineTokens first measurement after a compaction
|
|
16
|
+
* @param {number|null|undefined} tokens
|
|
17
|
+
* @param {number|null|undefined} contextWindow
|
|
18
|
+
*/
|
|
19
|
+
export function compactionRearmed(baselineTokens, tokens, contextWindow) {
|
|
20
|
+
if (!count(tokens) || !count(baselineTokens) || !count(contextWindow) || contextWindow === 0) return false;
|
|
21
|
+
return tokens - baselineTokens >= contextWindow * COMPACTION_REARM_GROWTH_PERCENT / 100;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Compaction left usage between its target and the ceiling: another compaction
|
|
25
|
+
* cannot reach the target before one band of growth, so holding work at the ceiling
|
|
26
|
+
* would only stall it. A baseline at or above the ceiling still stops work, because
|
|
27
|
+
* the window cannot hold the history that compaction keeps.
|
|
28
|
+
* @param {number|null|undefined} baselineTokens
|
|
29
|
+
* @param {number|null|undefined} contextWindow
|
|
30
|
+
*/
|
|
31
|
+
export function compactionShortOfTarget(baselineTokens, contextWindow) {
|
|
32
|
+
if (!count(baselineTokens) || !count(contextWindow) || contextWindow === 0) return false;
|
|
33
|
+
const percent = baselineTokens / contextWindow * 100;
|
|
34
|
+
return percent >= COMPACTION_TARGET_PERCENT && percent < COMPACTION_MAX_PERCENT;
|
|
35
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {createHash} from 'node:crypto';
|
|
2
|
+
const sha=(value:string)=>createHash('sha256').update(value).digest('hex');
|
|
3
|
+
function canonical(value:any,seen=new Set<object>()):any{
|
|
4
|
+
if(value===null||typeof value==='string'||typeof value==='boolean')return value;
|
|
5
|
+
if(typeof value==='number'){if(!Number.isFinite(value))throw Error('non_json_input');return value;}
|
|
6
|
+
if(typeof value!=='object')throw Error('non_json_input');
|
|
7
|
+
if(seen.has(value))throw Error('cyclic_input');seen.add(value);
|
|
8
|
+
try{
|
|
9
|
+
if(Array.isArray(value))return value.map(v=>canonical(v,seen));
|
|
10
|
+
if(![Object.prototype,null].includes(Object.getPrototypeOf(value)))throw Error('non_json_input');
|
|
11
|
+
return Object.fromEntries(Object.keys(value).sort().filter(k=>value[k]!==undefined).map(k=>[k,canonical(value[k],seen)]));
|
|
12
|
+
}finally{seen.delete(value);}
|
|
13
|
+
}
|
|
14
|
+
/** Full JSON input identity is independent of object-key order, not of field values. */
|
|
15
|
+
export function damageActionHashes(operation:string,input:unknown):{target:string;legacyTargets:readonly string[]}{
|
|
16
|
+
const target=sha(JSON.stringify(canonical(input))),legacy=new Set<string>();
|
|
17
|
+
// Compatibility for the previously unwired v1 helpers' raw JSON hashes.
|
|
18
|
+
// Only the small, known native scalar argument shapes are enumerated.
|
|
19
|
+
const fields=operation==='bash'?['command','timeout']:operation==='write'?['path','content']:operation==='edit'?['path','oldText','newText']:[];
|
|
20
|
+
if(input&&typeof input==='object'&&!Array.isArray(input)){
|
|
21
|
+
const row=input as Record<string,unknown>,keys=Object.keys(row);
|
|
22
|
+
if(keys.length&&keys.every(k=>fields.includes(k))){
|
|
23
|
+
const visit=(prefix:string[],remaining:string[])=>{if(!remaining.length){legacy.add(sha(JSON.stringify(Object.fromEntries(prefix.map(k=>[k,row[k]])))));return;}for(const key of remaining)visit([...prefix,key],remaining.filter(k=>k!==key));};
|
|
24
|
+
visit([],keys);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return {target,legacyTargets:Object.freeze([...legacy].filter(h=>h!==target).sort())};
|
|
28
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {createHash} from 'node:crypto';
|
|
2
|
+
import {constants,lstatSync,openSync,fstatSync,readSync,closeSync,realpathSync} from 'node:fs';
|
|
3
|
+
import {isAbsolute,join,resolve} from 'node:path';
|
|
4
|
+
import {parse} from 'yaml';
|
|
5
|
+
import {redactSecrets} from './fleet-transcript-store.ts';
|
|
6
|
+
export type AutoPolicyRule={id:string;decision:'deny'|'allow_once';source:'damage_control_path';category:'zero_access'|'read_only'|'no_delete';tool:'read'|'write'|'edit'|'bash';pattern:string;operation:'read'|'write'|'delete';expiresAt:string;reason:string};
|
|
7
|
+
export type DamageAutoPolicy={status:'disabled'|'valid'|'invalid';digest:string;rules:readonly AutoPolicyRule[]};
|
|
8
|
+
const sha=(v:string)=>createHash('sha256').update(v).digest('hex');
|
|
9
|
+
const exact=(v:any,fields:string[])=>v&&typeof v==='object'&&!Array.isArray(v)&&Object.keys(v).length===fields.length&&fields.every(k=>Object.hasOwn(v,k));
|
|
10
|
+
const safe=(v:any,max:number):v is string=>typeof v==='string'&&!!v.trim()&&v.length<=max&&redactSecrets(v)===v&&!/[\u0000-\u001f\u007f-\u009f\u202a-\u202e\u2066-\u2069]/.test(v);
|
|
11
|
+
/** User-owned opt-in only. No creation, installer ownership, global fallback or repair. */
|
|
12
|
+
export function loadDamageAutoPolicy(cwd:string):DamageAutoPolicy {
|
|
13
|
+
let digest=sha('absent');
|
|
14
|
+
try{
|
|
15
|
+
const root=join(cwd,'.pi'),file=join(root,'damage-control-auto-policy.yaml');
|
|
16
|
+
const stat=lstatSync(file); // A missing opt-in is disabled even in an ordinary shared checkout.
|
|
17
|
+
const directory=lstatSync(root);if(directory.isSymbolicLink()||!directory.isDirectory()||directory.mode&0o022||directory.uid!==process.getuid?.()||realpathSync(root)!==resolve(root))throw Error('unsafe_directory');
|
|
18
|
+
if(!stat.isFile()||stat.isSymbolicLink()||stat.nlink!==1||stat.size>32768||stat.mode&0o022||stat.uid!==process.getuid?.())throw Error('unsafe_policy');
|
|
19
|
+
const fd=openSync(file,constants.O_RDONLY|constants.O_NOFOLLOW);
|
|
20
|
+
let text:string;
|
|
21
|
+
try{
|
|
22
|
+
const opened=fstatSync(fd);if(opened.dev!==stat.dev||opened.ino!==stat.ino||opened.nlink!==1||!opened.isFile())throw Error('changed_policy');
|
|
23
|
+
const buffer=Buffer.alloc(32769);const length=readSync(fd,buffer,0,buffer.length,0);if(length>32768)throw Error('oversize_policy');
|
|
24
|
+
text=new TextDecoder('utf-8',{fatal:true}).decode(buffer.subarray(0,length));
|
|
25
|
+
}finally{closeSync(fd);}
|
|
26
|
+
digest=sha(text);
|
|
27
|
+
if(!text.trim())return {status:'disabled',digest,rules:[]};
|
|
28
|
+
const parsed=parse(text,{uniqueKeys:true,maxAliasCount:0});
|
|
29
|
+
if(!exact(parsed,['version','rules'])||parsed.version!==1||!Array.isArray(parsed.rules)||parsed.rules.length>64)throw Error('schema');
|
|
30
|
+
const ids=new Set<string>();
|
|
31
|
+
for(const r of parsed.rules){
|
|
32
|
+
if(!exact(r,['id','decision','source','category','tool','pattern','operation','expiresAt','reason'])||!safe(r.id,96)||ids.has(r.id)||!['deny','allow_once'].includes(r.decision)||r.source!=='damage_control_path'||!['zero_access','read_only','no_delete'].includes(r.category)||!['read','write','edit','bash'].includes(r.tool)||!safe(r.pattern,2048)||!['read','write','delete'].includes(r.operation)||typeof r.expiresAt!=='string'||!Number.isFinite(Date.parse(r.expiresAt))||new Date(r.expiresAt).toISOString()!==r.expiresAt||!safe(r.reason,1000))throw Error('rule');
|
|
33
|
+
if(r.category==='zero_access'&&r.decision==='allow_once')throw Error('zero_access_allow_forbidden');
|
|
34
|
+
ids.add(r.id);
|
|
35
|
+
}
|
|
36
|
+
return {status:parsed.rules.length?'valid':'disabled',digest,rules:structuredClone(parsed.rules)};
|
|
37
|
+
}catch(e){
|
|
38
|
+
if((e as NodeJS.ErrnoException).code==='ENOENT')return {status:'disabled',digest,rules:[]};
|
|
39
|
+
return {status:'invalid',digest:sha('invalid:'+digest),rules:[]};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export function evaluateDamageAutoPolicy(policy:DamageAutoPolicy,input:{source:string;category:string;tool:string;pattern:string;analysis:'static_operands'|'conservative_text';operands:readonly {path:string;operation:'read'|'write'|'delete'}[];cwd:string;presentationSafe:boolean;d6Hold?:boolean},now=Date.now()){
|
|
43
|
+
if(policy.status!=='valid'||!input.presentationSafe||input.d6Hold||input.analysis!=='static_operands'||input.operands.length!==1||!isAbsolute(input.operands[0].path))return null;
|
|
44
|
+
const path=resolve(input.operands[0].path);
|
|
45
|
+
// The policy can never authorize its own control plane or a D6 hold.
|
|
46
|
+
const control=join(input.cwd,'.pi','damage-control-auto-policy.yaml');
|
|
47
|
+
if(path===control||control.startsWith(path+'/'))return null;
|
|
48
|
+
const matches=policy.rules.filter(r=>r.source===input.source&&r.category===input.category&&r.tool===input.tool&&r.pattern===input.pattern&&r.operation===input.operands[0].operation&&Date.parse(r.expiresAt)>now);
|
|
49
|
+
if(matches.length!==1)return null;
|
|
50
|
+
const rule=matches[0];if(rule.category==='zero_access'&&rule.decision==='allow_once')return null;
|
|
51
|
+
return {decision:rule.decision,decisionSource:'auto_policy' as const,policyId:rule.id,policyDigest:policy.digest,reason:rule.reason};
|
|
52
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {createHash} from 'node:crypto';
|
|
2
|
+
import {redactSecrets} from './fleet-transcript-store.ts';
|
|
3
|
+
|
|
4
|
+
/** Display text is never an identity or executable action. Redact before clipping. */
|
|
5
|
+
export function damagePreview(text:string,limit=500):string {
|
|
6
|
+
const safe=redactSecrets(text).replace(/[\u0000-\u0008\u000b-\u001f\u007f-\u009f\u202a-\u202e\u2066-\u2069]/g,'');
|
|
7
|
+
return safe.length>limit ? safe.slice(0,limit)+'… [truncated]' : safe;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** Audit retains correlation metadata, never raw tool input or a command preview. */
|
|
11
|
+
export function damageInputAudit(input:unknown) {
|
|
12
|
+
const serialized=JSON.stringify(input)??'undefined';
|
|
13
|
+
return {schema:'damage-input-audit/v1',sha256:createHash('sha256').update(serialized).digest('hex'),bytes:Buffer.byteLength(serialized)};
|
|
14
|
+
}
|