@logixjs/core 0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/LICENSE +201 -0
  2. package/dist/{Action-mqVvtEHt.d.ts → Action-DYl88bwj.d.ts} +1 -1
  3. package/dist/{Action-BkRHy2vg.d.cts → Action-DkxsI_DK.d.cts} +1 -1
  4. package/dist/Action.cjs.map +1 -1
  5. package/dist/Action.d.cts +1 -1
  6. package/dist/Action.d.ts +1 -1
  7. package/dist/Action.js +2 -2
  8. package/dist/{Actions-AsQ07yTP.d.cts → Actions-Dicm7jdc.d.cts} +2 -2
  9. package/dist/{Actions-AsQ07yTP.d.ts → Actions-Dicm7jdc.d.ts} +2 -2
  10. package/dist/Actions.cjs.map +1 -1
  11. package/dist/Actions.d.cts +1 -1
  12. package/dist/Actions.d.ts +1 -1
  13. package/dist/Actions.js +1 -1
  14. package/dist/{Bound-BN1DQ_lM.d.ts → Bound-1OJLzVIS.d.ts} +2 -2
  15. package/dist/{Bound-BPIfH9SS.d.cts → Bound-BMLrtQ1V.d.cts} +2 -2
  16. package/dist/Bound.cjs +1737 -399
  17. package/dist/Bound.cjs.map +1 -1
  18. package/dist/Bound.d.cts +5 -5
  19. package/dist/Bound.d.ts +5 -5
  20. package/dist/Bound.js +19 -17
  21. package/dist/{Debug-B5q5Bkzx.d.ts → Debug-DKrWP5H1.d.ts} +40 -22
  22. package/dist/{Debug-Bq8Sqjcr.d.cts → Debug-hIT44XsY.d.cts} +40 -22
  23. package/dist/Debug.cjs +1348 -318
  24. package/dist/Debug.cjs.map +1 -1
  25. package/dist/Debug.d.cts +12 -11
  26. package/dist/Debug.d.ts +12 -11
  27. package/dist/Debug.js +20 -11
  28. package/dist/EffectOp.cjs +15 -6
  29. package/dist/EffectOp.cjs.map +1 -1
  30. package/dist/EffectOp.js +3 -3
  31. package/dist/Env.cjs +772 -6
  32. package/dist/Env.cjs.map +1 -1
  33. package/dist/Env.js +5 -2
  34. package/dist/ExternalStore-DqJKKRJ4.d.ts +61 -0
  35. package/dist/ExternalStore-JC-gAgEI.d.cts +61 -0
  36. package/dist/ExternalStore.cjs +774 -0
  37. package/dist/ExternalStore.cjs.map +1 -0
  38. package/dist/ExternalStore.d.cts +8 -0
  39. package/dist/ExternalStore.d.ts +8 -0
  40. package/dist/ExternalStore.js +19 -0
  41. package/dist/ExternalStore.js.map +1 -0
  42. package/dist/{Flow-BhpjE22E.d.ts → Flow-CZmXRDqp.d.cts} +13 -4
  43. package/dist/{Flow-1fZT8MpX.d.cts → Flow-DIVDxz7R.d.ts} +13 -4
  44. package/dist/Flow.cjs +765 -148
  45. package/dist/Flow.cjs.map +1 -1
  46. package/dist/Flow.d.cts +6 -6
  47. package/dist/Flow.d.ts +6 -6
  48. package/dist/Flow.js +9 -8
  49. package/dist/{Handle-D_cLW1Z3.d.ts → Handle-Bo6cAFut.d.ts} +1 -1
  50. package/dist/{Handle-D8D1zPb_.d.cts → Handle-CfDvSqN7.d.cts} +1 -1
  51. package/dist/Handle.d.cts +5 -5
  52. package/dist/Handle.d.ts +5 -5
  53. package/dist/{Kernel-8kC-jOda.d.cts → Kernel-CuXBF9S_.d.cts} +16 -7
  54. package/dist/{Kernel-CnGE1Fyk.d.ts → Kernel-D9guNwRL.d.ts} +16 -7
  55. package/dist/Kernel.cjs +814 -26
  56. package/dist/Kernel.cjs.map +1 -1
  57. package/dist/Kernel.d.cts +13 -12
  58. package/dist/Kernel.d.ts +13 -12
  59. package/dist/Kernel.js +7 -4
  60. package/dist/{Link-Db7975nU.d.ts → Link-CUM0yUCH.d.ts} +10 -3
  61. package/dist/{Link-fX8x1eCK.d.cts → Link-NAfR6uGD.d.cts} +10 -3
  62. package/dist/Link.cjs +1294 -121
  63. package/dist/Link.cjs.map +1 -1
  64. package/dist/Link.d.cts +5 -5
  65. package/dist/Link.d.ts +5 -5
  66. package/dist/Link.js +37 -29
  67. package/dist/{Logic-DRh4sDZj.d.cts → Logic-09VQpIj3.d.cts} +7 -4
  68. package/dist/{Logic-BRjEMr-W.d.ts → Logic-DKg7ghGy.d.ts} +7 -4
  69. package/dist/Logic.cjs +2 -1
  70. package/dist/Logic.cjs.map +1 -1
  71. package/dist/Logic.d.cts +5 -5
  72. package/dist/Logic.d.ts +5 -5
  73. package/dist/Logic.js +1 -1
  74. package/dist/{MatchBuilder-CJk5oCkR.d.cts → MatchBuilder-CsW5jgrL.d.ts} +1 -1
  75. package/dist/{MatchBuilder-0QOc-nlU.d.ts → MatchBuilder-Dksk07F4.d.cts} +1 -1
  76. package/dist/MatchBuilder.cjs +2 -2
  77. package/dist/MatchBuilder.cjs.map +1 -1
  78. package/dist/MatchBuilder.d.cts +6 -6
  79. package/dist/MatchBuilder.d.ts +6 -6
  80. package/dist/MatchBuilder.js +2 -2
  81. package/dist/Middleware-D8tUDLv_.d.cts +100 -0
  82. package/dist/Middleware-DS7CbTTN.d.ts +100 -0
  83. package/dist/Middleware.cjs +678 -58
  84. package/dist/Middleware.cjs.map +1 -1
  85. package/dist/Middleware.d.cts +2 -86
  86. package/dist/Middleware.d.ts +2 -86
  87. package/dist/Middleware.js +15 -12
  88. package/dist/{Module-DnzluX2J.d.ts → Module-B_Cntyms.d.ts} +54 -25
  89. package/dist/{Module-B_0xRDMR.d.cts → Module-CmNOVXzf.d.cts} +54 -25
  90. package/dist/Module.cjs +9331 -3317
  91. package/dist/Module.cjs.map +1 -1
  92. package/dist/Module.d.cts +7 -6
  93. package/dist/Module.d.ts +7 -6
  94. package/dist/Module.js +39 -31
  95. package/dist/ModuleTag-CGho_InD.d.ts +113 -0
  96. package/dist/ModuleTag-CITb8L_G.d.cts +113 -0
  97. package/dist/ModuleTag.cjs +7248 -2847
  98. package/dist/ModuleTag.cjs.map +1 -1
  99. package/dist/ModuleTag.d.cts +6 -6
  100. package/dist/ModuleTag.d.ts +6 -6
  101. package/dist/ModuleTag.js +35 -29
  102. package/dist/Observability-Bdhnx2Dv.d.ts +385 -0
  103. package/dist/Observability-DXGAFBIT.d.cts +385 -0
  104. package/dist/Observability.cjs +5093 -1556
  105. package/dist/Observability.cjs.map +1 -1
  106. package/dist/Observability.d.cts +6 -7
  107. package/dist/Observability.d.ts +6 -7
  108. package/dist/Observability.js +28 -23
  109. package/dist/{Platform-CHX8o-U4.d.ts → Platform-B4s8tg6C.d.cts} +4 -5
  110. package/dist/{Platform-C49Pv956.d.cts → Platform-BV_0MW7g.d.cts} +5 -2
  111. package/dist/{Platform-C49Pv956.d.ts → Platform-BV_0MW7g.d.ts} +5 -2
  112. package/dist/{Platform-CVlv0xLQ.d.cts → Platform-W0Mefy_e.d.ts} +4 -5
  113. package/dist/Platform.cjs +2 -1
  114. package/dist/Platform.cjs.map +1 -1
  115. package/dist/Platform.d.cts +2 -3
  116. package/dist/Platform.d.ts +2 -3
  117. package/dist/Platform.js +2 -2
  118. package/dist/{Process-CM9xbMdP.d.ts → Process-CO8G7HO9.d.cts} +30 -5
  119. package/dist/{Process-mL8fHDSB.d.cts → Process-Cyf6VNDR.d.ts} +30 -5
  120. package/dist/Process.cjs +1288 -120
  121. package/dist/Process.cjs.map +1 -1
  122. package/dist/Process.d.cts +6 -6
  123. package/dist/Process.d.ts +6 -6
  124. package/dist/Process.js +34 -26
  125. package/dist/ReadQuery-C_or5nLC.d.ts +128 -0
  126. package/dist/ReadQuery-DXLzCE0E.d.cts +614 -0
  127. package/dist/ReadQuery-DXLzCE0E.d.ts +614 -0
  128. package/dist/ReadQuery-Yve1lmUo.d.cts +128 -0
  129. package/dist/ReadQuery.cjs +290 -5
  130. package/dist/ReadQuery.cjs.map +1 -1
  131. package/dist/ReadQuery.d.cts +3 -2
  132. package/dist/ReadQuery.d.ts +3 -2
  133. package/dist/ReadQuery.js +23 -5
  134. package/dist/{Reflection-CQnKwPXj.d.ts → Reflection-B2Xi1e4Q.d.ts} +89 -7
  135. package/dist/{Reflection-Kabo1mlU.d.cts → Reflection-DNB4V4_e.d.cts} +89 -7
  136. package/dist/Reflection.cjs +3227 -1617
  137. package/dist/Reflection.cjs.map +1 -1
  138. package/dist/Reflection.d.cts +17 -15
  139. package/dist/Reflection.d.ts +17 -15
  140. package/dist/Reflection.js +33 -25
  141. package/dist/{Resource-Dy1xD_DG.d.cts → Resource-pKvQQ4x5.d.cts} +3 -3
  142. package/dist/{Resource-Dy1xD_DG.d.ts → Resource-pKvQQ4x5.d.ts} +3 -3
  143. package/dist/Resource.cjs +781 -15
  144. package/dist/Resource.cjs.map +1 -1
  145. package/dist/Resource.d.cts +1 -1
  146. package/dist/Resource.d.ts +1 -1
  147. package/dist/Resource.js +6 -3
  148. package/dist/{Root-7ADUMk4t.d.cts → Root-CCVuFHB6.d.cts} +3 -3
  149. package/dist/{Root-7ADUMk4t.d.ts → Root-CCVuFHB6.d.ts} +3 -3
  150. package/dist/Root.cjs +786 -20
  151. package/dist/Root.cjs.map +1 -1
  152. package/dist/Root.d.cts +2 -2
  153. package/dist/Root.d.ts +2 -2
  154. package/dist/Root.js +7 -3
  155. package/dist/{Runtime-CtyzZG4i.d.ts → Runtime-CRmvwK4I.d.ts} +70 -14
  156. package/dist/{Runtime-B-aL-f29.d.cts → Runtime-C_wJM9mN.d.cts} +70 -14
  157. package/dist/Runtime.cjs +4942 -1601
  158. package/dist/Runtime.cjs.map +1 -1
  159. package/dist/Runtime.d.cts +17 -15
  160. package/dist/Runtime.d.ts +17 -15
  161. package/dist/Runtime.js +44 -32
  162. package/dist/{ScopeRegistry-D1owDNSm.d.cts → ScopeRegistry-BhYzqWri.d.cts} +6 -6
  163. package/dist/{ScopeRegistry-D1owDNSm.d.ts → ScopeRegistry-BhYzqWri.d.ts} +6 -6
  164. package/dist/ScopeRegistry.cjs +776 -10
  165. package/dist/ScopeRegistry.cjs.map +1 -1
  166. package/dist/ScopeRegistry.d.cts +1 -1
  167. package/dist/ScopeRegistry.d.ts +1 -1
  168. package/dist/ScopeRegistry.js +6 -3
  169. package/dist/{State-CU50R26M.d.cts → State-rNFsFPTl.d.cts} +2 -2
  170. package/dist/{State-CU50R26M.d.ts → State-rNFsFPTl.d.ts} +2 -2
  171. package/dist/State.cjs.map +1 -1
  172. package/dist/State.d.cts +1 -1
  173. package/dist/State.d.ts +1 -1
  174. package/dist/State.js +1 -1
  175. package/dist/{StateTrait-BGsZghTz.d.ts → StateTrait-CijdwNb6.d.ts} +25 -8
  176. package/dist/{StateTrait-OWhbj12c.d.cts → StateTrait-Dltto6PU.d.cts} +25 -8
  177. package/dist/StateTrait.cjs +1890 -528
  178. package/dist/StateTrait.cjs.map +1 -1
  179. package/dist/StateTrait.d.cts +9 -7
  180. package/dist/StateTrait.d.ts +9 -7
  181. package/dist/StateTrait.js +18 -14
  182. package/dist/{TraitLifecycle-CwV5WPFX.d.cts → TraitLifecycle-BKzDqzLu.d.cts} +2 -2
  183. package/dist/{TraitLifecycle-LdIWmKlg.d.ts → TraitLifecycle-Cvo94uDB.d.ts} +2 -2
  184. package/dist/TraitLifecycle.cjs +630 -67
  185. package/dist/TraitLifecycle.cjs.map +1 -1
  186. package/dist/TraitLifecycle.d.cts +6 -6
  187. package/dist/TraitLifecycle.d.ts +6 -6
  188. package/dist/TraitLifecycle.js +8 -7
  189. package/dist/Workflow-C_OWr4dV.d.ts +415 -0
  190. package/dist/Workflow-DmydkHO8.d.cts +415 -0
  191. package/dist/Workflow.cjs +3150 -0
  192. package/dist/Workflow.cjs.map +1 -0
  193. package/dist/Workflow.d.cts +7 -0
  194. package/dist/Workflow.d.ts +7 -0
  195. package/dist/Workflow.js +58 -0
  196. package/dist/Workflow.js.map +1 -0
  197. package/dist/{action-DiMDD_0v.d.cts → action-BQxjPFEw.d.cts} +5 -5
  198. package/dist/{action-DiMDD_0v.d.ts → action-BQxjPFEw.d.ts} +5 -5
  199. package/dist/chunk-2XRLXDWR.js +276 -0
  200. package/dist/chunk-2XRLXDWR.js.map +1 -0
  201. package/dist/chunk-3L6QGFMM.js +701 -0
  202. package/dist/chunk-3L6QGFMM.js.map +1 -0
  203. package/dist/{chunk-GMPEOUP2.js → chunk-4MZ7BT3R.js} +2 -2
  204. package/dist/chunk-4MZ7BT3R.js.map +1 -0
  205. package/dist/{chunk-3IYZ5IGG.js → chunk-5WKUGEBY.js} +2 -2
  206. package/dist/{chunk-3RMKLXHX.js → chunk-63ZQ5RIN.js} +2 -2
  207. package/dist/{chunk-M3WTHJHJ.js → chunk-67DIEA53.js} +385 -148
  208. package/dist/chunk-67DIEA53.js.map +1 -0
  209. package/dist/{chunk-YS3AZQ2G.js → chunk-6HFAW2MH.js} +1 -1
  210. package/dist/chunk-6HFAW2MH.js.map +1 -0
  211. package/dist/{chunk-EY4NZKDR.js → chunk-6Y2TKCNY.js} +2 -2
  212. package/dist/{chunk-76WT3HOR.js → chunk-6YZOXFPQ.js} +25 -24
  213. package/dist/chunk-6YZOXFPQ.js.map +1 -0
  214. package/dist/{chunk-G5ZBFPNU.js → chunk-A2RQOJC7.js} +2 -2
  215. package/dist/{chunk-AUIR5O6W.js → chunk-AFSB6NKM.js} +13 -19
  216. package/dist/chunk-AFSB6NKM.js.map +1 -0
  217. package/dist/{chunk-JCXGZRMU.js → chunk-AO4JEOKD.js} +22 -23
  218. package/dist/chunk-AO4JEOKD.js.map +1 -0
  219. package/dist/{chunk-TAAPQVZN.js → chunk-AYELIQXR.js} +2 -2
  220. package/dist/{chunk-QMM6O4CD.js → chunk-BLHZW7DG.js} +15 -3
  221. package/dist/{chunk-QMM6O4CD.js.map → chunk-BLHZW7DG.js.map} +1 -1
  222. package/dist/{chunk-TQOBJYDP.js → chunk-CD4N74YC.js} +1 -1
  223. package/dist/chunk-CD4N74YC.js.map +1 -0
  224. package/dist/{chunk-ANLBCBDC.js → chunk-CGE2HBTH.js} +11 -11
  225. package/dist/chunk-CGE2HBTH.js.map +1 -0
  226. package/dist/{chunk-OFADUJWJ.js → chunk-CYYSQMLO.js} +5 -5
  227. package/dist/chunk-CYYSQMLO.js.map +1 -0
  228. package/dist/{chunk-66ALHVEX.js → chunk-EB46EYI7.js} +3 -3
  229. package/dist/{chunk-NZJKFF45.js → chunk-EKCDHWRK.js} +4 -4
  230. package/dist/chunk-EKCDHWRK.js.map +1 -0
  231. package/dist/{chunk-BABLDP24.js → chunk-EPQFNJU3.js} +152 -7
  232. package/dist/chunk-EPQFNJU3.js.map +1 -0
  233. package/dist/{chunk-OGWBVHB3.js → chunk-ESR6HGOY.js} +73 -14
  234. package/dist/chunk-ESR6HGOY.js.map +1 -0
  235. package/dist/{chunk-NBD3KUOZ.js → chunk-F6RP62H3.js} +150 -98
  236. package/dist/chunk-F6RP62H3.js.map +1 -0
  237. package/dist/chunk-FBYW3QDI.js +252 -0
  238. package/dist/chunk-FBYW3QDI.js.map +1 -0
  239. package/dist/{chunk-IPF7E66P.js → chunk-FYAODKVP.js} +2 -2
  240. package/dist/chunk-GNEN7NKO.js +908 -0
  241. package/dist/chunk-GNEN7NKO.js.map +1 -0
  242. package/dist/chunk-GWSM4KLB.js +763 -0
  243. package/dist/chunk-GWSM4KLB.js.map +1 -0
  244. package/dist/{chunk-4SO6JMZL.js → chunk-HDMXCUZL.js} +1 -1
  245. package/dist/chunk-HDMXCUZL.js.map +1 -0
  246. package/dist/{chunk-ZFY7U2FR.js → chunk-HJM5Y5NU.js} +43 -3
  247. package/dist/chunk-HJM5Y5NU.js.map +1 -0
  248. package/dist/{chunk-ZGDVUPTM.js → chunk-IOZ3VKPK.js} +129 -68
  249. package/dist/chunk-IOZ3VKPK.js.map +1 -0
  250. package/dist/{chunk-PYOE4VSI.js → chunk-IVXSVHO4.js} +303 -247
  251. package/dist/chunk-IVXSVHO4.js.map +1 -0
  252. package/dist/chunk-J3CWXIPV.js +242 -0
  253. package/dist/chunk-J3CWXIPV.js.map +1 -0
  254. package/dist/chunk-K6JQW266.js +42 -0
  255. package/dist/chunk-K6JQW266.js.map +1 -0
  256. package/dist/chunk-KMZYQF6Q.js +202 -0
  257. package/dist/chunk-KMZYQF6Q.js.map +1 -0
  258. package/dist/{chunk-JWOYLO27.js → chunk-LPPZDFTD.js} +22 -12
  259. package/dist/chunk-LPPZDFTD.js.map +1 -0
  260. package/dist/{chunk-PAYXCY6A.js → chunk-MYB2B5WX.js} +997 -576
  261. package/dist/chunk-MYB2B5WX.js.map +1 -0
  262. package/dist/chunk-MYKNINNN.js +228 -0
  263. package/dist/chunk-MYKNINNN.js.map +1 -0
  264. package/dist/chunk-NSQIRMVF.js +27 -0
  265. package/dist/{chunk-QCHIQWAJ.js.map → chunk-NSQIRMVF.js.map} +1 -1
  266. package/dist/chunk-NUDBM4MM.js +30 -0
  267. package/dist/chunk-NUDBM4MM.js.map +1 -0
  268. package/dist/chunk-NZMWWDAY.js +23 -0
  269. package/dist/chunk-NZMWWDAY.js.map +1 -0
  270. package/dist/{chunk-RNFE3ML2.js → chunk-OCUV2Y25.js} +4 -3
  271. package/dist/chunk-OCUV2Y25.js.map +1 -0
  272. package/dist/chunk-P4ZJOQA7.js +271 -0
  273. package/dist/chunk-P4ZJOQA7.js.map +1 -0
  274. package/dist/chunk-P6C5EZ3D.js +342 -0
  275. package/dist/chunk-P6C5EZ3D.js.map +1 -0
  276. package/dist/{chunk-CW6T36TN.js → chunk-PBD7BJUN.js} +62 -4
  277. package/dist/chunk-PBD7BJUN.js.map +1 -0
  278. package/dist/chunk-PBIUCQY3.js +696 -0
  279. package/dist/chunk-PBIUCQY3.js.map +1 -0
  280. package/dist/chunk-PD6YECQH.js +845 -0
  281. package/dist/chunk-PD6YECQH.js.map +1 -0
  282. package/dist/{chunk-M7IYCTJV.js → chunk-R4LFQGP3.js} +2 -2
  283. package/dist/chunk-RHJIGDUE.js +21 -0
  284. package/dist/chunk-RHJIGDUE.js.map +1 -0
  285. package/dist/{chunk-KP7MUZNX.js → chunk-RLXO27MW.js} +30 -8
  286. package/dist/chunk-RLXO27MW.js.map +1 -0
  287. package/dist/{chunk-DFNM3WX2.js → chunk-S44BEV4B.js} +168 -45
  288. package/dist/chunk-S44BEV4B.js.map +1 -0
  289. package/dist/chunk-S4S5N4BJ.js +1461 -0
  290. package/dist/chunk-S4S5N4BJ.js.map +1 -0
  291. package/dist/{chunk-BZ2SHDN2.js → chunk-SGTRAXXX.js} +3 -3
  292. package/dist/chunk-SGTRAXXX.js.map +1 -0
  293. package/dist/{chunk-M2RGJPXX.js → chunk-SJAE5PB5.js} +3 -3
  294. package/dist/{chunk-JGIWG6SR.js → chunk-SNPNHU3H.js} +3937 -1776
  295. package/dist/chunk-SNPNHU3H.js.map +1 -0
  296. package/dist/{chunk-IHVBV5C2.js → chunk-SOOBFXRR.js} +94 -71
  297. package/dist/chunk-SOOBFXRR.js.map +1 -0
  298. package/dist/{chunk-ZDTRWK5F.js → chunk-TAHFWKS6.js} +2 -2
  299. package/dist/chunk-UEFFTVPY.js +9 -0
  300. package/dist/chunk-UEFFTVPY.js.map +1 -0
  301. package/dist/{chunk-24VULZ7A.js → chunk-UR5BXLBP.js} +3 -3
  302. package/dist/chunk-UR5BXLBP.js.map +1 -0
  303. package/dist/{chunk-DMBALCE2.js → chunk-V2SBGVDO.js} +471 -186
  304. package/dist/chunk-V2SBGVDO.js.map +1 -0
  305. package/dist/chunk-VJLWD47W.js +23 -0
  306. package/dist/chunk-VJLWD47W.js.map +1 -0
  307. package/dist/{chunk-4CQAV7YB.js → chunk-W647DX5Z.js} +2 -2
  308. package/dist/{chunk-THATMZXD.js → chunk-WFIIU3YZ.js} +2 -2
  309. package/dist/{chunk-THATMZXD.js.map → chunk-WFIIU3YZ.js.map} +1 -1
  310. package/dist/chunk-YZDJMAKL.js +82 -0
  311. package/dist/chunk-YZDJMAKL.js.map +1 -0
  312. package/dist/{chunk-3TMODYZV.js → chunk-Z5XH6VHY.js} +5 -5
  313. package/dist/chunk-Z5XH6VHY.js.map +1 -0
  314. package/dist/{chunk-BE3HW4FY.js → chunk-ZBBMZMA6.js} +377 -170
  315. package/dist/chunk-ZBBMZMA6.js.map +1 -0
  316. package/dist/index.cjs +21224 -11714
  317. package/dist/index.cjs.map +1 -1
  318. package/dist/index.d.cts +195 -49
  319. package/dist/index.d.ts +195 -49
  320. package/dist/index.js +150 -74
  321. package/dist/index.js.map +1 -1
  322. package/dist/{ir-BMP7yxJJ.d.cts → ir-BSosEwc8.d.cts} +1 -1
  323. package/dist/{ir-DUOz6H-5.d.ts → ir-D-uqwL_4.d.ts} +1 -1
  324. package/dist/{module-B8CBqIZ_.d.cts → module-Ds4tarcI.d.cts} +230 -140
  325. package/dist/{module-k7m3txak.d.ts → module-Zd1Gn-Nj.d.ts} +230 -140
  326. package/package.json +20 -4
  327. package/dist/ModuleTag-C8FHY_sY.d.ts +0 -93
  328. package/dist/ModuleTag-EGbgBMpZ.d.cts +0 -93
  329. package/dist/Observability-COqEvp2C.d.cts +0 -713
  330. package/dist/Observability-cY4kLn0S.d.ts +0 -713
  331. package/dist/ReadQuery-BlMwhe-F.d.ts +0 -30
  332. package/dist/ReadQuery-CL5XlXts.d.cts +0 -30
  333. package/dist/ReadQuery-SinbStGF.d.cts +0 -38
  334. package/dist/ReadQuery-SinbStGF.d.ts +0 -38
  335. package/dist/chunk-24VULZ7A.js.map +0 -1
  336. package/dist/chunk-3QMIVH35.js +0 -43
  337. package/dist/chunk-3QMIVH35.js.map +0 -1
  338. package/dist/chunk-3TMODYZV.js.map +0 -1
  339. package/dist/chunk-4SO6JMZL.js.map +0 -1
  340. package/dist/chunk-76WT3HOR.js.map +0 -1
  341. package/dist/chunk-ANLBCBDC.js.map +0 -1
  342. package/dist/chunk-AUIR5O6W.js.map +0 -1
  343. package/dist/chunk-BABLDP24.js.map +0 -1
  344. package/dist/chunk-BE3HW4FY.js.map +0 -1
  345. package/dist/chunk-BZ2SHDN2.js.map +0 -1
  346. package/dist/chunk-CW6T36TN.js.map +0 -1
  347. package/dist/chunk-DFNM3WX2.js.map +0 -1
  348. package/dist/chunk-DMBALCE2.js.map +0 -1
  349. package/dist/chunk-EGK3KN7B.js +0 -406
  350. package/dist/chunk-EGK3KN7B.js.map +0 -1
  351. package/dist/chunk-GMPEOUP2.js.map +0 -1
  352. package/dist/chunk-IHVBV5C2.js.map +0 -1
  353. package/dist/chunk-JCXGZRMU.js.map +0 -1
  354. package/dist/chunk-JGIWG6SR.js.map +0 -1
  355. package/dist/chunk-JWOYLO27.js.map +0 -1
  356. package/dist/chunk-KIXAU3GM.js +0 -137
  357. package/dist/chunk-KIXAU3GM.js.map +0 -1
  358. package/dist/chunk-KL5ACTCT.js +0 -8
  359. package/dist/chunk-KL5ACTCT.js.map +0 -1
  360. package/dist/chunk-KP7MUZNX.js.map +0 -1
  361. package/dist/chunk-M3BFQ7HK.js +0 -13
  362. package/dist/chunk-M3BFQ7HK.js.map +0 -1
  363. package/dist/chunk-M3WTHJHJ.js.map +0 -1
  364. package/dist/chunk-NBD3KUOZ.js.map +0 -1
  365. package/dist/chunk-NQZ2OSGR.js +0 -151
  366. package/dist/chunk-NQZ2OSGR.js.map +0 -1
  367. package/dist/chunk-NZJKFF45.js.map +0 -1
  368. package/dist/chunk-OFADUJWJ.js.map +0 -1
  369. package/dist/chunk-OGWBVHB3.js.map +0 -1
  370. package/dist/chunk-PAYXCY6A.js.map +0 -1
  371. package/dist/chunk-PYOE4VSI.js.map +0 -1
  372. package/dist/chunk-QCHIQWAJ.js +0 -21
  373. package/dist/chunk-RNFE3ML2.js.map +0 -1
  374. package/dist/chunk-TKZ7MEIA.js +0 -27
  375. package/dist/chunk-TKZ7MEIA.js.map +0 -1
  376. package/dist/chunk-TQOBJYDP.js.map +0 -1
  377. package/dist/chunk-VZB726PE.js +0 -93
  378. package/dist/chunk-VZB726PE.js.map +0 -1
  379. package/dist/chunk-W3TEWHLO.js +0 -568
  380. package/dist/chunk-W3TEWHLO.js.map +0 -1
  381. package/dist/chunk-YS3AZQ2G.js.map +0 -1
  382. package/dist/chunk-ZFLHVFUC.js +0 -192
  383. package/dist/chunk-ZFLHVFUC.js.map +0 -1
  384. package/dist/chunk-ZFY7U2FR.js.map +0 -1
  385. package/dist/chunk-ZGDVUPTM.js.map +0 -1
  386. package/dist/protocol-g_1897M2.d.cts +0 -127
  387. package/dist/protocol-g_1897M2.d.ts +0 -127
  388. /package/dist/{chunk-3IYZ5IGG.js.map → chunk-5WKUGEBY.js.map} +0 -0
  389. /package/dist/{chunk-3RMKLXHX.js.map → chunk-63ZQ5RIN.js.map} +0 -0
  390. /package/dist/{chunk-EY4NZKDR.js.map → chunk-6Y2TKCNY.js.map} +0 -0
  391. /package/dist/{chunk-G5ZBFPNU.js.map → chunk-A2RQOJC7.js.map} +0 -0
  392. /package/dist/{chunk-TAAPQVZN.js.map → chunk-AYELIQXR.js.map} +0 -0
  393. /package/dist/{chunk-66ALHVEX.js.map → chunk-EB46EYI7.js.map} +0 -0
  394. /package/dist/{chunk-IPF7E66P.js.map → chunk-FYAODKVP.js.map} +0 -0
  395. /package/dist/{chunk-M7IYCTJV.js.map → chunk-R4LFQGP3.js.map} +0 -0
  396. /package/dist/{chunk-M2RGJPXX.js.map → chunk-SJAE5PB5.js.map} +0 -0
  397. /package/dist/{chunk-ZDTRWK5F.js.map → chunk-TAHFWKS6.js.map} +0 -0
  398. /package/dist/{chunk-4CQAV7YB.js.map → chunk-W647DX5Z.js.map} +0 -0
