@logixjs/core 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/dist/Action-BkRHy2vg.d.cts +10 -0
  2. package/dist/Action-mqVvtEHt.d.ts +10 -0
  3. package/dist/Action.cjs +57 -0
  4. package/dist/Action.cjs.map +1 -0
  5. package/dist/Action.d.cts +2 -0
  6. package/dist/Action.d.ts +2 -0
  7. package/dist/Action.js +9 -0
  8. package/dist/Action.js.map +1 -0
  9. package/dist/Actions-AsQ07yTP.d.cts +22 -0
  10. package/dist/Actions-AsQ07yTP.d.ts +22 -0
  11. package/dist/Actions.cjs +19 -0
  12. package/dist/Actions.cjs.map +1 -0
  13. package/dist/Actions.d.cts +2 -0
  14. package/dist/Actions.d.ts +2 -0
  15. package/dist/Actions.js +2 -0
  16. package/dist/Actions.js.map +1 -0
  17. package/dist/Bound-BN1DQ_lM.d.ts +23 -0
  18. package/dist/Bound-BPIfH9SS.d.cts +23 -0
  19. package/dist/Bound.cjs +1532 -0
  20. package/dist/Bound.cjs.map +1 -0
  21. package/dist/Bound.d.cts +7 -0
  22. package/dist/Bound.d.ts +7 -0
  23. package/dist/Bound.js +25 -0
  24. package/dist/Bound.js.map +1 -0
  25. package/dist/Debug-B5q5Bkzx.d.ts +320 -0
  26. package/dist/Debug-Bq8Sqjcr.d.cts +320 -0
  27. package/dist/Debug.cjs +1821 -0
  28. package/dist/Debug.cjs.map +1 -0
  29. package/dist/Debug.d.cts +13 -0
  30. package/dist/Debug.d.ts +13 -0
  31. package/dist/Debug.js +76 -0
  32. package/dist/Debug.js.map +1 -0
  33. package/dist/EffectOp.cjs +169 -0
  34. package/dist/EffectOp.cjs.map +1 -0
  35. package/dist/EffectOp.d.cts +118 -0
  36. package/dist/EffectOp.d.ts +118 -0
  37. package/dist/EffectOp.js +28 -0
  38. package/dist/EffectOp.js.map +1 -0
  39. package/dist/Env-DuJ6JrU2.d.cts +10 -0
  40. package/dist/Env-DuJ6JrU2.d.ts +10 -0
  41. package/dist/Env.cjs +60 -0
  42. package/dist/Env.cjs.map +1 -0
  43. package/dist/Env.d.cts +1 -0
  44. package/dist/Env.d.ts +1 -0
  45. package/dist/Env.js +11 -0
  46. package/dist/Env.js.map +1 -0
  47. package/dist/Flow-1fZT8MpX.d.cts +152 -0
  48. package/dist/Flow-BhpjE22E.d.ts +152 -0
  49. package/dist/Flow.cjs +504 -0
  50. package/dist/Flow.cjs.map +1 -0
  51. package/dist/Flow.d.cts +8 -0
  52. package/dist/Flow.d.ts +8 -0
  53. package/dist/Flow.js +15 -0
  54. package/dist/Flow.js.map +1 -0
  55. package/dist/Handle-D8D1zPb_.d.cts +30 -0
  56. package/dist/Handle-D_cLW1Z3.d.ts +30 -0
  57. package/dist/Handle.cjs +42 -0
  58. package/dist/Handle.cjs.map +1 -0
  59. package/dist/Handle.d.cts +7 -0
  60. package/dist/Handle.d.ts +7 -0
  61. package/dist/Handle.js +10 -0
  62. package/dist/Handle.js.map +1 -0
  63. package/dist/Kernel-8kC-jOda.d.cts +171 -0
  64. package/dist/Kernel-CnGE1Fyk.d.ts +171 -0
  65. package/dist/Kernel.cjs +284 -0
  66. package/dist/Kernel.cjs.map +1 -0
  67. package/dist/Kernel.d.cts +14 -0
  68. package/dist/Kernel.d.ts +14 -0
  69. package/dist/Kernel.js +36 -0
  70. package/dist/Kernel.js.map +1 -0
  71. package/dist/Link-Db7975nU.d.ts +45 -0
  72. package/dist/Link-fX8x1eCK.d.cts +45 -0
  73. package/dist/Link.cjs +542 -0
  74. package/dist/Link.cjs.map +1 -0
  75. package/dist/Link.d.cts +7 -0
  76. package/dist/Link.d.ts +7 -0
  77. package/dist/Link.js +35 -0
  78. package/dist/Link.js.map +1 -0
  79. package/dist/Logic-BRjEMr-W.d.ts +38 -0
  80. package/dist/Logic-DRh4sDZj.d.cts +38 -0
  81. package/dist/Logic.cjs +37 -0
  82. package/dist/Logic.cjs.map +1 -0
  83. package/dist/Logic.d.cts +7 -0
  84. package/dist/Logic.d.ts +7 -0
  85. package/dist/Logic.js +10 -0
  86. package/dist/Logic.js.map +1 -0
  87. package/dist/MatchBuilder-0QOc-nlU.d.ts +14 -0
  88. package/dist/MatchBuilder-CJk5oCkR.d.cts +14 -0
  89. package/dist/MatchBuilder.cjs +85 -0
  90. package/dist/MatchBuilder.cjs.map +1 -0
  91. package/dist/MatchBuilder.d.cts +8 -0
  92. package/dist/MatchBuilder.d.ts +8 -0
  93. package/dist/MatchBuilder.js +11 -0
  94. package/dist/MatchBuilder.js.map +1 -0
  95. package/dist/Middleware.cjs +411 -0
  96. package/dist/Middleware.cjs.map +1 -0
  97. package/dist/Middleware.d.cts +88 -0
  98. package/dist/Middleware.d.ts +88 -0
  99. package/dist/Middleware.js +27 -0
  100. package/dist/Middleware.js.map +1 -0
  101. package/dist/Module-B_0xRDMR.d.cts +203 -0
  102. package/dist/Module-DnzluX2J.d.ts +203 -0
  103. package/dist/Module.cjs +13512 -0
  104. package/dist/Module.cjs.map +1 -0
  105. package/dist/Module.d.cts +8 -0
  106. package/dist/Module.d.ts +8 -0
  107. package/dist/Module.js +53 -0
  108. package/dist/Module.js.map +1 -0
  109. package/dist/ModuleTag-C8FHY_sY.d.ts +93 -0
  110. package/dist/ModuleTag-EGbgBMpZ.d.cts +93 -0
  111. package/dist/ModuleTag.cjs +12231 -0
  112. package/dist/ModuleTag.cjs.map +1 -0
  113. package/dist/ModuleTag.d.cts +8 -0
  114. package/dist/ModuleTag.d.ts +8 -0
  115. package/dist/ModuleTag.js +39 -0
  116. package/dist/ModuleTag.js.map +1 -0
  117. package/dist/Observability-COqEvp2C.d.cts +713 -0
  118. package/dist/Observability-cY4kLn0S.d.ts +713 -0
  119. package/dist/Observability.cjs +5865 -0
  120. package/dist/Observability.cjs.map +1 -0
  121. package/dist/Observability.d.cts +9 -0
  122. package/dist/Observability.d.ts +9 -0
  123. package/dist/Observability.js +41 -0
  124. package/dist/Observability.js.map +1 -0
  125. package/dist/Platform-C49Pv956.d.cts +21 -0
  126. package/dist/Platform-C49Pv956.d.ts +21 -0
  127. package/dist/Platform-CHX8o-U4.d.ts +51 -0
  128. package/dist/Platform-CVlv0xLQ.d.cts +51 -0
  129. package/dist/Platform.cjs +58 -0
  130. package/dist/Platform.cjs.map +1 -0
  131. package/dist/Platform.d.cts +4 -0
  132. package/dist/Platform.d.ts +4 -0
  133. package/dist/Platform.js +15 -0
  134. package/dist/Platform.js.map +1 -0
  135. package/dist/Process-CM9xbMdP.d.ts +92 -0
  136. package/dist/Process-mL8fHDSB.d.cts +92 -0
  137. package/dist/Process.cjs +575 -0
  138. package/dist/Process.cjs.map +1 -0
  139. package/dist/Process.d.cts +8 -0
  140. package/dist/Process.d.ts +8 -0
  141. package/dist/Process.js +42 -0
  142. package/dist/Process.js.map +1 -0
  143. package/dist/ReadQuery-BlMwhe-F.d.ts +30 -0
  144. package/dist/ReadQuery-CL5XlXts.d.cts +30 -0
  145. package/dist/ReadQuery-SinbStGF.d.cts +38 -0
  146. package/dist/ReadQuery-SinbStGF.d.ts +38 -0
  147. package/dist/ReadQuery.cjs +377 -0
  148. package/dist/ReadQuery.cjs.map +1 -0
  149. package/dist/ReadQuery.d.cts +2 -0
  150. package/dist/ReadQuery.d.ts +2 -0
  151. package/dist/ReadQuery.js +14 -0
  152. package/dist/ReadQuery.js.map +1 -0
  153. package/dist/Reflection-CQnKwPXj.d.ts +182 -0
  154. package/dist/Reflection-Kabo1mlU.d.cts +182 -0
  155. package/dist/Reflection.cjs +2954 -0
  156. package/dist/Reflection.cjs.map +1 -0
  157. package/dist/Reflection.d.cts +17 -0
  158. package/dist/Reflection.d.ts +17 -0
  159. package/dist/Reflection.js +40 -0
  160. package/dist/Reflection.js.map +1 -0
  161. package/dist/Resource-Dy1xD_DG.d.cts +75 -0
  162. package/dist/Resource-Dy1xD_DG.d.ts +75 -0
  163. package/dist/Resource.cjs +166 -0
  164. package/dist/Resource.cjs.map +1 -0
  165. package/dist/Resource.d.cts +3 -0
  166. package/dist/Resource.d.ts +3 -0
  167. package/dist/Resource.js +21 -0
  168. package/dist/Resource.js.map +1 -0
  169. package/dist/Root-7ADUMk4t.d.cts +29 -0
  170. package/dist/Root-7ADUMk4t.d.ts +29 -0
  171. package/dist/Root.cjs +125 -0
  172. package/dist/Root.cjs.map +1 -0
  173. package/dist/Root.d.cts +4 -0
  174. package/dist/Root.d.ts +4 -0
  175. package/dist/Root.js +12 -0
  176. package/dist/Root.js.map +1 -0
  177. package/dist/Runtime-B-aL-f29.d.cts +274 -0
  178. package/dist/Runtime-CtyzZG4i.d.ts +274 -0
  179. package/dist/Runtime.cjs +5740 -0
  180. package/dist/Runtime.cjs.map +1 -0
  181. package/dist/Runtime.d.cts +19 -0
  182. package/dist/Runtime.d.ts +19 -0
  183. package/dist/Runtime.js +62 -0
  184. package/dist/Runtime.js.map +1 -0
  185. package/dist/ScopeRegistry-D1owDNSm.d.cts +61 -0
  186. package/dist/ScopeRegistry-D1owDNSm.d.ts +61 -0
  187. package/dist/ScopeRegistry.cjs +152 -0
  188. package/dist/ScopeRegistry.cjs.map +1 -0
  189. package/dist/ScopeRegistry.d.cts +2 -0
  190. package/dist/ScopeRegistry.d.ts +2 -0
  191. package/dist/ScopeRegistry.js +16 -0
  192. package/dist/ScopeRegistry.js.map +1 -0
  193. package/dist/State-CU50R26M.d.cts +19 -0
  194. package/dist/State-CU50R26M.d.ts +19 -0
  195. package/dist/State.cjs +19 -0
  196. package/dist/State.cjs.map +1 -0
  197. package/dist/State.d.cts +2 -0
  198. package/dist/State.d.ts +2 -0
  199. package/dist/State.js +2 -0
  200. package/dist/State.js.map +1 -0
  201. package/dist/StateTrait-BGsZghTz.d.ts +122 -0
  202. package/dist/StateTrait-OWhbj12c.d.cts +122 -0
  203. package/dist/StateTrait.cjs +2737 -0
  204. package/dist/StateTrait.cjs.map +1 -0
  205. package/dist/StateTrait.d.cts +9 -0
  206. package/dist/StateTrait.d.ts +9 -0
  207. package/dist/StateTrait.js +39 -0
  208. package/dist/StateTrait.js.map +1 -0
  209. package/dist/TraitLifecycle-CwV5WPFX.d.cts +88 -0
  210. package/dist/TraitLifecycle-LdIWmKlg.d.ts +88 -0
  211. package/dist/TraitLifecycle.cjs +581 -0
  212. package/dist/TraitLifecycle.cjs.map +1 -0
  213. package/dist/TraitLifecycle.d.cts +8 -0
  214. package/dist/TraitLifecycle.d.ts +8 -0
  215. package/dist/TraitLifecycle.js +24 -0
  216. package/dist/TraitLifecycle.js.map +1 -0
  217. package/dist/action-DiMDD_0v.d.cts +35 -0
  218. package/dist/action-DiMDD_0v.d.ts +35 -0
  219. package/dist/chunk-24VULZ7A.js +76 -0
  220. package/dist/chunk-24VULZ7A.js.map +1 -0
  221. package/dist/chunk-3IYZ5IGG.js +17 -0
  222. package/dist/chunk-3IYZ5IGG.js.map +1 -0
  223. package/dist/chunk-3QMIVH35.js +43 -0
  224. package/dist/chunk-3QMIVH35.js.map +1 -0
  225. package/dist/chunk-3RMKLXHX.js +83 -0
  226. package/dist/chunk-3RMKLXHX.js.map +1 -0
  227. package/dist/chunk-3TMODYZV.js +111 -0
  228. package/dist/chunk-3TMODYZV.js.map +1 -0
  229. package/dist/chunk-3VG5TWQR.js +27 -0
  230. package/dist/chunk-3VG5TWQR.js.map +1 -0
  231. package/dist/chunk-4CQAV7YB.js +37 -0
  232. package/dist/chunk-4CQAV7YB.js.map +1 -0
  233. package/dist/chunk-4SO6JMZL.js +7 -0
  234. package/dist/chunk-4SO6JMZL.js.map +1 -0
  235. package/dist/chunk-66ALHVEX.js +40 -0
  236. package/dist/chunk-66ALHVEX.js.map +1 -0
  237. package/dist/chunk-76WT3HOR.js +397 -0
  238. package/dist/chunk-76WT3HOR.js.map +1 -0
  239. package/dist/chunk-ANLBCBDC.js +285 -0
  240. package/dist/chunk-ANLBCBDC.js.map +1 -0
  241. package/dist/chunk-AUIR5O6W.js +75 -0
  242. package/dist/chunk-AUIR5O6W.js.map +1 -0
  243. package/dist/chunk-BABLDP24.js +445 -0
  244. package/dist/chunk-BABLDP24.js.map +1 -0
  245. package/dist/chunk-BE3HW4FY.js +1099 -0
  246. package/dist/chunk-BE3HW4FY.js.map +1 -0
  247. package/dist/chunk-BZ2SHDN2.js +54 -0
  248. package/dist/chunk-BZ2SHDN2.js.map +1 -0
  249. package/dist/chunk-CW6T36TN.js +393 -0
  250. package/dist/chunk-CW6T36TN.js.map +1 -0
  251. package/dist/chunk-DFNM3WX2.js +632 -0
  252. package/dist/chunk-DFNM3WX2.js.map +1 -0
  253. package/dist/chunk-DMBALCE2.js +1034 -0
  254. package/dist/chunk-DMBALCE2.js.map +1 -0
  255. package/dist/chunk-EGK3KN7B.js +406 -0
  256. package/dist/chunk-EGK3KN7B.js.map +1 -0
  257. package/dist/chunk-EY4NZKDR.js +19 -0
  258. package/dist/chunk-EY4NZKDR.js.map +1 -0
  259. package/dist/chunk-G5ZBFPNU.js +23 -0
  260. package/dist/chunk-G5ZBFPNU.js.map +1 -0
  261. package/dist/chunk-GMPEOUP2.js +31 -0
  262. package/dist/chunk-GMPEOUP2.js.map +1 -0
  263. package/dist/chunk-IHVBV5C2.js +279 -0
  264. package/dist/chunk-IHVBV5C2.js.map +1 -0
  265. package/dist/chunk-IPF7E66P.js +23 -0
  266. package/dist/chunk-IPF7E66P.js.map +1 -0
  267. package/dist/chunk-JCXGZRMU.js +204 -0
  268. package/dist/chunk-JCXGZRMU.js.map +1 -0
  269. package/dist/chunk-JGIWG6SR.js +6359 -0
  270. package/dist/chunk-JGIWG6SR.js.map +1 -0
  271. package/dist/chunk-JWOYLO27.js +241 -0
  272. package/dist/chunk-JWOYLO27.js.map +1 -0
  273. package/dist/chunk-KIXAU3GM.js +137 -0
  274. package/dist/chunk-KIXAU3GM.js.map +1 -0
  275. package/dist/chunk-KL5ACTCT.js +8 -0
  276. package/dist/chunk-KL5ACTCT.js.map +1 -0
  277. package/dist/chunk-KP7MUZNX.js +83 -0
  278. package/dist/chunk-KP7MUZNX.js.map +1 -0
  279. package/dist/chunk-LEU6UA5J.js +1 -0
  280. package/dist/chunk-LEU6UA5J.js.map +1 -0
  281. package/dist/chunk-M2RGJPXX.js +35 -0
  282. package/dist/chunk-M2RGJPXX.js.map +1 -0
  283. package/dist/chunk-M3BFQ7HK.js +13 -0
  284. package/dist/chunk-M3BFQ7HK.js.map +1 -0
  285. package/dist/chunk-M3WTHJHJ.js +1051 -0
  286. package/dist/chunk-M3WTHJHJ.js.map +1 -0
  287. package/dist/chunk-M7IYCTJV.js +79 -0
  288. package/dist/chunk-M7IYCTJV.js.map +1 -0
  289. package/dist/chunk-NBD3KUOZ.js +838 -0
  290. package/dist/chunk-NBD3KUOZ.js.map +1 -0
  291. package/dist/chunk-NQZ2OSGR.js +151 -0
  292. package/dist/chunk-NQZ2OSGR.js.map +1 -0
  293. package/dist/chunk-NZJKFF45.js +106 -0
  294. package/dist/chunk-NZJKFF45.js.map +1 -0
  295. package/dist/chunk-OFADUJWJ.js +175 -0
  296. package/dist/chunk-OFADUJWJ.js.map +1 -0
  297. package/dist/chunk-OGWBVHB3.js +461 -0
  298. package/dist/chunk-OGWBVHB3.js.map +1 -0
  299. package/dist/chunk-PAYXCY6A.js +1696 -0
  300. package/dist/chunk-PAYXCY6A.js.map +1 -0
  301. package/dist/chunk-PYOE4VSI.js +1924 -0
  302. package/dist/chunk-PYOE4VSI.js.map +1 -0
  303. package/dist/chunk-PZ5AY32C.js +10 -0
  304. package/dist/chunk-PZ5AY32C.js.map +1 -0
  305. package/dist/chunk-QCHIQWAJ.js +21 -0
  306. package/dist/chunk-QCHIQWAJ.js.map +1 -0
  307. package/dist/chunk-QMM6O4CD.js +71 -0
  308. package/dist/chunk-QMM6O4CD.js.map +1 -0
  309. package/dist/chunk-RNFE3ML2.js +22 -0
  310. package/dist/chunk-RNFE3ML2.js.map +1 -0
  311. package/dist/chunk-TAAPQVZN.js +23 -0
  312. package/dist/chunk-TAAPQVZN.js.map +1 -0
  313. package/dist/chunk-THATMZXD.js +21 -0
  314. package/dist/chunk-THATMZXD.js.map +1 -0
  315. package/dist/chunk-TKZ7MEIA.js +27 -0
  316. package/dist/chunk-TKZ7MEIA.js.map +1 -0
  317. package/dist/chunk-TQOBJYDP.js +7 -0
  318. package/dist/chunk-TQOBJYDP.js.map +1 -0
  319. package/dist/chunk-VZB726PE.js +93 -0
  320. package/dist/chunk-VZB726PE.js.map +1 -0
  321. package/dist/chunk-W3TEWHLO.js +568 -0
  322. package/dist/chunk-W3TEWHLO.js.map +1 -0
  323. package/dist/chunk-YS3AZQ2G.js +52 -0
  324. package/dist/chunk-YS3AZQ2G.js.map +1 -0
  325. package/dist/chunk-ZDTRWK5F.js +40 -0
  326. package/dist/chunk-ZDTRWK5F.js.map +1 -0
  327. package/dist/chunk-ZFLHVFUC.js +192 -0
  328. package/dist/chunk-ZFLHVFUC.js.map +1 -0
  329. package/dist/chunk-ZFY7U2FR.js +133 -0
  330. package/dist/chunk-ZFY7U2FR.js.map +1 -0
  331. package/dist/chunk-ZGDVUPTM.js +270 -0
  332. package/dist/chunk-ZGDVUPTM.js.map +1 -0
  333. package/dist/index.cjs +19700 -0
  334. package/dist/index.cjs.map +1 -0
  335. package/dist/index.d.cts +195 -0
  336. package/dist/index.d.ts +195 -0
  337. package/dist/index.js +286 -0
  338. package/dist/index.js.map +1 -0
  339. package/dist/ir-BMP7yxJJ.d.cts +39 -0
  340. package/dist/ir-DUOz6H-5.d.ts +39 -0
  341. package/dist/module-B8CBqIZ_.d.cts +1191 -0
  342. package/dist/module-k7m3txak.d.ts +1191 -0
  343. package/dist/protocol-g_1897M2.d.cts +127 -0
  344. package/dist/protocol-g_1897M2.d.ts +127 -0
  345. package/package.json +162 -0
