@graphrefly/graphrefly 0.43.0 → 0.45.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/README.md +21 -17
- package/dist/compat/index.cjs +20 -10
- package/dist/compat/index.cjs.map +1 -0
- package/dist/compat/index.d.cts +1 -22
- package/dist/compat/index.d.ts +1 -22
- package/dist/compat/index.js +3 -1
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/jotai/index.cjs +21 -1
- package/dist/compat/jotai/index.cjs.map +1 -0
- package/dist/compat/jotai/index.d.cts +1 -2
- package/dist/compat/jotai/index.d.ts +1 -2
- package/dist/compat/jotai/index.js +3 -1
- package/dist/compat/jotai/index.js.map +1 -0
- package/dist/compat/nanostores/index.cjs +21 -1
- package/dist/compat/nanostores/index.cjs.map +1 -0
- package/dist/compat/nanostores/index.d.cts +1 -2
- package/dist/compat/nanostores/index.d.ts +1 -2
- package/dist/compat/nanostores/index.js +3 -1
- package/dist/compat/nanostores/index.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +20 -10
- package/dist/compat/nestjs/index.cjs.map +1 -0
- package/dist/compat/nestjs/index.d.cts +1 -13
- package/dist/compat/nestjs/index.d.ts +1 -13
- package/dist/compat/nestjs/index.js +3 -1
- package/dist/compat/nestjs/index.js.map +1 -0
- package/dist/compat/react/index.cjs +21 -1
- package/dist/compat/react/index.cjs.map +1 -0
- package/dist/compat/react/index.d.cts +1 -2
- package/dist/compat/react/index.d.ts +1 -2
- package/dist/compat/react/index.js +3 -1
- package/dist/compat/react/index.js.map +1 -0
- package/dist/compat/solid/index.cjs +21 -1
- package/dist/compat/solid/index.cjs.map +1 -0
- package/dist/compat/solid/index.d.cts +1 -2
- package/dist/compat/solid/index.d.ts +1 -2
- package/dist/compat/solid/index.js +3 -1
- package/dist/compat/solid/index.js.map +1 -0
- package/dist/compat/svelte/index.cjs +21 -1
- package/dist/compat/svelte/index.cjs.map +1 -0
- package/dist/compat/svelte/index.d.cts +1 -2
- package/dist/compat/svelte/index.d.ts +1 -2
- package/dist/compat/svelte/index.js +3 -1
- package/dist/compat/svelte/index.js.map +1 -0
- package/dist/compat/vue/index.cjs +21 -1
- package/dist/compat/vue/index.cjs.map +1 -0
- package/dist/compat/vue/index.d.cts +1 -3
- package/dist/compat/vue/index.d.ts +1 -3
- package/dist/compat/vue/index.js +3 -1
- package/dist/compat/vue/index.js.map +1 -0
- package/dist/compat/zustand/index.cjs +21 -3
- package/dist/compat/zustand/index.cjs.map +1 -0
- package/dist/compat/zustand/index.d.cts +1 -6
- package/dist/compat/zustand/index.d.ts +1 -6
- package/dist/compat/zustand/index.js +3 -1
- package/dist/compat/zustand/index.js.map +1 -0
- package/dist/core/index.cjs +21 -1
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +1 -4
- package/dist/core/index.d.ts +1 -4
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -0
- package/dist/extra/browser.cjs +21 -1
- package/dist/extra/browser.cjs.map +1 -0
- package/dist/extra/browser.d.cts +1 -4
- package/dist/extra/browser.d.ts +1 -4
- package/dist/extra/browser.js +3 -1
- package/dist/extra/browser.js.map +1 -0
- package/dist/extra/index.cjs +20 -19
- package/dist/extra/index.cjs.map +1 -0
- package/dist/extra/index.d.cts +1 -17
- package/dist/extra/index.d.ts +1 -17
- package/dist/extra/index.js +3 -1
- package/dist/extra/index.js.map +1 -0
- package/dist/extra/node.cjs +21 -2
- package/dist/extra/node.cjs.map +1 -0
- package/dist/extra/node.d.cts +1 -187
- package/dist/extra/node.d.ts +1 -187
- package/dist/extra/node.js +3 -2
- package/dist/extra/node.js.map +1 -0
- package/dist/extra/operators.cjs +21 -1
- package/dist/extra/operators.cjs.map +1 -0
- package/dist/extra/operators.d.cts +1 -950
- package/dist/extra/operators.d.ts +1 -950
- package/dist/extra/operators.js +3 -1
- package/dist/extra/operators.js.map +1 -0
- package/dist/extra/reactive.cjs +21 -1
- package/dist/extra/reactive.cjs.map +1 -0
- package/dist/extra/reactive.d.cts +1 -353
- package/dist/extra/reactive.d.ts +1 -353
- package/dist/extra/reactive.js +3 -1
- package/dist/extra/reactive.js.map +1 -0
- package/dist/extra/render/index.cjs +21 -5
- package/dist/extra/render/index.cjs.map +1 -0
- package/dist/extra/render/index.d.cts +1 -183
- package/dist/extra/render/index.d.ts +1 -183
- package/dist/extra/render/index.js +3 -1
- package/dist/extra/render/index.js.map +1 -0
- package/dist/extra/sources.cjs +21 -3
- package/dist/extra/sources.cjs.map +1 -0
- package/dist/extra/sources.d.cts +1 -584
- package/dist/extra/sources.d.ts +1 -584
- package/dist/extra/sources.js +3 -1
- package/dist/extra/sources.js.map +1 -0
- package/dist/extra/storage-browser.cjs +21 -1
- package/dist/extra/storage-browser.cjs.map +1 -0
- package/dist/extra/storage-browser.d.cts +1 -37
- package/dist/extra/storage-browser.d.ts +1 -37
- package/dist/extra/storage-browser.js +3 -1
- package/dist/extra/storage-browser.js.map +1 -0
- package/dist/extra/storage-core.cjs +21 -1
- package/dist/extra/storage-core.cjs.map +1 -0
- package/dist/extra/storage-core.d.cts +1 -28
- package/dist/extra/storage-core.d.ts +1 -28
- package/dist/extra/storage-core.js +3 -1
- package/dist/extra/storage-core.js.map +1 -0
- package/dist/extra/storage-node.cjs +20 -0
- package/dist/extra/storage-node.cjs.map +1 -0
- package/dist/extra/storage-node.d.cts +1 -2
- package/dist/extra/storage-node.d.ts +1 -2
- package/dist/extra/storage-node.js +3 -0
- package/dist/extra/storage-node.js.map +1 -0
- package/dist/extra/storage-tiers-browser.cjs +21 -1
- package/dist/extra/storage-tiers-browser.cjs.map +1 -0
- package/dist/extra/storage-tiers-browser.d.cts +1 -120
- package/dist/extra/storage-tiers-browser.d.ts +1 -120
- package/dist/extra/storage-tiers-browser.js +3 -1
- package/dist/extra/storage-tiers-browser.js.map +1 -0
- package/dist/extra/storage-tiers-node.cjs +21 -1
- package/dist/extra/storage-tiers-node.cjs.map +1 -0
- package/dist/extra/storage-tiers-node.d.cts +1 -210
- package/dist/extra/storage-tiers-node.d.ts +1 -210
- package/dist/extra/storage-tiers-node.js +3 -1
- package/dist/extra/storage-tiers-node.js.map +1 -0
- package/dist/extra/storage-tiers.cjs +21 -1
- package/dist/extra/storage-tiers.cjs.map +1 -0
- package/dist/extra/storage-tiers.d.cts +1 -412
- package/dist/extra/storage-tiers.d.ts +1 -412
- package/dist/extra/storage-tiers.js +3 -1
- package/dist/extra/storage-tiers.js.map +1 -0
- package/dist/extra/storage-wal.cjs +21 -0
- package/dist/extra/storage-wal.cjs.map +1 -0
- package/dist/extra/storage-wal.d.cts +1 -0
- package/dist/extra/storage-wal.d.ts +1 -0
- package/dist/extra/storage-wal.js +3 -0
- package/dist/extra/storage-wal.js.map +1 -0
- package/dist/graph/index.cjs +21 -7
- package/dist/graph/index.cjs.map +1 -0
- package/dist/graph/index.d.cts +1 -7
- package/dist/graph/index.d.ts +1 -7
- package/dist/graph/index.js +3 -1
- package/dist/graph/index.js.map +1 -0
- package/dist/index.cjs +20 -227
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +45 -96
- package/dist/index.d.ts +45 -96
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -0
- package/dist/patterns/ai/browser.cjs +20 -7
- package/dist/patterns/ai/browser.cjs.map +1 -0
- package/dist/patterns/ai/browser.d.cts +1 -127
- package/dist/patterns/ai/browser.d.ts +1 -127
- package/dist/patterns/ai/browser.js +3 -3
- package/dist/patterns/ai/browser.js.map +1 -0
- package/dist/patterns/ai/index.cjs +20 -73
- package/dist/patterns/ai/index.cjs.map +1 -0
- package/dist/patterns/ai/index.d.cts +1 -21
- package/dist/patterns/ai/index.d.ts +1 -21
- package/dist/patterns/ai/index.js +3 -1
- package/dist/patterns/ai/index.js.map +1 -0
- package/dist/patterns/ai/node.cjs +21 -1
- package/dist/patterns/ai/node.cjs.map +1 -0
- package/dist/patterns/ai/node.d.cts +1 -59
- package/dist/patterns/ai/node.d.ts +1 -59
- package/dist/patterns/ai/node.js +3 -1
- package/dist/patterns/ai/node.js.map +1 -0
- package/dist/patterns/cqrs/index.cjs +21 -3
- package/dist/patterns/cqrs/index.cjs.map +1 -0
- package/dist/patterns/cqrs/index.d.cts +1 -8
- package/dist/patterns/cqrs/index.d.ts +1 -8
- package/dist/patterns/cqrs/index.js +3 -1
- package/dist/patterns/cqrs/index.js.map +1 -0
- package/dist/patterns/demo-shell/index.cjs +21 -5
- package/dist/patterns/demo-shell/index.cjs.map +1 -0
- package/dist/patterns/demo-shell/index.d.cts +1 -7
- package/dist/patterns/demo-shell/index.d.ts +1 -7
- package/dist/patterns/demo-shell/index.js +3 -1
- package/dist/patterns/demo-shell/index.js.map +1 -0
- package/dist/patterns/domain-templates/index.cjs +21 -3
- package/dist/patterns/domain-templates/index.cjs.map +1 -0
- package/dist/patterns/domain-templates/index.d.cts +1 -6
- package/dist/patterns/domain-templates/index.d.ts +1 -6
- package/dist/patterns/domain-templates/index.js +3 -1
- package/dist/patterns/domain-templates/index.js.map +1 -0
- package/dist/patterns/graphspec/index.cjs +21 -86
- package/dist/patterns/graphspec/index.cjs.map +1 -0
- package/dist/patterns/graphspec/index.d.cts +1 -8
- package/dist/patterns/graphspec/index.d.ts +1 -8
- package/dist/patterns/graphspec/index.js +3 -1
- package/dist/patterns/graphspec/index.js.map +1 -0
- package/dist/patterns/harness/index.cjs +21 -48
- package/dist/patterns/harness/index.cjs.map +1 -0
- package/dist/patterns/harness/index.d.cts +1 -14
- package/dist/patterns/harness/index.d.ts +1 -14
- package/dist/patterns/harness/index.js +3 -1
- package/dist/patterns/harness/index.js.map +1 -0
- package/dist/patterns/inspect/index.cjs +21 -3
- package/dist/patterns/inspect/index.cjs.map +1 -0
- package/dist/patterns/inspect/index.d.cts +1 -9
- package/dist/patterns/inspect/index.d.ts +1 -9
- package/dist/patterns/inspect/index.js +3 -1
- package/dist/patterns/inspect/index.js.map +1 -0
- package/dist/patterns/job-queue/index.cjs +21 -3
- package/dist/patterns/job-queue/index.cjs.map +1 -0
- package/dist/patterns/job-queue/index.d.cts +1 -9
- package/dist/patterns/job-queue/index.d.ts +1 -9
- package/dist/patterns/job-queue/index.js +3 -1
- package/dist/patterns/job-queue/index.js.map +1 -0
- package/dist/patterns/memory/index.cjs +21 -3
- package/dist/patterns/memory/index.cjs.map +1 -0
- package/dist/patterns/memory/index.d.cts +1 -8
- package/dist/patterns/memory/index.d.ts +1 -8
- package/dist/patterns/memory/index.js +3 -1
- package/dist/patterns/memory/index.js.map +1 -0
- package/dist/patterns/messaging/index.cjs +21 -3
- package/dist/patterns/messaging/index.cjs.map +1 -0
- package/dist/patterns/messaging/index.d.cts +1 -7
- package/dist/patterns/messaging/index.d.ts +1 -7
- package/dist/patterns/messaging/index.js +3 -1
- package/dist/patterns/messaging/index.js.map +1 -0
- package/dist/patterns/orchestration/index.cjs +21 -3
- package/dist/patterns/orchestration/index.cjs.map +1 -0
- package/dist/patterns/orchestration/index.d.cts +1 -9
- package/dist/patterns/orchestration/index.d.ts +1 -9
- package/dist/patterns/orchestration/index.js +3 -1
- package/dist/patterns/orchestration/index.js.map +1 -0
- package/dist/patterns/process/index.cjs +21 -1
- package/dist/patterns/process/index.cjs.map +1 -0
- package/dist/patterns/process/index.d.cts +1 -10
- package/dist/patterns/process/index.d.ts +1 -10
- package/dist/patterns/process/index.js +3 -1
- package/dist/patterns/process/index.js.map +1 -0
- package/dist/patterns/reactive-layout/index.cjs +21 -4
- package/dist/patterns/reactive-layout/index.cjs.map +1 -0
- package/dist/patterns/reactive-layout/index.d.cts +1 -7
- package/dist/patterns/reactive-layout/index.d.ts +1 -7
- package/dist/patterns/reactive-layout/index.js +3 -1
- package/dist/patterns/reactive-layout/index.js.map +1 -0
- package/dist/patterns/reduction/index.cjs +21 -3
- package/dist/patterns/reduction/index.cjs.map +1 -0
- package/dist/patterns/reduction/index.d.cts +1 -6
- package/dist/patterns/reduction/index.d.ts +1 -6
- package/dist/patterns/reduction/index.js +3 -1
- package/dist/patterns/reduction/index.js.map +1 -0
- package/dist/patterns/surface/index.cjs +21 -13
- package/dist/patterns/surface/index.cjs.map +1 -0
- package/dist/patterns/surface/index.d.cts +1 -9
- package/dist/patterns/surface/index.d.ts +1 -9
- package/dist/patterns/surface/index.js +3 -1
- package/dist/patterns/surface/index.js.map +1 -0
- package/dist/patterns/topology-view/index.cjs +21 -0
- package/dist/patterns/topology-view/index.cjs.map +1 -0
- package/dist/patterns/topology-view/index.d.cts +1 -0
- package/dist/patterns/topology-view/index.d.ts +1 -0
- package/dist/patterns/topology-view/index.js +3 -0
- package/dist/patterns/topology-view/index.js.map +1 -0
- package/dist/testing/index.cjs +21 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +608 -584
- package/dist/backoff-HPZMEZNF.js +0 -1
- package/dist/cascading-CH-_VwG9.d.cts +0 -199
- package/dist/cascading-OgKQZjsa.d.ts +0 -199
- package/dist/chunk-35JTVPOX.js +0 -1
- package/dist/chunk-3G5U5QNE.js +0 -5
- package/dist/chunk-3XDYJRYU.js +0 -1
- package/dist/chunk-4I45FVQS.js +0 -1
- package/dist/chunk-4VVTGLXJ.js +0 -1
- package/dist/chunk-4YAN45KM.js +0 -1
- package/dist/chunk-5QDBSZBV.js +0 -1
- package/dist/chunk-626TESAC.js +0 -3
- package/dist/chunk-6HOSXQKF.js +0 -1
- package/dist/chunk-6QZNQS5B.js +0 -1
- package/dist/chunk-C72GO4IZ.js +0 -1
- package/dist/chunk-CE72X3WO.js +0 -1
- package/dist/chunk-CK2E7BTU.js +0 -1
- package/dist/chunk-CLD3F4R5.js +0 -1
- package/dist/chunk-CUNIRONA.js +0 -1
- package/dist/chunk-D27JNOLZ.js +0 -1
- package/dist/chunk-D5RFJOZ2.js +0 -1
- package/dist/chunk-EBW4V6JN.js +0 -1
- package/dist/chunk-ESMPEKEV.js +0 -1
- package/dist/chunk-F3IGTWCQ.js +0 -1
- package/dist/chunk-F672GV32.js +0 -1
- package/dist/chunk-FDQGFWLF.js +0 -1
- package/dist/chunk-FG4TKHMC.js +0 -1
- package/dist/chunk-GPW2V3RE.js +0 -1
- package/dist/chunk-I7IGYPSL.js +0 -1
- package/dist/chunk-INQD2KRQ.js +0 -1
- package/dist/chunk-JNWRYDJN.js +0 -1
- package/dist/chunk-JQFH2DV6.js +0 -1
- package/dist/chunk-K2Q24F5T.js +0 -1
- package/dist/chunk-KGKJCHEK.js +0 -1
- package/dist/chunk-KRH66M4O.js +0 -1
- package/dist/chunk-KVV66NN2.js +0 -1
- package/dist/chunk-L6NSJVJZ.js +0 -1
- package/dist/chunk-LYCLF26R.js +0 -1
- package/dist/chunk-NNKJUORL.js +0 -1
- package/dist/chunk-NON4NLIC.js +0 -45
- package/dist/chunk-O2BLLH7M.js +0 -18
- package/dist/chunk-OCKEEPRJ.js +0 -2
- package/dist/chunk-OFZG3TB3.js +0 -9
- package/dist/chunk-OYJKFY7V.js +0 -1
- package/dist/chunk-P6C4WHZO.js +0 -5
- package/dist/chunk-PT7W5FCD.js +0 -5
- package/dist/chunk-Q4U3A3L5.js +0 -1
- package/dist/chunk-QE4IGY7I.js +0 -61
- package/dist/chunk-QYADASLV.js +0 -1
- package/dist/chunk-QYVXF7GW.js +0 -1
- package/dist/chunk-S3EEIPO7.js +0 -1
- package/dist/chunk-SUWT3ZON.js +0 -1
- package/dist/chunk-TPKQW72B.js +0 -1
- package/dist/chunk-TSOYJ743.js +0 -1
- package/dist/chunk-TZQPPQEQ.js +0 -1
- package/dist/chunk-V5A7M7RJ.js +0 -1
- package/dist/chunk-VIMF6LGM.js +0 -1
- package/dist/chunk-VJLMUKOI.js +0 -1
- package/dist/chunk-VN6RDSK2.js +0 -1
- package/dist/chunk-VNC3TMVY.js +0 -1
- package/dist/chunk-VOPGGIL7.js +0 -1
- package/dist/chunk-VQ4A6T2A.js +0 -1
- package/dist/chunk-XG62INFA.js +0 -1
- package/dist/chunk-Y4NI3X7O.js +0 -84
- package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
- package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
- package/dist/decay-2ZukgQ4o.d.cts +0 -112
- package/dist/decay-CdEBmDIs.d.ts +0 -112
- package/dist/fallback-CqYVLL6X.d.ts +0 -250
- package/dist/fallback-Ctlj2tMY.d.cts +0 -250
- package/dist/graph-7VguS7a4.d.ts +0 -1668
- package/dist/graph-C4SHb3Ly.d.cts +0 -1668
- package/dist/index-0rKFCVFp.d.cts +0 -557
- package/dist/index-B-i4_g3k.d.ts +0 -651
- package/dist/index-B5iz82A3.d.cts +0 -2655
- package/dist/index-BAOD98JD.d.cts +0 -754
- package/dist/index-BG0BN3PB.d.ts +0 -44
- package/dist/index-BJX94aud.d.cts +0 -34
- package/dist/index-BP8a88zx.d.ts +0 -385
- package/dist/index-BTQtTb_H.d.cts +0 -301
- package/dist/index-BVpm6noz.d.cts +0 -36
- package/dist/index-Bc41FuHp.d.cts +0 -291
- package/dist/index-BdGtBX-X.d.cts +0 -515
- package/dist/index-Bf7eqeSF.d.ts +0 -113
- package/dist/index-BiX1Nkgx.d.cts +0 -1844
- package/dist/index-BoLv_OfD.d.cts +0 -651
- package/dist/index-BojK2fwH.d.cts +0 -299
- package/dist/index-BsT7F2et.d.ts +0 -291
- package/dist/index-BwLvVVsy.d.cts +0 -189
- package/dist/index-C59mYFKp.d.ts +0 -121
- package/dist/index-C7O6r5fV.d.ts +0 -37
- package/dist/index-C9kSENB4.d.cts +0 -127
- package/dist/index-C9pjcz3l.d.cts +0 -209
- package/dist/index-CAC_rNzm.d.ts +0 -189
- package/dist/index-CCq87F7t.d.ts +0 -127
- package/dist/index-CDXc9zKM.d.cts +0 -26
- package/dist/index-CJK1JkYy.d.ts +0 -36
- package/dist/index-CLon-IWF.d.cts +0 -374
- package/dist/index-COD1kVoS.d.cts +0 -468
- package/dist/index-CPT7C_f1.d.ts +0 -374
- package/dist/index-CQG3D1cp.d.ts +0 -468
- package/dist/index-CZQXo5tH.d.ts +0 -209
- package/dist/index-CZjOhcBy.d.cts +0 -113
- package/dist/index-ChOyVLKm.d.cts +0 -86
- package/dist/index-CvrqGfNS.d.ts +0 -34
- package/dist/index-D-AEQVLo.d.ts +0 -2655
- package/dist/index-D4Y1cMG0.d.ts +0 -26
- package/dist/index-DBHK8O6H.d.ts +0 -301
- package/dist/index-DBevwHj_.d.ts +0 -515
- package/dist/index-DIOoAZUX.d.ts +0 -45
- package/dist/index-DSZ3ZCHF.d.ts +0 -3402
- package/dist/index-Dgs8zcj7.d.ts +0 -102
- package/dist/index-Dh_HJ82K.d.ts +0 -299
- package/dist/index-Dhc7a7Xo.d.cts +0 -102
- package/dist/index-Dmqp7KjD.d.ts +0 -86
- package/dist/index-Dn-wI9g4.d.ts +0 -231
- package/dist/index-Du7u1lSf.d.cts +0 -385
- package/dist/index-DwigL4lY.d.ts +0 -1844
- package/dist/index-DyR7eU5S.d.cts +0 -779
- package/dist/index-JZUPJIJy.d.ts +0 -779
- package/dist/index-K0_0eR8g.d.ts +0 -557
- package/dist/index-O16yXPK4.d.cts +0 -3402
- package/dist/index-O7fucFrU.d.cts +0 -121
- package/dist/index-RV_yDjOX.d.cts +0 -198
- package/dist/index-cm1GNcWE.d.ts +0 -754
- package/dist/index-f5IivDUX.d.cts +0 -37
- package/dist/index-hHcaFlJX.d.cts +0 -45
- package/dist/index-tJoTcnHh.d.cts +0 -231
- package/dist/index-wAzD9yVj.d.ts +0 -198
- package/dist/index-z96luz5O.d.cts +0 -44
- package/dist/meta-BgVAsg9j.d.ts +0 -102
- package/dist/meta-vE8bxW1E.d.cts +0 -102
- package/dist/node-ClS5yC-B.d.cts +0 -1347
- package/dist/node-ClS5yC-B.d.ts +0 -1347
- package/dist/observable-BsBzUrcI.d.ts +0 -36
- package/dist/observable-DLGPPtb8.d.cts +0 -36
- package/dist/pipeline-graph-DPqKDk59.d.cts +0 -137
- package/dist/pipeline-graph-loP57TBA.d.ts +0 -137
- package/dist/reactive-layout-Dsvob4zD.d.cts +0 -183
- package/dist/reactive-layout-v7KPvxoc.d.ts +0 -183
- package/dist/reactive-log-B00laMSQ.d.cts +0 -223
- package/dist/reactive-log-BezYsbA_.d.ts +0 -223
- package/dist/reactive-map-48mnZ-nu.d.cts +0 -296
- package/dist/reactive-map-BVVPdvmi.d.ts +0 -296
- package/dist/resilience-YIWPK4YC.js +0 -1
- package/dist/sugar-DLwvMr3F.d.ts +0 -223
- package/dist/sugar-DyVGtczU.d.cts +0 -223
- package/dist/topology-tree-BNGvuG82.d.ts +0 -25
- package/dist/topology-tree-BSdfSwMi.d.cts +0 -25
- package/dist/types-B1jDWVsM.d.cts +0 -442
- package/dist/types-DkzUUs0H.d.ts +0 -442
package/dist/index-Dn-wI9g4.d.ts
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-ClS5yC-B.js';
|
|
2
|
-
import { a as GraphOptions, G as Graph } from './graph-7VguS7a4.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 };
|
|
@@ -1,385 +0,0 @@
|
|
|
1
|
-
import { D as DescribeNodeOutput } from './meta-vE8bxW1E.cjs';
|
|
2
|
-
import { N as Node } from './node-ClS5yC-B.cjs';
|
|
3
|
-
import { G as Graph, b as GraphDescribeOutput } from './graph-C4SHb3Ly.cjs';
|
|
4
|
-
import { L as LLMAdapter } from './types-B1jDWVsM.cjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* LLM graph composition (roadmap §8.3).
|
|
8
|
-
*
|
|
9
|
-
* Declarative GraphSpec schema + compiler/decompiler for graph topology.
|
|
10
|
-
* The LLM designs graphs as JSON; `compileSpec` instantiates them;
|
|
11
|
-
* `decompileSpec` extracts them back. Templates support reusable subgraph
|
|
12
|
-
* patterns. Feedback edges express bounded cycles via §8.1 feedback().
|
|
13
|
-
*
|
|
14
|
-
* **Tier 1.5.3 Phase 3 (2026-04-27):** `GraphSpec` is a structural alias of
|
|
15
|
-
* {@link GraphDescribeOutput} with two LLM-author-friendly extras
|
|
16
|
-
* (`templates?` / `feedback?`). Per-node factory references are encoded in
|
|
17
|
-
* `meta.factory` + `meta.factoryArgs` (no more `fn` / `source` / `config` /
|
|
18
|
-
* `initial` fields). State node initial values live in
|
|
19
|
-
* `meta.factoryArgs.initial` (state self-tags with
|
|
20
|
-
* `factoryTag("state", { initial })`).
|
|
21
|
-
*
|
|
22
|
-
* @module
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* A single node declaration in a GraphSpec — structural alias of
|
|
27
|
-
* {@link DescribeNodeOutput}.
|
|
28
|
-
*
|
|
29
|
-
* Per-node factory provenance lives in `meta.factory` + `meta.factoryArgs`
|
|
30
|
-
* (use {@link factoryTag} to stamp them at construction time). State node
|
|
31
|
-
* initial values come through `meta.factoryArgs.initial` for tagged states,
|
|
32
|
-
* with fallback to `value` (since spec projection retains state values).
|
|
33
|
-
*/
|
|
34
|
-
type GraphSpecNode = DescribeNodeOutput;
|
|
35
|
-
/** Template instantiation node — expanded at compile time. */
|
|
36
|
-
type GraphSpecTemplateRef = {
|
|
37
|
-
type: "template";
|
|
38
|
-
/** Name of the template to instantiate. */
|
|
39
|
-
template: string;
|
|
40
|
-
/** Parameter bindings: template param name → node name. */
|
|
41
|
-
bind: Record<string, string>;
|
|
42
|
-
};
|
|
43
|
-
/** A reusable subgraph pattern with parameter substitution. */
|
|
44
|
-
type GraphSpecTemplate = {
|
|
45
|
-
/** Parameter names (prefixed with $ in node refs). */
|
|
46
|
-
params: string[];
|
|
47
|
-
/** Node declarations within the template. */
|
|
48
|
-
nodes: Record<string, GraphSpecNode>;
|
|
49
|
-
/** Which node's output is the template's output. */
|
|
50
|
-
output: string;
|
|
51
|
-
};
|
|
52
|
-
/** A feedback edge: bounded cycle from condition to reentry. */
|
|
53
|
-
type GraphSpecFeedbackEdge = {
|
|
54
|
-
/** Node whose DATA triggers the feedback. */
|
|
55
|
-
from: string;
|
|
56
|
-
/** State node that receives the feedback value. */
|
|
57
|
-
to: string;
|
|
58
|
-
/** Max iterations before stopping (default: 10). */
|
|
59
|
-
maxIterations?: number;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Declarative graph topology for LLM composition (§8.3).
|
|
63
|
-
*
|
|
64
|
-
* Tier 1.5.3 Phase 3 (2026-04-27): structural alias of
|
|
65
|
-
* {@link GraphDescribeOutput} extended with optional `templates` /
|
|
66
|
-
* `feedback` fields for LLM-author convenience. Top-level `factory` /
|
|
67
|
-
* `factoryArgs` (Phase 2.5 carry) ride along on every describe output.
|
|
68
|
-
*
|
|
69
|
-
* Round-trip property: `decompileSpec(g) === g.describe({ detail: "spec" })`
|
|
70
|
-
* (modulo the small feedback-edge extraction sugar).
|
|
71
|
-
*/
|
|
72
|
-
type GraphSpec = Omit<GraphDescribeOutput, "nodes" | "expand"> & {
|
|
73
|
-
/** Node declarations (keyed by node name). Either a structural describe entry or a template ref. */
|
|
74
|
-
nodes: Record<string, GraphSpecNode | GraphSpecTemplateRef>;
|
|
75
|
-
/** Reusable subgraph templates (LLM-author extra; not present in `describe()` output). */
|
|
76
|
-
templates?: Record<string, GraphSpecTemplate>;
|
|
77
|
-
/** Feedback edges (bounded cycles, LLM-author extra). */
|
|
78
|
-
feedback?: GraphSpecFeedbackEdge[];
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Factory for creating a derived/effect/operator node from catalog.
|
|
82
|
-
* Receives resolved dep nodes and the config from the spec.
|
|
83
|
-
*/
|
|
84
|
-
type FnFactory = (deps: Node<unknown>[], config: Record<string, unknown>) => Node<unknown>;
|
|
85
|
-
/**
|
|
86
|
-
* Factory for creating a producer node from catalog.
|
|
87
|
-
* Receives the config from the spec.
|
|
88
|
-
*/
|
|
89
|
-
type SourceFactory = (config: Record<string, unknown>) => Node<unknown>;
|
|
90
|
-
/** Simple config field descriptor for LLM prompt generation and validation. */
|
|
91
|
-
type ConfigFieldSchema = {
|
|
92
|
-
/** Human-readable type: "string", "number", "boolean", "string[]", etc. */
|
|
93
|
-
type: string;
|
|
94
|
-
/** Whether this field is required (default: true). */
|
|
95
|
-
required?: boolean;
|
|
96
|
-
/** Allowed values (enum constraint). */
|
|
97
|
-
enum?: readonly (string | number | boolean)[];
|
|
98
|
-
/** Human-readable description for LLM context. */
|
|
99
|
-
description?: string;
|
|
100
|
-
/** Default value if omitted. */
|
|
101
|
-
default?: unknown;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Rich catalog entry: bundles a runtime factory with LLM-facing metadata.
|
|
105
|
-
*
|
|
106
|
-
* The metadata is used to:
|
|
107
|
-
* 1. Auto-generate prompt text for {@link llmCompose} (replaces manual `catalogDescription`)
|
|
108
|
-
* 2. Validate LLM output in {@link validateSpec} (catch wrong fn names, invalid config)
|
|
109
|
-
* 3. Provide actionable error messages for {@link llmRefine} feedback loops
|
|
110
|
-
*
|
|
111
|
-
* Developers register ONE object; the library handles prompt generation and validation.
|
|
112
|
-
*/
|
|
113
|
-
type CatalogFnEntry = {
|
|
114
|
-
/** Runtime factory. */
|
|
115
|
-
factory: FnFactory;
|
|
116
|
-
/** One-line description for LLM prompt (what it does, not how). */
|
|
117
|
-
description: string;
|
|
118
|
-
/** Config field schemas. Keys are config field names. */
|
|
119
|
-
configSchema?: Record<string, ConfigFieldSchema>;
|
|
120
|
-
/** Example config objects (shown in prompt for complex fns). */
|
|
121
|
-
examples?: Record<string, unknown>[];
|
|
122
|
-
/** Category tags for grouping in prompt (e.g., "resilience", "reduction", "ai"). */
|
|
123
|
-
tags?: string[];
|
|
124
|
-
};
|
|
125
|
-
/** Rich catalog entry for producer sources. */
|
|
126
|
-
type CatalogSourceEntry = {
|
|
127
|
-
/** Runtime factory. */
|
|
128
|
-
factory: SourceFactory;
|
|
129
|
-
/** One-line description for LLM prompt. */
|
|
130
|
-
description: string;
|
|
131
|
-
/** Config field schemas. */
|
|
132
|
-
configSchema?: Record<string, ConfigFieldSchema>;
|
|
133
|
-
/** Example config objects. */
|
|
134
|
-
examples?: Record<string, unknown>[];
|
|
135
|
-
/** Category tags. */
|
|
136
|
-
tags?: string[];
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Top-level Graph factory — used when a spec was produced from a graph that
|
|
140
|
-
* called `Graph.prototype.tagFactory(name, args)`. The catalog supplies a
|
|
141
|
-
* function that takes the recorded `factoryArgs` (JSON-serializable subset)
|
|
142
|
-
* and returns a fully-wired Graph. Runtime context (LLMAdapter instances,
|
|
143
|
-
* callbacks, embedders) is captured by the closure — the args themselves are
|
|
144
|
-
* a documentation fragment, not a complete construction recipe.
|
|
145
|
-
*
|
|
146
|
-
* Tier 1.5.3 Phase 2.5 (DG1=B, 2026-04-27).
|
|
147
|
-
*/
|
|
148
|
-
type GraphFactory = (factoryArgs: unknown) => Graph;
|
|
149
|
-
/**
|
|
150
|
-
* Fn/source lookup table passed to compileSpec and llmCompose.
|
|
151
|
-
*
|
|
152
|
-
* Accepts both bare factories (backward-compatible) and rich {@link CatalogFnEntry}
|
|
153
|
-
* / {@link CatalogSourceEntry} objects. When rich entries are provided, the library
|
|
154
|
-
* auto-generates LLM prompts and validates LLM output against the catalog.
|
|
155
|
-
*
|
|
156
|
-
* `graphFactories` (Tier 1.5.3 Phase 2.5) handles top-level Graph-returning
|
|
157
|
-
* factories — when `spec.factory` matches a key, `compileSpec` delegates the
|
|
158
|
-
* entire reconstruction to that factory.
|
|
159
|
-
*/
|
|
160
|
-
type GraphSpecCatalog = {
|
|
161
|
-
fns?: Record<string, FnFactory | CatalogFnEntry>;
|
|
162
|
-
sources?: Record<string, SourceFactory | CatalogSourceEntry>;
|
|
163
|
-
graphFactories?: Record<string, GraphFactory>;
|
|
164
|
-
};
|
|
165
|
-
/** Type guard: is this a rich catalog fn entry (vs bare factory)? */
|
|
166
|
-
declare function isRichFnEntry(entry: FnFactory | CatalogFnEntry): entry is CatalogFnEntry;
|
|
167
|
-
/** Type guard: is this a rich catalog source entry (vs bare factory)? */
|
|
168
|
-
declare function isRichSourceEntry(entry: SourceFactory | CatalogSourceEntry): entry is CatalogSourceEntry;
|
|
169
|
-
/** Extract the runtime factory from a catalog entry (rich or bare). */
|
|
170
|
-
declare function extractFnFactory(entry: FnFactory | CatalogFnEntry): FnFactory;
|
|
171
|
-
/** Extract the runtime factory from a catalog source entry (rich or bare). */
|
|
172
|
-
declare function extractSourceFactory(entry: SourceFactory | CatalogSourceEntry): SourceFactory;
|
|
173
|
-
/**
|
|
174
|
-
* Auto-generate catalog prompt text from rich catalog entries.
|
|
175
|
-
*
|
|
176
|
-
* Groups fns by tag, formats each as `- name: description. Config: { ... }`.
|
|
177
|
-
* Falls back to listing names only for bare factories.
|
|
178
|
-
*/
|
|
179
|
-
declare function generateCatalogPrompt(catalog: GraphSpecCatalog): string;
|
|
180
|
-
/**
|
|
181
|
-
* Validate a GraphSpec against a catalog.
|
|
182
|
-
*
|
|
183
|
-
* Checks that fn/source names reference actual catalog entries, and validates
|
|
184
|
-
* config fields against configSchema when rich entries are available.
|
|
185
|
-
* Returns additional errors beyond structural {@link validateSpec} checks.
|
|
186
|
-
*/
|
|
187
|
-
declare function validateSpecAgainstCatalog(spec: GraphSpec, catalog: GraphSpecCatalog): GraphSpecValidation;
|
|
188
|
-
/** Validation result from {@link validateSpec}. */
|
|
189
|
-
type GraphSpecValidation = {
|
|
190
|
-
valid: boolean;
|
|
191
|
-
errors: string[];
|
|
192
|
-
/**
|
|
193
|
-
* Non-fatal advisories. Currently includes feedback edges whose `from`
|
|
194
|
-
* refers to an `effect` node (effects produce no DATA — the feedback
|
|
195
|
-
* counter will never advance). Always present (empty array when nothing
|
|
196
|
-
* is flagged) — symmetry with `errors` so callers can read
|
|
197
|
-
* `result.warnings.length` without a null check.
|
|
198
|
-
*/
|
|
199
|
-
warnings: string[];
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* Validate a GraphSpec JSON object.
|
|
203
|
-
*
|
|
204
|
-
* Checks structural validity: required fields, node types, dep references,
|
|
205
|
-
* template references, feedback edge targets, self-cycles, and bind completeness.
|
|
206
|
-
*
|
|
207
|
-
* **Effect-node feedback advisory (C24-3).** When a feedback edge's `from`
|
|
208
|
-
* refers to an `effect` node, the validator flags it via `warnings` (not
|
|
209
|
-
* `errors`) — effect nodes produce no DATA emission, so a feedback counter
|
|
210
|
-
* targeting one will never advance. The spec compiles either way; the
|
|
211
|
-
* advisory exists because the misconfiguration is silent at runtime
|
|
212
|
-
* (counter at 0 forever) without it.
|
|
213
|
-
*/
|
|
214
|
-
declare function validateSpec(spec: unknown): GraphSpecValidation;
|
|
215
|
-
/** Options for {@link compileSpec}. */
|
|
216
|
-
type CompileSpecOptions = {
|
|
217
|
-
/** Fn/source catalog for resolving named factories. */
|
|
218
|
-
catalog?: GraphSpecCatalog;
|
|
219
|
-
/**
|
|
220
|
-
* How to handle nodes whose `fn` / `source` is missing from the catalog.
|
|
221
|
-
* - `"placeholder"` (default): silently substitute identity passthroughs
|
|
222
|
-
* (`producer(() => {})` / `derived(deps, vals => vals[0])`). Backward-
|
|
223
|
-
* compatible — preserves the historical "soft compile" behavior.
|
|
224
|
-
* - `"warn"`: substitute placeholders AND log each missing entry via
|
|
225
|
-
* `console.warn`, or via the `onWarn` callback if supplied.
|
|
226
|
-
* - `"error"`: collect every missing entry across the whole spec, then
|
|
227
|
-
* throw an `Error` listing them all (no partial graph returned).
|
|
228
|
-
*/
|
|
229
|
-
onMissing?: "error" | "warn" | "placeholder";
|
|
230
|
-
/** Custom warning sink. Used only when `onMissing === "warn"`. Defaults to `console.warn`. */
|
|
231
|
-
onWarn?: (message: string) => void;
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* Instantiate a Graph from a GraphSpec.
|
|
235
|
-
*
|
|
236
|
-
* Handles template expansion (mounted subgraphs), feedback wiring via §8.1
|
|
237
|
-
* feedback(), node factory lookup from the catalog, and topology validation.
|
|
238
|
-
*
|
|
239
|
-
* @param spec - Declarative graph topology.
|
|
240
|
-
* @param opts - Catalog and compile options.
|
|
241
|
-
* @returns A running Graph.
|
|
242
|
-
* @throws On validation failure, missing catalog entries, or unresolvable deps.
|
|
243
|
-
*
|
|
244
|
-
* @category patterns
|
|
245
|
-
*/
|
|
246
|
-
declare function compileSpec(spec: GraphSpec, opts?: CompileSpecOptions): Graph;
|
|
247
|
-
/**
|
|
248
|
-
* Extract a {@link GraphSpec} from a running graph.
|
|
249
|
-
*
|
|
250
|
-
* Tier 1.5.3 Phase 3 (2026-04-27): thin projection over
|
|
251
|
-
* `graph.describe({ detail: "spec" })`. The describe-output already carries
|
|
252
|
-
* structural fields (`type`, `deps`, optional `value`) plus per-node
|
|
253
|
-
* `meta.factory` / `meta.factoryArgs` for tagged factories and top-level
|
|
254
|
-
* `factory` / `factoryArgs` for graph-level tags. The only sugar this helper
|
|
255
|
-
* adds is a feedback-edge recovery scan over `meta.feedbackFrom` /
|
|
256
|
-
* `meta.feedbackTo` companion fields stamped by the §8.1 `feedback()`
|
|
257
|
-
* primitive.
|
|
258
|
-
*
|
|
259
|
-
* **Removed in Phase 3:** template fingerprinting / `_templateName` /
|
|
260
|
-
* `_templateBind` recovery. Mounted subgraphs surface as nested `subname::*`
|
|
261
|
-
* paths in `desc.nodes`; if you need the template-instantiation form, build
|
|
262
|
-
* the spec by hand or read the meta companions directly.
|
|
263
|
-
*
|
|
264
|
-
* @param graph - Running graph to decompile.
|
|
265
|
-
* @returns A GraphSpec representation.
|
|
266
|
-
*
|
|
267
|
-
* @category patterns
|
|
268
|
-
*/
|
|
269
|
-
declare function decompileSpec(graph: Graph): GraphSpec;
|
|
270
|
-
/** A single change in a spec diff. */
|
|
271
|
-
type SpecDiffEntry = {
|
|
272
|
-
type: "added" | "removed" | "changed";
|
|
273
|
-
path: string;
|
|
274
|
-
detail?: string;
|
|
275
|
-
};
|
|
276
|
-
/** Structural diff between two GraphSpecs. */
|
|
277
|
-
type SpecDiffResult = {
|
|
278
|
-
entries: SpecDiffEntry[];
|
|
279
|
-
summary: string;
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* Compute a structural diff between two GraphSpecs.
|
|
283
|
-
*
|
|
284
|
-
* Template-aware: reports "changed template definition" vs "changed
|
|
285
|
-
* instantiation bindings." No runtime needed — pure JSON comparison.
|
|
286
|
-
*
|
|
287
|
-
* @param specA - The "before" spec.
|
|
288
|
-
* @param specB - The "after" spec.
|
|
289
|
-
* @returns Diff entries and a human-readable summary.
|
|
290
|
-
*
|
|
291
|
-
* @category patterns
|
|
292
|
-
*/
|
|
293
|
-
declare function specDiff(specA: GraphSpec, specB: GraphSpec): SpecDiffResult;
|
|
294
|
-
/** Options for {@link llmCompose}. */
|
|
295
|
-
type LLMComposeOptions = {
|
|
296
|
-
model?: string;
|
|
297
|
-
temperature?: number;
|
|
298
|
-
maxTokens?: number;
|
|
299
|
-
/** Extra instructions appended to the system prompt. */
|
|
300
|
-
systemPromptExtra?: string;
|
|
301
|
-
/**
|
|
302
|
-
* Available fn/source catalog names for the LLM to reference.
|
|
303
|
-
* When omitted and `catalog` contains rich {@link CatalogFnEntry} entries,
|
|
304
|
-
* the prompt is auto-generated via {@link generateCatalogPrompt}.
|
|
305
|
-
*/
|
|
306
|
-
catalogDescription?: string;
|
|
307
|
-
/**
|
|
308
|
-
* Catalog for auto-prompt generation and catalog-aware validation.
|
|
309
|
-
* When rich entries are provided, the catalog prompt is auto-generated
|
|
310
|
-
* and LLM output is validated against fn/source names and config schemas.
|
|
311
|
-
*/
|
|
312
|
-
catalog?: GraphSpecCatalog;
|
|
313
|
-
/**
|
|
314
|
-
* Max auto-refine attempts when the LLM output fails catalog validation.
|
|
315
|
-
* Each attempt feeds the validation errors back to the LLM via llmRefine.
|
|
316
|
-
* Default: 0 (no auto-refine). Set to 2-3 for production use.
|
|
317
|
-
*/
|
|
318
|
-
maxAutoRefine?: number;
|
|
319
|
-
};
|
|
320
|
-
/**
|
|
321
|
-
* Ask an LLM to compose a GraphSpec from a natural-language problem description.
|
|
322
|
-
*
|
|
323
|
-
* The LLM generates a GraphSpec (with templates + feedback), validated before
|
|
324
|
-
* returning. The spec is for human review before compilation via compileSpec().
|
|
325
|
-
*
|
|
326
|
-
* @param problem - Natural language problem description.
|
|
327
|
-
* @param adapter - LLM adapter for the generation call.
|
|
328
|
-
* @param opts - Model options and catalog description.
|
|
329
|
-
* @returns A validated GraphSpec.
|
|
330
|
-
* @throws On invalid LLM output or validation failure.
|
|
331
|
-
*
|
|
332
|
-
* @category patterns
|
|
333
|
-
*/
|
|
334
|
-
declare function llmCompose(problem: string, adapter: LLMAdapter, opts?: LLMComposeOptions): Promise<GraphSpec>;
|
|
335
|
-
/** Options for {@link llmRefine}. */
|
|
336
|
-
type LLMRefineOptions = LLMComposeOptions;
|
|
337
|
-
/**
|
|
338
|
-
* Ask an LLM to modify an existing GraphSpec based on feedback or changed requirements.
|
|
339
|
-
*
|
|
340
|
-
* @param currentSpec - The current GraphSpec to modify.
|
|
341
|
-
* @param feedback - Natural language feedback or changed requirements.
|
|
342
|
-
* @param adapter - LLM adapter for the generation call.
|
|
343
|
-
* @param opts - Model options.
|
|
344
|
-
* @returns A new GraphSpec incorporating the feedback.
|
|
345
|
-
* @throws On invalid LLM output or validation failure.
|
|
346
|
-
*
|
|
347
|
-
* @category patterns
|
|
348
|
-
*/
|
|
349
|
-
declare function llmRefine(currentSpec: GraphSpec, feedback: string, adapter: LLMAdapter, opts?: LLMRefineOptions): Promise<GraphSpec>;
|
|
350
|
-
|
|
351
|
-
type index_CatalogFnEntry = CatalogFnEntry;
|
|
352
|
-
type index_CatalogSourceEntry = CatalogSourceEntry;
|
|
353
|
-
type index_CompileSpecOptions = CompileSpecOptions;
|
|
354
|
-
type index_ConfigFieldSchema = ConfigFieldSchema;
|
|
355
|
-
type index_FnFactory = FnFactory;
|
|
356
|
-
type index_GraphFactory = GraphFactory;
|
|
357
|
-
type index_GraphSpec = GraphSpec;
|
|
358
|
-
type index_GraphSpecCatalog = GraphSpecCatalog;
|
|
359
|
-
type index_GraphSpecFeedbackEdge = GraphSpecFeedbackEdge;
|
|
360
|
-
type index_GraphSpecNode = GraphSpecNode;
|
|
361
|
-
type index_GraphSpecTemplate = GraphSpecTemplate;
|
|
362
|
-
type index_GraphSpecTemplateRef = GraphSpecTemplateRef;
|
|
363
|
-
type index_GraphSpecValidation = GraphSpecValidation;
|
|
364
|
-
type index_LLMComposeOptions = LLMComposeOptions;
|
|
365
|
-
type index_LLMRefineOptions = LLMRefineOptions;
|
|
366
|
-
type index_SourceFactory = SourceFactory;
|
|
367
|
-
type index_SpecDiffEntry = SpecDiffEntry;
|
|
368
|
-
type index_SpecDiffResult = SpecDiffResult;
|
|
369
|
-
declare const index_compileSpec: typeof compileSpec;
|
|
370
|
-
declare const index_decompileSpec: typeof decompileSpec;
|
|
371
|
-
declare const index_extractFnFactory: typeof extractFnFactory;
|
|
372
|
-
declare const index_extractSourceFactory: typeof extractSourceFactory;
|
|
373
|
-
declare const index_generateCatalogPrompt: typeof generateCatalogPrompt;
|
|
374
|
-
declare const index_isRichFnEntry: typeof isRichFnEntry;
|
|
375
|
-
declare const index_isRichSourceEntry: typeof isRichSourceEntry;
|
|
376
|
-
declare const index_llmCompose: typeof llmCompose;
|
|
377
|
-
declare const index_llmRefine: typeof llmRefine;
|
|
378
|
-
declare const index_specDiff: typeof specDiff;
|
|
379
|
-
declare const index_validateSpec: typeof validateSpec;
|
|
380
|
-
declare const index_validateSpecAgainstCatalog: typeof validateSpecAgainstCatalog;
|
|
381
|
-
declare namespace index {
|
|
382
|
-
export { type index_CatalogFnEntry as CatalogFnEntry, type index_CatalogSourceEntry as CatalogSourceEntry, type index_CompileSpecOptions as CompileSpecOptions, type index_ConfigFieldSchema as ConfigFieldSchema, type index_FnFactory as FnFactory, type index_GraphFactory as GraphFactory, type index_GraphSpec as GraphSpec, type index_GraphSpecCatalog as GraphSpecCatalog, type index_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, type index_GraphSpecNode as GraphSpecNode, type index_GraphSpecTemplate as GraphSpecTemplate, type index_GraphSpecTemplateRef as GraphSpecTemplateRef, type index_GraphSpecValidation as GraphSpecValidation, type index_LLMComposeOptions as LLMComposeOptions, type index_LLMRefineOptions as LLMRefineOptions, type index_SourceFactory as SourceFactory, type index_SpecDiffEntry as SpecDiffEntry, type index_SpecDiffResult as SpecDiffResult, index_compileSpec as compileSpec, index_decompileSpec as decompileSpec, index_extractFnFactory as extractFnFactory, index_extractSourceFactory as extractSourceFactory, index_generateCatalogPrompt as generateCatalogPrompt, index_isRichFnEntry as isRichFnEntry, index_isRichSourceEntry as isRichSourceEntry, index_llmCompose as llmCompose, index_llmRefine as llmRefine, index_specDiff as specDiff, index_validateSpec as validateSpec, index_validateSpecAgainstCatalog as validateSpecAgainstCatalog };
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export { type CatalogFnEntry as C, type FnFactory as F, type GraphSpec as G, type LLMComposeOptions as L, type SourceFactory as S, type CatalogSourceEntry as a, type ConfigFieldSchema as b, type GraphSpecCatalog as c, type GraphSpecFeedbackEdge as d, type GraphSpecNode as e, type GraphSpecTemplate as f, type GraphSpecTemplateRef as g, type GraphSpecValidation as h, index as i, type CompileSpecOptions as j, type GraphFactory as k, type LLMRefineOptions as l, type SpecDiffEntry as m, type SpecDiffResult as n, compileSpec as o, decompileSpec as p, extractFnFactory as q, extractSourceFactory as r, generateCatalogPrompt as s, isRichFnEntry as t, isRichSourceEntry as u, llmCompose as v, llmRefine as w, specDiff as x, validateSpec as y, validateSpecAgainstCatalog as z };
|