wicked-crew 0.17.0 → 0.18.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 (547) hide show
  1. package/README.md +71 -18
  2. package/adapters/web-source.lock +1314 -0
  3. package/dist/api/audit.d.ts +5 -0
  4. package/dist/api/audit.d.ts.map +1 -1
  5. package/dist/api/audit.js +20 -0
  6. package/dist/api/audit.js.map +1 -1
  7. package/dist/api/auth.d.ts.map +1 -1
  8. package/dist/api/auth.js +3 -0
  9. package/dist/api/auth.js.map +1 -1
  10. package/dist/api/chat-context.js +1 -1
  11. package/dist/api/chat-history.d.ts +3 -0
  12. package/dist/api/chat-history.d.ts.map +1 -1
  13. package/dist/api/chat-history.js +6 -1
  14. package/dist/api/chat-history.js.map +1 -1
  15. package/dist/api/chat-jobs.d.ts +192 -0
  16. package/dist/api/chat-jobs.d.ts.map +1 -0
  17. package/dist/api/chat-jobs.js +929 -0
  18. package/dist/api/chat-jobs.js.map +1 -0
  19. package/dist/api/chat-proposals.d.ts +323 -7
  20. package/dist/api/chat-proposals.d.ts.map +1 -1
  21. package/dist/api/chat-proposals.js +1581 -40
  22. package/dist/api/chat-proposals.js.map +1 -1
  23. package/dist/api/chat-requirements.d.ts +54 -0
  24. package/dist/api/chat-requirements.d.ts.map +1 -0
  25. package/dist/api/chat-requirements.js +282 -0
  26. package/dist/api/chat-requirements.js.map +1 -0
  27. package/dist/api/chat-scope.d.ts +56 -0
  28. package/dist/api/chat-scope.d.ts.map +1 -1
  29. package/dist/api/chat-scope.js +175 -5
  30. package/dist/api/chat-scope.js.map +1 -1
  31. package/dist/api/chat-transcripts.d.ts +7 -0
  32. package/dist/api/chat-transcripts.d.ts.map +1 -1
  33. package/dist/api/chat-transcripts.js +17 -1
  34. package/dist/api/chat-transcripts.js.map +1 -1
  35. package/dist/api/delivery-assurance.d.ts.map +1 -1
  36. package/dist/api/delivery-assurance.js +5 -2
  37. package/dist/api/delivery-assurance.js.map +1 -1
  38. package/dist/api/delivery-index.d.ts +109 -5
  39. package/dist/api/delivery-index.d.ts.map +1 -1
  40. package/dist/api/delivery-index.js +199 -7
  41. package/dist/api/delivery-index.js.map +1 -1
  42. package/dist/api/mcp.d.ts +7 -2
  43. package/dist/api/mcp.d.ts.map +1 -1
  44. package/dist/api/mcp.js +1 -1
  45. package/dist/api/mcp.js.map +1 -1
  46. package/dist/api/needs.d.ts.map +1 -1
  47. package/dist/api/needs.js +19 -1
  48. package/dist/api/needs.js.map +1 -1
  49. package/dist/api/product.d.ts +87 -3
  50. package/dist/api/product.d.ts.map +1 -1
  51. package/dist/api/product.js +155 -68
  52. package/dist/api/product.js.map +1 -1
  53. package/dist/api/proposal-theme.d.ts +23 -0
  54. package/dist/api/proposal-theme.d.ts.map +1 -0
  55. package/dist/api/proposal-theme.js +30 -0
  56. package/dist/api/proposal-theme.js.map +1 -0
  57. package/dist/api/recording.d.ts +127 -10
  58. package/dist/api/recording.d.ts.map +1 -1
  59. package/dist/api/recording.js +320 -68
  60. package/dist/api/recording.js.map +1 -1
  61. package/dist/api/repo-input.d.ts +55 -0
  62. package/dist/api/repo-input.d.ts.map +1 -0
  63. package/dist/api/repo-input.js +113 -0
  64. package/dist/api/repo-input.js.map +1 -0
  65. package/dist/api/requirements.d.ts +75 -0
  66. package/dist/api/requirements.d.ts.map +1 -1
  67. package/dist/api/requirements.js +97 -9
  68. package/dist/api/requirements.js.map +1 -1
  69. package/dist/api/review-change.d.ts +64 -0
  70. package/dist/api/review-change.d.ts.map +1 -0
  71. package/dist/api/review-change.js +214 -0
  72. package/dist/api/review-change.js.map +1 -0
  73. package/dist/api/roster-standing.d.ts +4 -0
  74. package/dist/api/roster-standing.d.ts.map +1 -1
  75. package/dist/api/roster-standing.js +43 -10
  76. package/dist/api/roster-standing.js.map +1 -1
  77. package/dist/api/routes.d.ts +138 -12
  78. package/dist/api/routes.d.ts.map +1 -1
  79. package/dist/api/routes.js +1496 -301
  80. package/dist/api/routes.js.map +1 -1
  81. package/dist/api/run-documents.d.ts +97 -0
  82. package/dist/api/run-documents.d.ts.map +1 -0
  83. package/dist/api/run-documents.js +458 -0
  84. package/dist/api/run-documents.js.map +1 -0
  85. package/dist/api/run-sources.d.ts +51 -0
  86. package/dist/api/run-sources.d.ts.map +1 -0
  87. package/dist/api/run-sources.js +133 -0
  88. package/dist/api/run-sources.js.map +1 -0
  89. package/dist/api/run-timing-index.d.ts +12 -1
  90. package/dist/api/run-timing-index.d.ts.map +1 -1
  91. package/dist/api/run-timing-index.js +35 -0
  92. package/dist/api/run-timing-index.js.map +1 -1
  93. package/dist/api/runtime-state.d.ts +41 -0
  94. package/dist/api/runtime-state.d.ts.map +1 -0
  95. package/dist/api/runtime-state.js +75 -0
  96. package/dist/api/runtime-state.js.map +1 -0
  97. package/dist/api/seat-container-login.d.ts +51 -0
  98. package/dist/api/seat-container-login.d.ts.map +1 -1
  99. package/dist/api/seat-container-login.js +317 -1
  100. package/dist/api/seat-container-login.js.map +1 -1
  101. package/dist/api/seat-images.d.ts.map +1 -1
  102. package/dist/api/seat-images.js +7 -0
  103. package/dist/api/seat-images.js.map +1 -1
  104. package/dist/api/server.d.ts +7 -0
  105. package/dist/api/server.d.ts.map +1 -1
  106. package/dist/api/server.js +207 -26
  107. package/dist/api/server.js.map +1 -1
  108. package/dist/api/skills.d.ts +8 -0
  109. package/dist/api/skills.d.ts.map +1 -1
  110. package/dist/api/skills.js +21 -0
  111. package/dist/api/skills.js.map +1 -1
  112. package/dist/api/system-snapshot.d.ts +3 -2
  113. package/dist/api/system-snapshot.d.ts.map +1 -1
  114. package/dist/api/system-snapshot.js +19 -6
  115. package/dist/api/system-snapshot.js.map +1 -1
  116. package/dist/api/testing.d.ts +3 -3
  117. package/dist/api/ui-text.d.ts +45 -0
  118. package/dist/api/ui-text.d.ts.map +1 -0
  119. package/dist/api/ui-text.js +188 -0
  120. package/dist/api/ui-text.js.map +1 -0
  121. package/dist/apps/actions/card.d.ts +62 -0
  122. package/dist/apps/actions/card.d.ts.map +1 -0
  123. package/dist/apps/actions/card.js +111 -0
  124. package/dist/apps/actions/card.js.map +1 -0
  125. package/dist/apps/actions/write-path.d.ts.map +1 -1
  126. package/dist/apps/actions/write-path.js +26 -77
  127. package/dist/apps/actions/write-path.js.map +1 -1
  128. package/dist/apps/exec/sources.d.ts.map +1 -1
  129. package/dist/apps/exec/sources.js +3 -0
  130. package/dist/apps/exec/sources.js.map +1 -1
  131. package/dist/apps/exec/texts.d.ts +1 -1
  132. package/dist/apps/publish/artifacts.d.ts +18 -0
  133. package/dist/apps/publish/artifacts.d.ts.map +1 -0
  134. package/dist/apps/publish/artifacts.js +87 -0
  135. package/dist/apps/publish/artifacts.js.map +1 -0
  136. package/dist/apps/publish/check.d.ts +103 -0
  137. package/dist/apps/publish/check.d.ts.map +1 -0
  138. package/dist/apps/publish/check.js +235 -0
  139. package/dist/apps/publish/check.js.map +1 -0
  140. package/dist/apps/publish/image.d.ts +2 -0
  141. package/dist/apps/publish/image.d.ts.map +1 -1
  142. package/dist/apps/publish/image.js +2 -1
  143. package/dist/apps/publish/image.js.map +1 -1
  144. package/dist/apps/publish/render.d.ts +71 -0
  145. package/dist/apps/publish/render.d.ts.map +1 -0
  146. package/dist/apps/publish/render.js +122 -0
  147. package/dist/apps/publish/render.js.map +1 -0
  148. package/dist/apps/publish/run.d.ts +35 -0
  149. package/dist/apps/publish/run.d.ts.map +1 -0
  150. package/dist/apps/publish/run.js +127 -0
  151. package/dist/apps/publish/run.js.map +1 -0
  152. package/dist/apps/routes.d.ts +54 -2
  153. package/dist/apps/routes.d.ts.map +1 -1
  154. package/dist/apps/routes.js +124 -7
  155. package/dist/apps/routes.js.map +1 -1
  156. package/dist/apps/spec.d.ts +8 -8
  157. package/dist/apps/store.d.ts +84 -5
  158. package/dist/apps/store.d.ts.map +1 -1
  159. package/dist/apps/store.js +191 -4
  160. package/dist/apps/store.js.map +1 -1
  161. package/dist/apps/turns.d.ts +19 -1
  162. package/dist/apps/turns.d.ts.map +1 -1
  163. package/dist/apps/turns.js +60 -2
  164. package/dist/apps/turns.js.map +1 -1
  165. package/dist/apps/views.d.ts +5 -1
  166. package/dist/apps/views.d.ts.map +1 -1
  167. package/dist/apps/views.js +18 -7
  168. package/dist/apps/views.js.map +1 -1
  169. package/dist/apps-server/Dockerfile +25 -0
  170. package/dist/apps-server/runners/sqlite-runner.mjs +110 -0
  171. package/dist/apps-server/server/lib/bundle/server.mjs +92523 -0
  172. package/dist/apps-server/server/node_modules/@pgsql/types/LICENSE +22 -0
  173. package/dist/apps-server/server/node_modules/@pgsql/types/README.md +106 -0
  174. package/dist/apps-server/server/node_modules/@pgsql/types/enums.d.ts +76 -0
  175. package/dist/apps-server/server/node_modules/@pgsql/types/enums.js +2 -0
  176. package/dist/apps-server/server/node_modules/@pgsql/types/esm/enums.js +1 -0
  177. package/dist/apps-server/server/node_modules/@pgsql/types/esm/index.js +2 -0
  178. package/dist/apps-server/server/node_modules/@pgsql/types/esm/types.js +1 -0
  179. package/dist/apps-server/server/node_modules/@pgsql/types/index.d.ts +2 -0
  180. package/dist/apps-server/server/node_modules/@pgsql/types/index.js +18 -0
  181. package/dist/apps-server/server/node_modules/@pgsql/types/package.json +36 -0
  182. package/dist/apps-server/server/node_modules/@pgsql/types/types.d.ts +2488 -0
  183. package/dist/apps-server/server/node_modules/@pgsql/types/types.js +2 -0
  184. package/dist/apps-server/server/node_modules/libpg-query/LICENSE +22 -0
  185. package/dist/apps-server/server/node_modules/libpg-query/README.md +275 -0
  186. package/dist/apps-server/server/node_modules/libpg-query/package.json +58 -0
  187. package/dist/apps-server/server/node_modules/libpg-query/wasm/index.cjs +369 -0
  188. package/dist/apps-server/server/node_modules/libpg-query/wasm/index.d.ts +48 -0
  189. package/dist/apps-server/server/node_modules/libpg-query/wasm/index.js +344 -0
  190. package/dist/apps-server/server/node_modules/libpg-query/wasm/libpg-query.js +2 -0
  191. package/dist/apps-server/server/node_modules/libpg-query/wasm/libpg-query.wasm +0 -0
  192. package/dist/apps-server/server/shim/host.css +22 -0
  193. package/dist/apps-server/server/shim/host.js +1 -0
  194. package/dist/cli/apps-check.d.ts +18 -0
  195. package/dist/cli/apps-check.d.ts.map +1 -1
  196. package/dist/cli/apps-check.js +179 -5
  197. package/dist/cli/apps-check.js.map +1 -1
  198. package/dist/cli/apps-produce.d.ts +9 -0
  199. package/dist/cli/apps-produce.d.ts.map +1 -0
  200. package/dist/cli/apps-produce.js +27 -0
  201. package/dist/cli/apps-produce.js.map +1 -0
  202. package/dist/cli/index.d.ts.map +1 -1
  203. package/dist/cli/index.js +15 -3
  204. package/dist/cli/index.js.map +1 -1
  205. package/dist/cli/insights-facts.d.ts +17 -0
  206. package/dist/cli/insights-facts.d.ts.map +1 -0
  207. package/dist/cli/insights-facts.js +56 -0
  208. package/dist/cli/insights-facts.js.map +1 -0
  209. package/dist/core/adapter.d.ts +85 -16
  210. package/dist/core/adapter.d.ts.map +1 -1
  211. package/dist/core/adapter.js +274 -54
  212. package/dist/core/adapter.js.map +1 -1
  213. package/dist/core/builtin-catalog.d.ts.map +1 -1
  214. package/dist/core/builtin-catalog.js +2 -0
  215. package/dist/core/builtin-catalog.js.map +1 -1
  216. package/dist/core/deliver-text.d.ts +42 -6
  217. package/dist/core/deliver-text.d.ts.map +1 -1
  218. package/dist/core/deliver-text.js +204 -27
  219. package/dist/core/deliver-text.js.map +1 -1
  220. package/dist/core/deliver.d.ts.map +1 -1
  221. package/dist/core/deliver.js +28 -7
  222. package/dist/core/deliver.js.map +1 -1
  223. package/dist/core/engine-roster.d.ts.map +1 -1
  224. package/dist/core/engine-roster.js +1 -0
  225. package/dist/core/engine-roster.js.map +1 -1
  226. package/dist/core/estate-mcp-client.d.ts +3 -2
  227. package/dist/core/estate-mcp-client.d.ts.map +1 -1
  228. package/dist/core/estate-mcp-client.js +3 -2
  229. package/dist/core/estate-mcp-client.js.map +1 -1
  230. package/dist/core/qe-acceptance-setting.d.ts.map +1 -1
  231. package/dist/core/qe-acceptance-setting.js +6 -0
  232. package/dist/core/qe-acceptance-setting.js.map +1 -1
  233. package/dist/core/run-identity.d.ts.map +1 -1
  234. package/dist/core/run-identity.js +3 -0
  235. package/dist/core/run-identity.js.map +1 -1
  236. package/dist/core/types.d.ts +5 -0
  237. package/dist/core/types.d.ts.map +1 -1
  238. package/dist/core/types.js.map +1 -1
  239. package/dist/editors/conformance-runtime.d.ts +107 -0
  240. package/dist/editors/conformance-runtime.d.ts.map +1 -1
  241. package/dist/editors/conformance-runtime.js +268 -13
  242. package/dist/editors/conformance-runtime.js.map +1 -1
  243. package/dist/editors/csp.d.ts +2 -2
  244. package/dist/editors/csp.d.ts.map +1 -1
  245. package/dist/editors/csp.js +4 -2
  246. package/dist/editors/csp.js.map +1 -1
  247. package/dist/editors/pack-install.d.ts +28 -13
  248. package/dist/editors/pack-install.d.ts.map +1 -1
  249. package/dist/editors/pack-install.js +96 -48
  250. package/dist/editors/pack-install.js.map +1 -1
  251. package/dist/editors/registry.d.ts +111 -8
  252. package/dist/editors/registry.d.ts.map +1 -1
  253. package/dist/editors/registry.js +183 -7
  254. package/dist/editors/registry.js.map +1 -1
  255. package/dist/editors/routes.d.ts +66 -13
  256. package/dist/editors/routes.d.ts.map +1 -1
  257. package/dist/editors/routes.js +277 -44
  258. package/dist/editors/routes.js.map +1 -1
  259. package/dist/evals/replay.d.ts +6 -0
  260. package/dist/evals/replay.d.ts.map +1 -1
  261. package/dist/evals/replay.js +24 -1
  262. package/dist/evals/replay.js.map +1 -1
  263. package/dist/evals/routes.d.ts.map +1 -1
  264. package/dist/evals/routes.js +17 -2
  265. package/dist/evals/routes.js.map +1 -1
  266. package/dist/evals/runner.d.ts.map +1 -1
  267. package/dist/evals/runner.js +5 -0
  268. package/dist/evals/runner.js.map +1 -1
  269. package/dist/evals/shape-corrections.d.ts +146 -0
  270. package/dist/evals/shape-corrections.d.ts.map +1 -0
  271. package/dist/evals/shape-corrections.js +394 -0
  272. package/dist/evals/shape-corrections.js.map +1 -0
  273. package/dist/evals/shape.d.ts +145 -0
  274. package/dist/evals/shape.d.ts.map +1 -0
  275. package/dist/evals/shape.js +376 -0
  276. package/dist/evals/shape.js.map +1 -0
  277. package/dist/evals/types.d.ts +2 -2
  278. package/dist/evals/types.d.ts.map +1 -1
  279. package/dist/evals/types.js +2 -1
  280. package/dist/evals/types.js.map +1 -1
  281. package/dist/insights/analyze.d.ts +14 -1
  282. package/dist/insights/analyze.d.ts.map +1 -1
  283. package/dist/insights/analyze.js +35 -8
  284. package/dist/insights/analyze.js.map +1 -1
  285. package/dist/insights/cost.d.ts +123 -0
  286. package/dist/insights/cost.d.ts.map +1 -0
  287. package/dist/insights/cost.js +221 -0
  288. package/dist/insights/cost.js.map +1 -0
  289. package/dist/insights/review-service.d.ts +20 -1
  290. package/dist/insights/review-service.d.ts.map +1 -1
  291. package/dist/insights/review-service.js +50 -25
  292. package/dist/insights/review-service.js.map +1 -1
  293. package/dist/insights/routes.d.ts +29 -0
  294. package/dist/insights/routes.d.ts.map +1 -1
  295. package/dist/insights/routes.js +62 -0
  296. package/dist/insights/routes.js.map +1 -1
  297. package/dist/insights/run-facts.d.ts +16 -0
  298. package/dist/insights/run-facts.d.ts.map +1 -1
  299. package/dist/insights/run-facts.js +26 -3
  300. package/dist/insights/run-facts.js.map +1 -1
  301. package/dist/interactive/bridge-pool.d.ts +11 -2
  302. package/dist/interactive/bridge-pool.d.ts.map +1 -1
  303. package/dist/interactive/bridge-pool.js +10 -1
  304. package/dist/interactive/bridge-pool.js.map +1 -1
  305. package/dist/interactive/chat-events.d.ts +74 -1
  306. package/dist/interactive/chat-events.d.ts.map +1 -1
  307. package/dist/interactive/chat-events.js +338 -6
  308. package/dist/interactive/chat-events.js.map +1 -1
  309. package/dist/interactive/doc-binding.d.ts +15 -0
  310. package/dist/interactive/doc-binding.d.ts.map +1 -1
  311. package/dist/interactive/doc-binding.js +4 -0
  312. package/dist/interactive/doc-binding.js.map +1 -1
  313. package/dist/interactive/doc-checks-routes.d.ts +34 -1
  314. package/dist/interactive/doc-checks-routes.d.ts.map +1 -1
  315. package/dist/interactive/doc-checks-routes.js +84 -0
  316. package/dist/interactive/doc-checks-routes.js.map +1 -1
  317. package/dist/interactive/draft-events.d.ts +7 -0
  318. package/dist/interactive/draft-events.d.ts.map +1 -1
  319. package/dist/interactive/draft-events.js +38 -6
  320. package/dist/interactive/draft-events.js.map +1 -1
  321. package/dist/interactive/draft-skill.d.ts +76 -6
  322. package/dist/interactive/draft-skill.d.ts.map +1 -1
  323. package/dist/interactive/draft-skill.js +219 -17
  324. package/dist/interactive/draft-skill.js.map +1 -1
  325. package/dist/interactive/edit-events.d.ts.map +1 -1
  326. package/dist/interactive/edit-events.js +4 -2
  327. package/dist/interactive/edit-events.js.map +1 -1
  328. package/dist/interactive/landing-guard.d.ts +47 -0
  329. package/dist/interactive/landing-guard.d.ts.map +1 -0
  330. package/dist/interactive/landing-guard.js +43 -0
  331. package/dist/interactive/landing-guard.js.map +1 -0
  332. package/dist/interactive/landing-record.d.ts +68 -0
  333. package/dist/interactive/landing-record.d.ts.map +1 -0
  334. package/dist/interactive/landing-record.js +154 -0
  335. package/dist/interactive/landing-record.js.map +1 -0
  336. package/dist/interactive/proposal-create.d.ts +3 -1
  337. package/dist/interactive/proposal-create.d.ts.map +1 -1
  338. package/dist/interactive/proposal-create.js +14 -2
  339. package/dist/interactive/proposal-create.js.map +1 -1
  340. package/dist/interactive/proposal-refine.d.ts +48 -0
  341. package/dist/interactive/proposal-refine.d.ts.map +1 -0
  342. package/dist/interactive/proposal-refine.js +99 -0
  343. package/dist/interactive/proposal-refine.js.map +1 -0
  344. package/dist/interactive/protected-edits.d.ts +67 -0
  345. package/dist/interactive/protected-edits.d.ts.map +1 -0
  346. package/dist/interactive/protected-edits.js +160 -0
  347. package/dist/interactive/protected-edits.js.map +1 -0
  348. package/dist/interactive/proxy-routes.js +2 -2
  349. package/dist/interactive/review-events.js +1 -1
  350. package/dist/interactive/run-units.d.ts +1 -1
  351. package/dist/interactive/run-units.d.ts.map +1 -1
  352. package/dist/interactive/run-units.js +8 -2
  353. package/dist/interactive/run-units.js.map +1 -1
  354. package/dist/interactive/source-packet.d.ts +66 -1
  355. package/dist/interactive/source-packet.d.ts.map +1 -1
  356. package/dist/interactive/source-packet.js +309 -60
  357. package/dist/interactive/source-packet.js.map +1 -1
  358. package/dist/interactive/theme-events.js +1 -1
  359. package/dist/knowledge/adapters/web/egress.d.ts +99 -0
  360. package/dist/knowledge/adapters/web/egress.d.ts.map +1 -0
  361. package/dist/knowledge/adapters/web/egress.js +330 -0
  362. package/dist/knowledge/adapters/web/egress.js.map +1 -0
  363. package/dist/knowledge/adapters/web/engine.d.ts +54 -0
  364. package/dist/knowledge/adapters/web/engine.d.ts.map +1 -0
  365. package/dist/knowledge/adapters/web/engine.js +101 -0
  366. package/dist/knowledge/adapters/web/engine.js.map +1 -0
  367. package/dist/knowledge/adapters/web/fetch.d.ts +131 -0
  368. package/dist/knowledge/adapters/web/fetch.d.ts.map +1 -0
  369. package/dist/knowledge/adapters/web/fetch.js +325 -0
  370. package/dist/knowledge/adapters/web/fetch.js.map +1 -0
  371. package/dist/knowledge/adapters/web/gate-web.d.ts +182 -0
  372. package/dist/knowledge/adapters/web/gate-web.d.ts.map +1 -0
  373. package/dist/knowledge/adapters/web/gate-web.js +496 -0
  374. package/dist/knowledge/adapters/web/gate-web.js.map +1 -0
  375. package/dist/knowledge/adapters/web/routes.d.ts +36 -0
  376. package/dist/knowledge/adapters/web/routes.d.ts.map +1 -0
  377. package/dist/knowledge/adapters/web/routes.js +99 -0
  378. package/dist/knowledge/adapters/web/routes.js.map +1 -0
  379. package/dist/knowledge/adapters/web/searxng.d.ts +89 -0
  380. package/dist/knowledge/adapters/web/searxng.d.ts.map +1 -0
  381. package/dist/knowledge/adapters/web/searxng.js +274 -0
  382. package/dist/knowledge/adapters/web/searxng.js.map +1 -0
  383. package/dist/knowledge/adapters/web/source.d.ts +65 -0
  384. package/dist/knowledge/adapters/web/source.d.ts.map +1 -0
  385. package/dist/knowledge/adapters/web/source.js +192 -0
  386. package/dist/knowledge/adapters/web/source.js.map +1 -0
  387. package/dist/knowledge/gate/gate.d.ts +22 -0
  388. package/dist/knowledge/gate/gate.d.ts.map +1 -1
  389. package/dist/knowledge/gate/gate.js +62 -1
  390. package/dist/knowledge/gate/gate.js.map +1 -1
  391. package/dist/knowledge/gate/sources.d.ts +2 -0
  392. package/dist/knowledge/gate/sources.d.ts.map +1 -1
  393. package/dist/knowledge/gate/sources.js +5 -2
  394. package/dist/knowledge/gate/sources.js.map +1 -1
  395. package/dist/knowledge/package.d.ts +7 -0
  396. package/dist/knowledge/package.d.ts.map +1 -1
  397. package/dist/knowledge/package.js +15 -1
  398. package/dist/knowledge/package.js.map +1 -1
  399. package/dist/knowledge/trackers/actions.js +1 -1
  400. package/dist/knowledge/trackers/actions.js.map +1 -1
  401. package/dist/knowledge/trackers/bindings.d.ts +3 -3
  402. package/dist/knowledge/trackers/bindings.d.ts.map +1 -1
  403. package/dist/knowledge/trackers/bindings.js +36 -23
  404. package/dist/knowledge/trackers/bindings.js.map +1 -1
  405. package/dist/knowledge/trackers/routes.js +1 -1
  406. package/dist/knowledge/trackers/routes.js.map +1 -1
  407. package/dist/learnings/service.d.ts.map +1 -1
  408. package/dist/learnings/service.js +2 -0
  409. package/dist/learnings/service.js.map +1 -1
  410. package/dist/mcp/broker.d.ts +8 -0
  411. package/dist/mcp/broker.d.ts.map +1 -1
  412. package/dist/mcp/broker.js +48 -3
  413. package/dist/mcp/broker.js.map +1 -1
  414. package/dist/mcp/estate-relay.d.ts +43 -1
  415. package/dist/mcp/estate-relay.d.ts.map +1 -1
  416. package/dist/mcp/estate-relay.js +38 -2
  417. package/dist/mcp/estate-relay.js.map +1 -1
  418. package/dist/mcp/registry.d.ts +6 -0
  419. package/dist/mcp/registry.d.ts.map +1 -1
  420. package/dist/mcp/registry.js +42 -3
  421. package/dist/mcp/registry.js.map +1 -1
  422. package/dist/mcp/run-fence.d.ts +57 -0
  423. package/dist/mcp/run-fence.d.ts.map +1 -0
  424. package/dist/mcp/run-fence.js +86 -0
  425. package/dist/mcp/run-fence.js.map +1 -0
  426. package/dist/mcp/tool-list.d.ts +5 -0
  427. package/dist/mcp/tool-list.d.ts.map +1 -1
  428. package/dist/mcp/tool-list.js +7 -3
  429. package/dist/mcp/tool-list.js.map +1 -1
  430. package/dist/presets/routes.d.ts.map +1 -1
  431. package/dist/presets/routes.js +6 -0
  432. package/dist/presets/routes.js.map +1 -1
  433. package/dist/projects/routes.d.ts +1 -1
  434. package/dist/projects/state-home-preflight.d.ts.map +1 -1
  435. package/dist/projects/state-home-preflight.js +2 -0
  436. package/dist/projects/state-home-preflight.js.map +1 -1
  437. package/dist/setup/tool-path.d.ts +16 -0
  438. package/dist/setup/tool-path.d.ts.map +1 -0
  439. package/dist/setup/tool-path.js +66 -0
  440. package/dist/setup/tool-path.js.map +1 -0
  441. package/dist/skills/plugin-source.d.ts +42 -88
  442. package/dist/skills/plugin-source.d.ts.map +1 -1
  443. package/dist/skills/plugin-source.js +140 -100
  444. package/dist/skills/plugin-source.js.map +1 -1
  445. package/dist/skills/runtime.d.ts.map +1 -1
  446. package/dist/skills/runtime.js +15 -7
  447. package/dist/skills/runtime.js.map +1 -1
  448. package/dist/skills/store.d.ts.map +1 -1
  449. package/dist/skills/store.js +25 -14
  450. package/dist/skills/store.js.map +1 -1
  451. package/dist/skills/usage.d.ts +238 -0
  452. package/dist/skills/usage.d.ts.map +1 -0
  453. package/dist/skills/usage.js +789 -0
  454. package/dist/skills/usage.js.map +1 -0
  455. package/dist/skills/venv.d.ts +18 -2
  456. package/dist/skills/venv.d.ts.map +1 -1
  457. package/dist/skills/venv.js +2 -2
  458. package/dist/skills/venv.js.map +1 -1
  459. package/dist/sources/routes.d.ts +3 -1
  460. package/dist/sources/routes.d.ts.map +1 -1
  461. package/dist/sources/routes.js +11 -0
  462. package/dist/sources/routes.js.map +1 -1
  463. package/dist/standing-orders/parse.d.ts +19 -0
  464. package/dist/standing-orders/parse.d.ts.map +1 -1
  465. package/dist/standing-orders/parse.js +61 -18
  466. package/dist/standing-orders/parse.js.map +1 -1
  467. package/dist/studio/apps-standalone/fixture.html +12 -0
  468. package/dist/studio/apps-standalone/fixture.js +10 -0
  469. package/dist/studio/apps-standalone/runtime.css +139 -0
  470. package/dist/studio/apps-standalone/runtime.js +1 -0
  471. package/dist/studio/assets/{KnowledgeGraph-Cpm46tEp.js → KnowledgeGraph-AtkRlS3c.js} +1 -1
  472. package/dist/studio/assets/index-CdbCAs7s.css +32 -0
  473. package/dist/studio/assets/index-DU_8o4uq.js +1104 -0
  474. package/dist/studio/editors/wicked-apps/editor.json +1 -1
  475. package/dist/studio/editors/wicked-apps/index.html +2 -2
  476. package/dist/studio/editors/wicked-deck/editor.json +1 -1
  477. package/dist/studio/editors/wicked-deck/index.html +14 -1
  478. package/dist/studio/editors/wicked-doc/editor.json +1 -1
  479. package/dist/studio/editors/wicked-doc/index.html +1 -1
  480. package/dist/studio/editors/wicked-insights/editor.json +1 -1
  481. package/dist/studio/editors/wicked-insights/index.html +1 -1
  482. package/dist/studio/editors/wicked-page/editor.json +10 -1
  483. package/dist/studio/editors/wicked-page/index.html +2 -2
  484. package/dist/studio/editors/wicked-video/editor.json +7 -2
  485. package/dist/studio/editors/wicked-video/index.html +14 -11
  486. package/dist/studio/index.html +2 -2
  487. package/dist/studio/testid-inventory.json +2069 -242
  488. package/dist/team/routes.d.ts +11 -1
  489. package/dist/team/routes.d.ts.map +1 -1
  490. package/dist/team/routes.js +27 -0
  491. package/dist/team/routes.js.map +1 -1
  492. package/dist/workflow-catalog/build-v2.d.ts +94 -0
  493. package/dist/workflow-catalog/build-v2.d.ts.map +1 -0
  494. package/dist/workflow-catalog/build-v2.js +551 -0
  495. package/dist/workflow-catalog/build-v2.js.map +1 -0
  496. package/dist/workflow-catalog/catalog-data-v2.d.ts +12 -0
  497. package/dist/workflow-catalog/catalog-data-v2.d.ts.map +1 -0
  498. package/dist/workflow-catalog/catalog-data-v2.js +2787 -0
  499. package/dist/workflow-catalog/catalog-data-v2.js.map +1 -0
  500. package/dist/workflow-catalog/catalog-data.d.ts.map +1 -1
  501. package/dist/workflow-catalog/catalog-data.js +2 -20
  502. package/dist/workflow-catalog/catalog-data.js.map +1 -1
  503. package/dist/workflow-catalog/detect-service.d.ts +95 -0
  504. package/dist/workflow-catalog/detect-service.d.ts.map +1 -0
  505. package/dist/workflow-catalog/detect-service.js +239 -0
  506. package/dist/workflow-catalog/detect-service.js.map +1 -0
  507. package/dist/workflow-catalog/detect.d.ts +213 -0
  508. package/dist/workflow-catalog/detect.d.ts.map +1 -0
  509. package/dist/workflow-catalog/detect.js +653 -0
  510. package/dist/workflow-catalog/detect.js.map +1 -0
  511. package/dist/workflow-catalog/seeds-v2.d.ts +91 -0
  512. package/dist/workflow-catalog/seeds-v2.d.ts.map +1 -0
  513. package/dist/workflow-catalog/seeds-v2.js +2 -0
  514. package/dist/workflow-catalog/seeds-v2.js.map +1 -0
  515. package/dist/workflow-catalog/shape.d.ts +99 -0
  516. package/dist/workflow-catalog/shape.d.ts.map +1 -0
  517. package/dist/workflow-catalog/shape.js +103 -0
  518. package/dist/workflow-catalog/shape.js.map +1 -0
  519. package/dist/working-doc/bridge-backend.js +2 -2
  520. package/dist/working-doc/event-lines.d.ts +67 -2
  521. package/dist/working-doc/event-lines.d.ts.map +1 -1
  522. package/dist/working-doc/event-lines.js +155 -8
  523. package/dist/working-doc/event-lines.js.map +1 -1
  524. package/dist/working-doc/notes-index.d.ts +35 -0
  525. package/dist/working-doc/notes-index.d.ts.map +1 -0
  526. package/dist/working-doc/notes-index.js +82 -0
  527. package/dist/working-doc/notes-index.js.map +1 -0
  528. package/dist/working-doc/routes.js +4 -4
  529. package/dist/working-doc/sections.js +2 -2
  530. package/dist/working-doc/service.d.ts +260 -21
  531. package/dist/working-doc/service.d.ts.map +1 -1
  532. package/dist/working-doc/service.js +791 -90
  533. package/dist/working-doc/service.js.map +1 -1
  534. package/dist/working-doc/store.d.ts +50 -1
  535. package/dist/working-doc/store.d.ts.map +1 -1
  536. package/dist/working-doc/store.js +4 -1
  537. package/dist/working-doc/store.js.map +1 -1
  538. package/endpoint-manifest.json +219 -5
  539. package/evals/corpora/shape-corrections-v1.json +594 -0
  540. package/evals/corpora/shape-corrections-v1.seat-fixture.json +186 -0
  541. package/evals/corpora/shape-v1.json +2113 -0
  542. package/evals/corpora/shape-v1.seat-fixture.json +1800 -0
  543. package/package.json +31 -8
  544. package/scripts/apps-render.py +226 -0
  545. package/workflows/detect-shape.json +29 -0
  546. package/dist/studio/assets/index-BRBwWQMH.css +0 -32
  547. package/dist/studio/assets/index-CVrWDGRP.js +0 -1097
