pi-subagents 0.79.2 → 0.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1363) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +1 -1
  3. package/bundle/agents.js +18 -0
  4. package/bundle/background-work.js +16 -0
  5. package/bundle/capability-ceiling.js +22 -0
  6. package/bundle/child-tool-plan.js +11 -0
  7. package/bundle/chunk-26C3WLYQ.js +8388 -0
  8. package/bundle/chunk-2XYWN7QJ.js +128 -0
  9. package/bundle/chunk-2ZSNH26H.js +4164 -0
  10. package/bundle/chunk-3DC5KBVP.js +235 -0
  11. package/bundle/chunk-3IF2PGW7.js +380 -0
  12. package/bundle/chunk-4QFZZV3O.js +57 -0
  13. package/bundle/chunk-563BHAZ5.js +1365 -0
  14. package/bundle/chunk-5LFLVSTM.js +260 -0
  15. package/bundle/chunk-62OCY2S4.js +14 -0
  16. package/bundle/chunk-74RT5YQE.js +326 -0
  17. package/bundle/chunk-7F6RKT6W.js +132 -0
  18. package/bundle/chunk-7J4ZXMY7.js +18 -0
  19. package/bundle/chunk-ARRKBB2B.js +179 -0
  20. package/bundle/chunk-BJN5LUQY.js +458 -0
  21. package/bundle/chunk-BPS2AGBZ.js +5421 -0
  22. package/bundle/chunk-CEKS3TFO.js +1337 -0
  23. package/bundle/chunk-CTPAE36Y.js +94 -0
  24. package/bundle/chunk-D4EHT5SJ.js +14 -0
  25. package/bundle/chunk-EYNJ6VL6.js +526 -0
  26. package/bundle/chunk-G5DKFLLI.js +1185 -0
  27. package/bundle/chunk-KSWQVGDW.js +1027 -0
  28. package/bundle/chunk-L5ZHE4L4.js +946 -0
  29. package/bundle/chunk-LSRUTHT7.js +57 -0
  30. package/bundle/chunk-N2BN7BF5.js +159 -0
  31. package/bundle/chunk-NF7IEKBH.js +490 -0
  32. package/bundle/chunk-NIXWDZZV.js +9 -0
  33. package/bundle/chunk-NNLASTQE.js +4082 -0
  34. package/bundle/chunk-TUWLXTAM.js +935 -0
  35. package/bundle/chunk-UKG4V45O.js +228 -0
  36. package/bundle/chunk-V2JWDB5U.js +753 -0
  37. package/bundle/chunk-V3BIUPLU.js +9163 -0
  38. package/bundle/chunk-V6MR5TOQ.js +270 -0
  39. package/bundle/chunk-VJHOELQP.js +8245 -0
  40. package/bundle/chunk-WSBNENFS.js +732 -0
  41. package/bundle/chunk-XMFLCKMQ.js +16664 -0
  42. package/bundle/chunk-YFCK7H2S.js +129 -0
  43. package/bundle/chunk-YYREO77V.js +137 -0
  44. package/bundle/chunk-Z7KVHQHL.js +173 -0
  45. package/bundle/chunk-ZBC44JJ3.js +8606 -0
  46. package/bundle/chunk-ZP3HODFH.js +175 -0
  47. package/bundle/control-channel.js +11 -0
  48. package/bundle/delegation.js +14 -0
  49. package/bundle/external-job-provider.js +20 -0
  50. package/bundle/external-runs.js +21 -0
  51. package/bundle/index.js +30 -0
  52. package/bundle/inspectors.js +8 -0
  53. package/bundle/intercom-bridge.js +11 -0
  54. package/bundle/preflight.js +425 -0
  55. package/bundle/project-panes.js +28 -0
  56. package/bundle/required-child-extensions.js +6 -0
  57. package/bundle/shared-types.js +8 -0
  58. package/bundle/workflow-resources.js +7 -0
  59. package/docs/agents.md +1 -1
  60. package/docs/configuration.md +15 -5
  61. package/docs/extension-api.md +29 -2
  62. package/docs/observability.md +6 -2
  63. package/docs/standalone-background.md +3 -3
  64. package/docs/workflows.md +1 -1
  65. package/index.d.ts +0 -1
  66. package/index.js +0 -1
  67. package/package.json +19 -19
  68. package/src/agents/advertised-agent-prompt.d.ts +0 -1
  69. package/src/agents/advertised-agent-prompt.js +0 -1
  70. package/src/agents/agent-management.d.ts +0 -1
  71. package/src/agents/agent-management.js +0 -1
  72. package/src/agents/agent-memory.d.ts +0 -1
  73. package/src/agents/agent-memory.js +0 -1
  74. package/src/agents/agent-refinements.d.ts +0 -1
  75. package/src/agents/agent-refinements.js +0 -1
  76. package/src/agents/agent-scope.d.ts +0 -1
  77. package/src/agents/agent-scope.js +0 -1
  78. package/src/agents/agent-selection.d.ts +0 -1
  79. package/src/agents/agent-selection.js +0 -1
  80. package/src/agents/agent-serializer.d.ts +0 -1
  81. package/src/agents/agent-serializer.js +0 -1
  82. package/src/agents/agents.d.ts +0 -1
  83. package/src/agents/agents.js +0 -1
  84. package/src/agents/builtin-names.d.ts +0 -1
  85. package/src/agents/builtin-names.js +0 -1
  86. package/src/agents/chain-serializer.d.ts +0 -1
  87. package/src/agents/chain-serializer.js +0 -1
  88. package/src/agents/frontmatter.d.ts +2 -1
  89. package/src/agents/frontmatter.js +9 -3
  90. package/src/agents/global-npm-root.d.ts +0 -1
  91. package/src/agents/global-npm-root.js +0 -1
  92. package/src/agents/identity.d.ts +0 -1
  93. package/src/agents/identity.js +0 -1
  94. package/src/agents/proactive-skills.d.ts +0 -1
  95. package/src/agents/proactive-skills.js +0 -1
  96. package/src/agents/runtime-agent-events.d.ts +0 -1
  97. package/src/agents/runtime-agent-events.js +0 -1
  98. package/src/agents/runtime-agent-registry.d.ts +0 -1
  99. package/src/agents/runtime-agent-registry.js +0 -1
  100. package/src/agents/skills.d.ts +0 -1
  101. package/src/agents/skills.js +0 -1
  102. package/src/api/agents.d.ts +0 -1
  103. package/src/api/agents.js +0 -1
  104. package/src/api/background-work.d.ts +0 -1
  105. package/src/api/background-work.js +0 -1
  106. package/src/api/capability-ceiling.d.ts +0 -1
  107. package/src/api/capability-ceiling.js +0 -1
  108. package/src/api/child-tool-plan.d.ts +0 -1
  109. package/src/api/child-tool-plan.js +0 -1
  110. package/src/api/control-channel.d.ts +0 -1
  111. package/src/api/control-channel.js +0 -1
  112. package/src/api/delegation.d.ts +20 -1
  113. package/src/api/delegation.js +0 -1
  114. package/src/api/external-job-provider.d.ts +0 -1
  115. package/src/api/external-job-provider.js +0 -1
  116. package/src/api/external-runs.d.ts +0 -1
  117. package/src/api/external-runs.js +0 -1
  118. package/src/api/inspectors.d.ts +0 -1
  119. package/src/api/inspectors.js +0 -1
  120. package/src/api/intercom-bridge.d.ts +0 -1
  121. package/src/api/intercom-bridge.js +0 -1
  122. package/src/api/preflight.d.ts +0 -1
  123. package/src/api/preflight.js +0 -1
  124. package/src/api/project-panes.d.ts +0 -1
  125. package/src/api/project-panes.js +0 -1
  126. package/src/api/required-child-extensions.d.ts +0 -1
  127. package/src/api/required-child-extensions.js +0 -1
  128. package/src/api/shared-types.d.ts +0 -1
  129. package/src/api/shared-types.js +0 -1
  130. package/src/api/workflow-resources.d.ts +0 -1
  131. package/src/api/workflow-resources.js +0 -1
  132. package/src/extension/active-runs-prompt.d.ts +0 -1
  133. package/src/extension/active-runs-prompt.js +0 -1
  134. package/src/extension/config.d.ts +0 -1
  135. package/src/extension/config.js +3 -1
  136. package/src/extension/control-notices.d.ts +0 -1
  137. package/src/extension/control-notices.js +0 -1
  138. package/src/extension/declaration-pinning.d.ts +0 -1
  139. package/src/extension/declaration-pinning.js +0 -1
  140. package/src/extension/doctor.d.ts +0 -1
  141. package/src/extension/doctor.js +0 -1
  142. package/src/extension/fanout-child.d.ts +0 -1
  143. package/src/extension/fanout-child.js +0 -1
  144. package/src/extension/herdr-pi-bridge.d.ts +0 -1
  145. package/src/extension/herdr-pi-bridge.js +0 -1
  146. package/src/extension/index.d.ts +0 -1
  147. package/src/extension/index.js +40 -18
  148. package/src/extension/public-execution.d.ts +0 -1
  149. package/src/extension/public-execution.js +0 -1
  150. package/src/extension/reply-workflow-script.d.ts +0 -1
  151. package/src/extension/reply-workflow-script.js +0 -1
  152. package/src/extension/rpc.d.ts +0 -1
  153. package/src/extension/rpc.js +0 -1
  154. package/src/extension/schemas.d.ts +0 -1
  155. package/src/extension/schemas.js +3 -4
  156. package/src/extension/steering-notices.d.ts +0 -1
  157. package/src/extension/steering-notices.js +0 -1
  158. package/src/extension/subagent-guide.d.ts +0 -1
  159. package/src/extension/subagent-guide.js +0 -1
  160. package/src/extension/subagent-options.d.ts +0 -1
  161. package/src/extension/subagent-options.js +0 -1
  162. package/src/extension/tool-activation.d.ts +0 -1
  163. package/src/extension/tool-activation.js +0 -9
  164. package/src/extension/tool-description.d.ts +0 -1
  165. package/src/extension/tool-description.js +2 -3
  166. package/src/extension/tool-result.d.ts +0 -1
  167. package/src/extension/tool-result.js +0 -1
  168. package/src/extension/upgrade-notice.d.ts +0 -1
  169. package/src/extension/upgrade-notice.js +0 -1
  170. package/src/inspectors/actions.d.ts +0 -1
  171. package/src/inspectors/actions.js +0 -1
  172. package/src/inspectors/ghostty/actions.d.ts +0 -1
  173. package/src/inspectors/ghostty/actions.js +0 -1
  174. package/src/inspectors/ghostty/plugin.d.ts +0 -1
  175. package/src/inspectors/ghostty/plugin.js +0 -1
  176. package/src/inspectors/herdr/actions.d.ts +0 -1
  177. package/src/inspectors/herdr/actions.js +0 -1
  178. package/src/inspectors/herdr/client.d.ts +0 -1
  179. package/src/inspectors/herdr/client.js +0 -1
  180. package/src/inspectors/herdr/focus.d.ts +0 -1
  181. package/src/inspectors/herdr/focus.js +0 -1
  182. package/src/inspectors/herdr/plugin.d.ts +0 -1
  183. package/src/inspectors/herdr/plugin.js +0 -1
  184. package/src/inspectors/herdr/project-panes.d.ts +0 -1
  185. package/src/inspectors/herdr/project-panes.js +0 -1
  186. package/src/inspectors/inspector-runner.d.ts +0 -1
  187. package/src/inspectors/inspector-runner.js +0 -1
  188. package/src/inspectors/plugins.d.ts +0 -1
  189. package/src/inspectors/plugins.js +0 -1
  190. package/src/inspectors/session-roots-codec.d.ts +0 -1
  191. package/src/inspectors/session-roots-codec.js +0 -1
  192. package/src/inspectors/shell-command.d.ts +0 -1
  193. package/src/inspectors/shell-command.js +0 -1
  194. package/src/inspectors/tmux/actions.d.ts +0 -1
  195. package/src/inspectors/tmux/actions.js +0 -1
  196. package/src/inspectors/tmux/client.d.ts +0 -1
  197. package/src/inspectors/tmux/client.js +0 -1
  198. package/src/inspectors/tmux/plugin.d.ts +0 -1
  199. package/src/inspectors/tmux/plugin.js +0 -1
  200. package/src/inspectors/types.d.ts +0 -1
  201. package/src/inspectors/types.js +0 -1
  202. package/src/integrations/herdr-status.d.ts +0 -1
  203. package/src/integrations/herdr-status.js +0 -1
  204. package/src/integrations/pi-web-session-liveness.d.ts +0 -1
  205. package/src/integrations/pi-web-session-liveness.js +0 -1
  206. package/src/integrations/program-status.d.ts +0 -1
  207. package/src/integrations/program-status.js +0 -1
  208. package/src/intercom/intercom-bridge.d.ts +0 -1
  209. package/src/intercom/intercom-bridge.js +0 -1
  210. package/src/intercom/native-supervisor-channel.d.ts +0 -1
  211. package/src/intercom/native-supervisor-channel.js +1 -2
  212. package/src/intercom/result-intercom.d.ts +0 -1
  213. package/src/intercom/result-intercom.js +0 -1
  214. package/src/intercom/supervisor-ui.d.ts +0 -1
  215. package/src/intercom/supervisor-ui.js +0 -1
  216. package/src/missions/actions.d.ts +0 -1
  217. package/src/missions/actions.js +0 -1
  218. package/src/missions/goal-driver.d.ts +0 -1
  219. package/src/missions/goal-driver.js +0 -1
  220. package/src/missions/lifecycle.d.ts +0 -1
  221. package/src/missions/lifecycle.js +0 -1
  222. package/src/missions/store.d.ts +0 -1
  223. package/src/missions/store.js +0 -1
  224. package/src/missions/types.d.ts +0 -1
  225. package/src/missions/types.js +0 -1
  226. package/src/missions/workflow-state.d.ts +0 -1
  227. package/src/missions/workflow-state.js +0 -1
  228. package/src/policy/authority.d.ts +0 -1
  229. package/src/policy/authority.js +0 -1
  230. package/src/profiles/profiles.d.ts +0 -1
  231. package/src/profiles/profiles.js +0 -1
  232. package/src/runs/background/active-async-capacity.d.ts +0 -1
  233. package/src/runs/background/active-async-capacity.js +0 -1
  234. package/src/runs/background/active-run-index.d.ts +0 -1
  235. package/src/runs/background/active-run-index.js +0 -1
  236. package/src/runs/background/async-execution.d.ts +0 -1
  237. package/src/runs/background/async-execution.js +0 -1
  238. package/src/runs/background/async-job-tracker.d.ts +0 -1
  239. package/src/runs/background/async-job-tracker.js +0 -1
  240. package/src/runs/background/async-resume.d.ts +0 -1
  241. package/src/runs/background/async-resume.js +0 -1
  242. package/src/runs/background/async-retention.d.ts +0 -1
  243. package/src/runs/background/async-retention.js +0 -1
  244. package/src/runs/background/async-status-snapshot.d.ts +0 -1
  245. package/src/runs/background/async-status-snapshot.js +0 -1
  246. package/src/runs/background/async-status.d.ts +0 -1
  247. package/src/runs/background/async-status.js +0 -1
  248. package/src/runs/background/auto-drain.d.ts +0 -1
  249. package/src/runs/background/auto-drain.js +0 -1
  250. package/src/runs/background/await-async-run.d.ts +0 -1
  251. package/src/runs/background/await-async-run.js +0 -1
  252. package/src/runs/background/binary-bootstrap.d.ts +0 -1
  253. package/src/runs/background/binary-bootstrap.js +0 -1
  254. package/src/runs/background/calendar-schedule.d.ts +0 -1
  255. package/src/runs/background/calendar-schedule.js +0 -1
  256. package/src/runs/background/chain-append.d.ts +0 -1
  257. package/src/runs/background/chain-append.js +0 -1
  258. package/src/runs/background/chain-root-attachment.d.ts +0 -1
  259. package/src/runs/background/chain-root-attachment.js +0 -1
  260. package/src/runs/background/completion-batcher.d.ts +0 -1
  261. package/src/runs/background/completion-batcher.js +0 -1
  262. package/src/runs/background/completion-dedupe.d.ts +0 -1
  263. package/src/runs/background/completion-dedupe.js +0 -1
  264. package/src/runs/background/completion-replay.d.ts +0 -1
  265. package/src/runs/background/completion-replay.js +0 -1
  266. package/src/runs/background/control-channel.d.ts +0 -1
  267. package/src/runs/background/control-channel.js +0 -1
  268. package/src/runs/background/fleet-view.d.ts +0 -1
  269. package/src/runs/background/fleet-view.js +0 -1
  270. package/src/runs/background/index-segment.d.ts +0 -1
  271. package/src/runs/background/index-segment.js +0 -1
  272. package/src/runs/background/inspect-rpc.d.ts +0 -1
  273. package/src/runs/background/inspect-rpc.js +0 -1
  274. package/src/runs/background/notify.d.ts +1 -2
  275. package/src/runs/background/notify.js +3 -4
  276. package/src/runs/background/owned-process-tree.d.ts +0 -1
  277. package/src/runs/background/owned-process-tree.js +0 -1
  278. package/src/runs/background/parallel-groups.d.ts +0 -1
  279. package/src/runs/background/parallel-groups.js +0 -1
  280. package/src/runs/background/pid-namespace.d.ts +0 -1
  281. package/src/runs/background/pid-namespace.js +0 -1
  282. package/src/runs/background/process-terminal-candidate.d.ts +0 -1
  283. package/src/runs/background/process-terminal-candidate.js +0 -1
  284. package/src/runs/background/process-terminal.d.ts +0 -1
  285. package/src/runs/background/process-terminal.js +0 -1
  286. package/src/runs/background/result-delivery-ownership.d.ts +0 -1
  287. package/src/runs/background/result-delivery-ownership.js +0 -1
  288. package/src/runs/background/result-files.d.ts +0 -1
  289. package/src/runs/background/result-files.js +0 -1
  290. package/src/runs/background/result-watcher.d.ts +0 -1
  291. package/src/runs/background/result-watcher.js +0 -1
  292. package/src/runs/background/resume-guidance.d.ts +0 -1
  293. package/src/runs/background/resume-guidance.js +0 -1
  294. package/src/runs/background/retained-children.d.ts +0 -1
  295. package/src/runs/background/retained-children.js +0 -1
  296. package/src/runs/background/retained-nested-route-tracker.d.ts +0 -1
  297. package/src/runs/background/retained-nested-route-tracker.js +0 -1
  298. package/src/runs/background/run-child-session.d.ts +0 -1
  299. package/src/runs/background/run-child-session.js +18 -1
  300. package/src/runs/background/run-id-query.d.ts +0 -1
  301. package/src/runs/background/run-id-query.js +0 -1
  302. package/src/runs/background/run-id-resolver.d.ts +0 -1
  303. package/src/runs/background/run-id-resolver.js +0 -1
  304. package/src/runs/background/run-status.d.ts +0 -1
  305. package/src/runs/background/run-status.js +0 -1
  306. package/src/runs/background/runner-aliases.d.ts +0 -1
  307. package/src/runs/background/runner-aliases.js +0 -1
  308. package/src/runs/background/runner-child-launch.d.ts +0 -1
  309. package/src/runs/background/runner-child-launch.js +0 -1
  310. package/src/runs/background/runner-child-sessions.d.ts +0 -1
  311. package/src/runs/background/runner-child-sessions.js +0 -1
  312. package/src/runs/background/runner-http-dispatcher.d.ts +0 -1
  313. package/src/runs/background/runner-http-dispatcher.js +0 -1
  314. package/src/runs/background/runner-startup-failure.d.ts +0 -1
  315. package/src/runs/background/runner-startup-failure.js +0 -1
  316. package/src/runs/background/scheduled-runs.d.ts +0 -1
  317. package/src/runs/background/scheduled-runs.js +0 -1
  318. package/src/runs/background/stale-run-reconciler.d.ts +0 -1
  319. package/src/runs/background/stale-run-reconciler.js +2 -1
  320. package/src/runs/background/steering.d.ts +0 -1
  321. package/src/runs/background/steering.js +0 -1
  322. package/src/runs/background/subagent-runner-bootstrap.d.ts +0 -1
  323. package/src/runs/background/subagent-runner-bootstrap.js +0 -1
  324. package/src/runs/background/subagent-runner.d.ts +0 -1
  325. package/src/runs/background/subagent-runner.js +0 -1
  326. package/src/runs/background/subagent-wait.d.ts +0 -1
  327. package/src/runs/background/subagent-wait.js +0 -1
  328. package/src/runs/background/terminal-run-index.d.ts +0 -1
  329. package/src/runs/background/terminal-run-index.js +0 -1
  330. package/src/runs/background/top-level-async.d.ts +0 -1
  331. package/src/runs/background/top-level-async.js +0 -1
  332. package/src/runs/background/wait-completions.d.ts +0 -1
  333. package/src/runs/background/wait-completions.js +0 -1
  334. package/src/runs/background/wait-config.d.ts +0 -1
  335. package/src/runs/background/wait-config.js +0 -1
  336. package/src/runs/background/wait-subscriptions.d.ts +0 -1
  337. package/src/runs/background/wait-subscriptions.js +4 -2
  338. package/src/runs/background/wait-tool.d.ts +0 -1
  339. package/src/runs/background/wait-tool.js +0 -1
  340. package/src/runs/background/workflow-terminal-proof.d.ts +0 -1
  341. package/src/runs/background/workflow-terminal-proof.js +0 -1
  342. package/src/runs/foreground/async-dismiss-action.d.ts +0 -1
  343. package/src/runs/foreground/async-dismiss-action.js +0 -1
  344. package/src/runs/foreground/async-steering-action.d.ts +0 -1
  345. package/src/runs/foreground/async-steering-action.js +0 -1
  346. package/src/runs/foreground/async-stop-action.d.ts +0 -1
  347. package/src/runs/foreground/async-stop-action.js +0 -1
  348. package/src/runs/foreground/command-action.d.ts +0 -1
  349. package/src/runs/foreground/command-action.js +0 -1
  350. package/src/runs/foreground/execution.d.ts +0 -1
  351. package/src/runs/foreground/execution.js +39 -3
  352. package/src/runs/foreground/foreground-control.d.ts +0 -1
  353. package/src/runs/foreground/foreground-control.js +0 -1
  354. package/src/runs/foreground/foreground-history.d.ts +0 -1
  355. package/src/runs/foreground/foreground-history.js +0 -1
  356. package/src/runs/foreground/prompt-audit.d.ts +0 -1
  357. package/src/runs/foreground/prompt-audit.js +0 -1
  358. package/src/runs/foreground/subagent-executor.d.ts +0 -1
  359. package/src/runs/foreground/subagent-executor.js +6 -4
  360. package/src/runs/foreground/workflow-detach-reconcile.d.ts +0 -1
  361. package/src/runs/foreground/workflow-detach-reconcile.js +0 -1
  362. package/src/runs/foreground/workflow-foreground-steering.d.ts +0 -1
  363. package/src/runs/foreground/workflow-foreground-steering.js +0 -1
  364. package/src/runs/shared/abort-recovery.d.ts +0 -1
  365. package/src/runs/shared/abort-recovery.js +0 -1
  366. package/src/runs/shared/acceptance.d.ts +0 -1
  367. package/src/runs/shared/acceptance.js +0 -1
  368. package/src/runs/shared/agent-contract.d.ts +0 -1
  369. package/src/runs/shared/agent-contract.js +0 -1
  370. package/src/runs/shared/async-status-projection.d.ts +0 -1
  371. package/src/runs/shared/async-status-projection.js +0 -1
  372. package/src/runs/shared/background-process-options.d.ts +0 -1
  373. package/src/runs/shared/background-process-options.js +0 -1
  374. package/src/runs/shared/capability-ceiling.d.ts +0 -1
  375. package/src/runs/shared/capability-ceiling.js +0 -1
  376. package/src/runs/shared/chain-outputs.d.ts +0 -1
  377. package/src/runs/shared/chain-outputs.js +0 -1
  378. package/src/runs/shared/child-commands.d.ts +0 -1
  379. package/src/runs/shared/child-commands.js +2 -2
  380. package/src/runs/shared/child-hooks.d.ts +0 -1
  381. package/src/runs/shared/child-hooks.js +0 -1
  382. package/src/runs/shared/child-identity.d.ts +0 -1
  383. package/src/runs/shared/child-identity.js +0 -1
  384. package/src/runs/shared/child-launch-plan.d.ts +0 -1
  385. package/src/runs/shared/child-launch-plan.js +0 -1
  386. package/src/runs/shared/child-launch.d.ts +0 -1
  387. package/src/runs/shared/child-launch.js +0 -1
  388. package/src/runs/shared/child-lifecycle.d.ts +0 -1
  389. package/src/runs/shared/child-lifecycle.js +0 -1
  390. package/src/runs/shared/child-runtime-config.d.ts +0 -1
  391. package/src/runs/shared/child-runtime-config.js +0 -1
  392. package/src/runs/shared/child-session.d.ts +0 -1
  393. package/src/runs/shared/child-session.js +2 -3
  394. package/src/runs/shared/child-tool-plan.d.ts +0 -1
  395. package/src/runs/shared/child-tool-plan.js +0 -1
  396. package/src/runs/shared/claude-code-adapter.d.ts +0 -1
  397. package/src/runs/shared/claude-code-adapter.js +0 -1
  398. package/src/runs/shared/codex-exec-adapter.d.ts +0 -1
  399. package/src/runs/shared/codex-exec-adapter.js +0 -1
  400. package/src/runs/shared/context-mode.d.ts +0 -1
  401. package/src/runs/shared/context-mode.js +0 -1
  402. package/src/runs/shared/cursor-agent-adapter.d.ts +0 -1
  403. package/src/runs/shared/cursor-agent-adapter.js +0 -1
  404. package/src/runs/shared/dynamic-fanout.d.ts +0 -1
  405. package/src/runs/shared/dynamic-fanout.js +0 -1
  406. package/src/runs/shared/effective-system-prompt.d.ts +0 -1
  407. package/src/runs/shared/effective-system-prompt.js +0 -1
  408. package/src/runs/shared/extension-bindings.d.ts +0 -1
  409. package/src/runs/shared/extension-bindings.js +0 -1
  410. package/src/runs/shared/external-cli-contract.d.ts +0 -1
  411. package/src/runs/shared/external-cli-contract.js +0 -1
  412. package/src/runs/shared/external-cli-preflight.d.ts +0 -1
  413. package/src/runs/shared/external-cli-preflight.js +0 -1
  414. package/src/runs/shared/external-cli-runner.d.ts +0 -1
  415. package/src/runs/shared/external-cli-runner.js +0 -1
  416. package/src/runs/shared/external-job-bridge.d.ts +0 -1
  417. package/src/runs/shared/external-job-bridge.js +0 -1
  418. package/src/runs/shared/external-job-runner.d.ts +0 -1
  419. package/src/runs/shared/external-job-runner.js +0 -1
  420. package/src/runs/shared/fast-mode-extension.d.ts +0 -1
  421. package/src/runs/shared/fast-mode-extension.js +0 -1
  422. package/src/runs/shared/git-environment.d.ts +0 -1
  423. package/src/runs/shared/git-environment.js +0 -1
  424. package/src/runs/shared/herdr-connection.d.ts +0 -1
  425. package/src/runs/shared/herdr-connection.js +0 -1
  426. package/src/runs/shared/herdr-external-adapters.d.ts +0 -1
  427. package/src/runs/shared/herdr-external-adapters.js +0 -1
  428. package/src/runs/shared/herdr-machine.d.ts +0 -1
  429. package/src/runs/shared/herdr-machine.js +0 -1
  430. package/src/runs/shared/herdr-pi-protocol.d.ts +0 -1
  431. package/src/runs/shared/herdr-pi-protocol.js +0 -1
  432. package/src/runs/shared/herdr-placed-run.d.ts +0 -1
  433. package/src/runs/shared/herdr-placed-run.js +0 -1
  434. package/src/runs/shared/host-step-status.d.ts +0 -1
  435. package/src/runs/shared/host-step-status.js +0 -1
  436. package/src/runs/shared/lane-metadata.d.ts +0 -1
  437. package/src/runs/shared/lane-metadata.js +0 -1
  438. package/src/runs/shared/launch-cwd.d.ts +0 -1
  439. package/src/runs/shared/launch-cwd.js +0 -1
  440. package/src/runs/shared/long-running-guard.d.ts +0 -1
  441. package/src/runs/shared/long-running-guard.js +0 -1
  442. package/src/runs/shared/mcp-config-sources.d.ts +0 -1
  443. package/src/runs/shared/mcp-config-sources.js +0 -1
  444. package/src/runs/shared/mcp-direct-tool-allowlist.d.ts +0 -1
  445. package/src/runs/shared/mcp-direct-tool-allowlist.js +0 -1
  446. package/src/runs/shared/mcp-direct-tool-grant.d.ts +0 -1
  447. package/src/runs/shared/mcp-direct-tool-grant.js +0 -1
  448. package/src/runs/shared/model-resolution-diagnostic.d.ts +0 -1
  449. package/src/runs/shared/model-resolution-diagnostic.js +0 -1
  450. package/src/runs/shared/model-resolution.d.ts +0 -1
  451. package/src/runs/shared/model-resolution.js +0 -1
  452. package/src/runs/shared/model-scope.d.ts +0 -1
  453. package/src/runs/shared/model-scope.js +0 -1
  454. package/src/runs/shared/mutation-evidence.d.ts +0 -1
  455. package/src/runs/shared/mutation-evidence.js +0 -1
  456. package/src/runs/shared/nested-events.d.ts +0 -1
  457. package/src/runs/shared/nested-events.js +0 -1
  458. package/src/runs/shared/nested-path.d.ts +0 -1
  459. package/src/runs/shared/nested-path.js +0 -1
  460. package/src/runs/shared/nested-render.d.ts +0 -1
  461. package/src/runs/shared/nested-render.js +0 -1
  462. package/src/runs/shared/orca-progress-tabs.d.ts +0 -1
  463. package/src/runs/shared/orca-progress-tabs.js +0 -1
  464. package/src/runs/shared/parallel-handoff.d.ts +0 -1
  465. package/src/runs/shared/parallel-handoff.js +0 -1
  466. package/src/runs/shared/parallel-utils.d.ts +0 -1
  467. package/src/runs/shared/parallel-utils.js +0 -1
  468. package/src/runs/shared/partial-output.d.ts +0 -1
  469. package/src/runs/shared/partial-output.js +0 -1
  470. package/src/runs/shared/permissions.d.ts +0 -1
  471. package/src/runs/shared/permissions.js +0 -1
  472. package/src/runs/shared/pi-spawn.d.ts +0 -1
  473. package/src/runs/shared/pi-spawn.js +0 -1
  474. package/src/runs/shared/process-signal.d.ts +0 -1
  475. package/src/runs/shared/process-signal.js +0 -1
  476. package/src/runs/shared/readonly-drain-observation.d.ts +0 -1
  477. package/src/runs/shared/readonly-drain-observation.js +0 -1
  478. package/src/runs/shared/run-fanout-budget.d.ts +0 -1
  479. package/src/runs/shared/run-fanout-budget.js +0 -1
  480. package/src/runs/shared/run-ownership.d.ts +0 -1
  481. package/src/runs/shared/run-ownership.js +0 -1
  482. package/src/runs/shared/runner-launcher.d.ts +0 -1
  483. package/src/runs/shared/runner-launcher.js +0 -1
  484. package/src/runs/shared/runtime-acknowledged-extensions.d.ts +0 -1
  485. package/src/runs/shared/runtime-acknowledged-extensions.js +0 -1
  486. package/src/runs/shared/session-lease.d.ts +0 -1
  487. package/src/runs/shared/session-lease.js +0 -1
  488. package/src/runs/shared/single-output.d.ts +0 -1
  489. package/src/runs/shared/single-output.js +0 -1
  490. package/src/runs/shared/spawn-budget.d.ts +0 -1
  491. package/src/runs/shared/spawn-budget.js +0 -1
  492. package/src/runs/shared/structured-output.d.ts +1 -1
  493. package/src/runs/shared/structured-output.js +1 -1
  494. package/src/runs/shared/subagent-control.d.ts +0 -1
  495. package/src/runs/shared/subagent-control.js +0 -1
  496. package/src/runs/shared/subagent-prompt-runtime.d.ts +0 -1
  497. package/src/runs/shared/subagent-prompt-runtime.js +2 -2
  498. package/src/runs/shared/tool-availability.d.ts +0 -1
  499. package/src/runs/shared/tool-availability.js +0 -1
  500. package/src/runs/shared/tool-budget.d.ts +0 -1
  501. package/src/runs/shared/tool-budget.js +0 -1
  502. package/src/runs/shared/tool-timeout.d.ts +0 -1
  503. package/src/runs/shared/tool-timeout.js +0 -1
  504. package/src/runs/shared/usage-budget.d.ts +0 -1
  505. package/src/runs/shared/usage-budget.js +0 -1
  506. package/src/runs/shared/usage-reconciliation.d.ts +0 -1
  507. package/src/runs/shared/usage-reconciliation.js +0 -1
  508. package/src/runs/shared/workflow-async-child-guidance.d.ts +0 -1
  509. package/src/runs/shared/workflow-async-child-guidance.js +0 -1
  510. package/src/runs/shared/workflow-graph.d.ts +0 -1
  511. package/src/runs/shared/workflow-graph.js +0 -1
  512. package/src/runs/shared/worktree-cleanup-apply.d.ts +0 -1
  513. package/src/runs/shared/worktree-cleanup-apply.js +0 -1
  514. package/src/runs/shared/worktree-cleanup-plan.d.ts +0 -1
  515. package/src/runs/shared/worktree-cleanup-plan.js +0 -1
  516. package/src/runs/shared/worktree-lock.d.ts +0 -1
  517. package/src/runs/shared/worktree-lock.js +0 -1
  518. package/src/runs/shared/worktree-setup-command.d.ts +0 -1
  519. package/src/runs/shared/worktree-setup-command.js +0 -1
  520. package/src/runs/shared/worktree.d.ts +0 -1
  521. package/src/runs/shared/worktree.js +0 -1
  522. package/src/shared/accessible-dir.d.ts +0 -1
  523. package/src/shared/accessible-dir.js +4 -2
  524. package/src/shared/agent-stream-options.d.ts +0 -1
  525. package/src/shared/agent-stream-options.js +0 -1
  526. package/src/shared/artifacts.d.ts +0 -1
  527. package/src/shared/artifacts.js +0 -1
  528. package/src/shared/atomic-json.d.ts +0 -1
  529. package/src/shared/atomic-json.js +0 -1
  530. package/src/shared/capacity-resilient-json.d.ts +0 -1
  531. package/src/shared/capacity-resilient-json.js +0 -1
  532. package/src/shared/child-cache-retention.d.ts +0 -1
  533. package/src/shared/child-cache-retention.js +0 -1
  534. package/src/shared/child-session-name.d.ts +0 -1
  535. package/src/shared/child-session-name.js +0 -1
  536. package/src/shared/child-transcript.d.ts +0 -1
  537. package/src/shared/child-transcript.js +0 -1
  538. package/src/shared/completion-owner.d.ts +0 -1
  539. package/src/shared/completion-owner.js +0 -1
  540. package/src/shared/disabled-features.d.ts +0 -1
  541. package/src/shared/disabled-features.js +0 -1
  542. package/src/shared/display-text.d.ts +0 -1
  543. package/src/shared/display-text.js +0 -1
  544. package/src/shared/edit-distance.d.ts +0 -1
  545. package/src/shared/edit-distance.js +0 -1
  546. package/src/shared/extension-context.d.ts +0 -1
  547. package/src/shared/extension-context.js +0 -1
  548. package/src/shared/file-coalescer.d.ts +0 -1
  549. package/src/shared/file-coalescer.js +0 -1
  550. package/src/shared/file-lease.d.ts +0 -1
  551. package/src/shared/file-lease.js +0 -1
  552. package/src/shared/file-system-retry.d.ts +0 -1
  553. package/src/shared/file-system-retry.js +0 -1
  554. package/src/shared/fork-context.d.ts +0 -1
  555. package/src/shared/fork-context.js +0 -1
  556. package/src/shared/fork-session-cwd.d.ts +0 -1
  557. package/src/shared/fork-session-cwd.js +0 -1
  558. package/src/shared/formatters.d.ts +0 -1
  559. package/src/shared/formatters.js +0 -1
  560. package/src/shared/jsonl-writer.d.ts +0 -1
  561. package/src/shared/jsonl-writer.js +0 -1
  562. package/src/shared/launch-contract.d.ts +0 -1
  563. package/src/shared/launch-contract.js +0 -1
  564. package/src/shared/model-info.d.ts +0 -1
  565. package/src/shared/model-info.js +0 -1
  566. package/src/shared/model-response-aliases.d.ts +0 -1
  567. package/src/shared/model-response-aliases.js +0 -1
  568. package/src/shared/node-executable.d.ts +0 -1
  569. package/src/shared/node-executable.js +0 -1
  570. package/src/shared/opencode-session-headers.d.ts +0 -1
  571. package/src/shared/opencode-session-headers.js +0 -1
  572. package/src/shared/package-version.d.ts +0 -1
  573. package/src/shared/package-version.js +0 -1
  574. package/src/shared/parent-wake.d.ts +9 -7
  575. package/src/shared/parent-wake.js +12 -15
  576. package/src/shared/prompt-resources.d.ts +0 -1
  577. package/src/shared/prompt-resources.js +0 -1
  578. package/src/shared/provider-diagnostics.d.ts +9 -0
  579. package/src/shared/provider-diagnostics.js +75 -0
  580. package/src/shared/pruned-fork.d.ts +0 -1
  581. package/src/shared/pruned-fork.js +0 -1
  582. package/src/shared/required-child-extensions.d.ts +0 -1
  583. package/src/shared/required-child-extensions.js +0 -1
  584. package/src/shared/runtime-module-path.d.ts +0 -1
  585. package/src/shared/runtime-module-path.js +0 -1
  586. package/src/shared/session-file-trust.d.ts +0 -1
  587. package/src/shared/session-file-trust.js +0 -1
  588. package/src/shared/session-identity.d.ts +0 -1
  589. package/src/shared/session-identity.js +0 -1
  590. package/src/shared/session-succession.d.ts +0 -1
  591. package/src/shared/session-succession.js +0 -1
  592. package/src/shared/session-tokens.d.ts +0 -1
  593. package/src/shared/session-tokens.js +0 -1
  594. package/src/shared/settings-file-lease.d.ts +0 -1
  595. package/src/shared/settings-file-lease.js +0 -1
  596. package/src/shared/settings.d.ts +0 -1
  597. package/src/shared/settings.js +0 -1
  598. package/src/shared/shortcuts.d.ts +0 -1
  599. package/src/shared/shortcuts.js +0 -1
  600. package/src/shared/status-format.d.ts +0 -1
  601. package/src/shared/status-format.js +0 -1
  602. package/src/shared/thinking-ceiling.d.ts +0 -1
  603. package/src/shared/thinking-ceiling.js +0 -1
  604. package/src/shared/types.d.ts +5 -1
  605. package/src/shared/types.js +0 -1
  606. package/src/shared/utf8.d.ts +0 -1
  607. package/src/shared/utf8.js +0 -1
  608. package/src/shared/utils.d.ts +0 -1
  609. package/src/shared/utils.js +0 -1
  610. package/src/shared/watch-strategy.d.ts +0 -1
  611. package/src/shared/watch-strategy.js +0 -1
  612. package/src/shared/workflow-child-permit.d.ts +0 -1
  613. package/src/shared/workflow-child-permit.js +0 -1
  614. package/src/slash/delegation-adapters.d.ts +3 -2
  615. package/src/slash/delegation-adapters.js +7 -1
  616. package/src/slash/delegation-json.d.ts +0 -1
  617. package/src/slash/delegation-json.js +0 -1
  618. package/src/slash/delegation-request.d.ts +0 -1
  619. package/src/slash/delegation-request.js +0 -1
  620. package/src/slash/prompt-template-bridge.d.ts +0 -1
  621. package/src/slash/prompt-template-bridge.js +3 -2
  622. package/src/slash/prompt-workflows.d.ts +0 -1
  623. package/src/slash/prompt-workflows.js +0 -1
  624. package/src/slash/selector.d.ts +0 -1
  625. package/src/slash/selector.js +0 -1
  626. package/src/slash/slash-bridge.d.ts +0 -1
  627. package/src/slash/slash-bridge.js +0 -1
  628. package/src/slash/slash-commands.d.ts +0 -1
  629. package/src/slash/slash-commands.js +1 -2
  630. package/src/slash/slash-live-state.d.ts +0 -1
  631. package/src/slash/slash-live-state.js +0 -1
  632. package/src/slash/subagent-cost.d.ts +0 -1
  633. package/src/slash/subagent-cost.js +0 -1
  634. package/src/slash/subagents-admin.d.ts +1 -1
  635. package/src/slash/subagents-admin.js +1 -2
  636. package/src/tui/fleet-layout.d.ts +20 -0
  637. package/src/tui/fleet-layout.js +17 -0
  638. package/src/tui/fleet-status.d.ts +0 -1
  639. package/src/tui/fleet-status.js +0 -1
  640. package/src/tui/fleet-transcript.d.ts +0 -1
  641. package/src/tui/fleet-transcript.js +0 -1
  642. package/src/tui/fleet-viewport.d.ts +12 -0
  643. package/src/tui/fleet-viewport.js +35 -0
  644. package/src/tui/fleet.d.ts +5 -7
  645. package/src/tui/fleet.js +69 -52
  646. package/src/tui/render-helpers.d.ts +0 -1
  647. package/src/tui/render-helpers.js +0 -1
  648. package/src/tui/render.d.ts +0 -1
  649. package/src/tui/render.js +48 -18
  650. package/src/tui/running-tone.d.ts +0 -1
  651. package/src/tui/running-tone.js +0 -1
  652. package/src/tui/subagent-messages.d.ts +0 -1
  653. package/src/tui/subagent-messages.js +0 -1
  654. package/src/watchdog/change-signature.d.ts +0 -1
  655. package/src/watchdog/change-signature.js +0 -1
  656. package/src/watchdog/child-status.d.ts +0 -1
  657. package/src/watchdog/child-status.js +0 -1
  658. package/src/watchdog/diff-tool.d.ts +0 -1
  659. package/src/watchdog/diff-tool.js +9 -4
  660. package/src/watchdog/emission-guard.d.ts +0 -1
  661. package/src/watchdog/emission-guard.js +0 -1
  662. package/src/watchdog/guidance.d.ts +0 -1
  663. package/src/watchdog/guidance.js +0 -1
  664. package/src/watchdog/lsp-diagnostics.d.ts +0 -1
  665. package/src/watchdog/lsp-diagnostics.js +0 -1
  666. package/src/watchdog/model-selection.d.ts +0 -1
  667. package/src/watchdog/model-selection.js +0 -1
  668. package/src/watchdog/permission-arbiter.d.ts +0 -1
  669. package/src/watchdog/permission-arbiter.js +0 -1
  670. package/src/watchdog/register-child.d.ts +0 -1
  671. package/src/watchdog/register-child.js +0 -1
  672. package/src/watchdog/register-main.d.ts +2 -1
  673. package/src/watchdog/register-main.js +8 -8
  674. package/src/watchdog/render.d.ts +0 -1
  675. package/src/watchdog/render.js +0 -1
  676. package/src/watchdog/review.d.ts +0 -1
  677. package/src/watchdog/review.js +0 -1
  678. package/src/watchdog/rules.d.ts +0 -1
  679. package/src/watchdog/rules.js +0 -1
  680. package/src/watchdog/runtime.d.ts +0 -1
  681. package/src/watchdog/runtime.js +0 -1
  682. package/src/watchdog/scope.d.ts +0 -1
  683. package/src/watchdog/scope.js +0 -1
  684. package/src/watchdog/settings.d.ts +0 -1
  685. package/src/watchdog/settings.js +0 -1
  686. package/src/watchdog/tool-actions.d.ts +0 -1
  687. package/src/watchdog/tool-actions.js +0 -1
  688. package/src/watchdog/turn-delta.d.ts +0 -1
  689. package/src/watchdog/turn-delta.js +0 -1
  690. package/src/watchdog/types.d.ts +0 -1
  691. package/src/watchdog/types.js +0 -1
  692. package/src/watchdog/warning-format.d.ts +0 -1
  693. package/src/watchdog/warning-format.js +0 -1
  694. package/src/workflows/chat-progress.d.ts +0 -1
  695. package/src/workflows/chat-progress.js +0 -1
  696. package/src/workflows/host-command.d.ts +0 -1
  697. package/src/workflows/host-command.js +0 -1
  698. package/src/workflows/scripted-workflow.d.ts +0 -1
  699. package/src/workflows/scripted-workflow.js +0 -1
  700. package/src/workflows/structured-workflow-scripts.d.ts +1 -1
  701. package/src/workflows/structured-workflow-scripts.js +22 -9
  702. package/src/workflows/workflow-checklist.d.ts +0 -1
  703. package/src/workflows/workflow-checklist.js +0 -1
  704. package/src/workflows/workflow-child-summary.d.ts +0 -1
  705. package/src/workflows/workflow-child-summary.js +0 -1
  706. package/src/workflows/workflow-preflight.d.ts +0 -1
  707. package/src/workflows/workflow-preflight.js +0 -1
  708. package/src/workflows/workflow-receipt.d.ts +0 -1
  709. package/src/workflows/workflow-receipt.js +0 -1
  710. package/src/workflows/workflow-resources.d.ts +0 -1
  711. package/src/workflows/workflow-resources.js +2 -3
  712. package/src/workflows/workflow-reuse.d.ts +0 -1
  713. package/src/workflows/workflow-reuse.js +0 -1
  714. package/src/workflows/workflow-revival.d.ts +0 -1
  715. package/src/workflows/workflow-revival.js +0 -1
  716. package/src/workflows/workflow-settlement.d.ts +0 -1
  717. package/src/workflows/workflow-settlement.js +0 -1
  718. package/index.d.ts.map +0 -1
  719. package/index.js.map +0 -1
  720. package/src/agents/advertised-agent-prompt.d.ts.map +0 -1
  721. package/src/agents/advertised-agent-prompt.js.map +0 -1
  722. package/src/agents/agent-management.d.ts.map +0 -1
  723. package/src/agents/agent-management.js.map +0 -1
  724. package/src/agents/agent-memory.d.ts.map +0 -1
  725. package/src/agents/agent-memory.js.map +0 -1
  726. package/src/agents/agent-refinements.d.ts.map +0 -1
  727. package/src/agents/agent-refinements.js.map +0 -1
  728. package/src/agents/agent-scope.d.ts.map +0 -1
  729. package/src/agents/agent-scope.js.map +0 -1
  730. package/src/agents/agent-selection.d.ts.map +0 -1
  731. package/src/agents/agent-selection.js.map +0 -1
  732. package/src/agents/agent-serializer.d.ts.map +0 -1
  733. package/src/agents/agent-serializer.js.map +0 -1
  734. package/src/agents/agents.d.ts.map +0 -1
  735. package/src/agents/agents.js.map +0 -1
  736. package/src/agents/builtin-names.d.ts.map +0 -1
  737. package/src/agents/builtin-names.js.map +0 -1
  738. package/src/agents/chain-serializer.d.ts.map +0 -1
  739. package/src/agents/chain-serializer.js.map +0 -1
  740. package/src/agents/frontmatter.d.ts.map +0 -1
  741. package/src/agents/frontmatter.js.map +0 -1
  742. package/src/agents/global-npm-root.d.ts.map +0 -1
  743. package/src/agents/global-npm-root.js.map +0 -1
  744. package/src/agents/identity.d.ts.map +0 -1
  745. package/src/agents/identity.js.map +0 -1
  746. package/src/agents/proactive-skills.d.ts.map +0 -1
  747. package/src/agents/proactive-skills.js.map +0 -1
  748. package/src/agents/runtime-agent-events.d.ts.map +0 -1
  749. package/src/agents/runtime-agent-events.js.map +0 -1
  750. package/src/agents/runtime-agent-registry.d.ts.map +0 -1
  751. package/src/agents/runtime-agent-registry.js.map +0 -1
  752. package/src/agents/skills.d.ts.map +0 -1
  753. package/src/agents/skills.js.map +0 -1
  754. package/src/api/agents.d.ts.map +0 -1
  755. package/src/api/agents.js.map +0 -1
  756. package/src/api/background-work.d.ts.map +0 -1
  757. package/src/api/background-work.js.map +0 -1
  758. package/src/api/capability-ceiling.d.ts.map +0 -1
  759. package/src/api/capability-ceiling.js.map +0 -1
  760. package/src/api/child-tool-plan.d.ts.map +0 -1
  761. package/src/api/child-tool-plan.js.map +0 -1
  762. package/src/api/control-channel.d.ts.map +0 -1
  763. package/src/api/control-channel.js.map +0 -1
  764. package/src/api/delegation.d.ts.map +0 -1
  765. package/src/api/delegation.js.map +0 -1
  766. package/src/api/external-job-provider.d.ts.map +0 -1
  767. package/src/api/external-job-provider.js.map +0 -1
  768. package/src/api/external-runs.d.ts.map +0 -1
  769. package/src/api/external-runs.js.map +0 -1
  770. package/src/api/inspectors.d.ts.map +0 -1
  771. package/src/api/inspectors.js.map +0 -1
  772. package/src/api/intercom-bridge.d.ts.map +0 -1
  773. package/src/api/intercom-bridge.js.map +0 -1
  774. package/src/api/preflight.d.ts.map +0 -1
  775. package/src/api/preflight.js.map +0 -1
  776. package/src/api/project-panes.d.ts.map +0 -1
  777. package/src/api/project-panes.js.map +0 -1
  778. package/src/api/required-child-extensions.d.ts.map +0 -1
  779. package/src/api/required-child-extensions.js.map +0 -1
  780. package/src/api/shared-types.d.ts.map +0 -1
  781. package/src/api/shared-types.js.map +0 -1
  782. package/src/api/workflow-resources.d.ts.map +0 -1
  783. package/src/api/workflow-resources.js.map +0 -1
  784. package/src/extension/active-runs-prompt.d.ts.map +0 -1
  785. package/src/extension/active-runs-prompt.js.map +0 -1
  786. package/src/extension/config.d.ts.map +0 -1
  787. package/src/extension/config.js.map +0 -1
  788. package/src/extension/control-notices.d.ts.map +0 -1
  789. package/src/extension/control-notices.js.map +0 -1
  790. package/src/extension/declaration-pinning.d.ts.map +0 -1
  791. package/src/extension/declaration-pinning.js.map +0 -1
  792. package/src/extension/doctor.d.ts.map +0 -1
  793. package/src/extension/doctor.js.map +0 -1
  794. package/src/extension/fanout-child.d.ts.map +0 -1
  795. package/src/extension/fanout-child.js.map +0 -1
  796. package/src/extension/herdr-pi-bridge.d.ts.map +0 -1
  797. package/src/extension/herdr-pi-bridge.js.map +0 -1
  798. package/src/extension/index.d.ts.map +0 -1
  799. package/src/extension/index.js.map +0 -1
  800. package/src/extension/public-execution.d.ts.map +0 -1
  801. package/src/extension/public-execution.js.map +0 -1
  802. package/src/extension/reply-workflow-script.d.ts.map +0 -1
  803. package/src/extension/reply-workflow-script.js.map +0 -1
  804. package/src/extension/rpc.d.ts.map +0 -1
  805. package/src/extension/rpc.js.map +0 -1
  806. package/src/extension/schemas.d.ts.map +0 -1
  807. package/src/extension/schemas.js.map +0 -1
  808. package/src/extension/steering-notices.d.ts.map +0 -1
  809. package/src/extension/steering-notices.js.map +0 -1
  810. package/src/extension/subagent-guide.d.ts.map +0 -1
  811. package/src/extension/subagent-guide.js.map +0 -1
  812. package/src/extension/subagent-options.d.ts.map +0 -1
  813. package/src/extension/subagent-options.js.map +0 -1
  814. package/src/extension/tool-activation.d.ts.map +0 -1
  815. package/src/extension/tool-activation.js.map +0 -1
  816. package/src/extension/tool-description.d.ts.map +0 -1
  817. package/src/extension/tool-description.js.map +0 -1
  818. package/src/extension/tool-result.d.ts.map +0 -1
  819. package/src/extension/tool-result.js.map +0 -1
  820. package/src/extension/upgrade-notice.d.ts.map +0 -1
  821. package/src/extension/upgrade-notice.js.map +0 -1
  822. package/src/inspectors/actions.d.ts.map +0 -1
  823. package/src/inspectors/actions.js.map +0 -1
  824. package/src/inspectors/ghostty/actions.d.ts.map +0 -1
  825. package/src/inspectors/ghostty/actions.js.map +0 -1
  826. package/src/inspectors/ghostty/plugin.d.ts.map +0 -1
  827. package/src/inspectors/ghostty/plugin.js.map +0 -1
  828. package/src/inspectors/herdr/actions.d.ts.map +0 -1
  829. package/src/inspectors/herdr/actions.js.map +0 -1
  830. package/src/inspectors/herdr/client.d.ts.map +0 -1
  831. package/src/inspectors/herdr/client.js.map +0 -1
  832. package/src/inspectors/herdr/focus.d.ts.map +0 -1
  833. package/src/inspectors/herdr/focus.js.map +0 -1
  834. package/src/inspectors/herdr/plugin.d.ts.map +0 -1
  835. package/src/inspectors/herdr/plugin.js.map +0 -1
  836. package/src/inspectors/herdr/project-panes.d.ts.map +0 -1
  837. package/src/inspectors/herdr/project-panes.js.map +0 -1
  838. package/src/inspectors/inspector-runner.d.ts.map +0 -1
  839. package/src/inspectors/inspector-runner.js.map +0 -1
  840. package/src/inspectors/plugins.d.ts.map +0 -1
  841. package/src/inspectors/plugins.js.map +0 -1
  842. package/src/inspectors/session-roots-codec.d.ts.map +0 -1
  843. package/src/inspectors/session-roots-codec.js.map +0 -1
  844. package/src/inspectors/shell-command.d.ts.map +0 -1
  845. package/src/inspectors/shell-command.js.map +0 -1
  846. package/src/inspectors/tmux/actions.d.ts.map +0 -1
  847. package/src/inspectors/tmux/actions.js.map +0 -1
  848. package/src/inspectors/tmux/client.d.ts.map +0 -1
  849. package/src/inspectors/tmux/client.js.map +0 -1
  850. package/src/inspectors/tmux/plugin.d.ts.map +0 -1
  851. package/src/inspectors/tmux/plugin.js.map +0 -1
  852. package/src/inspectors/types.d.ts.map +0 -1
  853. package/src/inspectors/types.js.map +0 -1
  854. package/src/integrations/herdr-status.d.ts.map +0 -1
  855. package/src/integrations/herdr-status.js.map +0 -1
  856. package/src/integrations/pi-web-session-liveness.d.ts.map +0 -1
  857. package/src/integrations/pi-web-session-liveness.js.map +0 -1
  858. package/src/integrations/program-status.d.ts.map +0 -1
  859. package/src/integrations/program-status.js.map +0 -1
  860. package/src/intercom/intercom-bridge.d.ts.map +0 -1
  861. package/src/intercom/intercom-bridge.js.map +0 -1
  862. package/src/intercom/native-supervisor-channel.d.ts.map +0 -1
  863. package/src/intercom/native-supervisor-channel.js.map +0 -1
  864. package/src/intercom/result-intercom.d.ts.map +0 -1
  865. package/src/intercom/result-intercom.js.map +0 -1
  866. package/src/intercom/supervisor-ui.d.ts.map +0 -1
  867. package/src/intercom/supervisor-ui.js.map +0 -1
  868. package/src/missions/actions.d.ts.map +0 -1
  869. package/src/missions/actions.js.map +0 -1
  870. package/src/missions/goal-driver.d.ts.map +0 -1
  871. package/src/missions/goal-driver.js.map +0 -1
  872. package/src/missions/lifecycle.d.ts.map +0 -1
  873. package/src/missions/lifecycle.js.map +0 -1
  874. package/src/missions/store.d.ts.map +0 -1
  875. package/src/missions/store.js.map +0 -1
  876. package/src/missions/types.d.ts.map +0 -1
  877. package/src/missions/types.js.map +0 -1
  878. package/src/missions/workflow-state.d.ts.map +0 -1
  879. package/src/missions/workflow-state.js.map +0 -1
  880. package/src/policy/authority.d.ts.map +0 -1
  881. package/src/policy/authority.js.map +0 -1
  882. package/src/profiles/profiles.d.ts.map +0 -1
  883. package/src/profiles/profiles.js.map +0 -1
  884. package/src/runs/background/active-async-capacity.d.ts.map +0 -1
  885. package/src/runs/background/active-async-capacity.js.map +0 -1
  886. package/src/runs/background/active-run-index.d.ts.map +0 -1
  887. package/src/runs/background/active-run-index.js.map +0 -1
  888. package/src/runs/background/async-execution.d.ts.map +0 -1
  889. package/src/runs/background/async-execution.js.map +0 -1
  890. package/src/runs/background/async-job-tracker.d.ts.map +0 -1
  891. package/src/runs/background/async-job-tracker.js.map +0 -1
  892. package/src/runs/background/async-resume.d.ts.map +0 -1
  893. package/src/runs/background/async-resume.js.map +0 -1
  894. package/src/runs/background/async-retention.d.ts.map +0 -1
  895. package/src/runs/background/async-retention.js.map +0 -1
  896. package/src/runs/background/async-status-snapshot.d.ts.map +0 -1
  897. package/src/runs/background/async-status-snapshot.js.map +0 -1
  898. package/src/runs/background/async-status.d.ts.map +0 -1
  899. package/src/runs/background/async-status.js.map +0 -1
  900. package/src/runs/background/auto-drain.d.ts.map +0 -1
  901. package/src/runs/background/auto-drain.js.map +0 -1
  902. package/src/runs/background/await-async-run.d.ts.map +0 -1
  903. package/src/runs/background/await-async-run.js.map +0 -1
  904. package/src/runs/background/binary-bootstrap.d.ts.map +0 -1
  905. package/src/runs/background/binary-bootstrap.js.map +0 -1
  906. package/src/runs/background/calendar-schedule.d.ts.map +0 -1
  907. package/src/runs/background/calendar-schedule.js.map +0 -1
  908. package/src/runs/background/chain-append.d.ts.map +0 -1
  909. package/src/runs/background/chain-append.js.map +0 -1
  910. package/src/runs/background/chain-root-attachment.d.ts.map +0 -1
  911. package/src/runs/background/chain-root-attachment.js.map +0 -1
  912. package/src/runs/background/completion-batcher.d.ts.map +0 -1
  913. package/src/runs/background/completion-batcher.js.map +0 -1
  914. package/src/runs/background/completion-dedupe.d.ts.map +0 -1
  915. package/src/runs/background/completion-dedupe.js.map +0 -1
  916. package/src/runs/background/completion-replay.d.ts.map +0 -1
  917. package/src/runs/background/completion-replay.js.map +0 -1
  918. package/src/runs/background/control-channel.d.ts.map +0 -1
  919. package/src/runs/background/control-channel.js.map +0 -1
  920. package/src/runs/background/fleet-view.d.ts.map +0 -1
  921. package/src/runs/background/fleet-view.js.map +0 -1
  922. package/src/runs/background/index-segment.d.ts.map +0 -1
  923. package/src/runs/background/index-segment.js.map +0 -1
  924. package/src/runs/background/inspect-rpc.d.ts.map +0 -1
  925. package/src/runs/background/inspect-rpc.js.map +0 -1
  926. package/src/runs/background/notify.d.ts.map +0 -1
  927. package/src/runs/background/notify.js.map +0 -1
  928. package/src/runs/background/owned-process-tree.d.ts.map +0 -1
  929. package/src/runs/background/owned-process-tree.js.map +0 -1
  930. package/src/runs/background/parallel-groups.d.ts.map +0 -1
  931. package/src/runs/background/parallel-groups.js.map +0 -1
  932. package/src/runs/background/pid-namespace.d.ts.map +0 -1
  933. package/src/runs/background/pid-namespace.js.map +0 -1
  934. package/src/runs/background/process-terminal-candidate.d.ts.map +0 -1
  935. package/src/runs/background/process-terminal-candidate.js.map +0 -1
  936. package/src/runs/background/process-terminal.d.ts.map +0 -1
  937. package/src/runs/background/process-terminal.js.map +0 -1
  938. package/src/runs/background/result-delivery-ownership.d.ts.map +0 -1
  939. package/src/runs/background/result-delivery-ownership.js.map +0 -1
  940. package/src/runs/background/result-files.d.ts.map +0 -1
  941. package/src/runs/background/result-files.js.map +0 -1
  942. package/src/runs/background/result-watcher.d.ts.map +0 -1
  943. package/src/runs/background/result-watcher.js.map +0 -1
  944. package/src/runs/background/resume-guidance.d.ts.map +0 -1
  945. package/src/runs/background/resume-guidance.js.map +0 -1
  946. package/src/runs/background/retained-children.d.ts.map +0 -1
  947. package/src/runs/background/retained-children.js.map +0 -1
  948. package/src/runs/background/retained-nested-route-tracker.d.ts.map +0 -1
  949. package/src/runs/background/retained-nested-route-tracker.js.map +0 -1
  950. package/src/runs/background/run-child-session.d.ts.map +0 -1
  951. package/src/runs/background/run-child-session.js.map +0 -1
  952. package/src/runs/background/run-id-query.d.ts.map +0 -1
  953. package/src/runs/background/run-id-query.js.map +0 -1
  954. package/src/runs/background/run-id-resolver.d.ts.map +0 -1
  955. package/src/runs/background/run-id-resolver.js.map +0 -1
  956. package/src/runs/background/run-status.d.ts.map +0 -1
  957. package/src/runs/background/run-status.js.map +0 -1
  958. package/src/runs/background/runner-aliases.d.ts.map +0 -1
  959. package/src/runs/background/runner-aliases.js.map +0 -1
  960. package/src/runs/background/runner-child-launch.d.ts.map +0 -1
  961. package/src/runs/background/runner-child-launch.js.map +0 -1
  962. package/src/runs/background/runner-child-sessions.d.ts.map +0 -1
  963. package/src/runs/background/runner-child-sessions.js.map +0 -1
  964. package/src/runs/background/runner-http-dispatcher.d.ts.map +0 -1
  965. package/src/runs/background/runner-http-dispatcher.js.map +0 -1
  966. package/src/runs/background/runner-startup-failure.d.ts.map +0 -1
  967. package/src/runs/background/runner-startup-failure.js.map +0 -1
  968. package/src/runs/background/scheduled-runs.d.ts.map +0 -1
  969. package/src/runs/background/scheduled-runs.js.map +0 -1
  970. package/src/runs/background/stale-run-reconciler.d.ts.map +0 -1
  971. package/src/runs/background/stale-run-reconciler.js.map +0 -1
  972. package/src/runs/background/steering.d.ts.map +0 -1
  973. package/src/runs/background/steering.js.map +0 -1
  974. package/src/runs/background/subagent-runner-bootstrap.d.ts.map +0 -1
  975. package/src/runs/background/subagent-runner-bootstrap.js.map +0 -1
  976. package/src/runs/background/subagent-runner.d.ts.map +0 -1
  977. package/src/runs/background/subagent-runner.js.map +0 -1
  978. package/src/runs/background/subagent-wait.d.ts.map +0 -1
  979. package/src/runs/background/subagent-wait.js.map +0 -1
  980. package/src/runs/background/terminal-run-index.d.ts.map +0 -1
  981. package/src/runs/background/terminal-run-index.js.map +0 -1
  982. package/src/runs/background/top-level-async.d.ts.map +0 -1
  983. package/src/runs/background/top-level-async.js.map +0 -1
  984. package/src/runs/background/wait-completions.d.ts.map +0 -1
  985. package/src/runs/background/wait-completions.js.map +0 -1
  986. package/src/runs/background/wait-config.d.ts.map +0 -1
  987. package/src/runs/background/wait-config.js.map +0 -1
  988. package/src/runs/background/wait-subscriptions.d.ts.map +0 -1
  989. package/src/runs/background/wait-subscriptions.js.map +0 -1
  990. package/src/runs/background/wait-tool.d.ts.map +0 -1
  991. package/src/runs/background/wait-tool.js.map +0 -1
  992. package/src/runs/background/workflow-terminal-proof.d.ts.map +0 -1
  993. package/src/runs/background/workflow-terminal-proof.js.map +0 -1
  994. package/src/runs/foreground/async-dismiss-action.d.ts.map +0 -1
  995. package/src/runs/foreground/async-dismiss-action.js.map +0 -1
  996. package/src/runs/foreground/async-steering-action.d.ts.map +0 -1
  997. package/src/runs/foreground/async-steering-action.js.map +0 -1
  998. package/src/runs/foreground/async-stop-action.d.ts.map +0 -1
  999. package/src/runs/foreground/async-stop-action.js.map +0 -1
  1000. package/src/runs/foreground/command-action.d.ts.map +0 -1
  1001. package/src/runs/foreground/command-action.js.map +0 -1
  1002. package/src/runs/foreground/execution.d.ts.map +0 -1
  1003. package/src/runs/foreground/execution.js.map +0 -1
  1004. package/src/runs/foreground/foreground-control.d.ts.map +0 -1
  1005. package/src/runs/foreground/foreground-control.js.map +0 -1
  1006. package/src/runs/foreground/foreground-history.d.ts.map +0 -1
  1007. package/src/runs/foreground/foreground-history.js.map +0 -1
  1008. package/src/runs/foreground/prompt-audit.d.ts.map +0 -1
  1009. package/src/runs/foreground/prompt-audit.js.map +0 -1
  1010. package/src/runs/foreground/subagent-executor.d.ts.map +0 -1
  1011. package/src/runs/foreground/subagent-executor.js.map +0 -1
  1012. package/src/runs/foreground/workflow-detach-reconcile.d.ts.map +0 -1
  1013. package/src/runs/foreground/workflow-detach-reconcile.js.map +0 -1
  1014. package/src/runs/foreground/workflow-foreground-steering.d.ts.map +0 -1
  1015. package/src/runs/foreground/workflow-foreground-steering.js.map +0 -1
  1016. package/src/runs/shared/abort-recovery.d.ts.map +0 -1
  1017. package/src/runs/shared/abort-recovery.js.map +0 -1
  1018. package/src/runs/shared/acceptance.d.ts.map +0 -1
  1019. package/src/runs/shared/acceptance.js.map +0 -1
  1020. package/src/runs/shared/agent-contract.d.ts.map +0 -1
  1021. package/src/runs/shared/agent-contract.js.map +0 -1
  1022. package/src/runs/shared/async-status-projection.d.ts.map +0 -1
  1023. package/src/runs/shared/async-status-projection.js.map +0 -1
  1024. package/src/runs/shared/background-process-options.d.ts.map +0 -1
  1025. package/src/runs/shared/background-process-options.js.map +0 -1
  1026. package/src/runs/shared/capability-ceiling.d.ts.map +0 -1
  1027. package/src/runs/shared/capability-ceiling.js.map +0 -1
  1028. package/src/runs/shared/chain-outputs.d.ts.map +0 -1
  1029. package/src/runs/shared/chain-outputs.js.map +0 -1
  1030. package/src/runs/shared/child-commands.d.ts.map +0 -1
  1031. package/src/runs/shared/child-commands.js.map +0 -1
  1032. package/src/runs/shared/child-hooks.d.ts.map +0 -1
  1033. package/src/runs/shared/child-hooks.js.map +0 -1
  1034. package/src/runs/shared/child-identity.d.ts.map +0 -1
  1035. package/src/runs/shared/child-identity.js.map +0 -1
  1036. package/src/runs/shared/child-launch-plan.d.ts.map +0 -1
  1037. package/src/runs/shared/child-launch-plan.js.map +0 -1
  1038. package/src/runs/shared/child-launch.d.ts.map +0 -1
  1039. package/src/runs/shared/child-launch.js.map +0 -1
  1040. package/src/runs/shared/child-lifecycle.d.ts.map +0 -1
  1041. package/src/runs/shared/child-lifecycle.js.map +0 -1
  1042. package/src/runs/shared/child-runtime-config.d.ts.map +0 -1
  1043. package/src/runs/shared/child-runtime-config.js.map +0 -1
  1044. package/src/runs/shared/child-session.d.ts.map +0 -1
  1045. package/src/runs/shared/child-session.js.map +0 -1
  1046. package/src/runs/shared/child-tool-plan.d.ts.map +0 -1
  1047. package/src/runs/shared/child-tool-plan.js.map +0 -1
  1048. package/src/runs/shared/claude-code-adapter.d.ts.map +0 -1
  1049. package/src/runs/shared/claude-code-adapter.js.map +0 -1
  1050. package/src/runs/shared/codex-exec-adapter.d.ts.map +0 -1
  1051. package/src/runs/shared/codex-exec-adapter.js.map +0 -1
  1052. package/src/runs/shared/context-mode.d.ts.map +0 -1
  1053. package/src/runs/shared/context-mode.js.map +0 -1
  1054. package/src/runs/shared/cursor-agent-adapter.d.ts.map +0 -1
  1055. package/src/runs/shared/cursor-agent-adapter.js.map +0 -1
  1056. package/src/runs/shared/dynamic-fanout.d.ts.map +0 -1
  1057. package/src/runs/shared/dynamic-fanout.js.map +0 -1
  1058. package/src/runs/shared/effective-system-prompt.d.ts.map +0 -1
  1059. package/src/runs/shared/effective-system-prompt.js.map +0 -1
  1060. package/src/runs/shared/extension-bindings.d.ts.map +0 -1
  1061. package/src/runs/shared/extension-bindings.js.map +0 -1
  1062. package/src/runs/shared/external-cli-contract.d.ts.map +0 -1
  1063. package/src/runs/shared/external-cli-contract.js.map +0 -1
  1064. package/src/runs/shared/external-cli-preflight.d.ts.map +0 -1
  1065. package/src/runs/shared/external-cli-preflight.js.map +0 -1
  1066. package/src/runs/shared/external-cli-runner.d.ts.map +0 -1
  1067. package/src/runs/shared/external-cli-runner.js.map +0 -1
  1068. package/src/runs/shared/external-job-bridge.d.ts.map +0 -1
  1069. package/src/runs/shared/external-job-bridge.js.map +0 -1
  1070. package/src/runs/shared/external-job-runner.d.ts.map +0 -1
  1071. package/src/runs/shared/external-job-runner.js.map +0 -1
  1072. package/src/runs/shared/fast-mode-extension.d.ts.map +0 -1
  1073. package/src/runs/shared/fast-mode-extension.js.map +0 -1
  1074. package/src/runs/shared/git-environment.d.ts.map +0 -1
  1075. package/src/runs/shared/git-environment.js.map +0 -1
  1076. package/src/runs/shared/herdr-connection.d.ts.map +0 -1
  1077. package/src/runs/shared/herdr-connection.js.map +0 -1
  1078. package/src/runs/shared/herdr-external-adapters.d.ts.map +0 -1
  1079. package/src/runs/shared/herdr-external-adapters.js.map +0 -1
  1080. package/src/runs/shared/herdr-machine.d.ts.map +0 -1
  1081. package/src/runs/shared/herdr-machine.js.map +0 -1
  1082. package/src/runs/shared/herdr-pi-protocol.d.ts.map +0 -1
  1083. package/src/runs/shared/herdr-pi-protocol.js.map +0 -1
  1084. package/src/runs/shared/herdr-placed-run.d.ts.map +0 -1
  1085. package/src/runs/shared/herdr-placed-run.js.map +0 -1
  1086. package/src/runs/shared/host-step-status.d.ts.map +0 -1
  1087. package/src/runs/shared/host-step-status.js.map +0 -1
  1088. package/src/runs/shared/lane-metadata.d.ts.map +0 -1
  1089. package/src/runs/shared/lane-metadata.js.map +0 -1
  1090. package/src/runs/shared/launch-cwd.d.ts.map +0 -1
  1091. package/src/runs/shared/launch-cwd.js.map +0 -1
  1092. package/src/runs/shared/long-running-guard.d.ts.map +0 -1
  1093. package/src/runs/shared/long-running-guard.js.map +0 -1
  1094. package/src/runs/shared/mcp-config-sources.d.ts.map +0 -1
  1095. package/src/runs/shared/mcp-config-sources.js.map +0 -1
  1096. package/src/runs/shared/mcp-direct-tool-allowlist.d.ts.map +0 -1
  1097. package/src/runs/shared/mcp-direct-tool-allowlist.js.map +0 -1
  1098. package/src/runs/shared/mcp-direct-tool-grant.d.ts.map +0 -1
  1099. package/src/runs/shared/mcp-direct-tool-grant.js.map +0 -1
  1100. package/src/runs/shared/model-resolution-diagnostic.d.ts.map +0 -1
  1101. package/src/runs/shared/model-resolution-diagnostic.js.map +0 -1
  1102. package/src/runs/shared/model-resolution.d.ts.map +0 -1
  1103. package/src/runs/shared/model-resolution.js.map +0 -1
  1104. package/src/runs/shared/model-scope.d.ts.map +0 -1
  1105. package/src/runs/shared/model-scope.js.map +0 -1
  1106. package/src/runs/shared/mutation-evidence.d.ts.map +0 -1
  1107. package/src/runs/shared/mutation-evidence.js.map +0 -1
  1108. package/src/runs/shared/nested-events.d.ts.map +0 -1
  1109. package/src/runs/shared/nested-events.js.map +0 -1
  1110. package/src/runs/shared/nested-path.d.ts.map +0 -1
  1111. package/src/runs/shared/nested-path.js.map +0 -1
  1112. package/src/runs/shared/nested-render.d.ts.map +0 -1
  1113. package/src/runs/shared/nested-render.js.map +0 -1
  1114. package/src/runs/shared/orca-progress-tabs.d.ts.map +0 -1
  1115. package/src/runs/shared/orca-progress-tabs.js.map +0 -1
  1116. package/src/runs/shared/parallel-handoff.d.ts.map +0 -1
  1117. package/src/runs/shared/parallel-handoff.js.map +0 -1
  1118. package/src/runs/shared/parallel-utils.d.ts.map +0 -1
  1119. package/src/runs/shared/parallel-utils.js.map +0 -1
  1120. package/src/runs/shared/partial-output.d.ts.map +0 -1
  1121. package/src/runs/shared/partial-output.js.map +0 -1
  1122. package/src/runs/shared/permissions.d.ts.map +0 -1
  1123. package/src/runs/shared/permissions.js.map +0 -1
  1124. package/src/runs/shared/pi-spawn.d.ts.map +0 -1
  1125. package/src/runs/shared/pi-spawn.js.map +0 -1
  1126. package/src/runs/shared/process-signal.d.ts.map +0 -1
  1127. package/src/runs/shared/process-signal.js.map +0 -1
  1128. package/src/runs/shared/readonly-drain-observation.d.ts.map +0 -1
  1129. package/src/runs/shared/readonly-drain-observation.js.map +0 -1
  1130. package/src/runs/shared/run-fanout-budget.d.ts.map +0 -1
  1131. package/src/runs/shared/run-fanout-budget.js.map +0 -1
  1132. package/src/runs/shared/run-ownership.d.ts.map +0 -1
  1133. package/src/runs/shared/run-ownership.js.map +0 -1
  1134. package/src/runs/shared/runner-launcher.d.ts.map +0 -1
  1135. package/src/runs/shared/runner-launcher.js.map +0 -1
  1136. package/src/runs/shared/runtime-acknowledged-extensions.d.ts.map +0 -1
  1137. package/src/runs/shared/runtime-acknowledged-extensions.js.map +0 -1
  1138. package/src/runs/shared/session-lease.d.ts.map +0 -1
  1139. package/src/runs/shared/session-lease.js.map +0 -1
  1140. package/src/runs/shared/single-output.d.ts.map +0 -1
  1141. package/src/runs/shared/single-output.js.map +0 -1
  1142. package/src/runs/shared/spawn-budget.d.ts.map +0 -1
  1143. package/src/runs/shared/spawn-budget.js.map +0 -1
  1144. package/src/runs/shared/structured-output.d.ts.map +0 -1
  1145. package/src/runs/shared/structured-output.js.map +0 -1
  1146. package/src/runs/shared/subagent-control.d.ts.map +0 -1
  1147. package/src/runs/shared/subagent-control.js.map +0 -1
  1148. package/src/runs/shared/subagent-prompt-runtime.d.ts.map +0 -1
  1149. package/src/runs/shared/subagent-prompt-runtime.js.map +0 -1
  1150. package/src/runs/shared/tool-availability.d.ts.map +0 -1
  1151. package/src/runs/shared/tool-availability.js.map +0 -1
  1152. package/src/runs/shared/tool-budget.d.ts.map +0 -1
  1153. package/src/runs/shared/tool-budget.js.map +0 -1
  1154. package/src/runs/shared/tool-timeout.d.ts.map +0 -1
  1155. package/src/runs/shared/tool-timeout.js.map +0 -1
  1156. package/src/runs/shared/usage-budget.d.ts.map +0 -1
  1157. package/src/runs/shared/usage-budget.js.map +0 -1
  1158. package/src/runs/shared/usage-reconciliation.d.ts.map +0 -1
  1159. package/src/runs/shared/usage-reconciliation.js.map +0 -1
  1160. package/src/runs/shared/workflow-async-child-guidance.d.ts.map +0 -1
  1161. package/src/runs/shared/workflow-async-child-guidance.js.map +0 -1
  1162. package/src/runs/shared/workflow-graph.d.ts.map +0 -1
  1163. package/src/runs/shared/workflow-graph.js.map +0 -1
  1164. package/src/runs/shared/worktree-cleanup-apply.d.ts.map +0 -1
  1165. package/src/runs/shared/worktree-cleanup-apply.js.map +0 -1
  1166. package/src/runs/shared/worktree-cleanup-plan.d.ts.map +0 -1
  1167. package/src/runs/shared/worktree-cleanup-plan.js.map +0 -1
  1168. package/src/runs/shared/worktree-lock.d.ts.map +0 -1
  1169. package/src/runs/shared/worktree-lock.js.map +0 -1
  1170. package/src/runs/shared/worktree-setup-command.d.ts.map +0 -1
  1171. package/src/runs/shared/worktree-setup-command.js.map +0 -1
  1172. package/src/runs/shared/worktree.d.ts.map +0 -1
  1173. package/src/runs/shared/worktree.js.map +0 -1
  1174. package/src/shared/accessible-dir.d.ts.map +0 -1
  1175. package/src/shared/accessible-dir.js.map +0 -1
  1176. package/src/shared/agent-stream-options.d.ts.map +0 -1
  1177. package/src/shared/agent-stream-options.js.map +0 -1
  1178. package/src/shared/artifacts.d.ts.map +0 -1
  1179. package/src/shared/artifacts.js.map +0 -1
  1180. package/src/shared/atomic-json.d.ts.map +0 -1
  1181. package/src/shared/atomic-json.js.map +0 -1
  1182. package/src/shared/capacity-resilient-json.d.ts.map +0 -1
  1183. package/src/shared/capacity-resilient-json.js.map +0 -1
  1184. package/src/shared/child-cache-retention.d.ts.map +0 -1
  1185. package/src/shared/child-cache-retention.js.map +0 -1
  1186. package/src/shared/child-session-name.d.ts.map +0 -1
  1187. package/src/shared/child-session-name.js.map +0 -1
  1188. package/src/shared/child-transcript.d.ts.map +0 -1
  1189. package/src/shared/child-transcript.js.map +0 -1
  1190. package/src/shared/completion-owner.d.ts.map +0 -1
  1191. package/src/shared/completion-owner.js.map +0 -1
  1192. package/src/shared/disabled-features.d.ts.map +0 -1
  1193. package/src/shared/disabled-features.js.map +0 -1
  1194. package/src/shared/display-text.d.ts.map +0 -1
  1195. package/src/shared/display-text.js.map +0 -1
  1196. package/src/shared/edit-distance.d.ts.map +0 -1
  1197. package/src/shared/edit-distance.js.map +0 -1
  1198. package/src/shared/extension-context.d.ts.map +0 -1
  1199. package/src/shared/extension-context.js.map +0 -1
  1200. package/src/shared/file-coalescer.d.ts.map +0 -1
  1201. package/src/shared/file-coalescer.js.map +0 -1
  1202. package/src/shared/file-lease.d.ts.map +0 -1
  1203. package/src/shared/file-lease.js.map +0 -1
  1204. package/src/shared/file-system-retry.d.ts.map +0 -1
  1205. package/src/shared/file-system-retry.js.map +0 -1
  1206. package/src/shared/fork-context.d.ts.map +0 -1
  1207. package/src/shared/fork-context.js.map +0 -1
  1208. package/src/shared/fork-session-cwd.d.ts.map +0 -1
  1209. package/src/shared/fork-session-cwd.js.map +0 -1
  1210. package/src/shared/formatters.d.ts.map +0 -1
  1211. package/src/shared/formatters.js.map +0 -1
  1212. package/src/shared/jsonl-writer.d.ts.map +0 -1
  1213. package/src/shared/jsonl-writer.js.map +0 -1
  1214. package/src/shared/launch-contract.d.ts.map +0 -1
  1215. package/src/shared/launch-contract.js.map +0 -1
  1216. package/src/shared/model-info.d.ts.map +0 -1
  1217. package/src/shared/model-info.js.map +0 -1
  1218. package/src/shared/model-response-aliases.d.ts.map +0 -1
  1219. package/src/shared/model-response-aliases.js.map +0 -1
  1220. package/src/shared/node-executable.d.ts.map +0 -1
  1221. package/src/shared/node-executable.js.map +0 -1
  1222. package/src/shared/opencode-session-headers.d.ts.map +0 -1
  1223. package/src/shared/opencode-session-headers.js.map +0 -1
  1224. package/src/shared/package-version.d.ts.map +0 -1
  1225. package/src/shared/package-version.js.map +0 -1
  1226. package/src/shared/parent-wake.d.ts.map +0 -1
  1227. package/src/shared/parent-wake.js.map +0 -1
  1228. package/src/shared/prompt-resources.d.ts.map +0 -1
  1229. package/src/shared/prompt-resources.js.map +0 -1
  1230. package/src/shared/pruned-fork.d.ts.map +0 -1
  1231. package/src/shared/pruned-fork.js.map +0 -1
  1232. package/src/shared/required-child-extensions.d.ts.map +0 -1
  1233. package/src/shared/required-child-extensions.js.map +0 -1
  1234. package/src/shared/runtime-module-path.d.ts.map +0 -1
  1235. package/src/shared/runtime-module-path.js.map +0 -1
  1236. package/src/shared/session-file-trust.d.ts.map +0 -1
  1237. package/src/shared/session-file-trust.js.map +0 -1
  1238. package/src/shared/session-identity.d.ts.map +0 -1
  1239. package/src/shared/session-identity.js.map +0 -1
  1240. package/src/shared/session-succession.d.ts.map +0 -1
  1241. package/src/shared/session-succession.js.map +0 -1
  1242. package/src/shared/session-tokens.d.ts.map +0 -1
  1243. package/src/shared/session-tokens.js.map +0 -1
  1244. package/src/shared/settings-file-lease.d.ts.map +0 -1
  1245. package/src/shared/settings-file-lease.js.map +0 -1
  1246. package/src/shared/settings.d.ts.map +0 -1
  1247. package/src/shared/settings.js.map +0 -1
  1248. package/src/shared/shortcuts.d.ts.map +0 -1
  1249. package/src/shared/shortcuts.js.map +0 -1
  1250. package/src/shared/status-format.d.ts.map +0 -1
  1251. package/src/shared/status-format.js.map +0 -1
  1252. package/src/shared/thinking-ceiling.d.ts.map +0 -1
  1253. package/src/shared/thinking-ceiling.js.map +0 -1
  1254. package/src/shared/types.d.ts.map +0 -1
  1255. package/src/shared/types.js.map +0 -1
  1256. package/src/shared/utf8.d.ts.map +0 -1
  1257. package/src/shared/utf8.js.map +0 -1
  1258. package/src/shared/utils.d.ts.map +0 -1
  1259. package/src/shared/utils.js.map +0 -1
  1260. package/src/shared/watch-strategy.d.ts.map +0 -1
  1261. package/src/shared/watch-strategy.js.map +0 -1
  1262. package/src/shared/workflow-child-permit.d.ts.map +0 -1
  1263. package/src/shared/workflow-child-permit.js.map +0 -1
  1264. package/src/slash/delegation-adapters.d.ts.map +0 -1
  1265. package/src/slash/delegation-adapters.js.map +0 -1
  1266. package/src/slash/delegation-json.d.ts.map +0 -1
  1267. package/src/slash/delegation-json.js.map +0 -1
  1268. package/src/slash/delegation-request.d.ts.map +0 -1
  1269. package/src/slash/delegation-request.js.map +0 -1
  1270. package/src/slash/prompt-template-bridge.d.ts.map +0 -1
  1271. package/src/slash/prompt-template-bridge.js.map +0 -1
  1272. package/src/slash/prompt-workflows.d.ts.map +0 -1
  1273. package/src/slash/prompt-workflows.js.map +0 -1
  1274. package/src/slash/selector.d.ts.map +0 -1
  1275. package/src/slash/selector.js.map +0 -1
  1276. package/src/slash/slash-bridge.d.ts.map +0 -1
  1277. package/src/slash/slash-bridge.js.map +0 -1
  1278. package/src/slash/slash-commands.d.ts.map +0 -1
  1279. package/src/slash/slash-commands.js.map +0 -1
  1280. package/src/slash/slash-live-state.d.ts.map +0 -1
  1281. package/src/slash/slash-live-state.js.map +0 -1
  1282. package/src/slash/subagent-cost.d.ts.map +0 -1
  1283. package/src/slash/subagent-cost.js.map +0 -1
  1284. package/src/slash/subagents-admin.d.ts.map +0 -1
  1285. package/src/slash/subagents-admin.js.map +0 -1
  1286. package/src/tui/fleet-status.d.ts.map +0 -1
  1287. package/src/tui/fleet-status.js.map +0 -1
  1288. package/src/tui/fleet-transcript.d.ts.map +0 -1
  1289. package/src/tui/fleet-transcript.js.map +0 -1
  1290. package/src/tui/fleet.d.ts.map +0 -1
  1291. package/src/tui/fleet.js.map +0 -1
  1292. package/src/tui/render-helpers.d.ts.map +0 -1
  1293. package/src/tui/render-helpers.js.map +0 -1
  1294. package/src/tui/render.d.ts.map +0 -1
  1295. package/src/tui/render.js.map +0 -1
  1296. package/src/tui/running-tone.d.ts.map +0 -1
  1297. package/src/tui/running-tone.js.map +0 -1
  1298. package/src/tui/subagent-messages.d.ts.map +0 -1
  1299. package/src/tui/subagent-messages.js.map +0 -1
  1300. package/src/watchdog/change-signature.d.ts.map +0 -1
  1301. package/src/watchdog/change-signature.js.map +0 -1
  1302. package/src/watchdog/child-status.d.ts.map +0 -1
  1303. package/src/watchdog/child-status.js.map +0 -1
  1304. package/src/watchdog/diff-tool.d.ts.map +0 -1
  1305. package/src/watchdog/diff-tool.js.map +0 -1
  1306. package/src/watchdog/emission-guard.d.ts.map +0 -1
  1307. package/src/watchdog/emission-guard.js.map +0 -1
  1308. package/src/watchdog/guidance.d.ts.map +0 -1
  1309. package/src/watchdog/guidance.js.map +0 -1
  1310. package/src/watchdog/lsp-diagnostics.d.ts.map +0 -1
  1311. package/src/watchdog/lsp-diagnostics.js.map +0 -1
  1312. package/src/watchdog/model-selection.d.ts.map +0 -1
  1313. package/src/watchdog/model-selection.js.map +0 -1
  1314. package/src/watchdog/permission-arbiter.d.ts.map +0 -1
  1315. package/src/watchdog/permission-arbiter.js.map +0 -1
  1316. package/src/watchdog/register-child.d.ts.map +0 -1
  1317. package/src/watchdog/register-child.js.map +0 -1
  1318. package/src/watchdog/register-main.d.ts.map +0 -1
  1319. package/src/watchdog/register-main.js.map +0 -1
  1320. package/src/watchdog/render.d.ts.map +0 -1
  1321. package/src/watchdog/render.js.map +0 -1
  1322. package/src/watchdog/review.d.ts.map +0 -1
  1323. package/src/watchdog/review.js.map +0 -1
  1324. package/src/watchdog/rules.d.ts.map +0 -1
  1325. package/src/watchdog/rules.js.map +0 -1
  1326. package/src/watchdog/runtime.d.ts.map +0 -1
  1327. package/src/watchdog/runtime.js.map +0 -1
  1328. package/src/watchdog/scope.d.ts.map +0 -1
  1329. package/src/watchdog/scope.js.map +0 -1
  1330. package/src/watchdog/settings.d.ts.map +0 -1
  1331. package/src/watchdog/settings.js.map +0 -1
  1332. package/src/watchdog/tool-actions.d.ts.map +0 -1
  1333. package/src/watchdog/tool-actions.js.map +0 -1
  1334. package/src/watchdog/turn-delta.d.ts.map +0 -1
  1335. package/src/watchdog/turn-delta.js.map +0 -1
  1336. package/src/watchdog/types.d.ts.map +0 -1
  1337. package/src/watchdog/types.js.map +0 -1
  1338. package/src/watchdog/warning-format.d.ts.map +0 -1
  1339. package/src/watchdog/warning-format.js.map +0 -1
  1340. package/src/workflows/chat-progress.d.ts.map +0 -1
  1341. package/src/workflows/chat-progress.js.map +0 -1
  1342. package/src/workflows/host-command.d.ts.map +0 -1
  1343. package/src/workflows/host-command.js.map +0 -1
  1344. package/src/workflows/scripted-workflow.d.ts.map +0 -1
  1345. package/src/workflows/scripted-workflow.js.map +0 -1
  1346. package/src/workflows/structured-workflow-scripts.d.ts.map +0 -1
  1347. package/src/workflows/structured-workflow-scripts.js.map +0 -1
  1348. package/src/workflows/workflow-checklist.d.ts.map +0 -1
  1349. package/src/workflows/workflow-checklist.js.map +0 -1
  1350. package/src/workflows/workflow-child-summary.d.ts.map +0 -1
  1351. package/src/workflows/workflow-child-summary.js.map +0 -1
  1352. package/src/workflows/workflow-preflight.d.ts.map +0 -1
  1353. package/src/workflows/workflow-preflight.js.map +0 -1
  1354. package/src/workflows/workflow-receipt.d.ts.map +0 -1
  1355. package/src/workflows/workflow-receipt.js.map +0 -1
  1356. package/src/workflows/workflow-resources.d.ts.map +0 -1
  1357. package/src/workflows/workflow-resources.js.map +0 -1
  1358. package/src/workflows/workflow-reuse.d.ts.map +0 -1
  1359. package/src/workflows/workflow-reuse.js.map +0 -1
  1360. package/src/workflows/workflow-revival.d.ts.map +0 -1
  1361. package/src/workflows/workflow-revival.js.map +0 -1
  1362. package/src/workflows/workflow-settlement.d.ts.map +0 -1
  1363. package/src/workflows/workflow-settlement.js.map +0 -1