@@ -1,88 +1,4 @@
1
- import { Middleware as Middleware$1, MiddlewareStack as MiddlewareStack$1, EffectOp } from './EffectOp.cjs';
1
+ import './EffectOp.cjs';
2
+ export { c as DebugLoggerConfig, D as DebugObserverConfig, a as Middleware, b as MiddlewareStack, W as WithDebugOptions, d as applyDebug, f as applyDebugObserver, m as makeDebugLogger, e as makeDebugObserver, w as withDebug } from './Middleware-D8tUDLv_.cjs';
2
3
  import 'effect/Effect';
3
4
  import 'effect';
4
-
5
- type Middleware = Middleware$1;
6
- type MiddlewareStack = MiddlewareStack$1;
7
- interface DebugLoggerConfig {
8
- /**
9
- * Optional: custom logger function (useful for capturing calls in tests).
10
- *
11
- * - When omitted, defaults to Effect.logDebug.
12
- */
13
- readonly logger?: (op: EffectOp<any, any, any>) => void;
14
- }
15
- /**
16
- * Creates a simple debug logger middleware.
17
- *
18
- * - Logs once before executing the Effect.
19
- * - Does not change success/error semantics.
20
- */
21
- declare const makeDebugLogger: (config?: DebugLoggerConfig) => Middleware;
22
- /**
23
- * applyDebug:
24
- * - Appends a DebugLogger middleware to the end of an existing MiddlewareStack.
25
- * - Returns a new stack; does not mutate the input array.
26
- */
27
- declare const applyDebug: (stack: MiddlewareStack, config?: DebugLoggerConfig) => MiddlewareStack;
28
- /**
29
- * DebugObserverConfig:
30
- * - Optional filter: select which EffectOps to observe (by module / kind / name, etc.).
31
- */
32
- interface DebugObserverConfig {
33
- readonly filter?: (op: EffectOp<any, any, any>) => boolean;
34
- }
35
- /**
36
- * makeDebugObserver:
37
- * - Funnels EffectOp events into DebugSink (EffectOp → Debug.Event).
38
- * - Uses `trace:*` events to forward a slim view of EffectOp into the Debug stream (must not carry effect closures):
39
- * - type: 'trace:effectop'
40
- * - moduleId: from op.meta?.moduleId (when present)
41
- * - data: { id, kind, name, payload, meta }
42
- *
43
- * Notes:
44
- * - Does not change the underlying Effect behavior; only adds Debug-side observation.
45
- * - Devtools / Timeline UIs can rebuild an EffectOp timeline from `trace:effectop` events.
46
- */
47
- declare const makeDebugObserver: (config?: DebugObserverConfig) => Middleware;
48
- /**
49
- * applyDebugObserver:
50
- * - Appends a DebugObserver middleware to the end of an existing MiddlewareStack.
51
- * - Returns a new stack; does not mutate the input array.
52
- */
53
- declare const applyDebugObserver: (stack: MiddlewareStack, config?: DebugObserverConfig) => MiddlewareStack;
54
- /**
55
- * WithDebugOptions:
56
- * - High-level composition options for adding Debug capabilities onto an existing MiddlewareStack.
57
- *
58
- * Conventions:
59
- * - logger:
60
- * - undefined: enable the default DebugLogger (Effect.logDebug).
61
- * - function: use a custom logger(op) instead of the default.
62
- * - false: do not add DebugLogger middleware.
63
- * - observer:
64
- * - undefined: enable DebugObserver with default config.
65
- * - DebugObserverConfig: enable DebugObserver with the given config.
66
- * - false: do not add DebugObserver middleware.
67
- */
68
- interface WithDebugOptions {
69
- readonly logger?: DebugLoggerConfig['logger'] | false;
70
- readonly observer?: DebugObserverConfig | false;
71
- }
72
- /**
73
- * withDebug:
74
- * - Appends DebugLogger + DebugObserver presets onto an existing MiddlewareStack.
75
- * - Allows enabling/disabling logger/observer and configuring them via options.
76
- * - Returns a new stack; does not mutate the input array.
77
- *
78
- * @example
79
- *
80
- * let stack: MiddlewareStack = [metrics, timing]
81
- * stack = Middleware.withDebug(stack, {
82
- * logger: (op) => console.log(op.kind, op.name),
83
- * observer: { filter: (op) => op.kind !== 'service' },
84
- * })
85
- */
86
- declare const withDebug: (stack: MiddlewareStack, options?: WithDebugOptions) => MiddlewareStack;
87
-
88
- export { type DebugLoggerConfig, type DebugObserverConfig, type Middleware, type MiddlewareStack, type WithDebugOptions, applyDebug, applyDebugObserver, makeDebugLogger, makeDebugObserver, withDebug };
@@ -1,88 +1,4 @@
1
- import { Middleware as Middleware$1, MiddlewareStack as MiddlewareStack$1, EffectOp } from './EffectOp.js';
1
+ import './EffectOp.js';
2
+ export { c as DebugLoggerConfig, D as DebugObserverConfig, a as Middleware, b as MiddlewareStack, W as WithDebugOptions, d as applyDebug, f as applyDebugObserver, m as makeDebugLogger, e as makeDebugObserver, w as withDebug } from './Middleware-DS7CbTTN.js';
2
3
  import 'effect/Effect';
