@e4779/pi-fabric 0.131.4-fork.33 → 0.138.1-fork.1

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 (435) hide show
  1. package/README.md +8 -0
  2. package/dist/actors/context.d.ts.map +1 -1
  3. package/dist/agents/clone-first-worktree.d.ts +2 -0
  4. package/dist/agents/clone-first-worktree.d.ts.map +1 -1
  5. package/dist/agents/completion-inbox.d.ts +2 -1
  6. package/dist/agents/completion-inbox.d.ts.map +1 -1
  7. package/dist/agents/handoff.d.ts.map +1 -1
  8. package/dist/agents/manager.d.ts.map +1 -1
  9. package/dist/agents/worktree-manager.d.ts +4 -1
  10. package/dist/agents/worktree-manager.d.ts.map +1 -1
  11. package/dist/agents/worktree-paths.d.ts +8 -3
  12. package/dist/agents/worktree-paths.d.ts.map +1 -1
  13. package/dist/agents.js +6 -1
  14. package/dist/agents.js.map +1 -1
  15. package/dist/async-settlement.d.ts +1 -1
  16. package/dist/async-settlement.d.ts.map +1 -1
  17. package/dist/audit/details.d.ts.map +1 -1
  18. package/dist/capture/catalog.d.ts +2 -0
  19. package/dist/capture/catalog.d.ts.map +1 -1
  20. package/dist/capture/interceptor.d.ts.map +1 -1
  21. package/dist/chunks/{chunk-7N7IC3Z2.js → chunk-2CD7HLVP.js} +3 -84
  22. package/dist/chunks/chunk-2CD7HLVP.js.map +7 -0
  23. package/dist/chunks/{chunk-7YNE4NB2.js → chunk-2MELFQCQ.js} +2 -2
  24. package/dist/chunks/{chunk-HSEZPCL5.js → chunk-2OC4YJOL.js} +3 -3
  25. package/dist/chunks/{chunk-TXCNZCZP.js → chunk-2QJ4MNS6.js} +2 -2
  26. package/dist/chunks/{chunk-F6A6MQ6G.js → chunk-2WPTD6BI.js} +11 -15
  27. package/dist/chunks/chunk-2WPTD6BI.js.map +7 -0
  28. package/dist/chunks/{chunk-QOEOKW2X.js → chunk-3QH6JAE3.js} +2 -2
  29. package/dist/chunks/chunk-4U47NCP2.js +88 -0
  30. package/dist/chunks/chunk-4U47NCP2.js.map +7 -0
  31. package/dist/chunks/{chunk-OJ4HAALD.js → chunk-5VZEAAHD.js} +10 -9
  32. package/dist/chunks/chunk-5VZEAAHD.js.map +7 -0
  33. package/dist/chunks/{chunk-LKYLD5SN.js → chunk-6HM4TX7L.js} +10 -8
  34. package/dist/chunks/chunk-6HM4TX7L.js.map +7 -0
  35. package/dist/chunks/{chunk-L6H46CPY.js → chunk-6NNL5LOG.js} +2 -2
  36. package/dist/chunks/{chunk-7TB7NXSL.js → chunk-7CIQQOOD.js} +11 -3
  37. package/dist/chunks/{chunk-7TB7NXSL.js.map → chunk-7CIQQOOD.js.map} +2 -2
  38. package/dist/chunks/{chunk-RWKQ5SRW.js → chunk-7ZFPVOV2.js} +2 -2
  39. package/dist/chunks/{chunk-PUBHBEYO.js → chunk-B2FIGOPI.js} +2 -2
  40. package/dist/chunks/{chunk-HRDMBGMY.js → chunk-BLT66VHH.js} +331 -22
  41. package/dist/chunks/chunk-BLT66VHH.js.map +7 -0
  42. package/dist/chunks/{chunk-4WKD3YM3.js → chunk-C3UPHOJW.js} +3 -3
  43. package/dist/chunks/{chunk-G2DZJ5LK.js → chunk-CB72SLHB.js} +451 -134
  44. package/dist/chunks/chunk-CB72SLHB.js.map +7 -0
  45. package/dist/chunks/{chunk-B5L3X3ID.js → chunk-CCJ6PUZJ.js} +1 -1
  46. package/dist/chunks/{chunk-B5L3X3ID.js.map → chunk-CCJ6PUZJ.js.map} +1 -1
  47. package/dist/chunks/{chunk-FK73YJKV.js → chunk-DWM63MAJ.js} +21 -9
  48. package/dist/chunks/chunk-DWM63MAJ.js.map +7 -0
  49. package/dist/chunks/{chunk-56NMRVTV.js → chunk-FFJ7TV66.js} +32 -29
  50. package/dist/chunks/chunk-FFJ7TV66.js.map +7 -0
  51. package/dist/chunks/{chunk-LRSZFYUC.js → chunk-FUMALXYQ.js} +15 -15
  52. package/dist/chunks/chunk-FUMALXYQ.js.map +7 -0
  53. package/dist/chunks/{chunk-TJZYM2SP.js → chunk-G3RQ3HUK.js} +8 -3
  54. package/dist/chunks/{chunk-TJZYM2SP.js.map → chunk-G3RQ3HUK.js.map} +2 -2
  55. package/dist/chunks/{chunk-RAA3FAYZ.js → chunk-GNPTDN6K.js} +2 -2
  56. package/dist/chunks/{chunk-XFOSUGLU.js → chunk-JCGEW5OQ.js} +5 -5
  57. package/dist/chunks/{chunk-CXYJJ3HZ.js → chunk-LJ2MG6U2.js} +3 -3
  58. package/dist/chunks/{chunk-3MOY6WIB.js → chunk-LRBDEAKB.js} +3 -3
  59. package/dist/chunks/{chunk-2RWNVCFD.js → chunk-MPFBOVOD.js} +1 -1
  60. package/dist/chunks/{chunk-2RWNVCFD.js.map → chunk-MPFBOVOD.js.map} +1 -1
  61. package/dist/chunks/{chunk-NQ7IWEIF.js → chunk-MQGRQMVM.js} +2 -2
  62. package/dist/chunks/{chunk-3VK6UGAN.js → chunk-O5SHIUIL.js} +6 -1
  63. package/dist/chunks/chunk-O5SHIUIL.js.map +7 -0
  64. package/dist/chunks/{chunk-U6Y6TKJL.js → chunk-OK2EKY3M.js} +15 -11
  65. package/dist/chunks/chunk-OK2EKY3M.js.map +7 -0
  66. package/dist/chunks/{chunk-DGUXJSYA.js → chunk-OR44GYXD.js} +70 -3
  67. package/dist/chunks/chunk-OR44GYXD.js.map +7 -0
  68. package/dist/chunks/{chunk-DGERP4VL.js → chunk-P4TALNLX.js} +11 -10
  69. package/dist/chunks/chunk-P4TALNLX.js.map +7 -0
  70. package/dist/chunks/{chunk-4BYS4ZLY.js → chunk-PHGPOSCP.js} +267 -71
  71. package/dist/chunks/chunk-PHGPOSCP.js.map +7 -0
  72. package/dist/chunks/{chunk-3XT5WHSG.js → chunk-QAGEWWCJ.js} +260 -59
  73. package/dist/chunks/chunk-QAGEWWCJ.js.map +7 -0
  74. package/dist/chunks/{chunk-WKFRGICG.js → chunk-RBYRHS24.js} +2 -2
  75. package/dist/chunks/{chunk-ZHROHNEE.js → chunk-RFNYH7S7.js} +8 -8
  76. package/dist/chunks/{chunk-VGRUWTMG.js → chunk-RPZJVLML.js} +472 -466
  77. package/dist/chunks/chunk-RPZJVLML.js.map +7 -0
  78. package/dist/chunks/{chunk-H57KPL3V.js → chunk-S2JWFXW5.js} +2 -2
  79. package/dist/chunks/{chunk-LZ2ZXOCU.js → chunk-SSB2JN3I.js} +168 -5
  80. package/dist/chunks/chunk-SSB2JN3I.js.map +7 -0
  81. package/dist/chunks/{chunk-RKJPBTBB.js → chunk-SVQ7ZHEQ.js} +33 -16
  82. package/dist/chunks/chunk-SVQ7ZHEQ.js.map +7 -0
  83. package/dist/chunks/{chunk-MPMEK3IQ.js → chunk-TV5NCPPS.js} +6 -5
  84. package/dist/chunks/chunk-TV5NCPPS.js.map +7 -0
  85. package/dist/chunks/{chunk-XOBLUZMB.js → chunk-UIVMSMSQ.js} +10 -1
  86. package/dist/chunks/chunk-UIVMSMSQ.js.map +7 -0
  87. package/dist/chunks/{chunk-QGTD3LAZ.js → chunk-UYS5VZUU.js} +9 -3
  88. package/dist/chunks/chunk-UYS5VZUU.js.map +7 -0
  89. package/dist/chunks/{chunk-HRVYXRWZ.js → chunk-V5RZK45W.js} +37 -3
  90. package/dist/chunks/chunk-V5RZK45W.js.map +7 -0
  91. package/dist/chunks/{chunk-KIFOEBYJ.js → chunk-VEXCD3RA.js} +2 -2
  92. package/dist/chunks/{chunk-GS67KDMV.js → chunk-VN7AE3EY.js} +2 -2
  93. package/dist/chunks/{chunk-HFDJWLMS.js → chunk-WFGJUVTH.js} +106 -65
  94. package/dist/chunks/chunk-WFGJUVTH.js.map +7 -0
  95. package/dist/chunks/chunk-WMULZZER.js +196 -0
  96. package/dist/chunks/chunk-WMULZZER.js.map +7 -0
  97. package/dist/chunks/{chunk-QNMQJNXE.js → chunk-X4HDI7RT.js} +14 -4
  98. package/dist/chunks/chunk-X4HDI7RT.js.map +7 -0
  99. package/dist/chunks/{chunk-MX53BRAC.js → chunk-XBAOTA4U.js} +2 -2
  100. package/dist/chunks/{chunk-MSDL7U6Q.js → chunk-XQCNVH3Y.js} +4 -4
  101. package/dist/chunks/{chunk-4PBW54I2.js → chunk-YC6NV7FK.js} +88 -54
  102. package/dist/chunks/chunk-YC6NV7FK.js.map +7 -0
  103. package/dist/chunks/{chunk-6GWDGTHC.js → chunk-YLO62DWD.js} +4 -4
  104. package/dist/cli/decisions.js +2 -2
  105. package/dist/cli/mesh.js +3 -3
  106. package/dist/commands/fabric-handler.d.ts.map +1 -1
  107. package/dist/commands/fabric-handler.js +18 -4
  108. package/dist/commands/fabric-handler.js.map +2 -2
  109. package/dist/commands/fabric.d.ts.map +1 -1
  110. package/dist/compaction/branch-summary.d.ts.map +1 -1
  111. package/dist/compaction/claim-events.js +9 -9
  112. package/dist/compaction/hook.d.ts.map +1 -1
  113. package/dist/compaction/hook.js +6 -6
  114. package/dist/compaction/normalize.d.ts +9 -0
  115. package/dist/compaction/normalize.d.ts.map +1 -1
  116. package/dist/compaction/owner.js +7 -7
  117. package/dist/compaction/projections.d.ts +18 -2
  118. package/dist/compaction/projections.d.ts.map +1 -1
  119. package/dist/compaction/qa.d.ts +3 -2
  120. package/dist/compaction/qa.d.ts.map +1 -1
  121. package/dist/compaction/render.d.ts +3 -0
  122. package/dist/compaction/render.d.ts.map +1 -1
  123. package/dist/compaction/threshold.d.ts.map +1 -1
  124. package/dist/compaction/user-activity.d.ts +31 -0
  125. package/dist/compaction/user-activity.d.ts.map +1 -0
  126. package/dist/components/configuration.js +4 -4
  127. package/dist/config.d.ts +13 -6
  128. package/dist/config.d.ts.map +1 -1
  129. package/dist/core/action-registry.d.ts +1 -1
  130. package/dist/core/action-registry.d.ts.map +1 -1
  131. package/dist/core/action-registry.js +10 -9
  132. package/dist/core/approval-controller.d.ts +3 -0
  133. package/dist/core/approval-controller.d.ts.map +1 -1
  134. package/dist/core/atomic-write.d.ts +1 -0
  135. package/dist/core/atomic-write.d.ts.map +1 -1
  136. package/dist/core/attached-monitors.d.ts +39 -0
  137. package/dist/core/attached-monitors.d.ts.map +1 -0
  138. package/dist/core/control-abort.d.ts +3 -0
  139. package/dist/core/control-abort.d.ts.map +1 -0
  140. package/dist/core/crash-guard.d.ts +15 -0
  141. package/dist/core/crash-guard.d.ts.map +1 -0
  142. package/dist/core/execution-guidelines.d.ts +6 -0
  143. package/dist/core/execution-guidelines.d.ts.map +1 -0
  144. package/dist/core/guidance-delivery.d.ts +19 -0
  145. package/dist/core/guidance-delivery.d.ts.map +1 -0
  146. package/dist/core/lifecycle-settlement.d.ts +9 -0
  147. package/dist/core/lifecycle-settlement.d.ts.map +1 -0
  148. package/dist/core/observation-actions.d.ts +9 -0
  149. package/dist/core/observation-actions.d.ts.map +1 -0
  150. package/dist/core/pasted-images.d.ts +12 -0
  151. package/dist/core/pasted-images.d.ts.map +1 -0
  152. package/dist/core/pasted-images.js +139 -0
  153. package/dist/core/pasted-images.js.map +7 -0
  154. package/dist/core/permission-queue.d.ts +32 -0
  155. package/dist/core/permission-queue.d.ts.map +1 -0
  156. package/dist/core/permission-queue.js +104 -0
  157. package/dist/core/permission-queue.js.map +7 -0
  158. package/dist/core/prompt-guidance.d.ts +1 -0
  159. package/dist/core/prompt-guidance.d.ts.map +1 -1
  160. package/dist/core/prompt-guidance.js +52 -3
  161. package/dist/core/prompt-guidance.js.map +3 -3
  162. package/dist/core/provider-operations.js +1 -1
  163. package/dist/core/shell-inbox.d.ts +1 -1
  164. package/dist/core/shell-inbox.d.ts.map +1 -1
  165. package/dist/core/shell-jobs.d.ts +28 -1
  166. package/dist/core/shell-jobs.d.ts.map +1 -1
  167. package/dist/core/shell-monitor.d.ts +1 -0
  168. package/dist/core/shell-monitor.d.ts.map +1 -1
  169. package/dist/durable/worker.js +0 -42
  170. package/dist/durable/worker.js.map +3 -3
  171. package/dist/durable-extension.d.ts +2 -2
  172. package/dist/durable-extension.d.ts.map +1 -1
  173. package/dist/durable-extension.js +215 -1
  174. package/dist/durable-extension.js.map +3 -3
  175. package/dist/entropy/index.d.ts +2 -0
  176. package/dist/entropy/index.d.ts.map +1 -1
  177. package/dist/entropy/index.js +23 -13
  178. package/dist/entropy/pool-store.d.ts +8 -1
  179. package/dist/entropy/pool-store.d.ts.map +1 -1
  180. package/dist/entropy/pool-worker.d.ts +18 -0
  181. package/dist/entropy/pool-worker.d.ts.map +1 -0
  182. package/dist/entropy/pool-writer.d.ts +23 -0
  183. package/dist/entropy/pool-writer.d.ts.map +1 -0
  184. package/dist/entropy/pool.d.ts +11 -0
  185. package/dist/entropy/pool.d.ts.map +1 -1
  186. package/dist/entropy/sessions.d.ts +5 -0
  187. package/dist/entropy/sessions.d.ts.map +1 -1
  188. package/dist/execution-service.d.ts.map +1 -1
  189. package/dist/extension-bootstrap.d.ts.map +1 -1
  190. package/dist/extension-bootstrap.js +19 -19
  191. package/dist/extension.d.ts.map +1 -1
  192. package/dist/fabric-exec-tool.d.ts.map +1 -1
  193. package/dist/fabric-runtime-state.d.ts.map +1 -1
  194. package/dist/fabric-runtime-state.js +534 -261
  195. package/dist/fabric-runtime-state.js.map +4 -4
  196. package/dist/fabric-state.d.ts.map +1 -1
  197. package/dist/index.js +40 -30
  198. package/dist/index.js.map +1 -1
  199. package/dist/jev/client.js +2 -2
  200. package/dist/jev/observation.js +7 -6
  201. package/dist/jev.js +12 -11
  202. package/dist/main-agent.d.ts.map +1 -1
  203. package/dist/managed-host.d.ts +4 -0
  204. package/dist/managed-host.d.ts.map +1 -1
  205. package/dist/memory/discovery.js +6 -6
  206. package/dist/memory/expand-service.d.ts.map +1 -1
  207. package/dist/memory/file-worker.js +9 -8
  208. package/dist/memory/file-worker.js.map +1 -1
  209. package/dist/memory/history-paging.d.ts +9 -0
  210. package/dist/memory/history-paging.d.ts.map +1 -0
  211. package/dist/memory/history-paging.js +164 -0
  212. package/dist/memory/history-paging.js.map +7 -0
  213. package/dist/memory/index.d.ts.map +1 -1
  214. package/dist/memory/normalize.js +5 -5
  215. package/dist/memory/outline-service.d.ts +7 -0
  216. package/dist/memory/outline-service.d.ts.map +1 -0
  217. package/dist/memory/request-cache.d.ts +3 -1
  218. package/dist/memory/request-cache.d.ts.map +1 -1
  219. package/dist/memory/request-context.d.ts +1 -0
  220. package/dist/memory/request-context.d.ts.map +1 -1
  221. package/dist/memory/request-limits.d.ts +2 -0
  222. package/dist/memory/request-limits.d.ts.map +1 -1
  223. package/dist/memory/search.js +7 -6
  224. package/dist/memory/worker-provider.d.ts.map +1 -1
  225. package/dist/memory/worker-provider.js +10 -9
  226. package/dist/memory.d.ts +16 -1
  227. package/dist/memory.d.ts.map +1 -1
  228. package/dist/memory.js +64 -12
  229. package/dist/memory.js.map +1 -1
  230. package/dist/mesh/store.d.ts +2 -1
  231. package/dist/mesh/store.d.ts.map +1 -1
  232. package/dist/programs/host.js +2 -2
  233. package/dist/protocol.d.ts +5 -0
  234. package/dist/protocol.d.ts.map +1 -1
  235. package/dist/protocol.js +1 -1
  236. package/dist/providers/agents-actions.d.ts.map +1 -1
  237. package/dist/providers/agents-message-router.d.ts +1 -0
  238. package/dist/providers/agents-message-router.d.ts.map +1 -1
  239. package/dist/providers/agents-provider.d.ts +2 -0
  240. package/dist/providers/agents-provider.d.ts.map +1 -1
  241. package/dist/providers/jev-provider.js +12 -11
  242. package/dist/providers/memory-provider.d.ts +4 -0
  243. package/dist/providers/memory-provider.d.ts.map +1 -1
  244. package/dist/providers/memory-provider.js +9 -8
  245. package/dist/providers/pi-read-operations.d.ts +24 -0
  246. package/dist/providers/pi-read-operations.d.ts.map +1 -0
  247. package/dist/providers/pi-tools-provider.d.ts +7 -0
  248. package/dist/providers/pi-tools-provider.d.ts.map +1 -1
  249. package/dist/providers/sessions-provider.d.ts +1 -1
  250. package/dist/providers/sessions-provider.d.ts.map +1 -1
  251. package/dist/providers/tasks-provider.d.ts +3 -1
  252. package/dist/providers/tasks-provider.d.ts.map +1 -1
  253. package/dist/residency/actor-client.js +3 -3
  254. package/dist/residency/client.d.ts.map +1 -1
  255. package/dist/residency/host.d.ts.map +1 -1
  256. package/dist/residency/host.js +17 -16
  257. package/dist/residency/launcher.js +1 -1
  258. package/dist/residency/pi-entry.js +17 -16
  259. package/dist/residency/pi-entry.js.map +1 -1
  260. package/dist/residency/protocol.d.ts +2 -0
  261. package/dist/residency/protocol.d.ts.map +1 -1
  262. package/dist/runtime/core-override-guest-types.js +2 -2
  263. package/dist/runtime/cpython-runtime.d.ts.map +1 -1
  264. package/dist/runtime/cpython-runtime.js +7 -6
  265. package/dist/runtime/cpython-runtime.js.map +2 -2
  266. package/dist/runtime/guest-types.d.ts +1 -1
  267. package/dist/runtime/guest-types.d.ts.map +1 -1
  268. package/dist/runtime/guest-types.js +1 -1
  269. package/dist/runtime/monty-runtime.d.ts.map +1 -1
  270. package/dist/runtime/monty-runtime.js +7 -6
  271. package/dist/runtime/monty-runtime.js.map +2 -2
  272. package/dist/runtime/node-process-runtime.d.ts.map +1 -1
  273. package/dist/runtime/node-process-runtime.js +6 -6
  274. package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
  275. package/dist/runtime/quickjs-runtime.js +4 -4
  276. package/dist/runtime/type-checker.d.ts.map +1 -1
  277. package/dist/runtime/type-checker.js +1 -1
  278. package/dist/runtime/typescript-kernel.js +10 -10
  279. package/dist/runtime-state-builtins.d.ts +2 -0
  280. package/dist/runtime-state-builtins.d.ts.map +1 -1
  281. package/dist/schema/policy.d.ts.map +1 -1
  282. package/dist/speculation/eligibility.d.ts.map +1 -1
  283. package/dist/speculation/store.d.ts.map +1 -1
  284. package/dist/topology/participant-directory.d.ts +1 -0
  285. package/dist/topology/participant-directory.d.ts.map +1 -1
  286. package/dist/topology/peer-presence.d.ts.map +1 -1
  287. package/dist/topology/provider-participants.d.ts +1 -0
  288. package/dist/topology/provider-participants.d.ts.map +1 -1
  289. package/dist/type-error-guidance.js +1 -1
  290. package/dist/ui/code-preview-shell.d.ts +1 -0
  291. package/dist/ui/code-preview-shell.d.ts.map +1 -1
  292. package/dist/ui/controller.d.ts.map +1 -1
  293. package/dist/ui/conversation-chrome.d.ts.map +1 -1
  294. package/dist/ui/conversation-chrome.js +2 -2
  295. package/dist/ui/conversation-feedback.d.ts +8 -0
  296. package/dist/ui/conversation-feedback.d.ts.map +1 -0
  297. package/dist/ui/conversation-latest.d.ts.map +1 -1
  298. package/dist/ui/conversation-native-reader.d.ts.map +1 -1
  299. package/dist/ui/conversation-native-reader.js +3 -3
  300. package/dist/ui/conversation-native-reader.js.map +2 -2
  301. package/dist/ui/conversation-render.d.ts.map +1 -1
  302. package/dist/ui/conversation.d.ts +1 -0
  303. package/dist/ui/conversation.d.ts.map +1 -1
  304. package/dist/ui/conversation.js +139 -86
  305. package/dist/ui/conversation.js.map +4 -4
  306. package/dist/ui/core-tool-render.d.ts.map +1 -1
  307. package/dist/ui/dashboard-fabric-graph.d.ts.map +1 -1
  308. package/dist/ui/dashboard.js +47 -48
  309. package/dist/ui/dashboard.js.map +3 -3
  310. package/dist/ui/fabric-render.d.ts.map +1 -1
  311. package/dist/ui/format.d.ts.map +1 -1
  312. package/dist/ui/highlight.d.ts.map +1 -1
  313. package/dist/ui/permissions.d.ts +18 -0
  314. package/dist/ui/permissions.d.ts.map +1 -0
  315. package/dist/ui/permissions.js +178 -0
  316. package/dist/ui/permissions.js.map +7 -0
  317. package/dist/ui/row-balance.d.ts +1 -1
  318. package/dist/ui/row-balance.d.ts.map +1 -1
  319. package/dist/ui/settings-sections-execution.d.ts.map +1 -1
  320. package/dist/ui/settings-values.d.ts.map +1 -1
  321. package/dist/ui/settings.js +37 -31
  322. package/dist/ui/settings.js.map +2 -2
  323. package/dist/ui/shell-hang-keys.d.ts.map +1 -1
  324. package/dist/ui/shell-tasks.d.ts.map +1 -1
  325. package/dist/ui/shell-tasks.js +28 -11
  326. package/dist/ui/shell-tasks.js.map +2 -2
  327. package/dist/ui/structured.d.ts.map +1 -1
  328. package/dist/ui/tool-display.d.ts +18 -2
  329. package/dist/ui/tool-display.d.ts.map +1 -1
  330. package/dist/ui/truncate.d.ts +3 -0
  331. package/dist/ui/truncate.d.ts.map +1 -0
  332. package/dist/ui/widget.d.ts +7 -2
  333. package/dist/ui/widget.d.ts.map +1 -1
  334. package/dist/verified/context.d.ts +35 -0
  335. package/dist/verified/context.d.ts.map +1 -0
  336. package/dist/verified/execution.d.ts +7 -0
  337. package/dist/verified/execution.d.ts.map +1 -0
  338. package/dist/verified/generated/context.d.ts +6 -0
  339. package/dist/verified/generated/context.js +51 -0
  340. package/dist/verified/generated/execution.d.ts +5 -0
  341. package/dist/verified/generated/execution.js +32 -0
  342. package/dist/verified/generated/manifest.json +34 -3
  343. package/dist/verified/generated/prompt-guidance.d.ts +4 -0
  344. package/dist/verified/generated/prompt-guidance.js +17 -0
  345. package/dist/worker/recovery-watchdog.d.ts +7 -0
  346. package/dist/worker/recovery-watchdog.d.ts.map +1 -1
  347. package/dist/worker/recovery-watchdog.js +66 -4
  348. package/dist/worker/recovery-watchdog.js.map +2 -2
  349. package/dist/worker.js +22 -3
  350. package/dist/worker.js.map +2 -2
  351. package/docs/agents.md +37 -4
  352. package/docs/architecture.md +13 -0
  353. package/docs/background-tasks.md +81 -5
  354. package/docs/benchmarks/cli-resume-2026-11-09.json +1260 -0
  355. package/docs/benchmarks/interactivity-2026-11-09.json +2280 -0
  356. package/docs/benchmarks/resume-latency-2026-11-09.json +12105 -0
  357. package/docs/benchmarks/resume-startup-fix-2026-11-09.json +5452 -0
  358. package/docs/benchmarks/session-memory-2026-11-09.json +1320 -0
  359. package/docs/benchmarks/session-memory-fix-2026-11-09.json +280 -0
  360. package/docs/compaction.md +59 -23
  361. package/docs/configuration.md +53 -11
  362. package/docs/entropy.md +4 -1
  363. package/docs/history-paging.md +99 -0
  364. package/docs/interactivity-investigation.md +109 -0
  365. package/docs/interface.md +2 -2
  366. package/docs/jev.md +1 -1
  367. package/docs/memory-recall.md +42 -1
  368. package/docs/providers.md +24 -1
  369. package/docs/resume-latency-investigation.md +249 -0
  370. package/docs/session-memory-investigation.md +223 -0
  371. package/docs/verified-kernels.md +56 -0
  372. package/package.json +211 -211
  373. package/proofs/context.ts +139 -0
  374. package/proofs/execution.ts +48 -0
  375. package/proofs/index.ts +6 -0
  376. package/proofs/prompt-guidance.ts +38 -0
  377. package/scripts/verified-kernels.ts +1 -1
  378. package/skillsets/python/fabric-council/SKILL.md +31 -21
  379. package/skillsets/python/fabric-exec/SKILL.md +1 -1
  380. package/skillsets/python/fabric-exec/references/agents.md +2 -0
  381. package/skillsets/python/fabric-guide/SKILL.md +1 -0
  382. package/skillsets/python/fabric-memory/SKILL.md +82 -0
  383. package/skillsets/typescript/fabric-council/SKILL.md +26 -17
  384. package/skillsets/typescript/fabric-exec/SKILL.md +3 -2
  385. package/skillsets/typescript/fabric-exec/references/agents.md +1 -0
  386. package/skillsets/typescript/fabric-guide/SKILL.md +1 -0
  387. package/skillsets/typescript/fabric-memory/SKILL.md +87 -0
  388. package/dist/chunks/chunk-3VK6UGAN.js.map +0 -7
  389. package/dist/chunks/chunk-3XT5WHSG.js.map +0 -7
  390. package/dist/chunks/chunk-4BYS4ZLY.js.map +0 -7
  391. package/dist/chunks/chunk-4PBW54I2.js.map +0 -7
  392. package/dist/chunks/chunk-56NMRVTV.js.map +0 -7
  393. package/dist/chunks/chunk-7N7IC3Z2.js.map +0 -7
  394. package/dist/chunks/chunk-DGERP4VL.js.map +0 -7
  395. package/dist/chunks/chunk-DGUXJSYA.js.map +0 -7
  396. package/dist/chunks/chunk-F6A6MQ6G.js.map +0 -7
  397. package/dist/chunks/chunk-FK73YJKV.js.map +0 -7
  398. package/dist/chunks/chunk-G2DZJ5LK.js.map +0 -7
  399. package/dist/chunks/chunk-HFDJWLMS.js.map +0 -7
  400. package/dist/chunks/chunk-HRDMBGMY.js.map +0 -7
  401. package/dist/chunks/chunk-HRVYXRWZ.js.map +0 -7
  402. package/dist/chunks/chunk-LKYLD5SN.js.map +0 -7
  403. package/dist/chunks/chunk-LRSZFYUC.js.map +0 -7
  404. package/dist/chunks/chunk-LZ2ZXOCU.js.map +0 -7
  405. package/dist/chunks/chunk-MPMEK3IQ.js.map +0 -7
  406. package/dist/chunks/chunk-OJ4HAALD.js.map +0 -7
  407. package/dist/chunks/chunk-QGTD3LAZ.js.map +0 -7
  408. package/dist/chunks/chunk-QNMQJNXE.js.map +0 -7
  409. package/dist/chunks/chunk-RKJPBTBB.js.map +0 -7
  410. package/dist/chunks/chunk-U6Y6TKJL.js.map +0 -7
  411. package/dist/chunks/chunk-VGRUWTMG.js.map +0 -7
  412. package/dist/chunks/chunk-XOBLUZMB.js.map +0 -7
  413. package/dist/durable/openai-sse-patch.d.ts +0 -21
  414. package/dist/durable/openai-sse-patch.d.ts.map +0 -1
  415. /package/dist/chunks/{chunk-7YNE4NB2.js.map → chunk-2MELFQCQ.js.map} +0 -0
  416. /package/dist/chunks/{chunk-HSEZPCL5.js.map → chunk-2OC4YJOL.js.map} +0 -0
  417. /package/dist/chunks/{chunk-TXCNZCZP.js.map → chunk-2QJ4MNS6.js.map} +0 -0
  418. /package/dist/chunks/{chunk-QOEOKW2X.js.map → chunk-3QH6JAE3.js.map} +0 -0
  419. /package/dist/chunks/{chunk-L6H46CPY.js.map → chunk-6NNL5LOG.js.map} +0 -0
  420. /package/dist/chunks/{chunk-RWKQ5SRW.js.map → chunk-7ZFPVOV2.js.map} +0 -0
  421. /package/dist/chunks/{chunk-PUBHBEYO.js.map → chunk-B2FIGOPI.js.map} +0 -0
  422. /package/dist/chunks/{chunk-4WKD3YM3.js.map → chunk-C3UPHOJW.js.map} +0 -0
  423. /package/dist/chunks/{chunk-RAA3FAYZ.js.map → chunk-GNPTDN6K.js.map} +0 -0
  424. /package/dist/chunks/{chunk-XFOSUGLU.js.map → chunk-JCGEW5OQ.js.map} +0 -0
  425. /package/dist/chunks/{chunk-CXYJJ3HZ.js.map → chunk-LJ2MG6U2.js.map} +0 -0
  426. /package/dist/chunks/{chunk-3MOY6WIB.js.map → chunk-LRBDEAKB.js.map} +0 -0
  427. /package/dist/chunks/{chunk-NQ7IWEIF.js.map → chunk-MQGRQMVM.js.map} +0 -0
  428. /package/dist/chunks/{chunk-WKFRGICG.js.map → chunk-RBYRHS24.js.map} +0 -0
  429. /package/dist/chunks/{chunk-ZHROHNEE.js.map → chunk-RFNYH7S7.js.map} +0 -0
  430. /package/dist/chunks/{chunk-H57KPL3V.js.map → chunk-S2JWFXW5.js.map} +0 -0
  431. /package/dist/chunks/{chunk-KIFOEBYJ.js.map → chunk-VEXCD3RA.js.map} +0 -0
  432. /package/dist/chunks/{chunk-GS67KDMV.js.map → chunk-VN7AE3EY.js.map} +0 -0
  433. /package/dist/chunks/{chunk-MX53BRAC.js.map → chunk-XBAOTA4U.js.map} +0 -0
  434. /package/dist/chunks/{chunk-MSDL7U6Q.js.map → chunk-XQCNVH3Y.js.map} +0 -0
  435. /package/dist/chunks/{chunk-6GWDGTHC.js.map → chunk-YLO62DWD.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"shell-hang-keys.d.ts","sourceRoot":"","sources":["../../src/ui/shell-hang-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,mBAAmB,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,kBAAkB,GAAG,SAAS,CAAC;CACjD;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,mBAAmB,GAC3B,MAAM,IAAI,CAoEZ"}
1
+ {"version":3,"file":"shell-hang-keys.d.ts","sourceRoot":"","sources":["../../src/ui/sh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W,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAsE/B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAyB/B,UAAU,IAAI,IAAI;IAClB,OAAO,IAAI,IAAI;CAOhB"}
1
+ {"version":3,"file":"shell-tasks.d.ts","sourceRoot":"","sources":["../../src/ui/shell-tasks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAkD,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjI,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIrF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD,0EAA0E;AAC1E,qBAAa,cAAe,YAAW,SAAS;;IAWlC,QAAQ,CAAC,OAAO,EAAE,iBAAiB;gBAA1B,OAAO,EAAE,iBAAiB;IA6C/C,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA+E/B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IA0B/B,UAAU,IAAI,IAAI;IAClB,OAAO,IAAI,IAAI;CAOhB"}
@@ -5,12 +5,13 @@ import {
5
5
  formatDuration,
6
6
  padToWidth,
7
7
  safeText,
8
+ truncateStyledText,
8
9
  wrapPlainText
9
- } from "../chunks/chunk-FK73YJKV.js";
10
+ } from "../chunks/chunk-DWM63MAJ.js";
10
11
 
11
12
  // src/ui/shell-tasks.ts
12
13
  import { stripVTControlCharacters } from "node:util";
13
- import { getKeybindings, truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
14
+ import { getKeybindings, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
14
15
  var elapsed = (job) => formatDuration((job.finishedAt ?? Date.now()) - job.startedAt) || "0s";
15
16
  var outputLine = (line) => stripVTControlCharacters(line).replace(/\t/g, " ").replace(/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g, "");
16
17
  var ShellTasksView = class {
@@ -106,10 +107,11 @@ var ShellTasksView = class {
106
107
  const active = job.finishedAt === void 0;
107
108
  const color = job.stopping ? "warning" : active ? "accent" : failed ? "error" : job.status === "exited" ? "success" : "dim";
108
109
  const glyph = active ? spinnerFrame() : failed ? "\u2717" : job.status === "exited" ? "\u2713" : "\u25A0";
109
- return this.options.theme.fg(color, `${glyph} ${job.stopping ? "stopping" : job.status}`);
110
+ const status = job.observes ? job.stopping ? "stopping observation" : active ? "observing" : job.status === "timed_out" ? "observation expired" : job.status === "killed" ? "observation stopped" : "observation ended" : job.stopping ? "stopping" : job.status;
111
+ return this.options.theme.fg(color, `${glyph} ${status}`);
110
112
  }
111
113
  #section(label, width) {
112
- const title = truncateToWidth(` ${label} `, width);
114
+ const title = truncateStyledText(` ${label} `, width);
113
115
  return this.options.theme.fg("borderMuted", title + "\u2500".repeat(Math.max(0, width - visibleWidth(title))));
114
116
  }
115
117
  #detail(job, width, height) {
@@ -122,9 +124,23 @@ var ShellTasksView = class {
122
124
  ];
123
125
  if (job.durable) meta.push(theme.fg("muted", `Durable: jev-fabric ${job.durable.jobId ? `job ${safeText(job.durable.jobId)}` : "job starting"}${job.durable.adopted ? " \xB7 reattached" : ""} \xB7 survives Pi exit`));
124
126
  if (job.monitor) {
125
- meta.push(theme.fg("muted", `Monitor: ${job.monitor.delivery === "wake" ? "wake owning agent" : "UI only"} \xB7 deadline ${formatDuration(job.monitor.timeoutMs)} \xB7 ${job.eventCount} events`));
127
+ meta.push(theme.fg("muted", `Monitor: ${job.monitor.delivery === "wake" ? "wake owning agent" : "UI only"} \xB7 ${job.monitorEndedAt !== void 0 ? "watch expired; process continues" : `deadline ${formatDuration(job.monitor.timeoutMs)}`} \xB7 ${job.eventCount} events`));
126
128
  if (job.lastEvent) meta.push(theme.fg("dim", `Latest event: ${safeText(job.lastEvent.lines.at(-1))}`));
127
129
  }
130
+ if (job.observes) {
131
+ const target = job.observes.kind === "task" ? this.options.jobs.get(job.observes.id)?.info() : void 0;
132
+ meta.splice(
133
+ 1,
134
+ 0,
135
+ theme.fg("muted", `Target: ${job.observes.kind} ${safeText(target?.description ?? job.observes.id)}${target ? ` \xB7 ${target.status}` : ""}`),
136
+ theme.fg("dim", "Stopping observation leaves the target running.")
137
+ );
138
+ if (job.finishedAt === void 0 && job.monitor) meta.splice(
139
+ 3,
140
+ 0,
141
+ theme.fg("dim", `Observation expires in ${formatDuration(Math.max(0, job.startedAt + job.monitor.timeoutMs - Date.now())) || "0s"}`)
142
+ );
143
+ }
128
144
  const rows = meta.slice(0, Math.max(0, height - 6));
129
145
  if (height >= 5) {
130
146
  rows.push(this.#section("Command", width));
@@ -132,7 +148,7 @@ var ShellTasksView = class {
132
148
  const command = wrapPlainText(job.command.slice(0, 12e3), width, commandSpace + 1);
133
149
  const clipped = command.length > commandSpace || job.command.length > 12e3;
134
150
  rows.push(...command.slice(0, commandSpace).map((line) => theme.fg("muted", line)));
135
- if (clipped) rows[rows.length - 1] = theme.fg("dim", truncateToWidth("\u2026 command clipped \xB7 tasks.get for full text", width));
151
+ if (clipped) rows[rows.length - 1] = theme.fg("dim", truncateStyledText("\u2026 command clipped \xB7 tasks.get for full text", width));
136
152
  }
137
153
  const available = Math.max(1, height - rows.length - 1);
138
154
  const text = job.finishedAt === void 0 ? this.options.jobs.get(job.id)?.snapshotText(8e3) ?? "" : this.#output;
@@ -152,15 +168,16 @@ var ShellTasksView = class {
152
168
  const job = this.options.jobs.get(this.options.id)?.info();
153
169
  const active = job !== void 0 && job.finishedAt === void 0;
154
170
  const armed = active && this.#stopArmed !== void 0 && Date.now() - this.#stopArmed < 3e3;
155
- const hint = armed ? "Press x again to stop this task \xB7 esc close" : width < 70 ? `\u2191\u2193 \xB7 G tail${active ? " \xB7 x\xD72 stop" : ""} \xB7 esc` : `\u2191\u2193/pg scroll \xB7 G tail${active ? " \xB7 x twice stop" : ""} \xB7 esc close`;
156
- const title = `Fabric \xB7 task ${this.options.id}`;
157
- if (width < 8 || height < 7) return [title, hint].slice(0, height).map((row2) => truncateToWidth(row2, width));
171
+ const stopLabel = job?.observes ? "stop watching" : "stop";
172
+ const hint = armed ? `${job?.observes ? "Press x again to stop watching; target continues" : "Press x again to stop this task"} \xB7 esc close` : width < 70 ? `\u2191\u2193 \xB7 G tail${active ? ` \xB7 x\xD72 ${stopLabel}` : ""} \xB7 esc` : `\u2191\u2193/pg scroll \xB7 G tail${active ? ` \xB7 x twice ${stopLabel}` : ""} \xB7 esc close`;
173
+ const title = `Fabric \xB7 ${job?.observes ? "observation" : "task"} ${this.options.id}`;
174
+ if (width < 8 || height < 7) return [title, hint].slice(0, height).map((row2) => truncateStyledText(row2, width));
158
175
  const inner = width - 4;
159
176
  const border = (text) => theme.fg("borderMuted", text);
160
177
  const row = (text) => `${border("\u2502")} ${padToWidth(text, inner)} ${border("\u2502")}`;
161
- const heading = truncateToWidth(title, width - 6);
178
+ const heading = truncateStyledText(title, width - 6);
162
179
  const top = border("\u256D\u2500") + ` ${theme.fg("accent", heading)} ` + border("\u2500".repeat(Math.max(0, width - visibleWidth(heading) - 6)) + "\u2500\u256E");
163
- const summary = job ? `${this.#status(job)} \xB7 Elapsed ${elapsed(job)}${job.exitCode !== void 0 ? ` \xB7 exit ${job.exitCode}` : ""}` : "Task no longer retained.";
180
+ const summary = job ? `${this.#status(job)} \xB7 Elapsed ${elapsed(job)}${!job.observes && job.exitCode !== void 0 ? ` \xB7 exit ${job.exitCode}` : ""}` : "Task no longer retained.";
164
181
  const bodyHeight = height - 6;
165
182
  const body = job ? this.#detail(job, inner, bodyHeight) : ["Task no longer retained."];
166
183
  while (body.length < bodyHeight) body.push("");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ui/shell-tasks.ts"],
4
- "sourcesContent": ["import { stripVTControlCharacters } from \"node:util\";\nimport type { Theme } from \"@earendil-works/pi-coding-agent\";\nimport { getKeybindings, truncateToWidth, visibleWidth, wrapTextWithAnsi, type Component, type KeybindingsManager } from \"@earendil-works/pi-tui\";\nimport type { FabricShellJobInfo, FabricShellJobStore } from \"../core/shell-jobs.js\";\nimport { formatDuration, padToWidth, safeText, wrapPlainText } from \"./format.js\";\nimport { spinnerFrame } from \"./spinner.js\";\n\nexport interface ShellTasksOptions {\n jobs: FabricShellJobStore;\n theme: Theme;\n done: () => void;\n requestRender: () => void;\n rows: () => number;\n keys?: KeybindingsManager;\n id: string;\n}\n\nconst elapsed = (job: FabricShellJobInfo): string => formatDuration((job.finishedAt ?? Date.now()) - job.startedAt) || \"0s\";\nconst outputLine = (line: string): string => stripVTControlCharacters(line)\n .replace(/\\t/g, \" \").replace(/[\\u0000-\\u0008\\u000b-\\u001f\\u007f-\\u009f]/g, \"\");\n\n/** Lazy single-task detail. Task selection belongs to the footer list. */\nexport class ShellTasksView implements Component {\n #pageSize = 1;\n #output = \"\";\n #scroll = 0;\n #stopArmed: number | undefined;\n #reading = false;\n #readAgain = false;\n #closed = false;\n #timer: ReturnType<typeof setInterval> | undefined;\n #unsubscribe: () => void;\n\n constructor(readonly options: ShellTasksOptions) {\n this.#refresh();\n this.#unsubscribe = options.jobs.subscribe(event => {\n if (event.job.id !== options.id) return;\n this.#refresh();\n void this.#read();\n });\n void this.#read();\n }\n\n #refresh(): void {\n if (this.#closed) return;\n const job = this.options.jobs.get(this.options.id)?.info();\n const active = job !== undefined && job.finishedAt === undefined;\n // Frames sample the selected task's live tail, never disk logs.\n if (active && !this.#timer) {\n this.#timer = setInterval(() => this.options.requestRender(), 250);\n this.#timer.unref?.();\n } else if (!active && this.#timer) {\n clearInterval(this.#timer);\n this.#timer = undefined;\n }\n this.options.requestRender();\n }\n\n async #read(): Promise<void> {\n if (this.#closed) return;\n if (this.#reading) { this.#readAgain = true; return; }\n const job = this.options.jobs.get(this.options.id);\n if (!job) { this.#output = \"Task no longer retained.\"; return; }\n this.#reading = true;\n try {\n const output = await job.outputText();\n if (!this.#closed) this.#output = output;\n } catch (error) {\n if (!this.#closed) this.#output = `Output unavailable: ${safeText(error instanceof Error ? error.message : error)}`;\n } finally {\n this.#reading = false;\n if (!this.#closed) {\n this.options.requestRender();\n if (this.#readAgain) { this.#readAgain = false; void this.#read(); }\n }\n }\n }\n\n handleInput(data: string): void {\n if (this.#closed) return;\n const keys = this.options.keys ?? getKeybindings();\n if (keys.matches(data, \"tui.select.cancel\")) { this.dispose(); this.options.done(); return; }\n if (data === \"x\") {\n const now = Date.now();\n const job = this.options.jobs.get(this.options.id);\n if (job && !job.finished) {\n if (this.#stopArmed !== undefined && now - this.#stopArmed < 3000) { job.stop(); this.#stopArmed = undefined; }\n else this.#stopArmed = now;\n }\n } else {\n this.#stopArmed = undefined;\n if (keys.matches(data, \"tui.select.up\")) this.#scroll++;\n if (keys.matches(data, \"tui.select.down\")) this.#scroll = Math.max(0, this.#scroll - 1);\n if (keys.matches(data, \"tui.select.pageUp\")) this.#scroll += this.#pageSize;\n if (keys.matches(data, \"tui.select.pageDown\")) this.#scroll = Math.max(0, this.#scroll - this.#pageSize);\n if (data === \"G\") this.#scroll = 0;\n }\n this.options.requestRender();\n }\n\n #status(job: FabricShellJobInfo): string {\n const failed = job.status === \"failed\" || job.status === \"timed_out\";\n const active = job.finishedAt === undefined;\n const color = job.stopping ? \"warning\" : active ? \"accent\" : failed ? \"error\" : job.status === \"exited\" ? \"success\" : \"dim\";\n const glyph = active ? spinnerFrame() : failed ? \"\u2717\" : job.status === \"exited\" ? \"\u2713\" : \"\u25A0\";\n return this.options.theme.fg(color, `${glyph} ${job.stopping ? \"stopping\" : job.status}`);\n }\n\n #section(label: string, width: number): string {\n const title = truncateToWidth(` ${label} `, width);\n return this.options.theme.fg(\"borderMuted\", title + \"\u2500\".repeat(Math.max(0, width - visibleWidth(title))));\n }\n\n #detail(job: FabricShellJobInfo, width: number, height: number): string[] {\n const { theme } = this.options;\n const meta = [\n theme.fg(\"accent\", safeText(job.description || job.command)),\n theme.fg(\"dim\", `${job.lastOutputAt !== undefined ? `last output ${formatDuration(Date.now() - job.lastOutputAt) || \"0s\"} ago` : \"no output yet\"}${job.pid ? ` \u00B7 pid ${job.pid}` : \"\"}`),\n theme.fg(\"muted\", `cwd: ${safeText(job.cwd ?? \"unknown\")}`),\n theme.fg(\"dim\", `Log: ${safeText(job.logPath ?? \"available after backgrounding\")}`),\n ];\n if (job.durable) meta.push(theme.fg(\"muted\", `Durable: jev-fabric ${job.durable.jobId ? `job ${safeText(job.durable.jobId)}` : \"job starting\"}${job.durable.adopted ? \" \u00B7 reattached\" : \"\"} \u00B7 survives Pi exit`));\n if (job.monitor) {\n meta.push(theme.fg(\"muted\", `Monitor: ${job.monitor.delivery === \"wake\" ? \"wake owning agent\" : \"UI only\"} \u00B7 deadline ${formatDuration(job.monitor.timeoutMs)} \u00B7 ${job.eventCount} events`));\n if (job.lastEvent) meta.push(theme.fg(\"dim\", `Latest event: ${safeText(job.lastEvent.lines.at(-1))}`));\n }\n const rows = meta.slice(0, Math.max(0, height - 6));\n if (height >= 5) {\n rows.push(this.#section(\"Command\", width));\n const commandSpace = Math.max(1, Math.min(3, height - rows.length - 4));\n const command = wrapPlainText(job.command.slice(0, 12000), width, commandSpace + 1);\n const clipped = command.length > commandSpace || job.command.length > 12000;\n rows.push(...command.slice(0, commandSpace).map(line => theme.fg(\"muted\", line)));\n if (clipped) rows[rows.length - 1] = theme.fg(\"dim\", truncateToWidth(\"\u2026 command clipped \u00B7 tasks.get for full text\", width));\n }\n const available = Math.max(1, height - rows.length - 1);\n // append() intentionally emits no store event for every output chunk.\n const text = job.finishedAt === undefined ? this.options.jobs.get(job.id)?.snapshotText(8000) ?? \"\" : this.#output;\n const output = text ? text.split(\"\\n\").flatMap(line => wrapTextWithAnsi(outputLine(line), width)) : [job.finishedAt === undefined ? \"Waiting for output\u2026\" : \"No output captured.\"];\n this.#scroll = Math.min(this.#scroll, Math.max(0, output.length - available));\n const end = output.length - this.#scroll;\n const start = Math.max(0, end - available);\n this.#pageSize = available;\n rows.push(this.#section(`Output \u00B7 ${this.#scroll ? `${start + 1}\u2013${end}/${output.length}` : \"tail\"} \u00B7 bounded`, width));\n rows.push(...output.slice(start, end).map(line => theme.fg(\"toolOutput\", line)));\n return rows.slice(0, height);\n }\n\n render(width: number): string[] {\n if (width <= 0) return [];\n const { theme } = this.options;\n const height = Math.max(1, Math.floor(this.options.rows() * 0.8));\n const job = this.options.jobs.get(this.options.id)?.info();\n const active = job !== undefined && job.finishedAt === undefined;\n const armed = active && this.#stopArmed !== undefined && Date.now() - this.#stopArmed < 3000;\n const hint = armed ? \"Press x again to stop this task \u00B7 esc close\"\n : width < 70 ? `\u2191\u2193 \u00B7 G tail${active ? \" \u00B7 x\u00D72 stop\" : \"\"} \u00B7 esc`\n : `\u2191\u2193/pg scroll \u00B7 G tail${active ? \" \u00B7 x twice stop\" : \"\"} \u00B7 esc close`;\n const title = `Fabric \u00B7 task ${this.options.id}`;\n if (width < 8 || height < 7) return [title, hint].slice(0, height).map(row => truncateToWidth(row, width));\n const inner = width - 4;\n const border = (text: string) => theme.fg(\"borderMuted\", text);\n const row = (text: string) => `${border(\"\u2502\")} ${padToWidth(text, inner)} ${border(\"\u2502\")}`;\n const heading = truncateToWidth(title, width - 6);\n const top = border(\"\u256D\u2500\") + ` ${theme.fg(\"accent\", heading)} ` + border(\"\u2500\".repeat(Math.max(0, width - visibleWidth(heading) - 6)) + \"\u2500\u256E\");\n const summary = job ? `${this.#status(job)} \u00B7 Elapsed ${elapsed(job)}${job.exitCode !== undefined ? ` \u00B7 exit ${job.exitCode}` : \"\"}` : \"Task no longer retained.\";\n const bodyHeight = height - 6;\n const body = job ? this.#detail(job, inner, bodyHeight) : [\"Task no longer retained.\"];\n while (body.length < bodyHeight) body.push(\"\");\n const separator = border(`\u251C${\"\u2500\".repeat(width - 2)}\u2524`);\n return [top, row(summary), separator, ...body.map(row), separator, row(theme.fg(armed ? \"warning\" : \"dim\", hint)), border(`\u2570${\"\u2500\".repeat(width - 2)}\u256F`)];\n }\n\n invalidate(): void { /* Theme and width are evaluated on every render. */ }\n dispose(): void {\n if (this.#closed) return;\n this.#closed = true;\n if (this.#timer) clearInterval(this.#timer);\n this.#timer = undefined;\n this.#unsubscribe();\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAAA,SAAS,gCAAgC;AAEzC,SAAS,gBAAgB,iBAAiB,cAAc,wBAAiE;AAezH,IAAM,UAAU,CAAC,QAAoC,gBAAgB,IAAI,cAAc,KAAK,IAAI,KAAK,IAAI,SAAS,KAAK;AACvH,IAAM,aAAa,CAAC,SAAyB,yBAAyB,IAAI,EACvE,QAAQ,OAAO,IAAI,EAAE,QAAQ,8CAA8C,EAAE;AAGzE,IAAM,iBAAN,MAA0C;AAAA,EAW/C,YAAqB,SAA4B;AAA5B;AACnB,SAAK,SAAS;AACd,SAAK,eAAe,QAAQ,KAAK,UAAU,WAAS;AAClD,UAAI,MAAM,IAAI,OAAO,QAAQ,GAAI;AACjC,WAAK,SAAS;AACd,WAAK,KAAK,MAAM;AAAA,IAClB,CAAC;AACD,SAAK,KAAK,MAAM;AAAA,EAClB;AAAA,EAlBA,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AAAA,EACV;AAAA,EACA,WAAW;AAAA,EACX,aAAa;AAAA,EACb,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EAYA,WAAiB;AACf,QAAI,KAAK,QAAS;AAClB,UAAM,MAAM,KAAK,QAAQ,KAAK,IAAI,KAAK,QAAQ,EAAE,GAAG,KAAK;AACzD,UAAM,SAAS,QAAQ,UAAa,IAAI,eAAe;AAEvD,QAAI,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AAM,YAAY,OAAO,SAAI,SAAI,OAAO,QAAQ,CAAC,CAAC,QAAG;AACrD,WAAO,CAAC,KAAK,IAAI,OAAO,GAAG,WAAW,GAAG,KAAK,IAAI,GAAG,GAAG,WAAW,IAAI,MAAM,GAAG,QAAQ,YAAY,OAAO,IAAI,CAAC,GAAG,OAAO,SAAI,SAAI,OAAO,QAAQ,CAAC,CAAC,QAAG,CAAC;AAAA,EACzJ;AAAA,EAEA,aAAmB;AAAA,EAAuD;AAAA,EAC1E,UAAgB;AACd,QAAI,KAAK,QAAS;AAClB,SAAK,UAAU;AACf,QAAI,KAAK,OAAQ,eAAc,KAAK,MAAM;AAC1C,SAAK,SAAS;AACd,SAAK,aAAa;AAAA,EACpB;AACF;",
4
+ "sourcesContent": ["import { stripVTControlCharacters } from \"node:util\";\nimport type { Theme } from \"@earendil-works/pi-coding-agent\";\nimport { getKeybindings, visibleWidth, wrapTextWithAnsi, type Component, type KeybindingsManager } from \"@earendil-works/pi-tui\";\nimport { truncateStyledText as truncateToWidth } from \"./truncate.js\";\nimport type { FabricShellJobInfo, FabricShellJobStore } from \"../core/shell-jobs.js\";\nimport { formatDuration, padToWidth, safeText, wrapPlainText } from \"./format.js\";\nimport { spinnerFrame } from \"./spinner.js\";\n\nexport interface ShellTasksOptions {\n jobs: FabricShellJobStore;\n theme: Theme;\n done: () => void;\n requestRender: () => void;\n rows: () => number;\n keys?: KeybindingsManager;\n id: string;\n}\n\nconst elapsed = (job: FabricShellJobInfo): string => formatDuration((job.finishedAt ?? Date.now()) - job.startedAt) || \"0s\";\nconst outputLine = (line: string): string => stripVTControlCharacters(line)\n .replace(/\\t/g, \" \").replace(/[\\u0000-\\u0008\\u000b-\\u001f\\u007f-\\u009f]/g, \"\");\n\n/** Lazy single-task detail. Task selection belongs to the footer list. */\nexport class ShellTasksView implements Component {\n #pageSize = 1;\n #output = \"\";\n #scroll = 0;\n #stopArmed: number | undefined;\n #reading = false;\n #readAgain = false;\n #closed = false;\n #timer: ReturnType<typeof setInterval> | undefined;\n #unsubscribe: () => void;\n\n constructor(readonly options: ShellTasksOptions) {\n this.#refresh();\n this.#unsubscribe = options.jobs.subscribe(event => {\n if (event.job.id !== options.id) return;\n this.#refresh();\n void this.#read();\n });\n void this.#read();\n }\n\n #refresh(): void {\n if (this.#closed) return;\n const job = this.options.jobs.get(this.options.id)?.info();\n const active = job !== undefined && job.finishedAt === undefined;\n // Frames sample the selected task's live tail, never disk logs.\n if (active && !this.#timer) {\n this.#timer = setInterval(() => this.options.requestRender(), 250);\n this.#timer.unref?.();\n } else if (!active && this.#timer) {\n clearInterval(this.#timer);\n this.#timer = undefined;\n }\n this.options.requestRender();\n }\n\n async #read(): Promise<void> {\n if (this.#closed) return;\n if (this.#reading) { this.#readAgain = true; return; }\n const job = this.options.jobs.get(this.options.id);\n if (!job) { this.#output = \"Task no longer retained.\"; return; }\n this.#reading = true;\n try {\n const output = await job.outputText();\n if (!this.#closed) this.#output = output;\n } catch (error) {\n if (!this.#closed) this.#output = `Output unavailable: ${safeText(error instanceof Error ? error.message : error)}`;\n } finally {\n this.#reading = false;\n if (!this.#closed) {\n this.options.requestRender();\n if (this.#readAgain) { this.#readAgain = false; void this.#read(); }\n }\n }\n }\n\n handleInput(data: string): void {\n if (this.#closed) return;\n const keys = this.options.keys ?? getKeybindings();\n if (keys.matches(data, \"tui.select.cancel\")) { this.dispose(); this.options.done(); return; }\n if (data === \"x\") {\n const now = Date.now();\n const job = this.options.jobs.get(this.options.id);\n if (job && !job.finished) {\n if (this.#stopArmed !== undefined && now - this.#stopArmed < 3000) { job.stop(); this.#stopArmed = undefined; }\n else this.#stopArmed = now;\n }\n } else {\n this.#stopArmed = undefined;\n if (keys.matches(data, \"tui.select.up\")) this.#scroll++;\n if (keys.matches(data, \"tui.select.down\")) this.#scroll = Math.max(0, this.#scroll - 1);\n if (keys.matches(data, \"tui.select.pageUp\")) this.#scroll += this.#pageSize;\n if (keys.matches(data, \"tui.select.pageDown\")) this.#scroll = Math.max(0, this.#scroll - this.#pageSize);\n if (data === \"G\") this.#scroll = 0;\n }\n this.options.requestRender();\n }\n\n #status(job: FabricShellJobInfo): string {\n const failed = job.status === \"failed\" || job.status === \"timed_out\";\n const active = job.finishedAt === undefined;\n const color = job.stopping ? \"warning\" : active ? \"accent\" : failed ? \"error\" : job.status === \"exited\" ? \"success\" : \"dim\";\n const glyph = active ? spinnerFrame() : failed ? \"\u2717\" : job.status === \"exited\" ? \"\u2713\" : \"\u25A0\";\n const status = job.observes ? (job.stopping ? \"stopping observation\" : active ? \"observing\" : job.status === \"timed_out\" ? \"observation expired\" : job.status === \"killed\" ? \"observation stopped\" : \"observation ended\") : job.stopping ? \"stopping\" : job.status;\n return this.options.theme.fg(color, `${glyph} ${status}`);\n }\n\n #section(label: string, width: number): string {\n const title = truncateToWidth(` ${label} `, width);\n return this.options.theme.fg(\"borderMuted\", title + \"\u2500\".repeat(Math.max(0, width - visibleWidth(title))));\n }\n\n #detail(job: FabricShellJobInfo, width: number, height: number): string[] {\n const { theme } = this.options;\n const meta = [\n theme.fg(\"accent\", safeText(job.description || job.command)),\n theme.fg(\"dim\", `${job.lastOutputAt !== undefined ? `last output ${formatDuration(Date.now() - job.lastOutputAt) || \"0s\"} ago` : \"no output yet\"}${job.pid ? ` \u00B7 pid ${job.pid}` : \"\"}`),\n theme.fg(\"muted\", `cwd: ${safeText(job.cwd ?? \"unknown\")}`),\n theme.fg(\"dim\", `Log: ${safeText(job.logPath ?? \"available after backgrounding\")}`),\n ];\n if (job.durable) meta.push(theme.fg(\"muted\", `Durable: jev-fabric ${job.durable.jobId ? `job ${safeText(job.durable.jobId)}` : \"job starting\"}${job.durable.adopted ? \" \u00B7 reattached\" : \"\"} \u00B7 survives Pi exit`));\n if (job.monitor) {\n meta.push(theme.fg(\"muted\", `Monitor: ${job.monitor.delivery === \"wake\" ? \"wake owning agent\" : \"UI only\"} \u00B7 ${job.monitorEndedAt !== undefined ? \"watch expired; process continues\" : `deadline ${formatDuration(job.monitor.timeoutMs)}`} \u00B7 ${job.eventCount} events`));\n if (job.lastEvent) meta.push(theme.fg(\"dim\", `Latest event: ${safeText(job.lastEvent.lines.at(-1))}`));\n }\n if (job.observes) {\n const target = job.observes.kind === \"task\" ? this.options.jobs.get(job.observes.id)?.info() : undefined;\n meta.splice(1, 0,\n theme.fg(\"muted\", `Target: ${job.observes.kind} ${safeText(target?.description ?? job.observes.id)}${target ? ` \u00B7 ${target.status}` : \"\"}`),\n theme.fg(\"dim\", \"Stopping observation leaves the target running.\"));\n if (job.finishedAt === undefined && job.monitor) meta.splice(3, 0,\n theme.fg(\"dim\", `Observation expires in ${formatDuration(Math.max(0, job.startedAt + job.monitor.timeoutMs - Date.now())) || \"0s\"}`));\n }\n const rows = meta.slice(0, Math.max(0, height - 6));\n if (height >= 5) {\n rows.push(this.#section(\"Command\", width));\n const commandSpace = Math.max(1, Math.min(3, height - rows.length - 4));\n const command = wrapPlainText(job.command.slice(0, 12000), width, commandSpace + 1);\n const clipped = command.length > commandSpace || job.command.length > 12000;\n rows.push(...command.slice(0, commandSpace).map(line => theme.fg(\"muted\", line)));\n if (clipped) rows[rows.length - 1] = theme.fg(\"dim\", truncateToWidth(\"\u2026 command clipped \u00B7 tasks.get for full text\", width));\n }\n const available = Math.max(1, height - rows.length - 1);\n // append() intentionally emits no store event for every output chunk.\n const text = job.finishedAt === undefined ? this.options.jobs.get(job.id)?.snapshotText(8000) ?? \"\" : this.#output;\n const output = text ? text.split(\"\\n\").flatMap(line => wrapTextWithAnsi(outputLine(line), width)) : [job.finishedAt === undefined ? \"Waiting for output\u2026\" : \"No output captured.\"];\n this.#scroll = Math.min(this.#scroll, Math.max(0, output.length - available));\n const end = output.length - this.#scroll;\n const start = Math.max(0, end - available);\n this.#pageSize = available;\n rows.push(this.#section(`Output \u00B7 ${this.#scroll ? `${start + 1}\u2013${end}/${output.length}` : \"tail\"} \u00B7 bounded`, width));\n rows.push(...output.slice(start, end).map(line => theme.fg(\"toolOutput\", line)));\n return rows.slice(0, height);\n }\n\n render(width: number): string[] {\n if (width <= 0) return [];\n const { theme } = this.options;\n const height = Math.max(1, Math.floor(this.options.rows() * 0.8));\n const job = this.options.jobs.get(this.options.id)?.info();\n const active = job !== undefined && job.finishedAt === undefined;\n const armed = active && this.#stopArmed !== undefined && Date.now() - this.#stopArmed < 3000;\n const stopLabel = job?.observes ? \"stop watching\" : \"stop\";\n const hint = armed ? `${job?.observes ? \"Press x again to stop watching; target continues\" : \"Press x again to stop this task\"} \u00B7 esc close`\n : width < 70 ? `\u2191\u2193 \u00B7 G tail${active ? ` \u00B7 x\u00D72 ${stopLabel}` : \"\"} \u00B7 esc`\n : `\u2191\u2193/pg scroll \u00B7 G tail${active ? ` \u00B7 x twice ${stopLabel}` : \"\"} \u00B7 esc close`;\n const title = `Fabric \u00B7 ${job?.observes ? \"observation\" : \"task\"} ${this.options.id}`;\n if (width < 8 || height < 7) return [title, hint].slice(0, height).map(row => truncateToWidth(row, width));\n const inner = width - 4;\n const border = (text: string) => theme.fg(\"borderMuted\", text);\n const row = (text: string) => `${border(\"\u2502\")} ${padToWidth(text, inner)} ${border(\"\u2502\")}`;\n const heading = truncateToWidth(title, width - 6);\n const top = border(\"\u256D\u2500\") + ` ${theme.fg(\"accent\", heading)} ` + border(\"\u2500\".repeat(Math.max(0, width - visibleWidth(heading) - 6)) + \"\u2500\u256E\");\n const summary = job ? `${this.#status(job)} \u00B7 Elapsed ${elapsed(job)}${!job.observes && job.exitCode !== undefined ? ` \u00B7 exit ${job.exitCode}` : \"\"}` : \"Task no longer retained.\";\n const bodyHeight = height - 6;\n const body = job ? this.#detail(job, inner, bodyHeight) : [\"Task no longer retained.\"];\n while (body.length < bodyHeight) body.push(\"\");\n const separator = border(`\u251C${\"\u2500\".repeat(width - 2)}\u2524`);\n return [top, row(summary), separator, ...body.map(row), separator, row(theme.fg(armed ? \"warning\" : \"dim\", hint)), border(`\u2570${\"\u2500\".repeat(width - 2)}\u256F`)];\n }\n\n invalidate(): void { /* Theme and width are evaluated on every render. */ }\n dispose(): void {\n if (this.#closed) return;\n this.#closed = true;\n if (this.#timer) clearInterval(this.#timer);\n this.#timer = undefined;\n this.#unsubscribe();\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;AAAA,SAAS,gCAAgC;AAEzC,SAAS,gBAAgB,cAAc,wBAAiE;AAgBxG,IAAM,UAAU,CAAC,QAAoC,gBAAgB,IAAI,cAAc,KAAK,IAAI,KAAK,IAAI,SAAS,KAAK;AACvH,IAAM,aAAa,CAAC,SAAyB,yBAAyB,IAAI,EACvE,QAAQ,OAAO,IAAI,EAAE,QAAQ,8CAA8C,EAAE;AAGzE,IAAM,iBAAN,MAA0C;AAAA,EAW/C,YAAqB,SAA4B;AAA5B;AACnB,SAAK,SAAS;AACd,SAAK,eAAe,QAAQ,KAAK,UAAU,WAAS;AAClD,UAAI,MAAM,IAAI,OAAO,QAAQ,GAAI;AACjC,WAAK,SAAS;AACd,WAAK,KAAK,MAAM;AAAA,IAClB,CAAC;AACD,SAAK,KAAK,MAAM;AAAA,EAClB;AAAA,EAlBA,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AAAA,EACV;AAAA,EACA,WAAW;AAAA,EACX,aAAa;AAAA,EACb,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EAYA,WAAiB;AACf,QAAI,KAAK,QAAS;AAClB,UAAM,MAAM,KAAK,QAAQ,KAAK,IAAI,KAAK,QAAQ,EAAE,GAAG,KAAK;AACzD,UAAM,SAAS,QAAQ,UAAa,IAAI,eAAe;AAEvD,QAAI,UAAU,CAAC,KAAK,QAAQ;AAC1B,WAAK,SAAS,YAAY,MAAM,KAAK,QAAQ,cAAc,GAAG,GAAG;AACjE,WAAK,OAAO,QAAQ;AAAA,IACtB,WAAW,CAAC,UAAU,KAAK,QAAQ;AACjC,oBAAc,KAAK,MAAM;AACzB,WAAK,SAAS;AAAA,IAChB;AACA,SAAK,QAAQ,cAAc;AAAA,EAC7B;AAAA,EAEA,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AK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAevD,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK1D,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAuGD,eAAO,MAAM,iBAAiB,GAC5B,OAAO,OAAO,EACd,QAAQ,kBAAkB,EAC1B,WAAW,MAAM,KAChB,oBA+BF,CAAC"}
1
+ {"version":3,"file":"structured.d.ts","sourceRoot":"","sources":["../../src/ui/structured.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAevD,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAK1D,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AA4GD,eAAO,MAAM,iBAAiB,GAC5B,OAAO,OAAO,EACd,QAAQ,kBAAkB,EAC1B,WAAW,MAAM,KAChB,oBA+BF,CAAC"}
@@ -1,7 +1,23 @@
1
- /** Tracks rendered fabric_exec cards so a display preference switch redraws the current transcript. */
1
+ /** The parts of Pi's tool render context the controller needs. */
2
+ export interface FabricToolDisplayObservation {
3
+ invalidate: () => void;
4
+ /** Pi's per-card renderer state: one object per transcript component. */
5
+ state: object;
6
+ }
7
+ /**
8
+ * Tracks rendered fabric_exec cards so a display preference switch redraws the
9
+ * current transcript.
10
+ *
11
+ * A card's invalidate closure holds Pi's whole transcript component, with the
12
+ * call's arguments and its result. Pi drops components when it rebuilds the
13
+ * transcript (compaction, tree navigation, a new session), so the controller
14
+ * must not be what keeps them alive. It holds each card's renderer state
15
+ * weakly and keys the closures by that state in a WeakMap: once Pi lets go of
16
+ * a component, its entry here is collectable too.
17
+ */
2
18
  export declare class FabricToolDisplayController {
3
19
  #private;
4
- observe(toolCallId: string, kind: "call" | "result", invalidate: () => void): void;
20
+ observe(toolCallId: string, kind: "call" | "result", { invalidate, state }: FabricToolDisplayObservation): void;
5
21
  refresh(): void;
6
22
  clear(): void;
7
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tool-display.d.ts","sourceRoot":"","sources":["../../src/ui/tool-display.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,qBAAa,2BAA2B;;IAQtC,OAAO,CACL,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GAAG,QAAQ,EACvB,UAAU,EAAE,MAAM,IAAI,GACrB,IAAI;IAMP,OAAO,IAAI,IAAI;IAgCf,KAAK,IAAI,IAAI;CAId"}
1
+ {"version":3,"file":"tool-display.d.ts","sourceRoot":"","sources":["../../src/ui/tool-display.ts"],"names":[],"mappings":"AAKA,kEAAkE;AAClE,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,qBAAa,2BAA2B;;IAOtC,OAAO,CACL,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GAAG,QAAQ,EACvB,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,4BAA4B,GAClD,IAAI;IAWP,OAAO,IAAI,IAAI;IA+Cf,KAAK,IAAI,IAAI;CAKd"}
@@ -0,0 +1,3 @@
1
+ /** Keep a truncation marker in the text's colour, not the terminal default. */
2
+ export declare const truncateStyledText: (text: string, width: number, ellipsis?: string) => string;
3
+ //# sourceMappingURL=truncate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"truncate.d.ts","sourceRoot":"","sources":["../../src/ui/truncate.ts"],"names":[],"mappings":"AAIA,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,iBAAgB,KAAG,MAelF,CAAC"}
@@ -55,13 +55,17 @@ export declare const WIDGET_TERMINAL_ROW_SHARE = 0.5;
55
55
  export declare const widgetRowLimit: (maxRows: number, terminalRows?: number) => number;
56
56
  /** Keyboard focus must not resize the footer or move the transcript. */
57
57
  export declare const widgetFocusedRowLimit: (maxRows: number, terminalRows?: number) => number;
58
- /** Reserve an overflow row for the whole scroll range, not just while rows remain below. */
58
+ /** Keep the viewport height fixed, replacing the overflow cue with content at the bottom. */
59
59
  export declare const widgetViewport: (contentRows: number, budget: number, offset: number) => {
60
60
  windowRows: number;
61
61
  hasCue: boolean;
62
62
  maxOffset: number;
63
63
  offset: number;
64
64
  };
65
+ /** Shared by the native footer and participant windows so opening one never resets the list. */
66
+ export interface FabricWidgetViewportState {
67
+ offset: number;
68
+ }
65
69
  export declare class FabricWidget implements Component, Focusable {
66
70
  #private;
67
71
  readonly theme: Theme;
@@ -70,7 +74,8 @@ export declare class FabricWidget implements Component, Focusable {
70
74
  readonly terminalRows?: (() => number | undefined) | undefined;
71
75
  readonly retention: FabricWidgetRetention;
72
76
  readonly interaction?: FabricWidgetInteraction | undefined;
73
- constructor(theme: Theme, snapshot: () => FabricDashboardSnapshot, maxRows: number, terminalRows?: (() => number | undefined) | undefined, retention?: FabricWidgetRetention, interaction?: FabricWidgetInteraction | undefined);
77
+ readonly viewport: FabricWidgetViewportState;
78
+ constructor(theme: Theme, snapshot: () => FabricDashboardSnapshot, maxRows: number, terminalRows?: (() => number | undefined) | undefined, retention?: FabricWidgetRetention, interaction?: FabricWidgetInteraction | undefined, viewport?: FabricWidgetViewportState);
74
79
  /** Set by the TUI when the widget gains or loses keyboard focus. */
75
80
  focused: boolean;
76
81
  /** Select the row on screen, or the first row; used when focus arrives from the keyboard. */
@@ -1 +1 @@
1
- {"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/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AoE;IACpE,OAAO,UAAS;IAchB,6FAA6F;IAC7F,aAAa,IAAI,IAAI;IAQrB,yEAAyE;IACzE,WAAW,IAAI,IAAI;IAKnB,kDAAkD;IAClD,OAAO,IAAI,OAAO;IAQlB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA6B/B,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,GAAG,SAAS;IAoElE,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IA+B/B,UAAU,IAAI,OAAO;IAYrB,UAAU,IAAI,IAAI;CA2PnB"}
@@ -0,0 +1,35 @@
1
+ export interface SummaryAllocation {
2
+ userBytes: number;
3
+ operationBytes: number;
4
+ }
5
+ /** The user's words take bytes first; operational residue gets the rest. */
6
+ export declare const allocateSummaryBytes: (limit: number, user: number, operations: number) => SummaryAllocation;
7
+ /** Entry kinds in the order proofs/context.ts declares them. */
8
+ export type StalenessOp = "user" | "background" | "compaction" | "other";
9
+ export interface UserStaleness {
10
+ /** A user message exists on the folded path. */
11
+ anchored: boolean;
12
+ /** Compaction markers after the latest user message. */
13
+ compactions: number;
14
+ /** Background deliveries after the latest user message. */
15
+ background: number;
16
+ }
17
+ export declare const foldUserStaleness: (ops: Iterable<StalenessOp>) => UserStaleness;
18
+ export interface FailureFact {
19
+ /** The failure happened after the previous compaction marker. */
20
+ fresh: boolean;
21
+ /** A later exact structural success resolved it. */
22
+ resolved: boolean;
23
+ }
24
+ export interface FailureLedger {
25
+ /** Parallel to the input: whether each failure is itemized. */
26
+ itemized: boolean[];
27
+ total: number;
28
+ open: number;
29
+ aged: number;
30
+ resolved: number;
31
+ }
32
+ /** Pass fresh failures newest first, then aged ones newest first, then resolved ones:
33
+ * the newest fresh failures take room first, and aged ones fill only what is left. */
34
+ export declare const foldFailureLedger: (failures: readonly FailureFact[], limit: number) => FailureLedger;
35
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/verified/context.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,YAAY,MAAM,KAAG,iBAItF,CAAC;AAEF,gEAAgE;AAChE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC;AAGzE,MAAM,WAAW,aAAa;IAC5B,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,GAAI,KAAK,QAAQ,CAAC,WAAW,CAAC,KAAG,aAK9D,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,iEAAiE;IACjE,KAAK,EAAE,OAAO,CAAC;IACf,oDAAoD;IACpD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;sFACsF;AACtF,eAAO,MAAM,iBAAiB,GAAI,UAAU,SAAS,WAAW,EAAE,EAAE,OAAO,MAAM,KAAG,aAWnF,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Trusted numeric codec: nullish options mean omitted; only positive safe
2
+ * integers reach an override input. Other invalid values must be refused. */
3
+ export declare const hostOutputCeiling: (requested: number | null | undefined, fallback: number, label: string) => number;
4
+ /** Callback identity is host-owned. No guest argument can enable pausing, and
5
+ * an explicit whole-script deadline always withholds the capability. */
6
+ export declare const providerHumanWait: <T>(callback: T | undefined, hardTimeoutMs: number | undefined) => T | undefined;
7
+ //# sourceMappingURL=execution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/verified/execution.ts"],"names":[],"mappings":"AAKA;6EAC6E;AAC7E,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,MAAM,EAAE,OAAO,MAAM,KAAG,MAQzG,CAAC;AAEF;wEACwE;AACxE,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,UAAU,CAAC,GAAG,SAAS,EAAE,eAAe,MAAM,GAAG,SAAS,KAAG,CAAC,GAAG,SAKrG,CAAC"}
@@ -0,0 +1,6 @@
1
+ // Generated by scripts/verified-kernels.ts from proofs/context.ts with gdp-wired@0.31.1. Do not edit.
2
+ export interface MachineState { scalars: Record<string, number>; maps: Record<string, Map<number, number>>; defaults?: Record<string, number> }
3
+ export interface Machine { init(params: object): MachineState; step(params: object, state: MachineState, input: object): MachineState }
4
+ export declare const summaryAllocation: Machine;
5
+ export declare const userStaleness: Machine;
6
+ export declare const failureLedger: Machine;
@@ -0,0 +1,51 @@
1
+ // Generated by scripts/verified-kernels.ts from proofs/context.ts with gdp-wired@0.31.1. Do not edit.
2
+ function $n(v, what) { if (typeof v !== 'number' || !Number.isSafeInteger(v) || v < 0) throw new RangeError(what + ' must be a natural below 2^53, not ' + v); return v; }
3
+ function $x(v) { if (v > 9007199254740991) throw new RangeError('a value passed 2^53 - 1, past which the proofs over the naturals no longer describe the run'); return v; }
4
+
5
+ export const summaryAllocation = /* @__PURE__ */ (() => {
6
+ // Generated from the machine summary allocation. step consumes its state: keep the one it returns (fork to branch).
7
+ function init(params) {
8
+ const env = {}, s = {};
9
+ return {scalars: {"out.userBytes": 0, "out.operationBytes": 0}, maps: {}};
10
+ }
11
+ function step(params, state, input) {
12
+ const env = {"limit": $n(input["limit"], "input limit"), "user": $n(input["user"], "input user"), "operations": $n(input["operations"], "input operations")}, s = state.scalars, dft = {...state.defaults}, maps = state.maps;
13
+ const scalars = {...s, "out.userBytes": Math.min(env["user"], env["limit"]), "out.operationBytes": Math.min(env["operations"], Math.max(0, env["limit"] - Math.min(env["user"], env["limit"])))};
14
+ return Object.keys(dft).length ? {scalars, maps: state.maps, defaults: dft} : {scalars, maps: state.maps};
15
+ }
16
+ return { init, step };
17
+ })();
18
+
19
+ export const userStaleness = /* @__PURE__ */ (() => {
20
+ // Generated from the machine user staleness. step consumes its state: keep the one it returns (fork to branch).
21
+ function init(params) {
22
+ const env = {}, s = {};
23
+ return {scalars: {"seen": 0, "compactions": 0, "background": 0}, maps: {}};
24
+ }
25
+ function step(params, state, input) {
26
+ const env = {"op": $n(input["op"], "input op")}, s = state.scalars, dft = {...state.defaults}, maps = state.maps;
27
+ if (!(env["op"] < 4)) throw new RangeError("user staleness: the request fails the rule's assumption, so no proof covers the step it would take");
28
+ const scalars = {...s, "compactions": ((env["op"] === 0) ? 0 : (((env["op"] === 2) && (s["seen"] === 1)) ? $x(s["compactions"] + 1) : s["compactions"])), "background": ((env["op"] === 0) ? 0 : (((env["op"] === 1) && (s["seen"] === 1)) ? $x(s["background"] + 1) : s["background"])), "seen": (((env["op"] === 0) || (s["seen"] === 1)) ? 1 : 0)};
29
+ return Object.keys(dft).length ? {scalars, maps: state.maps, defaults: dft} : {scalars, maps: state.maps};
30
+ }
31
+ return { init, step };
32
+ })();
33
+
34
+ export const failureLedger = /* @__PURE__ */ (() => {
35
+ // Generated from the machine failure ledger. step consumes its state: keep the one it returns (fork to branch).
36
+ function init(params) {
37
+ const env = {"limit": $n(params["limit"], "param limit")}, s = {};
38
+ return {scalars: {"total": 0, "open": 0, "aged": 0, "settled": 0, "itemized": 0, "skipped": 0}, maps: {}};
39
+ }
40
+ function step(params, state, input) {
41
+ const env = {"limit": $n(params["limit"], "param limit"), "fresh": $n(input["fresh"], "input fresh"), "resolved": $n(input["resolved"], "input resolved")}, s = state.scalars, dft = {...state.defaults}, maps = state.maps;
42
+ const flag0 = ((!(env["resolved"] === 1)) && (env["fresh"] === 1));
43
+ const flag1 = ((!(env["resolved"] === 1)) && (!(env["fresh"] === 1)));
44
+ const flag2 = (s["itemized"] < env["limit"]);
45
+ const flag3 = (s["skipped"] === 0);
46
+ if (!((env["fresh"] <= 1) && (env["resolved"] <= 1))) throw new RangeError("failure ledger: the request fails the rule's assumption, so no proof covers the step it would take");
47
+ const scalars = {...s, "total": $x(s["total"] + 1), "open": (flag0 ? $x(s["open"] + 1) : s["open"]), "aged": (flag1 ? $x(s["aged"] + 1) : s["aged"]), "settled": (((env["resolved"] === 1) && (!flag0)) ? $x(s["settled"] + 1) : s["settled"]), "itemized": ((flag2 && (flag0 || (flag1 && flag3))) ? $x(s["itemized"] + 1) : s["itemized"]), "skipped": ((flag0 && (!flag2)) ? $x(s["skipped"] + 1) : s["skipped"])};
48
+ return Object.keys(dft).length ? {scalars, maps: state.maps, defaults: dft} : {scalars, maps: state.maps};
49
+ }
50
+ return { init, step };
51
+ })();
@@ -0,0 +1,5 @@
1
+ // Generated by scripts/verified-kernels.ts from proofs/execution.ts with gdp-wired@0.31.1. Do not edit.
2
+ export interface MachineState { scalars: Record<string, number>; maps: Record<string, Map<number, number>>; defaults?: Record<string, number> }
3
+ export interface Machine { init(params: object): MachineState; step(params: object, state: MachineState, input: object): MachineState }
4
+ export declare const outputCeiling: Machine;
5
+ export declare const humanWaitAdmission: Machine;
@@ -0,0 +1,32 @@
1
+ // Generated by scripts/verified-kernels.ts from proofs/execution.ts with gdp-wired@0.31.1. Do not edit.
2
+ function $n(v, what) { if (typeof v !== 'number' || !Number.isSafeInteger(v) || v < 0) throw new RangeError(what + ' must be a natural below 2^53, not ' + v); return v; }
3
+
4
+ export const outputCeiling = /* @__PURE__ */ (() => {
5
+ // Generated from the machine host output ceiling. step consumes its state: keep the one it returns (fork to branch).
6
+ function init(params) {
7
+ const env = {}, s = {};
8
+ return {scalars: {"out.accepted": 0, "out.limit": 0}, maps: {}};
9
+ }
10
+ function step(params, state, input) {
11
+ const env = {"present": $n(input["present"], "input present"), "valid": $n(input["valid"], "input valid"), "requested": $n(input["requested"], "input requested"), "fallback": $n(input["fallback"], "input fallback")}, s = state.scalars, dft = {...state.defaults}, maps = state.maps;
12
+ if (!((env["present"] <= 1) && (env["valid"] <= 1))) throw new RangeError("host output ceiling: the request fails the rule's assumption, so no proof covers the step it would take");
13
+ const scalars = {...s, "out.accepted": (((!(env["present"] === 1)) || ((env["valid"] === 1) && (0 < env["requested"]))) ? 1 : 0), "out.limit": (((env["present"] === 1) && (env["valid"] === 1) && (0 < env["requested"])) ? env["requested"] : env["fallback"])};
14
+ return Object.keys(dft).length ? {scalars, maps: state.maps, defaults: dft} : {scalars, maps: state.maps};
15
+ }
16
+ return { init, step };
17
+ })();
18
+
19
+ export const humanWaitAdmission = /* @__PURE__ */ (() => {
20
+ // Generated from the machine provider human wait admission. step consumes its state: keep the one it returns (fork to branch).
21
+ function init(params) {
22
+ const env = {}, s = {};
23
+ return {scalars: {"out.allowed": 0}, maps: {}};
24
+ }
25
+ function step(params, state, input) {
26
+ const env = {"available": $n(input["available"], "input available"), "hardDeadline": $n(input["hardDeadline"], "input hardDeadline")}, s = state.scalars, dft = {...state.defaults}, maps = state.maps;
27
+ if (!((env["available"] <= 1) && (env["hardDeadline"] <= 1))) throw new RangeError("provider human wait admission: the request fails the rule's assumption, so no proof covers the step it would take");
28
+ const scalars = {...s, "out.allowed": (((env["available"] === 1) && (!(env["hardDeadline"] === 1))) ? 1 : 0)};
29
+ return Object.keys(dft).length ? {scalars, maps: state.maps, defaults: dft} : {scalars, maps: state.maps};
30
+ }
31
+ return { init, step };
32
+ })();
@@ -2,10 +2,11 @@
2
2
  "version": 3,
3
3
  "prover": "gdp-wired@0.31.1",
4
4
  "inputs": {
5
- "proofs/index.ts": "5645d0d6e4a62c362106b294357fc9bbbc9f6ce28216419ed7025c91298fa649",
5
+ "proofs/index.ts": "5bf4d3096347d7dc2e9eb4ee781905b0ef7c1fec3f43766146d75944aea4edc3",
6
6
  "proofs/kernel.ts": "0edaa003d2ca5f33c4e30e65a427efb6d0b2135e097875f62732907f5a4b411b",
7
7
  "proofs/policy.ts": "525f2306ee56395ce5424495ea0cd7031c6b64238b1673c05be09d4292ede621",
8
8
  "proofs/compaction.ts": "b559117f9f2224ba7bace8a94fc06af0ff60dd7cd997af5d177990202b4ca9b2",
9
+ "proofs/context.ts": "de4cc367f852b0f5881929fb216b2b67ae2444e89057bf8f9e7b1cbdab7710f5",
9
10
  "proofs/resources.ts": "2253513bbe9cef4a166feb2ff83020d0e36388e2f9ce15911a9ff1e8aabab697",
10
11
  "proofs/lifecycle.ts": "e2a41e2a3f0701ccce977d0a0414ca6d1ded43d4365315e799a4a3abd1645320",
11
12
  "proofs/storage.ts": "5428833c8d71be81947159c8d09fcf31989809da4f09156c7f10cc0291a7df84",
@@ -14,8 +15,10 @@
14
15
  "proofs/grants.ts": "c71c1e8b327034dbf710d1f8839f0bd036783dedd22470a9c069029f3ea0ba38",
15
16
  "proofs/speculation.ts": "dc1f1b59f2e5414a439e7e62c897bd238b3470c7e608a9228fcf9e3b18dc9477",
16
17
  "proofs/budget.ts": "a6aa3ce2aaffe80d411f8addb6953cbee82c522743a7934dca12e823cf8e3f13",
18
+ "proofs/execution.ts": "cd8d6383501e0997a6a62d12ae131630ae345ad4c5e902427a70e78f8da979f3",
17
19
  "proofs/actor-name.ts": "777738fad15d31e9367d4290f6f4f8f3178a41adbedc4c889222ba317552d358",
18
- "scripts/verified-kernels.ts": "e6a6718990d1ab7c75020f0d6b62040df265610f20e0a1b6e61f6a8b3e71360d",
20
+ "proofs/prompt-guidance.ts": "dba83fcc37ae159fbd82187524142d87dc8bc99ad32505d7a5c1bc8fa0bb583c",
21
+ "scripts/verified-kernels.ts": "c3291f270e9b7d0006b2147f32f9ae200c648def3d45fc18affdf2ad305427cb",
19
22
  "scripts/verified-kernel-pool.ts": "7869f607e4ff87ac219fe2b14df06887fbc56a43c783118e64387f477e5ead42",
20
23
  "scripts/verified-kernel-worker.ts": "d9a9a4a6e80d92f515ee4f8018193418d6937255688cf2f7e52953813bc65a4f"
21
24
  },
@@ -24,6 +27,8 @@
24
27
  "src/verified/generated/policy.d.ts": "62f9069bb9f387afd3c62adabf2abea159c0d020e091524b797bc904f0e4f96a",
25
28
  "src/verified/generated/compaction.js": "477c85c10d9c8fd80dae3ab3c5129a8a876f4c9af8926424642c286c36554577",
26
29
  "src/verified/generated/compaction.d.ts": "ae3c0749bc93ba4fdacb4d904c7e39841577d5682843af32a41675222db73a90",
30
+ "src/verified/generated/context.js": "03bef099493516c36db777bbe02f6073f545c33e3a1e5f4cfbab34b32718a0a3",
31
+ "src/verified/generated/context.d.ts": "3d254febb0dd4fe7047b16d6c952516b212ec8a46a5631cc9006752b28cb2f6c",
27
32
  "src/verified/generated/resources.js": "1e240f0ea7b6ab8f77175c6c33b1ab34850df56f17c6982ea2c5a4356e63eb37",
28
33
  "src/verified/generated/resources.d.ts": "998a0351ef1fe986ee31f48fb2926e5a45c89f5a75ee05770ae114c26ab8b0b9",
29
34
  "src/verified/generated/lifecycle.js": "e100204c796a1b30a58b8537ca6d8f9e9f113c1fa5c8b3ae4668b3b4a1977a5d",
@@ -40,8 +45,12 @@
40
45
  "src/verified/generated/speculation.d.ts": "2c9242c09d72fb3ae86054047ffdbfb8d4f8a5c637d52a2232884d6c830c1b70",
41
46
  "src/verified/generated/budget.js": "d9361fc2ad9be99aa67004540ed1506742afb5220528c0f8d43ff19c845e06e1",
42
47
  "src/verified/generated/budget.d.ts": "9e5156ed081c60fb9af6a015e51356b8a473e6c3d60276817792d0eabb8116b4",
48
+ "src/verified/generated/execution.js": "559c4dfc8e675a22e0651f5644e0921412c49d3cc7856306481be90f94db8913",
49
+ "src/verified/generated/execution.d.ts": "df8417edc6151c2ad69d489e09c7f8bd0f5024cb5a2f27415d29717f1be85c2e",
43
50
  "src/verified/generated/actor-name.js": "8eee0026642a99f7130f9ba28a7882911e2e6957cae0de4248c4176fde9065e7",
44
- "src/verified/generated/actor-name.d.ts": "7b694c53e405e0b283ebec2c38d4d1bcd93693add9e0078fb57472098582f7f0"
51
+ "src/verified/generated/actor-name.d.ts": "7b694c53e405e0b283ebec2c38d4d1bcd93693add9e0078fb57472098582f7f0",
52
+ "src/verified/generated/prompt-guidance.js": "9297b840b08e4ed615c14cabc8ec07d6f01f71d8a219b84f4253b9a4e829e558",
53
+ "src/verified/generated/prompt-guidance.d.ts": "e5df630be45b7f9963433ea5e78d32f6a07fd9269925da5bdd8ef647d273d8d1"
45
54
  },
46
55
  "claims": {
47
56
  "policy": [
@@ -80,6 +89,13 @@
80
89
  "compaction": [
81
90
  "compactionCut: cut_sound: an open cut is eligible, after the previous marker, and within its tail budget; span_sound: a span keeps the cut open only if it was open and the span does not straddle the boundary; refusal_final: a refused cut stays refused; header_once: a header opens only an unstarted cut; cut_complete: a valid header opens a fresh cut, and an allowed span keeps it open"
82
91
  ],
92
+ "context": [
93
+ "summaryAllocation: user_first: the user's words lose bytes only when they alone exceed the limit",
94
+ "summaryAllocation: allocation_within: user and operational bytes together stay within the limit",
95
+ "summaryAllocation: operations_use_the_rest: operations receive what the user leaves, up to their demand",
96
+ "userStaleness: unanchored_is_zero: before any user message, nothing is counted; user_resets: a user message anchors and clears staleness; background_never_resets: a background delivery leaves the compaction count and anchor alone; compaction_counts_once: an anchored compaction adds exactly one; only_user_clears: no other entry lowers either count",
97
+ "failureLedger: failures_conserved: every failure is open, aged or resolved, exactly once; itemized_bounded: itemized failures are unresolved and within the limit; skipped_are_open: only fresh open failures are counted as left out; resolved_never_itemized: a resolved failure is never itemized; open_itemized_with_room: a fresh open failure is itemized while room remains; fresh_first: an aged failure takes no room once a fresh open failure was left out; aged_fills_room: an aged failure is itemized while room remains and no fresh one was left out"
98
+ ],
83
99
  "resources": [
84
100
  "resourceScope: scope names are a set; resource_source_refinement: an exact source keeps every declared name, and only those; resource_source_valid: an exact source is nonempty, with no empty or wildcard identity; resource_source_complete: every nonempty source of valid identities is exact; resource_refinement: normalization keeps a scope's names in both directions or widens it to unknown; resource_output_valid: an exact normal form is nonempty, at most 64 valid names of at most 256 code units; resource_unknown: a refused scope is unknown and names nothing; resource_precision: a valid bounded set-equivalent proposal is accepted as given (so the identity proposal is unchanged); resource_recheck_idempotent: rechecking a normal form against itself keeps it",
85
101
  "resourceConflict: resource_pair_sound: quiet effects never conflict, nor do two commutative ones; resource_conflict_exact: exact disjoint scopes never conflict; resource_conflict_complete: an ordered pair of effects with an unknown scope conflicts; resource_pair_complete: an ordered pair of effects sharing a named resource conflicts",
@@ -138,6 +154,21 @@
138
154
  "budgetAdmission: budget_complete: valid observations below the threshold are admitted",
139
155
  "budgetAdmission: budget_exhausted: equality and larger observations are refused",
140
156
  "budgetAdmission: budget_invalid: invalid observations are never admitted"
157
+ ],
158
+ "execution": [
159
+ "outputCeiling: ceiling_safe: a present accepted override is valid and positive",
160
+ "outputCeiling: ceiling_complete: absent or valid positive overrides are accepted",
161
+ "outputCeiling: ceiling_default: omission preserves the host default",
162
+ "outputCeiling: ceiling_override: a valid positive host override is preserved exactly",
163
+ "outputCeiling: ceiling_positive: accepted limits stay positive with a positive default",
164
+ "humanWaitAdmission: human_wait_safe: a callback requires runtime support and no hard deadline",
165
+ "humanWaitAdmission: human_wait_complete: runtime support without a hard deadline exposes the callback"
166
+ ],
167
+ "prompt-guidance": [
168
+ "promptGuidance: active guidance has exactly one portable destination and no duplicate native rules",
169
+ "promptGuidance: inactive guidance keeps native ownership and injects nothing",
170
+ "promptGuidance: an unforced structured prompt carries guidance in its section",
171
+ "promptGuidance: a forced or legacy prompt carries guidance in its append"
141
172
  ]
142
173
  }
143
174
  }
@@ -0,0 +1,4 @@
1
+ // Generated by scripts/verified-kernels.ts from proofs/prompt-guidance.ts with gdp-wired@0.31.1. Do not edit.
2
+ export interface MachineState { scalars: Record<string, number>; maps: Record<string, Map<number, number>>; defaults?: Record<string, number> }
3
+ export interface Machine { init(params: object): MachineState; step(params: object, state: MachineState, input: object): MachineState }
4
+ export declare const promptGuidance: Machine;
@@ -0,0 +1,17 @@
1
+ // Generated by scripts/verified-kernels.ts from proofs/prompt-guidance.ts with gdp-wired@0.31.1. Do not edit.
2
+ function $n(v, what) { if (typeof v !== 'number' || !Number.isSafeInteger(v) || v < 0) throw new RangeError(what + ' must be a natural below 2^53, not ' + v); return v; }
3
+
4
+ export const promptGuidance = /* @__PURE__ */ (() => {
5
+ // Generated from the machine portable prompt guidance. step consumes its state: keep the one it returns (fork to branch).
6
+ function init(params) {
7
+ const env = {}, s = {};
8
+ return {scalars: {"out.section": 0, "out.append": 0, "out.native": 0}, maps: {}};
9
+ }
10
+ function step(params, state, input) {
11
+ const env = {"active": $n(input["active"], "input active"), "sections": $n(input["sections"], "input sections"), "forced": $n(input["forced"], "input forced")}, s = state.scalars, dft = {...state.defaults}, maps = state.maps;
12
+ if (!((env["active"] <= 1) && (env["sections"] <= 1) && (env["forced"] <= 1))) throw new RangeError("portable prompt guidance: the request fails the rule's assumption, so no proof covers the step it would take");
13
+ const scalars = {...s, "out.section": (((env["active"] === 1) && (env["sections"] === 1) && (!(env["forced"] === 1))) ? 1 : 0), "out.append": (((env["active"] === 1) && ((!(env["sections"] === 1)) || (env["forced"] === 1))) ? 1 : 0), "out.native": ((!(env["active"] === 1)) ? 1 : 0)};
14
+ return Object.keys(dft).length ? {scalars, maps: state.maps, defaults: dft} : {scalars, maps: state.maps};
15
+ }
16
+ return { init, step };
17
+ })();
@@ -5,6 +5,13 @@ export declare class PiRecoveryWatchdog {
5
5
  private readonly fail;
6
6
  constructor(fail: (error: string) => void);
7
7
  arm(reason: string): void;
8
+ /** Pi announced a retry (`auto_retry_start`). A later attempt replaces an earlier one. */
9
+ retryAnnounced(attempt?: number, maxAttempts?: number): void;
10
+ /** Pi started a turn (`agent_start`) while recovery was pending. */
11
+ turnStarted(): void;
12
+ /** An assistant message started (`message_start`) while recovery was pending. */
13
+ responseStarted(): void;
14
+ /** Pi streamed output: restart the window, keeping the error and what recovery did. */
8
15
  progress(): void;
9
16
  clear(): void;
10
17
  dispose(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"recovery-watchdog.d.ts","sourceRoot":"","sources":["../../src/worker/recovery-watchdog.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C,iFAAiF;AACjF,qBAAa,kBAAkB;;IAKjB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAE1D,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAazB,QAAQ,IAAI,IAAI;IAOhB,KAAK,IAAI,IAAI;IAMb,OAAO,IAAI,IAAI;CAIhB;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,QAAc,CAAC;AACtD,gFAAgF;AAChF,eAAO,MAAM,4BAA4B,QAAa,CAAC;AAMvD;;;GAGG;AACH,qBAAa,eAAe;;IAUd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAE1D,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAuC7C,+EAA+E;IAC/E,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAO7B,OAAO,IAAI,IAAI;CA8DhB"}
1
+ {"version":3,"file":"recovery-watchdog.d.ts","sourceRoot":"","sources":["../../src/worker/recovery-watchdog.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C,iFAAiF;AACjF,qBAAa,kBAAkB;;IAWjB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAE1D,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;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