@graphrefly/ts 0.0.1 → 0.0.2

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 (330) hide show
  1. package/dist/actions-types-CSC3NMDl.d.ts +657 -0
  2. package/dist/actions-types-wl9Mgkmr.d.cts +657 -0
  3. package/dist/adapters/index.cjs +5157 -2951
  4. package/dist/adapters/index.cjs.map +1 -1
  5. package/dist/adapters/index.d.cts +207 -70
  6. package/dist/adapters/index.d.ts +207 -70
  7. package/dist/adapters/index.js +3738 -1688
  8. package/dist/adapters/index.js.map +1 -1
  9. package/dist/adapters/nestjs/microservices.cjs +841 -0
  10. package/dist/adapters/nestjs/microservices.cjs.map +1 -0
  11. package/dist/adapters/nestjs/microservices.d.cts +45 -0
  12. package/dist/adapters/nestjs/microservices.d.ts +45 -0
  13. package/dist/adapters/nestjs/microservices.js +206 -0
  14. package/dist/adapters/nestjs/microservices.js.map +1 -0
  15. package/dist/adapters/nestjs/native.cjs +1391 -0
  16. package/dist/adapters/nestjs/native.cjs.map +1 -0
  17. package/dist/adapters/nestjs/native.d.cts +111 -0
  18. package/dist/adapters/nestjs/native.d.ts +111 -0
  19. package/dist/adapters/nestjs/native.js +577 -0
  20. package/dist/adapters/nestjs/native.js.map +1 -0
  21. package/dist/adapters/nestjs/websockets.cjs +924 -0
  22. package/dist/adapters/nestjs/websockets.cjs.map +1 -0
  23. package/dist/adapters/nestjs/websockets.d.cts +47 -0
  24. package/dist/adapters/nestjs/websockets.d.ts +47 -0
  25. package/dist/adapters/nestjs/websockets.js +286 -0
  26. package/dist/adapters/nestjs/websockets.js.map +1 -0
  27. package/dist/adapters/nestjs.cjs +1085 -0
  28. package/dist/adapters/nestjs.cjs.map +1 -0
  29. package/dist/adapters/nestjs.d.cts +385 -0
  30. package/dist/adapters/nestjs.d.ts +385 -0
  31. package/dist/adapters/nestjs.js +112 -0
  32. package/dist/adapters/nestjs.js.map +1 -0
  33. package/dist/adapters/observe-storage.d.cts +3 -3
  34. package/dist/adapters/observe-storage.d.ts +3 -3
  35. package/dist/adapters/observe-storage.js +4 -4
  36. package/dist/adapters/react.cjs.map +1 -1
  37. package/dist/adapters/react.d.cts +2 -2
  38. package/dist/adapters/react.d.ts +2 -2
  39. package/dist/adapters/react.js +1 -1
  40. package/dist/adapters/solid.cjs.map +1 -1
  41. package/dist/adapters/solid.d.cts +2 -2
  42. package/dist/adapters/solid.d.ts +2 -2
  43. package/dist/adapters/solid.js +1 -1
  44. package/dist/adapters/svelte.cjs.map +1 -1
  45. package/dist/adapters/svelte.d.cts +2 -2
  46. package/dist/adapters/svelte.d.ts +2 -2
  47. package/dist/adapters/svelte.js +1 -1
  48. package/dist/adapters/vue.cjs.map +1 -1
  49. package/dist/adapters/vue.d.cts +2 -2
  50. package/dist/adapters/vue.d.ts +2 -2
  51. package/dist/adapters/vue.js +1 -1
  52. package/dist/{agent-runtime-DZTJ3C-p.d.cts → agent-runtime-types-core-CaXfKNtY.d.cts} +171 -320
  53. package/dist/{agent-runtime-BesGDZcB.d.ts → agent-runtime-types-core-hU299uIC.d.ts} +171 -320
  54. package/dist/agent-runtime-types-tool-BEpSINol.d.ts +695 -0
  55. package/dist/agent-runtime-types-tool-DninPEzk.d.cts +695 -0
  56. package/dist/agentic-memory-retention-BmGX368S.d.ts +14 -0
  57. package/dist/agentic-memory-retention-Ih1qhX9Z.d.cts +14 -0
  58. package/dist/{agentic-memory-BmRCvh0d.d.ts → agentic-memory-types-CVSUS6XR.d.ts} +13 -57
  59. package/dist/{agentic-memory-DfuVZ-lY.d.cts → agentic-memory-types-FnnYlVUs.d.cts} +13 -57
  60. package/dist/{capability-admission-g0mn9hpq.d.ts → capability-admission-BW2CziT6.d.ts} +3 -3
  61. package/dist/{capability-admission-B0BzqAm5.d.cts → capability-admission-lwSecxXs.d.cts} +3 -3
  62. package/dist/chunk-2KUAG2GZ.js +9693 -0
  63. package/dist/chunk-2KUAG2GZ.js.map +1 -0
  64. package/dist/chunk-2NJP6GO4.js +1320 -0
  65. package/dist/chunk-2NJP6GO4.js.map +1 -0
  66. package/dist/{chunk-YDSIVHRR.js → chunk-4NWSNI4K.js} +1598 -1584
  67. package/dist/chunk-4NWSNI4K.js.map +1 -0
  68. package/dist/{chunk-Z2ANQ6JW.js → chunk-4Q77MMJY.js} +2 -2
  69. package/dist/chunk-6E76H4OU.js +132 -0
  70. package/dist/chunk-6E76H4OU.js.map +1 -0
  71. package/dist/chunk-7GOTIIQ7.js +819 -0
  72. package/dist/chunk-7GOTIIQ7.js.map +1 -0
  73. package/dist/{chunk-IXZBUWSP.js → chunk-7HZRJMN6.js} +2 -2
  74. package/dist/{chunk-SS2A464I.js → chunk-CJIFGJQG.js} +3 -3
  75. package/dist/{chunk-V7CIJE4B.js → chunk-CX6B6PO2.js} +92 -9
  76. package/dist/chunk-CX6B6PO2.js.map +1 -0
  77. package/dist/{chunk-FBUU43PM.js → chunk-E4QCH32M.js} +448 -446
  78. package/dist/chunk-E4QCH32M.js.map +1 -0
  79. package/dist/{chunk-HKK2JD7Z.js → chunk-ECURQ3HD.js} +12 -125
  80. package/dist/chunk-ECURQ3HD.js.map +1 -0
  81. package/dist/{chunk-3JR3EDB2.js → chunk-EOKT4QFF.js} +121 -115
  82. package/dist/chunk-EOKT4QFF.js.map +1 -0
  83. package/dist/{chunk-K3FXTC3I.js → chunk-HJACH5PU.js} +3 -3
  84. package/dist/{chunk-GTPCOEOZ.js → chunk-IDMLXLLG.js} +3 -3
  85. package/dist/{chunk-DKP56CSW.js → chunk-JKAYLDQV.js} +2 -2
  86. package/dist/{chunk-4VLAQHZI.js → chunk-K7FB3JTD.js} +17 -1
  87. package/dist/chunk-K7FB3JTD.js.map +1 -0
  88. package/dist/{chunk-H75VXTGT.js → chunk-L6LDXRWE.js} +3 -3
  89. package/dist/{chunk-H75VXTGT.js.map → chunk-L6LDXRWE.js.map} +1 -1
  90. package/dist/{chunk-YXMZ2N6J.js → chunk-M7J6Z4IJ.js} +1071 -1025
  91. package/dist/chunk-M7J6Z4IJ.js.map +1 -0
  92. package/dist/chunk-MQEQMS7B.js +1009 -0
  93. package/dist/chunk-MQEQMS7B.js.map +1 -0
  94. package/dist/chunk-MTELVIYR.js +1421 -0
  95. package/dist/chunk-MTELVIYR.js.map +1 -0
  96. package/dist/{chunk-QFY4AFY4.js → chunk-PVC7WDKI.js} +58 -52
  97. package/dist/chunk-PVC7WDKI.js.map +1 -0
  98. package/dist/{chunk-VTHLCFN4.js → chunk-RAHNUYA5.js} +2 -2
  99. package/dist/{chunk-XKXWK2KP.js → chunk-SHZDP2MQ.js} +1157 -1021
  100. package/dist/chunk-SHZDP2MQ.js.map +1 -0
  101. package/dist/{chunk-CZNV3VXM.js → chunk-SIDJO2T4.js} +11 -11
  102. package/dist/chunk-STXRMPW4.js +4131 -0
  103. package/dist/chunk-STXRMPW4.js.map +1 -0
  104. package/dist/{chunk-2747WN4Y.js → chunk-TPND5MJS.js} +3 -3
  105. package/dist/chunk-TQPCAIQI.js +612 -0
  106. package/dist/chunk-TQPCAIQI.js.map +1 -0
  107. package/dist/{chunk-43BKLFZU.js → chunk-YDWBXXQZ.js} +10 -10
  108. package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
  109. package/dist/composition/index.cjs +1228 -1076
  110. package/dist/composition/index.cjs.map +1 -1
  111. package/dist/composition/index.d.cts +3 -3
  112. package/dist/composition/index.d.ts +3 -3
  113. package/dist/composition/index.js +4 -4
  114. package/dist/core/index.cjs +1198 -1046
  115. package/dist/core/index.cjs.map +1 -1
  116. package/dist/core/index.d.cts +1 -1
  117. package/dist/core/index.d.ts +1 -1
  118. package/dist/core/index.js +2 -2
  119. package/dist/cqrs/index.d.cts +3 -3
  120. package/dist/cqrs/index.d.ts +3 -3
  121. package/dist/cqrs/messaging.d.cts +4 -4
  122. package/dist/cqrs/messaging.d.ts +4 -4
  123. package/dist/cqrs/work-queue.d.cts +5 -5
  124. package/dist/cqrs/work-queue.d.ts +5 -5
  125. package/dist/data-structures/index.cjs +1226 -1074
  126. package/dist/data-structures/index.cjs.map +1 -1
  127. package/dist/data-structures/index.d.cts +8 -7
  128. package/dist/data-structures/index.d.ts +8 -7
  129. package/dist/data-structures/index.js +6 -5
  130. package/dist/{describe-BpyJuWkw.d.ts → describe-B_A5fbXH.d.ts} +1 -1
  131. package/dist/{describe-DYMw_l1C.d.cts → describe-CQRrkv-Q.d.cts} +1 -1
  132. package/dist/executors/tool-provider-adapters.cjs +3091 -0
  133. package/dist/executors/tool-provider-adapters.cjs.map +1 -0
  134. package/dist/executors/tool-provider-adapters.d.cts +174 -0
  135. package/dist/executors/tool-provider-adapters.d.ts +174 -0
  136. package/dist/executors/tool-provider-adapters.js +1336 -0
  137. package/dist/executors/tool-provider-adapters.js.map +1 -0
  138. package/dist/executors/tool-provider-runtime.cjs +5178 -0
  139. package/dist/executors/tool-provider-runtime.cjs.map +1 -0
  140. package/dist/executors/tool-provider-runtime.d.cts +17 -0
  141. package/dist/executors/tool-provider-runtime.d.ts +17 -0
  142. package/dist/executors/tool-provider-runtime.js +15 -0
  143. package/dist/executors/tool-provider-runtime.js.map +1 -0
  144. package/dist/executors/tool-provider.cjs +6392 -0
  145. package/dist/executors/tool-provider.cjs.map +1 -0
  146. package/dist/executors/tool-provider.d.cts +60 -0
  147. package/dist/executors/tool-provider.d.ts +60 -0
  148. package/dist/executors/tool-provider.js +89 -0
  149. package/dist/executors/tool-provider.js.map +1 -0
  150. package/dist/executors/work-queue.d.cts +6 -6
  151. package/dist/executors/work-queue.d.ts +6 -6
  152. package/dist/graph/index.cjs +1499 -1341
  153. package/dist/graph/index.cjs.map +1 -1
  154. package/dist/graph/index.d.cts +9 -8
  155. package/dist/graph/index.d.ts +9 -8
  156. package/dist/graph/index.js +23 -22
  157. package/dist/{graph-DCEWh4T2.d.cts → graph-CWK3HLPB.d.cts} +133 -131
  158. package/dist/{graph-D-1-SQeC.d.ts → graph-ho5sotHP.d.ts} +133 -131
  159. package/dist/{index-Bmxeu0nK.d.ts → index-CQWcE0Dw.d.ts} +18 -4
  160. package/dist/{index-72VZC0-E.d.cts → index-DHA1i67c.d.cts} +18 -4
  161. package/dist/index.cjs +3397 -3140
  162. package/dist/index.cjs.map +1 -1
  163. package/dist/index.d.cts +12 -9
  164. package/dist/index.d.ts +12 -9
  165. package/dist/index.js +110 -109
  166. package/dist/inspection/boundary.d.cts +4 -4
  167. package/dist/inspection/boundary.d.ts +4 -4
  168. package/dist/measurements-C0mAvWU1.d.cts +164 -0
  169. package/dist/measurements-OMpCeBwh.d.ts +164 -0
  170. package/dist/messaging/index.cjs +57 -51
  171. package/dist/messaging/index.cjs.map +1 -1
  172. package/dist/messaging/index.d.cts +11 -276
  173. package/dist/messaging/index.d.ts +11 -276
  174. package/dist/messaging/index.js +1 -1
  175. package/dist/operators/index.cjs +1228 -1076
  176. package/dist/operators/index.cjs.map +1 -1
  177. package/dist/operators/index.d.cts +5 -5
  178. package/dist/operators/index.d.ts +5 -5
  179. package/dist/operators/index.js +5 -5
  180. package/dist/orchestration/index.cjs +8844 -6071
  181. package/dist/orchestration/index.cjs.map +1 -1
  182. package/dist/orchestration/index.d.cts +171 -224
  183. package/dist/orchestration/index.d.ts +171 -224
  184. package/dist/orchestration/index.js +42 -991
  185. package/dist/orchestration/index.js.map +1 -1
  186. package/dist/orchestration/messaging.d.cts +5 -8
  187. package/dist/orchestration/messaging.d.ts +5 -8
  188. package/dist/orchestration/work-queue.cjs +1243 -5
  189. package/dist/orchestration/work-queue.cjs.map +1 -1
  190. package/dist/orchestration/work-queue.d.cts +121 -10
  191. package/dist/orchestration/work-queue.d.ts +121 -10
  192. package/dist/orchestration/work-queue.js +1067 -4
  193. package/dist/orchestration/work-queue.js.map +1 -1
  194. package/dist/patterns/event-flow.cjs +6 -20
  195. package/dist/patterns/event-flow.cjs.map +1 -1
  196. package/dist/patterns/event-flow.d.cts +4 -4
  197. package/dist/patterns/event-flow.d.ts +4 -4
  198. package/dist/patterns/event-flow.js +2 -2
  199. package/dist/patterns/index.cjs +453 -465
  200. package/dist/patterns/index.cjs.map +1 -1
  201. package/dist/patterns/index.d.cts +6 -5
  202. package/dist/patterns/index.d.ts +6 -5
  203. package/dist/patterns/index.js +3 -3
  204. package/dist/process-types-C9uMYz3i.d.ts +200 -0
  205. package/dist/process-types-h3uRlzDc.d.cts +200 -0
  206. package/dist/{reactive-collection-DNV0-gFi.d.cts → reactive-collection-B9R0Bl1P.d.cts} +4 -34
  207. package/dist/{reactive-collection-BAmfrGjd.d.ts → reactive-collection-BXFrH0U2.d.ts} +4 -34
  208. package/dist/{reactive-collection-storage-BNEldDyi.d.cts → reactive-collection-storage-BLGv8Xp8.d.cts} +5 -5
  209. package/dist/{reactive-collection-storage-YZsAQsWK.d.ts → reactive-collection-storage-a4zD3665.d.ts} +5 -5
  210. package/dist/{reactive-map-DRD1LJ2H.d.cts → reactive-map-C_8sOfdS.d.cts} +3 -2
  211. package/dist/{reactive-map-EsDiCmJk.d.ts → reactive-map-jle5dnok.d.ts} +3 -2
  212. package/dist/render/index.d.cts +2 -2
  213. package/dist/render/index.d.ts +2 -2
  214. package/dist/scheduled-readiness-5rwQlyjV.d.ts +91 -0
  215. package/dist/scheduled-readiness-DpRY8jI0.d.cts +91 -0
  216. package/dist/semantic-memory-graph-C2ZUwIlq.d.ts +30 -0
  217. package/dist/semantic-memory-graph-DlZBD_Eu.d.cts +30 -0
  218. package/dist/{semantic-memory-graph-DKuNzuWw.d.cts → semantic-memory-graph-types-BvzdqmkY.d.cts} +2 -28
  219. package/dist/{semantic-memory-graph-uwbwJdhe.d.ts → semantic-memory-graph-types-Ci-OtahO.d.ts} +2 -28
  220. package/dist/solutions/index.cjs +6353 -6169
  221. package/dist/solutions/index.cjs.map +1 -1
  222. package/dist/solutions/index.d.cts +12 -10
  223. package/dist/solutions/index.d.ts +12 -10
  224. package/dist/solutions/index.js +5 -5
  225. package/dist/solutions/reactive-layout/browser/index.cjs +116 -108
  226. package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -1
  227. package/dist/solutions/reactive-layout/browser/index.d.cts +4 -4
  228. package/dist/solutions/reactive-layout/browser/index.d.ts +4 -4
  229. package/dist/solutions/reactive-layout/browser/index.js +3 -3
  230. package/dist/solutions/reactive-layout/index.cjs +3578 -3350
  231. package/dist/solutions/reactive-layout/index.cjs.map +1 -1
  232. package/dist/solutions/reactive-layout/index.d.cts +32 -576
  233. package/dist/solutions/reactive-layout/index.d.ts +32 -576
  234. package/dist/solutions/reactive-layout/index.js +65 -5
  235. package/dist/solutions/reactive-layout/node-canvas/index.cjs +127 -117
  236. package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -1
  237. package/dist/solutions/reactive-layout/node-canvas/index.d.cts +4 -4
  238. package/dist/solutions/reactive-layout/node-canvas/index.d.ts +4 -4
  239. package/dist/solutions/reactive-layout/node-canvas/index.js +3 -3
  240. package/dist/solutions/reactive-layout/react-native/index.cjs +127 -117
  241. package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -1
  242. package/dist/solutions/reactive-layout/react-native/index.d.cts +4 -4
  243. package/dist/solutions/reactive-layout/react-native/index.d.ts +4 -4
  244. package/dist/solutions/reactive-layout/react-native/index.js +3 -3
  245. package/dist/solutions/reactive-layout/skia/index.cjs +127 -117
  246. package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -1
  247. package/dist/solutions/reactive-layout/skia/index.d.cts +4 -4
  248. package/dist/solutions/reactive-layout/skia/index.d.ts +4 -4
  249. package/dist/solutions/reactive-layout/skia/index.js +3 -3
  250. package/dist/solutions/work-item/actions.cjs +1609 -1428
  251. package/dist/solutions/work-item/actions.cjs.map +1 -1
  252. package/dist/solutions/work-item/actions.d.cts +23 -184
  253. package/dist/solutions/work-item/actions.d.ts +23 -184
  254. package/dist/solutions/work-item/actions.js +1558 -934
  255. package/dist/solutions/work-item/actions.js.map +1 -1
  256. package/dist/solutions/work-item/scheduling.cjs +9181 -1838
  257. package/dist/solutions/work-item/scheduling.cjs.map +1 -1
  258. package/dist/solutions/work-item/scheduling.d.cts +1763 -328
  259. package/dist/solutions/work-item/scheduling.d.ts +1763 -328
  260. package/dist/solutions/work-item/scheduling.js +117 -3
  261. package/dist/solutions/work-item/work-queue.d.cts +7 -7
  262. package/dist/solutions/work-item/work-queue.d.ts +7 -7
  263. package/dist/sources/browser.cjs +1318 -1083
  264. package/dist/sources/browser.cjs.map +1 -1
  265. package/dist/sources/browser.d.cts +4 -4
  266. package/dist/sources/browser.d.ts +4 -4
  267. package/dist/sources/browser.js +4 -4
  268. package/dist/sources/index.cjs +1318 -1083
  269. package/dist/sources/index.cjs.map +1 -1
  270. package/dist/sources/index.d.cts +4 -4
  271. package/dist/sources/index.d.ts +4 -4
  272. package/dist/sources/index.js +4 -4
  273. package/dist/sources/node.d.cts +3 -3
  274. package/dist/sources/node.d.ts +3 -3
  275. package/dist/storage/browser.cjs +16 -0
  276. package/dist/storage/browser.cjs.map +1 -1
  277. package/dist/storage/browser.js +3 -3
  278. package/dist/storage/index.cjs +16 -0
  279. package/dist/storage/index.cjs.map +1 -1
  280. package/dist/storage/index.d.cts +5 -4
  281. package/dist/storage/index.d.ts +5 -4
  282. package/dist/storage/index.js +6 -6
  283. package/dist/storage/node.cjs +16 -0
  284. package/dist/storage/node.cjs.map +1 -1
  285. package/dist/storage/node.js +3 -3
  286. package/dist/{store-C-joM4gh.d.ts → store-BmtEs9mG.d.ts} +1 -1
  287. package/dist/{store-CNJwmT-h.d.cts → store-PAAsYvML.d.cts} +1 -1
  288. package/dist/types-BRNKoFHj.d.ts +357 -0
  289. package/dist/{types-CcPIn7sy.d.cts → types-BS6CyR-x.d.cts} +27 -108
  290. package/dist/types-BWK2ay3e.d.cts +457 -0
  291. package/dist/types-BXKSAoE1.d.cts +357 -0
  292. package/dist/types-BaPpZItj.d.ts +457 -0
  293. package/dist/types-BhveCMg5.d.cts +274 -0
  294. package/dist/{types-BsJvElYZ.d.ts → types-C9NOgNJw.d.ts} +27 -108
  295. package/dist/types-CTsQ8Ww4.d.ts +274 -0
  296. package/dist/types-DL_05n2M.d.ts +34 -0
  297. package/dist/types-XDoqxYO9.d.cts +34 -0
  298. package/dist/{work-item-runtime-C3M79vE9.d.ts → work-item-runtime-types-BqtWnSCS.d.ts} +3 -93
  299. package/dist/{work-item-runtime-qaVgsL0T.d.cts → work-item-runtime-types-CHO03AKh.d.cts} +3 -93
  300. package/dist/work-queue/index.cjs +957 -953
  301. package/dist/work-queue/index.cjs.map +1 -1
  302. package/dist/work-queue/index.d.cts +9 -357
  303. package/dist/work-queue/index.d.ts +9 -357
  304. package/dist/work-queue/index.js +957 -953
  305. package/dist/work-queue/index.js.map +1 -1
  306. package/package.json +603 -513
  307. package/dist/chunk-3JR3EDB2.js.map +0 -1
  308. package/dist/chunk-4VLAQHZI.js.map +0 -1
  309. package/dist/chunk-6XAIOL3X.js +0 -2407
  310. package/dist/chunk-6XAIOL3X.js.map +0 -1
  311. package/dist/chunk-FBUU43PM.js.map +0 -1
  312. package/dist/chunk-HKK2JD7Z.js.map +0 -1
  313. package/dist/chunk-PC3BTTBE.js +0 -3217
  314. package/dist/chunk-PC3BTTBE.js.map +0 -1
  315. package/dist/chunk-QFY4AFY4.js.map +0 -1
  316. package/dist/chunk-V7CIJE4B.js.map +0 -1
  317. package/dist/chunk-XKXWK2KP.js.map +0 -1
  318. package/dist/chunk-YDSIVHRR.js.map +0 -1
  319. package/dist/chunk-YXMZ2N6J.js.map +0 -1
  320. /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
  321. /package/dist/{chunk-IXZBUWSP.js.map → chunk-7HZRJMN6.js.map} +0 -0
  322. /package/dist/{chunk-SS2A464I.js.map → chunk-CJIFGJQG.js.map} +0 -0
  323. /package/dist/{chunk-K3FXTC3I.js.map → chunk-HJACH5PU.js.map} +0 -0
  324. /package/dist/{chunk-GTPCOEOZ.js.map → chunk-IDMLXLLG.js.map} +0 -0
  325. /package/dist/{chunk-DKP56CSW.js.map → chunk-JKAYLDQV.js.map} +0 -0
  326. /package/dist/{chunk-VTHLCFN4.js.map → chunk-RAHNUYA5.js.map} +0 -0
  327. /package/dist/{chunk-CZNV3VXM.js.map → chunk-SIDJO2T4.js.map} +0 -0
  328. /package/dist/{chunk-2747WN4Y.js.map → chunk-TPND5MJS.js.map} +0 -0
  329. /package/dist/{chunk-43BKLFZU.js.map → chunk-YDWBXXQZ.js.map} +0 -0
  330. /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
