@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,164 @@
1
+ import { z as MeasurementAdapter, ac as TextMeasureCapability, f as CellMeasureAdapterOptions, n as ImageMeasurer, o as ImageSizeLookup, a5 as Size, x as MeasureFn, r as InjectedMeasureAdapterOptions, N as PrecomputedMeasureAdapterOptions, a9 as SvgMeasurer, y as MeasuredBlock, P as PositionedBlock, j as ContentBlock, M as MeasureBlockOptions, U as ReactiveBlockLayoutOptions, T as ReactiveBlockLayoutBundle, W as ReactiveFlowLayoutOptions, V as ReactiveFlowLayoutBundle, Y as ReactiveLayoutOptions, X as ReactiveLayoutBundle, h as CircleObstacle, ag as Interval, R as PreparedSegment, i as ComputeFlowLinesOptions, l as FlowLinesResult, $ as RectObstacle, O as Obstacle, k as FlowContainer, F as FlowColumns, a4 as SegmentMeasureStats, a1 as SegmentAdapter, w as LineBreaksResult, af as CharPosition, L as LayoutCursor, u as LayoutNextLineContext, v as LayoutNextLineResult, c as BlockAdaptersProviderOptions, b as BlockAdapters, d as BlockMeasurementProviderOptions, H as Measurements, C as CapabilityTextMeasurementsOptions, g as CellTextMeasurementsOptions, q as ImageSizeMeasurementsOptions, s as InjectedTextMeasurementsOptions, J as MergeMeasurementsOptions, Q as PrecomputedTextMeasurementsOptions, Z as ReadinessMeasurementsOptions, _ as ReadinessTextMeasurementsOptions, a7 as SvgBoundsMeasurementsOptions, ad as TextMeasurementProviderOptions, D as MeasurementIssue, G as MeasurementResult } from './types-BWK2ay3e.cjs';
2
+ import { DataIssue } from './data/index.cjs';
3
+ import { d as Graph } from './graph-CWK3HLPB.cjs';
4
+ import { N as Node } from './types-BS6CyR-x.cjs';
5
+
6
+ /** Adapter that wraps a caller-owned synchronous measurement function. */
7
+ declare class InjectedMeasureAdapter implements MeasurementAdapter {
8
+ private readonly measure;
9
+ private readonly shouldCache;
10
+ private readonly cache;
11
+ constructor(measure: MeasureFn, opts?: InjectedMeasureAdapterOptions);
12
+ measureSegment(text: string, font: string): {
13
+ readonly width: number;
14
+ };
15
+ clearCache(): void;
16
+ }
17
+ /** Deterministic adapter backed by caller-supplied width metrics. */
18
+ declare class PrecomputedMeasureAdapter implements MeasurementAdapter {
19
+ private readonly metrics;
20
+ private readonly fallback;
21
+ private readonly cellWidth;
22
+ constructor(opts: PrecomputedMeasureAdapterOptions);
23
+ measureSegment(text: string, font: string): {
24
+ readonly width: number;
25
+ };
26
+ }
27
+ /** Fixed-cell adapter for CLI, snapshots, and tests. */
28
+ declare class CellMeasureAdapter implements MeasurementAdapter {
29
+ private readonly cellWidth;
30
+ private readonly wideCellWidth;
31
+ private readonly tabCells;
32
+ constructor(opts?: CellMeasureAdapterOptions);
33
+ measureSegment(text: string): {
34
+ readonly width: number;
35
+ };
36
+ }
37
+ /** Adapter over a caller-owned platform capability such as NodeCanvas, Skia, or RN text APIs. */
38
+ declare class CapabilityMeasureAdapter implements MeasurementAdapter {
39
+ private readonly capability;
40
+ constructor(capability: TextMeasureCapability);
41
+ measureSegment(text: string, font: string): {
42
+ readonly width: number;
43
+ };
44
+ clearCache(): void;
45
+ }
46
+ /**
47
+ * Minimal string-based SVG bounds reader for explicit width/height or viewBox.
48
+ *
49
+ * This is not a DOM SVG parser and does not resolve external resources.
50
+ */
51
+ declare class SvgBoundsAdapter implements SvgMeasurer {
52
+ measureSvg(svg: string): Size;
53
+ }
54
+ /** Image measurer backed by explicit caller-provided dimensions; it never loads images. */
55
+ declare class ImageSizeAdapter implements ImageMeasurer {
56
+ private readonly sizes;
57
+ constructor(sizes: ImageSizeLookup | Record<string, Size>);
58
+ measureImage(src: string): Size;
59
+ }
60
+
61
+ /** Measure one text/image/SVG block using only explicit or injected synchronous adapters. */
62
+ declare function measureBlock(block: ContentBlock, opts: MeasureBlockOptions): MeasuredBlock;
63
+ /** Measure a block list while sharing a measurement cache across text blocks. */
64
+ declare function measureBlocks(blocks: readonly ContentBlock[], opts: MeasureBlockOptions): readonly MeasuredBlock[];
65
+ /** Stack measured blocks vertically with margins and a fixed gap. */
66
+ declare function computeBlockFlow(blocks: readonly MeasuredBlock[], gap?: number): readonly PositionedBlock[];
67
+ /** Compute the bottom edge of a positioned block flow. */
68
+ declare function computeTotalHeight(blocks: readonly PositionedBlock[]): number;
69
+
70
+ /**
71
+ * Create a graph-visible single-column text layout bundle.
72
+ *
73
+ * D181: this adds ordinary state/output nodes only; it does not add protocol behavior,
74
+ * hidden subscriptions, GraphSpec ownership, storage, or platform globals.
75
+ */
76
+ declare function reactiveLayout(opts: ReactiveLayoutOptions): ReactiveLayoutBundle;
77
+ /**
78
+ * Create a graph-visible vertical block layout bundle over the same DOM-free core.
79
+ *
80
+ * Image/SVG sizing is explicit or injected; no async image loading or DOM SVG parsing occurs.
81
+ */
82
+ declare function reactiveBlockLayout(opts: ReactiveBlockLayoutOptions): ReactiveBlockLayoutBundle;
83
+ /** Create a graph-visible multi-column flow layout bundle with rectangle/circle obstacles. */
84
+ declare function reactiveFlowLayout(opts: ReactiveFlowLayoutOptions): ReactiveFlowLayoutBundle;
85
+
86
+ declare function columnGeometry(container: FlowContainer, columns: FlowColumns | undefined): {
87
+ readonly paddingX: number;
88
+ readonly paddingY: number;
89
+ readonly count: number;
90
+ readonly gap: number;
91
+ readonly width: number;
92
+ readonly height: number;
93
+ readonly columnWidth: number;
94
+ };
95
+ declare function sanitizeFlowContainer(container: FlowContainer): FlowContainer;
96
+ declare function sanitizeFlowColumns(columns: FlowColumns): FlowColumns;
97
+ declare function sanitizeObstacles(obstacles: readonly Obstacle[]): readonly Obstacle[];
98
+ /** Intersect a circle obstacle with a horizontal line band. */
99
+ declare function circleIntervalForBand(obstacle: CircleObstacle, bandTop: number, bandBottom: number): Interval | null;
100
+ /** Intersect a rectangle obstacle with a horizontal line band. */
101
+ declare function rectIntervalForBand(obstacle: RectObstacle, bandTop: number, bandBottom: number): Interval | null;
102
+ declare function blockedIntervalsForBand(obstacles: readonly Obstacle[], bandTop: number, bandBottom: number): Interval[];
103
+ /** Flow prepared text through columns and carved obstacle slots. */
104
+ declare function computeFlowLines(segments: readonly PreparedSegment[], opts: ComputeFlowLinesOptions): FlowLinesResult;
105
+
106
+ /** Segment text and measure every resulting segment with a caller-owned synchronous adapter. */
107
+ declare function analyzeAndMeasure(text: string, font: string, adapter: MeasurementAdapter, cache: Map<string, Map<string, number>>, stats?: SegmentMeasureStats, segmentAdapter?: SegmentAdapter): PreparedSegment[];
108
+ /** Greedy single-column line breaking over prepared segments. */
109
+ declare function computeLineBreaks(segments: readonly PreparedSegment[], maxWidth: number, opts?: {
110
+ readonly hyphenWidth?: number;
111
+ readonly segmentAdapter?: SegmentAdapter;
112
+ }): LineBreaksResult;
113
+ /** Lay out one line from a cursor, returning the next cursor for continuation. */
114
+ declare function layoutNextLine(segments: readonly PreparedSegment[], cursor: LayoutCursor, slotWidth: number, ctx?: LayoutNextLineContext): LayoutNextLineResult | null;
115
+ /** Subtract obstacle intervals from a horizontal text band. */
116
+ declare function carveTextLineSlots(base: Interval, blocked: readonly Interval[], minSlotWidth?: number): Interval[];
117
+ /** Compute per-grapheme boxes for already-broken lines. */
118
+ declare function computeCharPositions(lineBreaks: LineBreaksResult, segments: readonly PreparedSegment[], lineHeight: number, segmentAdapter?: SegmentAdapter): readonly CharPosition[];
119
+
120
+ declare function measurementIssue(code: string, message: string, targetId: string, measurementKind: string, opts?: {
121
+ readonly source?: string;
122
+ readonly details?: unknown;
123
+ readonly metadata?: Record<string, unknown>;
124
+ readonly severity?: DataIssue["severity"];
125
+ }): MeasurementIssue;
126
+ declare function measurementOk<T>(targetId: string, measurementKind: string, value: T, opts?: {
127
+ readonly source?: string;
128
+ readonly metadata?: Record<string, unknown>;
129
+ }): MeasurementResult<T>;
130
+ declare function latestMeasurementValue<T>(measurements: Measurements, targetId: string, measurementKind: string): T | undefined;
131
+ declare function tryMeasureHyphenWidth(adapter: MeasurementAdapter, font: string): number | undefined;
132
+ declare function validMeasurementSize(size: Size, label: string): Size;
133
+ declare function textMeasurementFacts(text: string, font: string, adapter: MeasurementAdapter, cache: Map<string, Map<string, number>>, segmentAdapter: SegmentAdapter, targetId: string, source: string): Measurements;
134
+ declare function inputNode<T>(g: Graph, input: T | Node<T> | undefined, fallback: T, name: string): {
135
+ readonly node: Node<T>;
136
+ readonly set: (value: T) => void;
137
+ };
138
+ declare function scopedName(scope: string, local: string): string;
139
+ /** Generic sync text measurement provider that emits graph-visible measurement facts. */
140
+ declare function textMeasurementProvider(opts: TextMeasurementProviderOptions): Node<Measurements>;
141
+ /** Provider helper for caller-injected synchronous text measurement. */
142
+ declare function injectedTextMeasurements(opts: InjectedTextMeasurementsOptions): Node<Measurements>;
143
+ /** Provider helper for deterministic precomputed text metrics. */
144
+ declare function precomputedTextMeasurements(opts: PrecomputedTextMeasurementsOptions): Node<Measurements>;
145
+ /** Provider helper for fixed-cell terminal/snapshot text measurement. */
146
+ declare function cellTextMeasurements(opts: CellTextMeasurementsOptions): Node<Measurements>;
147
+ /** Provider helper for caller-injected platform text capability nodes. */
148
+ declare function capabilityTextMeasurements(opts: CapabilityTextMeasurementsOptions): Node<Measurements>;
149
+ /** Provider helper that makes readiness facts an explicit measurement dependency. */
150
+ declare function readinessTextMeasurements(opts: ReadinessTextMeasurementsOptions): Node<Measurements>;
151
+ /** Provider helper that emits graph-visible readiness facts without measuring layout. */
152
+ declare function readinessMeasurements(opts: ReadinessMeasurementsOptions): Node<Measurements>;
153
+ /** Provider helper for image-size facts from caller-owned synchronous image measurers. */
154
+ declare function imageSizeMeasurements(opts: ImageSizeMeasurementsOptions): Node<Measurements>;
155
+ /** Provider helper for SVG bounds facts from caller-owned synchronous SVG measurers. */
156
+ declare function svgBoundsMeasurements(opts: SvgBoundsMeasurementsOptions): Node<Measurements>;
157
+ /** Merge provider fact nodes into the single measurements node consumed by layout bundles. */
158
+ declare function mergeMeasurements(opts: MergeMeasurementsOptions): Node<Measurements>;
159
+ /** Compose optional block measurement capability nodes into one graph-visible adapter node. */
160
+ declare function blockAdaptersProvider(opts: BlockAdaptersProviderOptions): Node<BlockAdapters>;
161
+ /** Provider helper for block measurement facts over declared block/max-width deps. */
162
+ declare function blockMeasurementProvider(opts: BlockMeasurementProviderOptions): Node<Measurements>;
163
+
164
+ export { rectIntervalForBand as A, svgBoundsMeasurements as B, CapabilityMeasureAdapter as C, textMeasurementProvider as D, blockedIntervalsForBand as E, columnGeometry as F, inputNode as G, latestMeasurementValue as H, ImageSizeAdapter as I, measurementIssue as J, measurementOk as K, sanitizeFlowColumns as L, sanitizeFlowContainer as M, sanitizeObstacles as N, scopedName as O, PrecomputedMeasureAdapter as P, textMeasurementFacts as Q, tryMeasureHyphenWidth as R, SvgBoundsAdapter as S, validMeasurementSize as T, CellMeasureAdapter as a, InjectedMeasureAdapter as b, analyzeAndMeasure as c, blockAdaptersProvider as d, blockMeasurementProvider as e, capabilityTextMeasurements as f, carveTextLineSlots as g, cellTextMeasurements as h, circleIntervalForBand as i, computeBlockFlow as j, computeCharPositions as k, computeFlowLines as l, computeLineBreaks as m, computeTotalHeight as n, imageSizeMeasurements as o, injectedTextMeasurements as p, layoutNextLine as q, measureBlock as r, measureBlocks as s, mergeMeasurements as t, precomputedTextMeasurements as u, reactiveBlockLayout as v, reactiveFlowLayout as w, reactiveLayout as x, readinessMeasurements as y, readinessTextMeasurements as z };
@@ -0,0 +1,164 @@
1
+ import { z as MeasurementAdapter, ac as TextMeasureCapability, f as CellMeasureAdapterOptions, n as ImageMeasurer, o as ImageSizeLookup, a5 as Size, x as MeasureFn, r as InjectedMeasureAdapterOptions, N as PrecomputedMeasureAdapterOptions, a9 as SvgMeasurer, y as MeasuredBlock, P as PositionedBlock, j as ContentBlock, M as MeasureBlockOptions, U as ReactiveBlockLayoutOptions, T as ReactiveBlockLayoutBundle, W as ReactiveFlowLayoutOptions, V as ReactiveFlowLayoutBundle, Y as ReactiveLayoutOptions, X as ReactiveLayoutBundle, h as CircleObstacle, ag as Interval, R as PreparedSegment, i as ComputeFlowLinesOptions, l as FlowLinesResult, $ as RectObstacle, O as Obstacle, k as FlowContainer, F as FlowColumns, a4 as SegmentMeasureStats, a1 as SegmentAdapter, w as LineBreaksResult, af as CharPosition, L as LayoutCursor, u as LayoutNextLineContext, v as LayoutNextLineResult, c as BlockAdaptersProviderOptions, b as BlockAdapters, d as BlockMeasurementProviderOptions, H as Measurements, C as CapabilityTextMeasurementsOptions, g as CellTextMeasurementsOptions, q as ImageSizeMeasurementsOptions, s as InjectedTextMeasurementsOptions, J as MergeMeasurementsOptions, Q as PrecomputedTextMeasurementsOptions, Z as ReadinessMeasurementsOptions, _ as ReadinessTextMeasurementsOptions, a7 as SvgBoundsMeasurementsOptions, ad as TextMeasurementProviderOptions, D as MeasurementIssue, G as MeasurementResult } from './types-BaPpZItj.js';
2
+ import { DataIssue } from './data/index.js';
3
+ import { d as Graph } from './graph-ho5sotHP.js';
4
+ import { N as Node } from './types-C9NOgNJw.js';
5
+
6
+ /** Adapter that wraps a caller-owned synchronous measurement function. */
7
+ declare class InjectedMeasureAdapter implements MeasurementAdapter {
8
+ private readonly measure;
9
+ private readonly shouldCache;
10
+ private readonly cache;
11
+ constructor(measure: MeasureFn, opts?: InjectedMeasureAdapterOptions);
12
+ measureSegment(text: string, font: string): {
13
+ readonly width: number;
14
+ };
15
+ clearCache(): void;
16
+ }
17
+ /** Deterministic adapter backed by caller-supplied width metrics. */
18
+ declare class PrecomputedMeasureAdapter implements MeasurementAdapter {
19
+ private readonly metrics;
20
+ private readonly fallback;
21
+ private readonly cellWidth;
22
+ constructor(opts: PrecomputedMeasureAdapterOptions);
23
+ measureSegment(text: string, font: string): {
24
+ readonly width: number;
25
+ };
26
+ }
27
+ /** Fixed-cell adapter for CLI, snapshots, and tests. */
28
+ declare class CellMeasureAdapter implements MeasurementAdapter {
29
+ private readonly cellWidth;
30
+ private readonly wideCellWidth;
31
+ private readonly tabCells;
32
+ constructor(opts?: CellMeasureAdapterOptions);
33
+ measureSegment(text: string): {
34
+ readonly width: number;
35
+ };
36
+ }
37
+ /** Adapter over a caller-owned platform capability such as NodeCanvas, Skia, or RN text APIs. */
38
+ declare class CapabilityMeasureAdapter implements MeasurementAdapter {
39
+ private readonly capability;
40
+ constructor(capability: TextMeasureCapability);
41
+ measureSegment(text: string, font: string): {
42
+ readonly width: number;
43
+ };
44
+ clearCache(): void;
45
+ }
46
+ /**
47
+ * Minimal string-based SVG bounds reader for explicit width/height or viewBox.
48
+ *
49
+ * This is not a DOM SVG parser and does not resolve external resources.
50
+ */
51
+ declare class SvgBoundsAdapter implements SvgMeasurer {
52
+ measureSvg(svg: string): Size;
53
+ }
54
+ /** Image measurer backed by explicit caller-provided dimensions; it never loads images. */
55
+ declare class ImageSizeAdapter implements ImageMeasurer {
56
+ private readonly sizes;
57
+ constructor(sizes: ImageSizeLookup | Record<string, Size>);
58
+ measureImage(src: string): Size;
59
+ }
60
+
61
+ /** Measure one text/image/SVG block using only explicit or injected synchronous adapters. */
62
+ declare function measureBlock(block: ContentBlock, opts: MeasureBlockOptions): MeasuredBlock;
63
+ /** Measure a block list while sharing a measurement cache across text blocks. */
64
+ declare function measureBlocks(blocks: readonly ContentBlock[], opts: MeasureBlockOptions): readonly MeasuredBlock[];
65
+ /** Stack measured blocks vertically with margins and a fixed gap. */
66
+ declare function computeBlockFlow(blocks: readonly MeasuredBlock[], gap?: number): readonly PositionedBlock[];
67
+ /** Compute the bottom edge of a positioned block flow. */
68
+ declare function computeTotalHeight(blocks: readonly PositionedBlock[]): number;
69
+
70
+ /**
71
+ * Create a graph-visible single-column text layout bundle.
72
+ *
73
+ * D181: this adds ordinary state/output nodes only; it does not add protocol behavior,
74
+ * hidden subscriptions, GraphSpec ownership, storage, or platform globals.
75
+ */
76
+ declare function reactiveLayout(opts: ReactiveLayoutOptions): ReactiveLayoutBundle;
77
+ /**
78
+ * Create a graph-visible vertical block layout bundle over the same DOM-free core.
79
+ *
80
+ * Image/SVG sizing is explicit or injected; no async image loading or DOM SVG parsing occurs.
81
+ */
82
+ declare function reactiveBlockLayout(opts: ReactiveBlockLayoutOptions): ReactiveBlockLayoutBundle;
83
+ /** Create a graph-visible multi-column flow layout bundle with rectangle/circle obstacles. */
84
+ declare function reactiveFlowLayout(opts: ReactiveFlowLayoutOptions): ReactiveFlowLayoutBundle;
85
+
86
+ declare function columnGeometry(container: FlowContainer, columns: FlowColumns | undefined): {
87
+ readonly paddingX: number;
88
+ readonly paddingY: number;
89
+ readonly count: number;
90
+ readonly gap: number;
91
+ readonly width: number;
92
+ readonly height: number;
93
+ readonly columnWidth: number;
94
+ };
95
+ declare function sanitizeFlowContainer(container: FlowContainer): FlowContainer;
96
+ declare function sanitizeFlowColumns(columns: FlowColumns): FlowColumns;
97
+ declare function sanitizeObstacles(obstacles: readonly Obstacle[]): readonly Obstacle[];
98
+ /** Intersect a circle obstacle with a horizontal line band. */
99
+ declare function circleIntervalForBand(obstacle: CircleObstacle, bandTop: number, bandBottom: number): Interval | null;
100
+ /** Intersect a rectangle obstacle with a horizontal line band. */
101
+ declare function rectIntervalForBand(obstacle: RectObstacle, bandTop: number, bandBottom: number): Interval | null;
102
+ declare function blockedIntervalsForBand(obstacles: readonly Obstacle[], bandTop: number, bandBottom: number): Interval[];
103
+ /** Flow prepared text through columns and carved obstacle slots. */
104
+ declare function computeFlowLines(segments: readonly PreparedSegment[], opts: ComputeFlowLinesOptions): FlowLinesResult;
105
+
106
+ /** Segment text and measure every resulting segment with a caller-owned synchronous adapter. */
107
+ declare function analyzeAndMeasure(text: string, font: string, adapter: MeasurementAdapter, cache: Map<string, Map<string, number>>, stats?: SegmentMeasureStats, segmentAdapter?: SegmentAdapter): PreparedSegment[];
108
+ /** Greedy single-column line breaking over prepared segments. */
109
+ declare function computeLineBreaks(segments: readonly PreparedSegment[], maxWidth: number, opts?: {
110
+ readonly hyphenWidth?: number;
111
+ readonly segmentAdapter?: SegmentAdapter;
112
+ }): LineBreaksResult;
113
+ /** Lay out one line from a cursor, returning the next cursor for continuation. */
114
+ declare function layoutNextLine(segments: readonly PreparedSegment[], cursor: LayoutCursor, slotWidth: number, ctx?: LayoutNextLineContext): LayoutNextLineResult | null;
115
+ /** Subtract obstacle intervals from a horizontal text band. */
116
+ declare function carveTextLineSlots(base: Interval, blocked: readonly Interval[], minSlotWidth?: number): Interval[];
117
+ /** Compute per-grapheme boxes for already-broken lines. */
118
+ declare function computeCharPositions(lineBreaks: LineBreaksResult, segments: readonly PreparedSegment[], lineHeight: number, segmentAdapter?: SegmentAdapter): readonly CharPosition[];
119
+
120
+ declare function measurementIssue(code: string, message: string, targetId: string, measurementKind: string, opts?: {
121
+ readonly source?: string;
122
+ readonly details?: unknown;
123
+ readonly metadata?: Record<string, unknown>;
124
+ readonly severity?: DataIssue["severity"];
125
+ }): MeasurementIssue;
126
+ declare function measurementOk<T>(targetId: string, measurementKind: string, value: T, opts?: {
127
+ readonly source?: string;
128
+ readonly metadata?: Record<string, unknown>;
129
+ }): MeasurementResult<T>;
130
+ declare function latestMeasurementValue<T>(measurements: Measurements, targetId: string, measurementKind: string): T | undefined;
131
+ declare function tryMeasureHyphenWidth(adapter: MeasurementAdapter, font: string): number | undefined;
132
+ declare function validMeasurementSize(size: Size, label: string): Size;
133
+ declare function textMeasurementFacts(text: string, font: string, adapter: MeasurementAdapter, cache: Map<string, Map<string, number>>, segmentAdapter: SegmentAdapter, targetId: string, source: string): Measurements;
134
+ declare function inputNode<T>(g: Graph, input: T | Node<T> | undefined, fallback: T, name: string): {
135
+ readonly node: Node<T>;
136
+ readonly set: (value: T) => void;
137
+ };
138
+ declare function scopedName(scope: string, local: string): string;
139
+ /** Generic sync text measurement provider that emits graph-visible measurement facts. */
140
+ declare function textMeasurementProvider(opts: TextMeasurementProviderOptions): Node<Measurements>;
141
+ /** Provider helper for caller-injected synchronous text measurement. */
142
+ declare function injectedTextMeasurements(opts: InjectedTextMeasurementsOptions): Node<Measurements>;
143
+ /** Provider helper for deterministic precomputed text metrics. */
144
+ declare function precomputedTextMeasurements(opts: PrecomputedTextMeasurementsOptions): Node<Measurements>;
145
+ /** Provider helper for fixed-cell terminal/snapshot text measurement. */
146
+ declare function cellTextMeasurements(opts: CellTextMeasurementsOptions): Node<Measurements>;
147
+ /** Provider helper for caller-injected platform text capability nodes. */
148
+ declare function capabilityTextMeasurements(opts: CapabilityTextMeasurementsOptions): Node<Measurements>;
149
+ /** Provider helper that makes readiness facts an explicit measurement dependency. */
150
+ declare function readinessTextMeasurements(opts: ReadinessTextMeasurementsOptions): Node<Measurements>;
151
+ /** Provider helper that emits graph-visible readiness facts without measuring layout. */
152
+ declare function readinessMeasurements(opts: ReadinessMeasurementsOptions): Node<Measurements>;
153
+ /** Provider helper for image-size facts from caller-owned synchronous image measurers. */
154
+ declare function imageSizeMeasurements(opts: ImageSizeMeasurementsOptions): Node<Measurements>;
155
+ /** Provider helper for SVG bounds facts from caller-owned synchronous SVG measurers. */
156
+ declare function svgBoundsMeasurements(opts: SvgBoundsMeasurementsOptions): Node<Measurements>;
157
+ /** Merge provider fact nodes into the single measurements node consumed by layout bundles. */
158
+ declare function mergeMeasurements(opts: MergeMeasurementsOptions): Node<Measurements>;
159
+ /** Compose optional block measurement capability nodes into one graph-visible adapter node. */
160
+ declare function blockAdaptersProvider(opts: BlockAdaptersProviderOptions): Node<BlockAdapters>;
161
+ /** Provider helper for block measurement facts over declared block/max-width deps. */
162
+ declare function blockMeasurementProvider(opts: BlockMeasurementProviderOptions): Node<Measurements>;
163
+
164
+ export { rectIntervalForBand as A, svgBoundsMeasurements as B, CapabilityMeasureAdapter as C, textMeasurementProvider as D, blockedIntervalsForBand as E, columnGeometry as F, inputNode as G, latestMeasurementValue as H, ImageSizeAdapter as I, measurementIssue as J, measurementOk as K, sanitizeFlowColumns as L, sanitizeFlowContainer as M, sanitizeObstacles as N, scopedName as O, PrecomputedMeasureAdapter as P, textMeasurementFacts as Q, tryMeasureHyphenWidth as R, SvgBoundsAdapter as S, validMeasurementSize as T, CellMeasureAdapter as a, InjectedMeasureAdapter as b, analyzeAndMeasure as c, blockAdaptersProvider as d, blockMeasurementProvider as e, capabilityTextMeasurements as f, carveTextLineSlots as g, cellTextMeasurements as h, circleIntervalForBand as i, computeBlockFlow as j, computeCharPositions as k, computeFlowLines as l, computeLineBreaks as m, computeTotalHeight as n, imageSizeMeasurements as o, injectedTextMeasurements as p, layoutNextLine as q, measureBlock as r, measureBlocks as s, mergeMeasurements as t, precomputedTextMeasurements as u, reactiveBlockLayout as v, reactiveFlowLayout as w, reactiveLayout as x, readinessMeasurements as y, readinessTextMeasurements as z };
@@ -77,7 +77,59 @@ function attachMessageBusCommandSource(graph, bus, commands) {
77
77
  };
