@chankov/agent-fleet 2.0.12 → 2.0.14

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.
Files changed (1129) hide show
  1. package/.pi/agent-fleet/scripts/flow.ts +5 -3
  2. package/.pi/agent-fleet/scripts/lib/flow-command.ts +9 -4
  3. package/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +3 -1
  4. package/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
  5. package/.pi/agents/model-profiles.yaml +80 -29
  6. package/.pi/agents/peers.yaml +18 -18
  7. package/.pi/agents/voices.yaml +2 -2
  8. package/.pi/harnesses/agent-hub/README.md +64 -4
  9. package/.pi/harnesses/agent-hub/commands/audit.ts +1 -1
  10. package/.pi/harnesses/agent-hub/commands/context.ts +1 -1
  11. package/.pi/harnesses/agent-hub/config/model-profiles.ts +1 -0
  12. package/.pi/harnesses/agent-hub/delegate.ts +5 -3
  13. package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +27 -2
  14. package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +29 -0
  15. package/.pi/harnesses/agent-hub/dispatch-native-types.ts +6 -0
  16. package/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +38 -0
  17. package/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +75 -0
  18. package/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  19. package/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +53 -0
  20. package/.pi/harnesses/agent-hub/dispatch-triage-state.ts +15 -0
  21. package/.pi/harnesses/agent-hub/index.ts +115 -46
  22. package/.pi/harnesses/agent-hub/package.json +1 -1
  23. package/.pi/harnesses/agent-hub/policy/profile-activation.ts +2 -2
  24. package/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
  25. package/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  26. package/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  27. package/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  28. package/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
  29. package/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
  30. package/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
  31. package/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
  32. package/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  33. package/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  34. package/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
  35. package/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
  36. package/.pi/harnesses/agent-hub/prompts/context.ts +3 -0
  37. package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +11 -1
  38. package/.pi/harnesses/agent-hub/research/runtime.ts +3 -1
  39. package/.pi/harnesses/agent-hub/research/spawn-run.ts +4 -1
  40. package/.pi/harnesses/agent-hub/return-extract.js +1 -1
  41. package/.pi/harnesses/agent-hub/session-audit.ts +6 -5
  42. package/.pi/harnesses/agent-hub/system1-activity.ts +67 -0
  43. package/.pi/harnesses/agent-hub/system1-communication-store.ts +95 -0
  44. package/.pi/harnesses/agent-hub/system1-report.ts +142 -1
  45. package/.pi/harnesses/agent-hub/system1-runtime.ts +7 -1
  46. package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
  47. package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +9 -3
  48. package/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  49. package/.pi/harnesses/agent-hub/tools/run-flow.ts +16 -2
  50. package/.pi/harnesses/agent-hub/ui/detail-panel.ts +26 -5
  51. package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +58 -5
  52. package/.pi/harnesses/agent-hub/ui/fleet-source.ts +7 -2
  53. package/.pi/harnesses/agent-hub/ui/grid.ts +12 -7
  54. package/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  55. package/.pi/harnesses/agent-hub/work-mode.ts +2 -1
  56. package/.pi/harnesses/coms/package.json +1 -1
  57. package/.pi/harnesses/damage-control-continue/package.json +1 -1
  58. package/.pi/harnesses/lib/context-budget-child-prompt.ts +41 -2
  59. package/.pi/harnesses/lib/context-budget-hub-prompt.ts +4 -2
  60. package/.pi/harnesses/lib/fleet-dashboard-view.ts +15 -4
  61. package/.pi/harnesses/lib/fleet-detail-view.ts +68 -7
  62. package/.pi/harnesses/lib/fleet-read-model.ts +131 -0
  63. package/.pi/harnesses/lib/fleet-strip-controller.ts +2 -1
  64. package/.pi/harnesses/lib/fleet-strip-view.ts +45 -10
  65. package/.pi/prompts/af-setup-rules.md +20 -0
  66. package/.versions/2.0.13/.pi/agent-fleet/hermes/README.md +347 -0
  67. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  68. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  69. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  70. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  71. package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  72. package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  73. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  74. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  75. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  76. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  77. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  78. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  79. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  80. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  81. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  82. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  83. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  84. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  85. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  86. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  87. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  88. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  89. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  90. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  91. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  92. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  93. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  94. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  95. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  96. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  97. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  98. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  99. package/.versions/2.0.13/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  100. package/.versions/2.0.13/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
  101. package/.versions/2.0.13/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  102. package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
  103. package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
  104. package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
  105. package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
  106. package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
  107. package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet.ts +216 -0
  108. package/.versions/2.0.13/.pi/agent-fleet/scripts/flow.ts +157 -0
  109. package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  110. package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  111. package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  112. package/.versions/2.0.13/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  113. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
  114. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  115. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  116. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
  117. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
  118. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
  119. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
  120. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
  121. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
  122. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
  123. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  124. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  125. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  126. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  127. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  128. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  129. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  130. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  131. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  132. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  133. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  134. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  135. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  136. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  137. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
  138. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
  139. package/.versions/2.0.13/.pi/agent-fleet/scripts/package-lock.json +35 -0
  140. package/.versions/2.0.13/.pi/agent-fleet/scripts/package.json +9 -0
  141. package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  142. package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
  143. package/.versions/2.0.13/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
  144. package/.versions/2.0.13/.pi/agent-fleet/scripts/team-up.ts +378 -0
  145. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
  146. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  147. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  148. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
  149. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  150. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  151. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
  152. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
  153. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  154. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  155. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  156. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
  157. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  158. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  159. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
  160. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
  161. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
  162. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  163. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
  164. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  165. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
  166. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  167. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  168. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  169. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  170. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  171. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  172. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  173. package/.versions/2.0.13/.pi/agents/dispatch-policy.yaml +32 -0
  174. package/.versions/2.0.13/.pi/agents/model-profiles.yaml +134 -0
  175. package/.versions/2.0.13/.pi/agents/peers.yaml +147 -0
  176. package/.versions/2.0.13/.pi/agents/teams.yaml +41 -0
  177. package/.versions/2.0.13/.pi/agents/voices.yaml +13 -0
  178. package/.versions/2.0.13/.pi/damage-control-rules.yaml +297 -0
  179. package/.versions/2.0.13/.pi/extensions/btw/README.md +120 -0
  180. package/.versions/2.0.13/.pi/extensions/btw/index.ts +914 -0
  181. package/.versions/2.0.13/.pi/extensions/btw/package.json +6 -0
  182. package/.versions/2.0.13/.pi/extensions/btw/state.js +179 -0
  183. package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  184. package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  185. package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  186. package/.versions/2.0.13/.pi/extensions/compact-and-continue/README.md +42 -0
  187. package/.versions/2.0.13/.pi/extensions/compact-and-continue/index.ts +120 -0
  188. package/.versions/2.0.13/.pi/extensions/compact-and-continue/package.json +6 -0
  189. package/.versions/2.0.13/.pi/extensions/mcp-bridge/README.md +46 -0
  190. package/.versions/2.0.13/.pi/extensions/mcp-bridge/index.ts +206 -0
  191. package/.versions/2.0.13/.pi/extensions/mcp-bridge/package.json +6 -0
  192. package/.versions/2.0.13/.pi/extensions/package-lock.json +1175 -0
  193. package/.versions/2.0.13/.pi/extensions/package.json +9 -0
  194. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/README.md +224 -0
  195. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/config.ts +198 -0
  196. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  197. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/index.ts +248 -0
  198. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/package.json +6 -0
  199. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  200. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  201. package/.versions/2.0.13/.pi/harnesses/agent-hub/README.md +1360 -0
  202. package/.versions/2.0.13/.pi/harnesses/agent-hub/acceptance.ts +199 -0
  203. package/.versions/2.0.13/.pi/harnesses/agent-hub/access-approval.ts +135 -0
  204. package/.versions/2.0.13/.pi/harnesses/agent-hub/artifacts.js +146 -0
  205. package/.versions/2.0.13/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
  206. package/.versions/2.0.13/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
  207. package/.versions/2.0.13/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  208. package/.versions/2.0.13/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  209. package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
  210. package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
  211. package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  212. package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
  213. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  214. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  215. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  216. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  217. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  218. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  219. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  220. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  221. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  222. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  223. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  224. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  225. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
  226. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  227. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  228. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  229. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context.ts +45 -0
  230. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  231. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  232. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  233. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  234. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  235. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  236. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
  237. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  238. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  239. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
  240. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  241. package/.versions/2.0.13/.pi/harnesses/agent-hub/config/agents.ts +178 -0
  242. package/.versions/2.0.13/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
  243. package/.versions/2.0.13/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
  244. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  245. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
  246. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
  247. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  248. package/.versions/2.0.13/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  249. package/.versions/2.0.13/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
  250. package/.versions/2.0.13/.pi/harnesses/agent-hub/context-window.js +108 -0
  251. package/.versions/2.0.13/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  252. package/.versions/2.0.13/.pi/harnesses/agent-hub/delegate.ts +467 -0
  253. package/.versions/2.0.13/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
  254. package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  255. package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  256. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
  257. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  258. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
  259. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +248 -0
  260. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
  261. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-types.ts +257 -0
  262. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
  263. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  264. package/.versions/2.0.13/.pi/harnesses/agent-hub/docs-lane.js +122 -0
  265. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  266. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  267. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  268. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  269. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
  270. package/.versions/2.0.13/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  271. package/.versions/2.0.13/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
  272. package/.versions/2.0.13/.pi/harnesses/agent-hub/external-blocker.js +85 -0
  273. package/.versions/2.0.13/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
  274. package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/registration-surface.json +61 -0
  275. package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  276. package/.versions/2.0.13/.pi/harnesses/agent-hub/footer.ts +30 -0
  277. package/.versions/2.0.13/.pi/harnesses/agent-hub/helpers.ts +270 -0
  278. package/.versions/2.0.13/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
  279. package/.versions/2.0.13/.pi/harnesses/agent-hub/index.ts +2336 -0
  280. package/.versions/2.0.13/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  281. package/.versions/2.0.13/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
  282. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
  283. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  284. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  285. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
  286. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  287. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  288. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  289. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  290. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  291. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  292. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  293. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  294. package/.versions/2.0.13/.pi/harnesses/agent-hub/no-progress.ts +359 -0
  295. package/.versions/2.0.13/.pi/harnesses/agent-hub/package.json +7 -0
  296. package/.versions/2.0.13/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  297. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  298. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  299. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  300. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
  301. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
  302. package/.versions/2.0.13/.pi/harnesses/agent-hub/poll-command.ts +176 -0
  303. package/.versions/2.0.13/.pi/harnesses/agent-hub/presentation.ts +48 -0
  304. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
  305. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  306. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  307. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  308. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
  309. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
  310. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
  311. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
  312. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  313. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  314. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
  315. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
  316. package/.versions/2.0.13/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
  317. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/context.ts +53 -0
  318. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
  319. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
  320. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/system-prompt.ts +115 -0
  321. package/.versions/2.0.13/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
  322. package/.versions/2.0.13/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  323. package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
  324. package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  325. package/.versions/2.0.13/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
  326. package/.versions/2.0.13/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  327. package/.versions/2.0.13/.pi/harnesses/agent-hub/research/runtime.ts +195 -0
  328. package/.versions/2.0.13/.pi/harnesses/agent-hub/research/spawn-run.ts +174 -0
  329. package/.versions/2.0.13/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  330. package/.versions/2.0.13/.pi/harnesses/agent-hub/return-contract.js +327 -0
  331. package/.versions/2.0.13/.pi/harnesses/agent-hub/return-extract.js +77 -0
  332. package/.versions/2.0.13/.pi/harnesses/agent-hub/review-findings.js +104 -0
  333. package/.versions/2.0.13/.pi/harnesses/agent-hub/run-budget.js +542 -0
  334. package/.versions/2.0.13/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  335. package/.versions/2.0.13/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
  336. package/.versions/2.0.13/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
  337. package/.versions/2.0.13/.pi/harnesses/agent-hub/scope-gate.js +123 -0
  338. package/.versions/2.0.13/.pi/harnesses/agent-hub/session-audit.ts +227 -0
  339. package/.versions/2.0.13/.pi/harnesses/agent-hub/session-health.js +110 -0
  340. package/.versions/2.0.13/.pi/harnesses/agent-hub/session-start.ts +42 -0
  341. package/.versions/2.0.13/.pi/harnesses/agent-hub/spawn.ts +526 -0
  342. package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
  343. package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-report.ts +225 -0
  344. package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-runtime.ts +276 -0
  345. package/.versions/2.0.13/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
  346. package/.versions/2.0.13/.pi/harnesses/agent-hub/timeline.ts +72 -0
  347. package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
  348. package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
  349. package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  350. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
  351. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  352. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/context.ts +142 -0
  353. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
  354. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
  355. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  356. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
  357. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
  358. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
  359. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  360. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
  361. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  362. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
  363. package/.versions/2.0.13/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  364. package/.versions/2.0.13/.pi/harnesses/agent-hub/types.ts +66 -0
  365. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  366. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
  367. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  368. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  369. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +124 -0
  370. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  371. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-source.ts +175 -0
  372. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  373. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  374. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  375. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  376. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  377. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  378. package/.versions/2.0.13/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  379. package/.versions/2.0.13/.pi/harnesses/agent-hub/version.ts +42 -0
  380. package/.versions/2.0.13/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  381. package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
  382. package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode.ts +173 -0
  383. package/.versions/2.0.13/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
  384. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/README.md +59 -0
  385. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/index.ts +558 -0
  386. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/questions.ts +161 -0
  387. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  388. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
  389. package/.versions/2.0.13/.pi/harnesses/coms/README.md +100 -0
  390. package/.versions/2.0.13/.pi/harnesses/coms/index.ts +282 -0
  391. package/.versions/2.0.13/.pi/harnesses/coms/package.json +7 -0
  392. package/.versions/2.0.13/.pi/harnesses/coms/version.ts +42 -0
  393. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/README.md +135 -0
  394. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/index.ts +550 -0
  395. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/package.json +7 -0
  396. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/version.ts +42 -0
  397. package/.versions/2.0.13/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  398. package/.versions/2.0.13/.pi/harnesses/lib/coms-core-io.ts +385 -0
  399. package/.versions/2.0.13/.pi/harnesses/lib/coms-core.ts +577 -0
  400. package/.versions/2.0.13/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
  401. package/.versions/2.0.13/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
  402. package/.versions/2.0.13/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
  403. package/.versions/2.0.13/.pi/harnesses/lib/context-budget-view.ts +107 -0
  404. package/.versions/2.0.13/.pi/harnesses/lib/context-budget.ts +114 -0
  405. package/.versions/2.0.13/.pi/harnesses/lib/damage-control-shared.ts +197 -0
  406. package/.versions/2.0.13/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
  407. package/.versions/2.0.13/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  408. package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  409. package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  410. package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  411. package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-view.ts +147 -0
  412. package/.versions/2.0.13/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  413. package/.versions/2.0.13/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  414. package/.versions/2.0.13/.pi/harnesses/lib/fleet-panel.ts +34 -0
  415. package/.versions/2.0.13/.pi/harnesses/lib/fleet-read-model.ts +536 -0
  416. package/.versions/2.0.13/.pi/harnesses/lib/fleet-selection.ts +24 -0
  417. package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-controller.ts +74 -0
  418. package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  419. package/.versions/2.0.13/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  420. package/.versions/2.0.13/.pi/harnesses/lib/herdr-client.ts +472 -0
  421. package/.versions/2.0.13/.pi/harnesses/lib/herdr-presence.ts +399 -0
  422. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  423. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  424. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  425. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  426. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  427. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  428. package/.versions/2.0.13/.pi/harnesses/lib/spawned-peers.js +191 -0
  429. package/.versions/2.0.13/.pi/harnesses/lib/system1/config.js +61 -0
  430. package/.versions/2.0.13/.pi/harnesses/lib/system1/contracts.ts +152 -0
  431. package/.versions/2.0.13/.pi/harnesses/lib/system1/demo.ts +106 -0
  432. package/.versions/2.0.13/.pi/harnesses/lib/system1/jev.ts +503 -0
  433. package/.versions/2.0.13/.pi/harnesses/lib/system1/service.ts +245 -0
  434. package/.versions/2.0.13/.pi/harnesses/lib/update-check.ts +222 -0
  435. package/.versions/2.0.13/.pi/harnesses/package-lock.json +2039 -0
  436. package/.versions/2.0.13/.pi/harnesses/package.json +10 -0
  437. package/.versions/2.0.13/.pi/prompts/af-build.md +24 -0
  438. package/.versions/2.0.13/.pi/prompts/af-code-simplify.md +22 -0
  439. package/.versions/2.0.13/.pi/prompts/af-constraints.md +31 -0
  440. package/.versions/2.0.13/.pi/prompts/af-plan.md +17 -0
  441. package/.versions/2.0.13/.pi/prompts/af-review.md +16 -0
  442. package/.versions/2.0.13/.pi/prompts/af-set-hermes-telegram.md +15 -0
  443. package/.versions/2.0.13/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  444. package/.versions/2.0.13/.pi/prompts/af-setup-rules.md +20 -0
  445. package/.versions/2.0.13/.pi/prompts/af-ship.md +17 -0
  446. package/.versions/2.0.13/.pi/prompts/af-spec.md +15 -0
  447. package/.versions/2.0.13/.pi/prompts/af-test.md +19 -0
  448. package/.versions/2.0.13/.pi/skills/bowser/SKILL.md +145 -0
  449. package/.versions/2.0.13/.version +1 -0
  450. package/.versions/2.0.13/agents/architect.md +24 -0
  451. package/.versions/2.0.13/agents/bowser.md +28 -0
  452. package/.versions/2.0.13/agents/builder.md +55 -0
  453. package/.versions/2.0.13/agents/code-reviewer.md +209 -0
  454. package/.versions/2.0.13/agents/deep-researcher.md +32 -0
  455. package/.versions/2.0.13/agents/documenter.md +22 -0
  456. package/.versions/2.0.13/agents/orchestrator.md +22 -0
  457. package/.versions/2.0.13/agents/plan-reviewer.md +83 -0
  458. package/.versions/2.0.13/agents/planner.md +105 -0
  459. package/.versions/2.0.13/agents/releaser.md +24 -0
  460. package/.versions/2.0.13/agents/researcher.md +30 -0
  461. package/.versions/2.0.13/agents/security-auditor.md +167 -0
  462. package/.versions/2.0.13/agents/test-engineer.md +153 -0
  463. package/.versions/2.0.13/agents/web-debugger.md +44 -0
  464. package/.versions/2.0.13/agents/web-performance-auditor.md +194 -0
  465. package/.versions/2.0.13/bin/catalog/harness-runtime-closure.json +73 -0
  466. package/.versions/2.0.13/codex/fleet-session-client/SKILL.md +34 -0
  467. package/.versions/2.0.13/codex/fleet-session-client.zip +0 -0
  468. package/.versions/2.0.13/docs/ARCHITECTURE.md +753 -0
  469. package/.versions/2.0.13/docs/agent-fleet-setup.md +900 -0
  470. package/.versions/2.0.13/docs/claude-code-coms-bridge.md +134 -0
  471. package/.versions/2.0.13/docs/codex-session-bridge.md +219 -0
  472. package/.versions/2.0.13/docs/coms-hermes-bridge.md +188 -0
  473. package/.versions/2.0.13/docs/getting-started.md +126 -0
  474. package/.versions/2.0.13/docs/npm-install.md +468 -0
  475. package/.versions/2.0.13/docs/pi-extensions.md +454 -0
  476. package/.versions/2.0.13/docs/pi-setup.md +92 -0
  477. package/.versions/2.0.13/docs/skill-anatomy.md +150 -0
  478. package/.versions/2.0.13/install-manifest.json +3175 -0
  479. package/.versions/2.0.13/justfile +247 -0
  480. package/.versions/2.0.13/manifest-meta.json +1057 -0
  481. package/.versions/2.0.13/references/accessibility-checklist.md +160 -0
  482. package/.versions/2.0.13/references/communication-contract.md +26 -0
  483. package/.versions/2.0.13/references/definition-of-done.md +67 -0
  484. package/.versions/2.0.13/references/fleet-coordination-patterns.md +171 -0
  485. package/.versions/2.0.13/references/observability-checklist.md +92 -0
  486. package/.versions/2.0.13/references/orchestration-patterns.md +370 -0
  487. package/.versions/2.0.13/references/performance-checklist.md +236 -0
  488. package/.versions/2.0.13/references/prompting-patterns.md +380 -0
  489. package/.versions/2.0.13/references/security-checklist.md +245 -0
  490. package/.versions/2.0.13/references/testing-patterns.md +235 -0
  491. package/.versions/2.0.13/references/workflow-authoring.md +304 -0
  492. package/.versions/2.0.13/skills/_internal/grilling.md +59 -0
  493. package/.versions/2.0.13/skills/browser-testing-with-devtools/SKILL.md +351 -0
  494. package/.versions/2.0.13/skills/code-review-and-quality/SKILL.md +396 -0
  495. package/.versions/2.0.13/skills/compound-learning/SKILL.md +137 -0
  496. package/.versions/2.0.13/skills/constraint-driven-development/SKILL.md +338 -0
  497. package/.versions/2.0.13/skills/constraint-driven-development/references/floor-guard.md +99 -0
  498. package/.versions/2.0.13/skills/context-engineering/SKILL.md +341 -0
  499. package/.versions/2.0.13/skills/deprecation-and-migration/SKILL.md +247 -0
  500. package/.versions/2.0.13/skills/designing-agents/SKILL.md +394 -0
  501. package/.versions/2.0.13/skills/designing-agents/pi-harness-authoring.md +222 -0
  502. package/.versions/2.0.13/skills/drafting-workflows/SKILL.md +143 -0
  503. package/.versions/2.0.13/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  504. package/.versions/2.0.13/skills/frontend-ui-engineering/SKILL.md +328 -0
  505. package/.versions/2.0.13/skills/git-workflow-and-versioning/SKILL.md +316 -0
  506. package/.versions/2.0.13/skills/idea-refine/SKILL.md +182 -0
  507. package/.versions/2.0.13/skills/idea-refine/examples.md +238 -0
  508. package/.versions/2.0.13/skills/idea-refine/frameworks.md +99 -0
  509. package/.versions/2.0.13/skills/idea-refine/refinement-criteria.md +113 -0
  510. package/.versions/2.0.13/skills/idea-refine/scripts/idea-refine.sh +15 -0
  511. package/.versions/2.0.13/skills/incremental-implementation/SKILL.md +302 -0
  512. package/.versions/2.0.13/skills/interview-me/SKILL.md +226 -0
  513. package/.versions/2.0.13/skills/orchestration-verification/SKILL.md +182 -0
  514. package/.versions/2.0.13/skills/peer-coms/SKILL.md +90 -0
  515. package/.versions/2.0.13/skills/performance-optimization/SKILL.md +496 -0
  516. package/.versions/2.0.13/skills/planning-and-task-breakdown/SKILL.md +289 -0
  517. package/.versions/2.0.13/skills/repository-ai-setup/SKILL.md +117 -0
  518. package/.versions/2.0.13/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  519. package/.versions/2.0.13/skills/repository-ai-setup/references/apply-contract.md +74 -0
  520. package/.versions/2.0.13/skills/repository-ai-setup/references/provenance-template.md +16 -0
  521. package/.versions/2.0.13/skills/repository-ai-setup/references/setup-flow.md +108 -0
  522. package/.versions/2.0.13/skills/repository-ai-setup/references/verify-setup.md +20 -0
  523. package/.versions/2.0.13/skills/security-and-hardening/SKILL.md +524 -0
  524. package/.versions/2.0.13/skills/spec-driven-development/SKILL.md +295 -0
  525. package/.versions/2.0.13/skills/using-agent-skills/SKILL.md +198 -0
  526. package/.versions/2.0.13/vendor/agent-skills-upstream/LICENSE +21 -0
  527. package/.versions/2.0.13/vendor/agent-skills-upstream/README.md +430 -0
  528. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  529. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  530. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  531. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  532. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  533. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  534. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  535. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  536. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  537. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  538. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  539. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  540. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  541. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  542. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  543. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  544. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  545. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  546. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  547. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  548. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  549. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  550. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  551. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  552. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  553. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  554. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  555. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  556. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  557. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  558. package/.versions/2.0.14/.pi/agent-fleet/hermes/README.md +347 -0
  559. package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  560. package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  561. package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  562. package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  563. package/.versions/2.0.14/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  564. package/.versions/2.0.14/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  565. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  566. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  567. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  568. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  569. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  570. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  571. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  572. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  573. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  574. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  575. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  576. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  577. package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  578. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  579. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  580. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  581. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  582. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  583. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  584. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  585. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  586. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  587. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  588. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  589. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  590. package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  591. package/.versions/2.0.14/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  592. package/.versions/2.0.14/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
  593. package/.versions/2.0.14/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  594. package/.versions/2.0.14/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
  595. package/.versions/2.0.14/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
  596. package/.versions/2.0.14/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
  597. package/.versions/2.0.14/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
  598. package/.versions/2.0.14/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
  599. package/.versions/2.0.14/.pi/agent-fleet/scripts/fleet.ts +216 -0
  600. package/.versions/2.0.14/.pi/agent-fleet/scripts/flow.ts +157 -0
  601. package/.versions/2.0.14/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  602. package/.versions/2.0.14/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  603. package/.versions/2.0.14/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  604. package/.versions/2.0.14/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  605. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
  606. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  607. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  608. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
  609. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
  610. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
  611. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
  612. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
  613. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
  614. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
  615. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  616. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  617. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  618. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  619. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  620. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  621. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  622. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  623. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  624. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  625. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  626. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  627. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  628. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  629. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
  630. package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
  631. package/.versions/2.0.14/.pi/agent-fleet/scripts/package-lock.json +35 -0
  632. package/.versions/2.0.14/.pi/agent-fleet/scripts/package.json +9 -0
  633. package/.versions/2.0.14/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  634. package/.versions/2.0.14/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
  635. package/.versions/2.0.14/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
  636. package/.versions/2.0.14/.pi/agent-fleet/scripts/team-up.ts +378 -0
  637. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
  638. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  639. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  640. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
  641. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  642. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  643. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
  644. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
  645. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  646. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  647. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  648. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
  649. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  650. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  651. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
  652. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
  653. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
  654. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  655. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
  656. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  657. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
  658. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  659. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  660. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  661. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  662. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  663. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  664. package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  665. package/.versions/2.0.14/.pi/agents/dispatch-policy.yaml +32 -0
  666. package/.versions/2.0.14/.pi/agents/model-profiles.yaml +134 -0
  667. package/.versions/2.0.14/.pi/agents/peers.yaml +147 -0
  668. package/.versions/2.0.14/.pi/agents/teams.yaml +41 -0
  669. package/.versions/2.0.14/.pi/agents/voices.yaml +13 -0
  670. package/.versions/2.0.14/.pi/damage-control-rules.yaml +297 -0
  671. package/.versions/2.0.14/.pi/extensions/btw/README.md +120 -0
  672. package/.versions/2.0.14/.pi/extensions/btw/index.ts +914 -0
  673. package/.versions/2.0.14/.pi/extensions/btw/package.json +6 -0
  674. package/.versions/2.0.14/.pi/extensions/btw/state.js +179 -0
  675. package/.versions/2.0.14/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  676. package/.versions/2.0.14/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  677. package/.versions/2.0.14/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  678. package/.versions/2.0.14/.pi/extensions/compact-and-continue/README.md +42 -0
  679. package/.versions/2.0.14/.pi/extensions/compact-and-continue/index.ts +120 -0
  680. package/.versions/2.0.14/.pi/extensions/compact-and-continue/package.json +6 -0
  681. package/.versions/2.0.14/.pi/extensions/mcp-bridge/README.md +46 -0
  682. package/.versions/2.0.14/.pi/extensions/mcp-bridge/index.ts +206 -0
  683. package/.versions/2.0.14/.pi/extensions/mcp-bridge/package.json +6 -0
  684. package/.versions/2.0.14/.pi/extensions/package-lock.json +1175 -0
  685. package/.versions/2.0.14/.pi/extensions/package.json +9 -0
  686. package/.versions/2.0.14/.pi/extensions/pi-voice-stt/README.md +224 -0
  687. package/.versions/2.0.14/.pi/extensions/pi-voice-stt/config.ts +198 -0
  688. package/.versions/2.0.14/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  689. package/.versions/2.0.14/.pi/extensions/pi-voice-stt/index.ts +248 -0
  690. package/.versions/2.0.14/.pi/extensions/pi-voice-stt/package.json +6 -0
  691. package/.versions/2.0.14/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  692. package/.versions/2.0.14/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  693. package/.versions/2.0.14/.pi/harnesses/agent-hub/README.md +1369 -0
  694. package/.versions/2.0.14/.pi/harnesses/agent-hub/acceptance.ts +199 -0
  695. package/.versions/2.0.14/.pi/harnesses/agent-hub/access-approval.ts +135 -0
  696. package/.versions/2.0.14/.pi/harnesses/agent-hub/artifacts.js +146 -0
  697. package/.versions/2.0.14/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
  698. package/.versions/2.0.14/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
  699. package/.versions/2.0.14/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  700. package/.versions/2.0.14/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  701. package/.versions/2.0.14/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
  702. package/.versions/2.0.14/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
  703. package/.versions/2.0.14/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  704. package/.versions/2.0.14/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
  705. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  706. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  707. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  708. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  709. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  710. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  711. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  712. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  713. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  714. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  715. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  716. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  717. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
  718. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  719. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  720. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  721. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/context.ts +45 -0
  722. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  723. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  724. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  725. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  726. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  727. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  728. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
  729. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  730. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  731. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
  732. package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  733. package/.versions/2.0.14/.pi/harnesses/agent-hub/config/agents.ts +178 -0
  734. package/.versions/2.0.14/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
  735. package/.versions/2.0.14/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
  736. package/.versions/2.0.14/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  737. package/.versions/2.0.14/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
  738. package/.versions/2.0.14/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
  739. package/.versions/2.0.14/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  740. package/.versions/2.0.14/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  741. package/.versions/2.0.14/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
  742. package/.versions/2.0.14/.pi/harnesses/agent-hub/context-window.js +108 -0
  743. package/.versions/2.0.14/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  744. package/.versions/2.0.14/.pi/harnesses/agent-hub/delegate.ts +467 -0
  745. package/.versions/2.0.14/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
  746. package/.versions/2.0.14/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  747. package/.versions/2.0.14/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  748. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
  749. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  750. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
  751. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +248 -0
  752. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
  753. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-types.ts +257 -0
  754. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
  755. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  756. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +38 -0
  757. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +75 -0
  758. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  759. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +53 -0
  760. package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-state.ts +15 -0
  761. package/.versions/2.0.14/.pi/harnesses/agent-hub/docs-lane.js +122 -0
  762. package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  763. package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  764. package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  765. package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  766. package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
  767. package/.versions/2.0.14/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  768. package/.versions/2.0.14/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
  769. package/.versions/2.0.14/.pi/harnesses/agent-hub/external-blocker.js +85 -0
  770. package/.versions/2.0.14/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
  771. package/.versions/2.0.14/.pi/harnesses/agent-hub/fixtures/registration-surface.json +62 -0
  772. package/.versions/2.0.14/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  773. package/.versions/2.0.14/.pi/harnesses/agent-hub/footer.ts +30 -0
  774. package/.versions/2.0.14/.pi/harnesses/agent-hub/helpers.ts +270 -0
  775. package/.versions/2.0.14/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
  776. package/.versions/2.0.14/.pi/harnesses/agent-hub/index.ts +2370 -0
  777. package/.versions/2.0.14/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  778. package/.versions/2.0.14/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
  779. package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
  780. package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  781. package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  782. package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
  783. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  784. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  785. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  786. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  787. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  788. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  789. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  790. package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  791. package/.versions/2.0.14/.pi/harnesses/agent-hub/no-progress.ts +359 -0
  792. package/.versions/2.0.14/.pi/harnesses/agent-hub/package.json +7 -0
  793. package/.versions/2.0.14/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  794. package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  795. package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  796. package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  797. package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
  798. package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
  799. package/.versions/2.0.14/.pi/harnesses/agent-hub/poll-command.ts +176 -0
  800. package/.versions/2.0.14/.pi/harnesses/agent-hub/presentation.ts +48 -0
  801. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
  802. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  803. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  804. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  805. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
  806. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
  807. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
  808. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
  809. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  810. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  811. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
  812. package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
  813. package/.versions/2.0.14/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
  814. package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/context.ts +54 -0
  815. package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
  816. package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
  817. package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/system-prompt.ts +122 -0
  818. package/.versions/2.0.14/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
  819. package/.versions/2.0.14/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  820. package/.versions/2.0.14/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
  821. package/.versions/2.0.14/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  822. package/.versions/2.0.14/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
  823. package/.versions/2.0.14/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  824. package/.versions/2.0.14/.pi/harnesses/agent-hub/research/runtime.ts +195 -0
  825. package/.versions/2.0.14/.pi/harnesses/agent-hub/research/spawn-run.ts +174 -0
  826. package/.versions/2.0.14/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  827. package/.versions/2.0.14/.pi/harnesses/agent-hub/return-contract.js +327 -0
  828. package/.versions/2.0.14/.pi/harnesses/agent-hub/return-extract.js +77 -0
  829. package/.versions/2.0.14/.pi/harnesses/agent-hub/review-findings.js +104 -0
  830. package/.versions/2.0.14/.pi/harnesses/agent-hub/run-budget.js +542 -0
  831. package/.versions/2.0.14/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  832. package/.versions/2.0.14/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
  833. package/.versions/2.0.14/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
  834. package/.versions/2.0.14/.pi/harnesses/agent-hub/scope-gate.js +123 -0
  835. package/.versions/2.0.14/.pi/harnesses/agent-hub/session-audit.ts +227 -0
  836. package/.versions/2.0.14/.pi/harnesses/agent-hub/session-health.js +110 -0
  837. package/.versions/2.0.14/.pi/harnesses/agent-hub/session-start.ts +42 -0
  838. package/.versions/2.0.14/.pi/harnesses/agent-hub/spawn.ts +526 -0
  839. package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
  840. package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-communication-store.ts +95 -0
  841. package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-report.ts +225 -0
  842. package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-runtime.ts +279 -0
  843. package/.versions/2.0.14/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
  844. package/.versions/2.0.14/.pi/harnesses/agent-hub/timeline.ts +72 -0
  845. package/.versions/2.0.14/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
  846. package/.versions/2.0.14/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
  847. package/.versions/2.0.14/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  848. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
  849. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  850. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/context.ts +144 -0
  851. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
  852. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
  853. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  854. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  855. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
  856. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
  857. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
  858. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  859. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
  860. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  861. package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
  862. package/.versions/2.0.14/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  863. package/.versions/2.0.14/.pi/harnesses/agent-hub/types.ts +66 -0
  864. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  865. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
  866. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  867. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  868. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +152 -0
  869. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  870. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-source.ts +175 -0
  871. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  872. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  873. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  874. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  875. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  876. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  877. package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  878. package/.versions/2.0.14/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  879. package/.versions/2.0.14/.pi/harnesses/agent-hub/version.ts +42 -0
  880. package/.versions/2.0.14/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  881. package/.versions/2.0.14/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
  882. package/.versions/2.0.14/.pi/harnesses/agent-hub/work-mode.ts +174 -0
  883. package/.versions/2.0.14/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
  884. package/.versions/2.0.14/.pi/harnesses/ask-user-remote/README.md +59 -0
  885. package/.versions/2.0.14/.pi/harnesses/ask-user-remote/index.ts +558 -0
  886. package/.versions/2.0.14/.pi/harnesses/ask-user-remote/questions.ts +161 -0
  887. package/.versions/2.0.14/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  888. package/.versions/2.0.14/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
  889. package/.versions/2.0.14/.pi/harnesses/coms/README.md +100 -0
  890. package/.versions/2.0.14/.pi/harnesses/coms/index.ts +282 -0
  891. package/.versions/2.0.14/.pi/harnesses/coms/package.json +7 -0
  892. package/.versions/2.0.14/.pi/harnesses/coms/version.ts +42 -0
  893. package/.versions/2.0.14/.pi/harnesses/damage-control-continue/README.md +135 -0
  894. package/.versions/2.0.14/.pi/harnesses/damage-control-continue/index.ts +550 -0
  895. package/.versions/2.0.14/.pi/harnesses/damage-control-continue/package.json +7 -0
  896. package/.versions/2.0.14/.pi/harnesses/damage-control-continue/version.ts +42 -0
  897. package/.versions/2.0.14/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  898. package/.versions/2.0.14/.pi/harnesses/lib/coms-core-io.ts +385 -0
  899. package/.versions/2.0.14/.pi/harnesses/lib/coms-core.ts +577 -0
  900. package/.versions/2.0.14/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
  901. package/.versions/2.0.14/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
  902. package/.versions/2.0.14/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
  903. package/.versions/2.0.14/.pi/harnesses/lib/context-budget-view.ts +107 -0
  904. package/.versions/2.0.14/.pi/harnesses/lib/context-budget.ts +114 -0
  905. package/.versions/2.0.14/.pi/harnesses/lib/damage-control-shared.ts +197 -0
  906. package/.versions/2.0.14/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
  907. package/.versions/2.0.14/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  908. package/.versions/2.0.14/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  909. package/.versions/2.0.14/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  910. package/.versions/2.0.14/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  911. package/.versions/2.0.14/.pi/harnesses/lib/fleet-dashboard-view.ts +147 -0
  912. package/.versions/2.0.14/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  913. package/.versions/2.0.14/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  914. package/.versions/2.0.14/.pi/harnesses/lib/fleet-panel.ts +34 -0
  915. package/.versions/2.0.14/.pi/harnesses/lib/fleet-read-model.ts +536 -0
  916. package/.versions/2.0.14/.pi/harnesses/lib/fleet-selection.ts +24 -0
  917. package/.versions/2.0.14/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
  918. package/.versions/2.0.14/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  919. package/.versions/2.0.14/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  920. package/.versions/2.0.14/.pi/harnesses/lib/herdr-client.ts +472 -0
  921. package/.versions/2.0.14/.pi/harnesses/lib/herdr-presence.ts +399 -0
  922. package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  923. package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  924. package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  925. package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  926. package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  927. package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  928. package/.versions/2.0.14/.pi/harnesses/lib/spawned-peers.js +191 -0
  929. package/.versions/2.0.14/.pi/harnesses/lib/system1/config.js +61 -0
  930. package/.versions/2.0.14/.pi/harnesses/lib/system1/contracts.ts +152 -0
  931. package/.versions/2.0.14/.pi/harnesses/lib/system1/demo.ts +106 -0
  932. package/.versions/2.0.14/.pi/harnesses/lib/system1/jev.ts +503 -0
  933. package/.versions/2.0.14/.pi/harnesses/lib/system1/service.ts +245 -0
  934. package/.versions/2.0.14/.pi/harnesses/lib/update-check.ts +222 -0
  935. package/.versions/2.0.14/.pi/harnesses/package-lock.json +2039 -0
  936. package/.versions/2.0.14/.pi/harnesses/package.json +10 -0
  937. package/.versions/2.0.14/.pi/prompts/af-build.md +24 -0
  938. package/.versions/2.0.14/.pi/prompts/af-code-simplify.md +22 -0
  939. package/.versions/2.0.14/.pi/prompts/af-constraints.md +31 -0
  940. package/.versions/2.0.14/.pi/prompts/af-plan.md +17 -0
  941. package/.versions/2.0.14/.pi/prompts/af-review.md +16 -0
  942. package/.versions/2.0.14/.pi/prompts/af-set-hermes-telegram.md +15 -0
  943. package/.versions/2.0.14/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  944. package/.versions/2.0.14/.pi/prompts/af-setup-rules.md +20 -0
  945. package/.versions/2.0.14/.pi/prompts/af-ship.md +17 -0
  946. package/.versions/2.0.14/.pi/prompts/af-spec.md +15 -0
  947. package/.versions/2.0.14/.pi/prompts/af-test.md +19 -0
  948. package/.versions/2.0.14/.pi/skills/bowser/SKILL.md +145 -0
  949. package/.versions/2.0.14/.version +1 -0
  950. package/.versions/2.0.14/agents/architect.md +24 -0
  951. package/.versions/2.0.14/agents/bowser.md +28 -0
  952. package/.versions/2.0.14/agents/builder.md +55 -0
  953. package/.versions/2.0.14/agents/code-reviewer.md +209 -0
  954. package/.versions/2.0.14/agents/deep-researcher.md +32 -0
  955. package/.versions/2.0.14/agents/documenter.md +22 -0
  956. package/.versions/2.0.14/agents/orchestrator.md +22 -0
  957. package/.versions/2.0.14/agents/plan-reviewer.md +83 -0
  958. package/.versions/2.0.14/agents/planner.md +105 -0
  959. package/.versions/2.0.14/agents/releaser.md +24 -0
  960. package/.versions/2.0.14/agents/researcher.md +30 -0
  961. package/.versions/2.0.14/agents/security-auditor.md +167 -0
  962. package/.versions/2.0.14/agents/test-engineer.md +153 -0
  963. package/.versions/2.0.14/agents/web-debugger.md +44 -0
  964. package/.versions/2.0.14/agents/web-performance-auditor.md +194 -0
  965. package/.versions/2.0.14/bin/catalog/harness-runtime-closure.json +73 -0
  966. package/.versions/2.0.14/codex/fleet-session-client/SKILL.md +34 -0
  967. package/.versions/2.0.14/codex/fleet-session-client.zip +0 -0
  968. package/.versions/2.0.14/docs/ARCHITECTURE.md +754 -0
  969. package/.versions/2.0.14/docs/agent-fleet-setup.md +917 -0
  970. package/.versions/2.0.14/docs/claude-code-coms-bridge.md +134 -0
  971. package/.versions/2.0.14/docs/codex-session-bridge.md +219 -0
  972. package/.versions/2.0.14/docs/coms-hermes-bridge.md +188 -0
  973. package/.versions/2.0.14/docs/getting-started.md +126 -0
  974. package/.versions/2.0.14/docs/npm-install.md +476 -0
  975. package/.versions/2.0.14/docs/pi-extensions.md +454 -0
  976. package/.versions/2.0.14/docs/pi-setup.md +92 -0
  977. package/.versions/2.0.14/docs/skill-anatomy.md +150 -0
  978. package/.versions/2.0.14/install-manifest.json +3183 -0
  979. package/.versions/2.0.14/justfile +247 -0
  980. package/.versions/2.0.14/manifest-meta.json +1065 -0
  981. package/.versions/2.0.14/references/accessibility-checklist.md +160 -0
  982. package/.versions/2.0.14/references/communication-contract.md +26 -0
  983. package/.versions/2.0.14/references/definition-of-done.md +67 -0
  984. package/.versions/2.0.14/references/fleet-coordination-patterns.md +171 -0
  985. package/.versions/2.0.14/references/observability-checklist.md +92 -0
  986. package/.versions/2.0.14/references/orchestration-patterns.md +370 -0
  987. package/.versions/2.0.14/references/performance-checklist.md +236 -0
  988. package/.versions/2.0.14/references/prompting-patterns.md +380 -0
  989. package/.versions/2.0.14/references/security-checklist.md +245 -0
  990. package/.versions/2.0.14/references/testing-patterns.md +235 -0
  991. package/.versions/2.0.14/references/workflow-authoring.md +304 -0
  992. package/.versions/2.0.14/skills/_internal/grilling.md +59 -0
  993. package/.versions/2.0.14/skills/browser-testing-with-devtools/SKILL.md +351 -0
  994. package/.versions/2.0.14/skills/code-review-and-quality/SKILL.md +396 -0
  995. package/.versions/2.0.14/skills/compound-learning/SKILL.md +137 -0
  996. package/.versions/2.0.14/skills/constraint-driven-development/SKILL.md +338 -0
  997. package/.versions/2.0.14/skills/constraint-driven-development/references/floor-guard.md +99 -0
  998. package/.versions/2.0.14/skills/context-engineering/SKILL.md +341 -0
  999. package/.versions/2.0.14/skills/deprecation-and-migration/SKILL.md +247 -0
  1000. package/.versions/2.0.14/skills/designing-agents/SKILL.md +394 -0
  1001. package/.versions/2.0.14/skills/designing-agents/pi-harness-authoring.md +222 -0
  1002. package/.versions/2.0.14/skills/drafting-workflows/SKILL.md +143 -0
  1003. package/.versions/2.0.14/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  1004. package/.versions/2.0.14/skills/frontend-ui-engineering/SKILL.md +328 -0
  1005. package/.versions/2.0.14/skills/git-workflow-and-versioning/SKILL.md +316 -0
  1006. package/.versions/2.0.14/skills/idea-refine/SKILL.md +182 -0
  1007. package/.versions/2.0.14/skills/idea-refine/examples.md +238 -0
  1008. package/.versions/2.0.14/skills/idea-refine/frameworks.md +99 -0
  1009. package/.versions/2.0.14/skills/idea-refine/refinement-criteria.md +113 -0
  1010. package/.versions/2.0.14/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1011. package/.versions/2.0.14/skills/incremental-implementation/SKILL.md +302 -0
  1012. package/.versions/2.0.14/skills/interview-me/SKILL.md +226 -0
  1013. package/.versions/2.0.14/skills/orchestration-verification/SKILL.md +182 -0
  1014. package/.versions/2.0.14/skills/peer-coms/SKILL.md +90 -0
  1015. package/.versions/2.0.14/skills/performance-optimization/SKILL.md +496 -0
  1016. package/.versions/2.0.14/skills/planning-and-task-breakdown/SKILL.md +289 -0
  1017. package/.versions/2.0.14/skills/repository-ai-setup/SKILL.md +117 -0
  1018. package/.versions/2.0.14/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  1019. package/.versions/2.0.14/skills/repository-ai-setup/references/apply-contract.md +74 -0
  1020. package/.versions/2.0.14/skills/repository-ai-setup/references/provenance-template.md +16 -0
  1021. package/.versions/2.0.14/skills/repository-ai-setup/references/setup-flow.md +108 -0
  1022. package/.versions/2.0.14/skills/repository-ai-setup/references/verify-setup.md +20 -0
  1023. package/.versions/2.0.14/skills/security-and-hardening/SKILL.md +524 -0
  1024. package/.versions/2.0.14/skills/spec-driven-development/SKILL.md +295 -0
  1025. package/.versions/2.0.14/skills/using-agent-skills/SKILL.md +198 -0
  1026. package/.versions/2.0.14/vendor/agent-skills-upstream/LICENSE +21 -0
  1027. package/.versions/2.0.14/vendor/agent-skills-upstream/README.md +430 -0
  1028. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  1029. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  1030. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  1031. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  1032. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  1033. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  1034. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  1035. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  1036. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  1037. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  1038. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  1039. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  1040. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  1041. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  1042. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  1043. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  1044. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  1045. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  1046. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1047. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  1048. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  1049. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  1050. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  1051. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  1052. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  1053. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  1054. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  1055. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  1056. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  1057. package/.versions/2.0.14/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  1058. package/CHANGELOG.md +16 -0
  1059. package/README.md +3 -3
  1060. package/agents/architect.md +2 -3
  1061. package/agents/bowser.md +2 -2
  1062. package/agents/builder.md +2 -3
  1063. package/agents/code-reviewer.md +7 -8
  1064. package/agents/deep-researcher.md +3 -4
  1065. package/agents/documenter.md +2 -3
  1066. package/agents/orchestrator.md +2 -3
  1067. package/agents/plan-reviewer.md +5 -6
  1068. package/agents/planner.md +5 -6
  1069. package/agents/releaser.md +2 -3
  1070. package/agents/researcher.md +4 -5
  1071. package/agents/security-auditor.md +6 -7
  1072. package/agents/test-engineer.md +3 -4
  1073. package/agents/web-debugger.md +3 -3
  1074. package/agents/web-performance-auditor.md +3 -3
  1075. package/bin/catalog/harness-runtime-closure.json +30 -18
  1076. package/bin/cli.js +47 -1
  1077. package/bin/lib/apply.js +16 -0
  1078. package/bin/lib/overrides.js +37 -1
  1079. package/bin/lib/project-provenance.js +119 -0
  1080. package/bin/lib/scan.js +1 -1
  1081. package/bin/lib/transaction.js +1 -1
  1082. package/bin/lib/validate-overrides.js +37 -3
  1083. package/catalog/agent-prompts/README.md +12 -0
  1084. package/catalog/agent-prompts/architecture-decision-author.md +24 -0
  1085. package/catalog/agent-prompts/requirements-author.md +21 -0
  1086. package/catalog/commands/README.md +13 -0
  1087. package/catalog/commands/assess-change-impact.md +19 -0
  1088. package/catalog/commands/audit-documentation.md +19 -0
  1089. package/catalog/rules/README.md +33 -0
  1090. package/catalog/rules/ai/policy-authoring.md +22 -0
  1091. package/catalog/rules/architecture/behavior-preserving-refactoring.md +25 -0
  1092. package/catalog/rules/architecture/public-contracts.md +22 -0
  1093. package/catalog/rules/architecture/repository-boundaries.md +21 -0
  1094. package/catalog/rules/architecture/structural-change-registration.md +25 -0
  1095. package/catalog/rules/backend/notification-date-time.md +25 -0
  1096. package/catalog/rules/bundles/README.md +16 -0
  1097. package/catalog/rules/data/enum-semantics.md +25 -0
  1098. package/catalog/rules/data/mixed-ownership-data.md +22 -0
  1099. package/catalog/rules/data/reporting-queries.md +34 -0
  1100. package/catalog/rules/docs/docs-maintenance.md +25 -0
  1101. package/catalog/rules/frameworks/vue.md +25 -0
  1102. package/catalog/rules/frontend/async-ui-states.md +26 -0
  1103. package/catalog/rules/frontend/established-ui-primitives.md +25 -0
  1104. package/catalog/rules/frontend/form-validation.md +26 -0
  1105. package/catalog/rules/frontend/navigation-contracts.md +25 -0
  1106. package/catalog/rules/languages/csharp.md +25 -0
  1107. package/catalog/rules/languages/javascript.md +25 -0
  1108. package/catalog/rules/languages/sql.md +24 -0
  1109. package/catalog/rules/security/authorization-before-effects.md +26 -0
  1110. package/catalog/rules/security/diagnostic-data-safety.md +22 -0
  1111. package/catalog/rules/security/response-data-minimization.md +25 -0
  1112. package/catalog/rules/security/trusted-tenant-scope.md +26 -0
  1113. package/catalog/rules/testing/shared-package-consumers.md +25 -0
  1114. package/catalog/rules/testing/verification-conventions.md +24 -0
  1115. package/docs/ARCHITECTURE.md +51 -2
  1116. package/docs/agent-fleet-setup.md +263 -28
  1117. package/docs/codex-session-bridge.md +1 -1
  1118. package/docs/npm-install.md +8 -0
  1119. package/docs/pi-extensions.md +10 -5
  1120. package/docs/workflows.md +4 -3
  1121. package/install-manifest.json +133 -3
  1122. package/manifest-meta.json +85 -15
  1123. package/package.json +7 -4
  1124. package/skills/repository-ai-setup/SKILL.md +117 -0
  1125. package/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  1126. package/skills/repository-ai-setup/references/apply-contract.md +74 -0
  1127. package/skills/repository-ai-setup/references/provenance-template.md +16 -0
  1128. package/skills/repository-ai-setup/references/setup-flow.md +108 -0
  1129. 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"])) {