@@ -1,25 +1,37 @@
1
1
  /**
2
- * THE WORKING DOCUMENT AND STEERING FROM IT (program DES-POWER-MODE §8.3, §9; spike 3).
2
+ * THE CONTEXT DOCUMENT AND STEERING FROM IT (program DES-POWER-MODE §8.3, §9; spike 3). Called the working document
3
+ * before the engine kept a context block; the wire and code names (`/working-doc`, `WorkingDoc*`) are unchanged.
3
4
  *
4
- * - Each run may have ONE working document: a wicked-interactive document (kind `phase-report`) in the run's
5
+ * - Each run may have ONE context document: a wicked-interactive document (kind `phase-report`) in the run's
5
6
  * project, bound by crew (`store.ts`). Versions are interactive's: write-once, parent-linked, each batch with
6
7
  * its `author`. A section is rewritten with one deterministic `content-edit`: no model, never a governed run.
7
8
  * - Attribution is crew's to decide. A person's edit (`author: 'operator'`) is accepted only from a HUMAN actor and
8
9
  * is recorded as theirs, with the plugin that hosted it named as the surface. A plugin's own generated lines
9
10
  * (`author: 'plugin'`) are recorded as `plugin:<id>@<version>` and may touch only the plugin's own section.
10
11
  * Nothing a plugin writes is ever recorded as a person's, and a plugin's lines never steer.
11
- * - STEERING. A person's version becomes ONE note for the run, sent through the operator's existing back-channel
12
+ * - THE CONTEXT BLOCK (context-doc-switch, core#1325). When the engine keeps one (`supportsRunContext` +
13
+ * `setRunContext`), the person's CURRENT Goal, Approach and Constraints (each section whose latest write is a
14
+ * person's, capped visibly) are set as the run's block after every version that touches them and once per live
15
+ * document at daemon start; the engine hands it to every seat the run spawns (workers, judges, rule judges, QE,
16
+ * councils). Never clipped silently: a cut section says so in its text and on the view (`context.cut`); a refused
17
+ * block's reason is on the view (`context.error`, which studio shows with the document) and the engine's block is
18
+ * cleared; an unanswered set is retried.
19
+ * Next still goes to the next step once, as a note.
20
+ * - STEERING NOTES. A person's version becomes ONE note for the run, sent through the operator's existing back-channel
12
21
  * (`injectWorkerMessage`, the `POST /runs/:id/inject` path): queued by the engine, it rides the next step's
13
22
  * prompt as an operator context block, and `workerMessageInjected` says which step picked it up.
14
- * Goal, Approach and Next go to the next step once; Constraints and steering is a STANDING steer, re-sent before
15
- * every later step until a later edit replaces it. Decisions and Open questions are recorded, not sent.
16
- * - DOCUMENT TEXT HAS NO POWER OVER GATES. This module calls `injectWorkerMessage` and nothing else on the engine:
17
- * no gate answer, no plan edit, no intent amendment, no rigor change. A note says in its first line that it
18
- * adds to the step's brief and changes no gate, check or review. (Tested: `tests/working-doc.test.ts`.)
23
+ * Without the engine's block (the bridge, operator ruling 2026-11-06), the person's CURRENT Goal, Approach and
24
+ * Constraints are ONE STANDING steer, re-sent before every later worker step until a later edit replaces it. Next
25
+ * goes to the next step once. Decisions and Open questions are recorded, not sent.
26
+ * - DOCUMENT TEXT HAS NO POWER OVER GATES. Its only engine writes are `injectWorkerMessage` and `setRunContext`
27
+ * (it also reads `supportsRunContext`): no gate answer, no plan edit, no intent amendment, no rigor change. A note says in its first
28
+ * line that it adds to the step's brief and changes no gate, check or review; the block's framing is the engine's
29
+ * and says the same. (Tested: `tests/working-doc.test.ts`.)
19
30
  */