78
78
  }
79
79
 
80
- // src/messaging/index.ts
80
+ // src/messaging/utils.ts
81
+ function pullParams(pull) {
82
+ return isObjectRecord(pull?.params) ? pull.params : {};
83
+ }
84
+ function publishCommand(commandNode, command) {
85
+ commandNode.down([["DATA", command]]);
86
+ return command;
87
+ }
88
+ function makeTopicState() {
89
+ return { closed: false, headSeq: 1, nextSeq: 1, messages: [] };
90
+ }
91
+ function uniqueTopics(topics) {
92
+ const unique = [...new Set(topics)];
93
+ if (unique.length !== topics.length) throw new Error("messageBus: duplicate topic");
94
+ for (const topic of unique) assertTopicKey(topic, "messageBus");
95
+ return Object.freeze(unique.sort());
96
+ }
97
+ function assertTopicKey(topic, owner) {
98
+ const error = validateTopicKey(topic, owner);
99
+ if (error !== void 0) throw new Error(error);
100
+ }
101
+ function validateTopicKey(topic, owner) {
102
+ if (typeof topic !== "string" || topic.length === 0)
103
+ return `${owner}: topic must be a non-empty string`;
104
+ return void 0;
105
+ }
106
+ function assertNonEmpty(value, owner) {
107
+ if (typeof value !== "string" || value.length === 0)
108
+ throw new Error(`${owner}: must be a non-empty string`);
109
+ }
110
+ function positiveLimit(limit) {
111
+ if (limit === void 0) return 100;
112
+ if (!Number.isInteger(limit) || limit < 1)
113
+ throw new Error("messageBus: limit must be a positive integer");
114
+ return limit;
115
+ }
116
+ function isPositiveSeq(value) {
117
+ return Number.isInteger(value) && value >= 1;
118
+ }
119
+ function isObjectRecord(value) {
120
+ return typeof value === "object" && value !== null && !Array.isArray(value);
121
+ }
122
+ function commandTopic(command) {
123
+ return isObjectRecord(command) && typeof command.topic === "string" ? command.topic : void 0;
124
+ }
125
+ function commandIdOf(command) {
126
+ return isObjectRecord(command) && typeof command.commandId === "string" ? command.commandId : void 0;
127
+ }
128
+ function idempotencyKey(topic, key) {
129
+ return `${topic}\0${key}`;
130
+ }
131
+
132
+ // src/messaging/event-message.ts
81
133
  function eventMessage(type, payload, opts) {
82
134
  assertNonEmpty(type, "eventMessage.type");
83
135
  assertNonEmpty(opts.id, "eventMessage.id");
@@ -123,6 +175,8 @@ function eventIssue(message) {
123
175
  source: "messageBus.eventMessage"
124
176
  };
125
177
  }