@@ -0,0 +1,695 @@
1
+ import { DataIssue } from './data/index.js';
2
+ import { C as CapacityPolicy, a as RetentionPolicy, R as ReactiveOpt } from './types-DL_05n2M.js';
3
+ import { R as RetryPolicy } from './resilience-Dig3Q7n0.js';
4
+ import { N as Node } from './types-C9NOgNJw.js';
5
+ import { e as ExecutorProfile, S as SourceRef, a as AgentRuntimeAuditRecord, f as ExecutorOutcomeStatus, g as AgentRequestInput, c as ExecutorRoute, h as AgentOutputEnvelope, i as ExecutorUsage, j as AgentNeed, E as ExecutorOutcome, A as AgentRequestStatusChanged } from './agent-runtime-types-core-hU299uIC.js';
6
+ import { S as ScheduledReadinessRequested, a as ScheduledReadinessReady } from './scheduled-readiness-5rwQlyjV.js';
7
+
8
+ /**
9
+ * Provider-neutral tool-call request input (D359). Concrete clients, secrets,
10
+ * transports, and SDK handles stay in executor adapter bindings, not this fact.
11
+ */
12
+ interface ToolCallInput<TArguments = unknown> {
13
+ readonly kind: "tool-call";
14
+ readonly toolName: string;
15
+ readonly operation?: string;
16
+ readonly arguments?: TArguments;
17
+ readonly argumentsRef?: string;
18
+ readonly expectedOutput?: {
19
+ readonly resultKind?: string;
20
+ readonly schemaRef?: string;
21
+ };
22
+ readonly idempotency?: {
23
+ readonly key?: string;
24
+ readonly safeToRetry?: boolean;
25
+ };
26
+ readonly timeoutMs?: number;
27
+ readonly subjectRefs?: readonly SourceRef[];
28
+ readonly metadata?: Record<string, unknown>;
29
+ }
30
+ /**
31
+ * Tool provider family label for optional Layer C adapters (D359). Builtin,
32
+ * MCP, CLI, and Composio providers stay executor/tool recipes, not WorkItem
33
+ * core or protocol semantics.
34
+ */
35
+ type ToolProviderKind = "local-builtin" | "mcp" | "cli" | "composio" | (string & {});
36
+ type ToolProviderSizeUnit = "bytes" | "chars" | "tokens" | "items" | "events" | "lines" | (string & {});
37
+ /**
38
+ * D293-style size-capacity limit material for Layer C tool providers (D360).
39
+ * This is policy/evidence vocabulary only; enforcement remains adapter-owned.
40
+ */
41
+ interface ToolProviderSizeLimit {
42
+ readonly unit: ToolProviderSizeUnit;
43
+ readonly softLimit?: number;
44
+ readonly hardLimit?: number;
45
+ readonly window?: string;
46
+ readonly perItem?: boolean;
47
+ readonly perBatch?: boolean;
48
+ readonly perArtifact?: boolean;
49
+ readonly perStream?: boolean;
50
+ readonly perRequest?: boolean;
51
+ readonly perTool?: boolean;
52
+ readonly policyScopeRefs?: readonly SourceRef[];
53
+ readonly measurementSource?: string;
54
+ readonly metadata?: Record<string, unknown>;
55
+ }
56
+ interface ToolProviderSizeCapacityPolicy {
57
+ readonly limits: readonly ToolProviderSizeLimit[];
58
+ readonly sourceRefs?: readonly SourceRef[];
59
+ readonly metadata?: Record<string, unknown>;
60
+ }
61
+ interface ToolProviderTimeoutPolicy {
62
+ readonly timeoutMs?: number;
63
+ readonly connectTimeoutMs?: number;
64
+ readonly idleTimeoutMs?: number;
65
+ readonly sourceRefs?: readonly SourceRef[];
66
+ readonly metadata?: Record<string, unknown>;
67
+ }
68
+ interface ToolProviderRedactionPolicy {
69
+ readonly mode?: "none" | "summary" | "redact" | "ref-only" | (string & {});
70
+ readonly sensitivity?: readonly string[];
71
+ readonly redactKinds?: readonly string[];
72
+ readonly summaryMaxChars?: number;
73
+ readonly sourceRefs?: readonly SourceRef[];
74
+ readonly metadata?: Record<string, unknown>;
75
+ }
76
+ interface ToolProviderPathRule {
77
+ readonly effect: "allow" | "deny" | "summary" | "ref-only" | (string & {});
78
+ readonly path?: string;
79
+ readonly glob?: string;
80
+ readonly operation?: string;
81
+ readonly reason?: string;
82
+ readonly sourceRefs?: readonly SourceRef[];
83
+ readonly metadata?: Record<string, unknown>;
84
+ }
85
+ interface ToolProviderFilesystemPolicy {
86
+ readonly cwd?: string;
87
+ readonly pathRules?: readonly ToolProviderPathRule[];
88
+ readonly allowRead?: boolean;
89
+ readonly allowWrite?: boolean;
90
+ readonly followSymlinks?: boolean;
91
+ readonly sourceRefs?: readonly SourceRef[];
92
+ readonly metadata?: Record<string, unknown>;
93
+ }
94
+ interface ToolProviderNetworkPolicy {
95
+ readonly mode?: "disabled" | "allowlist" | "denylist" | "custom" | (string & {});
96
+ readonly protocols?: readonly string[];
97
+ readonly allowedHosts?: readonly string[];
98
+ readonly deniedHosts?: readonly string[];
99
+ readonly sourceRefs?: readonly SourceRef[];
100
+ readonly metadata?: Record<string, unknown>;
101
+ }
102
+ interface ToolProviderApprovalPolicy {
103
+ readonly mode?: "auto" | "require" | "never" | "custom" | (string & {});
104
+ readonly requiredForToolNames?: readonly string[];
105
+ readonly requiredForOperations?: readonly string[];
106
+ readonly approverRefs?: readonly SourceRef[];
107
+ readonly sourceRefs?: readonly SourceRef[];
108
+ readonly metadata?: Record<string, unknown>;
109
+ }
110
+ interface ToolProviderArtifactPolicy {
111
+ readonly defaultDataMode?: "inline" | "summary" | "ref" | (string & {});
112
+ readonly inlineLimits?: readonly ToolProviderSizeLimit[];
113
+ readonly artifactKinds?: readonly string[];
114
+ readonly requireDigest?: boolean;
115
+ readonly sourceRefs?: readonly SourceRef[];
116
+ readonly metadata?: Record<string, unknown>;
117
+ }
118
+ /**
119
+ * Data-only execution policy fact for optional Layer C tool providers (D360).
120
+ * It is admission/routing/audit/adapter-input material, not an enforcement
121
+ * runtime, security boundary, provider SDK, client handle, or secret container.
122
+ */
123
+ interface ToolProviderExecutionPolicy {
124
+ readonly kind: "tool-provider-execution-policy";
125
+ readonly policyId: string;
126
+ readonly providerId: string;
127
+ readonly profileIds?: readonly string[];
128
+ readonly toolNames?: readonly string[];
129
+ readonly operations?: readonly string[];
130
+ readonly sizeCapacity?: ToolProviderSizeCapacityPolicy;
131
+ readonly timeout?: ToolProviderTimeoutPolicy;
132
+ readonly redaction?: ToolProviderRedactionPolicy;
133
+ readonly filesystem?: ToolProviderFilesystemPolicy;
134
+ readonly network?: ToolProviderNetworkPolicy;
135
+ readonly approval?: ToolProviderApprovalPolicy;
136
+ readonly artifacts?: ToolProviderArtifactPolicy;
137
+ readonly sourceRefs?: readonly SourceRef[];
138
+ readonly metadata?: Record<string, unknown>;
139
+ }
140
+ /**
141
+ * Graph-visible catalog entry for a tool exposed by an executor provider
142
+ * (D359). Runtime clients and credentials remain private adapter state.
143
+ */
144
+ interface ToolProviderCatalogEntry {
145
+ readonly kind: "tool-catalog-entry";
146
+ readonly providerId: string;
147
+ readonly toolName: string;
148
+ readonly operation?: string;
149
+ readonly inputKind: "tool-call";
150
+ readonly profileId: string;
151
+ readonly executorId: string;
152
+ readonly resultKinds?: readonly string[];
153
+ readonly schemaRefs?: readonly string[];
154
+ readonly capabilities?: Record<string, unknown>;
155
+ readonly limits?: Record<string, number>;
156
+ readonly policyRefs?: readonly SourceRef[];
157
+ readonly metadata?: Record<string, unknown>;
158
+ }
159
+ /**
160
+ * Graph-visible tool provider catalog/status surface (D359). This is passive
161
+ * DATA for routing/profile selection and UI inspection, not a provider runtime.
162
+ */
163
+ interface ToolProviderCatalog {
164
+ readonly kind: "tool-provider-catalog";
165
+ readonly providerId: string;
166
+ readonly providerKind: ToolProviderKind;
167
+ readonly profiles: readonly ExecutorProfile[];
168
+ readonly tools: readonly ToolProviderCatalogEntry[];
169
+ readonly policies?: readonly ToolProviderExecutionPolicy[];
170
+ readonly policyRefs?: readonly SourceRef[];
171
+ readonly status?: "ready" | "unavailable" | "misconfigured";
172
+ readonly issues?: readonly DataIssue[];
173
+ readonly audit?: readonly AgentRuntimeAuditRecord[];
174
+ readonly metadata?: Record<string, unknown>;
175
+ }
176
+ /**
177
+ * Options for producing a local builtin tool-provider catalog (D359). Limits and
178
+ * capabilities are declarative policy hints; execution remains adapter-owned.
179
+ */
180
+ interface LocalBuiltinToolProviderCatalogOptions {
181
+ readonly providerId?: string;
182
+ readonly executorId?: string;
183
+ readonly profileId?: string;
184
+ readonly tools?: readonly Omit<ToolProviderCatalogEntry, "kind" | "providerId" | "inputKind" | "profileId" | "executorId">[];
185
+ readonly limits?: Record<string, number>;
186
+ readonly capabilities?: Record<string, unknown>;
187
+ readonly policies?: readonly ToolProviderExecutionPolicy[];
188
+ readonly policyOverrides?: Partial<Omit<ToolProviderExecutionPolicy, "kind" | "policyId" | "providerId">>;
189
+ readonly metadata?: Record<string, unknown>;
190
+ }
191
+ type ToolProviderPolicyResolutionStatus = "pending-route" | "resolved" | "missing-tool-call" | "missing-catalog" | "ambiguous-catalog" | "missing-tool" | "missing-policy" | "invalid-policy";
192
+ interface ToolProviderPolicyResolution {
193
+ readonly kind: "tool-provider-policy-resolution";
194
+ readonly resolutionId: string;
195
+ readonly status: ToolProviderPolicyResolutionStatus;
196
+ readonly requestId: string;
197
+ readonly operationId: string;
198
+ readonly routeId?: string;
199
+ readonly providerId?: string;
200
+ readonly executorId?: string;
201
+ readonly profileId?: string;
202
+ readonly toolName?: string;
203
+ readonly operation?: string;
204
+ readonly policyRefs?: readonly SourceRef[];
205
+ readonly issues?: readonly DataIssue[];
206
+ readonly sourceRefs?: readonly SourceRef[];
207
+ readonly metadata?: Record<string, unknown>;
208
+ }
209
+ interface ToolProviderPolicyResolutionBundle {
210
+ readonly resolutions: Node<ToolProviderPolicyResolution>;
211
+ readonly issues: Node<DataIssue>;
212
+ readonly audit: Node<AgentRuntimeAuditRecord>;
213
+ }
214
+ type ToolProviderAdapterInputStatus = "ready" | Exclude<ToolProviderPolicyResolutionStatus, "resolved">;
215
+ /**
216
+ * Data-only adapter input projection for optional Layer C tool providers
217
+ * (D359/D360). It packages already-routed AgentRequest/tool-call material plus
218
+ * selected D360 policy facts for an adapter boundary, but it never executes a
219
+ * tool and never carries clients, transports, credentials, subprocesses, SDK
220
+ * handles, or OAuth state.
221
+ */
222
+ interface ToolProviderAdapterInput<TArguments = unknown> {
223
+ readonly kind: "tool-provider-adapter-input";
224
+ readonly adapterInputId: string;
225
+ readonly status: ToolProviderAdapterInputStatus;
226
+ readonly requestId: string;
227
+ readonly operationId: string;
228
+ readonly effectRunId?: string;
229
+ readonly agentRunId?: string;
230
+ readonly routeId?: string;
231
+ readonly providerId?: string;
232
+ readonly executorId?: string;
233
+ readonly profileId?: string;
234
+ readonly toolName?: string;
235
+ readonly operation?: string;
236
+ readonly input?: AgentRequestInput<ToolCallInput<TArguments>>;
237
+ readonly toolCall?: ToolCallInput<TArguments>;
238
+ readonly route?: ExecutorRoute;
239
+ readonly tool?: ToolProviderCatalogEntry;
240
+ readonly policies?: readonly ToolProviderExecutionPolicy[];
241
+ readonly policyRefs?: readonly SourceRef[];
242
+ readonly sourceRefs?: readonly SourceRef[];
243
+ readonly issues?: readonly DataIssue[];
244
+ readonly metadata?: Record<string, unknown>;
245
+ }
246
+ interface ToolProviderAdapterInputBundle {
247
+ readonly inputs: Node<ToolProviderAdapterInput>;
248
+ readonly issues: Node<DataIssue>;
249
+ readonly audit: Node<AgentRuntimeAuditRecord>;
250
+ }
251
+ type ToolProviderAdapterRunResult<T = unknown> = {
252
+ readonly kind: "result";
253
+ readonly result: AgentOutputEnvelope<T>;
254
+ readonly evidenceRefs?: readonly SourceRef[];
255
+ readonly issues?: readonly DataIssue[];
256
+ readonly usage?: ExecutorUsage;
257
+ readonly occurredAtMs?: number;
258
+ readonly metadata?: Record<string, unknown>;
259
+ } | {
260
+ readonly kind: "failure";
261
+ readonly error: DataIssue;
262
+ readonly retryable?: boolean;
263
+ readonly evidenceRefs?: readonly SourceRef[];
264
+ readonly issues?: readonly DataIssue[];
265
+ readonly usage?: ExecutorUsage;
266
+ readonly occurredAtMs?: number;
267
+ readonly metadata?: Record<string, unknown>;
268
+ } | {
269
+ readonly kind: "canceled";
270
+ readonly reason?: string;
271
+ readonly evidenceRefs?: readonly SourceRef[];
272
+ readonly issues?: readonly DataIssue[];
273
+ readonly usage?: ExecutorUsage;
274
+ readonly occurredAtMs?: number;
275
+ readonly metadata?: Record<string, unknown>;
276
+ } | {
277
+ readonly kind: "timeout";
278
+ readonly timeoutMs?: number;
279
+ readonly retryable?: boolean;
280
+ readonly evidenceRefs?: readonly SourceRef[];
281
+ readonly issues?: readonly DataIssue[];
282
+ readonly usage?: ExecutorUsage;
283
+ readonly occurredAtMs?: number;
284
+ readonly metadata?: Record<string, unknown>;
285
+ } | {
286
+ readonly kind: "blocked";
287
+ readonly needs: readonly AgentNeed[];
288
+ readonly evidenceRefs?: readonly SourceRef[];
289
+ readonly issues?: readonly DataIssue[];
290
+ readonly usage?: ExecutorUsage;
291
+ readonly occurredAtMs?: number;
292
+ readonly metadata?: Record<string, unknown>;
293
+ };
294
+ interface ToolProviderAdapterRunContext {
295
+ readonly runId?: string;
296
+ readonly attempt: number;
297
+ readonly reason?: ToolProviderAdapterRunReason;
298
+ readonly sourceRefs: readonly SourceRef[];
299
+ readonly now?: () => number;
300
+ }
301
+ type ToolProviderAdapterRunReason = "initial" | "retry" | "manual" | (string & {});
302
+ /**
303
+ * Graph-visible D362 execution lifecycle request. Attempts stay out of
304
+ * ToolProviderAdapterInput identity; this fact is the visible run coordinate.
305
+ */
306
+ interface ToolProviderAdapterRunRequested {
307
+ readonly kind: "tool-provider-adapter-run-requested";
308
+ readonly runId: string;
309
+ readonly adapterInputId: string;
310
+ readonly requestId: string;
311
+ readonly operationId: string;
312
+ readonly routeId?: string;
313
+ readonly providerId?: string;
314
+ readonly executorId?: string;
315
+ readonly profileId?: string;
316
+ readonly attempt: number;
317
+ readonly reason: ToolProviderAdapterRunReason;
318
+ readonly retryOfOutcomeId?: string;
319
+ readonly policyRefs?: readonly SourceRef[];
320
+ readonly sourceRefs?: readonly SourceRef[];
321
+ readonly metadata?: Record<string, unknown>;
322
+ readonly requestedAtMs?: number;
323
+ }
324
+ interface ToolProviderAdapterRunStatus {
325
+ readonly kind: "tool-provider-adapter-run-status";
326
+ readonly runId: string;
327
+ readonly adapterInputId: string;
328
+ readonly requestId?: string;
329
+ readonly operationId?: string;
330
+ readonly status: "requested" | "missing-request" | "missing-input" | "stale-request" | "mismatched-request" | "retention-gap" | "started" | ExecutorOutcomeStatus;
331
+ readonly attempt?: number;
332
+ readonly outcomeId?: string;
333
+ readonly issues?: readonly DataIssue[];
334
+ readonly sourceRefs?: readonly SourceRef[];
335
+ readonly metadata?: Record<string, unknown>;
336
+ }
337
+ interface ToolProviderAdapterRunBundle {
338
+ readonly requests: Node<ToolProviderAdapterRunRequested>;
339
+ readonly status: Node<ToolProviderAdapterRunStatus>;
340
+ readonly issues: Node<DataIssue>;
341
+ readonly audit: Node<AgentRuntimeAuditRecord>;
342
+ }
343
+ type ToolProviderRunAdmissionOutcome = "admit" | "block" | "defer";
344
+ type ToolProviderRunAdmissionState = "admitted" | "blocked" | "deferred" | "waiting";
345
+ interface ToolProviderRunAdmissionProposal {
346
+ readonly kind: "tool-provider-run-admission-proposal";
347
+ readonly proposalId: string;
348
+ readonly runId: string;
349
+ readonly adapterInputId: string;
350
+ readonly requestId: string;
351
+ readonly operationId: string;
352
+ readonly routeId?: string;
353
+ readonly providerId?: string;
354
+ readonly executorId?: string;
355
+ readonly profileId?: string;
356
+ readonly toolName?: string;
357
+ readonly operation?: string;
358
+ readonly attempt: number;
359
+ readonly reason: ToolProviderAdapterRunReason;
360
+ readonly approvalMode: "auto" | "require" | "never" | "custom" | (string & {});
361
+ readonly policyRefs?: readonly SourceRef[];
362
+ readonly sourceRefs?: readonly SourceRef[];
363
+ readonly needs?: readonly AgentNeed[];
364
+ readonly metadata?: Record<string, unknown>;
365
+ }
366
+ interface ToolProviderRunAdmissionDecision {
367
+ readonly kind: "tool-provider-run-admission-decision";
368
+ readonly decisionId: string;
369
+ readonly proposalId: string;
370
+ readonly admissionId: string;
371
+ readonly outcome: ToolProviderRunAdmissionOutcome;
372
+ readonly approvedRunId?: string;
373
+ readonly reason?: string;
374
+ readonly decidedByRef?: SourceRef;
375
+ readonly sourceRefs?: readonly SourceRef[];
376
+ readonly metadata?: Record<string, unknown>;
377
+ }
378
+ interface ToolProviderRunAdmission {
379
+ readonly kind: "tool-provider-run-admission";
380
+ readonly admissionId: string;
381
+ readonly proposalId: string;
382
+ readonly runId: string;
383
+ readonly adapterInputId: string;
384
+ readonly requestId: string;
385
+ readonly operationId: string;
386
+ readonly state: ToolProviderRunAdmissionState;
387
+ readonly decisionId?: string;
388
+ readonly approvedRunId?: string;
389
+ readonly reason?: string;
390
+ readonly sourceRefs?: readonly SourceRef[];
391
+ readonly metadata?: Record<string, unknown>;
392
+ }
393
+ interface ToolProviderRunAdmissionStatus {
394
+ readonly kind: "tool-provider-run-admission-status";
395
+ readonly proposalId: string;
396
+ readonly runId: string;
397
+ readonly adapterInputId: string;
398
+ readonly requestId?: string;
399
+ readonly operationId?: string;
400
+ readonly state: ToolProviderRunAdmissionState | "issue";
401
+ readonly admissionId?: string;
402
+ readonly decisionId?: string;
403
+ readonly approvedRunId?: string;
404
+ readonly issues?: readonly DataIssue[];
405
+ readonly sourceRefs?: readonly SourceRef[];
406
+ readonly metadata?: Record<string, unknown>;
407
+ }
408
+ interface ToolProviderRunAdmissionViews {
409
+ readonly admissionsByProposal: ReadonlyMap<string, ToolProviderRunAdmission>;
410
+ readonly admissionsByRun: ReadonlyMap<string, readonly ToolProviderRunAdmission[]>;
411
+ readonly proposalsByRun: ReadonlyMap<string, readonly ToolProviderRunAdmissionProposal[]>;
412
+ }
413
+ interface ToolProviderRunAdmissionBundle {
414
+ readonly proposals: Node<ToolProviderRunAdmissionProposal>;
415
+ readonly admissions: Node<ToolProviderRunAdmission>;
416
+ readonly approvedRunRequests: Node<ToolProviderAdapterRunRequested>;
417
+ readonly status: Node<ToolProviderRunAdmissionStatus>;
418
+ readonly issues: Node<DataIssue>;
419
+ readonly audit: Node<AgentRuntimeAuditRecord>;
420
+ readonly views: Node<ToolProviderRunAdmissionViews>;
421
+ }
422
+ interface ToolProviderRunRetryPolicy {
423
+ readonly kind: "tool-provider-run-retry-policy";
424
+ readonly policyId: string;
425
+ readonly retryPolicy: RetryPolicy;
426
+ readonly runId?: string;
427
+ readonly requestId?: string;
428
+ readonly adapterInputId?: string;
429
+ readonly sourceRefs?: readonly SourceRef[];
430
+ readonly metadata?: Record<string, unknown>;
431
+ }
432
+ interface ToolProviderRunRetryProposal {
433
+ readonly kind: "tool-provider-run-retry-proposal";
434
+ readonly proposalId: string;
435
+ readonly outcomeId: string;
436
+ readonly fromRunId: string;
437
+ readonly fromRequestId: string;
438
+ readonly fromAttempt: number;
439
+ readonly nextAttempt: number;
440
+ readonly nextRunId: string;
441
+ readonly adapterInputId: string;
442
+ readonly requestId: string;
443
+ readonly operationId: string;
444
+ readonly policyId?: string;
445
+ readonly policyRefs?: readonly SourceRef[];
446
+ readonly maxAttempts: number;
447
+ readonly nextDelayMs?: number;
448
+ readonly sourceRefs?: readonly SourceRef[];
449
+ readonly metadata?: Record<string, unknown>;
450
+ }
451
+ interface ToolProviderRunRetryScheduled {
452
+ readonly kind: "tool-provider-run-retry-scheduled";
453
+ readonly scheduleId: string;
454
+ readonly readinessScheduleId?: string;
455
+ readonly outcomeId: string;
456
+ readonly proposalId: string;
457
+ readonly fromRunId: string;
458
+ readonly nextRunId: string;
459
+ readonly nextAttempt: number;
460
+ readonly retryAtMs: number;
461
+ readonly retryAfterMs: number;
462
+ readonly sourceRefs?: readonly SourceRef[];
463
+ }
464
+ type ToolProviderRunRetryStatusState = "scheduled" | "ready" | "exhausted" | "not-retryable" | "blocked";
465
+ interface ToolProviderRunRetryStatus {
466
+ readonly kind: "tool-provider-run-retry-status";
467
+ readonly statusId: string;
468
+ readonly outcomeId: string;
469
+ readonly proposalId: string;
470
+ readonly fromRunId: string;
471
+ readonly adapterInputId: string;
472
+ readonly requestId: string;
473
+ readonly operationId: string;
474
+ readonly nextRunId?: string;
475
+ readonly nextAttempt?: number;
476
+ readonly nextRetryAtMs?: number;
477
+ readonly state: ToolProviderRunRetryStatusState;
478
+ readonly sourceRefs?: readonly SourceRef[];
479
+ readonly issueCodes?: readonly string[];
480
+ readonly metadata?: Record<string, unknown>;
481
+ }
482
+ interface ToolProviderRunRetryViews {
483
+ readonly proposalsByOutcome: ReadonlyMap<string, ToolProviderRunRetryProposal>;
484
+ readonly scheduledByOutcome: ReadonlyMap<string, ToolProviderRunRetryScheduled>;
485
+ readonly readinessSchedulesByOutcome: ReadonlyMap<string, ScheduledReadinessRequested>;
486
+ readonly readinessBySchedule: ReadonlyMap<string, ScheduledReadinessReady>;
487
+ readonly nextRunRequestsByOutcome: ReadonlyMap<string, ToolProviderAdapterRunRequested>;
488
+ readonly statusByOutcome: ReadonlyMap<string, ToolProviderRunRetryStatus>;
489
+ }
490
+ interface ToolProviderRunRetryBundle {
491
+ readonly proposals: Node<ToolProviderRunRetryProposal>;
492
+ readonly scheduled: Node<ToolProviderRunRetryScheduled>;
493
+ readonly readinessSchedules: Node<ScheduledReadinessRequested>;
494
+ readonly runRequests: Node<ToolProviderAdapterRunRequested>;
495
+ readonly status: Node<ToolProviderRunRetryStatus>;
496
+ readonly issues: Node<DataIssue>;
497
+ readonly audit: Node<AgentRuntimeAuditRecord>;
498
+ readonly views: Node<ToolProviderRunRetryViews>;
499
+ }
500
+ interface ToolProviderPublicTextPolicy {
501
+ readonly maxMessageChars?: number;
502
+ readonly maxSummaryChars?: number;
503
+ readonly maxReasonChars?: number;
504
+ readonly maxMetadataStringChars?: number;
505
+ }
506
+ type ToolProviderAdapterRuntimeRetentionIndex = "adapterInputs" | "runRequests" | "executions" | "runStatuses" | "runIssues" | "retentionEvidence";
507
+ type ToolProviderAdapterRuntimeRetentionOrder = "fifo";
508
+ interface ToolProviderAdapterInputRetentionEntry {
509
+ readonly key: string;
510
+ readonly sequence: number;
511
+ readonly insertedAtMs?: number;
512
+ readonly adapterInputId: string;
513
+ readonly requestId: string;
514
+ readonly operationId: string;
515
+ readonly routeId?: string;
516
+ readonly providerId?: string;
517
+ readonly executorId?: string;
518
+ readonly profileId?: string;
519
+ readonly status?: ToolProviderAdapterInputStatus;
520
+ }
521
+ interface ToolProviderAdapterRunRequestRetentionEntry {
522
+ readonly key: string;
523
+ readonly sequence: number;
524
+ readonly requestedAtMs?: number;
525
+ readonly adapterInputId: string;
526
+ readonly runId: string;
527
+ readonly attempt: number;
528
+ readonly requestId: string;
529
+ readonly operationId: string;
530
+ readonly routeId?: string;
531
+ readonly providerId?: string;
532
+ readonly executorId?: string;
533
+ readonly profileId?: string;
534
+ readonly reason?: ToolProviderAdapterRunReason;
535
+ }
536
+ interface ToolProviderAdapterExecutionRetentionEntry {
537
+ readonly key: string;
538
+ readonly sequence: number;
539
+ readonly occurredAtMs?: number;
540
+ readonly adapterInputId: string;
541
+ readonly runId: string;
542
+ readonly attempt: number;
543
+ readonly requestId: string;
544
+ readonly operationId: string;
545
+ readonly routeId?: string;
546
+ readonly providerId?: string;
547
+ readonly executorId?: string;
548
+ readonly profileId?: string;
549
+ readonly outcomeId?: string;
550
+ readonly status?: ExecutorOutcomeStatus | "started";
551
+ readonly reason?: ToolProviderAdapterRunReason;
552
+ }
553
+ interface ToolProviderAdapterRunStatusRetentionEntry {
554
+ readonly key: string;
555
+ readonly sequence: number;
556
+ readonly occurredAtMs?: number;
557
+ readonly adapterInputId: string;
558
+ readonly runId: string;
559
+ readonly attempt?: number;
560
+ readonly requestId?: string;
561
+ readonly operationId?: string;
562
+ readonly status: ToolProviderAdapterRunStatus["status"];
563
+ readonly outcomeId?: string;
564
+ readonly issueCode?: string;
565
+ }
566
+ interface ToolProviderAdapterRunIssueRetentionEntry {
567
+ readonly key: string;
568
+ readonly sequence: number;
569
+ readonly occurredAtMs?: number;
570
+ readonly adapterInputId?: string;
571
+ readonly runId?: string;
572
+ readonly attempt?: number;
573
+ readonly requestId?: string;
574
+ readonly operationId?: string;
575
+ readonly issueCode: string;
576
+ readonly severity?: DataIssue["severity"];
577
+ readonly subjectId?: string;
578
+ }
579
+ interface ToolProviderAdapterRuntimeRetentionEvidenceEntry {
580
+ readonly key: string;
581
+ readonly sequence: number;
582
+ readonly occurredAtMs?: number;
583
+ readonly adapterInputId: string;
584
+ readonly evidenceKind: "adapter-input-trimmed" | "execution-high-water";
585
+ readonly attemptHighWater?: number;
586
+ readonly reason: "adapter-input-retention" | "execution-proof-retention";
587
+ }
588
+ type ToolProviderAdapterRuntimeIndexRetentionPolicy<Entry> = CapacityPolicy<ToolProviderAdapterRuntimeRetentionOrder> | (RetentionPolicy<Entry> & {
589
+ readonly maxSize: ReactiveOpt<number>;
590
+ });
591
+ interface ToolProviderAdapterRuntimeRetentionPolicy {
592
+ readonly adapterInputs?: ToolProviderAdapterRuntimeIndexRetentionPolicy<ToolProviderAdapterInputRetentionEntry>;
593
+ readonly runRequests?: ToolProviderAdapterRuntimeIndexRetentionPolicy<ToolProviderAdapterRunRequestRetentionEntry>;
594
+ readonly executions?: ToolProviderAdapterRuntimeIndexRetentionPolicy<ToolProviderAdapterExecutionRetentionEntry>;
595
+ readonly runStatuses?: ToolProviderAdapterRuntimeIndexRetentionPolicy<ToolProviderAdapterRunStatusRetentionEntry>;
596
+ readonly runIssues?: ToolProviderAdapterRuntimeIndexRetentionPolicy<ToolProviderAdapterRunIssueRetentionEntry>;
597
+ readonly retentionEvidence?: ToolProviderAdapterRuntimeIndexRetentionPolicy<ToolProviderAdapterRuntimeRetentionEvidenceEntry>;
598
+ }
599
+ type ToolProviderAdapterRuntimeStatusKind = "retention-trimmed" | "retention-gap" | "invalid-retention-policy";
600
+ interface ToolProviderAdapterRuntimeStatus {
601
+ readonly kind: "tool-provider-adapter-runtime-status";
602
+ readonly status: ToolProviderAdapterRuntimeStatusKind;
603
+ readonly index?: ToolProviderAdapterRuntimeRetentionIndex;
604
+ readonly key?: string;
605
+ readonly adapterInputId?: string;
606
+ readonly runId?: string;
607
+ readonly attempt?: number;
608
+ readonly issueCode?: string;
609
+ readonly occurredAtMs?: number;
610
+ readonly sourceRefs?: readonly SourceRef[];
611
+ readonly metadata?: Record<string, unknown>;
612
+ }
613
+ /**
614
+ * Runtime-private adapter binding for D361. Bindings may close over clients,
615
+ * credentials, subprocess access, transports, SDK objects, or environment
616
+ * handles, but the binding itself must never be graph DATA or WorkItem core
617
+ * material.
618
+ */
619
+ interface ToolProviderAdapterBinding<TArguments = unknown, TResult = unknown> {
620
+ readonly providerId: string;
621
+ run(input: ToolProviderAdapterInput<TArguments>, ctx: ToolProviderAdapterRunContext): ToolProviderAdapterRunResult<TResult>;
622
+ }
623
+ interface ToolProviderAdapterRuntimeOptions<TArguments = unknown, TResult = unknown> {
624
+ readonly name?: string;
625
+ readonly inputs: Node<ToolProviderAdapterInput<TArguments>>;
626
+ readonly runRequests?: readonly Node<ToolProviderAdapterRunRequested>[];
627
+ readonly bindings: readonly ToolProviderAdapterBinding<TArguments, TResult>[] | ReadonlyMap<string, ToolProviderAdapterBinding<TArguments, TResult>>;
628
+ readonly autoRunReadyInputs?: boolean;
629
+ readonly retention?: ToolProviderAdapterRuntimeRetentionPolicy;
630
+ readonly now?: () => number;
631
+ readonly publicText?: ToolProviderPublicTextPolicy;
632
+ }
633
+ interface ToolProviderAdapterRuntimeHandle {
634
+ readonly runRequests: Node<ToolProviderAdapterRunRequested>;
635
+ readonly runStatus: Node<ToolProviderAdapterRunStatus>;
636
+ readonly runtimeStatus: Node<ToolProviderAdapterRuntimeStatus>;
637
+ readonly outcomes: Node<ExecutorOutcome>;
638
+ readonly status: Node<AgentRequestStatusChanged>;
639
+ readonly issues: Node<DataIssue>;
640
+ readonly audit: Node<AgentRuntimeAuditRecord>;
641
+ dispose(): void;
642
+ }
643
+ /**
644
+ * Audience selector for bounded ExecutorOutcome projections (D359).
645
+ */
646
+ type ExecutorOutcomeViewAudience = "agent-observation" | "ui" | "diagnostic" | "audit";
647
+ /**
648
+ * View policy for deriving bounded, audience-specific ExecutorOutcome summaries
649
+ * (D359/D270/D293) without inlining large/raw provider material.
650
+ */
651
+ interface ExecutorOutcomeViewPolicy {
652
+ readonly audience?: ExecutorOutcomeViewAudience;
653
+ readonly maxSummaryChars?: number;
654
+ readonly includeIssues?: boolean;
655
+ readonly includeUsage?: boolean;
656
+ readonly includeMetadata?: boolean;
657
+ }
658
+ /**
659
+ * Bounded projection of ExecutorOutcome for agent, UI, diagnostic, or audit
660
+ * consumers (D359). Large/raw material stays behind refs.
661
+ */
662
+ interface ExecutorOutcomeView {
663
+ readonly kind: "executor-outcome-view";
664
+ readonly viewId: string;
665
+ readonly audience: ExecutorOutcomeViewAudience;
666
+ readonly outcomeId: string;
667
+ readonly requestId: string;
668
+ readonly operationId: string;
669
+ readonly routeId: string;
670
+ readonly executorId: string;
671
+ readonly profileId: string;
672
+ readonly status: ExecutorOutcomeStatus;
673
+ readonly summary: string;
674
+ readonly summaryTruncated?: boolean;
675
+ readonly summaryChars?: number;
676
+ readonly summaryLimitChars?: number;
677
+ readonly errorKind?: string;
678
+ readonly retryable?: boolean;
679
+ readonly nextActions?: readonly string[];
680
+ readonly sourceRefs?: readonly SourceRef[];
681
+ readonly materialRefs?: readonly SourceRef[];
682
+ readonly issues?: readonly DataIssue[];
683
+ readonly usage?: ExecutorUsage;
684
+ readonly metadata?: Record<string, unknown>;
685
+ }
686
+ /**
687
+ * Output bundle for ExecutorOutcome view projectors (D359).
688
+ */
689
+ interface ExecutorOutcomeViewBundle {
690
+ readonly views: Node<ExecutorOutcomeView>;
691
+ readonly issues: Node<DataIssue>;
692
+ readonly audit: Node<AgentRuntimeAuditRecord>;
693
+ }
694
+
695
+ export type { ToolProviderRunAdmissionViews as $, ToolProviderPolicyResolution as A, ToolProviderRunAdmissionDecision as B, ToolProviderRunAdmissionBundle as C, ToolProviderRunRetryPolicy as D, ExecutorOutcomeViewBundle as E, ToolProviderRunRetryBundle as F, ExecutorOutcomeView as G, ExecutorOutcomeViewAudience as H, ToolCallInput as I, ToolProviderAdapterInputStatus as J, ToolProviderApprovalPolicy as K, LocalBuiltinToolProviderCatalogOptions as L, ToolProviderArtifactPolicy as M, ToolProviderCatalogEntry as N, ToolProviderExecutionPolicy as O, ToolProviderFilesystemPolicy as P, ToolProviderKind as Q, ToolProviderNetworkPolicy as R, ToolProviderPathRule as S, ToolProviderCatalog as T, ToolProviderPolicyResolutionStatus as U, ToolProviderRedactionPolicy as V, ToolProviderRunAdmission as W, ToolProviderRunAdmissionOutcome as X, ToolProviderRunAdmissionProposal as Y, ToolProviderRunAdmissionState as Z, ToolProviderRunAdmissionStatus as _, ToolProviderAdapterRunRequested as a, ToolProviderRunRetryProposal as a0, ToolProviderRunRetryScheduled as a1, ToolProviderRunRetryStatus as a2, ToolProviderRunRetryStatusState as a3, ToolProviderRunRetryViews as a4, ToolProviderSizeCapacityPolicy as a5, ToolProviderSizeLimit as a6, ToolProviderSizeUnit as a7, ToolProviderTimeoutPolicy as a8, ToolProviderAdapterRunStatus as b, ToolProviderAdapterInput as c, ToolProviderPublicTextPolicy as d, ToolProviderAdapterBinding as e, ToolProviderAdapterRuntimeOptions as f, ToolProviderAdapterRuntimeHandle as g, ToolProviderAdapterExecutionRetentionEntry as h, ToolProviderAdapterInputRetentionEntry as i, ToolProviderAdapterRunContext as j, ToolProviderAdapterRunIssueRetentionEntry as k, ToolProviderAdapterRunRequestRetentionEntry as l, ToolProviderAdapterRunResult as m, ToolProviderAdapterRunStatusRetentionEntry as n, ToolProviderAdapterRuntimeIndexRetentionPolicy as o, ToolProviderAdapterRuntimeRetentionEvidenceEntry as p, ToolProviderAdapterRuntimeRetentionIndex as q, ToolProviderAdapterRuntimeRetentionOrder as r, ToolProviderAdapterRuntimeRetentionPolicy as s, ToolProviderAdapterRuntimeStatus as t, ToolProviderAdapterRuntimeStatusKind as u, ToolProviderPolicyResolutionBundle as v, ToolProviderAdapterInputBundle as w, ExecutorOutcomeViewPolicy as x, ToolProviderAdapterRunReason as y, ToolProviderAdapterRunBundle as z };