20
31
  import type { CoreEvent } from '../core/types.js';
21
32
  import { type SectionId } from './sections.js';
22
- import type { SteerRecord, TrailEntry, WorkingDocStore } from './store.js';
33
+ import { type ContextRecipient, type SteerRecord, type TrailEntry, type WorkingDocRecord, type WorkingDocStore } from './store.js';
34
+ import { type PersonNote } from './event-lines.js';
23
35
  /** How crew reads and writes interactive documents (the bridge in production, a fake in tests). */
24
36
  export interface DocBackend {
25
37
  /** Create the document with its first version; marks it `phase-report` (the sidecar) before it is used. */
@@ -50,10 +62,90 @@ export interface DocBackend {
50
62
  head: number;
51
63
  }>;
52
64
  }
53
- /** The ONLY engine call steering makes. */
65
+ /** The run's context block as crew hands it to the engine (core `run_context::RunContext`, whole-block replace). */
66
+ export interface RunContextBlock {
67
+ /** The document version the block was read from. */
68
+ version: number;
69
+ /** Only a person's sections, in order; `[]` clears the block. */
70
+ sections: Array<{
71
+ id: SectionId;
72
+ text: string;
73
+ author: {
74
+ kind: 'human';
75
+ id: string;
76
+ };
77
+ version: number;
78
+ }>;
79
+ set_by: {
80
+ kind: 'human' | 'system';
81
+ id: string;
82
+ };
83
+ }
84
+ /** The engine calls steering makes (and one read of what the engine can do). Nothing here answers a gate. */
54
85
  export interface SteerEngine {
55
86
  injectWorkerMessage(runId: string, message: string, target: string): Promise<string>;
87
+ /** (core lane context-block-core) The engine keeps a per-run context block it hands every seat it spawns. Absent or
88
+ * false: crew's STANDING CONTEXT NOTE carries the person's Goal, Approach and Constraints to every later worker step
89
+ * instead (the bridge). True (with {@link setRunContext}): crew feeds the block and the note retires itself. */
90
+ supportsRunContext?(): boolean;
91
+ /** (core#1325) Replace the run's context block whole. Rejects `bad_request:` (refused whole, never clipped),
92
+ * `not_found:` or `conflict:` (the run has ended). An older or equal version is a no-op (`accepted: false`). */
93
+ setRunContext?(runId: string, ctx: RunContextBlock): Promise<{
94
+ version: number;
95
+ accepted: boolean;
96
+ }>;
56
97
  }