@@ -0,0 +1,122 @@
1
+ import { Schema, Effect } from 'effect';
2
+ import { a as BoundApi } from './Bound-BN1DQ_lM.js';
3
+ import { a1 as StateTraitProgram$1, a2 as StateTraitGraph$1, a3 as StateTraitPlan$1, a4 as StateTraitSpec$1, a5 as StateTraitEntry$1, a6 as StateTraitNode$1, a7 as StateTraitList$1, a8 as CheckRule$1, a9 as StateFieldPath$1, aa as StateAtPath$1, ab as TraitConvergeScheduling } from './module-k7m3txak.js';
4
+ import { S as StaticIr$1 } from './ir-DUOz6H-5.js';
5
+
6
+ type StateTraitSpec<S> = StateTraitSpec$1<S>;
7
+ type StateTraitEntry<S = unknown, P extends string = string> = StateTraitEntry$1<S, P>;
8
+ type StateTraitProgram<S> = StateTraitProgram$1<S>;
9
+ type StateTraitGraph = StateTraitGraph$1;
10
+ type StateTraitPlan = StateTraitPlan$1;
11
+ type StateTraitNode<Input = unknown, Ctx = unknown> = StateTraitNode$1<Input, Ctx>;
12
+ type StateTraitList<Item = unknown> = StateTraitList$1<Item>;
13
+ type CheckRule<Input = unknown, Ctx = unknown> = CheckRule$1<Input, Ctx>;
14
+ type StateFieldPath<S> = StateFieldPath$1<S>;
15
+ type StateAtPath<S, P> = StateAtPath$1<S, P>;
16
+ declare const $root: "$root";
17
+ type DepsArgs<S extends object, Deps extends ReadonlyArray<StateFieldPath<S>>> = {
18
+ readonly [K in keyof Deps]: StateAtPath<S, Deps[K]>;
19
+ };
20
+ /**
21
+ * StateTrait.from:
22
+ * - Narrows available field paths based on the state Schema, adding type constraints to trait specs.
23
+ * - At runtime this returns the raw spec object; normalization is handled by internal layers.
24
+ */
25
+ declare const from: <S extends object, I>(_schema: Schema.Schema<S, I>) => (spec: StateTraitSpec<S>) => StateTraitSpec<S>;
26
+ declare const node: <Input = unknown, Ctx = unknown>(spec: Omit<StateTraitNode$1<Input, Ctx>, "_tag">) => StateTraitNode$1<Input, Ctx>;
27
+ declare const list: <Item = unknown>(spec: Omit<StateTraitList$1<Item>, "_tag">) => StateTraitList$1<Item>;
28
+ /**
29
+ * StateTrait.computed:
30
+ * - Declares computed semantics for a field.
31
+ * - Uses explicit deps as the single source of truth for dependencies (diagnostics / reverse-closure / incremental sched).
32
+ */
33
+ declare const computed: <S extends object, P extends StateFieldPath<S>, const Deps extends ReadonlyArray<StateFieldPath<S>>>(input: {
34
+ readonly deps: Deps;
35
+ readonly get: (...depsValues: DepsArgs<S, Deps>) => StateAtPath<S, P>;
36
+ readonly equals?: (prev: StateAtPath<S, P>, next: StateAtPath<S, P>) => boolean;
37
+ /**
38
+ * 043: explicit converge time-slicing scheduling.
39
+ * - unset: immediate (default behavior unchanged)
40
+ * - deferred: can be postponed and merged into later windows (requires runtime time-slicing enabled)
41
+ */
42
+ readonly scheduling?: TraitConvergeScheduling;
43
+ }) => StateTraitEntry<S, P>;
44
+ /**
45
+ * StateTrait.source:
46
+ * - Declares an external resource source for a field (Resource / Query integration is implemented in later phases).
47
+ * - The kernel owns keyHash gating / concurrency / ReplayMode behavior.
48
+ */
49
+ declare const source: <S extends object, P extends StateFieldPath<S>, const Deps extends ReadonlyArray<StateFieldPath<S>>>(input: {
50
+ readonly resource: string;
51
+ readonly deps: Deps;
52
+ readonly key: (...depsValues: DepsArgs<S, Deps>) => unknown;
53
+ readonly triggers?: ReadonlyArray<"onMount" | "onKeyChange" | "manual">;
54
+ readonly debounceMs?: number;
55
+ readonly concurrency?: "switch" | "exhaust-trailing";
56
+ /**
57
+ * Serializable metadata for Devtools/docs (whitelisted fields are extracted during build).
58
+ */
59
+ readonly meta?: Record<string, unknown>;
60
+ }) => StateTraitEntry<S, P>;
61
+ /**
62
+ * StateTrait.link:
63
+ * - Declares a linkage from another field into the target field.
64
+ * - `meta.from` is also constrained by `StateFieldPath<S>`.
65
+ */
66
+ declare const link: <S extends object, P extends StateFieldPath<S>>(meta: {
67
+ from: StateFieldPath<S>;
68
+ /**
69
+ * 043: explicit converge time-slicing scheduling.
70
+ * - unset: immediate (default behavior unchanged)
71
+ * - deferred: can be postponed and merged into later windows (requires runtime time-slicing enabled)
72
+ */
73
+ scheduling?: TraitConvergeScheduling;
74
+ }) => StateTraitEntry<S, P>;
75
+ /**
76
+ * StateTrait.build:
77
+ * - Normalizes the spec into an executable Program (including Graph/Plan).
78
+ * - When DSL and build constraints differ, build is the final authority (e.g. requiring explicit deps).
79
+ */
80
+ declare const build: <S extends object>(stateSchema: Schema.Schema<S, any>, spec: StateTraitSpec<S>) => StateTraitProgram<S>;
81
+ /**
82
+ * StateTrait.install:
83
+ * - Installs Program-defined behavior (computed/link/source/check, etc.) on top of a Bound API.
84
+ * - Each PlanStep corresponds to a long-lived Effect mounted into the runtime Scope.
85
+ */
86
+ declare const install: <S extends object>(bound: BoundApi<any, any>, program: StateTraitProgram<S>) => Effect.Effect<void, never, any>;
87
+ /**
88
+ * StateTrait.exportStaticIr:
89
+ * - Exports minimal Static IR (aligned with 009 canonical FieldPath constraints) for Devtools / Alignment Lab.
90
+ * - The return value must be JSON-stringifiable (evidence packages / replay pipeline).
91
+ */
92
+ type StaticIr = StaticIr$1;
93
+ declare const exportStaticIr: (program: StateTraitProgram<any>, moduleId: string, options?: {
94
+ readonly version?: string;
95
+ }) => StaticIr;
96
+
97
+ declare const StateTrait_$root: typeof $root;
98
+ type StateTrait_CheckRule<Input = unknown, Ctx = unknown> = CheckRule<Input, Ctx>;
99
+ type StateTrait_StateAtPath<S, P> = StateAtPath<S, P>;
100
+ type StateTrait_StateFieldPath<S> = StateFieldPath<S>;
101
+ type StateTrait_StateTraitEntry<S = unknown, P extends string = string> = StateTraitEntry<S, P>;
102
+ type StateTrait_StateTraitGraph = StateTraitGraph;
103
+ type StateTrait_StateTraitList<Item = unknown> = StateTraitList<Item>;
104
+ type StateTrait_StateTraitNode<Input = unknown, Ctx = unknown> = StateTraitNode<Input, Ctx>;
105
+ type StateTrait_StateTraitPlan = StateTraitPlan;
106
+ type StateTrait_StateTraitProgram<S> = StateTraitProgram<S>;
107
+ type StateTrait_StateTraitSpec<S> = StateTraitSpec<S>;
108
+ type StateTrait_StaticIr = StaticIr;
109
+ declare const StateTrait_build: typeof build;
110
+ declare const StateTrait_computed: typeof computed;
111
+ declare const StateTrait_exportStaticIr: typeof exportStaticIr;
112
+ declare const StateTrait_from: typeof from;
113
+ declare const StateTrait_install: typeof install;
114
+ declare const StateTrait_link: typeof link;
115
+ declare const StateTrait_list: typeof list;
116
+ declare const StateTrait_node: typeof node;
117
+ declare const StateTrait_source: typeof source;
118
+ declare namespace StateTrait {
119
+ export { StateTrait_$root as $root, type StateTrait_CheckRule as CheckRule, type StateTrait_StateAtPath as StateAtPath, type StateTrait_StateFieldPath as StateFieldPath, type StateTrait_StateTraitEntry as StateTraitEntry, type StateTrait_StateTraitGraph as StateTraitGraph, type StateTrait_StateTraitList as StateTraitList, type StateTrait_StateTraitNode as StateTraitNode, type StateTrait_StateTraitPlan as StateTraitPlan, type StateTrait_StateTraitProgram as StateTraitProgram, type StateTrait_StateTraitSpec as StateTraitSpec, type StateTrait_StaticIr as StaticIr, StateTrait_build as build, StateTrait_computed as computed, StateTrait_exportStaticIr as exportStaticIr, StateTrait_from as from, StateTrait_install as install, StateTrait_link as link, StateTrait_list as list, StateTrait_node as node, StateTrait_source as source };
120
+ }
121
+
122
+ export { $root as $, type CheckRule as C, StateTrait as S, type StateTraitProgram as a, type StateTraitGraph as b, type StateTraitPlan as c, type StateTraitSpec as d, type StateTraitEntry as e, type StateTraitNode as f, type StateTraitList as g, type StateFieldPath as h, type StateAtPath as i, from as j, computed as k, list as l, link as m, node as n, build as o, install as p, type StaticIr as q, exportStaticIr as r, source as s };
@@ -0,0 +1,122 @@
1
+ import { Schema, Effect } from 'effect';
2
+ import { a as BoundApi } from './Bound-BPIfH9SS.cjs';
3
+ import { a1 as StateTraitProgram$1, a2 as StateTraitGraph$1, a3 as StateTraitPlan$1, a4 as StateTraitSpec$1, a5 as StateTraitEntry$1, a6 as StateTraitNode$1, a7 as StateTraitList$1, a8 as CheckRule$1, a9 as StateFieldPath$1, aa as StateAtPath$1, ab as TraitConvergeScheduling } from './module-B8CBqIZ_.cjs';
4
+ import { S as StaticIr$1 } from './ir-BMP7yxJJ.cjs';
5
+
6
+ type StateTraitSpec<S> = StateTraitSpec$1<S>;
7
+ type StateTraitEntry<S = unknown, P extends string = string> = StateTraitEntry$1<S, P>;
8
+ type StateTraitProgram<S> = StateTraitProgram$1<S>;
9
+ type StateTraitGraph = StateTraitGraph$1;
10
+ type StateTraitPlan = StateTraitPlan$1;
11
+ type StateTraitNode<Input = unknown, Ctx = unknown> = StateTraitNode$1<Input, Ctx>;
12
+ type StateTraitList<Item = unknown> = StateTraitList$1<Item>;
13
+ type CheckRule<Input = unknown, Ctx = unknown> = CheckRule$1<Input, Ctx>;
14
+ type StateFieldPath<S> = StateFieldPath$1<S>;
15
+ type StateAtPath<S, P> = StateAtPath$1<S, P>;
16
+ declare const $root: "$root";
17
+ type DepsArgs<S extends object, Deps extends ReadonlyArray<StateFieldPath<S>>> = {
18
+ readonly [K in keyof Deps]: StateAtPath<S, Deps[K]>;
19
+ };
20
+ /**
21
+ * StateTrait.from:
22
+ * - Narrows available field paths based on the state Schema, adding type constraints to trait specs.
23
+ * - At runtime this returns the raw spec object; normalization is handled by internal layers.
24
+ */
25
+ declare const from: <S extends object, I>(_schema: Schema.Schema<S, I>) => (spec: StateTraitSpec<S>) => StateTraitSpec<S>;
26
+ declare const node: <Input = unknown, Ctx = unknown>(spec: Omit<StateTraitNode$1<Input, Ctx>, "_tag">) => StateTraitNode$1<Input, Ctx>;
27
+ declare const list: <Item = unknown>(spec: Omit<StateTraitList$1<Item>, "_tag">) => StateTraitList$1<Item>;
28
+ /**
29
+ * StateTrait.computed:
30
+ * - Declares computed semantics for a field.
31
+ * - Uses explicit deps as the single source of truth for dependencies (diagnostics / reverse-closure / incremental sched).
32
+ */
33
+ declare const computed: <S extends object, P extends StateFieldPath<S>, const Deps extends ReadonlyArray<StateFieldPath<S>>>(input: {
34
+ readonly deps: Deps;
35
+ readonly get: (...depsValues: DepsArgs<S, Deps>) => StateAtPath<S, P>;
36
+ readonly equals?: (prev: StateAtPath<S, P>, next: StateAtPath<S, P>) => boolean;
37
+ /**
38
+ * 043: explicit converge time-slicing scheduling.
39
+ * - unset: immediate (default behavior unchanged)
40
+ * - deferred: can be postponed and merged into later windows (requires runtime time-slicing enabled)
41
+ */
42
+ readonly scheduling?: TraitConvergeScheduling;
43
+ }) => StateTraitEntry<S, P>;
44
+ /**
45
+ * StateTrait.source:
46
+ * - Declares an external resource source for a field (Resource / Query integration is implemented in later phases).
47
+ * - The kernel owns keyHash gating / concurrency / ReplayMode behavior.
48
+ */
49
+ declare const source: <S extends object, P extends StateFieldPath<S>, const Deps extends ReadonlyArray<StateFieldPath<S>>>(input: {
50
+ readonly resource: string;
51
+ readonly deps: Deps;
52
+ readonly key: (...depsValues: DepsArgs<S, Deps>) => unknown;
53
+ readonly triggers?: ReadonlyArray<"onMount" | "onKeyChange" | "manual">;
54
+ readonly debounceMs?: number;
55
+ readonly concurrency?: "switch" | "exhaust-trailing";
56
+ /**
57
+ * Serializable metadata for Devtools/docs (whitelisted fields are extracted during build).
58
+ */
59
+ readonly meta?: Record<string, unknown>;
60
+ }) => StateTraitEntry<S, P>;
61
+ /**
62
+ * StateTrait.link:
63
+ * - Declares a linkage from another field into the target field.
64
+ * - `meta.from` is also constrained by `StateFieldPath<S>`.
65
+ */
66
+ declare const link: <S extends object, P extends StateFieldPath<S>>(meta: {
67
+ from: StateFieldPath<S>;
68
+ /**
69
+ * 043: explicit converge time-slicing scheduling.
70
+ * - unset: immediate (default behavior unchanged)
71
+ * - deferred: can be postponed and merged into later windows (requires runtime time-slicing enabled)
72
+ */
73
+ scheduling?: TraitConvergeScheduling;
74
+ }) => StateTraitEntry<S, P>;
75
+ /**
76
+ * StateTrait.build:
77
+ * - Normalizes the spec into an executable Program (including Graph/Plan).
78
+ * - When DSL and build constraints differ, build is the final authority (e.g. requiring explicit deps).
79
+ */
80
+ declare const build: <S extends object>(stateSchema: Schema.Schema<S, any>, spec: StateTraitSpec<S>) => StateTraitProgram<S>;
81
+ /**
82
+ * StateTrait.install:
83
+ * - Installs Program-defined behavior (computed/link/source/check, etc.) on top of a Bound API.
84
+ * - Each PlanStep corresponds to a long-lived Effect mounted into the runtime Scope.
85
+ */
86
+ declare const install: <S extends object>(bound: BoundApi<any, any>, program: StateTraitProgram<S>) => Effect.Effect<void, never, any>;
87
+ /**
88
+ * StateTrait.exportStaticIr:
89
+ * - Exports minimal Static IR (aligned with 009 canonical FieldPath constraints) for Devtools / Alignment Lab.
90
+ * - The return value must be JSON-stringifiable (evidence packages / replay pipeline).
91
+ */
92
+ type StaticIr = StaticIr$1;
93
+ declare const exportStaticIr: (program: StateTraitProgram<any>, moduleId: string, options?: {
94
+ readonly version?: string;
95
+ }) => StaticIr;
96
+
97
+ declare const StateTrait_$root: typeof $root;
98
+ type StateTrait_CheckRule<Input = unknown, Ctx = unknown> = CheckRule<Input, Ctx>;
99
+ type StateTrait_StateAtPath<S, P> = StateAtPath<S, P>;
100
+ type StateTrait_StateFieldPath<S> = StateFieldPath<S>;
101
+ type StateTrait_StateTraitEntry<S = unknown, P extends string = string> = StateTraitEntry<S, P>;
102
+ type StateTrait_StateTraitGraph = StateTraitGraph;
103
+ type StateTrait_StateTraitList<Item = unknown> = StateTraitList<Item>;
104
+ type StateTrait_StateTraitNode<Input = unknown, Ctx = unknown> = StateTraitNode<Input, Ctx>;
105
+ type StateTrait_StateTraitPlan = StateTraitPlan;
106
+ type StateTrait_StateTraitProgram<S> = StateTraitProgram<S>;
107
+ type StateTrait_StateTraitSpec<S> = StateTraitSpec<S>;
108
+ type StateTrait_StaticIr = StaticIr;
109
+ declare const StateTrait_build: typeof build;
110
+ declare const StateTrait_computed: typeof computed;
111
+ declare const StateTrait_exportStaticIr: typeof exportStaticIr;
112
+ declare const StateTrait_from: typeof from;
113
+ declare const StateTrait_install: typeof install;
114
+ declare const StateTrait_link: typeof link;
115
+ declare const StateTrait_list: typeof list;
116
+ declare const StateTrait_node: typeof node;
117
+ declare const StateTrait_source: typeof source;
118
+ declare namespace StateTrait {
119
+ export { StateTrait_$root as $root, type StateTrait_CheckRule as CheckRule, type StateTrait_StateAtPath as StateAtPath, type StateTrait_StateFieldPath as StateFieldPath, type StateTrait_StateTraitEntry as StateTraitEntry, type StateTrait_StateTraitGraph as StateTraitGraph, type StateTrait_StateTraitList as StateTraitList, type StateTrait_StateTraitNode as StateTraitNode, type StateTrait_StateTraitPlan as StateTraitPlan, type StateTrait_StateTraitProgram as StateTraitProgram, type StateTrait_StateTraitSpec as StateTraitSpec, type StateTrait_StaticIr as StaticIr, StateTrait_build as build, StateTrait_computed as computed, StateTrait_exportStaticIr as exportStaticIr, StateTrait_from as from, StateTrait_install as install, StateTrait_link as link, StateTrait_list as list, StateTrait_node as node, StateTrait_source as source };
120
+ }
121
+
122
+ export { $root as $, type CheckRule as C, StateTrait as S, type StateTraitProgram as a, type StateTraitGraph as b, type StateTraitPlan as c, type StateTraitSpec as d, type StateTraitEntry as e, type StateTraitNode as f, type StateTraitList as g, type StateFieldPath as h, type StateAtPath as i, from as j, computed as k, list as l, link as m, node as n, build as o, install as p, type StaticIr as q, exportStaticIr as r, source as s };