@@ -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) {
@@ -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) {
@@ -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": checkFolders("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: "overrides", path: OVERRIDES_REL_PATH, issue, fix });
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.
@@ -0,0 +1,33 @@
1
+ # Reusable rule index
2
+
3
+ Catalogue templates are starting points, not target policy. Select only entries supported by target-repository evidence; adapt the content, not merely paths. Target files belong in `.ai/rules/`, not here. Read this index first; do not load the full catalogue by default.
4
+
5
+ | When | Template | Target use |
6
+ | --- | --- | --- |
7
+ | Planning or changing dependencies across repository areas | [repository-boundaries.md](architecture/repository-boundaries.md) | Map the actual owners and consumers; keep existing explicit boundaries and exceptions. |
8
+ | Planning, changing, or reviewing C# code | [languages/csharp.md](languages/csharp.md) | Bind to the target language version, nullable context, and analyzer policy; never inherit project layering or version pins. |
9
+ | Planning, changing, or reviewing JavaScript code | [languages/javascript.md](languages/javascript.md) | Bind to the target runtime, module format, and formatter/linter; never inherit bundler, store, or client defaults. |
10
+ | Planning database schema or data changes | [languages/sql.md](languages/sql.md) | Bind to the target engine and migration mechanism; dialect-aware guidance only, never a deployment pipeline. |
11
+ | Planning, changing, or reviewing Vue components | [frameworks/vue.md](frameworks/vue.md) | Bind to the installed Vue version and API style; framework profile, never a language rule or component inventory. |
12
+ | Creating or maintaining documentation | [docs/docs-maintenance.md](docs/docs-maintenance.md) | Bind to the target's accepted document types, paths, and index; no imported taxonomy. |
13
+ | Binding policy to observable checks | [testing/verification-conventions.md](testing/verification-conventions.md) | Link every rule to a real checker or assign review; no invented thresholds. |
14
+ | Authoring repository AI rules or task prompts | [policy-authoring.md](ai/policy-authoring.md) | Clear triggers, scope, rationale, and checkable outcomes without model-specific prescriptions. |
15
+ | Changing externally consumed interfaces | [public-contracts.md](architecture/public-contracts.md) | Bind compatibility checks and exceptions to actual consumers and accepted policy. |
16
+ | Collecting or sharing diagnostic evidence | [diagnostic-data-safety.md](security/diagnostic-data-safety.md) | Minimize collection and avoid secret-returning endpoints and sensitive artifacts. |
17
+ | Refreshing mixed generated and human-maintained data | [mixed-ownership-data.md](data/mixed-ownership-data.md) | Preserve annotations and distinguish unknown observations from deletions. |
18
+ | Creating or changing enums, named codes, or their persisted and serialized representations | [Explicit enum semantics](data/enum-semantics.md) | Adapt to accepted target contracts; no imported stack defaults. |
19
+ | Changing exports, reports, heavy read-only projections, or shared query loading shapes | [Reporting query correctness and efficiency](data/reporting-queries.md) | Adapt to accepted target contracts; no imported stack defaults. |
20
+ | Changing ui request handling, loading indicators, or error states | [Complete asynchronous UI states](frontend/async-ui-states.md) | Adapt to accepted target contracts; no imported stack defaults. |
21
+ | Changing routes, navigation, or query-string handling | [Navigation and URL consistency](frontend/navigation-contracts.md) | Adapt to accepted target contracts; no imported stack defaults. |
22
+ | Adding or changing form validation and input error display | [Consistent form validation](frontend/form-validation.md) | Adapt to accepted target contracts; no imported stack defaults. |
23
+ | Changing protected resource operations | [Authorization before side effects](security/authorization-before-effects.md) | Check actual resource permissions before mutation or queued effects. |
24
+ | Changing tenant-scoped access | [Trusted tenant scope](security/trusted-tenant-scope.md) | Derive and enforce scope from trusted identity across execution boundaries. |
25
+ | Refactoring existing behavior without an accepted functional change | [Behavior-preserving refactoring](architecture/behavior-preserving-refactoring.md) | Adapt to accepted target contracts and actual consumers. |
26
+ | Adding, moving, renaming, or removing files that participate in discovery, packaging, or runtime registration | [Structural-change registration completeness](architecture/structural-change-registration.md) | Adapt to accepted target contracts and actual consumers. |
27
+ | Changing a reusable package or component consumed by other applications | [Shared-package consumer verification](testing/shared-package-consumers.md) | Adapt to accepted target contracts and actual consumers. |
28
+ | Building or changing ui controls for which the target has shared visual primitives | [Reuse established UI primitives](frontend/established-ui-primitives.md) | Adapt to accepted target contracts and actual consumers. |
29
+ | Designing or changing externally exposed responses or their intermediate projections | [Response-data minimization](security/response-data-minimization.md) | Adapt to accepted target contracts and actual consumers. |
30
+ | Formatting dates or times in email, in-app, or other notification channels | [Notification date and time consistency](backend/notification-date-time.md) | Adapt to accepted target contracts and actual consumers. |
31
+ | Loading task-shaped rule sets | [bundles/](bundles/) | Compose rules per task; docs-only work never loads implementation bundles. |
32
+
33
+ A code pattern without explicit policy is evidence for a *proposal*, not an adopted rule. Ask for acceptance before writing normative repo-derived policy.
@@ -0,0 +1,22 @@
1
+ ---
2
+ fleet-template: policy-authoring
3
+ fleet-source-version: 1
4
+ ---
5
+ # Rule: Repository AI policy authoring
6
+
7
+ Load when creating or changing target-local rules or task prompts. Adapt to existing policy owners; this is not a replacement for Fleet skill-authoring workflows.
8
+
9
+ Disposition: retain model-independent clarity and maintenance principles; exclude model tuning, performance claims, and instruction-priority shortcuts.
10
+
11
+ ## Rules
12
+ - State a specific loading trigger, scope, and intended outcome; keep each rule focused.
13
+ - Explain non-obvious constraints and use concrete, checkable language instead of vague quality demands.
14
+ - Reference canonical policy rather than duplicating it. Resolve conflicting instructions against accepted decisions; ask about unresolved conflicts rather than inventing precedence.
15
+ - Separate examples and input data from instructions. Observed conventions are proposals until accepted, not automatic policy.
16
+ - Name completion criteria and real verification evidence. Add guidance for demonstrated needs, not speculative failure modes.
17
+
18
+ ## Scope and exceptions
19
+ Applies to repository rules and task prompts, not runtime configuration or global instruction hierarchy. Bind references to target files; retain explicitly accepted local exceptions.
20
+
21
+ ## Verification
22
+ Review triggers, scope, rationale, references, contradictions, and completion criteria. Distinguish structural checks from observed model behavior; document untested behavior rather than claiming compliance.
@@ -0,0 +1,25 @@
1
+ ---
2
+ fleet-template: behavior-preserving-refactoring
3
+ fleet-source-version: 1
4
+ ---
5
+ # Rule: Behavior-preserving refactoring
6
+
7
+ Load when refactoring existing behavior without an accepted functional change. Adapt to accepted target policy and tooling; this template is not automatically adopted policy.
8
+
9
+ Disposition: preserve observable behavior during refactors; exclude controller return types, attribute ordering, naming suffixes, and mandated layers.
10
+
11
+ ## Rules
12
+ - Establish the current observable behavior before restructuring: inputs, binding, validation, outputs, errors, permissions, call order, and side effects.
13
+ - Preserve existing behavior unless a functional change is explicitly accepted. Stricter validation is a behavior change, not automatically a safe cleanup.
14
+ - Account for every affected branch and side-effect call. Moving mapping or orchestration must not drop notifications, audits, or other required effects, or change their order where significant.
15
+ - Verify that a replacement helper or service actually owns the behavior being delegated; do not assume a matching name means equivalent effects.
16
+ - Remove dependencies and helpers only after checking their remaining consumers, including registration or indirect invocation. Keep intentional behavior changes distinct in the diff and verification.
17
+
18
+ ## Scope and exceptions
19
+ Apply only to relevant target surfaces. Preserve explicit local exceptions with scope and rationale. Unresolved policy choices require acceptance before normative apply.
20
+
21
+ ## Verification
22
+ Use characterization or regression tests for representative success, failure, validation, and permission paths. Check binding, serialization, side effects, and significant call order. Report uncharacterized behavior; passing compilation alone does not prove equivalence.
23
+
24
+ ## References
25
+ Use the target rule index, accepted contracts, and existing checks. Bind references during adaptation.
@@ -0,0 +1,22 @@
1
+ ---
2
+ fleet-template: public-contracts
3
+ fleet-source-version: 1
4
+ ---
5
+ # Rule: Public contract protection
6
+
7
+ Load when planning, changing, or reviewing externally consumed APIs, libraries, events, file formats, or CLI interfaces.
8
+
9
+ Disposition: extract external/internal contract separation; exclude prescribed layers, frameworks, and repository paths.
10
+
11
+ ## Rules
12
+ - Identify published interfaces and known consumers from target evidence. Keep public contracts distinct from internal implementation details; do not impose extra layers or duplicate types without need.
13
+ - Review compatibility of names, types, defaults, errors, serialization, exit codes, and behavior where applicable. A signature-only comparison does not prove compatibility.
14
+ - Follow the target's accepted compatibility and versioning policy. If none exists, propose the intended compatibility boundary for acceptance before a breaking change.
15
+ - Trace affected consumers and name unknown consumers explicitly. An internal refactor does not authorize an external contract change.
16
+ - For accepted breaking changes, record migration guidance and the target's agreed deprecation or rollout approach; never invent a universal support period.
17
+
18
+ ## Scope and exceptions
19
+ Applies only to externally consumed surfaces identified in the target; internal interfaces stay under repository-boundary policy. Record deliberate compatibility exceptions with scope and rationale.
20
+
21
+ ## Verification
22
+ Compare representative old and new consumer behavior using available contract tests and examples. Report gaps and unverified consumers; passing internal tests alone does not prove external compatibility.