3
4
  import 'effect';
4
-
5
- type Middleware = Middleware$1;
6
- type MiddlewareStack = MiddlewareStack$1;
7
- interface DebugLoggerConfig {
8
- /**
9
- * Optional: custom logger function (useful for capturing calls in tests).
10
- *
11
- * - When omitted, defaults to Effect.logDebug.
12
- */
13
- readonly logger?: (op: EffectOp<any, any, any>) => void;
14
- }
15
- /**
16
- * Creates a simple debug logger middleware.
17
- *
18
- * - Logs once before executing the Effect.
19
- * - Does not change success/error semantics.
20
- */
21
- declare const makeDebugLogger: (config?: DebugLoggerConfig) => Middleware;
22
- /**
23
- * applyDebug:
24
- * - Appends a DebugLogger middleware to the end of an existing MiddlewareStack.
25
- * - Returns a new stack; does not mutate the input array.
26
- */
27
- declare const applyDebug: (stack: MiddlewareStack, config?: DebugLoggerConfig) => MiddlewareStack;
28
- /**
29
- * DebugObserverConfig:
30
- * - Optional filter: select which EffectOps to observe (by module / kind / name, etc.).
31
- */
32
- interface DebugObserverConfig {
33
- readonly filter?: (op: EffectOp<any, any, any>) => boolean;
34
- }
35
- /**
36
- * makeDebugObserver:
37
- * - Funnels EffectOp events into DebugSink (EffectOp → Debug.Event).
38
- * - Uses `trace:*` events to forward a slim view of EffectOp into the Debug stream (must not carry effect closures):
39
- * - type: 'trace:effectop'
40
- * - moduleId: from op.meta?.moduleId (when present)
41
- * - data: { id, kind, name, payload, meta }
42
- *
43
- * Notes:
44
- * - Does not change the underlying Effect behavior; only adds Debug-side observation.
45
- * - Devtools / Timeline UIs can rebuild an EffectOp timeline from `trace:effectop` events.
46
- */
47
- declare const makeDebugObserver: (config?: DebugObserverConfig) => Middleware;
48
- /**
49
- * applyDebugObserver:
50
- * - Appends a DebugObserver middleware to the end of an existing MiddlewareStack.
51
- * - Returns a new stack; does not mutate the input array.
52
- */
53
- declare const applyDebugObserver: (stack: MiddlewareStack, config?: DebugObserverConfig) => MiddlewareStack;
54
- /**
55
- * WithDebugOptions:
56
- * - High-level composition options for adding Debug capabilities onto an existing MiddlewareStack.
57
- *
58
- * Conventions:
59
- * - logger:
60
- * - undefined: enable the default DebugLogger (Effect.logDebug).
61
- * - function: use a custom logger(op) instead of the default.
62
- * - false: do not add DebugLogger middleware.
63
- * - observer:
64
- * - undefined: enable DebugObserver with default config.
65
- * - DebugObserverConfig: enable DebugObserver with the given config.
66
- * - false: do not add DebugObserver middleware.
67
- */
68
- interface WithDebugOptions {
69
- readonly logger?: DebugLoggerConfig['logger'] | false;
70
- readonly observer?: DebugObserverConfig | false;
71
- }
72
- /**
73
- * withDebug:
74
- * - Appends DebugLogger + DebugObserver presets onto an existing MiddlewareStack.
75
- * - Allows enabling/disabling logger/observer and configuring them via options.
76
- * - Returns a new stack; does not mutate the input array.
77
- *
78
- * @example
79
- *
80
- * let stack: MiddlewareStack = [metrics, timing]
81
- * stack = Middleware.withDebug(stack, {
82
- * logger: (op) => console.log(op.kind, op.name),
83
- * observer: { filter: (op) => op.kind !== 'service' },
84
- * })
85
- */
86
- declare const withDebug: (stack: MiddlewareStack, options?: WithDebugOptions) => MiddlewareStack;
87
-
88
- export { type DebugLoggerConfig, type DebugObserverConfig, type Middleware, type MiddlewareStack, type WithDebugOptions, applyDebug, applyDebugObserver, makeDebugLogger, makeDebugObserver, withDebug };
@@ -4,18 +4,21 @@ import {
4
4
  makeDebugLogger,
5
5
  makeDebugObserver,
6
6
  withDebug
7
- } from "./chunk-QMM6O4CD.js";
8
- import "./chunk-W3TEWHLO.js";
9
- import "./chunk-66ALHVEX.js";
10
- import "./chunk-ZFY7U2FR.js";
11
- import "./chunk-M3BFQ7HK.js";
12
- import "./chunk-IHVBV5C2.js";
13
- import "./chunk-3RMKLXHX.js";
14
- import "./chunk-3QMIVH35.js";
15
- import "./chunk-DMBALCE2.js";
16
- import "./chunk-GMPEOUP2.js";
17
- import "./chunk-M7IYCTJV.js";
18
- import "./chunk-JWOYLO27.js";
7
+ } from "./chunk-BLHZW7DG.js";
8
+ import "./chunk-GNEN7NKO.js";
9
+ import "./chunk-EB46EYI7.js";
10
+ import "./chunk-HJM5Y5NU.js";
11
+ import "./chunk-RHJIGDUE.js";
12
+ import "./chunk-J3CWXIPV.js";
13
+ import "./chunk-SOOBFXRR.js";
14
+ import "./chunk-63ZQ5RIN.js";
15
+ import "./chunk-S4S5N4BJ.js";
16
+ import "./chunk-NZMWWDAY.js";
17
+ import "./chunk-MYKNINNN.js";
18
+ import "./chunk-R4LFQGP3.js";
19
+ import "./chunk-V2SBGVDO.js";
20
+ import "./chunk-LPPZDFTD.js";
21
+ import "./chunk-4MZ7BT3R.js";
19
22
  import "./chunk-PZ5AY32C.js";