@@ -0,0 +1,425 @@
1
+ import {
2
+ buildEffectiveSystemPrompt,
3
+ canPreferForkFromSnapshot,
4
+ resolveSubagentLaunchContext
5
+ } from "./chunk-ARRKBB2B.js";
6
+ import "./chunk-EYNJ6VL6.js";
7
+ import {
8
+ loadConfig
9
+ } from "./chunk-WSBNENFS.js";
10
+ import {
11
+ nestedResultsPath,
12
+ processTerminalCandidatePath,
13
+ processTerminalPath,
14
+ resultFilePath
15
+ } from "./chunk-VJHOELQP.js";
16
+ import {
17
+ applyIntercomBridgeToAgent,
18
+ resolveIntercomBridge,
19
+ validateIntercomBridgeConfig
20
+ } from "./chunk-ZP3HODFH.js";
21
+ import {
22
+ AGENT_DEFINITION_PROJECTION_VERSION,
23
+ resolveLaunchBinding,
24
+ stableJsonDigest
25
+ } from "./chunk-7F6RKT6W.js";
26
+ import {
27
+ applyThinkingSuffix,
28
+ resolvePiLaunchToolPlan
29
+ } from "./chunk-G5DKFLLI.js";
30
+ import {
31
+ assertRequiredChildExtensionsAdmitted,
32
+ resolveRequiredChildExtensions
33
+ } from "./chunk-CTPAE36Y.js";
34
+ import {
35
+ getArtifactPaths,
36
+ getArtifactsDir
37
+ } from "./chunk-3DC5KBVP.js";
38
+ import {
39
+ assertClaudeCodeModelScope,
40
+ assertThinkingWithinCeiling,
41
+ discoverAgentSnapshot,
42
+ findBlockingAgentDiagnostic,
43
+ formatUnknownAgentError,
44
+ inheritsParentModel,
45
+ intersectThinkingCeilings,
46
+ isClaudeCodeAdapterId,
47
+ normalizeExtensionBindings,
48
+ normalizeSingleOutputOverride,
49
+ normalizeSkillInput,
50
+ projectScopeRequiresTrustMessage,
51
+ resolveAgentName,
52
+ resolveClaudeCodeOverride,
53
+ resolveEffectiveSubagentModel,
54
+ resolveEffectiveThinking,
55
+ resolveExecutionAgentScope,
56
+ resolveModelOrigin,
57
+ resolveModelScopesForAgent,
58
+ resolveModelSelection,
59
+ resolvePermissionRules,
60
+ resolveSingleOutputPath,
61
+ resolveSkillsWithFallback,
62
+ resolveStepBehavior,
63
+ unknownAgentDiagnosticContext
64
+ } from "./chunk-ZBC44JJ3.js";
65
+ import {
66
+ DIRS,
67
+ SUBAGENT_LIFECYCLE_ARTIFACT_VERSION,
68
+ TEMP_ROOT_DIR
69
+ } from "./chunk-5LFLVSTM.js";
70
+ import "./chunk-YFCK7H2S.js";
71
+ import {
72
+ capabilityCeilingAgentRestrictionMessage,
73
+ intersectSubagentCapabilityCeilings
74
+ } from "./chunk-Z7KVHQHL.js";
75
+
76
+ // src/api/preflight.ts
77
+ import * as fs from "node:fs";
78
+ import * as path from "node:path";
79
+ import { fileURLToPath } from "node:url";
80
+ var SUBAGENT_LAUNCH_CONTRACT_VERSION = 3;
81
+ var PREFLIGHT_ORCHESTRATOR_TARGET = "preflight";
82
+ function claudeCodeFailureCode(message) {
83
+ if (message.includes("subagent model scope")) return "model_scope";
84
+ if (message.startsWith("Thinking level '")) return "thinking_ceiling";
85
+ return "unsupported_mode";
86
+ }
87
+ function packageVersion() {
88
+ const packagePath = path.resolve(path.dirname(fileURLToPath(new URL("../src/api/preflight.js", import.meta.url).href)), "..", "..", "package.json");
89
+ const parsed = JSON.parse(fs.readFileSync(packagePath, "utf-8"));
90
+ if (typeof parsed.version !== "string" || !parsed.version.trim()) {
91
+ throw new Error(`Invalid package version in '${packagePath}'.`);
92
+ }
93
+ return parsed.version;
94
+ }
95
+ function digestContract(contract) {
96
+ return stableJsonDigest(contract);
97
+ }
98
+ function normalizeAvailableModels(models) {
99
+ return (models ?? []).map((model) => ({ ...model, fullId: model.fullId ?? `${model.provider}/${model.id}` }));
100
+ }
101
+ function resolveLaunchContractContext(input, agent) {
102
+ return resolveSubagentLaunchContext({
103
+ explicitContext: input.context,
104
+ agentDefaultContext: agent.defaultContext,
105
+ defaultSubagentContext: loadConfig().defaultSubagentContext,
106
+ canUseImplicitFork: canPreferForkFromSnapshot({
107
+ parentSessionFile: input.parentSessionFile,
108
+ leafId: input.parentLeafId
109
+ })
110
+ });
111
+ }
112
+ function taskWorkspaceScopeAuthorityDiagnostic(task) {
113
+ if (!task) return void 0;
114
+ const text = task.replace(/\s+/g, " ").trim();
115
+ if (!text) return void 0;
116
+ const createsWorkspacePackage = /\b(?:add|create|introduce|make|set up)\b.{0,80}\b(?:new\s+)?(?:workspace\s+)?package\b/i.test(text) || /\b(?:new\s+)?package\b.{0,80}\b(?:workspace|monorepo)\b/i.test(text);
117
+ if (!createsWorkspacePackage) return void 0;
118
+ const packageOnlyAuthority = /\b(?:only|solely)\b.{0,40}\b(?:edit|change|modify|touch|write(?:\s+to)?)\b.{0,80}\b(?:package(?:\s+directory)?|packages\/[\w.-]+)\b/i.test(text) || /\b(?:do not|don't|must not)\b.{0,40}\b(?:edit|change|modify|touch|write(?:\s+to)?)\b.{0,80}\b(?:root|workspace|lockfile|metadata)\b/i.test(text) || /\bwithout\b.{0,40}\b(?:root|workspace|lockfile|metadata)\b.{0,40}\b(?:edit|change|modification|write)s?\b/i.test(text);
119
+ if (!packageOnlyAuthority) return void 0;
120
+ return {
121
+ code: "workspace_scope_authority",
122
+ severity: "warning",
123
+ message: "Task asks for a workspace package change while limiting authority to package-scope edits. New workspace packages often need root workspace metadata or lockfile changes, so confirm that authority before launch."
124
+ };
125
+ }
126
+ function candidateList(inputAgent, selected, all) {
127
+ return [...all.builtin, ...all.package, ...all.user, ...all.project].filter((agent) => Boolean(resolveAgentName(inputAgent, [agent]).agent)).map((agent) => ({
128
+ name: agent.name,
129
+ ...agent.localName ? { localName: agent.localName } : {},
130
+ ...agent.packageName ? { packageName: agent.packageName } : {},
131
+ source: agent.source,
132
+ filePath: agent.filePath,
133
+ ...agent.disabled === true ? { disabled: true } : {},
134
+ selected: Boolean(selected && agent.filePath === selected.filePath && agent.name === selected.name)
135
+ }));
136
+ }
137
+ async function resolveSubagentLaunchContract(input) {
138
+ const diagnostics = [];
139
+ const authorityDiagnostic = taskWorkspaceScopeAuthorityDiagnostic(input.task);
140
+ if (authorityDiagnostic) diagnostics.push(authorityDiagnostic);
141
+ const effectiveCwd = path.resolve(input.cwd);
142
+ try {
143
+ if (!fs.statSync(effectiveCwd).isDirectory()) {
144
+ return { ok: false, code: "invalid_cwd", message: `cwd '${effectiveCwd}' is not a directory.`, diagnostics };
145
+ }
146
+ } catch (error) {
147
+ const detail = error instanceof Error ? ` ${error.message}` : "";
148
+ return { ok: false, code: "invalid_cwd", message: `cwd '${effectiveCwd}' is not a directory.${detail}`, diagnostics };
149
+ }
150
+ if (input.context !== void 0 && input.context !== "fresh" && input.context !== "fork") {
151
+ return { ok: false, code: "unsupported_mode", message: `Unsupported context '${String(input.context)}'; expected 'fresh' or 'fork'.`, diagnostics };
152
+ }
153
+ if (input.artifactDir !== void 0 && input.artifactDir !== "project" && input.artifactDir !== "session" && input.artifactDir !== "temp") {
154
+ return { ok: false, code: "invalid_artifact_dir", message: `Unsupported artifactDir '${String(input.artifactDir)}'; expected 'project', 'session', or 'temp'.`, diagnostics };
155
+ }
156
+ const bridgeOverride = input.intercomBridge === void 0 ? void 0 : validateIntercomBridgeConfig({ value: input.intercomBridge, label: "intercomBridge" });
157
+ if (bridgeOverride && !bridgeOverride.ok) {
158
+ return { ok: false, code: "invalid_intercom_bridge", message: bridgeOverride.error, diagnostics };
159
+ }
160
+ if (input.orchestratorTarget !== void 0 && (typeof input.orchestratorTarget !== "string" || !input.orchestratorTarget.trim())) {
161
+ return { ok: false, code: "invalid_intercom_bridge", message: "orchestratorTarget must be a non-empty string when provided.", diagnostics };
162
+ }
163
+ const scope = resolveExecutionAgentScope(input.agentScope);
164
+ if (input.projectTrusted === false && scope === "project") {
165
+ const message = projectScopeRequiresTrustMessage(effectiveCwd);
166
+ return { ok: false, code: "restricted_agent", message, diagnostics: [...diagnostics, { code: "restricted_agent", severity: "error", message }] };
167
+ }
168
+ const parentProvider = input.preferredProvider ?? input.parentModel?.provider;
169
+ const discovery = discoverAgentSnapshot(effectiveCwd, scope, parentProvider, { includeChains: false, projectTrusted: input.projectTrusted });
170
+ const discovered = discovery.effective;
171
+ const resolvedAgent = resolveAgentName(input.agent, discovered.agents);
172
+ const ambiguousCandidates = resolvedAgent.error ? discovered.agents.filter((agent2) => resolveAgentName(input.agent, [agent2]).agent) : resolvedAgent.agent;
173
+ const invalidAgent = findBlockingAgentDiagnostic(input.agent, ambiguousCandidates, discovered.agentDiagnostics);
174
+ if (invalidAgent) {
175
+ const message = `Agent '${input.agent}' has invalid configuration: ${invalidAgent.error}`;
176
+ return { ok: false, code: "missing_agent", message, diagnostics: [{ code: "missing_agent", severity: "error", message }] };
177
+ }
178
+ if (resolvedAgent.error) {
179
+ return { ok: false, code: "ambiguous_agent", message: resolvedAgent.error, diagnostics };
180
+ }
181
+ if (!resolvedAgent.agent) {
182
+ return { ok: false, code: "missing_agent", message: formatUnknownAgentError(input.agent, unknownAgentDiagnosticContext(discovered)), diagnostics };
183
+ }
184
+ const definitionAgent = resolvedAgent.agent;
185
+ let extensionBindings;
186
+ try {
187
+ extensionBindings = normalizeExtensionBindings(input.extensionBindings)?.value;
188
+ } catch (error) {
189
+ return { ok: false, code: "invalid_extension_bindings", message: error instanceof Error ? error.message : String(error), diagnostics };
190
+ }
191
+ if (extensionBindings !== void 0 && (definitionAgent.runner?.type === "external-cli" || definitionAgent.runner?.type === "external-job")) {
192
+ return { ok: false, code: "unsupported_mode", message: `extensionBindings is not supported for runner.type='${definitionAgent.runner.type}'.`, diagnostics };
193
+ }
194
+ const context = resolveLaunchContractContext(input, definitionAgent);
195
+ if (context === "fork") {
196
+ diagnostics.push({ code: "host_required", severity: "host-required", message: "Exact fork session branching requires Pi host session snapshots." });
197
+ }
198
+ const bridge = resolveIntercomBridge({
199
+ config: loadConfig().intercomBridge,
200
+ ...bridgeOverride ? { override: bridgeOverride.value } : {},
201
+ context,
202
+ orchestratorTarget: input.orchestratorTarget ?? PREFLIGHT_ORCHESTRATOR_TARGET
203
+ });
204
+ if (bridge.active && bridge.interpolatesOrchestratorTarget && input.orchestratorTarget === void 0) {
205
+ diagnostics.push({ code: "host_required", severity: "host-required", message: "The intercomBridge instruction file names the supervisor session; supply orchestratorTarget to bind the exact child prompt." });
206
+ }
207
+ const agent = applyIntercomBridgeToAgent(definitionAgent, bridge);
208
+ const effectiveCapabilityCeiling = intersectSubagentCapabilityCeilings(input.capabilityCeiling, input.inheritedCapabilityCeiling);
209
+ const restrictionMessage = capabilityCeilingAgentRestrictionMessage(agent.name, effectiveCapabilityCeiling);
210
+ if (restrictionMessage) return { ok: false, code: "restricted_agent", message: restrictionMessage, diagnostics };
211
+ const runId = input.runId ?? "preflight";
212
+ const skillInput = normalizeSkillInput(input.skill);
213
+ const outputOverride = normalizeSingleOutputOverride(input.output, agent.output);
214
+ const behavior = resolveStepBehavior(agent, {
215
+ ...outputOverride !== void 0 ? { output: outputOverride } : {},
216
+ ...input.outputMode !== void 0 ? { outputMode: input.outputMode } : {},
217
+ ...skillInput !== void 0 ? { skills: skillInput } : {},
218
+ ...input.model !== void 0 ? { model: input.model } : {},
219
+ ...input.outputSchema !== void 0 ? { outputSchema: input.outputSchema } : {}
220
+ });
221
+ const requestedSkills = behavior.skills === false ? [] : behavior.skills;
222
+ const resolvedSkills = resolveSkillsWithFallback(
223
+ requestedSkills,
224
+ effectiveCwd,
225
+ effectiveCwd,
226
+ agent.skillPath,
227
+ agent.filePath ? path.dirname(agent.filePath) : effectiveCwd
228
+ );
229
+ if (resolvedSkills.missing.includes("pi-subagents")) {
230
+ return { ok: false, code: "missing_skill", message: "The pi-subagents orchestration skill is not child-injectable.", diagnostics };
231
+ }
232
+ if (resolvedSkills.missing.length > 0) diagnostics.push({ code: "missing_skill", severity: "error", message: `Missing skills: ${resolvedSkills.missing.join(", ")}` });
233
+ const externalRunner = agent.runner?.type === "external-cli" || agent.runner?.type === "external-job";
234
+ try {
235
+ assertRequiredChildExtensionsAdmitted([resolveRequiredChildExtensions(input.parentSessionId)], { agent: agent.name, runnerType: agent.runner?.type });
236
+ } catch (error) {
237
+ const message = error instanceof Error ? error.message : String(error);
238
+ return { ok: false, code: "unsupported_mode", message, diagnostics };
239
+ }
240
+ if (externalRunner && behavior.outputSchema) {
241
+ return { ok: false, code: "unsupported_mode", message: `Agent '${agent.name}' uses runner.type='${agent.runner?.type}' and does not support: structured output.`, diagnostics };
242
+ }
243
+ const availableModels = normalizeAvailableModels(input.availableModels);
244
+ const preferredProvider = agent.modelProvider ?? input.preferredProvider ?? input.parentModel?.provider;
245
+ const modelScopes = resolveModelScopesForAgent(discovered.modelScope, agent.name, input.parentModel, input.scopedModelIds);
246
+ const modelOrigin = resolveModelOrigin({ explicitModel: input.model, agentModel: agent.model, parentModel: input.parentModel });
247
+ const primaryModel = externalRunner ? void 0 : resolveEffectiveSubagentModel(input.model, agent.model, input.parentModel, availableModels, preferredProvider, {
248
+ scope: modelScopes,
249
+ source: modelOrigin === "explicit" ? "explicit" : "inherited"
250
+ });
251
+ const effectiveThinkingConfig = input.thinking !== void 0 ? input.thinking : agent.thinking;
252
+ const thinkingCeiling = externalRunner ? void 0 : intersectThinkingCeilings(
253
+ discovered.maxThinking,
254
+ input.thinkingCeiling,
255
+ input.inheritedThinkingCeiling
256
+ );
257
+ const model = externalRunner ? void 0 : applyThinkingSuffix(resolveModelSelection(primaryModel, availableModels, preferredProvider, {
258
+ scope: modelScopes,
259
+ primaryModelFromParent: modelOrigin === "inherited" || inheritsParentModel(input.model, agent.model, input.parentModel),
260
+ origin: modelOrigin
261
+ }).model, effectiveThinkingConfig, input.thinking !== void 0);
262
+ if (!externalRunner) {
263
+ try {
264
+ assertThinkingWithinCeiling({ model, configThinking: effectiveThinkingConfig, ceiling: thinkingCeiling, agent: agent.name, runId });
265
+ } catch (error) {
266
+ const message = error instanceof Error ? error.message : String(error);
267
+ diagnostics.push({ code: "thinking_ceiling", severity: "error", message });
268
+ return { ok: false, code: "thinking_ceiling", message, diagnostics };
269
+ }
270
+ }
271
+ if (agent.runner?.type === "external-cli" && isClaudeCodeAdapterId(agent.runner.adapter)) {
272
+ try {
273
+ const override = resolveClaudeCodeOverride({
274
+ model: typeof input.model === "string" ? input.model : void 0,
275
+ agent,
276
+ thinking: typeof effectiveThinkingConfig === "string" ? effectiveThinkingConfig : void 0,
277
+ thinkingCeiling: intersectThinkingCeilings(discovered.maxThinking, input.thinkingCeiling, input.inheritedThinkingCeiling),
278
+ agentName: agent.name,
279
+ runId
280
+ });
281
+ assertClaudeCodeModelScope({ scopes: modelScopes, model: override?.model, agent: agent.name, runId });
282
+ } catch (error) {
283
+ const message = error instanceof Error ? error.message : String(error);
284
+ const code = claudeCodeFailureCode(message);
285
+ diagnostics.push({ code, severity: "error", message });
286
+ return { ok: false, code, message, diagnostics };
287
+ }
288
+ }
289
+ let toolPlan;
290
+ const permissionRules = resolvePermissionRules(loadConfig().permissions, agent.permissions);
291
+ const fast = input.fast ?? agent.fast;
292
+ const requiredExtensions = externalRunner ? [] : resolveRequiredChildExtensions(input.parentSessionId);
293
+ try {
294
+ toolPlan = resolvePiLaunchToolPlan({
295
+ tools: agent.tools,
296
+ excludeTools: agent.excludeTools,
297
+ allowNestedSubagents: agent.allowNestedSubagents,
298
+ extensions: agent.extensions,
299
+ subagentOnlyExtensions: agent.subagentOnlyExtensions,
300
+ requiredExtensions,
301
+ mcpDirectTools: agent.mcpDirectTools,
302
+ cwd: effectiveCwd,
303
+ requireReadTool: resolvedSkills.resolved.length > 0,
304
+ structuredOutput: Boolean(behavior.outputSchema),
305
+ fast,
306
+ model,
307
+ capabilityCeiling: effectiveCapabilityCeiling,
308
+ agentName: agent.name,
309
+ permissionRules,
310
+ runtimeSnapshotHost: input.runtimeSnapshotHost
311
+ });
312
+ } catch (error) {
313
+ const message = error instanceof Error ? error.message : String(error);
314
+ diagnostics.push({ code: "denied_required_tool", severity: "error", message });
315
+ return { ok: false, code: "denied_required_tool", message, diagnostics };
316
+ }
317
+ const artifactsEnabled = input.artifacts !== false;
318
+ const artifactsDir = artifactsEnabled ? getArtifactsDir(input.parentSessionFile ?? null, effectiveCwd, input.artifactDir) : void 0;
319
+ const artifactPaths = artifactsDir ? getArtifactPaths(artifactsDir, runId, agent.name, 0) : void 0;
320
+ const outputPath = resolveSingleOutputPath(behavior.output, effectiveCwd, effectiveCwd, artifactsDir ? path.join(artifactsDir, "outputs", runId) : void 0);
321
+ const sessionRoot = input.sessionDir ? path.join(path.resolve(input.sessionDir), runId) : input.sessionRoot ? path.join(path.resolve(input.sessionRoot), runId) : void 0;
322
+ const sessionDir = sessionRoot ? path.join(sessionRoot, "run-0") : void 0;
323
+ const lifecycleAsyncDir = input.nestedRootRunId ? path.join(TEMP_ROOT_DIR, "nested-subagent-runs", input.nestedRootRunId, runId) : path.join(DIRS.async, runId);
324
+ const lifecycleResultPath = input.nestedRootRunId ? nestedResultsPath(input.nestedRootRunId, runId) : resultFilePath(DIRS.results, runId);
325
+ if (!sessionDir) diagnostics.push({ code: "host_required", severity: "host-required", message: "No sessionRoot/sessionDir was supplied; exact child session paths require the Pi host session-root policy." });
326
+ if (!externalRunner && input.availableModels === void 0 && (input.model || agent.model || input.parentModel)) {
327
+ diagnostics.push({ code: "host_required", severity: "host-required", message: "No availableModels snapshot was supplied; model resolution may differ from the active Pi host registry." });
328
+ }
329
+ if (resolvedSkills.missing.length > 0) {
330
+ return { ok: false, code: "missing_skill", message: `Missing skills: ${resolvedSkills.missing.join(", ")}`, diagnostics };
331
+ }
332
+ const effectiveThinking = resolveEffectiveThinking(model, effectiveThinkingConfig);
333
+ const binding = resolveLaunchBinding({
334
+ agent,
335
+ task: input.task ?? "",
336
+ model,
337
+ ...fast !== void 0 ? { fast } : {},
338
+ ...effectiveThinking ? { thinking: effectiveThinking } : {},
339
+ systemPrompt: buildEffectiveSystemPrompt({ agent, resolvedSkills: resolvedSkills.resolved, cwd: effectiveCwd }),
340
+ skills: requestedSkills,
341
+ toolPlan,
342
+ ...outputPath ? { outputPath } : {},
343
+ outputMode: behavior.outputMode,
344
+ ...behavior.outputSchema ? { structuredOutputSchema: behavior.outputSchema } : {},
345
+ ...extensionBindings ? { extensionBindings } : {}
346
+ });
347
+ const candidates = candidateList(input.agent, agent, discovery.all);
348
+ const shadowedCandidates = candidates.filter((candidate) => !candidate.selected);
349
+ const contractBase = {
350
+ version: SUBAGENT_LAUNCH_CONTRACT_VERSION,
351
+ runId,
352
+ agent: {
353
+ name: agent.name,
354
+ ...agent.localName ? { localName: agent.localName } : {},
355
+ ...agent.packageName ? { packageName: agent.packageName } : {},
356
+ source: agent.source,
357
+ filePath: agent.filePath,
358
+ definitionProjectionVersion: AGENT_DEFINITION_PROJECTION_VERSION,
359
+ definitionDigest: binding.definitionDigest,
360
+ shadowedCandidates
361
+ },
362
+ context,
363
+ ...model ? { model } : {},
364
+ ...effectiveThinking ? { thinking: effectiveThinking } : {},
365
+ ...thinkingCeiling ? { thinkingCeiling } : {},
366
+ systemPromptMode: agent.systemPromptMode,
367
+ inheritProjectContext: agent.inheritProjectContext,
368
+ inheritGlobalContext: agent.inheritGlobalContext,
369
+ inheritSkills: agent.inheritSkills,
370
+ skills: {
371
+ requested: requestedSkills,
372
+ resolved: resolvedSkills.resolved.map((skill) => ({ name: skill.name, path: skill.path, source: skill.source })),
373
+ missing: resolvedSkills.missing
374
+ },
375
+ tools: {
376
+ requestedBuiltin: toolPlan.requestedBuiltinTools,
377
+ declaredBuiltin: toolPlan.declaredBuiltinTools,
378
+ ...toolPlan.excludeTools.length > 0 ? { excludeTools: toolPlan.excludeTools } : {},
379
+ effectiveAllowlist: toolPlan.effectiveToolAllowlist,
380
+ explicitAllowlist: toolPlan.explicitToolAllowlist,
381
+ requiredChildTools: toolPlan.requiredChildTools,
382
+ internalTools: toolPlan.internalTools,
383
+ mcp: toolPlan.effectiveMcpSelections,
384
+ effectiveMcpTools: toolPlan.effectiveMcpTools,
385
+ toolExtensionPaths: toolPlan.toolExtensionPaths,
386
+ runtimeExtensions: toolPlan.runtimeExtensions,
387
+ configuredExtensions: toolPlan.configuredExtensions,
388
+ requiredExtensionIds: toolPlan.requiredExtensions.map(({ id }) => id),
389
+ // Required paths are private launch authority; preflight exposes their safe IDs above.
390
+ extensionArgs: toolPlan.extensionArgs.filter((extensionPath) => !requiredExtensions.some(({ path: path2 }) => path2 === extensionPath)),
391
+ disableAmbientExtensions: toolPlan.disableAmbientExtensions,
392
+ fanoutAuthorized: toolPlan.fanoutAuthorized,
393
+ ...toolPlan.capabilityCeiling ? { capabilityCeiling: toolPlan.capabilityCeiling } : {},
394
+ ...toolPlan.capabilityAudit ? { capabilityAudit: toolPlan.capabilityAudit } : {}
395
+ },
396
+ intercomBridge: bridge.active && bridge.mode !== "off" ? { active: true, mode: bridge.mode } : { active: false, mode: bridge.mode },
397
+ roots: {
398
+ cwd: effectiveCwd,
399
+ ...sessionRoot ? { sessionRoot } : {},
400
+ ...sessionDir ? { sessionDir, sessionFile: path.join(sessionDir, "session.jsonl") } : {},
401
+ ...artifactsDir ? { artifactsDir } : {},
402
+ ...artifactPaths ? { artifactPaths } : {},
403
+ ...outputPath ? { outputPath } : {},
404
+ lifecycle: {
405
+ asyncDir: lifecycleAsyncDir,
406
+ resultPath: lifecycleResultPath,
407
+ statusPath: path.join(lifecycleAsyncDir, "status.json"),
408
+ eventsPath: path.join(lifecycleAsyncDir, "events.jsonl"),
409
+ processTerminalPath: processTerminalPath(lifecycleAsyncDir),
410
+ processTerminalCandidatePath: processTerminalCandidatePath(lifecycleAsyncDir)
411
+ }
412
+ },
413
+ protocol: {
414
+ lifecycleArtifactVersion: SUBAGENT_LIFECYCLE_ARTIFACT_VERSION,
415
+ packageVersion: packageVersion()
416
+ },
417
+ diagnostics,
418
+ launchContractDigest: binding.launchContractDigest
419
+ };
420
+ return { ok: true, contract: { ...contractBase, digest: digestContract(contractBase) } };
421
+ }
422
+ export {
423
+ SUBAGENT_LAUNCH_CONTRACT_VERSION,
424
+ resolveSubagentLaunchContract
425
+ };
@@ -0,0 +1,28 @@
1
+ import {
2
+ PROJECT_PANES_API_VERSION,
3
+ PROJECT_PANE_TRUST_STATUS,
4
+ closeProjectPane,
5
+ createProjectPaneManager,
6
+ focusProjectPane,
7
+ getProjectPaneStatus,
8
+ openProjectPane,
9
+ projectPaneBindingPath,
10
+ readProjectPaneBinding
11
+ } from "./chunk-V2JWDB5U.js";
12
+ import "./chunk-7J4ZXMY7.js";
13
+ import "./chunk-3DC5KBVP.js";
14
+ import "./chunk-ZBC44JJ3.js";
15
+ import "./chunk-5LFLVSTM.js";
16
+ import "./chunk-YFCK7H2S.js";
17
+ import "./chunk-Z7KVHQHL.js";
18
+ export {
19
+ PROJECT_PANES_API_VERSION,
20
+ PROJECT_PANE_TRUST_STATUS,
21
+ closeProjectPane,
22
+ createProjectPaneManager,
23
+ focusProjectPane,
24
+ getProjectPaneStatus,
25
+ openProjectPane,
26
+ projectPaneBindingPath,
27
+ readProjectPaneBinding
28
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ registerRequiredChildExtensions
3
+ } from "./chunk-CTPAE36Y.js";
4
+ export {
5
+ registerRequiredChildExtensions
6
+ };
@@ -0,0 +1,8 @@
1
+ import {
2
+ DEFAULT_FORK_PREAMBLE,
3
+ wrapForkTask
4
+ } from "./chunk-5LFLVSTM.js";
5
+ export {
6
+ DEFAULT_FORK_PREAMBLE,
7
+ wrapForkTask
8
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ registerWorkflowResource
3
+ } from "./chunk-NF7IEKBH.js";
4
+ import "./chunk-7F6RKT6W.js";
5
+ export {
6
+ registerWorkflowResource
7
+ };
package/docs/agents.md CHANGED
@@ -539,7 +539,7 @@ Examples:
539
539
 
540
540
  ### MCP tools
541
541
 
542
- When [pi-mcp-adapter](https://github.com/nicobailon/pi-mcp-adapter) is not installed and Pi has built-in MCP (Pi 0.99.2 or later), `mcp:server` and `mcp:server/tool` entries resolve against Pi's built-in MCP. Name the server and tool as the server reports them: `mcp:my-docs/get-item` selects the tool Pi registers as `mcp__my_docs__get_item`. The server part may also use the `-`→`_` form of its name that Pi's MCP namespace uses, such as `mcp:my_docs`. The child connects the servers in Pi's `mcp.json` (the project's `.pi/mcp.json` only when the parent trusts the project) and gets only the selected tools, as direct tools, whatever exposure the server is configured with; tools configured as `hidden` cannot be selected. Servers that an extension adds with `pi.registerMcpServer()` work in background children, because the registering extension loads there too. They do not work in foreground children, which load no ambient extensions, so a foreground launch that selects one fails and says to use `async: true`. The child waits for the selected servers' current MCP connection attempts before its first prompt, then rejects the launch if any selected tool is missing or not available as a direct tool. Pi's MCP request timeout still bounds each connection; stopping, interrupting, timing out, or shutting down the child cancels the startup wait. An unrelated server does not delay this check.
542
+ When [pi-mcp-adapter](https://github.com/nicobailon/pi-mcp-adapter) is not installed, `mcp:server` and `mcp:server/tool` entries resolve against Pi's built-in MCP. Name the server and tool as the server reports them: `mcp:my-docs/get-item` selects the tool Pi registers as `mcp__my_docs__get_item`. The server part may also use the `-`→`_` form of its name that Pi's MCP namespace uses, such as `mcp:my_docs`. The child connects the servers in Pi's `mcp.json` (the project's `.pi/mcp.json` only when the parent trusts the project) and gets only the selected tools, as direct tools, whatever exposure the server is configured with; tools configured as `hidden` cannot be selected. Servers that an extension adds with `pi.registerMcpServer()` work in background children, because the registering extension loads there too. They do not work in foreground children, which load no ambient extensions, so a foreground launch that selects one fails and says to use `async: true`. The child waits for the selected servers' current MCP connection attempts before its first prompt, then rejects the launch if any selected tool is missing or not available as a direct tool. Pi's MCP request timeout still bounds each connection; stopping, interrupting, timing out, or shutting down the child cancels the startup wait. An unrelated server does not delay this check.
543
543
 
544
544
  When pi-mcp-adapter is installed, it keeps priority and provides the direct MCP tools. Subagents only receive direct MCP tools when `mcp:` entries are listed in their frontmatter; global `directTools: true` in the adapter's MCP config is not enough by itself. The generic `mcp` proxy tool can still be used for discovery when available. The adapter caches tool metadata at startup, so after connecting a new MCP server for the first time, restart Pi before relying on direct tools. Server `includeTools` and `excludeTools` policies are enforced while resolving cached metadata for children: both accept exact names and `*`/`?` glob patterns against raw, generated-resource, and server/short/mcp/none-prefixed names, with `excludeTools` taking precedence. `mcp:` entries must name servers from the adapter's configuration files. A server that exists only in the adapter's runtime snapshot (registered at runtime, not persisted) cannot be provided to a child: children are pi sessions inside the parent or the runner process, not `pi` processes that could receive an MCP config argument, so such a launch fails with an error saying that MCP tools must come from an ambient adapter extension in a background child. An `mcp:` entry named `subagent` does not authorize nested fanout; declare the builtin `subagent` tool or set `allowNestedSubagents: true`. If a resolved direct MCP name is missing from the child registry, pi-subagents keeps the launch failed under the strict allowlist and reports the registration mismatch; check the resolved names against what the host or pi-mcp-adapter actually registers before child startup.
545
545
 
@@ -80,9 +80,9 @@ A local Pi child whose selected model is a virtual model (`pi.registerVirtualMod
80
80
 
81
81
  ## Tool activation lifecycle
82
82
 
83
- On Pi 0.86.1 or newer, when the model can take a new tool mid-conversation (see [`toolActivation`](#toolactivation)), a fresh unrestricted parent starts with only `subagents_enable` active while `subagent`, `bg_wait`, and `subagent_supervisor` stay registered but inactive. Calling `subagents_enable({})` preserves unrelated active tools and exposes all three on the next model request. It does not launch a child or infer authority from prompt keywords. `bg_wait` is also declared without `subagent` once another extension registers a [background-work provider](extension-api.md#background-work-provider-api), because only `bg_wait` waits for that work. `subagent_supervisor`, which answers this session's children, is also declared when a child request reaches a session that does not have it, such as one from a scheduled run. With other models, a fresh parent starts with `subagent`, `bg_wait`, and `subagent_supervisor` active and no `subagents_enable`. `contact_supervisor` is active whenever `subagent` is, with the definition children use, so a forked child declares the same tools as its parent and can reuse its prompt cache; called in a session that is not a subagent, it returns an error.
83
+ When the model can take a new tool mid-conversation (see [`toolActivation`](#toolactivation)), a fresh unrestricted parent starts with only `subagents_enable` active while `subagent`, `bg_wait`, and `subagent_supervisor` stay registered but inactive. Calling `subagents_enable({})` preserves unrelated active tools and exposes all three on the next model request. It does not launch a child or infer authority from prompt keywords. `bg_wait` is also declared without `subagent` once another extension registers a [background-work provider](extension-api.md#background-work-provider-api), because only `bg_wait` waits for that work. `subagent_supervisor`, which answers this session's children, is also declared when a child request reaches a session that does not have it, such as one from a scheduled run. With other models, a fresh parent starts with `subagent`, `bg_wait`, and `subagent_supervisor` active and no `subagents_enable`. `contact_supervisor` is active whenever `subagent` is, with the definition children use, so a forked child declares the same tools as its parent and can reuse its prompt cache; called in a session that is not a subagent, it returns an error.
84
84
 
85
- The recorded native `subagent` selection is restored on resume, reload, and tree navigation, so an activated session stays activated and a cold session stays cold. The recorded `bg_wait` and `subagent_supervisor` selections are restored the same way, so a session that declared them, for example on an earlier version, keeps them. With the default `toolActivation`, the recorded `subagents_enable` selection is restored too, so a session that started without the loader never gets it later. Older history without tool-selection records keeps eager `subagent`, `bg_wait`, and `subagent_supervisor` availability. If Pi's allowlist or exclusions remove the loader, the extension does not hide `subagent` or `bg_wait`; if they remove `subagent`, the loader reports it unavailable. Hosts whose extension API lacks `getAllTools`, `getActiveTools`, or `setActiveTools` keep eager behavior and log one compatibility warning. The host version is not read from disk, so in-process hosts such as pi-web activate the same way as the Pi CLI.
85
+ The recorded native `subagent` selection is restored on resume, reload, and tree navigation, so an activated session stays activated and a cold session stays cold. The recorded `bg_wait` and `subagent_supervisor` selections are restored the same way, so a session that declared them, for example on an earlier version, keeps them. With the default `toolActivation`, the recorded `subagents_enable` selection is restored too, so a session that started without the loader never gets it later. Older history without tool-selection records keeps eager `subagent`, `bg_wait`, and `subagent_supervisor` availability. If Pi's allowlist or exclusions remove the loader, the extension does not hide `subagent` or `bg_wait`; if they remove `subagent`, the loader reports it unavailable. The host version is not read from disk, so in-process hosts such as pi-web activate the same way as the Pi CLI.
86
86
 
87
87
  Some providers fix the tool list for a whole prompt, for example bridges that hand Pi's tools to another agent SDK. There `subagent` appears only on the next user prompt, not the next model request. Start Pi with `--exclude-tools subagents_enable` to keep `subagent` active from the start.
88
88
 
@@ -150,8 +150,8 @@ Disabling a per-call option removes only the per-call override. Configured defau
150
150
 
151
151
  `workflow-scripts` removes workflow scripts and named workflow resources from every entry point. The model can no longer write a script, and a script that still arrives from RPC `spawn` (`script` or `workflow`), `/prompt-workflow`, a saved schedule, or a delegated launch fails with an error that names the setting. Schedule inspection, pause, and delete still work, but `schedule.create` cannot succeed because it needs a script. `/run` still works: it launches its one child directly. The built-in tool description and prompt snippet drop the script guidance and describe two small inputs instead:
152
152
 
153
- - `tasks: [{ agent, task }, ...]` runs the children in parallel and returns their results in order.
154
- - `chain: [step, ...]` runs steps in order. A step is `{ agent, task?, as? }` or a parallel group `{ parallel: [{ agent, task }, ...] }`. A group waits for all of its children.
153
+ - `tasks: [{ agent, task, cwd?, model? }, ...]` runs the children in parallel and returns their results in order.
154
+ - `chain: [step, ...]` runs steps in order. A step is `{ agent, task?, as?, cwd?, model? }` or a parallel group `{ parallel: [{ agent, task, cwd?, model? }, ...] }`. A group waits for all of its children. `cwd` and `model` are optional and apply to that one child.
155
155
 
156
156
  A top-level `task` is the original request. Tasks can use three placeholders:
157
157
 
@@ -194,6 +194,16 @@ With `"summary"`, a tool result looks like this:
194
194
  ✓ reviewer · completed
195
195
  ```
196
196
 
197
+ ## `enableSlashCommands`
198
+
199
+ ```json
200
+ { "enableSlashCommands": false }
201
+ ```
202
+
203
+ Set to `false` to register none of the pi-subagents slash commands (`/run`, `/subagents`, `/subagents-fleet`, `/subagents-watchdog`, `/prompt-workflow`, and the rest) and no [`foregroundDetachShortcut`](#foregrounddetachshortcut). The `subagent` tool, RPC, the async widget, and the extension's other features are unchanged. Prompt templates whose frontmatter has `chain:` launch through `/prompt-workflow`, so they stop working too. Defaults to `true`. Restart Pi or run `/reload` after changing it.
204
+
205
+ The package's prompt shortcuts, such as `/parallel-review` and `/review-loop`, are Pi prompt templates, not commands, so this setting leaves them alone. Pi's package filter removes them: `{ "packages": [{ "source": "npm:pi-subagents", "prompts": [] }] }` in Pi's `settings.json`, or `pi config`.
206
+
197
207
  ## `foregroundDetachShortcut`
198
208
 
199
209
  ```json
@@ -359,7 +369,7 @@ Reports are sent only from an interactive TUI session whose standard output is a
359
369
  | failed, partial, or rejected | `error` |
360
370
  | stopped or paused | `idle` |
361
371
 
362
- Each record's `title` is the agent names or workflow key, and its `msg` is the current tool while working, or the outcome. Neither includes the task text. Finished runs keep their `done`, `error`, or `idle` record after they leave the async widget, for as long as they are in Fleet's recent history (the last 20 finished runs). Records of runs this session no longer tracks, for example after switching sessions, are cleared. At most 64 records are shown: running and waiting runs first, then finished ones, most recently updated first; older finished records are cleared to make room. When the extension is reloaded or the session is replaced, it clears every record it sent and the new session reports the runs it still tracks. Pi 1.1 and later reports its own state on the root record and clears every record, these included, when it quits, suspends with Ctrl+Z, or opens an external editor. After a suspend, this extension sends its records again; after an external editor, each record comes back the next time it changes. Foreground runs are not reported, and tmux drops these sequences unless you configure passthrough.
372
+ Each record's `title` is the agent names or workflow key, and its `msg` is the current tool while working, or the outcome. Neither includes the task text. Finished runs keep their `done`, `error`, or `idle` record after they leave the async widget, for as long as they are in Fleet's recent history (the last 20 finished runs). Records of runs this session no longer tracks, for example after switching sessions, are cleared. At most 64 records are shown: running and waiting runs first, then finished ones, most recently updated first; older finished records are cleared to make room. When the extension is reloaded or the session is replaced, it clears every record it sent and the new session reports the runs it still tracks. Pi reports its own state on the root record and clears every record, these included, when it quits, suspends with Ctrl+Z, or opens an external editor. After a suspend, this extension sends its records again; after an external editor, each record comes back the next time it changes. Foreground runs are not reported, and tmux drops these sequences unless you configure passthrough.
363
373
 
364
374
  ## `activeRunsPrompt`
365
375
 
@@ -353,6 +353,33 @@ Results:
353
353
 
354
354
  Live update events are bounded progress snapshots, not patches, so consumers should replace the prior snapshot rather than merge it as a delta. Structured delegation coalesces heartbeats whose delegation-visible progress and recent output are unchanged; a duration-only heartbeat therefore does not produce another update. The terminal response remains authoritative for the complete result, error, and final usage details.
355
355
 
356
+ Both `:update` and terminal `:response` optionally include one bounded `providerDiagnostics` snapshot:
357
+
358
+ ```ts
359
+ {
360
+ errorCount: number,
361
+ lastError?: {
362
+ kind: "rate_limited" | "transient_other" | "unknown",
363
+ message: string,
364
+ at: number,
365
+ },
366
+ retry?: {
367
+ phase: "backoff" | "in_flight",
368
+ attempt: number,
369
+ maxAttempts: number,
370
+ delayMs: number,
371
+ scheduledAt: number,
372
+ },
373
+ }
374
+ ```
375
+
376
+ - Coverage is **observed assistant-request errors and Pi retries**, not every provider-internal HTTP attempt. Healthy long reasoning does not invent diagnostics; absence means no observation, not proof that no internal retry happened.
377
+ - `errorCount` increments once per failed assistant `message_end` (`stopReason: "error"`), including repeated identical errors and errors without an `errorMessage`. It does not count retry scheduling, tool failures, aborts, or compaction. The first error is reported immediately, even with no output or tokens and before Pi schedules any retry.
378
+ - Only the failed message's `errorMessage` is classified, never assistant content or tool text. `rate_limited` requires explicit throttling evidence. Text that mentions quota or billing, or says credits, balance, or an account or usage limit is exhausted, is reported as `unknown`, even when it also carries throttling or transient wording, so account exhaustion never looks like transient throttling. Other Pi-recognized transient errors use `transient_other`; anything else uses `unknown`. This classification is observational and does not change Pi's retry policy or the delegation's status/error behavior.
379
+ - `lastError.message` is a short fixed safe description, **not** the raw provider error/body. Raw diagnostics remain in existing child artifacts. No HTTP status or provider code is inferred or exposed here. `at` and `scheduledAt` are observation-time Unix timestamps in milliseconds.
380
+ - `auto_retry_start` schedules `backoff`; `attempt` is the 1-based retry attempt, `maxAttempts` is Pi's retry budget, and `delayMs` is Pi's planned delay, **not** a claimed server `Retry-After`. The next `agent_start`/`turn_start` changes the phase to `in_flight`. `auto_retry_end` ends the sequence after success, exhaustion, or cancellation; it is not a backoff-finished event.
381
+ - Cumulative error history survives recovery and unrelated replacement updates. `retry` is active-only and is absent from every terminal response, including cancellation and timeout. Historical errors alone do not turn a recovered completed result into a failure.
382
+
356
383
  Bounds:
357
384
 
358
385
  - Schemas are capped at 64 KiB; tasks and returned text/structured values are capped at 1 MiB, with smaller bounds on identity/configuration strings and a maximum `timeoutMs` of 2,147,483,647.
@@ -600,7 +627,7 @@ The API returns discriminated structured results with canonical project root, bi
600
627
 
601
628
  A host that embeds this extension owns whether completion wakes can be delivered at all.
602
629
 
603
- Ordinary async and foreground completion wakes use `registerSubagentNotify` and `sendCompletion`. They listen for completion events and deliver through `pi.sendMessage(..., { triggerTurn })`. When the parent is idle, every pi-subagents notice that should start a turn (completions, supervisor asks, control and steering notices, wait subscriptions) is instead appended without a turn, followed by one user message, `PARENT_WAKE_TEXT` from `src/shared/parent-wake.ts`, sent with `pi.sendUserMessage`. Pi runs `before_agent_start` only for prompts, so this keeps extension-set system prompt sections in the woken run. A busy parent still gets the notice as a steering message. After the user aborts a parent run in a host with a UI, these notices are only appended, with no turn and no wake message, until the next parent run starts. Session shutdown stops the result watcher and disposes this completion notifier. `createWaitSubscriptionManager` is separate: it is the explicit non-blocking `bg_wait` subscription path for work without native notification, not the ordinary completion wake path.
630
+ Ordinary async and foreground completion wakes use `registerSubagentNotify` and `sendCompletion`. They listen for completion events and deliver through `pi.sendMessage(..., { triggerTurn })`. When the parent is idle, every pi-subagents notice that should start a turn (completions, supervisor asks, control and steering notices, wait subscriptions) starts the run itself with `triggerTurn: true`; Pi runs `before_agent_start` for that run, so extension-set system prompt sections stay in it. Each such notice ends with what the parent should do (for completions, `Parent action: ...`), and no separate user message is sent. If another extension's wake (pi-intercom's, through the shared `Symbol.for("pi.idle-wake.v1")` reservation) is already starting the run, the notice is appended without a turn and that run picks it up. A busy parent still gets the notice as a steering message. After the user aborts a parent run in a host with a UI, these notices are only appended, with no turn, until the next parent run starts. Session shutdown stops the result watcher and disposes this completion notifier. `createWaitSubscriptionManager` is separate: it is the explicit non-blocking `bg_wait` subscription path for work without native notification, not the ordinary completion wake path.
604
631
 
605
632
  Each completion notice is a custom message with `customType: "subagent-notify"`. Its `content` is the text the model reads. Pi does not send `details` to the model, so hosts can use it to match a notice to its runs by id without parsing the text. `details.runs` has one entry per finished run, in the order of the notice. A grouped notice has several entries. Each entry has `agent` and `status` (`completed`, `failed`, `paused` or `stopped`). When known, an entry also has these fields:
606
633
 
@@ -616,7 +643,7 @@ Detached children do not stop when the session does. They are the host process's
616
643
 
617
644
  This matters because "is the parent busy?" is the wrong idle signal. A parent that launches a detached run and hands control back — which is what the async launch output tells it to do — is not prompting, streaming, compacting, or running a shell command. A host that reaps sessions on those signals alone will dispose exactly the session that was waiting to be woken.
618
645
 
619
- When pi-subagents runs inside a compatible pi-web host, it discovers the versioned `Symbol.for("@agegr/pi-web/session-liveness/v1")` registry and registers one provider for the current session. The provider reports live `queued`/`running` async jobs, active nested descendants (including foreground routes retained after their direct parent settles), foreground controls that still have a scheduling owner or active child, async runs that ended but whose result has not reached the parent (including a rejected send waiting for retry), completion notifications until Pi starts the wake message (`message_start`), even when Pi queued it behind the current turn or past `agent_settled`, and a wake prompt sent to an idle parent until its run starts (`agent_start`). Accepted wakes remain owned by the same Pi session manager and session UUID across extension reloads, until they start. Independent session managers never share this ownership, and changing the UUID on an existing manager discards the old session's wakes. A wake message Pi discards without starting keeps the session live until the session shuts down for a reason other than reload. A wake prompt whose run has not started 10 seconds later, while the parent is idle, no longer keeps the session live: an input handler consumed it or it failed, and its notices are already in the session. Retained terminal history, future schedules, and wait subscriptions do not make a session live by themselves. The registration is replaced on session changes and released during runtime shutdown or reload; other hosts remain unaffected.
646
+ When pi-subagents runs inside a compatible pi-web host, it discovers the versioned `Symbol.for("@agegr/pi-web/session-liveness/v1")` registry and registers one provider for the current session. The provider reports live `queued`/`running` async jobs, active nested descendants (including foreground routes retained after their direct parent settles), foreground controls that still have a scheduling owner or active child, async runs that ended but whose result has not reached the parent (including a rejected send waiting for retry), completion notifications until Pi starts the wake message (`message_start`), even when Pi queued it behind the current turn or past `agent_settled`, and a turn-triggering notice sent to an idle parent until its run starts (`agent_start`). Accepted wakes remain owned by the same Pi session manager and session UUID across extension reloads, until they start. Independent session managers never share this ownership, and changing the UUID on an existing manager discards the old session's wakes. A wake message Pi discards without starting keeps the session live until the session shuts down for a reason other than reload. An idle wake whose run has not started 10 seconds later, while the parent is idle, stops holding the session live on its own; a completion notice whose run never started is still held by the undelivered-notice tracking above until the session shuts down, which records it for replay at the next start. Retained terminal history, future schedules, and wait subscriptions do not make a session live by themselves. The registration is replaced on session changes and released during runtime shutdown or reload; other hosts remain unaffected.
620
647
 
621
648
  If your host reclaims idle sessions, keep a session alive while it still has live detached work:
622
649
 
@@ -116,8 +116,8 @@ FleetView and the under-editor async widget are both enabled by default; set `as
116
116
  Default keys:
117
117
 
118
118
  - `↑`/`↓` or `j`/`k` — select a child
119
- - `Shift+K`/`Shift+J` — scroll one line
120
- - `PgUp`/`PgDn` — scroll one page
119
+ - `K`/`J` (Shift+k / Shift+j) — scroll output one line
120
+ - `PgUp`/`PgDn` — scroll output one body viewport page (structured headers stay pinned)
121
121
  - `x`/`Ctrl+O` — toggle tool details
122
122
  - `r` — refresh
123
123
  - `Esc` — close
@@ -126,6 +126,10 @@ Default keys:
126
126
  - `D` — stop a selected child's top-level async run after confirmation
127
127
  - `H` — open the selected active async child through the available Inspect plugin
128
128
 
129
+ In fullscreen mode with Pi mouse reporting enabled, primary-click a visible roster row to select that child. Wheel or trackpad input over the output pane (including its pinned header) scrolls the same viewport as the keyboard. Owned wheel events stay inside the inspector, even at the top and bottom. New output follows the bottom until you scroll away; reaching the bottom resumes following. Steering/redo drafts and stop confirmation retain input ownership, and Prompt Audit blocks roster clicks. Footer shortcuts remain text hints, not buttons.
130
+
131
+ In regular (non-fullscreen) mode, the terminal retains mouse scrolling and scrollback ownership; internal-pane wheel scrolling and roster clicking are not promised. Use the keyboard controls above to navigate clipped inspector output in either mode. The extension does not enable terminal mouse tracking.
132
+
129
133
  Set `fleetKeybindings` in the extension config to replace inspector-level keys when a terminal intercepts keys such as `PgUp`, `PgDn`, `Home`, or `End`. Prompt modes keep fixed keys such as `Esc`, `Enter`, `Tab`, and stop-confirmation `Y`/`N`.
130
134
 
131
135
  Enter and `H` use the available Inspect plugin. Inside tmux, this includes the bundled tmux plugin: it splits the focused window, runs the inspector pane there, and records a binding, so `status` and `close` are available and ordinary tmux keys such as the prefix keep working in the pane. On macOS with Ghostty 1.3+ (TERM_PROGRAM=ghostty), this includes the other bundled open-only plugin using Ghostty's preview AppleScript API; status and close are unavailable because no binding is written. In a child-specific inspector, type ordinary guidance and press Enter to send it through the acknowledged steer channel; `steer <message>`, `status`, and `stop` remain available as explicit controls. The bundled Herdr plugin uses Herdr 0.7.5+.