@chankov/agent-fleet 2.0.11 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/agent-fleet/scripts/flow.ts +5 -3
- package/.pi/agent-fleet/scripts/lib/flow-command.ts +9 -4
- package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +1 -1
- package/.pi/agent-fleet/scripts/lib/herdr-layout.ts +3 -3
- package/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +3 -1
- package/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
- package/.pi/agents/model-profiles.yaml +80 -29
- package/.pi/agents/peers.yaml +18 -18
- package/.pi/agents/voices.yaml +2 -2
- package/.pi/harnesses/agent-hub/README.md +118 -10
- package/.pi/harnesses/agent-hub/budget-recovery.ts +24 -1
- package/.pi/harnesses/agent-hub/capability-packs.ts +2 -1
- package/.pi/harnesses/agent-hub/commands/audit.ts +1 -1
- package/.pi/harnesses/agent-hub/commands/context.ts +2 -1
- package/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
- package/.pi/harnesses/agent-hub/commands/retry.ts +1 -1
- package/.pi/harnesses/agent-hub/config/model-profiles.ts +1 -0
- package/.pi/harnesses/agent-hub/config/overrides.ts +8 -1
- package/.pi/harnesses/agent-hub/context-budget-snapshot.ts +1 -1
- package/.pi/harnesses/agent-hub/context-window.js +2 -0
- package/.pi/harnesses/agent-hub/delegate.ts +8 -4
- package/.pi/harnesses/agent-hub/dispatch-coms.ts +20 -5
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +9 -3
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +27 -2
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +85 -51
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +14 -2
- package/.pi/harnesses/agent-hub/dispatch-native.ts +1 -1
- package/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.pi/harnesses/agent-hub/drift-watchdog.js +140 -9
- package/.pi/harnesses/agent-hub/index.ts +154 -81
- package/.pi/harnesses/agent-hub/input/completions.ts +8 -2
- package/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +4 -2
- package/.pi/harnesses/agent-hub/monitor-lifecycle.ts +1 -1
- package/.pi/harnesses/agent-hub/no-progress.ts +169 -16
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/profile-activation.ts +2 -2
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +2 -2
- package/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
- package/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
- package/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
- package/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
- package/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
- package/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
- package/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
- package/.pi/harnesses/agent-hub/prompts/context.ts +3 -1
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +2 -2
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +3 -0
- package/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
- package/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.pi/harnesses/agent-hub/recovery-contract.ts +3 -1
- package/.pi/harnesses/agent-hub/research/controls.ts +1 -1
- package/.pi/harnesses/agent-hub/research/runtime.ts +4 -2
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +5 -2
- package/.pi/harnesses/agent-hub/return-extract.js +4 -2
- package/.pi/harnesses/agent-hub/review-findings.js +2 -0
- package/.pi/harnesses/agent-hub/run-budget.js +6 -1
- package/.pi/harnesses/agent-hub/run-namespace.js +6 -0
- package/.pi/harnesses/agent-hub/session-audit.ts +73 -7
- package/.pi/harnesses/agent-hub/spawn.ts +76 -8
- package/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
- package/.pi/harnesses/agent-hub/system1-report.ts +225 -0
- package/.pi/harnesses/agent-hub/system1-runtime.ts +276 -0
- package/.pi/harnesses/agent-hub/timeline.ts +23 -5
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +14 -1
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +2 -2
- package/.pi/harnesses/agent-hub/tools/run-flow.ts +16 -2
- package/.pi/harnesses/agent-hub/types.ts +1 -0
- package/.pi/harnesses/agent-hub/ui/activity-dots.ts +12 -3
- package/.pi/harnesses/agent-hub/ui/context-budget.ts +4 -3
- package/.pi/harnesses/agent-hub/ui/detail-panel.ts +36 -22
- package/.pi/harnesses/agent-hub/ui/fleet-actions.ts +3 -1
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +32 -7
- package/.pi/harnesses/agent-hub/ui/fleet-source.ts +20 -2
- package/.pi/harnesses/agent-hub/ui/grid.ts +15 -10
- package/.pi/harnesses/agent-hub/ui/pool.ts +1 -1
- package/.pi/harnesses/agent-hub/ui/zoom.ts +5 -3
- package/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/coms-core.ts +1 -1
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +41 -2
- package/.pi/harnesses/lib/context-budget-hub-prompt.ts +4 -2
- package/.pi/harnesses/lib/context-budget.ts +1 -1
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +16 -3
- package/.pi/harnesses/lib/fleet-detail-view.ts +98 -6
- package/.pi/harnesses/lib/fleet-read-model.ts +337 -14
- package/.pi/harnesses/lib/fleet-strip-view.ts +59 -12
- package/.pi/harnesses/lib/hermes-monitor-registry.ts +1 -1
- package/.pi/harnesses/lib/spawned-peers.js +1 -0
- package/.pi/harnesses/lib/system1/config.js +61 -0
- package/.pi/harnesses/lib/system1/contracts.ts +152 -0
- package/.pi/harnesses/lib/system1/demo.ts +106 -0
- package/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.12/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.12/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/fleet.ts +216 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/flow.ts +155 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/flow-command.ts +93 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +177 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.12/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.12/.pi/agents/model-profiles.yaml +83 -0
- package/.versions/2.0.12/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.12/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.12/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.12/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.12/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.12/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.12/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.12/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.12/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.12/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.12/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.12/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.12/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.12/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.12/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.12/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.12/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.12/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.12/.pi/extensions/package.json +9 -0
- package/.versions/2.0.12/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.12/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.12/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.12/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.12/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.12/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.12/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/README.md +1309 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/context.ts +45 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/config/model-profiles.ts +235 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/delegate.ts +465 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +223 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +202 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-types.ts +251 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/fixtures/registration-surface.json +61 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/index.ts +2301 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/no-progress.ts +359 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/context.ts +51 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/system-prompt.ts +112 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/research/runtime.ts +193 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/research/spawn-run.ts +171 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/return-contract.js +327 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/review-findings.js +104 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/run-budget.js +542 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/scope-gate.js +123 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/session-audit.ts +226 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/spawn.ts +526 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/system1-activity.ts +443 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/system1-report.ts +84 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/system1-runtime.ts +273 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/context.ts +142 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/run-flow.ts +122 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/detail-panel.ts +171 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +99 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-source.ts +170 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/grid.ts +154 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/work-mode.ts +173 -0
- package/.versions/2.0.12/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.12/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.12/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.12/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.12/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.12/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
- package/.versions/2.0.12/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.12/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.12/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.12/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.12/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.12/.pi/harnesses/damage-control-continue/index.ts +550 -0
- package/.versions/2.0.12/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.12/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.12/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.12/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.12/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.12/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.12/.pi/harnesses/lib/context-budget-child-prompt.ts +180 -0
- package/.versions/2.0.12/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
- package/.versions/2.0.12/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.12/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.12/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.12/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-dashboard-view.ts +136 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-detail-view.ts +278 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-read-model.ts +405 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-strip-controller.ts +74 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-strip-view.ts +144 -0
- package/.versions/2.0.12/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.12/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.12/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.12/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.12/.pi/harnesses/lib/system1/config.js +61 -0
- package/.versions/2.0.12/.pi/harnesses/lib/system1/contracts.ts +152 -0
- package/.versions/2.0.12/.pi/harnesses/lib/system1/demo.ts +106 -0
- package/.versions/2.0.12/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.12/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.12/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.12/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.12/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.12/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.12/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.12/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.12/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.12/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.12/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.12/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.12/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.12/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.12/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.12/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.12/.version +1 -0
- package/.versions/2.0.12/agents/architect.md +25 -0
- package/.versions/2.0.12/agents/bowser.md +28 -0
- package/.versions/2.0.12/agents/builder.md +56 -0
- package/.versions/2.0.12/agents/code-reviewer.md +210 -0
- package/.versions/2.0.12/agents/deep-researcher.md +33 -0
- package/.versions/2.0.12/agents/documenter.md +23 -0
- package/.versions/2.0.12/agents/orchestrator.md +23 -0
- package/.versions/2.0.12/agents/plan-reviewer.md +84 -0
- package/.versions/2.0.12/agents/planner.md +106 -0
- package/.versions/2.0.12/agents/releaser.md +25 -0
- package/.versions/2.0.12/agents/researcher.md +31 -0
- package/.versions/2.0.12/agents/security-auditor.md +168 -0
- package/.versions/2.0.12/agents/test-engineer.md +154 -0
- package/.versions/2.0.12/agents/web-debugger.md +44 -0
- package/.versions/2.0.12/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.12/bin/catalog/harness-runtime-closure.json +61 -0
- package/.versions/2.0.12/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.12/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.12/docs/ARCHITECTURE.md +705 -0
- package/.versions/2.0.12/docs/agent-fleet-setup.md +682 -0
- package/.versions/2.0.12/docs/claude-code-coms-bridge.md +134 -0
- package/.versions/2.0.12/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.12/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.12/docs/getting-started.md +126 -0
- package/.versions/2.0.12/docs/npm-install.md +468 -0
- package/.versions/2.0.12/docs/pi-extensions.md +449 -0
- package/.versions/2.0.12/docs/pi-setup.md +92 -0
- package/.versions/2.0.12/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.12/install-manifest.json +3053 -0
- package/.versions/2.0.12/justfile +247 -0
- package/.versions/2.0.12/manifest-meta.json +995 -0
- package/.versions/2.0.12/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.12/references/communication-contract.md +26 -0
- package/.versions/2.0.12/references/definition-of-done.md +67 -0
- package/.versions/2.0.12/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.12/references/observability-checklist.md +92 -0
- package/.versions/2.0.12/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.12/references/performance-checklist.md +236 -0
- package/.versions/2.0.12/references/prompting-patterns.md +380 -0
- package/.versions/2.0.12/references/security-checklist.md +245 -0
- package/.versions/2.0.12/references/testing-patterns.md +235 -0
- package/.versions/2.0.12/references/workflow-authoring.md +304 -0
- package/.versions/2.0.12/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.12/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.12/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.12/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.12/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.12/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.12/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.12/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.12/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.12/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.12/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.12/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.12/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.12/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.12/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.12/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.12/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.12/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.12/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.12/skills/incremental-implementation/SKILL.md +302 -0
- package/.versions/2.0.12/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.12/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.12/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.12/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.12/skills/planning-and-task-breakdown/SKILL.md +289 -0
- package/.versions/2.0.12/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.12/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.12/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.12/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.13/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet.ts +216 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.13/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.13/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.13/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.13/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.13/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.13/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.13/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.13/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.13/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.13/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.13/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.13/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.13/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.13/.pi/extensions/package.json +9 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/README.md +1360 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context.ts +45 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/delegate.ts +467 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +248 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-types.ts +257 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/registration-surface.json +61 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/index.ts +2336 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/no-progress.ts +359 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/context.ts +53 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/system-prompt.ts +115 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research/runtime.ts +195 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research/spawn-run.ts +174 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/return-contract.js +327 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/review-findings.js +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/run-budget.js +542 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/scope-gate.js +123 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/session-audit.ts +227 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/spawn.ts +526 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-report.ts +225 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-runtime.ts +276 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/context.ts +142 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +124 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-source.ts +175 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode.ts +173 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
- package/.versions/2.0.13/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.13/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.13/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.13/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/index.ts +550 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.13/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.13/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.13/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.13/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.13/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-view.ts +147 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-read-model.ts +536 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-controller.ts +74 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.13/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.13/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.13/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/config.js +61 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/contracts.ts +152 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/demo.ts +106 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.13/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.13/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.13/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.13/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.13/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.13/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.13/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.13/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.13/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.13/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.13/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.13/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.13/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.13/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.13/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.13/.version +1 -0
- package/.versions/2.0.13/agents/architect.md +24 -0
- package/.versions/2.0.13/agents/bowser.md +28 -0
- package/.versions/2.0.13/agents/builder.md +55 -0
- package/.versions/2.0.13/agents/code-reviewer.md +209 -0
- package/.versions/2.0.13/agents/deep-researcher.md +32 -0
- package/.versions/2.0.13/agents/documenter.md +22 -0
- package/.versions/2.0.13/agents/orchestrator.md +22 -0
- package/.versions/2.0.13/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.13/agents/planner.md +105 -0
- package/.versions/2.0.13/agents/releaser.md +24 -0
- package/.versions/2.0.13/agents/researcher.md +30 -0
- package/.versions/2.0.13/agents/security-auditor.md +167 -0
- package/.versions/2.0.13/agents/test-engineer.md +153 -0
- package/.versions/2.0.13/agents/web-debugger.md +44 -0
- package/.versions/2.0.13/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.13/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.13/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.13/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.13/docs/ARCHITECTURE.md +753 -0
- package/.versions/2.0.13/docs/agent-fleet-setup.md +900 -0
- package/.versions/2.0.13/docs/claude-code-coms-bridge.md +134 -0
- package/.versions/2.0.13/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.13/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.13/docs/getting-started.md +126 -0
- package/.versions/2.0.13/docs/npm-install.md +468 -0
- package/.versions/2.0.13/docs/pi-extensions.md +454 -0
- package/.versions/2.0.13/docs/pi-setup.md +92 -0
- package/.versions/2.0.13/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.13/install-manifest.json +3175 -0
- package/.versions/2.0.13/justfile +247 -0
- package/.versions/2.0.13/manifest-meta.json +1057 -0
- package/.versions/2.0.13/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.13/references/communication-contract.md +26 -0
- package/.versions/2.0.13/references/definition-of-done.md +67 -0
- package/.versions/2.0.13/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.13/references/observability-checklist.md +92 -0
- package/.versions/2.0.13/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.13/references/performance-checklist.md +236 -0
- package/.versions/2.0.13/references/prompting-patterns.md +380 -0
- package/.versions/2.0.13/references/security-checklist.md +245 -0
- package/.versions/2.0.13/references/testing-patterns.md +235 -0
- package/.versions/2.0.13/references/workflow-authoring.md +304 -0
- package/.versions/2.0.13/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.13/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.13/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.13/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.13/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.13/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.13/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.13/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.13/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.13/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.13/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.13/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.13/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.13/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.13/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.13/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.13/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.13/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.13/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.13/skills/incremental-implementation/SKILL.md +302 -0
- package/.versions/2.0.13/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.13/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.13/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.13/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.13/skills/planning-and-task-breakdown/SKILL.md +289 -0
- package/.versions/2.0.13/skills/repository-ai-setup/SKILL.md +117 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.13/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.13/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.13/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +20 -0
- package/README.md +3 -3
- package/agents/architect.md +2 -3
- package/agents/bowser.md +2 -2
- package/agents/builder.md +2 -3
- package/agents/code-reviewer.md +7 -8
- package/agents/deep-researcher.md +3 -4
- package/agents/documenter.md +2 -3
- package/agents/orchestrator.md +2 -3
- package/agents/plan-reviewer.md +5 -6
- package/agents/planner.md +5 -6
- package/agents/releaser.md +2 -3
- package/agents/researcher.md +4 -5
- package/agents/security-auditor.md +6 -7
- package/agents/test-engineer.md +3 -4
- package/agents/web-debugger.md +3 -3
- package/agents/web-performance-auditor.md +3 -3
- package/bin/catalog/harness-runtime-closure.json +30 -18
- package/bin/cli.js +50 -4
- package/bin/lib/apply.js +16 -0
- package/bin/lib/doctor.js +63 -1
- package/bin/lib/overrides.js +37 -1
- package/bin/lib/project-provenance.js +119 -0
- package/bin/lib/scan.js +1 -1
- package/bin/lib/transaction.js +1 -1
- package/bin/lib/validate-overrides.js +37 -3
- package/catalog/agent-prompts/README.md +12 -0
- package/catalog/agent-prompts/architecture-decision-author.md +24 -0
- package/catalog/agent-prompts/requirements-author.md +21 -0
- package/catalog/commands/README.md +13 -0
- package/catalog/commands/assess-change-impact.md +19 -0
- package/catalog/commands/audit-documentation.md +19 -0
- package/catalog/rules/README.md +33 -0
- package/catalog/rules/ai/policy-authoring.md +22 -0
- package/catalog/rules/architecture/behavior-preserving-refactoring.md +25 -0
- package/catalog/rules/architecture/public-contracts.md +22 -0
- package/catalog/rules/architecture/repository-boundaries.md +21 -0
- package/catalog/rules/architecture/structural-change-registration.md +25 -0
- package/catalog/rules/backend/notification-date-time.md +25 -0
- package/catalog/rules/bundles/README.md +16 -0
- package/catalog/rules/data/enum-semantics.md +25 -0
- package/catalog/rules/data/mixed-ownership-data.md +22 -0
- package/catalog/rules/data/reporting-queries.md +34 -0
- package/catalog/rules/docs/docs-maintenance.md +25 -0
- package/catalog/rules/frameworks/vue.md +25 -0
- package/catalog/rules/frontend/async-ui-states.md +26 -0
- package/catalog/rules/frontend/established-ui-primitives.md +25 -0
- package/catalog/rules/frontend/form-validation.md +26 -0
- package/catalog/rules/frontend/navigation-contracts.md +25 -0
- package/catalog/rules/languages/csharp.md +25 -0
- package/catalog/rules/languages/javascript.md +25 -0
- package/catalog/rules/languages/sql.md +24 -0
- package/catalog/rules/security/authorization-before-effects.md +26 -0
- package/catalog/rules/security/diagnostic-data-safety.md +22 -0
- package/catalog/rules/security/response-data-minimization.md +25 -0
- package/catalog/rules/security/trusted-tenant-scope.md +26 -0
- package/catalog/rules/testing/shared-package-consumers.md +25 -0
- package/catalog/rules/testing/verification-conventions.md +24 -0
- package/docs/ARCHITECTURE.md +163 -5
- package/docs/agent-fleet-setup.md +342 -28
- package/docs/codex-session-bridge.md +1 -1
- package/docs/npm-install.md +87 -2
- package/docs/pi-extensions.md +10 -5
- package/docs/workflows.md +4 -3
- package/install-manifest.json +158 -3
- package/manifest-meta.json +102 -15
- package/package.json +9 -3
- package/skills/repository-ai-setup/SKILL.md +117 -0
- package/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/skills/repository-ai-setup/references/verify-setup.md +20 -0
package/bin/cli.js
CHANGED
|
@@ -17,7 +17,8 @@ import { loadManifest } from "./lib/manifest.js";
|
|
|
17
17
|
import { runVerify, hasDrift } from "./lib/verify.js";
|
|
18
18
|
import { buildPlan, hasConflicts, isNoop } from "./lib/plan.js";
|
|
19
19
|
import { buildReconcilePlan } from "./lib/reconcile.js";
|
|
20
|
-
import { applyPlan, retryRuntimeRepairs } from "./lib/apply.js";
|
|
20
|
+
import { applyPlan, applyConfiguration, retryRuntimeRepairs } from "./lib/apply.js";
|
|
21
|
+
import { planConfigureOverrides } from "./lib/overrides.js";
|
|
21
22
|
import { askChoice, askFinalApproval, chooseSetup, selectionSummary } from "./lib/tui.js";
|
|
22
23
|
import { defaultDesired, readDesired } from "./lib/desired.js";
|
|
23
24
|
import { normalizeFeatureSet } from "./lib/features.js";
|
|
@@ -70,6 +71,9 @@ const parsed = (() => {
|
|
|
70
71
|
allowPositionals: true,
|
|
71
72
|
options: {
|
|
72
73
|
agent: { type: "string" },
|
|
74
|
+
rules: { type: "string" },
|
|
75
|
+
docs: { type: "string" },
|
|
76
|
+
"expect-hash": { type: "string" },
|
|
73
77
|
method: { type: "string" },
|
|
74
78
|
workspace: { type: "string" },
|
|
75
79
|
yes: { type: "boolean", short: "y" },
|
|
@@ -136,6 +140,7 @@ if (!["update", "check-update", "verify", "install", "upgrade", "uninstall", "do
|
|
|
136
140
|
|
|
137
141
|
switch (sub) {
|
|
138
142
|
case "setup": await cmdSetup(); break;
|
|
143
|
+
case "configure": await cmdConfigure(); break;
|
|
139
144
|
case "init": warnAlias("init"); await cmdSetup(); break;
|
|
140
145
|
case "doctor": await cmdDoctor(); break;
|
|
141
146
|
case "verify": await cmdVerify(); break;
|
|
@@ -227,6 +232,35 @@ async function cmdSetHermesTelegram() {
|
|
|
227
232
|
// is advisory: printed, never auto-fixed, because the fix is always a hand edit.
|
|
228
233
|
function warnAlias(name) { console.error(`Warning: ${name} is deprecated; use setup.`); }
|
|
229
234
|
|
|
235
|
+
async function cmdConfigure() {
|
|
236
|
+
await mustBeDirectory(workspace, "workspace");
|
|
237
|
+
if (parsed.positionals.length || (opts.rules === undefined && opts.docs === undefined)) fail("configure requires --rules and/or --docs");
|
|
238
|
+
if (["preset", "features", "items", "profile", "save-desired", "repair-config", "migrate", "allow-exec"].some((key) => opts[key] !== undefined))
|
|
239
|
+
fail("configure accepts only settings paths; use setup for installation options");
|
|
240
|
+
const requested = {};
|
|
241
|
+
for (const key of ["rules", "docs"]) {
|
|
242
|
+
if (opts[key] === undefined) continue;
|
|
243
|
+
const paths = opts[key].split(",").map((path) => path.trim());
|
|
244
|
+
if (paths.some((path) => !path || path.startsWith("/") || /[\r\n:#]/.test(path) || path.includes("\\") || path.split("/").some((part) => part === ".." || part === "." || !part)))
|
|
245
|
+
fail(`--${key} requires comma-separated workspace-relative paths`);
|
|
246
|
+
requested[key] = [...new Set(paths)];
|
|
247
|
+
for (const path of requested[key]) if (!existsSync(join(workspace, path))) console.error(`Warning: configured ${key} path does not exist: ${path}`);
|
|
248
|
+
}
|
|
249
|
+
const dryRun = Boolean(opts["dry-run"]);
|
|
250
|
+
if (!dryRun && !opts.yes) fail("configure apply requires --yes; preview with --dry-run");
|
|
251
|
+
if (!dryRun) lockMutation("configure");
|
|
252
|
+
else if (transactionRecovery(workspace).pending) fail("pending transaction journal exists; run agent-fleet doctor --fix before replanning");
|
|
253
|
+
let plan;
|
|
254
|
+
try { plan = planConfigureOverrides(workspace, requested, opts["expect-hash"] ?? null); }
|
|
255
|
+
catch (error) { fail(error.message); }
|
|
256
|
+
if (dryRun) { writeJson({ verb: "configure", stage: "preview", path: ".ai/agent-fleet-overrides.md", expectedHash: plan.hash, write: plan.write, before: existsSync(plan.path) ? readFileSync(plan.path, "utf8") : "", after: plan.text }); return; }
|
|
257
|
+
try {
|
|
258
|
+
const result = applyConfiguration({ workspace, overrides: plan, expectedHash: plan.hash, lockHeld: true });
|
|
259
|
+
if (opts.json) writeJson({ verb: "configure", ...result });
|
|
260
|
+
else console.log(result.changed ? "Configuration applied; start a new session to load it." : "Configuration unchanged.");
|
|
261
|
+
} catch (error) { fail(error.message); }
|
|
262
|
+
}
|
|
263
|
+
|
|
230
264
|
async function cmdSetup() {
|
|
231
265
|
await mustBeDirectory(workspace, "workspace");
|
|
232
266
|
if (opts["on-conflict"] !== undefined && !["ours", "theirs"].includes(opts["on-conflict"])) {
|
|
@@ -381,7 +415,7 @@ async function cmdDoctor() {
|
|
|
381
415
|
catch (err) { fail(`cannot recover pending transaction: ${err.message}`); }
|
|
382
416
|
}
|
|
383
417
|
|
|
384
|
-
const ADVISORY_FINDING_TYPES = new Set(["overrides", "yaml-shape"]);
|
|
418
|
+
const ADVISORY_FINDING_TYPES = new Set(["overrides", "yaml-shape", "system1"]);
|
|
385
419
|
// These findings affect launch readiness and the doctor exit code, but npm
|
|
386
420
|
// execution remains behind its dedicated explicit-consent commands.
|
|
387
421
|
const MANUAL_FINDING_TYPES = new Set(["runtime-dependencies", "manifest-tool"]);
|
|
@@ -399,7 +433,7 @@ async function cmdDoctor() {
|
|
|
399
433
|
const enginePaths = new Set(
|
|
400
434
|
repairs.flatMap((a) => [a.target, ...(a.files ?? []).map((f) => f.path)]).filter(Boolean),
|
|
401
435
|
);
|
|
402
|
-
const findings = (await runDoctor({ workspace, sourceRoot: pkgRoot }))
|
|
436
|
+
const findings = (await runDoctor({ workspace, sourceRoot: pkgRoot, env: process.env }))
|
|
403
437
|
.filter((f) => !(f.type === "broken-symlink" && enginePaths.has(f.path)));
|
|
404
438
|
for (const tool of preflight.tools.filter((item) => item.status === "missing")) findings.push({
|
|
405
439
|
type: "manifest-tool", path: tool.itemId, issue: `required manifest tool ${tool.probe} is missing`,
|
|
@@ -465,7 +499,7 @@ async function cmdDoctor() {
|
|
|
465
499
|
let scanRepair = null;
|
|
466
500
|
if (willFix) {
|
|
467
501
|
if (repairs.length > 0) applied = applyPlan({ plan, manifest: loadManifest(pkgRoot) });
|
|
468
|
-
if (fixable.length > 0) scanRepair = await runDoctor({ workspace, sourceRoot: pkgRoot, apply: true });
|
|
502
|
+
if (fixable.length > 0) scanRepair = await runDoctor({ workspace, sourceRoot: pkgRoot, apply: true, env: process.env });
|
|
469
503
|
}
|
|
470
504
|
|
|
471
505
|
const runtimeRepairOutput = (line) => (opts.json ? console.error : console.log)(`exec: ${line}`);
|
|
@@ -1186,6 +1220,17 @@ function fail(msg, code = 1) {
|
|
|
1186
1220
|
}
|
|
1187
1221
|
|
|
1188
1222
|
function printHelp(sub) {
|
|
1223
|
+
if (sub === "configure") {
|
|
1224
|
+
console.log(`agent-fleet configure --rules <dirs> --docs <paths> [options]
|
|
1225
|
+
|
|
1226
|
+
Append and deduplicate requested repo-relative paths in Fleet overrides only.
|
|
1227
|
+
Omit either key to leave it unchanged. Conflicting sections/keys require manual resolution.
|
|
1228
|
+
--dry-run previews before/after bytes and expectedHash without writing.
|
|
1229
|
+
--yes applies; --expect-hash <expectedHash> refuses a stale preview.
|
|
1230
|
+
--workspace <path> selects the target (default: cwd); --json emits the apply result.
|
|
1231
|
+
Start a new session to load changed settings.`);
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1189
1234
|
if (sub === "setup") {
|
|
1190
1235
|
console.log(`agent-fleet setup [options]
|
|
1191
1236
|
|
|
@@ -1427,6 +1472,7 @@ Commands:
|
|
|
1427
1472
|
install Install from a profile or explicit item ids
|
|
1428
1473
|
upgrade Upgrade what is installed, with a three-way merge
|
|
1429
1474
|
setup Reconcile Default/Full desired state (interactive in a TTY)
|
|
1475
|
+
configure Preview/apply only requested rules/docs override roots
|
|
1430
1476
|
uninstall Remove recorded artifacts (--items / --all)
|
|
1431
1477
|
update Compatibility alias for setup
|
|
1432
1478
|
check-update One-line registry check (used by session hooks; safe to script)
|
package/bin/lib/apply.js
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
} from "node:fs";
|
|
24
24
|
import { spawnSync } from "node:child_process";
|
|
25
25
|
import { dirname, join, resolve } from "node:path";
|
|
26
|
+
import { createHash } from "node:crypto";
|
|
26
27
|
|
|
27
28
|
import { itemsForAgent } from "./manifest.js";
|
|
28
29
|
import { expandBinding } from "./verify.js";
|
|
@@ -37,6 +38,21 @@ import {
|
|
|
37
38
|
} from "./state.js";
|
|
38
39
|
|
|
39
40
|
export const APPLY_SCHEMA_VERSION = 1;
|
|
41
|
+
|
|
42
|
+
/** Configure owns only the requested overrides diff; never updates install state. */
|
|
43
|
+
export function applyConfiguration({ workspace, overrides, expectedHash, failAt = null, lockHeld = false }) {
|
|
44
|
+
const plan = { workspace, verb: "configure", overrides, actions: [] };
|
|
45
|
+
const current = () => existsSync(overrides.path) ? readFileSync(overrides.path, "utf8") : "";
|
|
46
|
+
if (!overrides.write) return { changed: false };
|
|
47
|
+
const hash = (text) => createHash("sha256").update(text).digest("hex");
|
|
48
|
+
return runTransaction({ workspace, plan, manifest: { items: [] }, failAt, lockHeld,
|
|
49
|
+
validate: () => {
|
|
50
|
+
if (hash(current()) !== expectedHash) throw new Error("workspace changed since preview: overrides; re-run configure --dry-run");
|
|
51
|
+
},
|
|
52
|
+
commit: () => { writeFileSyncDeep(overrides.path, overrides.text, workspace); return { changed: true }; },
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
40
56
|
export const EXEC_TIMEOUT_MS = 120_000;
|
|
41
57
|
|
|
42
58
|
function manifestExec(manifest, agent, id) {
|
package/bin/lib/doctor.js
CHANGED
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
// 8. Manifest preflight — selected exact files and declared package probes are
|
|
27
27
|
// reported as environment readiness, with platform unknown/unavailable kept
|
|
28
28
|
// distinct from missing installation. Inspection never installs or repairs.
|
|
29
|
+
// 9. System 1 readiness — explicit feature selection, human configuration,
|
|
30
|
+
// .env declaration and current environment presence. Advisory and read-only;
|
|
31
|
+
// API validity is never inferred or probed.
|
|
29
32
|
//
|
|
30
33
|
// For each broken link we look up a canonical replacement in the source
|
|
31
34
|
// `agents/` or `skills/` tree (many breakages are stale names from the
|
|
@@ -38,6 +41,7 @@ import { parse as parseYaml } from "yaml";
|
|
|
38
41
|
import { validateOverrides } from "./validate-overrides.js";
|
|
39
42
|
import { readState, STATE_REL_PATH } from "./state.js";
|
|
40
43
|
import { runtimeDependencyFindings } from "../../.pi/agent-fleet/scripts/lib/runtime-dependencies.js";
|
|
44
|
+
import { resolveSystem1Readiness } from "../../.pi/harnesses/lib/system1/config.js";
|
|
41
45
|
|
|
42
46
|
export const AGENT_FLEET_PACKAGE_NAME = "@chankov/agent-fleet";
|
|
43
47
|
const AGENT_FLEET_PACKAGE_PATTERN = /(^|[/:])@chankov\/agent-fleet(@[^/]*)?$/;
|
|
@@ -85,7 +89,7 @@ const YAML_REFS = [
|
|
|
85
89
|
* @param {boolean} [opts.apply] If true, apply suggested fixes; otherwise just report
|
|
86
90
|
* @returns {Array|object} Findings array (apply=false) or {repaired,deleted,skipped} (apply=true)
|
|
87
91
|
*/
|
|
88
|
-
export async function runDoctor({ workspace, sourceRoot, apply = false, checkVisibility, checkDependencies } = {}) {
|
|
92
|
+
export async function runDoctor({ workspace, sourceRoot, apply = false, checkVisibility, checkDependencies, env = process.env } = {}) {
|
|
89
93
|
const findings = [];
|
|
90
94
|
|
|
91
95
|
// 1. Broken symlinks in install-target directories.
|
|
@@ -173,6 +177,10 @@ export async function runDoctor({ workspace, sourceRoot, apply = false, checkVis
|
|
|
173
177
|
// Node module resolution cannot borrow a sibling root's node_modules.
|
|
174
178
|
findings.push(...runtimeDependencyFindings({ workspace, run: checkDependencies }));
|
|
175
179
|
|
|
180
|
+
// 9. Optional System 1 readiness. This reads local declarations only; it does
|
|
181
|
+
// not load .env, create a provider, or contact the API.
|
|
182
|
+
findings.push(...scanSystem1Readiness({ workspace, env }));
|
|
183
|
+
|
|
176
184
|
if (!apply) return findings;
|
|
177
185
|
|
|
178
186
|
// ── Apply ──────────────────────────────────────────────────────────────
|
|
@@ -208,6 +216,60 @@ export async function runDoctor({ workspace, sourceRoot, apply = false, checkVis
|
|
|
208
216
|
return { repaired, deleted, skipped, findings };
|
|
209
217
|
}
|
|
210
218
|
|
|
219
|
+
export function scanSystem1Readiness({ workspace, env = process.env }) {
|
|
220
|
+
const desiredPath = join(workspace, ".ai", "agent-fleet.json");
|
|
221
|
+
let selected = false;
|
|
222
|
+
if (existsSync(desiredPath)) {
|
|
223
|
+
try {
|
|
224
|
+
const desired = JSON.parse(readFileSync(desiredPath, "utf8"));
|
|
225
|
+
selected = desired?.features?.system1 === true;
|
|
226
|
+
} catch {
|
|
227
|
+
// A malformed desired-state file is handled by the installer lifecycle;
|
|
228
|
+
// without a trustworthy explicit selection System 1 remains inactive.
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (!selected) return [];
|
|
232
|
+
|
|
233
|
+
const configPath = join(workspace, ".ai", "system1.json");
|
|
234
|
+
let config;
|
|
235
|
+
if (existsSync(configPath)) {
|
|
236
|
+
try { config = JSON.parse(readFileSync(configPath, "utf8")); }
|
|
237
|
+
catch { config = null; }
|
|
238
|
+
}
|
|
239
|
+
const readiness = resolveSystem1Readiness({ selected, config, env });
|
|
240
|
+
const envPath = join(workspace, ".env");
|
|
241
|
+
let envDeclared = false;
|
|
242
|
+
if (existsSync(envPath)) {
|
|
243
|
+
try {
|
|
244
|
+
envDeclared = /^(?:\s*export\s+)?\s*TYPESAFE_API_KEY\s*=/m.test(readFileSync(envPath, "utf8"));
|
|
245
|
+
} catch { /* Unreadable declarations remain absent. */ }
|
|
246
|
+
}
|
|
247
|
+
const environmentPresent = typeof env.TYPESAFE_API_KEY === "string" && env.TYPESAFE_API_KEY.trim().length > 0;
|
|
248
|
+
const readinessName = readiness.status === "ready" ? "ready" : readiness.reason;
|
|
249
|
+
const detail = {
|
|
250
|
+
disabled: "configuration mode is off; other fields were not validated",
|
|
251
|
+
missing_config: ".ai/system1.json is absent",
|
|
252
|
+
missing_key: envDeclared
|
|
253
|
+
? "TYPESAFE_API_KEY is declared in .env but is not present in the current process environment; .env was not loaded"
|
|
254
|
+
: "TYPESAFE_API_KEY is not present in the current process environment",
|
|
255
|
+
invalid_config: ".ai/system1.json is invalid",
|
|
256
|
+
ready: "configuration and current environment are locally ready",
|
|
257
|
+
}[readinessName];
|
|
258
|
+
return [{
|
|
259
|
+
type: "system1",
|
|
260
|
+
path: ".ai/system1.json",
|
|
261
|
+
issue: `System 1: ${detail}; API validity is unverified`,
|
|
262
|
+
fix: readinessName === "ready" || readinessName === "disabled"
|
|
263
|
+
? "no automatic action"
|
|
264
|
+
: "review the operator-owned System 1 configuration and process environment",
|
|
265
|
+
classification: "advisory",
|
|
266
|
+
readiness: readinessName,
|
|
267
|
+
envDeclared,
|
|
268
|
+
environmentPresent,
|
|
269
|
+
apiValidity: "unverified",
|
|
270
|
+
}];
|
|
271
|
+
}
|
|
272
|
+
|
|
211
273
|
function escapeRe(s) {
|
|
212
274
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
213
275
|
}
|
package/bin/lib/overrides.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Preserve user-authored override sections while deterministically refreshing generated facts.
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
4
5
|
import { OVERRIDES_REL_PATH } from "./validate-overrides.js";
|
|
5
6
|
|
|
6
7
|
export function generatedOverrideSection(scan) {
|
|
@@ -11,7 +12,33 @@ export function generatedOverrideSection(scan) {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
/** Replace only generated agent-hub keys, retaining all unknown/hand-written text. */
|
|
14
|
-
export function mergeOverrides(existing, scan) {
|
|
15
|
+
export function mergeOverrides(existing, scan, { configure = false } = {}) {
|
|
16
|
+
if (configure) {
|
|
17
|
+
const source = existing ?? "";
|
|
18
|
+
const eol = source.includes("\r\n") ? "\r\n" : "\n";
|
|
19
|
+
const sections = [...source.matchAll(/^##\s+(agent-hub|agent-team)\s*$/gm)];
|
|
20
|
+
if (sections.length > 1) throw new Error("conflicting agent-hub/agent-team sections; resolve manually");
|
|
21
|
+
const start = sections[0]?.index;
|
|
22
|
+
const end = start === undefined ? source.length : source.slice(start + sections[0][0].length).search(/^##\s+/m);
|
|
23
|
+
const stop = start === undefined ? source.length : end < 0 ? source.length : start + sections[0][0].length + end;
|
|
24
|
+
const section = start === undefined ? "" : source.slice(start, stop);
|
|
25
|
+
let updated = section;
|
|
26
|
+
for (const key of ["rules", "docs"]) {
|
|
27
|
+
if (!Object.hasOwn(scan, key)) continue;
|
|
28
|
+
const matches = [...updated.matchAll(new RegExp(`^${key}:\\s*(.*)$`, "gm"))];
|
|
29
|
+
if (matches.length > 1) throw new Error(`duplicate ${key} keys; resolve manually`);
|
|
30
|
+
const current = matches[0]?.[1].split(",").map((v) => v.trim()).filter(Boolean) ?? [];
|
|
31
|
+
const merged = [...new Set([...current, ...scan[key]])];
|
|
32
|
+
const line = `${key}: ${merged.join(", ")}`;
|
|
33
|
+
if (matches.length) {
|
|
34
|
+
if (merged.length !== current.length || current.join(", ") !== matches[0][1].trim())
|
|
35
|
+
updated = updated.slice(0, matches[0].index) + line + updated.slice(matches[0].index + matches[0][0].length);
|
|
36
|
+
} else if (merged.length) updated = updated.replace(/\s*$/, "") + eol + line + eol;
|
|
37
|
+
}
|
|
38
|
+
if (updated === section) return source;
|
|
39
|
+
if (start === undefined) return source + (source && !source.endsWith(eol) ? eol : "") + `## agent-hub${eol}` + updated.trimStart();
|
|
40
|
+
return source.slice(0, start) + updated + source.slice(stop);
|
|
41
|
+
}
|
|
15
42
|
const generated = generatedOverrideSection(scan);
|
|
16
43
|
if (!generated) return existing ?? "";
|
|
17
44
|
const source = existing ?? "";
|
|
@@ -27,6 +54,15 @@ export function mergeOverrides(existing, scan) {
|
|
|
27
54
|
return merged.join("").replace(/^\n+/, "").replace(/\n*$/, "\n");
|
|
28
55
|
}
|
|
29
56
|
|
|
57
|
+
export function planConfigureOverrides(workspace, requested, expectedHash = null) {
|
|
58
|
+
const path = join(workspace, OVERRIDES_REL_PATH);
|
|
59
|
+
const existing = existsSync(path) ? readFileSync(path, "utf8") : "";
|
|
60
|
+
const hash = createHash("sha256").update(existing).digest("hex");
|
|
61
|
+
if (expectedHash !== null && expectedHash !== hash) throw new Error("workspace changed since preview: overrides; re-run configure --dry-run");
|
|
62
|
+
const text = mergeOverrides(existing, requested, { configure: true });
|
|
63
|
+
return { path, text, write: text !== existing, hash };
|
|
64
|
+
}
|
|
65
|
+
|
|
30
66
|
export function planOverrides(workspace, scan) {
|
|
31
67
|
const path = join(workspace, OVERRIDES_REL_PATH);
|
|
32
68
|
const existing = existsSync(path) ? readFileSync(path, "utf8") : "";
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Provenance for accepted project AI content; never installer ownership.
|
|
2
|
+
import { existsSync, lstatSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
import { hashFile, hashText } from "./state.js";
|
|
5
|
+
import { runTransaction } from "./transaction.js";
|
|
6
|
+
import { assertSafeWorkspaceTarget } from "./workspace-safety.js";
|
|
7
|
+
|
|
8
|
+
export const AI_STATE_REL_PATH = ".ai/agent-fleet-ai-state.json";
|
|
9
|
+
export const AI_STATE_VERSION = 1;
|
|
10
|
+
export function templateSource(templateId, sourceVersion, templateBytes) {
|
|
11
|
+
return { origin: "template", templateId, sourceVersion, sourceHash: hashText(templateBytes) };
|
|
12
|
+
}
|
|
13
|
+
const ROOTS = ["rules", "commands", "agent-prompts"];
|
|
14
|
+
const HEX = /^[a-f0-9]{64}$/;
|
|
15
|
+
const own = (value) => Object.hasOwn(value, "origin") && ["template", "repo-derived"].includes(value.origin);
|
|
16
|
+
|
|
17
|
+
export function projectPath(workspace, path) {
|
|
18
|
+
if (typeof path !== "string" || path.includes("\\") || path.startsWith("/") || path.split("/").includes("..") ||
|
|
19
|
+
!ROOTS.some((root) => path.startsWith(`.ai/${root}/`) && path.length > root.length + 5)) throw new Error(`invalid project AI path: ${path}`);
|
|
20
|
+
return assertSafeWorkspaceTarget(workspace, path, { allowLeafSymlink: false });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// The source is the installed npm package, never a .pi/ copy or a download.
|
|
24
|
+
export function requirePackageCatalogue(packageRoot) {
|
|
25
|
+
for (const root of ROOTS) {
|
|
26
|
+
const path = join(packageRoot, "catalog", root); // catalog/rules, catalog/commands, catalog/agent-prompts
|
|
27
|
+
if (!existsSync(path) || !lstatSync(path).isDirectory()) throw new Error(`installed Fleet npm package is missing catalog/${root}; install a package with the catalogue before setup`);
|
|
28
|
+
}
|
|
29
|
+
return join(packageRoot, "catalog");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function validEntry(workspace, path, entry) {
|
|
33
|
+
projectPath(workspace, path);
|
|
34
|
+
if (!entry || !own(entry) || !HEX.test(entry.appliedHash) || !Array.isArray(entry.evidence) ||
|
|
35
|
+
!entry.evidence.every((x) => typeof x === "string" && x.length > 0) ||
|
|
36
|
+
typeof entry.acceptedDecision !== "string" || !entry.acceptedDecision.trim() ||
|
|
37
|
+
(entry.inputs !== undefined && (typeof entry.inputs !== "object" || entry.inputs === null || Array.isArray(entry.inputs)))) return false;
|
|
38
|
+
if (entry.origin === "template") return typeof entry.templateId === "string" && !!entry.templateId &&
|
|
39
|
+
typeof entry.sourceVersion === "string" && !!entry.sourceVersion && HEX.test(entry.sourceHash);
|
|
40
|
+
return !["templateId", "sourceVersion", "sourceHash"].some((key) => Object.hasOwn(entry, key));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Invalid/corrupt records never authorize overwrite. */
|
|
44
|
+
export function readProjectProvenance(workspace) {
|
|
45
|
+
const path = assertSafeWorkspaceTarget(workspace, AI_STATE_REL_PATH, { allowLeafSymlink: false });
|
|
46
|
+
if (!existsSync(path)) return { status: "missing", state: null };
|
|
47
|
+
try {
|
|
48
|
+
const state = JSON.parse(readFileSync(path, "utf8"));
|
|
49
|
+
if (state.schemaVersion !== AI_STATE_VERSION || !state.entries || typeof state.entries !== "object" || Array.isArray(state.entries) ||
|
|
50
|
+
!Object.entries(state.entries).every(([key, entry]) => validEntry(workspace, key, entry))) throw new Error("invalid provenance schema");
|
|
51
|
+
return { status: "valid", state };
|
|
52
|
+
} catch (error) { return { status: "corrupt", state: null, error: error.message }; }
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
|
56
|
+
/** source: template identity/version/hash, or {origin:'repo-derived'}; inputs are relevant generation inputs. */
|
|
57
|
+
export function classifyProjectFile({ workspace, path, source, evidence, acceptedDecision, inputs = {}, knownTemplate = true, snapshotAvailable = false }) {
|
|
58
|
+
const target = projectPath(workspace, path);
|
|
59
|
+
const record = readProjectProvenance(workspace);
|
|
60
|
+
if (record.status !== "valid") return { status: "unknown", reason: record.status };
|
|
61
|
+
const previous = record.state.entries[path];
|
|
62
|
+
if (!previous) return { status: "unknown", reason: "unrecorded" };
|
|
63
|
+
if (!existsSync(target) || !lstatSync(target).isFile()) return { status: "deleted" };
|
|
64
|
+
if (previous.origin === "template" && !knownTemplate) return { status: "unknown", reason: "unknown-template" };
|
|
65
|
+
const local = hashFile(target) !== previous.appliedHash;
|
|
66
|
+
const changed = !source || previous.origin !== source.origin ||
|
|
67
|
+
(source.origin === "template" && ["templateId", "sourceVersion", "sourceHash"].some((key) => source[key] !== previous[key])) ||
|
|
68
|
+
!same(previous.evidence, evidence) || previous.acceptedDecision !== acceptedDecision || !same(previous.inputs ?? {}, inputs);
|
|
69
|
+
return { status: local ? (changed ? "conflict" : "local-edit") : (changed ? "source-update" : "unchanged"),
|
|
70
|
+
snapshotAvailable: !!snapshotAvailable, appliedHash: previous.appliedHash };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Only an already reviewed, accepted change may be written. Generator is not invoked for an unchanged rerun. */
|
|
74
|
+
export function applyAcceptedProjectFiles({ workspace, changes, generateContent, failAt = null }) {
|
|
75
|
+
if (!Array.isArray(changes) || !changes.length) return { changed: false };
|
|
76
|
+
const record = readProjectProvenance(workspace);
|
|
77
|
+
if (record.status === "corrupt") throw new Error("provenance is corrupt; repair before apply");
|
|
78
|
+
const state = record.state ?? { schemaVersion: AI_STATE_VERSION, entries: {} };
|
|
79
|
+
const seen = new Set();
|
|
80
|
+
const prepared = [];
|
|
81
|
+
const sidecar = assertSafeWorkspaceTarget(workspace, AI_STATE_REL_PATH, { allowLeafSymlink: false });
|
|
82
|
+
const sidecarHash = hashFile(sidecar);
|
|
83
|
+
for (const change of changes) {
|
|
84
|
+
const { path, source, evidence, acceptedDecision, inputs = {}, accepted = false, requestChange = false } = change;
|
|
85
|
+
projectPath(workspace, path);
|
|
86
|
+
if (seen.has(path)) throw new Error(`duplicate project AI path: ${path}`);
|
|
87
|
+
seen.add(path);
|
|
88
|
+
const entry = { origin: source?.origin, ...(source?.origin === "template" ? {
|
|
89
|
+
templateId: source.templateId, sourceVersion: source.sourceVersion, sourceHash: source.sourceHash,
|
|
90
|
+
} : {}), evidence, acceptedDecision, inputs, appliedHash: "0".repeat(64) };
|
|
91
|
+
if (!validEntry(workspace, path, entry)) throw new Error(`invalid provenance entry: ${path}`);
|
|
92
|
+
const classification = classifyProjectFile({ workspace, path, source, evidence, acceptedDecision, inputs, knownTemplate: change.knownTemplate });
|
|
93
|
+
if (classification.status === "unchanged" && !requestChange) continue;
|
|
94
|
+
if (!accepted) throw new Error(`${path}: ${classification.status}; explicit acceptance required`);
|
|
95
|
+
if (!["unchanged", "source-update"].includes(classification.status) && !change.adopt && !change.reconciled)
|
|
96
|
+
throw new Error(`${path}: ${classification.status}; adoption or reconciliation required`);
|
|
97
|
+
if (classification.status === "unknown" && classification.reason === "corrupt") throw new Error("corrupt provenance");
|
|
98
|
+
const bytes = change.content === undefined ? generateContent?.(change) : change.content;
|
|
99
|
+
if (typeof bytes !== "string" && !Buffer.isBuffer(bytes)) throw new Error(`missing accepted content: ${path}`);
|
|
100
|
+
entry.appliedHash = hashText(bytes);
|
|
101
|
+
prepared.push({ path, bytes, entry, priorHash: hashFile(projectPath(workspace, path)) });
|
|
102
|
+
}
|
|
103
|
+
if (!prepared.length) return { changed: false };
|
|
104
|
+
const plan = { workspace, verb: "configure", actions: [{ files: prepared.map(({ path }) => ({ path })).concat({ path: AI_STATE_REL_PATH }) }] };
|
|
105
|
+
return runTransaction({ workspace, plan, manifest: { items: [] }, failAt, validate: () => {
|
|
106
|
+
if (hashFile(sidecar) !== sidecarHash || prepared.some(({ path, priorHash }) => hashFile(projectPath(workspace, path)) !== priorHash))
|
|
107
|
+
throw new Error("project AI files changed since review; re-run setup");
|
|
108
|
+
}, commit: () => {
|
|
109
|
+
const entries = { ...state.entries };
|
|
110
|
+
for (const { path, bytes, entry } of prepared) {
|
|
111
|
+
const target = projectPath(workspace, path);
|
|
112
|
+
mkdirSync(dirname(target), { recursive: true }); writeFileSync(target, bytes);
|
|
113
|
+
if (hashFile(target) !== entry.appliedHash) throw new Error(`readback mismatch: ${path}`);
|
|
114
|
+
entries[path] = entry;
|
|
115
|
+
}
|
|
116
|
+
mkdirSync(dirname(sidecar), { recursive: true }); writeFileSync(sidecar, JSON.stringify({ schemaVersion: AI_STATE_VERSION, entries: Object.fromEntries(Object.entries(entries).sort(([a], [b]) => a.localeCompare(b))) }, null, 2) + "\n");
|
|
117
|
+
return { changed: true };
|
|
118
|
+
} });
|
|
119
|
+
}
|
package/bin/lib/scan.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { existsSync, statSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
|
|
5
|
-
const RULE_DIRS = [".cursor/rules", ".github/rules", "rules", ".agent/rules"];
|
|
5
|
+
const RULE_DIRS = [".ai/rules", ".cursor/rules", ".github/rules", "rules", ".agent/rules"];
|
|
6
6
|
const DOC_PATHS = ["docs", "DOCS.md", "README.md"];
|
|
7
7
|
|
|
8
8
|
function existingDirectories(workspace, candidates) {
|
package/bin/lib/transaction.js
CHANGED
|
@@ -18,7 +18,7 @@ function sourceLeaves(path) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export function touchedPaths(plan, manifest) {
|
|
21
|
-
const paths = new Set([STATE_REL_PATH, LEGACY_RECORD_REL_PATH]);
|
|
21
|
+
const paths = new Set(plan?.verb === "configure" ? [] : [STATE_REL_PATH, LEGACY_RECORD_REL_PATH]);
|
|
22
22
|
const catalogue = new Map((manifest?.items ?? []).map((item) => [item.id, item]));
|
|
23
23
|
for (const action of plan?.actions ?? []) {
|
|
24
24
|
for (const file of action.files ?? []) if (file.path) paths.add(file.path);
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { existsSync, readFileSync } from "node:fs";
|
|
15
15
|
import { join } from "node:path";
|
|
16
16
|
import { parse as parseYaml } from "yaml";
|
|
17
|
+
import { readProjectProvenance, AI_STATE_REL_PATH } from "./project-provenance.js";
|
|
17
18
|
|
|
18
19
|
export const OVERRIDES_REL_PATH = ".ai/agent-fleet-overrides.md";
|
|
19
20
|
|
|
@@ -47,7 +48,7 @@ const KNOWN_SECTIONS = {
|
|
|
47
48
|
keys: {
|
|
48
49
|
"language": null,
|
|
49
50
|
"persona-gate": (value) => `ignored — dispatcher persona selection was removed; use /af-work-mode for operator|orchestrator work mode. Remove this key (was "${value}")`,
|
|
50
|
-
"rules":
|
|
51
|
+
"rules": checkRuleRoots(),
|
|
51
52
|
"docs": checkPaths("docs entry point"),
|
|
52
53
|
"recon-search-timeout-s": oneOfIntegerOrOff(1, 3600),
|
|
53
54
|
"mode": (value) => `ignored — execution modes were removed; budgets follow task tier. Remove this key (was "${value}")`,
|
|
@@ -113,6 +114,26 @@ function checkFolders(label) {
|
|
|
113
114
|
};
|
|
114
115
|
}
|
|
115
116
|
|
|
117
|
+
// Rules roots add one structural check: an existing root without an index
|
|
118
|
+
// still loads (recursive discovery is the fallback), but planning cannot
|
|
119
|
+
// select by bundle — worth one advisory line, never auto-created.
|
|
120
|
+
function checkRuleRoots() {
|
|
121
|
+
const missing = checkFolders("rules");
|
|
122
|
+
return (value, ctx) => {
|
|
123
|
+
const problems = [];
|
|
124
|
+
const absent = missing(value, ctx);
|
|
125
|
+
if (absent) problems.push(absent);
|
|
126
|
+
for (const dir of value.split(",").map((s) => s.trim()).filter(Boolean)) {
|
|
127
|
+
const abs = join(ctx.workspace, dir);
|
|
128
|
+
if (!existsSync(abs)) continue;
|
|
129
|
+
if (!existsSync(join(abs, "README.md")) && !existsSync(join(abs, "index.md"))) {
|
|
130
|
+
problems.push(`rules root "${dir}" has no index (README.md/index.md); discovery falls back to recursive scan`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return problems.length ? problems.join("; ") : null;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
116
137
|
function checkPollPanel() {
|
|
117
138
|
return (value, ctx) => {
|
|
118
139
|
const name = value.trim();
|
|
@@ -191,8 +212,8 @@ export function validateOverrides({ workspace, env = process.env }) {
|
|
|
191
212
|
|
|
192
213
|
const ctx = { workspace, env, dotEnvNames: readDotEnvNames(workspace) };
|
|
193
214
|
const findings = [];
|
|
194
|
-
const finding = (issue, fix) =>
|
|
195
|
-
findings.push({ type
|
|
215
|
+
const finding = (issue, fix, path = OVERRIDES_REL_PATH, type = "overrides") =>
|
|
216
|
+
findings.push({ type, path, issue, fix });
|
|
196
217
|
|
|
197
218
|
let section = null; // canonical section name, or null outside/unknown
|
|
198
219
|
let sectionHeading = null; // heading as written, for messages
|
|
@@ -264,5 +285,18 @@ export function validateOverrides({ workspace, env = process.env }) {
|
|
|
264
285
|
);
|
|
265
286
|
}
|
|
266
287
|
|
|
288
|
+
// Project AI provenance is advisory here: a corrupt sidecar blocks every
|
|
289
|
+
// setup apply, so it gets a file/reason finding — never an auto-fix.
|
|
290
|
+
// Absence is normal (no setup run yet) and stays silent.
|
|
291
|
+
const provenance = readProjectProvenance(workspace);
|
|
292
|
+
if (provenance.status === "corrupt") {
|
|
293
|
+
finding(
|
|
294
|
+
`project provenance is corrupt (${provenance.error}); setup cannot classify or apply until it is repaired`,
|
|
295
|
+
"repair or re-adopt via /af-setup-rules; the sidecar is preserved, never auto-fixed",
|
|
296
|
+
AI_STATE_REL_PATH,
|
|
297
|
+
"provenance",
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
267
301
|
return findings;
|
|
268
302
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Reusable project-task prompt index
|
|
2
|
+
|
|
3
|
+
Prompts supplement existing Fleet skills and target policy, and are used by reference from target rules or commands. They are not automatically personas or independent slash entries. Adapt only prompts relevant to the requested task.
|
|
4
|
+
|
|
5
|
+
| When | Template | Target use |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| A repository-specific requirements document is requested | [requirements-author.md](requirements-author.md) | Bind to an existing local document policy/template or discuss the missing governance before writing. |
|
|
8
|
+
| An architectural decision needs recording | [architecture-decision-author.md](architecture-decision-author.md) | Assess significance first; bind to the actual diff, local template, and governance. |
|
|
9
|
+
|
|
10
|
+
## Admission gate
|
|
11
|
+
|
|
12
|
+
A prompt ships only with a useful portable contract: bounded scope, rules references, and output/done-when — without duplicating a Fleet skill and without persona-router, fixed-timeout, or model-default behavior. Decided exclusions (generate target-local on explicit request instead): standalone PRD creator (covered by `requirements-author.md`), meta-agent and orchestrator prompts (covered by Fleet agent-design and orchestration skills; project prompts never route or spawn), operations decision/runbook/playbook prompts (bound to the target docs policy; select the types in `docs-maintenance.md` first).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
fleet-template: architecture-decision-author
|
|
3
|
+
fleet-source-version: 1
|
|
4
|
+
---
|
|
5
|
+
# Agent prompt: Architecture decision author
|
|
6
|
+
|
|
7
|
+
Use by reference when an architectural decision needs recording. This is a task supplement, not a Fleet persona, router, or license to spawn agents. Follow the existing specification skill when applicable.
|
|
8
|
+
|
|
9
|
+
Disposition: include — bounded significance assessment with actual diff/base/date and local template binding; fixed branch, date, and model defaults excluded.
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
Read the target policy index, the affected boundary rule, the actual diff or proposed change with its base, and the local ADR template and location. Distinguish architecturally significant choices from routine implementation detail.
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
1. Assess significance first: reversibility cost, cross-boundary impact, and constraint on future work. If the change is not architecturally significant, say so and stop — do not produce a ceremonial ADR.
|
|
16
|
+
2. Establish facts from the repository: the actual change or diff, the base it applies to, current date and branch from the environment, and the available tools of the selected runtime. Never hard-code a branch, date, model, or tool preset.
|
|
17
|
+
3. Bind to the local ADR template, status vocabulary, and cross-references. Record the decision, the considered options with their trade-offs, and the consequences. Mark unknowns as open questions, not as decided facts.
|
|
18
|
+
4. Review the draft against the target's actual documentation governance; do not invent a document type, location, or approval workflow.
|
|
19
|
+
|
|
20
|
+
## Boundaries
|
|
21
|
+
Adapt decision scope, terminology, and technical order to the target. Do not bring over a reference project's taxonomy, platform layers, or output path. This prompt composes instructions within the authorized task; it never authorizes operational actions and never invokes other personas or agents.
|
|
22
|
+
|
|
23
|
+
## Output and done when
|
|
24
|
+
Provide the ADR at the accepted location if authorized, with context, decision, options considered, and consequences — all backed by repository evidence. If significance or governance is undecided, return a proposal instead of an invented canonical record.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
fleet-template: requirements-author
|
|
3
|
+
fleet-source-version: 1
|
|
4
|
+
---
|
|
5
|
+
# Agent prompt: Project requirements author
|
|
6
|
+
|
|
7
|
+
Use by reference when a project-specific requirements document is requested, including from an adapted impact-analysis command. This is a task supplement, not a Fleet persona or a license to create a new document type. Follow the existing specification skill when applicable.
|
|
8
|
+
|
|
9
|
+
## Context
|
|
10
|
+
Read the target policy index, the relevant boundary rule, the actual documentation governance and any local requirements template. Inspect related documents and representative implementation paths; distinguish current facts from requested behavior.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
1. Determine whether the repository has an accepted requirements document type and location. Bind to its real template, status vocabulary and cross-references. If none exists, offer a bounded proposal and ask for a decision before creating normative governance or a document.
|
|
14
|
+
2. Map the request and verified consumer impact to scoped, testable requirements; retain the user's original intent and explicit decisions. Cite repository evidence for factual claims and mark unknowns as questions.
|
|
15
|
+
3. Review acceptance checks against the target's actual tools and the relevant existing documents; do not invent a build command, API or template path.
|
|
16
|
+
|
|
17
|
+
## Boundaries
|
|
18
|
+
Adapt document types, terminology and technical order to the target. Do not bring over a reference project's PRD taxonomy, platform layers, branch defaults or output path. References to target rules and commands must point to actual adapted `.ai/` files.
|
|
19
|
+
|
|
20
|
+
## Output and done when
|
|
21
|
+
Provide the document at the accepted location if authorized, with scope, evidence, independently checkable acceptance criteria and unresolved decisions. If governance is undecided, return a proposal instead of an invented canonical document.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Reusable command index
|
|
2
|
+
|
|
3
|
+
Select only commands useful to the target task. Adapt them into `.ai/commands/`; selected target commands may later have thin target-local slash adapters. Catalogue Markdown is not itself a slash command. Read this index before opening the task-relevant entry.
|
|
4
|
+
|
|
5
|
+
| When | Template | Inputs |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| Assess affected consumers before planning or verification | [assess-change-impact.md](assess-change-impact.md) | Requested change or optional diff/ref, target policy index. |
|
|
8
|
+
|
|
9
|
+
| Audit documentation links, ownership, and contradictions | [audit-documentation.md](audit-documentation.md) | Selected documentation scope; optional accepted decision or change. Read-only findings. |
|
|
10
|
+
|
|
11
|
+
## Admission gate
|
|
12
|
+
|
|
13
|
+
A command ships only with required inputs, target/capability discovery, and a single done-when — without universal estimates, deployment steps, or provider procedures. Decided exclusions (generate target-local on explicit request instead): translation entry creation (excluded by catalogue scope decision), translation-update inventory (merge its change-inventory behavior into the task instead of a standalone entry), story-point estimation (team calibration is target-specific), version bumping (bind to the target release workflow when requested), worktree/conflict helpers beyond a thin entry to the existing Git skill, worktree operations, project database operations, and provider sprint procedures.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
fleet-template: assess-change-impact
|
|
3
|
+
fleet-source-version: 1
|
|
4
|
+
---
|
|
5
|
+
# Command: Assess change impact
|
|
6
|
+
|
|
7
|
+
Use when a change needs an evidence-backed list of affected areas and verification priorities. Inputs: requested change or pending diff; optional ref/range if supported by the target VCS. An invocation does not authorize writes or external actions.
|
|
8
|
+
|
|
9
|
+
## Process
|
|
10
|
+
1. Read the target `.ai/rules/README.md`, applicable boundary rule, and relevant existing documentation. For a future change with no diff, identify the proposed interfaces and likely owners; do not fabricate changed files.
|
|
11
|
+
2. Establish the affected files from the requested scope or actual diff. Trace inbound consumers via the target's real imports, callers, event subscriptions, interfaces or deployed entry points. Follow concrete links, not filenames alone.
|
|
12
|
+
3. Classify each impact as direct, indirect or unmapped; note evidence and limits. Map to user-facing or operational entry points **only where they exist**. Do not presume an SPA, router, HTTP controller, language prefix or a specific client.
|
|
13
|
+
4. Identify the target's actual checks and a short prioritized verification list. If asked to turn the analysis into a project requirements document, use the **adapted project-task prompt** in the target `.ai/agent-prompts/` index by reference, not by copying it into this command.
|
|
14
|
+
|
|
15
|
+
## Decision points
|
|
16
|
+
Ask with a recommendation when competing ownership or verification choices cannot be resolved from accepted target policy. An observed pattern alone does not authorize a new normative boundary.
|
|
17
|
+
|
|
18
|
+
## Output and done when
|
|
19
|
+
Report scope, file/consumer-to-entry-point traces with evidence, direct/indirect/unmapped confidence, and prioritized checks. Explicitly list unknown consumers. No route or endpoint is reported as confirmed without a real reference.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
fleet-template: audit-documentation
|
|
3
|
+
fleet-source-version: 1
|
|
4
|
+
---
|
|
5
|
+
# Command: Audit documentation consistency
|
|
6
|
+
|
|
7
|
+
Use when reviewing a selected documentation scope for consistency. Inputs: requested files or documentation area; optional accepted decision or change to check against. This command is read-only and authorizes no external actions.
|
|
8
|
+
|
|
9
|
+
Disposition: extract evidence-backed auditing; exclude mandatory document taxonomy, paths, and automatic consolidation.
|
|
10
|
+
|
|
11
|
+
## Process
|
|
12
|
+
1. Discover the target documentation index, canonical sources, applicable policy, and requested scope. Ask if scope cannot be resolved; do not silently audit the whole repository.
|
|
13
|
+
2. Check local links and anchors with existing tooling where available. Distinguish broken references from unavailable external targets; do not fetch external links without appropriate authorization.
|
|
14
|
+
3. Find orphaned pages relative to the target's indexing policy, duplicated guidance, and contradictory current instructions. Historical decisions, generated copies, and examples are not automatically conflicting current policy.
|
|
15
|
+
4. Compare claims with relevant implementation, tests, and accepted decisions where accessible. Cite both sides of each conflict and separate confirmed findings from suspected ones.
|
|
16
|
+
5. Suggest canonical owners and focused corrections using target evidence. Where ownership is unresolved, present a question rather than choosing silently. Do not edit, delete, or consolidate files.
|
|
17
|
+
|
|
18
|
+
## Output and done when
|
|
19
|
+
Report inspected scope, findings with file/section evidence, suggested canonical owners, and proposed corrections. List inaccessible sources and unchecked areas explicitly. Completion means the requested audit is reported, not that every document is correct or that fixes have been applied.
|