@graphrefly/ts 0.0.1 → 0.0.3

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 (333) hide show
  1. package/README.md +197 -117
  2. package/dist/actions-types-CH-XCU9O.d.cts +657 -0
  3. package/dist/actions-types-w2iPQTkv.d.ts +657 -0
  4. package/dist/adapters/index.cjs +5157 -2951
  5. package/dist/adapters/index.cjs.map +1 -1
  6. package/dist/adapters/index.d.cts +207 -70
  7. package/dist/adapters/index.d.ts +207 -70
  8. package/dist/adapters/index.js +3738 -1688
  9. package/dist/adapters/index.js.map +1 -1
  10. package/dist/adapters/nestjs/microservices.cjs +841 -0
  11. package/dist/adapters/nestjs/microservices.cjs.map +1 -0
  12. package/dist/adapters/nestjs/microservices.d.cts +45 -0
  13. package/dist/adapters/nestjs/microservices.d.ts +45 -0
  14. package/dist/adapters/nestjs/microservices.js +206 -0
  15. package/dist/adapters/nestjs/microservices.js.map +1 -0
  16. package/dist/adapters/nestjs/native.cjs +1391 -0
  17. package/dist/adapters/nestjs/native.cjs.map +1 -0
  18. package/dist/adapters/nestjs/native.d.cts +111 -0
  19. package/dist/adapters/nestjs/native.d.ts +111 -0
  20. package/dist/adapters/nestjs/native.js +577 -0
  21. package/dist/adapters/nestjs/native.js.map +1 -0
  22. package/dist/adapters/nestjs/websockets.cjs +924 -0
  23. package/dist/adapters/nestjs/websockets.cjs.map +1 -0
  24. package/dist/adapters/nestjs/websockets.d.cts +47 -0
  25. package/dist/adapters/nestjs/websockets.d.ts +47 -0
  26. package/dist/adapters/nestjs/websockets.js +286 -0
  27. package/dist/adapters/nestjs/websockets.js.map +1 -0
  28. package/dist/adapters/nestjs.cjs +1085 -0
  29. package/dist/adapters/nestjs.cjs.map +1 -0
  30. package/dist/adapters/nestjs.d.cts +385 -0
  31. package/dist/adapters/nestjs.d.ts +385 -0
  32. package/dist/adapters/nestjs.js +112 -0
  33. package/dist/adapters/nestjs.js.map +1 -0
  34. package/dist/adapters/observe-storage.d.cts +3 -3
  35. package/dist/adapters/observe-storage.d.ts +3 -3
  36. package/dist/adapters/observe-storage.js +4 -4
  37. package/dist/adapters/react.cjs.map +1 -1
  38. package/dist/adapters/react.d.cts +2 -2
  39. package/dist/adapters/react.d.ts +2 -2
  40. package/dist/adapters/react.js +1 -1
  41. package/dist/adapters/solid.cjs.map +1 -1
  42. package/dist/adapters/solid.d.cts +2 -2
  43. package/dist/adapters/solid.d.ts +2 -2
  44. package/dist/adapters/solid.js +1 -1
  45. package/dist/adapters/svelte.cjs.map +1 -1
  46. package/dist/adapters/svelte.d.cts +2 -2
  47. package/dist/adapters/svelte.d.ts +2 -2
  48. package/dist/adapters/svelte.js +1 -1
  49. package/dist/adapters/vue.cjs.map +1 -1
  50. package/dist/adapters/vue.d.cts +2 -2
  51. package/dist/adapters/vue.d.ts +2 -2
  52. package/dist/adapters/vue.js +1 -1
  53. package/dist/{agent-runtime-BesGDZcB.d.ts → agent-runtime-types-core-CKwrBDyi.d.ts} +171 -320
  54. package/dist/{agent-runtime-DZTJ3C-p.d.cts → agent-runtime-types-core-bfl4m0vM.d.cts} +171 -320
  55. package/dist/agent-runtime-types-tool-BLPV3azj.d.cts +695 -0
  56. package/dist/agent-runtime-types-tool-hwqvVqNt.d.ts +695 -0
  57. package/dist/agentic-memory-retention-CLwI76JK.d.ts +14 -0
  58. package/dist/agentic-memory-retention-Cz8GR6ie.d.cts +14 -0
  59. package/dist/{agentic-memory-DfuVZ-lY.d.cts → agentic-memory-types-JDr7MPhh.d.cts} +13 -57
  60. package/dist/{agentic-memory-BmRCvh0d.d.ts → agentic-memory-types-khYJgzKL.d.ts} +13 -57
  61. package/dist/{capability-admission-B0BzqAm5.d.cts → capability-admission-B8RNFyaZ.d.cts} +3 -3
  62. package/dist/{capability-admission-g0mn9hpq.d.ts → capability-admission-Dkw1Xz3r.d.ts} +3 -3
  63. package/dist/chunk-2KUAG2GZ.js +9693 -0
  64. package/dist/chunk-2KUAG2GZ.js.map +1 -0
  65. package/dist/{chunk-CZNV3VXM.js → chunk-3J7UPZL5.js} +11 -11
  66. package/dist/{chunk-HKK2JD7Z.js → chunk-3LYI6ADX.js} +12 -125
  67. package/dist/chunk-3LYI6ADX.js.map +1 -0
  68. package/dist/{chunk-YXMZ2N6J.js → chunk-4M37FH2I.js} +1071 -1025
  69. package/dist/chunk-4M37FH2I.js.map +1 -0
  70. package/dist/{chunk-YDSIVHRR.js → chunk-4NWSNI4K.js} +1598 -1584
  71. package/dist/chunk-4NWSNI4K.js.map +1 -0
  72. package/dist/{chunk-Z2ANQ6JW.js → chunk-4Q77MMJY.js} +2 -2
  73. package/dist/{chunk-SS2A464I.js → chunk-54WPEODM.js} +3 -3
  74. package/dist/chunk-54WPEODM.js.map +1 -0
  75. package/dist/chunk-6E76H4OU.js +132 -0
  76. package/dist/chunk-6E76H4OU.js.map +1 -0
  77. package/dist/chunk-7GOTIIQ7.js +819 -0
  78. package/dist/chunk-7GOTIIQ7.js.map +1 -0
  79. package/dist/{chunk-V7CIJE4B.js → chunk-DKFWDTVY.js} +92 -9
  80. package/dist/chunk-DKFWDTVY.js.map +1 -0
  81. package/dist/{chunk-FBUU43PM.js → chunk-E4QCH32M.js} +448 -446
  82. package/dist/chunk-E4QCH32M.js.map +1 -0
  83. package/dist/{chunk-XKXWK2KP.js → chunk-GXU6WFEJ.js} +1157 -1021
  84. package/dist/chunk-GXU6WFEJ.js.map +1 -0
  85. package/dist/{chunk-K3FXTC3I.js → chunk-HJACH5PU.js} +3 -3
  86. package/dist/{chunk-GTPCOEOZ.js → chunk-IDMLXLLG.js} +3 -3
  87. package/dist/{chunk-DKP56CSW.js → chunk-JKAYLDQV.js} +2 -2
  88. package/dist/{chunk-4VLAQHZI.js → chunk-K7FB3JTD.js} +17 -1
  89. package/dist/chunk-K7FB3JTD.js.map +1 -0
  90. package/dist/{chunk-43BKLFZU.js → chunk-KFURM6FM.js} +10 -10
  91. package/dist/{chunk-H75VXTGT.js → chunk-L6LDXRWE.js} +3 -3
  92. package/dist/{chunk-H75VXTGT.js.map → chunk-L6LDXRWE.js.map} +1 -1
  93. package/dist/chunk-MCOFHMUU.js +4131 -0
  94. package/dist/chunk-MCOFHMUU.js.map +1 -0
  95. package/dist/chunk-MQEQMS7B.js +1009 -0
  96. package/dist/chunk-MQEQMS7B.js.map +1 -0
  97. package/dist/chunk-MTELVIYR.js +1421 -0
  98. package/dist/chunk-MTELVIYR.js.map +1 -0
  99. package/dist/{chunk-3JR3EDB2.js → chunk-NNDIFUKX.js} +121 -115
  100. package/dist/chunk-NNDIFUKX.js.map +1 -0
  101. package/dist/{chunk-2747WN4Y.js → chunk-PUSRRALM.js} +3 -3
  102. package/dist/{chunk-QFY4AFY4.js → chunk-PVC7WDKI.js} +58 -52
  103. package/dist/chunk-PVC7WDKI.js.map +1 -0
  104. package/dist/{chunk-VTHLCFN4.js → chunk-RAHNUYA5.js} +2 -2
  105. package/dist/chunk-TQPCAIQI.js +612 -0
  106. package/dist/chunk-TQPCAIQI.js.map +1 -0
  107. package/dist/{chunk-IXZBUWSP.js → chunk-UEMN5URK.js} +2 -2
  108. package/dist/chunk-WOS7RJYZ.js +1320 -0
  109. package/dist/chunk-WOS7RJYZ.js.map +1 -0
  110. package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
  111. package/dist/composition/index.cjs +1228 -1076
  112. package/dist/composition/index.cjs.map +1 -1
  113. package/dist/composition/index.d.cts +3 -3
  114. package/dist/composition/index.d.ts +3 -3
  115. package/dist/composition/index.js +4 -4
  116. package/dist/core/index.cjs +1198 -1046
  117. package/dist/core/index.cjs.map +1 -1
  118. package/dist/core/index.d.cts +23 -2
  119. package/dist/core/index.d.ts +23 -2
  120. package/dist/core/index.js +2 -2
  121. package/dist/cqrs/index.d.cts +3 -3
  122. package/dist/cqrs/index.d.ts +3 -3
  123. package/dist/cqrs/messaging.d.cts +4 -4
  124. package/dist/cqrs/messaging.d.ts +4 -4
  125. package/dist/cqrs/work-queue.d.cts +5 -5
  126. package/dist/cqrs/work-queue.d.ts +5 -5
  127. package/dist/data-structures/index.cjs +1226 -1074
  128. package/dist/data-structures/index.cjs.map +1 -1
  129. package/dist/data-structures/index.d.cts +8 -7
  130. package/dist/data-structures/index.d.ts +8 -7
  131. package/dist/data-structures/index.js +6 -5
  132. package/dist/{describe-DYMw_l1C.d.cts → describe-BumQ-3_0.d.cts} +1 -1
  133. package/dist/{describe-BpyJuWkw.d.ts → describe-cYr_Z5zm.d.ts} +1 -1
  134. package/dist/executors/tool-provider-adapters.cjs +3091 -0
  135. package/dist/executors/tool-provider-adapters.cjs.map +1 -0
  136. package/dist/executors/tool-provider-adapters.d.cts +174 -0
  137. package/dist/executors/tool-provider-adapters.d.ts +174 -0
  138. package/dist/executors/tool-provider-adapters.js +1336 -0
  139. package/dist/executors/tool-provider-adapters.js.map +1 -0
  140. package/dist/executors/tool-provider-runtime.cjs +5178 -0
  141. package/dist/executors/tool-provider-runtime.cjs.map +1 -0
  142. package/dist/executors/tool-provider-runtime.d.cts +17 -0
  143. package/dist/executors/tool-provider-runtime.d.ts +17 -0
  144. package/dist/executors/tool-provider-runtime.js +15 -0
  145. package/dist/executors/tool-provider-runtime.js.map +1 -0
  146. package/dist/executors/tool-provider.cjs +6392 -0
  147. package/dist/executors/tool-provider.cjs.map +1 -0
  148. package/dist/executors/tool-provider.d.cts +60 -0
  149. package/dist/executors/tool-provider.d.ts +60 -0
  150. package/dist/executors/tool-provider.js +89 -0
  151. package/dist/executors/tool-provider.js.map +1 -0
  152. package/dist/executors/work-queue.d.cts +6 -6
  153. package/dist/executors/work-queue.d.ts +6 -6
  154. package/dist/graph/index.cjs +1499 -1341
  155. package/dist/graph/index.cjs.map +1 -1
  156. package/dist/graph/index.d.cts +9 -8
  157. package/dist/graph/index.d.ts +9 -8
  158. package/dist/graph/index.js +23 -22
  159. package/dist/{graph-DCEWh4T2.d.cts → graph-C1C-wb0L.d.cts} +266 -137
  160. package/dist/{graph-D-1-SQeC.d.ts → graph-CS0b4V9B.d.ts} +266 -137
  161. package/dist/{index-72VZC0-E.d.cts → index-DLrNopda.d.cts} +151 -10
  162. package/dist/{index-Bmxeu0nK.d.ts → index-DzJni3_6.d.ts} +151 -10
  163. package/dist/index.cjs +3397 -3140
  164. package/dist/index.cjs.map +1 -1
  165. package/dist/index.d.cts +12 -9
  166. package/dist/index.d.ts +12 -9
  167. package/dist/index.js +110 -109
  168. package/dist/inspection/boundary.d.cts +4 -4
  169. package/dist/inspection/boundary.d.ts +4 -4
  170. package/dist/measurements-BWAnochv.d.ts +294 -0
  171. package/dist/measurements-B_gJfD8h.d.cts +294 -0
  172. package/dist/messaging/index.cjs +57 -51
  173. package/dist/messaging/index.cjs.map +1 -1
  174. package/dist/messaging/index.d.cts +11 -276
  175. package/dist/messaging/index.d.ts +11 -276
  176. package/dist/messaging/index.js +1 -1
  177. package/dist/operators/index.cjs +1228 -1076
  178. package/dist/operators/index.cjs.map +1 -1
  179. package/dist/operators/index.d.cts +5 -5
  180. package/dist/operators/index.d.ts +5 -5
  181. package/dist/operators/index.js +5 -5
  182. package/dist/orchestration/index.cjs +8844 -6071
  183. package/dist/orchestration/index.cjs.map +1 -1
  184. package/dist/orchestration/index.d.cts +171 -224
  185. package/dist/orchestration/index.d.ts +171 -224
  186. package/dist/orchestration/index.js +42 -991
  187. package/dist/orchestration/index.js.map +1 -1
  188. package/dist/orchestration/messaging.d.cts +5 -8
  189. package/dist/orchestration/messaging.d.ts +5 -8
  190. package/dist/orchestration/work-queue.cjs +1243 -5
  191. package/dist/orchestration/work-queue.cjs.map +1 -1
  192. package/dist/orchestration/work-queue.d.cts +121 -10
  193. package/dist/orchestration/work-queue.d.ts +121 -10
  194. package/dist/orchestration/work-queue.js +1067 -4
  195. package/dist/orchestration/work-queue.js.map +1 -1
  196. package/dist/patterns/event-flow.cjs +6 -20
  197. package/dist/patterns/event-flow.cjs.map +1 -1
  198. package/dist/patterns/event-flow.d.cts +4 -4
  199. package/dist/patterns/event-flow.d.ts +4 -4
  200. package/dist/patterns/event-flow.js +2 -2
  201. package/dist/patterns/index.cjs +453 -465
  202. package/dist/patterns/index.cjs.map +1 -1
  203. package/dist/patterns/index.d.cts +6 -5
  204. package/dist/patterns/index.d.ts +6 -5
  205. package/dist/patterns/index.js +3 -3
  206. package/dist/process-types-BB7oRhX3.d.cts +200 -0
  207. package/dist/process-types-QNhyoYJ8.d.ts +200 -0
  208. package/dist/{reactive-collection-DNV0-gFi.d.cts → reactive-collection-BYlWvtnp.d.cts} +4 -34
  209. package/dist/{reactive-collection-BAmfrGjd.d.ts → reactive-collection-efOEdGFN.d.ts} +4 -34
  210. package/dist/{reactive-collection-storage-BNEldDyi.d.cts → reactive-collection-storage-BjoLsoiC.d.cts} +5 -5
  211. package/dist/{reactive-collection-storage-YZsAQsWK.d.ts → reactive-collection-storage-DwW6UuK_.d.ts} +5 -5
  212. package/dist/{reactive-map-DRD1LJ2H.d.cts → reactive-map-BHacbIqz.d.cts} +7 -2
  213. package/dist/{reactive-map-EsDiCmJk.d.ts → reactive-map-DN4Jyqnf.d.ts} +7 -2
  214. package/dist/render/index.d.cts +2 -2
  215. package/dist/render/index.d.ts +2 -2
  216. package/dist/scheduled-readiness-BmqXxnzX.d.ts +91 -0
  217. package/dist/scheduled-readiness-CYSw7KDE.d.cts +91 -0
  218. package/dist/semantic-memory-graph-B_LwbM-E.d.cts +30 -0
  219. package/dist/semantic-memory-graph-rsFNNhwn.d.ts +30 -0
  220. package/dist/{semantic-memory-graph-DKuNzuWw.d.cts → semantic-memory-graph-types-Y73bbwVI.d.cts} +2 -28
  221. package/dist/{semantic-memory-graph-uwbwJdhe.d.ts → semantic-memory-graph-types-safmPkuX.d.ts} +2 -28
  222. package/dist/solutions/index.cjs +6353 -6169
  223. package/dist/solutions/index.cjs.map +1 -1
  224. package/dist/solutions/index.d.cts +12 -10
  225. package/dist/solutions/index.d.ts +12 -10
  226. package/dist/solutions/index.js +5 -5
  227. package/dist/solutions/reactive-layout/browser/index.cjs +116 -108
  228. package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -1
  229. package/dist/solutions/reactive-layout/browser/index.d.cts +4 -4
  230. package/dist/solutions/reactive-layout/browser/index.d.ts +4 -4
  231. package/dist/solutions/reactive-layout/browser/index.js +3 -3
  232. package/dist/solutions/reactive-layout/index.cjs +3578 -3350
  233. package/dist/solutions/reactive-layout/index.cjs.map +1 -1
  234. package/dist/solutions/reactive-layout/index.d.cts +32 -576
  235. package/dist/solutions/reactive-layout/index.d.ts +32 -576
  236. package/dist/solutions/reactive-layout/index.js +65 -5
  237. package/dist/solutions/reactive-layout/node-canvas/index.cjs +127 -117
  238. package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -1
  239. package/dist/solutions/reactive-layout/node-canvas/index.d.cts +4 -4
  240. package/dist/solutions/reactive-layout/node-canvas/index.d.ts +4 -4
  241. package/dist/solutions/reactive-layout/node-canvas/index.js +3 -3
  242. package/dist/solutions/reactive-layout/react-native/index.cjs +127 -117
  243. package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -1
  244. package/dist/solutions/reactive-layout/react-native/index.d.cts +4 -4
  245. package/dist/solutions/reactive-layout/react-native/index.d.ts +4 -4
  246. package/dist/solutions/reactive-layout/react-native/index.js +3 -3
  247. package/dist/solutions/reactive-layout/skia/index.cjs +127 -117
  248. package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -1
  249. package/dist/solutions/reactive-layout/skia/index.d.cts +4 -4
  250. package/dist/solutions/reactive-layout/skia/index.d.ts +4 -4
  251. package/dist/solutions/reactive-layout/skia/index.js +3 -3
  252. package/dist/solutions/work-item/actions.cjs +1609 -1428
  253. package/dist/solutions/work-item/actions.cjs.map +1 -1
  254. package/dist/solutions/work-item/actions.d.cts +23 -184
  255. package/dist/solutions/work-item/actions.d.ts +23 -184
  256. package/dist/solutions/work-item/actions.js +1558 -934
  257. package/dist/solutions/work-item/actions.js.map +1 -1
  258. package/dist/solutions/work-item/scheduling.cjs +9181 -1838
  259. package/dist/solutions/work-item/scheduling.cjs.map +1 -1
  260. package/dist/solutions/work-item/scheduling.d.cts +1763 -328
  261. package/dist/solutions/work-item/scheduling.d.ts +1763 -328
  262. package/dist/solutions/work-item/scheduling.js +117 -3
  263. package/dist/solutions/work-item/work-queue.d.cts +7 -7
  264. package/dist/solutions/work-item/work-queue.d.ts +7 -7
  265. package/dist/sources/browser.cjs +1318 -1083
  266. package/dist/sources/browser.cjs.map +1 -1
  267. package/dist/sources/browser.d.cts +22 -6
  268. package/dist/sources/browser.d.ts +22 -6
  269. package/dist/sources/browser.js +4 -4
  270. package/dist/sources/browser.js.map +1 -1
  271. package/dist/sources/index.cjs +1318 -1083
  272. package/dist/sources/index.cjs.map +1 -1
  273. package/dist/sources/index.d.cts +4 -4
  274. package/dist/sources/index.d.ts +4 -4
  275. package/dist/sources/index.js +4 -4
  276. package/dist/sources/node.d.cts +3 -3
  277. package/dist/sources/node.d.ts +3 -3
  278. package/dist/storage/browser.cjs +16 -0
  279. package/dist/storage/browser.cjs.map +1 -1
  280. package/dist/storage/browser.js +3 -3
  281. package/dist/storage/index.cjs +16 -0
  282. package/dist/storage/index.cjs.map +1 -1
  283. package/dist/storage/index.d.cts +5 -4
  284. package/dist/storage/index.d.ts +5 -4
  285. package/dist/storage/index.js +6 -6
  286. package/dist/storage/node.cjs +16 -0
  287. package/dist/storage/node.cjs.map +1 -1
  288. package/dist/storage/node.js +3 -3
  289. package/dist/{store-C-joM4gh.d.ts → store-6_CHF6Ge.d.ts} +1 -1
  290. package/dist/{store-CNJwmT-h.d.cts → store-BljX8RkQ.d.cts} +1 -1
  291. package/dist/types-BAw2QVVE.d.cts +274 -0
  292. package/dist/types-BUbbbh4f.d.cts +34 -0
  293. package/dist/types-CMnzoL54.d.cts +457 -0
  294. package/dist/{types-CcPIn7sy.d.cts → types-CTN3XoMl.d.cts} +57 -108
  295. package/dist/types-CV_ohy5T.d.cts +357 -0
  296. package/dist/{types-BsJvElYZ.d.ts → types-DChxk1vK.d.ts} +57 -108
  297. package/dist/types-DRu7SnLV.d.ts +274 -0
  298. package/dist/types-DeID_FRl.d.ts +34 -0
  299. package/dist/types-IhKH0hGW.d.ts +357 -0
  300. package/dist/types-ePlD2uyT.d.ts +457 -0
  301. package/dist/{work-item-runtime-qaVgsL0T.d.cts → work-item-runtime-types-BTxLskN5.d.cts} +3 -93
  302. package/dist/{work-item-runtime-C3M79vE9.d.ts → work-item-runtime-types-DAsZbb2y.d.ts} +3 -93
  303. package/dist/work-queue/index.cjs +957 -953
  304. package/dist/work-queue/index.cjs.map +1 -1
  305. package/dist/work-queue/index.d.cts +9 -357
  306. package/dist/work-queue/index.d.ts +9 -357
  307. package/dist/work-queue/index.js +957 -953
  308. package/dist/work-queue/index.js.map +1 -1
  309. package/package.json +611 -513
  310. package/dist/chunk-3JR3EDB2.js.map +0 -1
  311. package/dist/chunk-4VLAQHZI.js.map +0 -1
  312. package/dist/chunk-6XAIOL3X.js +0 -2407
  313. package/dist/chunk-6XAIOL3X.js.map +0 -1
  314. package/dist/chunk-FBUU43PM.js.map +0 -1
  315. package/dist/chunk-HKK2JD7Z.js.map +0 -1
  316. package/dist/chunk-PC3BTTBE.js +0 -3217
  317. package/dist/chunk-PC3BTTBE.js.map +0 -1
  318. package/dist/chunk-QFY4AFY4.js.map +0 -1
  319. package/dist/chunk-SS2A464I.js.map +0 -1
  320. package/dist/chunk-V7CIJE4B.js.map +0 -1
  321. package/dist/chunk-XKXWK2KP.js.map +0 -1
  322. package/dist/chunk-YDSIVHRR.js.map +0 -1
  323. package/dist/chunk-YXMZ2N6J.js.map +0 -1
  324. /package/dist/{chunk-CZNV3VXM.js.map → chunk-3J7UPZL5.js.map} +0 -0
  325. /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
  326. /package/dist/{chunk-K3FXTC3I.js.map → chunk-HJACH5PU.js.map} +0 -0
  327. /package/dist/{chunk-GTPCOEOZ.js.map → chunk-IDMLXLLG.js.map} +0 -0
  328. /package/dist/{chunk-DKP56CSW.js.map → chunk-JKAYLDQV.js.map} +0 -0
  329. /package/dist/{chunk-43BKLFZU.js.map → chunk-KFURM6FM.js.map} +0 -0
  330. /package/dist/{chunk-2747WN4Y.js.map → chunk-PUSRRALM.js.map} +0 -0
  331. /package/dist/{chunk-VTHLCFN4.js.map → chunk-RAHNUYA5.js.map} +0 -0
  332. /package/dist/{chunk-IXZBUWSP.js.map → chunk-UEMN5URK.js.map} +0 -0
  333. /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