20
23
  export {
21
24
  applyDebug,
@@ -1,7 +1,9 @@
1
- import { h as AnyModuleShape, l as ModuleRuntime, o as StateOf, p as ActionOf, m as ModuleHandle, M as ModuleTag, k as ModuleImpl, A as AnySchema, z as ModuleLike, R as ReducersFromMap, j as ModuleLogic, B as BoundApi, O as ModuleImplementStateTransactionOptions, r as MutatorsFromMap, F as FieldPath, i as ModuleShape, q as ActionsFromMap, v as StateChangeWithMeta, u as StateCommitMeta, s as StateCommitMode, t as StateCommitPriority } from './module-k7m3txak.js';
2
- import { Context, Layer, Effect, Schema } from 'effect';
3
- import { O as Of, D as Draft } from './Logic-BRjEMr-W.js';
4
- import { b as ActionDefs, a as ActionToken, N as NormalizedActionTokens } from './action-DiMDD_0v.js';
1
+ import { o as AnyModuleShape, t as ModuleRuntimeOfShape, u as ModuleHandle, L as LogicEffect, B as BoundApi, M as ModuleTag, r as ModuleImpl, A as AnySchema, $ as ModuleLike, R as ReducersFromMap, v as StateOf, q as ModuleLogic, a6 as ModuleImplementStateTransactionOptions, s as ModuleRuntime, y as MutatorsFromMap, F as FieldPath, x as ActionsFromMap, p as ModuleShape, E as ActionForTag, w as ActionOf, J as BoundApiDispatchApi, I as BoundApiDispatchersApi, K as BoundApiLifecycleApi, Q as BoundApiReducerApi, G as BoundApiRootApi, H as BoundApiStateApi, O as BoundApiTraitsApi, N as BoundApiUseApi, z as DispatchEffect, V as ReadonlySubscriptionRef, U as StateChangeWithMeta, a as StateCommitMeta, T as StateCommitMode, S as StateCommitPriority } from './module-Zd1Gn-Nj.js';
2
+ import { ServiceMap, Layer, Effect, Schema } from 'effect';
3
+ import { D as Draft } from './Logic-DKg7ghGy.js';
4
+ import { b as Workflow } from './Workflow-C_OWr4dV.js';
5
+ import { b as ActionDefs, a as ActionToken, N as NormalizedActionTokens } from './action-BQxjPFEw.js';
6
+ import { J as JsonValue } from './ReadQuery-DXLzCE0E.js';
5
7
 
6
8
  interface DevSource {
7
9
  readonly file: string;
@@ -30,10 +32,14 @@ interface ModuleDescriptor {
30
32
  readonly actionKeys: ReadonlyArray<string>;
31
33
  readonly logicUnits: ReadonlyArray<MountedLogicUnitSummary>;
32
34
  readonly schemaKeys?: ReadonlyArray<string>;
33
- readonly meta?: Record<string, unknown>;
35
+ readonly meta?: Record<string, JsonValue>;
34
36
  readonly source?: DevSource;
35
37
  }
36
- type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime: ModuleRuntime<StateOf<Sh>, ActionOf<Sh>>, base: ModuleHandle<Sh>) => Ext | (ModuleHandle<Sh> & Ext) | null | undefined;
38
+ type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime: ModuleRuntimeOfShape<Sh>, base: ModuleHandle<Sh>) => Ext | (ModuleHandle<Sh> & Ext) | null | undefined;
39
+ type ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = LogicEffect<Sh, R, ModuleHandle<Sh> & Ext, never>;
40
+ type ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = BoundApi<Sh, R> & {
41
+ readonly self: ModuleSelfHandleEffect<Sh, R, Ext>;
42
+ };
37
43
  type NoInfer_<T> = [T][T extends any ? 0 : never];
