@graphrefly/graphrefly 0.26.0 → 0.28.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.
- package/dist/backoff-HPZMEZNF.js +1 -0
- package/dist/cascading-B-5zmAUv.d.cts +180 -0
- package/dist/cascading-D9WG1-9L.d.ts +180 -0
- package/dist/chunk-2FOAM3OR.js +1 -0
- package/dist/chunk-2PMCKKRK.js +1 -0
- package/dist/chunk-3JXNEPCD.js +2 -0
- package/dist/chunk-3R5HFPX7.js +78 -0
- package/dist/chunk-4GKB4OUJ.js +1 -0
- package/dist/chunk-4VVTGLXJ.js +1 -0
- package/dist/chunk-5QDBSZBV.js +1 -0
- package/dist/chunk-6QZNQS5B.js +1 -0
- package/dist/chunk-6V3SEX2I.js +1 -0
- package/dist/chunk-76A3HVQE.js +9 -0
- package/dist/chunk-7H6LGFUG.js +64 -0
- package/dist/chunk-CK2E7BTU.js +1 -0
- package/dist/chunk-CKCSDI7T.js +6 -0
- package/dist/chunk-CRXTH3SH.js +1 -0
- package/dist/chunk-CWLN3X3N.js +1 -0
- package/dist/chunk-D7A7DBE4.js +1 -0
- package/dist/chunk-DBGGMN3D.js +1 -0
- package/dist/chunk-DQA3UIQ2.js +1 -0
- package/dist/chunk-ERLIRFPA.js +1 -0
- package/dist/chunk-ESMPEKEV.js +1 -0
- package/dist/chunk-ETWTCCJI.js +1 -0
- package/dist/chunk-FNYWM6JC.js +1 -0
- package/dist/chunk-GHJJR5P4.js +1 -0
- package/dist/chunk-GPW2V3RE.js +1 -0
- package/dist/chunk-I6VIH3VA.js +1 -0
- package/dist/chunk-K2GNMCQT.js +1 -0
- package/dist/chunk-LBTDSCCO.js +3 -0
- package/dist/chunk-LQ3Y5NJS.js +1 -0
- package/dist/chunk-MIQTDPY4.js +5 -0
- package/dist/chunk-MTTAAPCK.js +1 -0
- package/dist/chunk-OAWLCNJJ.js +1 -0
- package/dist/chunk-OBKQQA5I.js +1 -0
- package/dist/chunk-OYHGKYQM.js +1 -0
- package/dist/chunk-PIOGHC63.js +1 -0
- package/dist/chunk-QWAPKG3O.js +2 -0
- package/dist/chunk-QYADASLV.js +1 -0
- package/dist/chunk-RHESUC3V.js +43 -0
- package/dist/chunk-S35VARIR.js +1 -0
- package/dist/chunk-SC3U7ETD.js +1 -0
- package/dist/chunk-U3AICJKU.js +1 -0
- package/dist/chunk-UMBIDLJ4.js +1 -0
- package/dist/chunk-UPHHLMHE.js +1 -0
- package/dist/chunk-UPXUCFMX.js +1 -0
- package/dist/chunk-UWJE5FQA.js +18 -0
- package/dist/chunk-V6YQICXZ.js +1 -0
- package/dist/chunk-VIMF6LGM.js +1 -0
- package/dist/chunk-VJLMUKOI.js +1 -0
- package/dist/chunk-VPYBOXVT.js +1 -0
- package/dist/chunk-VTPVOGHH.js +1 -0
- package/dist/chunk-WQ2BN6X6.js +1 -0
- package/dist/chunk-XAUNPIMX.js +1 -0
- package/dist/chunk-Y2EMPB3I.js +1 -0
- package/dist/chunk-Z4HDAS2Q.js +1 -0
- package/dist/chunk-ZB5EHBIO.js +1 -0
- package/dist/chunk-ZV2DXV5A.js +23 -0
- package/dist/compat/index.cjs +14 -7656
- package/dist/compat/index.d.cts +15 -14
- package/dist/compat/index.d.ts +15 -14
- package/dist/compat/index.js +1 -49
- package/dist/compat/jotai/index.cjs +1 -2048
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +1 -9
- package/dist/compat/nanostores/index.cjs +1 -2175
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +1 -23
- package/dist/compat/nestjs/index.cjs +14 -6782
- package/dist/compat/nestjs/index.d.cts +7 -6
- package/dist/compat/nestjs/index.d.ts +7 -6
- package/dist/compat/nestjs/index.js +1 -82
- package/dist/compat/react/index.cjs +1 -141
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/react/index.js +1 -12
- package/dist/compat/solid/index.cjs +1 -128
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/solid/index.js +1 -12
- package/dist/compat/svelte/index.cjs +1 -131
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/svelte/index.js +1 -12
- package/dist/compat/vue/index.cjs +1 -146
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/vue/index.js +1 -12
- package/dist/compat/zustand/index.cjs +6 -4931
- package/dist/compat/zustand/index.d.cts +5 -5
- package/dist/compat/zustand/index.d.ts +5 -5
- package/dist/compat/zustand/index.js +1 -12
- package/dist/composite-B-xqw4Kk.d.cts +69 -0
- package/dist/composite-BhbKHbOS.d.ts +69 -0
- package/dist/core/index.cjs +1 -2271
- package/dist/core/index.d.cts +4 -3
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.js +1 -110
- package/dist/extra/browser.cjs +1 -0
- package/dist/extra/browser.d.cts +3 -0
- package/dist/extra/browser.d.ts +3 -0
- package/dist/extra/browser.js +1 -0
- package/dist/extra/index.cjs +23 -9971
- package/dist/extra/index.d.cts +13 -5
- package/dist/extra/index.d.ts +13 -5
- package/dist/extra/index.js +1 -375
- package/dist/extra/node.cjs +3 -0
- package/dist/extra/node.d.cts +81 -0
- package/dist/extra/node.d.ts +81 -0
- package/dist/extra/node.js +2 -0
- package/dist/extra/operators.cjs +1 -0
- package/dist/extra/operators.d.cts +910 -0
- package/dist/extra/operators.d.ts +910 -0
- package/dist/extra/operators.js +1 -0
- package/dist/extra/reactive.cjs +1 -0
- package/dist/extra/reactive.d.cts +352 -0
- package/dist/extra/reactive.d.ts +352 -0
- package/dist/extra/reactive.js +1 -0
- package/dist/extra/sources.cjs +1 -2486
- package/dist/extra/sources.d.cts +6 -2
- package/dist/extra/sources.d.ts +6 -2
- package/dist/extra/sources.js +1 -57
- package/dist/extra/storage-browser.cjs +1 -0
- package/dist/extra/storage-browser.d.cts +71 -0
- package/dist/extra/storage-browser.d.ts +71 -0
- package/dist/extra/storage-browser.js +1 -0
- package/dist/extra/storage-core.cjs +1 -0
- package/dist/extra/storage-core.d.cts +98 -0
- package/dist/extra/storage-core.d.ts +98 -0
- package/dist/extra/storage-core.js +1 -0
- package/dist/extra/storage-node.cjs +2 -0
- package/dist/extra/storage-node.d.cts +60 -0
- package/dist/extra/storage-node.d.ts +60 -0
- package/dist/extra/storage-node.js +1 -0
- package/dist/fallback-BaTS7vVY.d.cts +258 -0
- package/dist/fallback-eOm3LNxP.d.ts +258 -0
- package/dist/graph/index.cjs +6 -5030
- package/dist/graph/index.d.cts +6 -5
- package/dist/graph/index.d.ts +6 -5
- package/dist/graph/index.js +1 -50
- package/dist/{graph-6tZ5jEzr.d.cts → graph-BZGRXwOm.d.ts} +134 -31
- package/dist/{graph-DQ69XU0g.d.ts → graph-D48Qw9Cg.d.cts} +134 -31
- package/dist/index-8FSVk4Uf.d.ts +135 -0
- package/dist/index-9oDeHH2u.d.cts +291 -0
- package/dist/index-B0c4cmIO.d.ts +207 -0
- package/dist/{index-CDAjUFIv.d.ts → index-B1AmmSlb.d.ts} +1 -1
- package/dist/{index-Bd_fwmLf.d.cts → index-B2pwesl9.d.cts} +1 -1
- package/dist/index-BHvIquRZ.d.ts +1957 -0
- package/dist/{index-CPgZ5wRl.d.ts → index-BVHOrDwO.d.ts} +1 -1
- package/dist/{index-DrISNAOm.d.ts → index-BWJV63ti.d.ts} +1 -1
- package/dist/{index-B_IP40nB.d.cts → index-B_agccPe.d.cts} +1 -1
- package/dist/index-BgyGlizc.d.ts +163 -0
- package/dist/index-BpA5c4G9.d.ts +357 -0
- package/dist/index-BpIFjILY.d.cts +357 -0
- package/dist/{index-qldRdbQw.d.ts → index-Bqachn9_.d.ts} +1 -1
- package/dist/index-Btib9rsU.d.ts +607 -0
- package/dist/{index-BYOHF0zP.d.ts → index-BwM9BEkt.d.ts} +1 -1
- package/dist/index-BxJ86YZZ.d.cts +105 -0
- package/dist/index-C73n7lo-.d.cts +251 -0
- package/dist/index-CEXXwWVH.d.cts +192 -0
- package/dist/index-CHEswufn.d.cts +163 -0
- package/dist/{index-xdGjv0nO.d.ts → index-CMn8S8Hw.d.ts} +1 -1
- package/dist/{index-QBpffFW-.d.cts → index-CRO83MmV.d.cts} +1 -1
- package/dist/{index-BjI6ty9z.d.ts → index-CloUk1kY.d.ts} +9 -9
- package/dist/index-CpgYhnrG.d.ts +291 -0
- package/dist/{index-CUyrtuOf.d.cts → index-Cyojz0AE.d.cts} +1 -1
- package/dist/{demo-shell-DEp-nMTl.d.ts → index-CzobVSMr.d.ts} +14 -14
- package/dist/index-Czq6ynh8.d.ts +143 -0
- package/dist/index-D-YB-Vl3.d.ts +195 -0
- package/dist/index-DAlweici.d.ts +231 -0
- package/dist/index-DEwTb_fm.d.cts +1957 -0
- package/dist/{index-DFhjO4Gg.d.cts → index-DL-rYJrx.d.cts} +1 -1
- package/dist/index-DP4ZTkdw.d.ts +139 -0
- package/dist/{index-BeIdBfcb.d.cts → index-DUqMOlKZ.d.cts} +200 -2366
- package/dist/{index-Bxb5ZYc9.d.cts → index-D_NwnRYS.d.cts} +1 -1
- package/dist/index-DaLJvH8Z.d.ts +105 -0
- package/dist/index-DcXZBF5a.d.cts +135 -0
- package/dist/index-DfyOkTvs.d.ts +321 -0
- package/dist/{index-CmnuOibw.d.ts → index-DiOXyAwt.d.ts} +1 -1
- package/dist/index-DpHe5e0Q.d.ts +186 -0
- package/dist/index-DraikLjn.d.ts +86 -0
- package/dist/{index-BEfE8H_G.d.cts → index-DxsnAMWD.d.cts} +9 -9
- package/dist/index-DyxjtScX.d.cts +207 -0
- package/dist/index-HDpJe9hX.d.ts +251 -0
- package/dist/index-O6TgGUBV.d.cts +195 -0
- package/dist/{index-B4MP_8V_.d.cts → index-Oi8d8w4R.d.cts} +1 -1
- package/dist/{index-BW1z3BN9.d.ts → index-ROpQmGjE.d.ts} +30 -6
- package/dist/index-RukJ4DLS.d.cts +607 -0
- package/dist/{index-DdD5MVDL.d.ts → index-ZftwfxJM.d.ts} +200 -2366
- package/dist/{index-CuYwdKO-.d.ts → index-cByzxQIC.d.cts} +10 -195
- package/dist/index-dtN7YA2x.d.cts +143 -0
- package/dist/{index-C8mdwMXc.d.cts → index-fM6y00vT.d.cts} +30 -6
- package/dist/{index-_oMEWlDq.d.cts → index-m-yHof5p.d.ts} +10 -195
- package/dist/index-pXrDMpRO.d.cts +231 -0
- package/dist/index-rHJSKsU8.d.cts +186 -0
- package/dist/index-rX8HBM5h.d.cts +321 -0
- package/dist/{index-CUwyr1Kk.d.cts → index-rnwQly8X.d.cts} +147 -20
- package/dist/index-sm373fsH.d.ts +192 -0
- package/dist/index-tbf2gKHd.d.cts +139 -0
- package/dist/{demo-shell-26p5fVxn.d.cts → index-u15meRxL.d.cts} +14 -14
- package/dist/{index-eJ6T_qGM.d.ts → index-umtoWT8K.d.ts} +147 -20
- package/dist/index-vscRDkjW.d.cts +86 -0
- package/dist/index.cjs +150 -24142
- package/dist/index.d.cts +69 -3756
- package/dist/index.d.ts +69 -3756
- package/dist/index.js +1 -7292
- package/dist/{meta-C0-8XW6Q.d.cts → meta-Cgj6zeji.d.cts} +5 -5
- package/dist/{meta-BGqSZ7mt.d.ts → meta-CwesDrMD.d.ts} +5 -5
- package/dist/{node-C_IBuvX2.d.cts → node-Cc1TniY8.d.cts} +36 -9
- package/dist/{node-C_IBuvX2.d.ts → node-Cc1TniY8.d.ts} +36 -9
- package/dist/{observable-DCk45RH5.d.ts → observable-Ct-gJ9jI.d.ts} +1 -1
- package/dist/{observable-Crr1jgzx.d.cts → observable-glXQoGj2.d.cts} +1 -1
- package/dist/patterns/ai/browser.cjs +25 -0
- package/dist/patterns/ai/browser.d.cts +127 -0
- package/dist/patterns/ai/browser.d.ts +127 -0
- package/dist/patterns/ai/browser.js +3 -0
- package/dist/patterns/ai/index.cjs +91 -0
- package/dist/patterns/ai/index.d.cts +17 -0
- package/dist/patterns/ai/index.d.ts +17 -0
- package/dist/patterns/ai/index.js +1 -0
- package/dist/patterns/ai/node.cjs +2 -0
- package/dist/patterns/ai/node.d.cts +58 -0
- package/dist/patterns/ai/node.d.ts +58 -0
- package/dist/patterns/ai/node.js +1 -0
- package/dist/patterns/audit/index.cjs +6 -0
- package/dist/patterns/audit/index.d.cts +6 -0
- package/dist/patterns/audit/index.d.ts +6 -0
- package/dist/patterns/audit/index.js +1 -0
- package/dist/patterns/cqrs/index.cjs +6 -0
- package/dist/patterns/cqrs/index.d.cts +5 -0
- package/dist/patterns/cqrs/index.d.ts +5 -0
- package/dist/patterns/cqrs/index.js +1 -0
- package/dist/patterns/demo-shell/index.cjs +7 -0
- package/dist/patterns/demo-shell/index.d.cts +6 -0
- package/dist/patterns/demo-shell/index.d.ts +6 -0
- package/dist/patterns/demo-shell/index.js +1 -0
- package/dist/patterns/domain-templates/index.cjs +6 -0
- package/dist/patterns/domain-templates/index.d.cts +5 -0
- package/dist/patterns/domain-templates/index.d.ts +5 -0
- package/dist/patterns/domain-templates/index.js +1 -0
- package/dist/patterns/graphspec/index.cjs +83 -0
- package/dist/patterns/graphspec/index.d.cts +7 -0
- package/dist/patterns/graphspec/index.d.ts +7 -0
- package/dist/patterns/graphspec/index.js +1 -0
- package/dist/patterns/guarded-execution/index.cjs +6 -0
- package/dist/patterns/guarded-execution/index.d.cts +7 -0
- package/dist/patterns/guarded-execution/index.d.ts +7 -0
- package/dist/patterns/guarded-execution/index.js +1 -0
- package/dist/patterns/harness/index.cjs +48 -0
- package/dist/patterns/harness/index.d.cts +8 -0
- package/dist/patterns/harness/index.d.ts +8 -0
- package/dist/patterns/harness/index.js +1 -0
- package/dist/patterns/job-queue/index.cjs +6 -0
- package/dist/patterns/job-queue/index.d.cts +5 -0
- package/dist/patterns/job-queue/index.d.ts +5 -0
- package/dist/patterns/job-queue/index.js +1 -0
- package/dist/patterns/lens/index.cjs +6 -0
- package/dist/patterns/lens/index.d.cts +7 -0
- package/dist/patterns/lens/index.d.ts +7 -0
- package/dist/patterns/lens/index.js +1 -0
- package/dist/patterns/memory/index.cjs +6 -0
- package/dist/patterns/memory/index.d.cts +5 -0
- package/dist/patterns/memory/index.d.ts +5 -0
- package/dist/patterns/memory/index.js +1 -0
- package/dist/patterns/messaging/index.cjs +6 -0
- package/dist/patterns/messaging/index.d.cts +5 -0
- package/dist/patterns/messaging/index.d.ts +5 -0
- package/dist/patterns/messaging/index.js +1 -0
- package/dist/patterns/orchestration/index.cjs +6 -0
- package/dist/patterns/orchestration/index.d.cts +6 -0
- package/dist/patterns/orchestration/index.d.ts +6 -0
- package/dist/patterns/orchestration/index.js +1 -0
- package/dist/patterns/reactive-layout/index.cjs +7 -6444
- package/dist/patterns/reactive-layout/index.d.cts +6 -6
- package/dist/patterns/reactive-layout/index.d.ts +6 -6
- package/dist/patterns/reactive-layout/index.js +1 -56
- package/dist/patterns/reduction/index.cjs +6 -0
- package/dist/patterns/reduction/index.d.cts +5 -0
- package/dist/patterns/reduction/index.d.ts +5 -0
- package/dist/patterns/reduction/index.js +1 -0
- package/dist/patterns/refine-loop/index.cjs +8 -0
- package/dist/patterns/refine-loop/index.d.cts +7 -0
- package/dist/patterns/refine-loop/index.d.ts +7 -0
- package/dist/patterns/refine-loop/index.js +1 -0
- package/dist/patterns/resilient-pipeline/index.cjs +1 -0
- package/dist/patterns/resilient-pipeline/index.d.cts +7 -0
- package/dist/patterns/resilient-pipeline/index.d.ts +7 -0
- package/dist/patterns/resilient-pipeline/index.js +1 -0
- package/dist/patterns/surface/index.cjs +14 -0
- package/dist/patterns/surface/index.d.cts +8 -0
- package/dist/patterns/surface/index.d.ts +8 -0
- package/dist/patterns/surface/index.js +1 -0
- package/dist/{reactive-layout-BaOQefHu.d.cts → reactive-layout-CpYb5qLP.d.cts} +2 -2
- package/dist/{reactive-layout-D9gejYXE.d.ts → reactive-layout-D8u4wuUR.d.ts} +2 -2
- package/dist/reactive-log-DPzuUDj5.d.cts +190 -0
- package/dist/reactive-log-YuH9VYN8.d.ts +190 -0
- package/dist/reactive-map-CdbNoSgP.d.ts +238 -0
- package/dist/reactive-map-DUeRmb9d.d.cts +238 -0
- package/dist/resilience-Ba5-b4WD.d.cts +493 -0
- package/dist/resilience-CGRzhnD3.d.ts +493 -0
- package/dist/resilience-QAHKANT5.js +1 -0
- package/dist/sugar-BV0htudb.d.cts +205 -0
- package/dist/sugar-Dtyrq2_q.d.ts +205 -0
- package/dist/topology-tree-CYHOwQZ_.d.ts +25 -0
- package/dist/topology-tree-DROUdq5B.d.cts +25 -0
- package/dist/types-O3GzJY2U.d.cts +401 -0
- package/dist/types-u64Ose53.d.ts +401 -0
- package/package.json +267 -7
- package/dist/chunk-3ZWCKRHX.js +0 -117
- package/dist/chunk-3ZWCKRHX.js.map +0 -1
- package/dist/chunk-6LDQFTYS.js +0 -102
- package/dist/chunk-6LDQFTYS.js.map +0 -1
- package/dist/chunk-7TAQJHQV.js +0 -103
- package/dist/chunk-7TAQJHQV.js.map +0 -1
- package/dist/chunk-AMCG74RZ.js +0 -7000
- package/dist/chunk-AMCG74RZ.js.map +0 -1
- package/dist/chunk-BVZYTZ5H.js +0 -599
- package/dist/chunk-BVZYTZ5H.js.map +0 -1
- package/dist/chunk-FQMKGR6L.js +0 -330
- package/dist/chunk-FQMKGR6L.js.map +0 -1
- package/dist/chunk-HXZEYDUR.js +0 -94
- package/dist/chunk-HXZEYDUR.js.map +0 -1
- package/dist/chunk-IZYUSJC7.js +0 -1369
- package/dist/chunk-IZYUSJC7.js.map +0 -1
- package/dist/chunk-J22W6HV3.js +0 -107
- package/dist/chunk-J22W6HV3.js.map +0 -1
- package/dist/chunk-JSCT3CR4.js +0 -38
- package/dist/chunk-JSCT3CR4.js.map +0 -1
- package/dist/chunk-JYXEWPH4.js +0 -62
- package/dist/chunk-JYXEWPH4.js.map +0 -1
- package/dist/chunk-LCE3GF5P.js +0 -866
- package/dist/chunk-LCE3GF5P.js.map +0 -1
- package/dist/chunk-MJ2NKQQL.js +0 -119
- package/dist/chunk-MJ2NKQQL.js.map +0 -1
- package/dist/chunk-N6UR7YVY.js +0 -198
- package/dist/chunk-N6UR7YVY.js.map +0 -1
- package/dist/chunk-OHISZPOJ.js +0 -97
- package/dist/chunk-OHISZPOJ.js.map +0 -1
- package/dist/chunk-PHOUUNK7.js +0 -2291
- package/dist/chunk-PHOUUNK7.js.map +0 -1
- package/dist/chunk-RB6QPHJ7.js +0 -393
- package/dist/chunk-RB6QPHJ7.js.map +0 -1
- package/dist/chunk-SN4YWWYO.js +0 -171
- package/dist/chunk-SN4YWWYO.js.map +0 -1
- package/dist/chunk-SX52TAR4.js +0 -110
- package/dist/chunk-SX52TAR4.js.map +0 -1
- package/dist/chunk-THTWHNU4.js +0 -2712
- package/dist/chunk-THTWHNU4.js.map +0 -1
- package/dist/chunk-VYPWMZ6H.js +0 -98
- package/dist/chunk-VYPWMZ6H.js.map +0 -1
- package/dist/chunk-XGPU467M.js +0 -136
- package/dist/chunk-XGPU467M.js.map +0 -1
- package/dist/chunk-ZQMEI34O.js +0 -713
- package/dist/chunk-ZQMEI34O.js.map +0 -1
- package/dist/compat/index.cjs.map +0 -1
- package/dist/compat/index.js.map +0 -1
- package/dist/compat/jotai/index.cjs.map +0 -1
- package/dist/compat/jotai/index.js.map +0 -1
- package/dist/compat/nanostores/index.cjs.map +0 -1
- package/dist/compat/nanostores/index.js.map +0 -1
- package/dist/compat/nestjs/index.cjs.map +0 -1
- package/dist/compat/nestjs/index.js.map +0 -1
- package/dist/compat/react/index.cjs.map +0 -1
- package/dist/compat/react/index.js.map +0 -1
- package/dist/compat/solid/index.cjs.map +0 -1
- package/dist/compat/solid/index.js.map +0 -1
- package/dist/compat/svelte/index.cjs.map +0 -1
- package/dist/compat/svelte/index.js.map +0 -1
- package/dist/compat/vue/index.cjs.map +0 -1
- package/dist/compat/vue/index.js.map +0 -1
- package/dist/compat/zustand/index.cjs.map +0 -1
- package/dist/compat/zustand/index.js.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/extra/index.cjs.map +0 -1
- package/dist/extra/index.js.map +0 -1
- package/dist/extra/sources.cjs.map +0 -1
- package/dist/extra/sources.js.map +0 -1
- package/dist/graph/index.cjs.map +0 -1
- package/dist/graph/index.js.map +0 -1
- package/dist/index-C0ZXMaXO.d.cts +0 -392
- package/dist/index-CY2TljO4.d.ts +0 -392
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/patterns/demo-shell.cjs +0 -5604
- package/dist/patterns/demo-shell.cjs.map +0 -1
- package/dist/patterns/demo-shell.d.cts +0 -6
- package/dist/patterns/demo-shell.d.ts +0 -6
- package/dist/patterns/demo-shell.js +0 -15
- package/dist/patterns/demo-shell.js.map +0 -1
- package/dist/patterns/reactive-layout/index.cjs.map +0 -1
- package/dist/patterns/reactive-layout/index.js.map +0 -1
- package/dist/storage-BMycWEh2.d.ts +0 -190
- package/dist/storage-DiqWHzVI.d.cts +0 -190
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { a as Node, N as NodeOptions, c as NodeActions } from './node-Cc1TniY8.js';
|
|
2
|
+
import { D as DerivedFn } from './sugar-Dtyrq2_q.js';
|
|
3
|
+
import { G as Graph, a as GraphOptions } from './graph-BZGRXwOm.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Orchestration patterns (roadmap §4.1).
|
|
7
|
+
*
|
|
8
|
+
* Domain-layer helpers that build workflow shapes on top of core + extra primitives.
|
|
9
|
+
* Exported under the `patterns.orchestration` namespace to avoid collisions with
|
|
10
|
+
* Phase 2 operator names (for example `gate`, `forEach`).
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
type StepRef = string | Node<unknown>;
|
|
14
|
+
type OrchestrationMeta = {
|
|
15
|
+
orchestration?: true;
|
|
16
|
+
orchestration_type?: string;
|
|
17
|
+
};
|
|
18
|
+
type OrchestrationStepOptions = Omit<NodeOptions<unknown>, "describeKind" | "name" | "meta"> & {
|
|
19
|
+
deps?: ReadonlyArray<StepRef>;
|
|
20
|
+
meta?: Record<string, unknown> & OrchestrationMeta;
|
|
21
|
+
};
|
|
22
|
+
type BranchResult<T> = {
|
|
23
|
+
branch: "then" | "else";
|
|
24
|
+
value: T;
|
|
25
|
+
};
|
|
26
|
+
type SensorControls<T> = {
|
|
27
|
+
node: Node<T>;
|
|
28
|
+
push(value: T): void;
|
|
29
|
+
error(err: unknown): void;
|
|
30
|
+
complete(): void;
|
|
31
|
+
};
|
|
32
|
+
type LoopOptions = Omit<OrchestrationStepOptions, "deps"> & {
|
|
33
|
+
iterations?: number | StepRef;
|
|
34
|
+
};
|
|
35
|
+
type SubPipelineBuilder = (sub: Graph) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Creates an orchestration graph container.
|
|
38
|
+
*/
|
|
39
|
+
declare function pipeline(name: string, opts?: GraphOptions): Graph;
|
|
40
|
+
/**
|
|
41
|
+
* Registers a workflow task node.
|
|
42
|
+
*/
|
|
43
|
+
declare function task<T>(graph: Graph, name: string, run: DerivedFn<T>, opts?: OrchestrationStepOptions): Node<T>;
|
|
44
|
+
/**
|
|
45
|
+
* Emits tagged branch outcomes (`then` / `else`) for each source value.
|
|
46
|
+
*/
|
|
47
|
+
declare function branch<T>(graph: Graph, name: string, source: StepRef, predicate: (value: T) => boolean, opts?: Omit<OrchestrationStepOptions, "deps">): Node<BranchResult<T>>;
|
|
48
|
+
type ApprovalOptions = Omit<OrchestrationStepOptions, "deps"> & {
|
|
49
|
+
isApproved?: (value: unknown) => boolean;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Human/LLM approval gate over a source value.
|
|
53
|
+
*/
|
|
54
|
+
declare function approval<T>(graph: Graph, name: string, source: StepRef, approver: StepRef, opts?: ApprovalOptions): Node<T>;
|
|
55
|
+
interface GateOptions {
|
|
56
|
+
/** Maximum queue size. Oldest values are FIFO-dropped when exceeded. Default: Infinity. */
|
|
57
|
+
maxPending?: number;
|
|
58
|
+
/** Start in open mode (auto-approve). Default: false. */
|
|
59
|
+
startOpen?: boolean;
|
|
60
|
+
meta?: Record<string, unknown>;
|
|
61
|
+
}
|
|
62
|
+
/** Control surface returned by {@link gate}. */
|
|
63
|
+
interface GateController<T> {
|
|
64
|
+
/** The output node registered in the graph (subscribe to receive approved values). */
|
|
65
|
+
node: Node<T>;
|
|
66
|
+
/** Reactive queue of values waiting for approval. */
|
|
67
|
+
pending: Node<T[]>;
|
|
68
|
+
/** Derived count of pending items. */
|
|
69
|
+
count: Node<number>;
|
|
70
|
+
/** Whether the gate is currently open (auto-approving). */
|
|
71
|
+
isOpen: Node<boolean>;
|
|
72
|
+
/** Approve and forward the next `count` pending values (default: 1). */
|
|
73
|
+
approve(count?: number): void;
|
|
74
|
+
/** Reject (discard) the next `count` pending values (default: 1). */
|
|
75
|
+
reject(count?: number): void;
|
|
76
|
+
/**
|
|
77
|
+
* Transform and forward `count` pending values (default: 1).
|
|
78
|
+
* `fn` receives `(value, index, pending)` — Array.map-style.
|
|
79
|
+
*/
|
|
80
|
+
modify(fn: (value: T, index: number, pending: readonly T[]) => T, count?: number): void;
|
|
81
|
+
/** Flush all pending values and auto-approve future values. */
|
|
82
|
+
open(): void;
|
|
83
|
+
/** Re-enable manual gating (stop auto-approving). */
|
|
84
|
+
close(): void;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Human-in-the-loop gate: queues incoming values from `source` and lets an external
|
|
88
|
+
* controller {@link GateController.approve approve}, {@link GateController.reject reject},
|
|
89
|
+
* or {@link GateController.modify modify} them before forwarding downstream.
|
|
90
|
+
*
|
|
91
|
+
* Observable surfaces (`pending`, `count`, `isOpen`) are reactive nodes registered in
|
|
92
|
+
* the graph. The gate output node is also registered.
|
|
93
|
+
*/
|
|
94
|
+
declare function gate<T>(graph: Graph, name: string, source: StepRef, opts?: GateOptions): GateController<T>;
|
|
95
|
+
/**
|
|
96
|
+
* Registers a join step that emits a tuple of latest dependency values.
|
|
97
|
+
*/
|
|
98
|
+
declare function join<T extends readonly unknown[]>(graph: Graph, name: string, deps: {
|
|
99
|
+
[K in keyof T]: StepRef;
|
|
100
|
+
}, opts?: Omit<OrchestrationStepOptions, "deps">): Node<T>;
|
|
101
|
+
/**
|
|
102
|
+
* Registers a loop step that applies `iterate` to each source value N times.
|
|
103
|
+
*/
|
|
104
|
+
declare function loop<T>(graph: Graph, name: string, source: StepRef, iterate: (value: T, iteration: number, actions: NodeActions) => T, opts?: LoopOptions): Node<T>;
|
|
105
|
+
/**
|
|
106
|
+
* Mounts and returns a child workflow graph.
|
|
107
|
+
*/
|
|
108
|
+
declare function subPipeline(graph: Graph, name: string, childOrBuild?: Graph | SubPipelineBuilder, opts?: GraphOptions): Graph;
|
|
109
|
+
/**
|
|
110
|
+
* Registers a producer-style sensor source and returns imperative controls.
|
|
111
|
+
*/
|
|
112
|
+
declare function sensor<T>(graph: Graph, name: string, initial?: T, opts?: Omit<NodeOptions<unknown>, "name" | "describeKind" | "meta"> & {
|
|
113
|
+
meta?: Record<string, unknown>;
|
|
114
|
+
}): SensorControls<T>;
|
|
115
|
+
/**
|
|
116
|
+
* Registers an error-recovery step for a source.
|
|
117
|
+
*/
|
|
118
|
+
declare function onFailure<T>(graph: Graph, name: string, source: StepRef, recover: (err: unknown, actions: NodeActions) => T, opts?: Omit<OrchestrationStepOptions, "deps">): Node<T>;
|
|
119
|
+
|
|
120
|
+
type index_ApprovalOptions = ApprovalOptions;
|
|
121
|
+
type index_BranchResult<T> = BranchResult<T>;
|
|
122
|
+
type index_GateController<T> = GateController<T>;
|
|
123
|
+
type index_GateOptions = GateOptions;
|
|
124
|
+
type index_LoopOptions = LoopOptions;
|
|
125
|
+
type index_OrchestrationStepOptions = OrchestrationStepOptions;
|
|
126
|
+
type index_SensorControls<T> = SensorControls<T>;
|
|
127
|
+
type index_StepRef = StepRef;
|
|
128
|
+
type index_SubPipelineBuilder = SubPipelineBuilder;
|
|
129
|
+
declare const index_approval: typeof approval;
|
|
130
|
+
declare const index_branch: typeof branch;
|
|
131
|
+
declare const index_gate: typeof gate;
|
|
132
|
+
declare const index_join: typeof join;
|
|
133
|
+
declare const index_loop: typeof loop;
|
|
134
|
+
declare const index_onFailure: typeof onFailure;
|
|
135
|
+
declare const index_pipeline: typeof pipeline;
|
|
136
|
+
declare const index_sensor: typeof sensor;
|
|
137
|
+
declare const index_subPipeline: typeof subPipeline;
|
|
138
|
+
declare const index_task: typeof task;
|
|
139
|
+
declare namespace index {
|
|
140
|
+
export { type index_ApprovalOptions as ApprovalOptions, type index_BranchResult as BranchResult, type index_GateController as GateController, type index_GateOptions as GateOptions, type index_LoopOptions as LoopOptions, type index_OrchestrationStepOptions as OrchestrationStepOptions, type index_SensorControls as SensorControls, type index_StepRef as StepRef, type index_SubPipelineBuilder as SubPipelineBuilder, index_approval as approval, index_branch as branch, index_gate as gate, index_join as join, index_loop as loop, index_onFailure as onFailure, index_pipeline as pipeline, index_sensor as sensor, index_subPipeline as subPipeline, index_task as task };
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { type ApprovalOptions as A, type BranchResult as B, type GateController as G, type LoopOptions as L, type OrchestrationStepOptions as O, type SensorControls as S, type GateOptions as a, type StepRef as b, type SubPipelineBuilder as c, approval as d, branch as e, subPipeline as f, gate as g, index as i, join as j, loop as l, onFailure as o, pipeline as p, sensor as s, task as t };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { b as Messages, A as Actor, C as COMPLETE, f as COMPLETE_MSG, g as COMPLETE_ONLY_BATCH, D as DATA, h as DEFAULT_ACTOR, i as DIRTY, j as DIRTY_MSG, k as DIRTY_ONLY_BATCH, l as DepRecord, E as ERROR, F as FnCtx, m as GlobalInspectorEvent, n as GlobalInspectorHook, o as GraphReFlyConfig, G as GuardAction, p as GuardDenied, q as GuardDeniedDetails, H as HashFn, I as INVALIDATE, r as INVALIDATE_MSG, s as INVALIDATE_ONLY_BATCH, M as Message, t as MessageContext, u as MessageTypeRegistration, v as MessageTypeRegistrationInput, a as Node, c as NodeActions, w as NodeCtx, e as NodeDescribeKind, x as NodeFn, d as NodeFnCleanup, y as NodeGuard, z as NodeImpl, B as NodeInspectorHook, J as NodeInspectorHookEvent, N as NodeOptions, K as NodeSink, L as NodeStatus, O as NodeTransportOptions, Q as NodeVersionInfo, R as OnMessageHandler, S as OnSubscribeHandler, T as PAUSE, U as PolicyAllow, W as PolicyDeny, P as PolicyRuleData, X as RESOLVED, Y as RESOLVED_MSG, Z as RESOLVED_ONLY_BATCH, _ as RESUME, $ as START, a0 as START_MSG, a1 as SubscribeContext, a2 as TEARDOWN, a3 as TEARDOWN_MSG, a4 as TEARDOWN_ONLY_BATCH, a5 as V0, a6 as V1, V as VersioningLevel, a7 as VersioningOptions, a8 as accessHintForGuard, a9 as advanceVersion, aa as configure, ab as createVersioning, ac as defaultConfig, ad as defaultHash, ae as isV1, af as node, ag as normalizeActor, ah as policy, ai as policyFromRules, aj as registerBuiltins } from './node-Cc1TniY8.js';
|
|
2
|
+
import { D as DescribeDetail, a as DescribeField, b as DescribeNodeOutput, r as resolveDescribeFields } from './meta-CwesDrMD.js';
|
|
3
|
+
import { A as AutoTrackOptions, D as DerivedFn, a as DynamicFn, E as EffectFn, P as PipeOperator, b as ProducerFn, T as TrackFn, c as autoTrackNode, d as derived, e as dynamicNode, f as effect, p as pipe, g as producer, s as state } from './sugar-Dtyrq2_q.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Batch deferral for tier-3+ messages, plus per-node emit coalescing inside
|
|
7
|
+
* explicit `batch()` scopes.
|
|
8
|
+
*
|
|
9
|
+
* **Canonical invariant:** GRAPHREFLY-SPEC.md §1.3.7 — inside a batch,
|
|
10
|
+
* tier 0–2 signals propagate immediately; tier 3 (DATA/RESOLVED), tier 4
|
|
11
|
+
* (COMPLETE/ERROR), and tier 5 (TEARDOWN) are queued and drained in ascending
|
|
12
|
+
* phase order after the outermost `batch()` callback returns.
|
|
13
|
+
*
|
|
14
|
+
* **Per-node emit coalescing (Bug 2 fix, 2026-04-17).** Inside an explicit
|
|
15
|
+
* `batch()` scope, consecutive emissions from the same node accumulate in
|
|
16
|
+
* `NodeImpl._batchPendingMessages` (see JSDoc there) instead of each producing
|
|
17
|
+
* a separate downstream wave. K `.emit()` calls to the same source collapse to
|
|
18
|
+
* one coalesced `downWithBatch` call per child edge at batch end. Outside batch
|
|
19
|
+
* (or during drain), coalescing does NOT apply — each emit produces its own wave.
|
|
20
|
+
*
|
|
21
|
+
* **Phase vocabulary:**
|
|
22
|
+
* - Phase 1 = tiers 0–2 — immediate, never queued.
|
|
23
|
+
* - Phase 2 = tier 3 — {@link drainPhase2}. Value settlements.
|
|
24
|
+
* - Phase 3 = tier 4 — {@link drainPhase3}. Terminal signals.
|
|
25
|
+
* - Phase 4 = tier 5 — {@link drainPhase4}. TEARDOWN (unified deferral).
|
|
26
|
+
*
|
|
27
|
+
* Drain rule: fire any pending flush hooks first, then the lowest non-empty
|
|
28
|
+
* phase. Re-enqueues during drain (and hooks registered by reentrant batches
|
|
29
|
+
* inside subscriber callbacks) bump the loop back to the top so newly-added
|
|
30
|
+
* hooks and closures get processed.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Returns whether the current call stack is inside a batch scope **or** while
|
|
35
|
+
* a deferred drain is in progress. Nested `downWithBatch` calls during drain
|
|
36
|
+
* still defer (they bump the drain loop).
|
|
37
|
+
*/
|
|
38
|
+
declare function isBatching(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Runs `fn` inside a batch scope. Nested `batch()` calls share one deferral
|
|
41
|
+
* queue. If `fn` throws, deferred work for the outer frame is discarded
|
|
42
|
+
* (unless a drain is already in progress — cross-language decision A4).
|
|
43
|
+
*/
|
|
44
|
+
declare function batch(fn: () => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* Deliver pre-sorted messages through `sink` with tier-based deferral applied.
|
|
47
|
+
*
|
|
48
|
+
* `messages` MUST be in ascending tier order (produced by `_frameBatch` in
|
|
49
|
+
* `node.ts`); the walker exploits that invariant to find phase cuts in one
|
|
50
|
+
* pass without re-sorting.
|
|
51
|
+
*
|
|
52
|
+
* Behavior:
|
|
53
|
+
* - Tier 0–2 — delivered synchronously.
|
|
54
|
+
* - Tier 3 — deferred to {@link drainPhase2} when batching, else synchronous.
|
|
55
|
+
* - Tier 4 — deferred to {@link drainPhase3} when batching, else synchronous.
|
|
56
|
+
* - Tier 5 — deferred to {@link drainPhase4} when batching, else synchronous.
|
|
57
|
+
*
|
|
58
|
+
* Tier-classification uses the caller-supplied `tierOf` so that batch stays
|
|
59
|
+
* decoupled from `GraphReFlyConfig`. NodeImpl passes `config.tierOf` (a
|
|
60
|
+
* pre-bound closure built once in the config constructor) at the emit site;
|
|
61
|
+
* alternate configs can pass their own lookup.
|
|
62
|
+
*/
|
|
63
|
+
declare function downWithBatch(sink: (messages: Messages) => void, messages: Messages, tierOf: (t: symbol) => number): void;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Centralised timestamp utilities.
|
|
67
|
+
*
|
|
68
|
+
* Convention: all graphrefly-ts timestamps use nanoseconds (`_ns` suffix).
|
|
69
|
+
*
|
|
70
|
+
* - {@link monotonicNs} — monotonic clock (ordering, durations, timeline events).
|
|
71
|
+
* - {@link wallClockNs} — wall-clock (mutation attribution, cron emission).
|
|
72
|
+
*
|
|
73
|
+
* **Precision limits (JS platform):**
|
|
74
|
+
*
|
|
75
|
+
* - `monotonicNs`: effective ~microsecond precision. `performance.now()` returns
|
|
76
|
+
* milliseconds with ~5µs resolution; the last 3 digits of the nanosecond value
|
|
77
|
+
* are always zero. Python's `time.monotonic_ns()` gives true nanoseconds.
|
|
78
|
+
*
|
|
79
|
+
* - `wallClockNs`: ~256ns precision loss at current epoch. `Date.now() * 1e6`
|
|
80
|
+
* produces values around 1.8×10¹⁸ which exceed IEEE 754's 2⁵³ safe integer
|
|
81
|
+
* limit. Python's `time.time_ns()` (arbitrary-precision `int`) has no loss.
|
|
82
|
+
* In practice this is irrelevant — JS is single-threaded, so sub-microsecond
|
|
83
|
+
* timestamp collisions cannot occur.
|
|
84
|
+
*/
|
|
85
|
+
/** Monotonic nanosecond timestamp via `performance.now()`. */
|
|
86
|
+
declare function monotonicNs(): number;
|
|
87
|
+
/** Wall-clock nanosecond timestamp via `Date.now()`. */
|
|
88
|
+
declare function wallClockNs(): number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Core layer: message protocol, node primitive, lifecycle (Phase 0).
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
declare const index_Actor: typeof Actor;
|
|
95
|
+
declare const index_AutoTrackOptions: typeof AutoTrackOptions;
|
|
96
|
+
declare const index_COMPLETE: typeof COMPLETE;
|
|
97
|
+
declare const index_COMPLETE_MSG: typeof COMPLETE_MSG;
|
|
98
|
+
declare const index_COMPLETE_ONLY_BATCH: typeof COMPLETE_ONLY_BATCH;
|
|
99
|
+
declare const index_DATA: typeof DATA;
|
|
100
|
+
declare const index_DEFAULT_ACTOR: typeof DEFAULT_ACTOR;
|
|
101
|
+
declare const index_DIRTY: typeof DIRTY;
|
|
102
|
+
declare const index_DIRTY_MSG: typeof DIRTY_MSG;
|
|
103
|
+
declare const index_DIRTY_ONLY_BATCH: typeof DIRTY_ONLY_BATCH;
|
|
104
|
+
declare const index_DepRecord: typeof DepRecord;
|
|
105
|
+
declare const index_DerivedFn: typeof DerivedFn;
|
|
106
|
+
declare const index_DescribeDetail: typeof DescribeDetail;
|
|
107
|
+
declare const index_DescribeField: typeof DescribeField;
|
|
108
|
+
declare const index_DescribeNodeOutput: typeof DescribeNodeOutput;
|
|
109
|
+
declare const index_DynamicFn: typeof DynamicFn;
|
|
110
|
+
declare const index_ERROR: typeof ERROR;
|
|
111
|
+
declare const index_EffectFn: typeof EffectFn;
|
|
112
|
+
declare const index_FnCtx: typeof FnCtx;
|
|
113
|
+
declare const index_GlobalInspectorEvent: typeof GlobalInspectorEvent;
|
|
114
|
+
declare const index_GlobalInspectorHook: typeof GlobalInspectorHook;
|
|
115
|
+
declare const index_GraphReFlyConfig: typeof GraphReFlyConfig;
|
|
116
|
+
declare const index_GuardAction: typeof GuardAction;
|
|
117
|
+
declare const index_GuardDenied: typeof GuardDenied;
|
|
118
|
+
declare const index_GuardDeniedDetails: typeof GuardDeniedDetails;
|
|
119
|
+
declare const index_HashFn: typeof HashFn;
|
|
120
|
+
declare const index_INVALIDATE: typeof INVALIDATE;
|
|
121
|
+
declare const index_INVALIDATE_MSG: typeof INVALIDATE_MSG;
|
|
122
|
+
declare const index_INVALIDATE_ONLY_BATCH: typeof INVALIDATE_ONLY_BATCH;
|
|
123
|
+
declare const index_Message: typeof Message;
|
|
124
|
+
declare const index_MessageContext: typeof MessageContext;
|
|
125
|
+
declare const index_MessageTypeRegistration: typeof MessageTypeRegistration;
|
|
126
|
+
declare const index_MessageTypeRegistrationInput: typeof MessageTypeRegistrationInput;
|
|
127
|
+
declare const index_Messages: typeof Messages;
|
|
128
|
+
declare const index_Node: typeof Node;
|
|
129
|
+
declare const index_NodeActions: typeof NodeActions;
|
|
130
|
+
declare const index_NodeCtx: typeof NodeCtx;
|
|
131
|
+
declare const index_NodeDescribeKind: typeof NodeDescribeKind;
|
|
132
|
+
declare const index_NodeFn: typeof NodeFn;
|
|
133
|
+
declare const index_NodeFnCleanup: typeof NodeFnCleanup;
|
|
134
|
+
declare const index_NodeGuard: typeof NodeGuard;
|
|
135
|
+
declare const index_NodeImpl: typeof NodeImpl;
|
|
136
|
+
declare const index_NodeInspectorHook: typeof NodeInspectorHook;
|
|
137
|
+
declare const index_NodeInspectorHookEvent: typeof NodeInspectorHookEvent;
|
|
138
|
+
declare const index_NodeOptions: typeof NodeOptions;
|
|
139
|
+
declare const index_NodeSink: typeof NodeSink;
|
|
140
|
+
declare const index_NodeStatus: typeof NodeStatus;
|
|
141
|
+
declare const index_NodeTransportOptions: typeof NodeTransportOptions;
|
|
142
|
+
declare const index_NodeVersionInfo: typeof NodeVersionInfo;
|
|
143
|
+
declare const index_OnMessageHandler: typeof OnMessageHandler;
|
|
144
|
+
declare const index_OnSubscribeHandler: typeof OnSubscribeHandler;
|
|
145
|
+
declare const index_PAUSE: typeof PAUSE;
|
|
146
|
+
declare const index_PipeOperator: typeof PipeOperator;
|
|
147
|
+
declare const index_PolicyAllow: typeof PolicyAllow;
|
|
148
|
+
declare const index_PolicyDeny: typeof PolicyDeny;
|
|
149
|
+
declare const index_PolicyRuleData: typeof PolicyRuleData;
|
|
150
|
+
declare const index_ProducerFn: typeof ProducerFn;
|
|
151
|
+
declare const index_RESOLVED: typeof RESOLVED;
|
|
152
|
+
declare const index_RESOLVED_MSG: typeof RESOLVED_MSG;
|
|
153
|
+
declare const index_RESOLVED_ONLY_BATCH: typeof RESOLVED_ONLY_BATCH;
|
|
154
|
+
declare const index_RESUME: typeof RESUME;
|
|
155
|
+
declare const index_START: typeof START;
|
|
156
|
+
declare const index_START_MSG: typeof START_MSG;
|
|
157
|
+
declare const index_SubscribeContext: typeof SubscribeContext;
|
|
158
|
+
declare const index_TEARDOWN: typeof TEARDOWN;
|
|
159
|
+
declare const index_TEARDOWN_MSG: typeof TEARDOWN_MSG;
|
|
160
|
+
declare const index_TEARDOWN_ONLY_BATCH: typeof TEARDOWN_ONLY_BATCH;
|
|
161
|
+
declare const index_TrackFn: typeof TrackFn;
|
|
162
|
+
declare const index_V0: typeof V0;
|
|
163
|
+
declare const index_V1: typeof V1;
|
|
164
|
+
declare const index_VersioningLevel: typeof VersioningLevel;
|
|
165
|
+
declare const index_VersioningOptions: typeof VersioningOptions;
|
|
166
|
+
declare const index_accessHintForGuard: typeof accessHintForGuard;
|
|
167
|
+
declare const index_advanceVersion: typeof advanceVersion;
|
|
168
|
+
declare const index_autoTrackNode: typeof autoTrackNode;
|
|
169
|
+
declare const index_batch: typeof batch;
|
|
170
|
+
declare const index_configure: typeof configure;
|
|
171
|
+
declare const index_createVersioning: typeof createVersioning;
|
|
172
|
+
declare const index_defaultConfig: typeof defaultConfig;
|
|
173
|
+
declare const index_defaultHash: typeof defaultHash;
|
|
174
|
+
declare const index_derived: typeof derived;
|
|
175
|
+
declare const index_downWithBatch: typeof downWithBatch;
|
|
176
|
+
declare const index_dynamicNode: typeof dynamicNode;
|
|
177
|
+
declare const index_effect: typeof effect;
|
|
178
|
+
declare const index_isBatching: typeof isBatching;
|
|
179
|
+
declare const index_isV1: typeof isV1;
|
|
180
|
+
declare const index_monotonicNs: typeof monotonicNs;
|
|
181
|
+
declare const index_node: typeof node;
|
|
182
|
+
declare const index_normalizeActor: typeof normalizeActor;
|
|
183
|
+
declare const index_pipe: typeof pipe;
|
|
184
|
+
declare const index_policy: typeof policy;
|
|
185
|
+
declare const index_policyFromRules: typeof policyFromRules;
|
|
186
|
+
declare const index_producer: typeof producer;
|
|
187
|
+
declare const index_registerBuiltins: typeof registerBuiltins;
|
|
188
|
+
declare const index_resolveDescribeFields: typeof resolveDescribeFields;
|
|
189
|
+
declare const index_state: typeof state;
|
|
190
|
+
declare const index_wallClockNs: typeof wallClockNs;
|
|
191
|
+
declare namespace index {
|
|
192
|
+
export { index_Actor as Actor, index_AutoTrackOptions as AutoTrackOptions, index_COMPLETE as COMPLETE, index_COMPLETE_MSG as COMPLETE_MSG, index_COMPLETE_ONLY_BATCH as COMPLETE_ONLY_BATCH, index_DATA as DATA, index_DEFAULT_ACTOR as DEFAULT_ACTOR, index_DIRTY as DIRTY, index_DIRTY_MSG as DIRTY_MSG, index_DIRTY_ONLY_BATCH as DIRTY_ONLY_BATCH, index_DepRecord as DepRecord, index_DerivedFn as DerivedFn, index_DescribeDetail as DescribeDetail, index_DescribeField as DescribeField, index_DescribeNodeOutput as DescribeNodeOutput, index_DynamicFn as DynamicFn, index_ERROR as ERROR, index_EffectFn as EffectFn, index_FnCtx as FnCtx, index_GlobalInspectorEvent as GlobalInspectorEvent, index_GlobalInspectorHook as GlobalInspectorHook, index_GraphReFlyConfig as GraphReFlyConfig, index_GuardAction as GuardAction, index_GuardDenied as GuardDenied, index_GuardDeniedDetails as GuardDeniedDetails, index_HashFn as HashFn, index_INVALIDATE as INVALIDATE, index_INVALIDATE_MSG as INVALIDATE_MSG, index_INVALIDATE_ONLY_BATCH as INVALIDATE_ONLY_BATCH, index_Message as Message, index_MessageContext as MessageContext, index_MessageTypeRegistration as MessageTypeRegistration, index_MessageTypeRegistrationInput as MessageTypeRegistrationInput, index_Messages as Messages, index_Node as Node, index_NodeActions as NodeActions, index_NodeCtx as NodeCtx, index_NodeDescribeKind as NodeDescribeKind, index_NodeFn as NodeFn, index_NodeFnCleanup as NodeFnCleanup, index_NodeGuard as NodeGuard, index_NodeImpl as NodeImpl, index_NodeInspectorHook as NodeInspectorHook, index_NodeInspectorHookEvent as NodeInspectorHookEvent, index_NodeOptions as NodeOptions, index_NodeSink as NodeSink, index_NodeStatus as NodeStatus, index_NodeTransportOptions as NodeTransportOptions, index_NodeVersionInfo as NodeVersionInfo, index_OnMessageHandler as OnMessageHandler, index_OnSubscribeHandler as OnSubscribeHandler, index_PAUSE as PAUSE, index_PipeOperator as PipeOperator, index_PolicyAllow as PolicyAllow, index_PolicyDeny as PolicyDeny, index_PolicyRuleData as PolicyRuleData, index_ProducerFn as ProducerFn, index_RESOLVED as RESOLVED, index_RESOLVED_MSG as RESOLVED_MSG, index_RESOLVED_ONLY_BATCH as RESOLVED_ONLY_BATCH, index_RESUME as RESUME, index_START as START, index_START_MSG as START_MSG, index_SubscribeContext as SubscribeContext, index_TEARDOWN as TEARDOWN, index_TEARDOWN_MSG as TEARDOWN_MSG, index_TEARDOWN_ONLY_BATCH as TEARDOWN_ONLY_BATCH, index_TrackFn as TrackFn, index_V0 as V0, index_V1 as V1, index_VersioningLevel as VersioningLevel, index_VersioningOptions as VersioningOptions, index_accessHintForGuard as accessHintForGuard, index_advanceVersion as advanceVersion, index_autoTrackNode as autoTrackNode, index_batch as batch, index_configure as configure, index_createVersioning as createVersioning, index_defaultConfig as defaultConfig, index_defaultHash as defaultHash, index_derived as derived, index_downWithBatch as downWithBatch, index_dynamicNode as dynamicNode, index_effect as effect, index_isBatching as isBatching, index_isV1 as isV1, index_monotonicNs as monotonicNs, index_node as node, index_normalizeActor as normalizeActor, index_pipe as pipe, index_policy as policy, index_policyFromRules as policyFromRules, index_producer as producer, index_registerBuiltins as registerBuiltins, index_resolveDescribeFields as resolveDescribeFields, index_state as state, index_wallClockNs as wallClockNs };
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export { isBatching as a, batch as b, downWithBatch as d, index as i, monotonicNs as m, wallClockNs as w };
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { a as Node } from './node-Cc1TniY8.js';
|
|
2
|
+
import { a as GraphOptions, G as Graph } from './graph-BZGRXwOm.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Domain templates (roadmap §8.2).
|
|
6
|
+
*
|
|
7
|
+
* Opinionated Graph factories for common "info → action" domains.
|
|
8
|
+
* Each template wires up §8.1 reduction primitives (stratify, funnel, feedback,
|
|
9
|
+
* budgetGate, scorer) with domain-specific stages. Users fork/extend by
|
|
10
|
+
* accessing named nodes and swapping stages.
|
|
11
|
+
*
|
|
12
|
+
* **Source injection (option B):** templates accept a `source` node, not a
|
|
13
|
+
* hardcoded adapter. Pass `fromOTel(...)`, `fromGitHook(...)`, or a test
|
|
14
|
+
* `state()` — the topology is the same.
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/** Stratification branch config for observability signals. */
|
|
20
|
+
type ObservabilityBranch = {
|
|
21
|
+
name: string;
|
|
22
|
+
classify: (value: unknown) => boolean;
|
|
23
|
+
};
|
|
24
|
+
/** Options for {@link observabilityGraph}. */
|
|
25
|
+
type ObservabilityGraphOptions = GraphOptions & {
|
|
26
|
+
/** Ingested signal source (e.g. fromOTel(...) or test state). */
|
|
27
|
+
source: Node<unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* Classification rules for signal stratification.
|
|
30
|
+
* Default: errors / traces / metrics branches.
|
|
31
|
+
*/
|
|
32
|
+
branches?: ObservabilityBranch[];
|
|
33
|
+
/**
|
|
34
|
+
* Correlation function: receives stratified branch values and produces
|
|
35
|
+
* correlated insights. Default: identity pass-through.
|
|
36
|
+
*/
|
|
37
|
+
correlate?: (values: unknown[]) => unknown;
|
|
38
|
+
/**
|
|
39
|
+
* SLO verification function: returns a verification result for a
|
|
40
|
+
* correlated insight. Default: always passes.
|
|
41
|
+
*/
|
|
42
|
+
sloCheck?: (value: unknown) => unknown;
|
|
43
|
+
/**
|
|
44
|
+
* Scorer weights for alert prioritization. One per branch.
|
|
45
|
+
* Default: equal weights [1, 1, 1].
|
|
46
|
+
*/
|
|
47
|
+
weights?: number[];
|
|
48
|
+
/** Max feedback iterations for false-positive learning. Default: 5. */
|
|
49
|
+
maxFeedbackIterations?: number;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* OTel ingest → stratified reduction → correlation → SLO verification →
|
|
53
|
+
* alert prioritization → output.
|
|
54
|
+
*
|
|
55
|
+
* Well-known node names:
|
|
56
|
+
* - `"source"` — injected signal source
|
|
57
|
+
* - `"stratify::branch/<name>"` — per-branch classification
|
|
58
|
+
* - `"correlate"` — cross-branch correlation
|
|
59
|
+
* - `"slo_value"`, `"slo_verified"` — SLO verification pair
|
|
60
|
+
* - `"alerts"` — scored, prioritized output
|
|
61
|
+
* - `"output"` — final output (alias for alerts)
|
|
62
|
+
*
|
|
63
|
+
* @category patterns
|
|
64
|
+
*/
|
|
65
|
+
declare function observabilityGraph(name: string, opts: ObservabilityGraphOptions): Graph;
|
|
66
|
+
/** A structured issue extracted from raw findings. */
|
|
67
|
+
type ExtractedIssue = {
|
|
68
|
+
id: string;
|
|
69
|
+
title: string;
|
|
70
|
+
severity: number;
|
|
71
|
+
source: string;
|
|
72
|
+
raw: unknown;
|
|
73
|
+
};
|
|
74
|
+
/** Options for {@link issueTrackerGraph}. */
|
|
75
|
+
type IssueTrackerGraphOptions = GraphOptions & {
|
|
76
|
+
/** Findings source (e.g. fromGitHook(...), fromFSWatch(...)). */
|
|
77
|
+
source: Node<unknown>;
|
|
78
|
+
/**
|
|
79
|
+
* Extract structured issues from raw findings.
|
|
80
|
+
* Default: wraps raw value as a single issue.
|
|
81
|
+
*/
|
|
82
|
+
extract?: (raw: unknown) => ExtractedIssue;
|
|
83
|
+
/**
|
|
84
|
+
* Verify an extracted issue (assertion check).
|
|
85
|
+
* Default: always valid.
|
|
86
|
+
*/
|
|
87
|
+
verify?: (issue: ExtractedIssue) => unknown;
|
|
88
|
+
/**
|
|
89
|
+
* Detect regression by comparing against known patterns.
|
|
90
|
+
* Receives (current issue, known patterns).
|
|
91
|
+
* Default: no regression detected.
|
|
92
|
+
*/
|
|
93
|
+
detectRegression?: (issue: ExtractedIssue, known: unknown) => unknown;
|
|
94
|
+
/** Max feedback iterations for re-scanning. Default: 3. */
|
|
95
|
+
maxFeedbackIterations?: number;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Findings ingest → extraction → verification → regression detection →
|
|
99
|
+
* distillation → prioritized queue.
|
|
100
|
+
*
|
|
101
|
+
* Well-known node names:
|
|
102
|
+
* - `"source"` — injected findings source
|
|
103
|
+
* - `"extract"` — structured issue extraction
|
|
104
|
+
* - `"verify"` — issue verification
|
|
105
|
+
* - `"known_patterns"` — accumulated known issue patterns (state)
|
|
106
|
+
* - `"regression"` — regression detection
|
|
107
|
+
* - `"priority"` — severity-based prioritization
|
|
108
|
+
* - `"output"` — final prioritized output
|
|
109
|
+
*
|
|
110
|
+
* @category patterns
|
|
111
|
+
*/
|
|
112
|
+
declare function issueTrackerGraph(name: string, opts: IssueTrackerGraphOptions): Graph;
|
|
113
|
+
/** Classification result from LLM moderation. */
|
|
114
|
+
type ModerationResult = {
|
|
115
|
+
label: "safe" | "review" | "block";
|
|
116
|
+
confidence: number;
|
|
117
|
+
reason?: string;
|
|
118
|
+
original: unknown;
|
|
119
|
+
};
|
|
120
|
+
/** Options for {@link contentModerationGraph}. */
|
|
121
|
+
type ContentModerationGraphOptions = GraphOptions & {
|
|
122
|
+
/** Content source (text/multimedia ingest). */
|
|
123
|
+
source: Node<unknown>;
|
|
124
|
+
/**
|
|
125
|
+
* Classification function: returns a ModerationResult.
|
|
126
|
+
* Default: labels everything "review" with confidence 0.5.
|
|
127
|
+
*/
|
|
128
|
+
classify?: (content: unknown) => ModerationResult;
|
|
129
|
+
/** System prompt for LLM classification. */
|
|
130
|
+
systemPrompt?: string;
|
|
131
|
+
/** Scorer weights: [safe, review, block]. Default: [0.1, 1, 2]. */
|
|
132
|
+
weights?: [number, number, number];
|
|
133
|
+
/** Max feedback iterations for policy refinement. Default: 5. */
|
|
134
|
+
maxFeedbackIterations?: number;
|
|
135
|
+
/** Max review queue size. When set, oldest entries are trimmed on overflow. */
|
|
136
|
+
maxQueueSize?: number;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Content ingest → LLM/rule classification → stratified routing (safe/review/block) →
|
|
140
|
+
* human review queue → scorer → feedback (false positives → policy refinement) → output.
|
|
141
|
+
*
|
|
142
|
+
* Well-known node names:
|
|
143
|
+
* - `"source"` — content ingest
|
|
144
|
+
* - `"classify"` — LLM or rule-based classification
|
|
145
|
+
* - `"stratify::branch/safe"`, `"stratify::branch/review"`, `"stratify::branch/block"` — routed branches
|
|
146
|
+
* - `"review_queue"` — state node for human review items
|
|
147
|
+
* - `"priority"` — scored priority output
|
|
148
|
+
* - `"policy"` — writable state for policy refinement
|
|
149
|
+
* - `"output"` — final moderation output
|
|
150
|
+
*
|
|
151
|
+
* @category patterns
|
|
152
|
+
*/
|
|
153
|
+
declare function contentModerationGraph(name: string, opts: ContentModerationGraphOptions): Graph;
|
|
154
|
+
/** Schema validation result. */
|
|
155
|
+
type ValidationResult = {
|
|
156
|
+
valid: boolean;
|
|
157
|
+
errors: string[];
|
|
158
|
+
record: unknown;
|
|
159
|
+
};
|
|
160
|
+
/** Anomaly detection result. */
|
|
161
|
+
type AnomalyResult = {
|
|
162
|
+
anomaly: boolean;
|
|
163
|
+
score: number;
|
|
164
|
+
detail?: string;
|
|
165
|
+
record: unknown;
|
|
166
|
+
};
|
|
167
|
+
/** Options for {@link dataQualityGraph}. */
|
|
168
|
+
type DataQualityGraphOptions = GraphOptions & {
|
|
169
|
+
/** Data source (e.g. fromPrisma(...), fromKysely(...)). */
|
|
170
|
+
source: Node<unknown>;
|
|
171
|
+
/**
|
|
172
|
+
* Schema validation function.
|
|
173
|
+
* Default: always valid.
|
|
174
|
+
*/
|
|
175
|
+
validate?: (record: unknown) => ValidationResult;
|
|
176
|
+
/**
|
|
177
|
+
* Anomaly detection function.
|
|
178
|
+
* Default: no anomaly.
|
|
179
|
+
*/
|
|
180
|
+
detectAnomaly?: (record: unknown) => AnomalyResult;
|
|
181
|
+
/**
|
|
182
|
+
* Drift detection: compares current record against baseline.
|
|
183
|
+
* Default: no drift.
|
|
184
|
+
*/
|
|
185
|
+
detectDrift?: (record: unknown, baseline: unknown) => unknown;
|
|
186
|
+
/**
|
|
187
|
+
* Remediation suggestion function.
|
|
188
|
+
* Default: no suggestion.
|
|
189
|
+
*/
|
|
190
|
+
suggest?: (result: {
|
|
191
|
+
validation: ValidationResult;
|
|
192
|
+
anomaly: AnomalyResult;
|
|
193
|
+
}) => unknown;
|
|
194
|
+
/** Max feedback iterations for rule refinement. Default: 3. */
|
|
195
|
+
maxFeedbackIterations?: number;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Data ingest → schema validation → anomaly detection → drift alerting →
|
|
199
|
+
* auto-remediation suggestions → output.
|
|
200
|
+
*
|
|
201
|
+
* Well-known node names:
|
|
202
|
+
* - `"source"` — data ingest
|
|
203
|
+
* - `"validate"` — schema validation
|
|
204
|
+
* - `"anomaly"` — anomaly detection
|
|
205
|
+
* - `"baseline"` — rolling baseline state
|
|
206
|
+
* - `"drift"` — drift detection
|
|
207
|
+
* - `"remediate"` — auto-remediation suggestions
|
|
208
|
+
* - `"output"` — combined quality report
|
|
209
|
+
*
|
|
210
|
+
* @category patterns
|
|
211
|
+
*/
|
|
212
|
+
declare function dataQualityGraph(name: string, opts: DataQualityGraphOptions): Graph;
|
|
213
|
+
|
|
214
|
+
type index_AnomalyResult = AnomalyResult;
|
|
215
|
+
type index_ContentModerationGraphOptions = ContentModerationGraphOptions;
|
|
216
|
+
type index_DataQualityGraphOptions = DataQualityGraphOptions;
|
|
217
|
+
type index_ExtractedIssue = ExtractedIssue;
|
|
218
|
+
type index_IssueTrackerGraphOptions = IssueTrackerGraphOptions;
|
|
219
|
+
type index_ModerationResult = ModerationResult;
|
|
220
|
+
type index_ObservabilityBranch = ObservabilityBranch;
|
|
221
|
+
type index_ObservabilityGraphOptions = ObservabilityGraphOptions;
|
|
222
|
+
type index_ValidationResult = ValidationResult;
|
|
223
|
+
declare const index_contentModerationGraph: typeof contentModerationGraph;
|
|
224
|
+
declare const index_dataQualityGraph: typeof dataQualityGraph;
|
|
225
|
+
declare const index_issueTrackerGraph: typeof issueTrackerGraph;
|
|
226
|
+
declare const index_observabilityGraph: typeof observabilityGraph;
|
|
227
|
+
declare namespace index {
|
|
228
|
+
export { type index_AnomalyResult as AnomalyResult, type index_ContentModerationGraphOptions as ContentModerationGraphOptions, type index_DataQualityGraphOptions as DataQualityGraphOptions, type index_ExtractedIssue as ExtractedIssue, type index_IssueTrackerGraphOptions as IssueTrackerGraphOptions, type index_ModerationResult as ModerationResult, type index_ObservabilityBranch as ObservabilityBranch, type index_ObservabilityGraphOptions as ObservabilityGraphOptions, type index_ValidationResult as ValidationResult, index_contentModerationGraph as contentModerationGraph, index_dataQualityGraph as dataQualityGraph, index_issueTrackerGraph as issueTrackerGraph, index_observabilityGraph as observabilityGraph };
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export { type AnomalyResult as A, type ContentModerationGraphOptions as C, type DataQualityGraphOptions as D, type ExtractedIssue as E, type IssueTrackerGraphOptions as I, type ModerationResult as M, type ObservabilityBranch as O, type ValidationResult as V, type ObservabilityGraphOptions as a, issueTrackerGraph as b, contentModerationGraph as c, dataQualityGraph as d, index as i, observabilityGraph as o };
|