@@ -0,0 +1,657 @@
1
+ import { DataIssue } from './data/index.js';
2
+ import { BoundaryCapabilityRef } from './inspection/boundary.js';
3
+ import { N as Node } from './types-DChxk1vK.js';
4
+ import { S as SourceRef, l as EffectRunGoal, h as AgentOutputEnvelope, a as AgentRuntimeAuditRecord, m as EffectRunLimits, k as EffectRunResultStatus, n as EffectRunResult } from './agent-runtime-types-core-CKwrBDyi.js';
5
+ import { W as WorkItemEffectRequested, c as WorkItemDomainActionProposal, a as WorkItemEvidenceRecorded, d as WorkItemDomainActionProposalSpec, e as WorkItemDomainActionAdmission, f as WorkItemDomainActionAdmissionDecision } from './work-item-runtime-types-DAsZbb2y.js';
6
+ import { C as CapabilityAdmission, g as CapabilityAdmissionStatus } from './capability-admission-Dkw1Xz3r.js';
7
+
8
+ type WorkItemValidationIssueCode = "malformed-draft" | "missing-required-field" | "invalid-patch" | "duplicate-id" | "dangling-ref" | "cyclic-dependency" | "unsupported-mode" | "unsupported-effect-kind" | "oversized-inline-data" | "policy-mismatch" | "missing-policy" | "stale-revision" | "stale-execution-input" | "blocked-prerequisite" | "verification-unplanned" | "manual-review-required" | "duplicate-suppressed" | "ambiguous-coverage" | "partial-coverage" | "unverifiable-output" | "unauthorized-author" | "unauthorized-target" | "invalid-schedule";
9
+ type WorkItemValidationStatusState = "projected" | "rejected" | "deferred" | "blocked" | "needs-human-review" | "stale" | "duplicate" | "request-emitted" | "result-recorded" | "domain-action-proposed";
10
+ interface WorkItemValidationStatus {
11
+ readonly kind: "work-item-validation-status";
12
+ readonly statusId: string;
13
+ readonly workItemId?: string;
14
+ readonly state: WorkItemValidationStatusState;
15
+ readonly code?: WorkItemValidationIssueCode;
16
+ readonly revision?: number;
17
+ readonly executionInputRevision?: number;
18
+ readonly policyRefs?: readonly SourceRef[];
19
+ readonly sourceRefs?: readonly SourceRef[];
20
+ readonly stepId?: string;
21
+ readonly criterionId?: string;
22
+ readonly message?: string;
23
+ readonly metadata?: Record<string, unknown>;
24
+ }
25
+ interface AcceptanceCriterion {
26
+ readonly criterionId: string;
27
+ readonly statement: string;
28
+ readonly required?: boolean;
29
+ readonly sourceRefs?: readonly SourceRef[];
30
+ readonly metadata?: Record<string, unknown>;
31
+ }
32
+ type VerificationStepMode = "auto" | "manual" | "hybrid";
33
+ interface VerificationStep<TInput = unknown> {
34
+ readonly stepId: string;
35
+ readonly title?: string;
36
+ readonly description?: string;
37
+ readonly verifiesCriteriaIds?: readonly string[];
38
+ readonly mode: VerificationStepMode;
39
+ readonly effectKind?: string;
40
+ readonly goal?: EffectRunGoal<TInput>;
41
+ readonly input?: TInput;
42
+ readonly contextRefs?: readonly SourceRef[];
43
+ readonly requirements?: readonly string[];
44
+ readonly capacityHints?: Record<string, unknown>;
45
+ readonly dependsOnStepIds?: readonly string[];
46
+ readonly policyRefs?: readonly SourceRef[];
47
+ readonly sourceRefs?: readonly SourceRef[];
48
+ readonly metadata?: Record<string, unknown>;
49
+ }
50
+ interface VerificationPlan<TInput = unknown> {
51
+ readonly planId: string;
52
+ readonly planRevision?: string | number;
53
+ readonly steps: readonly VerificationStep<TInput>[];
54
+ readonly policyRefs?: readonly SourceRef[];
55
+ readonly sourceRefs?: readonly SourceRef[];
56
+ readonly metadata?: Record<string, unknown>;
57
+ }
58
+ interface WorkItemDraft<TInput = unknown> {
59
+ readonly summary: string;
60
+ readonly detail?: string;
61
+ readonly detailRefs?: readonly SourceRef[];
62
+ readonly acceptanceCriteria?: readonly AcceptanceCriterion[];
63
+ readonly verificationPlan?: VerificationPlan<TInput>;
64
+ readonly verificationSteps?: readonly VerificationStep<TInput>[];
65
+ readonly kind?: string;
66
+ readonly priority?: number;
67
+ readonly tags?: readonly string[];
68
+ readonly owner?: string;
69
+ readonly assignee?: string;
70
+ readonly deadlineMs?: number;
71
+ readonly customFields?: Record<string, unknown>;
72
+ readonly sourceRefs?: readonly SourceRef[];
73
+ readonly metadata?: Record<string, unknown>;
74
+ }
75
+ type WorkItemPatch<TInput = unknown> = Partial<WorkItemDraft<TInput>>;
76
+ interface WorkItemCreated<TInput = unknown> {
77
+ readonly kind: "work-item-created";
78
+ readonly eventId: string;
79
+ readonly workItemId: string;
80
+ readonly draft: WorkItemDraft<TInput>;
81
+ readonly authorId?: string;
82
+ readonly createdAtMs?: number;
83
+ readonly sourceRefs?: readonly SourceRef[];
84
+ readonly metadata?: Record<string, unknown>;
85
+ }
86
+ interface WorkItemPatched<TInput = unknown> {
87
+ readonly kind: "work-item-patched";
88
+ readonly eventId: string;
89
+ readonly workItemId: string;
90
+ readonly patch: WorkItemPatch<TInput>;
91
+ readonly executionRelevantFields?: readonly string[];
92
+ readonly authorId?: string;
93
+ readonly patchedAtMs?: number;
94
+ readonly sourceRefs?: readonly SourceRef[];
95
+ readonly metadata?: Record<string, unknown>;
96
+ }
97
+ interface AcceptanceCriteriaChanged {
98
+ readonly kind: "acceptance-criteria-changed";
99
+ readonly eventId: string;
100
+ readonly workItemId: string;
101
+ readonly acceptanceCriteria: readonly AcceptanceCriterion[];
102
+ readonly authorId?: string;
103
+ readonly changedAtMs?: number;
104
+ readonly sourceRefs?: readonly SourceRef[];
105
+ readonly metadata?: Record<string, unknown>;
106
+ }
107
+ interface VerificationPlanChanged<TInput = unknown> {
108
+ readonly kind: "verification-plan-changed";
109
+ readonly eventId: string;
110
+ readonly workItemId: string;
111
+ readonly verificationPlan: VerificationPlan<TInput>;
112
+ readonly authorId?: string;
113
+ readonly changedAtMs?: number;
114
+ readonly sourceRefs?: readonly SourceRef[];
115
+ readonly metadata?: Record<string, unknown>;
116
+ }
117
+ type WorkItemAuthoringFact<TInput = unknown> = WorkItemCreated<TInput> | WorkItemPatched<TInput> | AcceptanceCriteriaChanged | VerificationPlanChanged<TInput>;
118
+ interface WorkItemSpawnProposed<TInput = unknown> {
119
+ readonly kind: "work-item-spawn-proposed";
120
+ readonly proposalId: string;
121
+ readonly proposedWorkItemId?: string;
122
+ readonly parentWorkItemId?: string;
123
+ readonly draft: WorkItemDraft<TInput>;
124
+ readonly proposedBy?: string;
125
+ readonly idempotencyKey?: string;
126
+ readonly sourceRefs?: readonly SourceRef[];
127
+ readonly metadata?: Record<string, unknown>;
128
+ }
129
+ type WorkItemAuthoringInput<TInput = unknown> = WorkItemAuthoringFact<TInput> | WorkItemSpawnProposed<TInput>;
130
+ interface WorkItemProjection<TInput = unknown> extends WorkItemDraft<TInput> {
131
+ readonly workItemId: string;
132
+ readonly authoringRevision: number;
133
+ readonly executionInputRevision: number;
134
+ readonly lastEventId: string;
135
+ readonly revisionSourceRefs?: readonly SourceRef[];
136
+ readonly createdAtMs?: number;
137
+ readonly updatedAtMs?: number;
138
+ }
139
+ interface WorkItemPriorityAssessment {
140
+ readonly kind: "work-item-priority-assessment";
141
+ readonly assessmentId: string;
142
+ readonly workItemId: string;
143
+ readonly authoringRevision?: number;
144
+ readonly executionInputRevision?: number;
145
+ readonly priority?: number;
146
+ readonly rank?: number;
147
+ readonly reason?: string;
148
+ readonly policyRefs?: readonly SourceRef[];
149
+ readonly sourceRefs?: readonly SourceRef[];
150
+ readonly metadata?: Record<string, unknown>;
151
+ }
152
+ interface WorkItemPlacementDecision {
153
+ readonly kind: "work-item-placement-decision";
154
+ readonly decisionId: string;
155
+ readonly workItemId: string;
156
+ readonly authoringRevision?: number;
157
+ readonly executionInputRevision?: number;
158
+ readonly laneId: string;
159
+ readonly targetKind?: string;
160
+ readonly reason?: string;
161
+ readonly policyRefs?: readonly SourceRef[];
162
+ readonly sourceRefs?: readonly SourceRef[];
163
+ readonly metadata?: Record<string, unknown>;
164
+ }
165
+ interface WorkItemScheduleDecision {
166
+ readonly kind: "work-item-schedule-decision";
167
+ readonly decisionId: string;
168
+ readonly workItemId: string;
169
+ readonly authoringRevision?: number;
170
+ readonly executionInputRevision?: number;
171
+ readonly targetKind: "work-item-effect" | "work-queue" | "executor" | "status";
172
+ readonly effectKind?: string;
173
+ readonly notBeforeMs?: number;
174
+ readonly deadlineMs?: number;
175
+ readonly requirements?: readonly string[];
176
+ readonly capacityHints?: Record<string, unknown>;
177
+ readonly reason?: string;
178
+ readonly policyRefs?: readonly SourceRef[];
179
+ readonly sourceRefs?: readonly SourceRef[];
180
+ readonly metadata?: Record<string, unknown>;
181
+ }
182
+ interface WorkItemDispatchIntent<TInput = unknown> {
183
+ readonly kind: "work-item-dispatch-intent";
184
+ readonly intentId: string;
185
+ readonly workItemId: string;
186
+ readonly authoringRevision?: number;
187
+ readonly executionInputRevision: number;
188
+ readonly targetKind: "verification" | "approval" | "human-review" | "external-sync" | "spawn-review" | "background-evidence" | "executor";
189
+ readonly effectKind?: string;
190
+ readonly stepIds?: readonly string[];
191
+ readonly acceptanceCriterionIds?: readonly string[];
192
+ readonly goal?: EffectRunGoal<TInput>;
193
+ readonly contextRefs?: readonly SourceRef[];
194
+ readonly requirements?: readonly string[];
195
+ readonly capacityHints?: Record<string, unknown>;
196
+ readonly limits?: EffectRunLimits;
197
+ readonly idempotencyKey?: string;
198
+ readonly reason?: string;
199
+ readonly policyRefs?: readonly SourceRef[];
200
+ readonly sourceRefs?: readonly SourceRef[];
201
+ readonly metadata?: Record<string, unknown>;
202
+ }
203
+ interface WorkItemAuthoringPolicy {
204
+ readonly executionRelevantFields?: readonly string[];
205
+ }
206
+ interface WorkItemAuthoringProjectorOptions<TInput = unknown> {
207
+ readonly name?: string;
208
+ readonly facts: Node<WorkItemAuthoringInput<TInput>>;
209
+ readonly policy?: WorkItemAuthoringPolicy;
210
+ }
211
+ interface WorkItemAuthoringProjectorBundle<TInput = unknown> {
212
+ readonly workItems: Node<WorkItemProjection<TInput>>;
213
+ readonly status: Node<WorkItemValidationStatus>;
214
+ readonly issues: Node<DataIssue>;
215
+ readonly audit: Node<AgentRuntimeAuditRecord>;
216
+ }
217
+ interface WorkItemVerificationLowererPolicy {
218
+ readonly policyId?: string;
219
+ readonly autoRun?: boolean;
220
+ readonly allowedModes?: readonly VerificationStepMode[];
221
+ readonly allowedEffectKinds?: readonly string[];
222
+ readonly stalePolicy?: "cancel" | "reschedule" | "requeue" | "replacement-intent" | "review";
223
+ }
224
+ interface WorkItemVerificationRequestLowererOptions<TInput = unknown> {
225
+ readonly name?: string;
226
+ readonly workItems: Node<WorkItemProjection<TInput>>;
227
+ readonly dispatchIntents?: Node<WorkItemDispatchIntent<TInput>>;
228
+ readonly verificationResults?: Node<VerificationResultRecorded>;
229
+ readonly policy?: WorkItemVerificationLowererPolicy;
230
+ }
231
+ interface WorkItemVerificationRequestLowererBundle<TInput = unknown> {
232
+ readonly effectRequests: Node<WorkItemEffectRequested<TInput>>;
233
+ readonly status: Node<WorkItemValidationStatus>;
234
+ readonly issues: Node<DataIssue>;
235
+ readonly audit: Node<AgentRuntimeAuditRecord>;
236
+ }
237
+ type VerificationResultStatus = "passed" | "failed" | "blocked" | "canceled" | "timeout" | "waived" | "unverifiable";
238
+ interface VerificationResultRecorded {
239
+ readonly kind: "verification-result-recorded";
240
+ readonly resultId: string;
241
+ readonly workItemId: string;
242
+ readonly evidenceId: string;
243
+ readonly effectRunId: string;
244
+ readonly effectRunResultId: string;
245
+ readonly executionInputRevision: number;
246
+ readonly verificationStepIds: readonly string[];
247
+ readonly acceptanceCriterionIds: readonly string[];
248
+ readonly status: VerificationResultStatus;
249
+ readonly output?: AgentOutputEnvelope;
250
+ readonly error?: DataIssue;
251
+ readonly reason?: string;
252
+ readonly sourceRefs?: readonly SourceRef[];
253
+ readonly policyRefs?: readonly SourceRef[];
254
+ readonly recordedAtMs?: number;
255
+ readonly metadata?: Record<string, unknown>;
256
+ }
257
+ interface WorkItemVerificationMappingPolicy {
258
+ readonly kind: "work-item-verification-mapping-policy";
259
+ readonly policyId: string;
260
+ readonly actionProposals?: readonly WorkItemDomainActionProposalSpec[];
261
+ readonly metadata?: Record<string, unknown>;
262
+ }
263
+ interface WorkItemVerificationResultMapperOptions<TInput = unknown> {
264
+ readonly name?: string;
265
+ readonly workItems: Node<WorkItemProjection<TInput>>;
266
+ readonly evidence: Node<WorkItemEvidenceRecorded>;
267
+ readonly policies?: Node<WorkItemVerificationMappingPolicy>;
268
+ }
269
+ interface WorkItemVerificationResultMapperBundle {
270
+ readonly results: Node<VerificationResultRecorded>;
271
+ readonly proposals: Node<WorkItemDomainActionProposal>;
272
+ readonly status: Node<WorkItemValidationStatus>;
273
+ readonly issues: Node<DataIssue>;
274
+ readonly audit: Node<AgentRuntimeAuditRecord>;
275
+ }
276
+ type WorkItemEffectPlanJoinPolicy = "all-required" | "evidence-only";
277
+ interface WorkItemEffectPlanMember<TInput = unknown> {
278
+ readonly memberId: string;
279
+ readonly effectKind: string;
280
+ readonly goal: EffectRunGoal<TInput>;
281
+ readonly required?: boolean;
282
+ readonly dependsOnMemberIds?: readonly string[];
283
+ readonly contextRefs?: readonly SourceRef[];
284
+ readonly requirements?: readonly string[];
285
+ readonly capacityHints?: Record<string, unknown>;
286
+ readonly limits?: EffectRunLimits;
287
+ readonly policyRefs?: readonly SourceRef[];
288
+ readonly sourceRefs?: readonly SourceRef[];
289
+ readonly idempotencyKey?: string;
290
+ readonly metadata?: Record<string, unknown>;
291
+ }
292
+ interface WorkItemEffectPlanProposed<TInput = unknown> {
293
+ readonly kind: "work-item-effect-plan-proposed";
294
+ readonly planId: string;
295
+ readonly workItemId: string;
296
+ readonly executionInputRevision: number;
297
+ readonly members: readonly WorkItemEffectPlanMember<TInput>[];
298
+ readonly joinPolicy?: WorkItemEffectPlanJoinPolicy;
299
+ readonly limits?: EffectRunLimits;
300
+ readonly policyRefs?: readonly SourceRef[];
301
+ readonly sourceRefs?: readonly SourceRef[];
302
+ readonly proposedBy?: string;
303
+ readonly proposedAtMs?: number;
304
+ readonly metadata?: Record<string, unknown>;
305
+ }
306
+ interface WorkItemEffectPlanSnapshot<TInput = unknown> {
307
+ readonly planId: string;
308
+ readonly workItemId: string;
309
+ readonly executionInputRevision: number;
310
+ readonly members: readonly WorkItemEffectPlanMember<TInput>[];
311
+ readonly joinPolicy: WorkItemEffectPlanJoinPolicy;
312
+ readonly limits?: EffectRunLimits;
313
+ readonly policyRefs?: readonly SourceRef[];
314
+ readonly sourceRefs?: readonly SourceRef[];
315
+ readonly metadata?: Record<string, unknown>;
316
+ }
317
+ interface WorkItemEffectPlanAdmitted<TInput = unknown> {
318
+ readonly kind: "work-item-effect-plan-admitted";
319
+ readonly planId: string;
320
+ readonly workItemId: string;
321
+ readonly executionInputRevision: number;
322
+ readonly plan: WorkItemEffectPlanSnapshot<TInput>;
323
+ readonly sourceRefs?: readonly SourceRef[];
324
+ readonly admittedAtMs?: number;
325
+ readonly metadata?: Record<string, unknown>;
326
+ }
327
+ interface WorkItemEffectPlanRejected {
328
+ readonly kind: "work-item-effect-plan-rejected";
329
+ readonly planId: string;
330
+ readonly workItemId: string;
331
+ readonly executionInputRevision?: number;
332
+ readonly issues: readonly DataIssue[];
333
+ readonly sourceRefs?: readonly SourceRef[];
334
+ readonly rejectedAtMs?: number;
335
+ readonly metadata?: Record<string, unknown>;
336
+ }
337
+ type WorkItemEffectPlanMemberStatus = "eligible" | "requested" | "blocked" | "deferred" | "evidence-recorded" | "completed" | "failed" | "duplicate" | "stale" | "rejected";
338
+ interface WorkItemEffectPlanStatus {
339
+ readonly kind: "work-item-effect-plan-status";
340
+ readonly statusId: string;
341
+ readonly workItemId: string;
342
+ readonly planId: string;
343
+ readonly executionInputRevision: number;
344
+ readonly state: WorkItemEffectPlanMemberStatus;
345
+ readonly planMemberId?: string;
346
+ readonly requestId?: string;
347
+ readonly effectRunId?: string;
348
+ readonly evidenceId?: string;
349
+ readonly effectRunResultId?: string;
350
+ readonly issues?: readonly DataIssue[];
351
+ readonly message?: string;
352
+ readonly sourceRefs?: readonly SourceRef[];
353
+ readonly metadata?: Record<string, unknown>;
354
+ }
355
+ type WorkItemEffectPlanResultStatus = "succeeded" | "failed" | "evidence-only";
356
+ interface WorkItemEffectPlanResult {
357
+ readonly kind: "work-item-effect-plan-result";
358
+ readonly resultId: string;
359
+ readonly workItemId: string;
360
+ readonly planId: string;
361
+ readonly executionInputRevision: number;
362
+ readonly status: WorkItemEffectPlanResultStatus;
363
+ readonly memberResults: readonly {
364
+ readonly planMemberId: string;
365
+ readonly status: EffectRunResultStatus;
366
+ readonly requestId?: string;
367
+ readonly effectRunId?: string;
368
+ readonly evidenceId?: string;
369
+ readonly effectRunResultId?: string;
370
+ }[];
371
+ readonly sourceRefs?: readonly SourceRef[];
372
+ readonly metadata?: Record<string, unknown>;
373
+ }
374
+ interface WorkItemEffectPlanPolicy {
375
+ readonly policyId?: string;
376
+ readonly allowedEffectKinds?: readonly string[];
377
+ readonly joinPolicy?: WorkItemEffectPlanJoinPolicy;
378
+ }
379
+ interface WorkItemEffectPlanProjectorOptions<TInput = unknown> {
380
+ readonly name?: string;
381
+ readonly workItems: Node<WorkItemProjection<TInput>>;
382
+ readonly proposals: Node<WorkItemEffectPlanProposed<TInput>>;
383
+ readonly evidence?: Node<WorkItemEvidenceRecorded>;
384
+ readonly effectRunResults?: Node<EffectRunResult>;
385
+ readonly policy?: WorkItemEffectPlanPolicy;
386
+ readonly now?: () => number;
387
+ }
388
+ interface WorkItemEffectPlanProjectorBundle<TInput = unknown> {
389
+ readonly admitted: Node<WorkItemEffectPlanAdmitted<TInput>>;
390
+ readonly rejected: Node<WorkItemEffectPlanRejected>;
391
+ readonly effectRequests: Node<WorkItemEffectRequested<TInput>>;
392
+ readonly results: Node<WorkItemEffectPlanResult>;
393
+ readonly status: Node<WorkItemEffectPlanStatus>;
394
+ readonly issues: Node<DataIssue>;
395
+ readonly audit: Node<AgentRuntimeAuditRecord>;
396
+ }
397
+ type Fact<T> = {
398
+ readonly kind: "work-item";
399
+ readonly value: WorkItemProjection<T>;
400
+ } | {
401
+ readonly kind: "request";
402
+ readonly value: WorkItemEffectRequested<T>;
403
+ } | {
404
+ readonly kind: "result";
405
+ readonly value: VerificationResultRecorded;
406
+ } | {
407
+ readonly kind: "proposal";
408
+ readonly value: WorkItemDomainActionProposal;
409
+ } | {
410
+ readonly kind: "status";
411
+ readonly value: WorkItemValidationStatus;
412
+ } | {
413
+ readonly kind: "issue";
414
+ readonly value: DataIssue;
415
+ } | {
416
+ readonly kind: "audit";
417
+ readonly value: AgentRuntimeAuditRecord;
418
+ };
419
+ type PlanFact<T> = {
420
+ readonly kind: "admitted";
421
+ readonly value: WorkItemEffectPlanAdmitted<T>;
422
+ } | {
423
+ readonly kind: "rejected";
424
+ readonly value: WorkItemEffectPlanRejected;
425
+ } | {
426
+ readonly kind: "request";
427
+ readonly value: WorkItemEffectRequested<T>;
428
+ } | {
429
+ readonly kind: "result";
430
+ readonly value: WorkItemEffectPlanResult;
431
+ } | {
432
+ readonly kind: "status";
433
+ readonly value: WorkItemEffectPlanStatus;
434
+ } | {
435
+ readonly kind: "issue";
436
+ readonly value: DataIssue;
437
+ } | {
438
+ readonly kind: "audit";
439
+ readonly value: AgentRuntimeAuditRecord;
440
+ };
441
+ interface AuthoringState<T> {
442
+ readonly workItems: Map<string, WorkItemProjection<T>>;
443
+ readonly seenEvents: Set<string>;
444
+ statusSeq: number;
445
+ auditSeq: number;
446
+ }
447
+ interface RequestState<T> {
448
+ readonly workItems: Map<string, WorkItemProjection<T>>;
449
+ readonly emittedKeys: Set<string>;
450
+ readonly passedSteps: Map<string, Set<string>>;
451
+ statusSeq: number;
452
+ auditSeq: number;
453
+ }
454
+ interface ResultState<T> {
455
+ readonly workItems: Map<string, WorkItemProjection<T>>;
456
+ readonly policies: Map<string, WorkItemVerificationMappingPolicy>;
457
+ readonly evidenceById: Map<string, WorkItemEvidenceRecorded>;
458
+ readonly resultEvidence: Set<string>;
459
+ readonly proposalKeys: Set<string>;
460
+ statusSeq: number;
461
+ auditSeq: number;
462
+ }
463
+ interface PlanMemberEvidence {
464
+ readonly status: EffectRunResultStatus;
465
+ readonly requestId?: string;
466
+ readonly effectRunId?: string;
467
+ readonly evidenceId?: string;
468
+ readonly effectRunResultId?: string;
469
+ readonly sourceRefs?: readonly SourceRef[];
470
+ }
471
+ interface PlanState<T> {
472
+ readonly workItems: Map<string, WorkItemProjection<T>>;
473
+ readonly proposals: Map<string, WorkItemEffectPlanProposed<T>>;
474
+ readonly admitted: Map<string, WorkItemEffectPlanAdmitted<T>>;
475
+ readonly rejected: Set<string>;
476
+ readonly emittedMemberKeys: Set<string>;
477
+ readonly statusKeys: Set<string>;
478
+ readonly resultKeys: Set<string>;
479
+ readonly requestByEffectRun: Map<string, WorkItemEffectRequested<T>>;
480
+ readonly requestByRequestId: Map<string, WorkItemEffectRequested<T>>;
481
+ readonly memberEvidence: Map<string, PlanMemberEvidence>;
482
+ readonly pendingEvidence: Map<string, WorkItemEvidenceRecorded>;
483
+ readonly pendingResults: Map<string, EffectRunResult>;
484
+ readonly unmatchedEvidence: Set<string>;
485
+ readonly unmatchedResults: Set<string>;
486
+ statusSeq: number;
487
+ auditSeq: number;
488
+ }
489
+ declare const executionRelevantDefaults: Set<string>;
490
+ declare const draftPatchKeys: Set<string>;
491
+
492
+ type WorkItemDomainActionKind = "patch" | "mark-verified" | "require-review" | "spawn-proposed" | "spawn-child" | (string & {});
493
+ interface WorkItemDomainActionProposalIntake<TPayload = unknown> {
494
+ readonly kind: "work-item-domain-action-proposal-intake";
495
+ readonly proposalId: string;
496
+ readonly workItemId: string;
497
+ readonly actionKind: WorkItemDomainActionKind;
498
+ readonly payload?: TPayload;
499
+ readonly reason?: string;
500
+ readonly policyId?: string;
501
+ readonly effectRunId?: string;
502
+ readonly effectRunResultId?: string;
503
+ readonly evidenceId?: string;
504
+ readonly proposedAtMs?: number;
505
+ readonly sourceRefs?: readonly SourceRef[];
506
+ readonly metadata?: Record<string, unknown>;
507
+ }
508
+ type WorkItemDomainActionProposalInput<TPayload = unknown> = WorkItemDomainActionProposal<TPayload> | WorkItemDomainActionProposalIntake<TPayload> | unknown;
509
+ type WorkItemDomainActionStatusState = "proposed" | "applied" | "rejected" | "deferred" | "duplicate" | "missing-policy" | "merged" | "policy-rejected" | "proposal-only";
510
+ interface WorkItemDomainActionStatus {
511
+ readonly kind: "work-item-domain-action-status";
512
+ readonly statusId: string;
513
+ readonly workItemId?: string;
514
+ readonly proposalId?: string;
515
+ readonly admissionId?: string;
516
+ readonly actionKind?: string;
517
+ readonly state: WorkItemDomainActionStatusState;
518
+ readonly code?: string;
519
+ readonly message?: string;
520
+ readonly sourceRefs?: readonly SourceRef[];
521
+ readonly metadata?: Record<string, unknown>;
522
+ }
523
+ interface WorkItemPatchActionPayload<TInput = unknown> {
524
+ readonly patch?: WorkItemPatch<TInput>;
525
+ readonly acceptanceCriteria?: readonly AcceptanceCriterion[];
526
+ readonly verificationPlan?: VerificationPlan<TInput>;
527
+ readonly executionRelevantFields?: readonly string[];
528
+ readonly authorId?: string;
529
+ readonly eventId?: string;
530
+ readonly metadata?: Record<string, unknown>;
531
+ }
532
+ interface WorkItemSpawnActionPayload<TInput = unknown> {
533
+ readonly workItemId?: string;
534
+ readonly childWorkItemId?: string;
535
+ readonly draft?: WorkItemDraft<TInput>;
536
+ readonly authorId?: string;
537
+ readonly eventId?: string;
538
+ readonly idempotencyKey?: string;
539
+ readonly metadata?: Record<string, unknown>;
540
+ }
541
+ interface WorkItemDomainActionApplyPolicy {
542
+ readonly kind: "work-item-domain-action-apply-policy";
543
+ readonly policyId: string;
544
+ readonly actionKinds?: readonly WorkItemDomainActionKind[];
545
+ readonly patch?: {
546
+ readonly allowedFields?: readonly string[];
547
+ readonly executionRelevantFields?: readonly string[];
548
+ readonly allowAcceptanceCriteria?: boolean;
549
+ readonly allowVerificationPlan?: boolean;
550
+ };
551
+ readonly spawn?: {
552
+ readonly create?: boolean;
553
+ readonly linkParent?: boolean;
554
+ readonly idempotencyKey?: string;
555
+ readonly maxChildrenPerAdmission?: number;
556
+ readonly childWorkItemId?: string;
557
+ readonly childIdPrefix?: string;
558
+ };
559
+ readonly metadata?: Record<string, unknown>;
560
+ }
561
+ interface WorkItemDomainActionApplication {
562
+ readonly kind: "work-item-domain-action-application";
563
+ readonly applicationId: string;
564
+ readonly admissionId: string;
565
+ readonly proposalId: string;
566
+ readonly workItemId: string;
567
+ readonly actionKind: string;
568
+ readonly state: Exclude<WorkItemDomainActionStatusState, "proposed">;
569
+ readonly producedFactIds?: readonly string[];
570
+ readonly reason?: string;
571
+ readonly sourceRefs?: readonly SourceRef[];
572
+ readonly metadata?: Record<string, unknown>;
573
+ }
574
+ interface WorkItemDomainActionIntakeOptions {
575
+ readonly name?: string;
576
+ readonly proposals: Node<WorkItemDomainActionProposalInput>;
577
+ readonly now?: () => number;
578
+ }
579
+ interface WorkItemDomainActionIntakeBundle {
580
+ readonly proposals: Node<WorkItemDomainActionProposal>;
581
+ readonly status: Node<WorkItemDomainActionStatus>;
582
+ readonly issues: Node<DataIssue>;
583
+ readonly audit: Node<AgentRuntimeAuditRecord>;
584
+ }
585
+ interface WorkItemDomainActionApplicationOptions<TInput = unknown> {
586
+ readonly name?: string;
587
+ readonly proposals: Node<WorkItemDomainActionProposal>;
588
+ readonly admissions: Node<WorkItemDomainActionAdmission>;
589
+ readonly workItems: Node<WorkItemProjection<TInput>>;
590
+ readonly applyPolicies?: Node<WorkItemDomainActionApplyPolicy>;
591
+ }
592
+ interface WorkItemDomainActionApplicationBundle<TInput = unknown> {
593
+ readonly authoringFacts: Node<WorkItemAuthoringFact<TInput>>;
594
+ readonly applications: Node<WorkItemDomainActionApplication>;
595
+ readonly status: Node<WorkItemDomainActionStatus>;
596
+ readonly issues: Node<DataIssue>;
597
+ readonly audit: Node<AgentRuntimeAuditRecord>;
598
+ }
599
+ /**
600
+ * Product-owned command capability policy (D357): maps WorkItem domain action
601
+ * proposals to explicit boundary capability refs and admission subjects without
602
+ * defining provider/security registry semantics or protocol status vocabulary.
603
+ */
604
+ interface WorkItemDomainActionCapabilityGuardPolicy {
605
+ readonly kind: "work-item-domain-action-capability-guard-policy";
606
+ readonly policyId: string;
607
+ readonly actionKinds?: readonly WorkItemDomainActionKind[];
608
+ readonly capabilityRefs: readonly BoundaryCapabilityRef[];
609
+ readonly admissionSubjectIds: readonly string[];
610
+ readonly metadata?: Record<string, unknown>;
611
+ }
612
+ /**
613
+ * Visible DATA status for the capability guard (D357). Missing or mismatched
614
+ * capability facts remain product issues/status, not protocol ERROR messages.
615
+ */
616
+ interface WorkItemDomainActionCapabilityGuardStatus {
617
+ readonly kind: "work-item-domain-action-capability-guard-status";
618
+ readonly statusId: string;
619
+ readonly state: "admitted" | "rejected" | "deferred" | "issue";
620
+ readonly workItemId?: string;
621
+ readonly proposalId?: string;
622
+ readonly actionKind?: string;
623
+ readonly policyId?: string;
624
+ readonly capabilityRefs?: readonly BoundaryCapabilityRef[];
625
+ readonly admissionSubjectIds?: readonly string[];
626
+ readonly admissionIds?: readonly string[];
627
+ readonly issues?: readonly DataIssue[];
628
+ readonly message?: string;
629
+ readonly sourceRefs?: readonly SourceRef[];
630
+ readonly metadata?: Record<string, unknown>;
631
+ }
632
+ /**
633
+ * Inputs for the WorkItem domain-action capability guard. All dependencies are
634
+ * ordinary solution/product DATA facts; the guard does not mutate WorkItems or
635
+ * claim dispatch queues.
636
+ */
637
+ interface WorkItemDomainActionCapabilityGuardOptions {
638
+ readonly name?: string;
639
+ readonly proposals: Node<WorkItemDomainActionProposal>;
640
+ readonly capabilityAdmissions: Node<CapabilityAdmission>;
641
+ readonly guardPolicies: Node<WorkItemDomainActionCapabilityGuardPolicy>;
642
+ readonly capabilityAdmissionStatus?: Node<CapabilityAdmissionStatus>;
643
+ readonly now?: () => number;
644
+ }
645
+ /**
646
+ * Output facts for product admission consumption. Decisions feed the existing
647
+ * WorkItem domain-action admission path; status/issues/audit remain inspectable
648
+ * product DATA.
649
+ */
650
+ interface WorkItemDomainActionCapabilityGuardBundle {
651
+ readonly decisions: Node<WorkItemDomainActionAdmissionDecision>;
652
+ readonly status: Node<WorkItemDomainActionCapabilityGuardStatus>;
653
+ readonly issues: Node<DataIssue>;
654
+ readonly audit: Node<AgentRuntimeAuditRecord>;
655
+ }
656
+
657
+ export { type WorkItemEffectPlanMemberStatus as $, type AcceptanceCriterion as A, type WorkItemProjection as B, type WorkItemEffectPlanPolicy as C, type VerificationStepMode as D, type WorkItemVerificationRequestLowererOptions as E, type WorkItemVerificationRequestLowererBundle as F, type WorkItemVerificationResultMapperOptions as G, type WorkItemVerificationResultMapperBundle as H, type WorkItemAuthoringFact as I, type AuthoringState as J, type Fact as K, type PlanMemberEvidence as L, type PlanState as M, type ResultState as N, type VerificationResultRecorded as O, type PlanFact as P, type VerificationResultStatus as Q, type RequestState as R, type VerificationStep as S, type WorkItemAuthoringInput as T, type WorkItemAuthoringPolicy as U, type VerificationPlan as V, type WorkItemDomainActionApplicationOptions as W, type WorkItemDispatchIntent as X, type WorkItemEffectPlanAdmitted as Y, type WorkItemEffectPlanJoinPolicy as Z, type WorkItemEffectPlanMember as _, type WorkItemDomainActionApplicationBundle as a, type WorkItemEffectPlanRejected as a0, type WorkItemEffectPlanResult as a1, type WorkItemEffectPlanResultStatus as a2, type WorkItemEffectPlanSnapshot as a3, type WorkItemEffectPlanStatus as a4, type WorkItemPatch as a5, type WorkItemPatched as a6, type WorkItemPlacementDecision as a7, type WorkItemPriorityAssessment as a8, type WorkItemScheduleDecision as a9, type WorkItemValidationIssueCode as aa, type WorkItemValidationStatus as ab, type WorkItemValidationStatusState as ac, type WorkItemVerificationLowererPolicy as ad, type WorkItemVerificationMappingPolicy as ae, draftPatchKeys as af, executionRelevantDefaults as ag, type WorkItemDomainActionApplyPolicy as b, type WorkItemDomainActionKind as c, type WorkItemDomainActionProposalIntake as d, type WorkItemDomainActionCapabilityGuardOptions as e, type WorkItemDomainActionCapabilityGuardBundle as f, type WorkItemDomainActionIntakeOptions as g, type WorkItemDomainActionIntakeBundle as h, type WorkItemDomainActionApplication as i, type WorkItemDomainActionCapabilityGuardPolicy as j, type WorkItemDomainActionCapabilityGuardStatus as k, type WorkItemDomainActionProposalInput as l, type WorkItemDomainActionStatus as m, type WorkItemDomainActionStatusState as n, type WorkItemPatchActionPayload as o, type WorkItemSpawnActionPayload as p, type WorkItemAuthoringProjectorOptions as q, type WorkItemAuthoringProjectorBundle as r, type AcceptanceCriteriaChanged as s, type VerificationPlanChanged as t, type WorkItemDraft as u, type WorkItemCreated as v, type WorkItemSpawnProposed as w, type WorkItemEffectPlanProjectorOptions as x, type WorkItemEffectPlanProjectorBundle as y, type WorkItemEffectPlanProposed as z };