38
44
  type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyModuleShape, Ext extends object = {}> = ModuleLike<Id, Sh, Ext> & {
39
45
  readonly shape: Sh;
@@ -49,14 +55,12 @@ type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyMo
49
55
  * - Mainly for DX/reflection; runtime normalizes them into primary reducers inside ModuleTag/ModuleFactory.
50
56
  */
51
57
  readonly reducers?: ReducersFromMap<Sh['stateSchema'], Sh['actionMap']>;
52
- readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<ModuleRuntime<StateOf<Sh>, ActionOf<Sh>>, E, R>;
58
+ readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<ModuleRuntimeOfShape<Sh>, E, R>;
53
59
  readonly schemas?: Record<string, unknown>;
54
- readonly meta?: Record<string, unknown>;
55
- readonly services?: Record<string, Context.Tag<any, any>>;
60
+ readonly meta?: Record<string, JsonValue>;
61
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
56
62
  readonly dev?: ModuleDev;
57
- readonly logic: <R = never, E = unknown>(build: (api: BoundApi<Sh, R> & {
58
- readonly self: Of<Sh, R, ModuleHandle<Sh> & Ext, never>;
59
- }) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
63
+ readonly logic: <R = never, E = unknown>(build: (api: ModuleLogicApi<Sh, R, Ext>) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
60
64
  };
61
65
  type AnyModule = {
62
66
  readonly _kind: 'Module';
@@ -66,8 +70,8 @@ type AnyModule = {
66
70
  readonly actions: Record<string, AnySchema>;
67
71
  readonly reducers?: Record<string, unknown>;
68
72
  readonly schemas?: Record<string, unknown>;
69
- readonly meta?: Record<string, unknown>;
70
- readonly services?: Record<string, Context.Tag<any, any>>;
73
+ readonly meta?: Record<string, JsonValue>;
74
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
71
75
  readonly dev?: ModuleDev;
72
76
  };
73
77
  type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}, R = never> = ModuleDefBase<Id, Sh, Ext> & {
@@ -75,11 +79,15 @@ type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {
75
79
  readonly impl: ModuleImpl<Id, Sh, R>;
76
80
  readonly withLogic: (logic: ModuleLogic<Sh, any, any>, options?: LogicUnitOptions) => Module<Id, Sh, Ext, R>;
77
81
  readonly withLogics: (...inputs: ReadonlyArray<MountInput<Sh>>) => Module<Id, Sh, Ext, R>;
82
+ readonly withWorkflow: (workflow: Workflow) => Module<Id, Sh, Ext, R>;
83
+ readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => Module<Id, Sh, Ext, R>;
78
84
  readonly withLayer: (layer: Layer.Layer<any, never, any>) => Module<Id, Sh, Ext, R>;
79
85
  readonly withLayers: (...layers: ReadonlyArray<Layer.Layer<any, never, any>>) => Module<Id, Sh, Ext, R>;
80
86
  };
81
87
  type ModuleDef<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}> = ModuleDefBase<Id, Sh, Ext> & {
82
88
  readonly _kind: 'ModuleDef';
89
+ readonly withWorkflow: (workflow: Workflow) => ModuleDef<Id, Sh, Ext>;
90
+ readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => ModuleDef<Id, Sh, Ext>;
83
91
  readonly implement: <R = never>(config: {
84
92
  readonly initial: StateOf<Sh>;
85
93
  readonly logics?: Array<ModuleLogic<Sh, R, any>>;
@@ -105,13 +113,13 @@ type MakeDef<Id extends string, SSchema extends AnySchema, AMap extends ActionDe
105
113
  readonly effects?: EffectsFromMap<NoInfer_<AMap>>;
106
114
  readonly traits?: unknown;
107
115
  readonly schemas?: Record<string, unknown>;
108
- readonly meta?: Record<string, unknown>;
109
- readonly services?: Record<string, Context.Tag<any, any>>;
116
+ readonly meta?: Record<string, JsonValue>;
117
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
110
118
  readonly dev?: ModuleDev;
111
119
  };
112
120
  type AnyActionMap = ActionDefs;
113
121
  type EmptyActionMap = Record<never, never>;
114
- type PayloadOfActionDef<V> = V extends Schema.Schema<any, any, any> ? Schema.Schema.Type<V> : V extends ActionToken<any, infer P, any> ? P : never;
122
+ type PayloadOfActionDef<V> = V extends Schema.Schema<any> ? Schema.Schema.Type<V> : V extends ActionToken<any, infer P, any> ? P : never;
115
123
  type DeclaredEffectHandler<Payload> = ($: unknown, payload: Payload) => Effect.Effect<void, any, any>;
116
124
  type EffectsFromMap<M extends AnyActionMap> = {
117
125
  readonly [K in keyof M]?: ReadonlyArray<DeclaredEffectHandler<PayloadOfActionDef<M[K]>>>;
@@ -132,8 +140,8 @@ type MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap,
132
140
  readonly immerReducers?: MutatorsFromMap<SSchema, MergeActionMap<BaseActions, ExtActions>>;
133
141
  readonly effects?: EffectsFromMap<MergeActionMap<BaseActions, ExtActions>>;
134
142
  readonly schemas?: Record<string, unknown>;
135
- readonly meta?: Record<string, unknown>;
136
- readonly services?: Record<string, Context.Tag<any, any>>;
143
+ readonly meta?: Record<string, JsonValue>;
144
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
137
145
  readonly dev?: ModuleDev;
138
146
  };
139
147
  declare const Reducer: {
@@ -146,9 +154,12 @@ declare const Reducer: {
146
154
  readonly payload?: infer P;
147
155
  } ? P | undefined : never) => void; }) => R;
148
156
  };
149
- type Shape<S extends AnySchema, M extends ActionDefs> = ModuleShape<S, Schema.Schema<ActionsFromMap<NormalizedActionTokens<M>>>, NormalizedActionTokens<M>>;
150
- declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}>(id: Id, def: MakeDef<Id, SSchema, AMap>): ModuleDef<Id, ModuleShape<SSchema, Schema.Schema<ActionsFromMap<NormalizedActionTokens<AMap>>>, NormalizedActionTokens<AMap>>, Ext>;
151
- declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}, ExtActions extends ActionDefs = EmptyActionMap>(id: Id, def: MakeDef<Id, SSchema, AMap>, extend: MakeExtendDef<SSchema, NoInfer_<AMap>, ExtActions>): ModuleDef<Id, ModuleShape<SSchema, Schema.Schema<ActionsFromMap<NormalizedActionTokens<MergeActionMap<AMap, ExtActions>>>>, NormalizedActionTokens<MergeActionMap<AMap, ExtActions>>>, Ext>;
157
+ type ActionTokenMap<ADefs extends ActionDefs> = NormalizedActionTokens<ADefs>;
158
+ type ActionUnionOf<ADefs extends ActionDefs> = ActionsFromMap<ActionTokenMap<ADefs>>;
159
+ type ActionSchemaOf<ADefs extends ActionDefs> = Schema.Schema<ActionUnionOf<ADefs>>;
160
+ type Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = ModuleShape<SSchema, ActionSchemaOf<ADefs>, ActionTokenMap<ADefs>>;
161
+ declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}>(id: Id, def: MakeDef<Id, SSchema, AMap>): ModuleDef<Id, Shape<SSchema, AMap>, Ext>;
162
+ declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}, ExtActions extends ActionDefs = EmptyActionMap>(id: Id, def: MakeDef<Id, SSchema, AMap>, extend: MakeExtendDef<SSchema, NoInfer_<AMap>, ExtActions>): ModuleDef<Id, Shape<SSchema, MergeActionMap<AMap, ExtActions>>, Ext>;
152
163
  declare const Manage: {
153
164
  readonly make: <D extends (...args: any[]) => AnyModule>(config: {
154
165
  readonly kind?: string;
@@ -159,14 +170,28 @@ declare const Manage: {
159
170
  };
160
171
  };
161
172
 
173
+ declare const Module$1_ActionForTag: typeof ActionForTag;
162
174
  declare const Module$1_ActionOf: typeof ActionOf;
175
+ type Module$1_ActionSchemaOf<ADefs extends ActionDefs> = ActionSchemaOf<ADefs>;
176
+ type Module$1_ActionTokenMap<ADefs extends ActionDefs> = ActionTokenMap<ADefs>;
177
+ type Module$1_ActionUnionOf<ADefs extends ActionDefs> = ActionUnionOf<ADefs>;
163
178
  declare const Module$1_ActionsFromMap: typeof ActionsFromMap;
164
179
  type Module$1_AnyModule = AnyModule;
165
180
  declare const Module$1_AnyModuleShape: typeof AnyModuleShape;
166
181
  declare const Module$1_AnySchema: typeof AnySchema;
167
182
  declare const Module$1_BoundApi: typeof BoundApi;
183
+ declare const Module$1_BoundApiDispatchApi: typeof BoundApiDispatchApi;
184
+ declare const Module$1_BoundApiDispatchersApi: typeof BoundApiDispatchersApi;
185
+ declare const Module$1_BoundApiLifecycleApi: typeof BoundApiLifecycleApi;
186
+ declare const Module$1_BoundApiReducerApi: typeof BoundApiReducerApi;
187
+ declare const Module$1_BoundApiRootApi: typeof BoundApiRootApi;
188
+ declare const Module$1_BoundApiStateApi: typeof BoundApiStateApi;
189
+ declare const Module$1_BoundApiTraitsApi: typeof BoundApiTraitsApi;
190
+ declare const Module$1_BoundApiUseApi: typeof BoundApiUseApi;
168
191
  type Module$1_DevSource = DevSource;
192
+ declare const Module$1_DispatchEffect: typeof DispatchEffect;
169
193
  type Module$1_HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = HandleExtendFn<Sh, Ext>;
194
+ declare const Module$1_LogicEffect: typeof LogicEffect;
170
195
  type Module$1_LogicUnitOptions = LogicUnitOptions;
171
196
  type Module$1_MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap, ExtActions extends AnyActionMap = EmptyActionMap> = MakeExtendDef<SSchema, BaseActions, ExtActions>;
172
197
  declare const Module$1_Manage: typeof Manage;
@@ -177,14 +202,18 @@ type Module$1_ModuleDev = ModuleDev;
177
202
  declare const Module$1_ModuleHandle: typeof ModuleHandle;
178
203
  declare const Module$1_ModuleImpl: typeof ModuleImpl;
179
204
  declare const Module$1_ModuleLogic: typeof ModuleLogic;
205
+ type Module$1_ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleLogicApi<Sh, R, Ext>;
180
206
  declare const Module$1_ModuleRuntime: typeof ModuleRuntime;
207
+ declare const Module$1_ModuleRuntimeOfShape: typeof ModuleRuntimeOfShape;
208
+ type Module$1_ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleSelfHandleEffect<Sh, R, Ext>;
181
209
  declare const Module$1_ModuleShape: typeof ModuleShape;
182
210
  declare const Module$1_ModuleTag: typeof ModuleTag;
183
211
  type Module$1_MountedLogicUnitSummary = MountedLogicUnitSummary;
184
212
  declare const Module$1_MutatorsFromMap: typeof MutatorsFromMap;
213
+ declare const Module$1_ReadonlySubscriptionRef: typeof ReadonlySubscriptionRef;
185
214
  declare const Module$1_Reducer: typeof Reducer;
186
215
  declare const Module$1_ReducersFromMap: typeof ReducersFromMap;
187
- type Module$1_Shape<S extends AnySchema, M extends ActionDefs> = Shape<S, M>;
216
+ type Module$1_Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = Shape<SSchema, ADefs>;
188
217
  declare const Module$1_StateChangeWithMeta: typeof StateChangeWithMeta;
189
218
  declare const Module$1_StateCommitMeta: typeof StateCommitMeta;
190
219
  declare const Module$1_StateCommitMode: typeof StateCommitMode;
@@ -197,7 +226,7 @@ declare const Module$1_make: typeof make;
197
226
  declare const Module$1_unwrapImpl: typeof unwrapImpl;
198
227
  declare const Module$1_unwrapTag: typeof unwrapTag;
199
228
  declare namespace Module$1 {
200
- export { Module$1_ActionOf as ActionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, type Module$1_DevSource as DevSource, type Module$1_HandleExtendFn as HandleExtendFn, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
229
+ export { Module$1_ActionForTag as ActionForTag, Module$1_ActionOf as ActionOf, type Module$1_ActionSchemaOf as ActionSchemaOf, type Module$1_ActionTokenMap as ActionTokenMap, type Module$1_ActionUnionOf as ActionUnionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, Module$1_BoundApiDispatchApi as BoundApiDispatchApi, Module$1_BoundApiDispatchersApi as BoundApiDispatchersApi, Module$1_BoundApiLifecycleApi as BoundApiLifecycleApi, Module$1_BoundApiReducerApi as BoundApiReducerApi, Module$1_BoundApiRootApi as BoundApiRootApi, Module$1_BoundApiStateApi as BoundApiStateApi, Module$1_BoundApiTraitsApi as BoundApiTraitsApi, Module$1_BoundApiUseApi as BoundApiUseApi, type Module$1_DevSource as DevSource, Module$1_DispatchEffect as DispatchEffect, type Module$1_HandleExtendFn as HandleExtendFn, Module$1_LogicEffect as LogicEffect, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, type Module$1_ModuleLogicApi as ModuleLogicApi, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleRuntimeOfShape as ModuleRuntimeOfShape, type Module$1_ModuleSelfHandleEffect as ModuleSelfHandleEffect, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_ReadonlySubscriptionRef as ReadonlySubscriptionRef, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
201
230
  }
202
231
 
203
- export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type ModuleDef as d, unwrapImpl as e, descriptor as f, type MakeExtendDef as g, hasImpl as h, is as i, Manage as j, type Module as k, make as m, unwrapTag as u };
232
+ export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type ModuleSelfHandleEffect as d, type ModuleLogicApi as e, type ModuleDef as f, unwrapImpl as g, hasImpl as h, is as i, descriptor as j, type MakeExtendDef as k, type ActionTokenMap as l, type ActionUnionOf as m, type ActionSchemaOf as n, make as o, Manage as p, type Module as q, unwrapTag as u };
@@ -1,7 +1,9 @@
1
- import { h as AnyModuleShape, l as ModuleRuntime, o as StateOf, p as ActionOf, m as ModuleHandle, M as ModuleTag, k as ModuleImpl, A as AnySchema, z as ModuleLike, R as ReducersFromMap, j as ModuleLogic, B as BoundApi, O as ModuleImplementStateTransactionOptions, r as MutatorsFromMap, F as FieldPath, i as ModuleShape, q as ActionsFromMap, v as StateChangeWithMeta, u as StateCommitMeta, s as StateCommitMode, t as StateCommitPriority } from './module-B8CBqIZ_.cjs';
2
- import { Context, Layer, Effect, Schema } from 'effect';
3
- import { O as Of, D as Draft } from './Logic-DRh4sDZj.cjs';
4
- import { b as ActionDefs, a as ActionToken, N as NormalizedActionTokens } from './action-DiMDD_0v.cjs';
1
+ import { o as AnyModuleShape, t as ModuleRuntimeOfShape, u as ModuleHandle, L as LogicEffect, B as BoundApi, M as ModuleTag, r as ModuleImpl, A as AnySchema, $ as ModuleLike, R as ReducersFromMap, v as StateOf, q as ModuleLogic, a6 as ModuleImplementStateTransactionOptions, s as ModuleRuntime, y as MutatorsFromMap, F as FieldPath, x as ActionsFromMap, p as ModuleShape, E as ActionForTag, w as ActionOf, J as BoundApiDispatchApi, I as BoundApiDispatchersApi, K as BoundApiLifecycleApi, Q as BoundApiReducerApi, G as BoundApiRootApi, H as BoundApiStateApi, O as BoundApiTraitsApi, N as BoundApiUseApi, z as DispatchEffect, V as ReadonlySubscriptionRef, U as StateChangeWithMeta, a as StateCommitMeta, T as StateCommitMode, S as StateCommitPriority } from './module-Ds4tarcI.cjs';
2
+ import { ServiceMap, Layer, Effect, Schema } from 'effect';
3
+ import { D as Draft } from './Logic-09VQpIj3.cjs';
4
+ import { b as Workflow } from './Workflow-DmydkHO8.cjs';
5
+ import { b as ActionDefs, a as ActionToken, N as NormalizedActionTokens } from './action-BQxjPFEw.cjs';
6
+ import { J as JsonValue } from './ReadQuery-DXLzCE0E.cjs';
5
7
 
6
8
  interface DevSource {
7
9
  readonly file: string;
@@ -30,10 +32,14 @@ interface ModuleDescriptor {
30
32
  readonly actionKeys: ReadonlyArray<string>;
31
33
  readonly logicUnits: ReadonlyArray<MountedLogicUnitSummary>;
32
34
  readonly schemaKeys?: ReadonlyArray<string>;
33
- readonly meta?: Record<string, unknown>;
35
+ readonly meta?: Record<string, JsonValue>;
34
36
  readonly source?: DevSource;
35
37
  }
36
- type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime: ModuleRuntime<StateOf<Sh>, ActionOf<Sh>>, base: ModuleHandle<Sh>) => Ext | (ModuleHandle<Sh> & Ext) | null | undefined;
38
+ type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime: ModuleRuntimeOfShape<Sh>, base: ModuleHandle<Sh>) => Ext | (ModuleHandle<Sh> & Ext) | null | undefined;
39
+ type ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = LogicEffect<Sh, R, ModuleHandle<Sh> & Ext, never>;
40
+ type ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = BoundApi<Sh, R> & {
41
+ readonly self: ModuleSelfHandleEffect<Sh, R, Ext>;
42
+ };
37
43
  type NoInfer_<T> = [T][T extends any ? 0 : never];
38
44
  type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyModuleShape, Ext extends object = {}> = ModuleLike<Id, Sh, Ext> & {
39
45
  readonly shape: Sh;
@@ -49,14 +55,12 @@ type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyMo
49
55
  * - Mainly for DX/reflection; runtime normalizes them into primary reducers inside ModuleTag/ModuleFactory.
50
56
  */
51
57
  readonly reducers?: ReducersFromMap<Sh['stateSchema'], Sh['actionMap']>;
52
- readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<ModuleRuntime<StateOf<Sh>, ActionOf<Sh>>, E, R>;
58
+ readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<ModuleRuntimeOfShape<Sh>, E, R>;
53
59
  readonly schemas?: Record<string, unknown>;
54
- readonly meta?: Record<string, unknown>;
55
- readonly services?: Record<string, Context.Tag<any, any>>;
60
+ readonly meta?: Record<string, JsonValue>;
61
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
56
62
  readonly dev?: ModuleDev;
57
- readonly logic: <R = never, E = unknown>(build: (api: BoundApi<Sh, R> & {
58
- readonly self: Of<Sh, R, ModuleHandle<Sh> & Ext, never>;
59
- }) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
63
+ readonly logic: <R = never, E = unknown>(build: (api: ModuleLogicApi<Sh, R, Ext>) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
60
64
  };
61
65
  type AnyModule = {
62
66
  readonly _kind: 'Module';
@@ -66,8 +70,8 @@ type AnyModule = {
66
70
  readonly actions: Record<string, AnySchema>;
67
71
  readonly reducers?: Record<string, unknown>;
68
72
  readonly schemas?: Record<string, unknown>;
69
- readonly meta?: Record<string, unknown>;
70
- readonly services?: Record<string, Context.Tag<any, any>>;
73
+ readonly meta?: Record<string, JsonValue>;
74
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
71
75
  readonly dev?: ModuleDev;
72
76
  };
73
77
  type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}, R = never> = ModuleDefBase<Id, Sh, Ext> & {
@@ -75,11 +79,15 @@ type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {
75
79
  readonly impl: ModuleImpl<Id, Sh, R>;
76
80
  readonly withLogic: (logic: ModuleLogic<Sh, any, any>, options?: LogicUnitOptions) => Module<Id, Sh, Ext, R>;
77
81
  readonly withLogics: (...inputs: ReadonlyArray<MountInput<Sh>>) => Module<Id, Sh, Ext, R>;
82
+ readonly withWorkflow: (workflow: Workflow) => Module<Id, Sh, Ext, R>;
83
+ readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => Module<Id, Sh, Ext, R>;
78
84
  readonly withLayer: (layer: Layer.Layer<any, never, any>) => Module<Id, Sh, Ext, R>;
79
85
  readonly withLayers: (...layers: ReadonlyArray<Layer.Layer<any, never, any>>) => Module<Id, Sh, Ext, R>;
80
86
  };
81
87
  type ModuleDef<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}> = ModuleDefBase<Id, Sh, Ext> & {
82
88
  readonly _kind: 'ModuleDef';
89
+ readonly withWorkflow: (workflow: Workflow) => ModuleDef<Id, Sh, Ext>;
90
+ readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => ModuleDef<Id, Sh, Ext>;
83
91
  readonly implement: <R = never>(config: {
84
92
  readonly initial: StateOf<Sh>;
85
93
  readonly logics?: Array<ModuleLogic<Sh, R, any>>;
@@ -105,13 +113,13 @@ type MakeDef<Id extends string, SSchema extends AnySchema, AMap extends ActionDe
105
113
  readonly effects?: EffectsFromMap<NoInfer_<AMap>>;
106
114
  readonly traits?: unknown;
107
115
  readonly schemas?: Record<string, unknown>;
108
- readonly meta?: Record<string, unknown>;
109
- readonly services?: Record<string, Context.Tag<any, any>>;
116
+ readonly meta?: Record<string, JsonValue>;
117
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
110
118
  readonly dev?: ModuleDev;
111
119
  };
112
120
  type AnyActionMap = ActionDefs;
113
121
  type EmptyActionMap = Record<never, never>;
114
- type PayloadOfActionDef<V> = V extends Schema.Schema<any, any, any> ? Schema.Schema.Type<V> : V extends ActionToken<any, infer P, any> ? P : never;
122
+ type PayloadOfActionDef<V> = V extends Schema.Schema<any> ? Schema.Schema.Type<V> : V extends ActionToken<any, infer P, any> ? P : never;
115
123
  type DeclaredEffectHandler<Payload> = ($: unknown, payload: Payload) => Effect.Effect<void, any, any>;
116
124
  type EffectsFromMap<M extends AnyActionMap> = {
117
125
  readonly [K in keyof M]?: ReadonlyArray<DeclaredEffectHandler<PayloadOfActionDef<M[K]>>>;
@@ -132,8 +140,8 @@ type MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap,
132
140
  readonly immerReducers?: MutatorsFromMap<SSchema, MergeActionMap<BaseActions, ExtActions>>;
133
141
  readonly effects?: EffectsFromMap<MergeActionMap<BaseActions, ExtActions>>;
134
142
  readonly schemas?: Record<string, unknown>;
135
- readonly meta?: Record<string, unknown>;
136
- readonly services?: Record<string, Context.Tag<any, any>>;
143
+ readonly meta?: Record<string, JsonValue>;
144
+ readonly services?: Record<string, ServiceMap.Key<any, any>>;
137
145
  readonly dev?: ModuleDev;
138
146
  };
139
147
  declare const Reducer: {
@@ -146,9 +154,12 @@ declare const Reducer: {
146
154
  readonly payload?: infer P;
147
155
  } ? P | undefined : never) => void; }) => R;
148
156
  };
149
- type Shape<S extends AnySchema, M extends ActionDefs> = ModuleShape<S, Schema.Schema<ActionsFromMap<NormalizedActionTokens<M>>>, NormalizedActionTokens<M>>;
150
- declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}>(id: Id, def: MakeDef<Id, SSchema, AMap>): ModuleDef<Id, ModuleShape<SSchema, Schema.Schema<ActionsFromMap<NormalizedActionTokens<AMap>>>, NormalizedActionTokens<AMap>>, Ext>;
151
- declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}, ExtActions extends ActionDefs = EmptyActionMap>(id: Id, def: MakeDef<Id, SSchema, AMap>, extend: MakeExtendDef<SSchema, NoInfer_<AMap>, ExtActions>): ModuleDef<Id, ModuleShape<SSchema, Schema.Schema<ActionsFromMap<NormalizedActionTokens<MergeActionMap<AMap, ExtActions>>>>, NormalizedActionTokens<MergeActionMap<AMap, ExtActions>>>, Ext>;
157
+ type ActionTokenMap<ADefs extends ActionDefs> = NormalizedActionTokens<ADefs>;
158
+ type ActionUnionOf<ADefs extends ActionDefs> = ActionsFromMap<ActionTokenMap<ADefs>>;
159
+ type ActionSchemaOf<ADefs extends ActionDefs> = Schema.Schema<ActionUnionOf<ADefs>>;
160
+ type Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = ModuleShape<SSchema, ActionSchemaOf<ADefs>, ActionTokenMap<ADefs>>;
161
+ declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}>(id: Id, def: MakeDef<Id, SSchema, AMap>): ModuleDef<Id, Shape<SSchema, AMap>, Ext>;
162
+ declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}, ExtActions extends ActionDefs = EmptyActionMap>(id: Id, def: MakeDef<Id, SSchema, AMap>, extend: MakeExtendDef<SSchema, NoInfer_<AMap>, ExtActions>): ModuleDef<Id, Shape<SSchema, MergeActionMap<AMap, ExtActions>>, Ext>;
152
163
  declare const Manage: {
153
164
  readonly make: <D extends (...args: any[]) => AnyModule>(config: {
154
165
  readonly kind?: string;
@@ -159,14 +170,28 @@ declare const Manage: {
159
170
  };
160
171
  };
161
172
 
173
+ declare const Module$1_ActionForTag: typeof ActionForTag;
162
174
  declare const Module$1_ActionOf: typeof ActionOf;
175
+ type Module$1_ActionSchemaOf<ADefs extends ActionDefs> = ActionSchemaOf<ADefs>;
176
+ type Module$1_ActionTokenMap<ADefs extends ActionDefs> = ActionTokenMap<ADefs>;
177
+ type Module$1_ActionUnionOf<ADefs extends ActionDefs> = ActionUnionOf<ADefs>;
163
178
  declare const Module$1_ActionsFromMap: typeof ActionsFromMap;
164
179
  type Module$1_AnyModule = AnyModule;
165
180
  declare const Module$1_AnyModuleShape: typeof AnyModuleShape;
166
181
  declare const Module$1_AnySchema: typeof AnySchema;
167
182
  declare const Module$1_BoundApi: typeof BoundApi;
183
+ declare const Module$1_BoundApiDispatchApi: typeof BoundApiDispatchApi;
184
+ declare const Module$1_BoundApiDispatchersApi: typeof BoundApiDispatchersApi;
185
+ declare const Module$1_BoundApiLifecycleApi: typeof BoundApiLifecycleApi;
186
+ declare const Module$1_BoundApiReducerApi: typeof BoundApiReducerApi;
187
+ declare const Module$1_BoundApiRootApi: typeof BoundApiRootApi;
188
+ declare const Module$1_BoundApiStateApi: typeof BoundApiStateApi;
189
+ declare const Module$1_BoundApiTraitsApi: typeof BoundApiTraitsApi;
190
+ declare const Module$1_BoundApiUseApi: typeof BoundApiUseApi;
168
191
  type Module$1_DevSource = DevSource;
192
+ declare const Module$1_DispatchEffect: typeof DispatchEffect;
169
193
  type Module$1_HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = HandleExtendFn<Sh, Ext>;
194
+ declare const Module$1_LogicEffect: typeof LogicEffect;
170
195
  type Module$1_LogicUnitOptions = LogicUnitOptions;
171
196
  type Module$1_MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap, ExtActions extends AnyActionMap = EmptyActionMap> = MakeExtendDef<SSchema, BaseActions, ExtActions>;
172
197
  declare const Module$1_Manage: typeof Manage;
@@ -177,14 +202,18 @@ type Module$1_ModuleDev = ModuleDev;
177
202
  declare const Module$1_ModuleHandle: typeof ModuleHandle;
178
203
  declare const Module$1_ModuleImpl: typeof ModuleImpl;
179
204
  declare const Module$1_ModuleLogic: typeof ModuleLogic;
205
+ type Module$1_ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleLogicApi<Sh, R, Ext>;
180
206
  declare const Module$1_ModuleRuntime: typeof ModuleRuntime;
207
+ declare const Module$1_ModuleRuntimeOfShape: typeof ModuleRuntimeOfShape;
208
+ type Module$1_ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleSelfHandleEffect<Sh, R, Ext>;
181
209
  declare const Module$1_ModuleShape: typeof ModuleShape;
182
210
  declare const Module$1_ModuleTag: typeof ModuleTag;
183
211
  type Module$1_MountedLogicUnitSummary = MountedLogicUnitSummary;
184
212
  declare const Module$1_MutatorsFromMap: typeof MutatorsFromMap;
213
+ declare const Module$1_ReadonlySubscriptionRef: typeof ReadonlySubscriptionRef;
185
214
  declare const Module$1_Reducer: typeof Reducer;
186
215
  declare const Module$1_ReducersFromMap: typeof ReducersFromMap;
187
- type Module$1_Shape<S extends AnySchema, M extends ActionDefs> = Shape<S, M>;
216
+ type Module$1_Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = Shape<SSchema, ADefs>;
188
217
  declare const Module$1_StateChangeWithMeta: typeof StateChangeWithMeta;
189
218
  declare const Module$1_StateCommitMeta: typeof StateCommitMeta;
190
219
  declare const Module$1_StateCommitMode: typeof StateCommitMode;
@@ -197,7 +226,7 @@ declare const Module$1_make: typeof make;
197
226
  declare const Module$1_unwrapImpl: typeof unwrapImpl;
198
227
  declare const Module$1_unwrapTag: typeof unwrapTag;
199
228
  declare namespace Module$1 {
200
- export { Module$1_ActionOf as ActionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, type Module$1_DevSource as DevSource, type Module$1_HandleExtendFn as HandleExtendFn, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
229
+ export { Module$1_ActionForTag as ActionForTag, Module$1_ActionOf as ActionOf, type Module$1_ActionSchemaOf as ActionSchemaOf, type Module$1_ActionTokenMap as ActionTokenMap, type Module$1_ActionUnionOf as ActionUnionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, Module$1_BoundApiDispatchApi as BoundApiDispatchApi, Module$1_BoundApiDispatchersApi as BoundApiDispatchersApi, Module$1_BoundApiLifecycleApi as BoundApiLifecycleApi, Module$1_BoundApiReducerApi as BoundApiReducerApi, Module$1_BoundApiRootApi as BoundApiRootApi, Module$1_BoundApiStateApi as BoundApiStateApi, Module$1_BoundApiTraitsApi as BoundApiTraitsApi, Module$1_BoundApiUseApi as BoundApiUseApi, type Module$1_DevSource as DevSource, Module$1_DispatchEffect as DispatchEffect, type Module$1_HandleExtendFn as HandleExtendFn, Module$1_LogicEffect as LogicEffect, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, type Module$1_ModuleLogicApi as ModuleLogicApi, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleRuntimeOfShape as ModuleRuntimeOfShape, type Module$1_ModuleSelfHandleEffect as ModuleSelfHandleEffect, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_ReadonlySubscriptionRef as ReadonlySubscriptionRef, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
201
230
  }
202
231
 
203
- export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type ModuleDef as d, unwrapImpl as e, descriptor as f, type MakeExtendDef as g, hasImpl as h, is as i, Manage as j, type Module as k, make as m, unwrapTag as u };
232
+ export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type ModuleSelfHandleEffect as d, type ModuleLogicApi as e, type ModuleDef as f, unwrapImpl as g, hasImpl as h, is as i, descriptor as j, type MakeExtendDef as k, type ActionTokenMap as l, type ActionUnionOf as m, type ActionSchemaOf as n, make as o, Manage as p, type Module as q, unwrapTag as u };