98
+ /** The sections a person's context is made of (what every agent of the run hears). */
99
+ export declare const CONTEXT_SECTIONS: readonly SectionId[];
100
+ /** Most characters of one section, and of all of them, the context carries (DESIGN §8 caps; the engine refuses more). */
101
+ export declare const CONTEXT_SECTION_MAX = 1500;
102
+ export declare const CONTEXT_MAX = 4000;
103
+ /** How long crew waits for the engine to answer a set before it records the set as unanswered. */
104
+ export declare const CONTEXT_SET_TIMEOUT_MS = 10000;
105
+ /** A person's text in the shape the engine takes it: line breaks as LF, and the invisible characters it refuses (a
106
+ * control character from a paste, a Unicode line separator) as LF or dropped. Nothing visible is changed. */
107
+ export declare function contextText(text: string): string;
108
+ /** The person's sections under the caps: each at most {@link CONTEXT_SECTION_MAX}, all of them at most
109
+ * {@link CONTEXT_MAX} (short sections keep all of theirs, the long ones share the rest). A cut section ends saying where
110
+ * it was cut, and is named in `cut` so the document's thread says so too: never a silent clip. */
111
+ export declare function capBlock<T extends {
112
+ id: SectionId;
113
+ text: string;
114
+ }>(sections: readonly T[]): {
115
+ sections: T[];
116
+ cut: SectionId[];
117
+ };
118
+ /** The seats the engine names in `runContextDelivered` (core `run_context`). */
119
+ export declare const CONTEXT_RECIPIENTS: ReadonlySet<string>;
120
+ /**
121
+ * Whether a document owes the engine a context set, from crew's own record alone (no engine call, no document read):
122
+ * a set owed or never answered, or a person's Goal, Approach or Constraints newer than the last block the engine took.
123
+ * A document with none of the person's context and nothing owed needs nothing at start-up (F35).
124
+ */
125
+ export declare function contextOwed(rec: WorkingDocRecord): boolean;
126
+ /** An author id as the seats read it (`local` is the operator); an id the engine would refuse reads "a person". */
127
+ export declare function contextAuthorId(id: string): string;
128
+ /** A person's section cut to `max` characters at a word boundary, saying so. */
129
+ export declare function capContext(text: string, max: number): string;
130
+ /** The person's current context as note lines: each section capped so that all of them fit {@link CONTEXT_MAX}. */
131
+ export declare function contextLines(context: ReadonlyArray<{
132
+ id: SectionId;
133
+ text: string;
134
+ }>): string[];
135
+ /** (bridge) The one note a person's version becomes when it touches their context: the context, standing, and any
136
+ * one-step section (Next) or cleared section with it. */
137
+ export declare function contextSteerNote(version: number, by: string, context: ReadonlyArray<{
138
+ id: SectionId;
139
+ text: string;
140
+ }>, once: Array<{
141
+ id: SectionId;
142
+ text: string;
143
+ }>, marker: string): string;
144
+ /** (bridge) The person's context alone, re-sent before every later step. */
145
+ export declare function contextStandingNote(version: number, by: string, context: ReadonlyArray<{
146
+ id: SectionId;
147
+ text: string;
148
+ }>, marker: string): string;
57
149
  export interface RunFacts {
58
150
  title: string;
59
151
  problem: string;
@@ -62,7 +154,18 @@ export interface RunFacts {
62
154
  terminal: boolean;
63
155
  /** A unit's step id (its `phase_ref`), for "picked up at Fix". */
64
156
  stepOf(ord: number): string | null;
157
+ /** (workdoc-all-runs) A power run: its Approach is the orchestrator's, never the plan's. */
158
+ power?: boolean;
159
+ /** (workdoc-all-runs) The run's current plan, the engine's own unit list: each step's name and the seat it ran on. */
160
+ steps?: ReadonlyArray<{
161
+ ord: number;
162
+ name: string | null;
163
+ seat: string | null;
164
+ }>;
65
165
  }
166
+ /** How many live runs with no document a daemon start brings up to date (newest first, one at a time). The rest get
167
+ * theirs on their next event. Rig 2026-11-06: 98 parked runs, 26 of them from the last day. */
168
+ export declare const CATCH_UP_LIVE_MAX = 40;
66
169
  export interface WorkingDocDeps {
67
170
  store: WorkingDocStore;
68
171
  backend: DocBackend;
@@ -77,10 +180,24 @@ export interface WorkingDocDeps {
77
180
  /** The run's recorded events (the engine's log), from which crew writes the document's event-derived lines
78
181
  * (Decisions answered, Open questions, Next). `null` when the log cannot be read. Absent: no such lines. */
79
182
  events?(runId: string): Promise<readonly CoreEvent[] | null>;
183
+ /** (workdoc-all-runs) A person's answers with their words, from crew's trail (`PersonNotesIndex`), oldest first: they
184
+ * become Decisions. Absent: no such lines. */
185
+ notes?(runId: string): Promise<readonly PersonNote[]>;
186
+ /** (workdoc-all-runs) How long the start-up catch-up waits between runs (default 250 ms: it never crowds the engine). */
187
+ catchUpGapMs?: number;
188
+ /** (workdoc-all-runs) The runs not finished (not completed, cancelled or failed), for the start-up catch-up. */
189
+ liveRuns?(): Promise<ReadonlyArray<{
190
+ runId: string;
191
+ createdAt: number;
192
+ }>>;
80
193
  /** How long after a line-relevant event the lines are brought up to date (one write per burst). */
81
194
  linesDelayMs?: number;
82
195
  /** How long to wait before trying the lines again while a person's write of unknown outcome settles. */
83
196
  linesRetryMs?: number;
197
+ /** (context-doc-switch) How long a context set may take before it is recorded as unanswered and retried. */
198
+ contextTimeoutMs?: number;
199
+ /** (context-doc-switch) When an unanswered or failed context set is tried again (default 15 s, 1 min, 5 min). */
200
+ contextRetryMs?: readonly number[];
84
201
  now?(): number;
85
202
  log?(m: string): void;
86
203
  }
@@ -97,6 +214,31 @@ export interface WorkingDocView {
97
214
  steers: SteerRecord[];
98
215
  /** Crew writes the event-derived lines itself ({@link WorkingDocService.syncLines}): a host plugin writes none. */
99
216
  eventLines: boolean;
217
+ /** (context-doc-switch) The engine's context block: the person's Goal, Approach and Constraints in every agent the run
218
+ * spawns. Absent when the engine keeps none and crew never fed one. */
219
+ context?: WorkingDocContextView;
220
+ }
221
+ /** What the document's thread says about the engine's context block. */
222
+ export interface WorkingDocContextView {
223
+ /** The linked engine keeps a context block (crew feeds it; no standing note). */
224
+ engine: boolean;
225
+ /** The version of the block the engine holds (a block withdrawn after a refusal holds no sections), or null. */
226
+ version: number | null;
227
+ /** The person's sections in it (empty: none of the person's, or cleared after a refusal). */
228
+ sections: SectionId[];
229
+ /** Sections crew cut to fit the caps (each ends saying where it was cut). */
230
+ cut: SectionId[];
231
+ at: number | null;
232
+ /** The last version that did not reach the agents, and why (e.g. too long once framed). `cleared`: the earlier
233
+ * block was withdrawn so no replaced words stay in force. */
234
+ error: {
235
+ version: number;
236
+ reason: string;
237
+ at: number;
238
+ cleared: boolean;
239
+ } | null;
240
+ /** The seats the engine handed `version` to (builder, reviewer, gate judge, rule judge, QE, council …). */
241
+ seenBy: ContextRecipient[];
100
242
  }
101
243
  export type ProposeResult = {
102
244
  ok: true;
@@ -124,6 +266,12 @@ export interface ProposeInput {
124
266
  * audit line, so the thread says "You (by voice)". A person's (`author: 'operator'`) only. */
125
267
  input?: 'voice' | undefined;
126
268
  }
269
+ /** A unit's step name: its `phase_ref`, unless that is the engine's execution id (`wf-<run>:unit-4:a1`, which a run's
270
+ * unit carries once it ran: xreview r2, rig run W12), else its description's head ("pa-scope — Fixes …" → "pa-scope"). */
271
+ export declare function workingDocStep(u: {
272
+ phase_ref?: string | null;
273
+ description?: unknown;
274
+ } | undefined): string | null;
127
275
  /** A doc name interactive accepts (lowercase, digits, hyphens; ≤ 64): one per run. */
128
276
  export declare function workingDocName(runId: string): string;
129
277
  /** The marker a note ends with, by which `workerMessageInjected` is matched back to its steer. */
@@ -172,14 +320,29 @@ export declare class WorkingDocService {
172
320
  private eventLog;
173
321
  /** Runs whose orchestrator wrote its own APPROACH line: its turn summaries then never replace it. */
174
322
  private readonly approachNoted;
323
+ /** Runs whose pending line sync may MAKE the document (a live event came for it, or the start-up catch-up chose it). */
324
+ private readonly mayCreate;
325
+ /** Per run, the settled plan's event signature the Approach was last checked against (the run's view is read again
326
+ * only when it moves). */
327
+ private readonly planChecked;
328
+ /** (context-doc-switch) Per run, how many retries of an unanswered context set are scheduled so far. */
329
+ private readonly contextRetries;
330
+ /** The start-up context catch-up (once per daemon). */
331
+ private contextCaughtUp;
175
332
  constructor(d: WorkingDocDeps);
176
333
  private exclusive;
177
334
  view(runId: string): Promise<WorkingDocView>;
178
335
  /** Whether crew writes the event lines: it has an event log it can read (probed once when unknown). A daemon whose
179
336
  * engine binding has no log says false, so the studio plugin keeps writing them (xreview on #1224). */
180
337
  private eventLines;
181
- /** Catch up every document crew holds (after a daemon restart, no further event may come for a run). */
182
- catchUp(): void;
338
+ /**
339
+ * After a daemon restart no further event may come for a run (a parked run waits on a person): bring every document
340
+ * crew holds up to date, and make one for the {@link CATCH_UP_LIVE_MAX} newest live runs that have none (rig run W12
341
+ * 9dd4f6d1: parked, never viewed, no document). One run at a time, so a start is never a storm. A finished run with no
342
+ * document gets none here: hundreds of finished runs would each be a document nobody asked for. Resolves when done;
343
+ * never rejects.
344
+ */
345
+ catchUp(): Promise<void>;
183
346
  /** The run's working document, created on first ask (its Goal seeded from the run's intent, by crew). The view is
184
347
  * read after the lock is released: `view()` settles a pending write under the same lock (review on #1218: reading it
185
348
  * inside deadlocked the run's document). */
@@ -206,14 +369,32 @@ export declare class WorkingDocService {
206
369
  * The document's EVENT-DERIVED lines (Decisions answered, Open questions, Next), brought up to date from the run's
207
370
  * own recorded events and written by crew as the Phase report plugin's actor ({@link PHASE_REPORT_AUTHOR}), whether
208
371
  * or not anyone has the run open (rig run ea73afc0: only a viewing tab wrote them). Like every plugin line they
209
- * never steer, and a person's own lines in those sections stay as they are, in place. A power run gets its document
210
- * here if it has none; any other run only once it has one. A person's edit racing this write wins: crew re-reads and
211
- * writes again on top of it (3 tries at most). Resolves to the version written, or `null` (nothing to change, no
212
- * log, no document).
372
+ * never steer, and a person's own lines in those sections stay as they are, in place. With `create` (a live event
373
+ * came for the run, or the start-up catch-up chose it) a run of any kind gets its document here if it has none
374
+ * (workdoc-all-runs, rig run W12: only power runs did). A phased run's Approach is its settled plan
375
+ * ({@link planApproach}), written as the plan's author seat. A person's edit racing a write wins: crew re-reads and
376
+ * writes again on top of it (3 tries at most). Resolves to the last version written, or `null` (nothing to change,
377
+ * no log, no document).
213
378
  */
214
- syncLines(runId: string): Promise<number | null>;
379
+ syncLines(runId: string, opts?: {
380
+ create?: boolean;
381
+ }): Promise<number | null>;
215
382
  private syncLinesNow;
216
- /** Bring the event-derived lines up to date shortly (a burst of events becomes one write). */
383
+ /** (workdoc-all-runs) Something the run's document shows changed outside the engine's log (a person's answer
384
+ * recorded in crew's trail): bring it up to date shortly, making it if the run has none. */
385
+ nudge(runId: string): void;
386
+ /**
387
+ * (workdoc-all-runs) A phased run's Approach: its plan once settled ({@link planSettled}), read from the run's own
388
+ * unit list, by the seat that wrote the plan (the plan gate's reviewed step) when known, else by crew. `null` for a
389
+ * power run (its orchestrator writes Approach), before the plan is settled, or when nothing moved since the last look.
390
+ */
391
+ private planText;
392
+ /** Crew's own write of some sections, as `author` (never a person, so it never steers), on the newest head; a person's
393
+ * edit racing it wins and the sections are computed again on top of it (3 tries at most). Inside the run's turn.
394
+ * Resolves to the version written, `'same'` when nothing needed changing, or `null` (gave up, or the doc is gone). */
395
+ private writeAs;
396
+ /** Bring the event-derived lines up to date shortly (a burst of events becomes one write). `create`: the sync may
397
+ * make the run's document (a live event came for it). */
217
398
  private linesSoon;
218
399
  /** A write whose outcome is not known: remembered, so a later read attributes it if it lands, never to the next
219
400
  * caller, and looked at again on its own shortly, so its steer (a person's) is not left waiting for a reader. */
@@ -224,11 +405,69 @@ export declare class WorkingDocService {
224
405
  * recorded as its author's if (and only if) it is that write. */
225
406
  private reconcile;
226
407
  /**
227
- * A person's version → ONE steering note for the run (§9): Goal, Approach and Next for the next step, and Constraints
228
- * and steering as a standing constraint (an emptied Constraints is said once, as cleared). The record is stored
229
- * BEFORE the engine is asked, so a pickup reported at once is never lost.
408
+ * A person's version → ONE steering note for the run (§9). With the engine's context block (`blockMode`): Goal,
409
+ * Approach and Constraints are in the block (set in `record`), every standing note is replaced, and only Next makes a
410
+ * note, for the next step. Without it (the bridge): the person's CURRENT Goal, Approach and Constraints stand together,
411
+ * replaced by the next edit of any of them, with Next for the next step and a cleared section said once. An engine
412
+ * that reports the block but has no way to set it (none in production): Goal, Approach and Next once, Constraints
413
+ * standing. The record is stored BEFORE the engine is asked, so a pickup reported at
414
+ * once is never lost. `after` is the version's sections as written.
230
415
  */
231
416
  private steer;
417
+ /**
418
+ * (bridge) The person's current context in a version (`after`, its sections as written): each of Goal, Approach and
419
+ * Constraints whose latest write is a person's (this version's sections are). Crew's seeded Goal, a plan's Approach and
420
+ * an agent's notes are never in it: only a person's words steer.
421
+ */
422
+ private personContext;
423
+ /** The linked engine keeps a context block crew can set: the person's context goes there, not in notes. */
424
+ private blockMode;
425
+ /** The engine holds the run's block at `version` or later (crew heard it say so). */
426
+ private blockCovers;
427
+ /**
428
+ * The block of one version: each of Goal, Approach and Constraints whose newest write at or before `version` is a
429
+ * person's (crew's trail), with that version's text. Crew's seeded Goal, a plan's Approach, an agent's or a plugin's
430
+ * lines are never in it. Capped visibly ({@link capBlock}). `sections` are the version's own sections as written.
431
+ */
432
+ private contextBlock;
433
+ /**
434
+ * Set the run's block (inside the run's turn), unless it is the block crew last set and the engine took (the engine
435
+ * keeps it durably). The engine keeps the higher version, so an older block sent late is a no-op.
436
+ *
437
+ * - The attempt is recorded BEFORE the engine is asked: an answer lost (a timeout, a restart) never lets a later
438
+ * empty block be skipped as "nothing was ever set".
439
+ * - A refusal (`bad_request`, e.g. too long once framed) is recorded with the engine's reason, and the engine's block
440
+ * is CLEARED at that version, so no words the person has since replaced stay in force.
441
+ * - Any other failure (no answer in time, the engine down) and a clear that fails are retried from the document's
442
+ * head ({@link resyncContext}) a few times, then at the next start or edit; the view says so meanwhile.
443
+ * - An ended run (`conflict`) or one the engine does not know (`not_found`) is recorded, not retried.
444
+ *
445
+ * Never throws: the version is written whatever the engine says. The state is on the view (`context`), which studio
446
+ * shows with the document.
447
+ */
448
+ private sendContext;
449
+ private updateContext;
450
+ /** Try the run's block again later (a set with no answer, a clear that failed, a retry that could not read the
451
+ * document): a few times, then the next start or the run's next version of any section (`record`). */
452
+ private scheduleContextRetry;
453
+ /**
454
+ * Set the run's block from its document's head (one read: the version and its HTML), inside the run's turn, after an
455
+ * unknown-outcome write has settled: at daemon start ({@link contextCatchUp}) and on a retry. A finished run is
456
+ * skipped. Never rejects.
457
+ */
458
+ resyncContext(runId: string, knownLive?: boolean): Promise<void>;
459
+ /** Once per document at daemon start (as soon as the daemon is up, ahead of the slower line catch-up): set every live
460
+ * run's block from its head, so a block the engine lacks (an upgrade, a lost answer) is in force before the run's
461
+ * next step. Serial, once per daemon; never rejects. */
462
+ contextCatchUp(): Promise<void>;
463
+ /** What the document's view says about the block, or null when there is nothing to say (no block engine, never fed). */
464
+ private contextView;
465
+ /**
466
+ * `runContextDelivered`: one seat the engine built a prompt for with the block (no text in the frame). It only names
467
+ * who saw a version crew itself set: a version crew never tried, a malformed value or an unknown recipient is dropped,
468
+ * and it never moves the version in force (only the engine's answers to crew's own sets do).
469
+ */
470
+ private delivered;
232
471
  /**
233
472
  * The daemon's CoreEvent tap.
234
473
  *
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/working-doc/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAEO,KAAK,SAAS,EAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAa,WAAW,EAAE,UAAU,EAAoB,eAAe,EAAE,MAAM,YAAY,CAAC;AAGxG,mGAAmG;AACnG,MAAM,WAAW,UAAU;IACzB,2GAA2G;IAC3G,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjG,yGAAyG;IACzG,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IACvF,uEAAuE;IACvE,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACvF;oHACgH;IAChH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GACrI,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAA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