178
+
179
+ // src/messaging/types.ts
126
180
  var PROMPTS_TOPIC = "prompts";
127
181
  var RESPONSES_TOPIC = "responses";
128
182
  var INJECTIONS_TOPIC = "injections";
@@ -139,6 +193,8 @@ var STANDARD_TOPICS = Object.freeze([
139
193
  CONTEXT_TOPIC,
140
194
  TODOS_TOPIC
141
195
  ]);
196
+
197
+ // src/messaging/index.ts
142
198
  function messageBus(graph, opts = {}) {
143
199
  const name = opts.name ?? "messageBus";
144
200
  const initialTopics = uniqueTopics(opts.topics ?? []);
@@ -879,56 +935,6 @@ function ensureSubscription(state, opts) {
879
935
  function getSubscription(state, topic, subscriptionId) {
880
936
  return state.subscriptions.get(`${topic}\0${subscriptionId}`);
881
937
  }
882
- function pullParams(pull) {
883
- return isObjectRecord(pull?.params) ? pull.params : {};
884
- }
885
- function publishCommand(commandNode, command) {
886
- commandNode.down([["DATA", command]]);
887
- return command;
888
- }
889
- function makeTopicState() {
890
- return { closed: false, headSeq: 1, nextSeq: 1, messages: [] };
891
- }
892
- function uniqueTopics(topics) {
893
- const unique = [...new Set(topics)];
894
- if (unique.length !== topics.length) throw new Error("messageBus: duplicate topic");
895
- for (const topic of unique) assertTopicKey(topic, "messageBus");
896
- return Object.freeze(unique.sort());
897
- }
898
- function assertTopicKey(topic, owner) {
899
- const error = validateTopicKey(topic, owner);
900
- if (error !== void 0) throw new Error(error);
901
- }
902
- function validateTopicKey(topic, owner) {
903
- if (typeof topic !== "string" || topic.length === 0)
904
- return `${owner}: topic must be a non-empty string`;
905
- return void 0;
906
- }
907
- function assertNonEmpty(value, owner) {
908
- if (typeof value !== "string" || value.length === 0)
909
- throw new Error(`${owner}: must be a non-empty string`);
910
- }
911
- function positiveLimit(limit) {
912
- if (limit === void 0) return 100;
913
- if (!Number.isInteger(limit) || limit < 1)
914
- throw new Error("messageBus: limit must be a positive integer");
915
- return limit;
916
- }
917
- function isPositiveSeq(value) {
918
- return Number.isInteger(value) && value >= 1;
919
- }
920
- function isObjectRecord(value) {
921
- return typeof value === "object" && value !== null && !Array.isArray(value);
922
- }
923
- function commandTopic(command) {
924
- return isObjectRecord(command) && typeof command.topic === "string" ? command.topic : void 0;
925
- }
926
- function commandIdOf(command) {
927
- return isObjectRecord(command) && typeof command.commandId === "string" ? command.commandId : void 0;
928
- }
929
- function idempotencyKey(topic, key) {
930
- return `${topic}\0${key}`;
931
- }
932
938
  // Annotate the CommonJS export names for ESM import in node:
933
939
  0 && (module.exports = {
934
940
  CONTEXT_TOPIC,