@graphrefly/ts 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -0
- package/dist/adapters/index.cjs +105 -66
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.d.cts +11 -136
- package/dist/adapters/index.d.ts +11 -136
- package/dist/adapters/index.js +27 -225
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/observe-storage.d.cts +4 -4
- package/dist/adapters/observe-storage.d.ts +4 -4
- package/dist/adapters/observe-storage.js +1 -0
- package/dist/adapters/observe-storage.js.map +1 -1
- package/dist/adapters/react.cjs +166 -0
- package/dist/adapters/react.cjs.map +1 -0
- package/dist/adapters/react.d.cts +31 -0
- package/dist/adapters/react.d.ts +31 -0
- package/dist/adapters/react.js +51 -0
- package/dist/adapters/react.js.map +1 -0
- package/dist/adapters/solid.cjs +157 -0
- package/dist/adapters/solid.cjs.map +1 -0
- package/dist/adapters/solid.d.cts +26 -0
- package/dist/adapters/solid.d.ts +26 -0
- package/dist/adapters/solid.js +48 -0
- package/dist/adapters/solid.js.map +1 -0
- package/dist/adapters/svelte.cjs +148 -0
- package/dist/adapters/svelte.cjs.map +1 -0
- package/dist/adapters/svelte.d.cts +31 -0
- package/dist/adapters/svelte.d.ts +31 -0
- package/dist/adapters/svelte.js +46 -0
- package/dist/adapters/svelte.js.map +1 -0
- package/dist/adapters/vue.cjs +155 -0
- package/dist/adapters/vue.cjs.map +1 -0
- package/dist/adapters/vue.d.cts +26 -0
- package/dist/adapters/vue.d.ts +26 -0
- package/dist/adapters/vue.js +46 -0
- package/dist/adapters/vue.js.map +1 -0
- package/dist/agent-runtime-BesGDZcB.d.ts +555 -0
- package/dist/agent-runtime-DZTJ3C-p.d.cts +555 -0
- package/dist/agentic-memory-BmRCvh0d.d.ts +517 -0
- package/dist/agentic-memory-DfuVZ-lY.d.cts +517 -0
- package/dist/capability-admission-B0BzqAm5.d.cts +102 -0
- package/dist/capability-admission-g0mn9hpq.d.ts +102 -0
- package/dist/{chunk-JR4IKCR2.js → chunk-2747WN4Y.js} +5 -5
- package/dist/{chunk-2ILL7HQI.js → chunk-3JR3EDB2.js} +17 -17
- package/dist/{chunk-2ILL7HQI.js.map → chunk-3JR3EDB2.js.map} +1 -1
- package/dist/{chunk-GDL26N2T.js → chunk-3KN7NJDR.js} +2 -2
- package/dist/{chunk-DJC4CHLQ.js → chunk-43BKLFZU.js} +9 -9
- package/dist/chunk-6XAIOL3X.js +2407 -0
- package/dist/chunk-6XAIOL3X.js.map +1 -0
- package/dist/{chunk-SCRFRCGR.js → chunk-BSQGE5PS.js} +1 -1
- package/dist/{chunk-Y3ZLRGHC.js → chunk-CZNV3VXM.js} +16 -16
- package/dist/chunk-DGUM43GV.js +11 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/{chunk-JIMUDQN3.js → chunk-FBUU43PM.js} +2 -2
- package/dist/chunk-H75VXTGT.js +219 -0
- package/dist/chunk-H75VXTGT.js.map +1 -0
- package/dist/{chunk-RIIOUTGM.js → chunk-HKK2JD7Z.js} +12 -9
- package/dist/chunk-HKK2JD7Z.js.map +1 -0
- package/dist/{chunk-D6BG7U6A.js → chunk-IXZBUWSP.js} +3 -3
- package/dist/chunk-PC3BTTBE.js +3217 -0
- package/dist/chunk-PC3BTTBE.js.map +1 -0
- package/dist/chunk-QFY4AFY4.js +879 -0
- package/dist/chunk-QFY4AFY4.js.map +1 -0
- package/dist/{chunk-DK554R7P.js → chunk-S6HXABGL.js} +2 -1
- package/dist/chunk-S6HXABGL.js.map +1 -0
- package/dist/{chunk-PKVBHGBM.js → chunk-SS2A464I.js} +7 -7
- package/dist/chunk-UT3MHJCW.js +49 -0
- package/dist/chunk-UT3MHJCW.js.map +1 -0
- package/dist/{chunk-G4M3NHRJ.js → chunk-V7CIJE4B.js} +3 -3
- package/dist/{chunk-TEW47IVR.js → chunk-VPEFSDME.js} +2 -2
- package/dist/chunk-VTHLCFN4.js +368 -0
- package/dist/chunk-VTHLCFN4.js.map +1 -0
- package/dist/{chunk-SWTLEQL6.js → chunk-WQIA3GFB.js} +2 -2
- package/dist/chunk-WQIA3GFB.js.map +1 -0
- package/dist/{chunk-I3IHOHCJ.js → chunk-XKXWK2KP.js} +108 -64
- package/dist/chunk-XKXWK2KP.js.map +1 -0
- package/dist/{chunk-COHO25CZ.js → chunk-YDSIVHRR.js} +553 -7
- package/dist/chunk-YDSIVHRR.js.map +1 -0
- package/dist/chunk-YXMZ2N6J.js +1884 -0
- package/dist/chunk-YXMZ2N6J.js.map +1 -0
- package/dist/composition/index.cjs +102 -57
- package/dist/composition/index.cjs.map +1 -1
- package/dist/composition/index.d.cts +4 -4
- package/dist/composition/index.d.ts +4 -4
- package/dist/composition/index.js +6 -5
- package/dist/core/index.cjs +102 -57
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +5 -4
- package/dist/cqrs/index.cjs.map +1 -1
- package/dist/cqrs/index.d.cts +4 -4
- package/dist/cqrs/index.d.ts +4 -4
- package/dist/cqrs/index.js +3 -2
- package/dist/cqrs/index.js.map +1 -1
- package/dist/cqrs/messaging.cjs +312 -0
- package/dist/cqrs/messaging.cjs.map +1 -0
- package/dist/cqrs/messaging.d.cts +57 -0
- package/dist/cqrs/messaging.d.ts +57 -0
- package/dist/cqrs/messaging.js +274 -0
- package/dist/cqrs/messaging.js.map +1 -0
- package/dist/cqrs/work-queue.cjs +329 -0
- package/dist/cqrs/work-queue.cjs.map +1 -0
- package/dist/cqrs/work-queue.d.cts +90 -0
- package/dist/cqrs/work-queue.d.ts +90 -0
- package/dist/cqrs/work-queue.js +292 -0
- package/dist/cqrs/work-queue.js.map +1 -0
- package/dist/data/index.cjs +19 -0
- package/dist/data/index.cjs.map +1 -0
- package/dist/data/index.d.cts +36 -0
- package/dist/data/index.d.ts +36 -0
- package/dist/data/index.js +1 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data-structures/index.cjs +105 -57
- package/dist/data-structures/index.cjs.map +1 -1
- package/dist/data-structures/index.d.cts +8 -8
- package/dist/data-structures/index.d.ts +8 -8
- package/dist/data-structures/index.js +7 -6
- package/dist/{describe-BZb7AS2y.d.ts → describe-BpyJuWkw.d.ts} +1 -1
- package/dist/{describe-Ciu8SUnN.d.cts → describe-DYMw_l1C.d.cts} +1 -1
- package/dist/executors/work-queue.cjs +342 -0
- package/dist/executors/work-queue.cjs.map +1 -0
- package/dist/executors/work-queue.d.cts +90 -0
- package/dist/executors/work-queue.d.ts +90 -0
- package/dist/executors/work-queue.js +306 -0
- package/dist/executors/work-queue.js.map +1 -0
- package/dist/graph/index.cjs +112 -58
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +9 -9
- package/dist/graph/index.d.ts +9 -9
- package/dist/graph/index.js +18 -17
- package/dist/{graph-DfdF9zy4.d.ts → graph-D-1-SQeC.d.ts} +3 -3
- package/dist/{graph-s23RbbFO.d.cts → graph-DCEWh4T2.d.cts} +3 -3
- package/dist/{index-CAEmLCYF.d.cts → index-72VZC0-E.d.cts} +2 -2
- package/dist/{index-SnzZu3x7.d.ts → index-Bmxeu0nK.d.ts} +2 -2
- package/dist/index.cjs +112 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +118 -113
- package/dist/inspection/boundary.cjs +98 -0
- package/dist/inspection/boundary.cjs.map +1 -0
- package/dist/inspection/boundary.d.cts +61 -0
- package/dist/inspection/boundary.d.ts +61 -0
- package/dist/inspection/boundary.js +75 -0
- package/dist/inspection/boundary.js.map +1 -0
- package/dist/{messages-BZqrGGm1.d.ts → messages-CAzUPPJM.d.cts} +10 -5
- package/dist/{messages-BZqrGGm1.d.cts → messages-CAzUPPJM.d.ts} +10 -5
- package/dist/messaging/index.cjs +744 -613
- package/dist/messaging/index.cjs.map +1 -1
- package/dist/messaging/index.d.cts +216 -160
- package/dist/messaging/index.d.ts +216 -160
- package/dist/messaging/index.js +19 -749
- package/dist/messaging/index.js.map +1 -1
- package/dist/operators/index.cjs +102 -57
- package/dist/operators/index.cjs.map +1 -1
- package/dist/operators/index.d.cts +6 -6
- package/dist/operators/index.d.ts +6 -6
- package/dist/operators/index.js +8 -7
- package/dist/orchestration/index.cjs +3333 -59
- package/dist/orchestration/index.cjs.map +1 -1
- package/dist/orchestration/index.d.cts +7 -4
- package/dist/orchestration/index.d.ts +7 -4
- package/dist/orchestration/index.js +49 -8
- package/dist/orchestration/index.js.map +1 -1
- package/dist/orchestration/messaging.cjs +314 -0
- package/dist/orchestration/messaging.cjs.map +1 -0
- package/dist/orchestration/messaging.d.cts +59 -0
- package/dist/orchestration/messaging.d.ts +59 -0
- package/dist/orchestration/messaging.js +276 -0
- package/dist/orchestration/messaging.js.map +1 -0
- package/dist/orchestration/work-queue.cjs +262 -0
- package/dist/orchestration/work-queue.cjs.map +1 -0
- package/dist/orchestration/work-queue.d.cts +85 -0
- package/dist/orchestration/work-queue.d.ts +85 -0
- package/dist/orchestration/work-queue.js +226 -0
- package/dist/orchestration/work-queue.js.map +1 -0
- package/dist/patterns/event-flow.cjs +447 -0
- package/dist/patterns/event-flow.cjs.map +1 -0
- package/dist/patterns/event-flow.d.cts +115 -0
- package/dist/patterns/event-flow.d.ts +115 -0
- package/dist/patterns/event-flow.js +14 -0
- package/dist/patterns/event-flow.js.map +1 -0
- package/dist/patterns/index.cjs +423 -18
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +8 -5
- package/dist/patterns/index.d.ts +8 -5
- package/dist/patterns/index.js +13 -4
- package/dist/{reactive-collection-Cb1II1Fi.d.ts → reactive-collection-BAmfrGjd.d.ts} +9 -9
- package/dist/{reactive-collection-BxBqtIOE.d.cts → reactive-collection-DNV0-gFi.d.cts} +9 -9
- package/dist/{reactive-collection-storage-D-KmjE0J.d.cts → reactive-collection-storage-BNEldDyi.d.cts} +5 -5
- package/dist/{reactive-collection-storage-BNiEc-Gd.d.ts → reactive-collection-storage-YZsAQsWK.d.ts} +5 -5
- package/dist/{reactive-map-D-g3dv8I.d.cts → reactive-map-DRD1LJ2H.d.cts} +6 -6
- package/dist/{reactive-map-BcB4KsQR.d.ts → reactive-map-EsDiCmJk.d.ts} +6 -6
- package/dist/render/index.d.cts +3 -3
- package/dist/render/index.d.ts +3 -3
- package/dist/render/index.js +1 -0
- package/dist/{semantic-memory-graph-BYoIlP35.d.cts → semantic-memory-graph-DKuNzuWw.d.cts} +2 -2
- package/dist/{semantic-memory-graph-CxyXLms3.d.ts → semantic-memory-graph-uwbwJdhe.d.ts} +2 -2
- package/dist/solutions/index.cjs +4478 -2
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +13 -519
- package/dist/solutions/index.d.ts +13 -519
- package/dist/solutions/index.js +90 -6
- package/dist/solutions/reactive-layout/browser/index.cjs +449 -0
- package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/browser/index.d.cts +44 -0
- package/dist/solutions/reactive-layout/browser/index.d.ts +44 -0
- package/dist/solutions/reactive-layout/browser/index.js +69 -0
- package/dist/solutions/reactive-layout/browser/index.js.map +1 -0
- package/dist/solutions/reactive-layout/index.cjs +4266 -0
- package/dist/solutions/reactive-layout/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/index.d.cts +581 -0
- package/dist/solutions/reactive-layout/index.d.ts +581 -0
- package/dist/solutions/reactive-layout/index.js +86 -0
- package/dist/solutions/reactive-layout/index.js.map +1 -0
- package/dist/solutions/reactive-layout/node-canvas/index.cjs +545 -0
- package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/node-canvas/index.d.cts +54 -0
- package/dist/solutions/reactive-layout/node-canvas/index.d.ts +54 -0
- package/dist/solutions/reactive-layout/node-canvas/index.js +131 -0
- package/dist/solutions/reactive-layout/node-canvas/index.js.map +1 -0
- package/dist/solutions/reactive-layout/react-native/index.cjs +494 -0
- package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/react-native/index.d.cts +51 -0
- package/dist/solutions/reactive-layout/react-native/index.d.ts +51 -0
- package/dist/solutions/reactive-layout/react-native/index.js +77 -0
- package/dist/solutions/reactive-layout/react-native/index.js.map +1 -0
- package/dist/solutions/reactive-layout/skia/index.cjs +547 -0
- package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -0
- package/dist/solutions/reactive-layout/skia/index.d.cts +64 -0
- package/dist/solutions/reactive-layout/skia/index.d.ts +64 -0
- package/dist/solutions/reactive-layout/skia/index.js +70 -0
- package/dist/solutions/reactive-layout/skia/index.js.map +1 -0
- package/dist/solutions/work-item/actions.cjs +2164 -0
- package/dist/solutions/work-item/actions.cjs.map +1 -0
- package/dist/solutions/work-item/actions.d.cts +201 -0
- package/dist/solutions/work-item/actions.d.ts +201 -0
- package/dist/solutions/work-item/actions.js +1454 -0
- package/dist/solutions/work-item/actions.js.map +1 -0
- package/dist/solutions/work-item/scheduling.cjs +2454 -0
- package/dist/solutions/work-item/scheduling.cjs.map +1 -0
- package/dist/solutions/work-item/scheduling.d.cts +433 -0
- package/dist/solutions/work-item/scheduling.d.ts +433 -0
- package/dist/solutions/work-item/scheduling.js +32 -0
- package/dist/solutions/work-item/scheduling.js.map +1 -0
- package/dist/solutions/work-item/work-queue.cjs +306 -0
- package/dist/solutions/work-item/work-queue.cjs.map +1 -0
- package/dist/solutions/work-item/work-queue.d.cts +71 -0
- package/dist/solutions/work-item/work-queue.d.ts +71 -0
- package/dist/solutions/work-item/work-queue.js +270 -0
- package/dist/solutions/work-item/work-queue.js.map +1 -0
- package/dist/sources/browser.cjs +169 -57
- package/dist/sources/browser.cjs.map +1 -1
- package/dist/sources/browser.d.cts +33 -6
- package/dist/sources/browser.d.ts +33 -6
- package/dist/sources/browser.js +73 -6
- package/dist/sources/browser.js.map +1 -1
- package/dist/sources/index.cjs +102 -57
- package/dist/sources/index.cjs.map +1 -1
- package/dist/sources/index.d.cts +5 -5
- package/dist/sources/index.d.ts +5 -5
- package/dist/sources/index.js +6 -5
- package/dist/sources/node.cjs.map +1 -1
- package/dist/sources/node.d.cts +4 -4
- package/dist/sources/node.d.ts +4 -4
- package/dist/sources/node.js +2 -1
- package/dist/sources/node.js.map +1 -1
- package/dist/storage/browser.js +1 -0
- package/dist/storage/browser.js.map +1 -1
- package/dist/storage/index.d.cts +5 -5
- package/dist/storage/index.d.ts +5 -5
- package/dist/storage/index.js +5 -4
- package/dist/storage/node.js +1 -0
- package/dist/storage/node.js.map +1 -1
- package/dist/store-C-joM4gh.d.ts +123 -0
- package/dist/store-CNJwmT-h.d.cts +123 -0
- package/dist/testing/index.cjs +1 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +3 -2
- package/dist/{types-h12mNYbq.d.ts → types-BsJvElYZ.d.ts} +31 -31
- package/dist/{types-bNMSWKqF.d.cts → types-CcPIn7sy.d.cts} +31 -31
- package/dist/work-item-runtime-C3M79vE9.d.ts +228 -0
- package/dist/work-item-runtime-qaVgsL0T.d.cts +228 -0
- package/dist/work-queue/index.cjs +1132 -0
- package/dist/work-queue/index.cjs.map +1 -0
- package/dist/work-queue/index.d.cts +369 -0
- package/dist/work-queue/index.d.ts +369 -0
- package/dist/work-queue/index.js +1078 -0
- package/dist/work-queue/index.js.map +1 -0
- package/package.json +266 -2
- package/dist/chunk-COHO25CZ.js.map +0 -1
- package/dist/chunk-DK554R7P.js.map +0 -1
- package/dist/chunk-I3IHOHCJ.js.map +0 -1
- package/dist/chunk-RIIOUTGM.js.map +0 -1
- package/dist/chunk-SWTLEQL6.js.map +0 -1
- /package/dist/{chunk-JR4IKCR2.js.map → chunk-2747WN4Y.js.map} +0 -0
- /package/dist/{chunk-GDL26N2T.js.map → chunk-3KN7NJDR.js.map} +0 -0
- /package/dist/{chunk-DJC4CHLQ.js.map → chunk-43BKLFZU.js.map} +0 -0
- /package/dist/{chunk-SCRFRCGR.js.map → chunk-BSQGE5PS.js.map} +0 -0
- /package/dist/{chunk-Y3ZLRGHC.js.map → chunk-CZNV3VXM.js.map} +0 -0
- /package/dist/{chunk-JIMUDQN3.js.map → chunk-FBUU43PM.js.map} +0 -0
- /package/dist/{chunk-D6BG7U6A.js.map → chunk-IXZBUWSP.js.map} +0 -0
- /package/dist/{chunk-PKVBHGBM.js.map → chunk-SS2A464I.js.map} +0 -0
- /package/dist/{chunk-G4M3NHRJ.js.map → chunk-V7CIJE4B.js.map} +0 -0
- /package/dist/{chunk-TEW47IVR.js.map → chunk-VPEFSDME.js.map} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export { A as AGENTIC_MEMORY_RECORD_CHANGE_FORMAT, a as AGENTIC_MEMORY_RECORD_SNAPSHOT_FORMAT, b as AGENTIC_MEMORY_RECORD_STORAGE_FRAME_VERSION, c as AgenticMemoryRecordChangeFrame, d as AgenticMemoryRecordSnapshotFrame, e as AgenticMemoryRecordsPersistenceCursor, f as AgenticMemoryRecordsPersistenceError, g as AgenticMemoryRecordsPersistenceHandle, h as AgenticMemoryRecordsPersistenceStatus, i as AgenticMemoryRecordsRestoreState, L as LoadAgenticMemoryRecordsStateOptions, O as OpenPersistentAgenticMemoryRecordsOptions, j as OpenPersistentReactiveIndexOptions, k as OpenPersistentReactiveListOptions, l as OpenPersistentReactiveLogOptions, m as OpenPersistentReactiveMapOptions, P as PersistAgenticMemoryRecordsOptions, n as PersistReactiveCollectionOptions, o as PersistentAgenticMemoryRecords, p as PersistentReactiveIndex, q as PersistentReactiveList, r as PersistentReactiveLog, s as PersistentReactiveMap, R as ReactiveCollectionPersistenceCursor, t as ReactiveCollectionPersistenceError, u as ReactiveCollectionPersistenceHandle, v as ReactiveCollectionPersistenceStatus, w as agenticMemoryRecordChangeFrame, x as agenticMemoryRecordSnapshotFrame, y as agenticMemoryRecordsSnapshotKey, z as assertAgenticMemoryRecordChangeFrame, B as assertAgenticMemoryRecordSnapshotFrame, C as loadAgenticMemoryRecordsState, D as openPersistentAgenticMemoryRecords, E as openPersistentReactiveIndex, F as openPersistentReactiveList, G as openPersistentReactiveLog, H as openPersistentReactiveMap, I as persistAgenticMemoryRecords, J as persistReactiveCollection } from '../reactive-collection-storage-
|
|
2
|
-
import { d as Graph } from '../graph-
|
|
1
|
+
export { A as AGENTIC_MEMORY_RECORD_CHANGE_FORMAT, a as AGENTIC_MEMORY_RECORD_SNAPSHOT_FORMAT, b as AGENTIC_MEMORY_RECORD_STORAGE_FRAME_VERSION, c as AgenticMemoryRecordChangeFrame, d as AgenticMemoryRecordSnapshotFrame, e as AgenticMemoryRecordsPersistenceCursor, f as AgenticMemoryRecordsPersistenceError, g as AgenticMemoryRecordsPersistenceHandle, h as AgenticMemoryRecordsPersistenceStatus, i as AgenticMemoryRecordsRestoreState, L as LoadAgenticMemoryRecordsStateOptions, O as OpenPersistentAgenticMemoryRecordsOptions, j as OpenPersistentReactiveIndexOptions, k as OpenPersistentReactiveListOptions, l as OpenPersistentReactiveLogOptions, m as OpenPersistentReactiveMapOptions, P as PersistAgenticMemoryRecordsOptions, n as PersistReactiveCollectionOptions, o as PersistentAgenticMemoryRecords, p as PersistentReactiveIndex, q as PersistentReactiveList, r as PersistentReactiveLog, s as PersistentReactiveMap, R as ReactiveCollectionPersistenceCursor, t as ReactiveCollectionPersistenceError, u as ReactiveCollectionPersistenceHandle, v as ReactiveCollectionPersistenceStatus, w as agenticMemoryRecordChangeFrame, x as agenticMemoryRecordSnapshotFrame, y as agenticMemoryRecordsSnapshotKey, z as assertAgenticMemoryRecordChangeFrame, B as assertAgenticMemoryRecordSnapshotFrame, C as loadAgenticMemoryRecordsState, D as openPersistentAgenticMemoryRecords, E as openPersistentReactiveIndex, F as openPersistentReactiveList, G as openPersistentReactiveLog, H as openPersistentReactiveMap, I as persistAgenticMemoryRecords, J as persistReactiveCollection } from '../reactive-collection-storage-BNEldDyi.cjs';
|
|
2
|
+
import { d as Graph } from '../graph-DCEWh4T2.cjs';
|
|
3
3
|
import { R as RetryPolicy } from '../resilience-Dig3Q7n0.cjs';
|
|
4
|
-
import { N as Node, g as HttpRequest, w as ProcessCommand, O as WebSocketSend, h as HttpResponse, x as ProcessResult, M as WebSocketRequest, Q as WebSocketSendResult } from '../types-
|
|
5
|
-
|
|
4
|
+
import { N as Node, g as HttpRequest, w as ProcessCommand, O as WebSocketSend, h as HttpResponse, x as ProcessResult, M as WebSocketRequest, Q as WebSocketSendResult } from '../types-CcPIn7sy.cjs';
|
|
5
|
+
export { E as ExternalStore, J as JotaiAtom, N as NanoAtom, a as NodeRecordFactory, R as ReadableStore, S as SignalLike, b as SubscribeValuesOptions, c as WritableJotaiAtom, d as WritableNanoAtom, W as WritableNode, e as WritableSignalLike, f as WritableStore, g as WritableStoreOptions, Z as ZustandStoreApi, h as externalStore, j as jotaiAtom, n as nanoAtom, i as nodeSnapshot, r as readableStore, k as recordReadableStore, s as signalFromNode, l as subscribeNodeValues, w as writableStore, z as zustandStore } from '../store-CNJwmT-h.cjs';
|
|
6
|
+
import '../agentic-memory-DfuVZ-lY.cjs';
|
|
6
7
|
import '../codec-BB7p8fJc.cjs';
|
|
7
|
-
import '../semantic-memory-graph-
|
|
8
|
+
import '../semantic-memory-graph-DKuNzuWw.cjs';
|
|
8
9
|
import '../append-log-DisvEReb.cjs';
|
|
9
|
-
import '../reactive-collection-
|
|
10
|
-
import '../reactive-map-
|
|
10
|
+
import '../reactive-collection-DNV0-gFi.cjs';
|
|
11
|
+
import '../reactive-map-DRD1LJ2H.cjs';
|
|
11
12
|
import '../core/index.cjs';
|
|
12
|
-
import '../messages-
|
|
13
|
-
import '../describe-
|
|
13
|
+
import '../messages-CAzUPPJM.cjs';
|
|
14
|
+
import '../describe-DYMw_l1C.cjs';
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Graph-visible wire bridge envelope helpers (D134).
|
|
@@ -549,130 +550,4 @@ declare function GraphInterval(ms: number): GraphMethodDecorator;
|
|
|
549
550
|
/** Register cron metadata for a user-land NestJS scheduler bridge. */
|
|
550
551
|
declare function GraphCron(expr: string): GraphMethodDecorator;
|
|
551
552
|
|
|
552
|
-
|
|
553
|
-
* Framework-neutral store adapters.
|
|
554
|
-
*
|
|
555
|
-
* React/Vue/Solid/Svelte/Zustand/Jotai/Nanostores bindings can build on this
|
|
556
|
-
* tiny Node-facing layer without importing framework packages or reviving the
|
|
557
|
-
* old `compat` namespace (D125/B61).
|
|
558
|
-
*/
|
|
559
|
-
|
|
560
|
-
/** A minimal readable store contract shared by Svelte/Nanostores-style adapters. */
|
|
561
|
-
interface ReadableStore<T> {
|
|
562
|
-
get(): T | undefined;
|
|
563
|
-
subscribe(run: (value: T | undefined) => void): () => void;
|
|
564
|
-
}
|
|
565
|
-
/** A minimal writable store contract over a clean-slate writable node. */
|
|
566
|
-
interface WritableStore<T> extends ReadableStore<T> {
|
|
567
|
-
set(value: T): void;
|
|
568
|
-
update(fn: (value: T | undefined) => T): void;
|
|
569
|
-
}
|
|
570
|
-
/** React `useSyncExternalStore`-compatible shape, without importing React. */
|
|
571
|
-
interface ExternalStore<T> {
|
|
572
|
-
getSnapshot(): T | undefined;
|
|
573
|
-
getServerSnapshot(): T | undefined;
|
|
574
|
-
subscribe(onStoreChange: () => void): () => void;
|
|
575
|
-
}
|
|
576
|
-
/** Object-of-nodes factory used by record subscription adapters. */
|
|
577
|
-
type NodeRecordFactory<K extends string, R extends Record<string, unknown>> = (key: K) => {
|
|
578
|
-
[P in keyof R]: Node<R[P]>;
|
|
579
|
-
};
|
|
580
|
-
/** Zustand-compatible store API over a caller-owned clean-slate state node. */
|
|
581
|
-
interface ZustandStoreApi<T extends object> {
|
|
582
|
-
getState(): T;
|
|
583
|
-
setState(partial: T | Partial<T> | ((state: T) => T | Partial<T>), replace?: boolean): void;
|
|
584
|
-
getInitialState(): T;
|
|
585
|
-
subscribe(listener: (state: T, prevState: T) => void): () => void;
|
|
586
|
-
destroy(): void;
|
|
587
|
-
}
|
|
588
|
-
/** Jotai-style atom facade over a caller-owned node. */
|
|
589
|
-
interface JotaiAtom<T> {
|
|
590
|
-
get(): T | undefined;
|
|
591
|
-
subscribe(callback: (value: T | undefined) => void): () => void;
|
|
592
|
-
readonly _node: Node<T>;
|
|
593
|
-
}
|
|
594
|
-
/** Writable Jotai-style atom facade over a caller-owned writable node. */
|
|
595
|
-
interface WritableJotaiAtom<T> extends JotaiAtom<T> {
|
|
596
|
-
set(value: T): void;
|
|
597
|
-
update(fn: (value: T | undefined) => T): void;
|
|
598
|
-
}
|
|
599
|
-
/** Nanostores-style atom facade over a caller-owned node. */
|
|
600
|
-
interface NanoAtom<T> {
|
|
601
|
-
get(): T | undefined;
|
|
602
|
-
subscribe(callback: (value: T | undefined) => void): () => void;
|
|
603
|
-
listen(callback: (value: T | undefined) => void): () => void;
|
|
604
|
-
readonly _node: Node<T>;
|
|
605
|
-
}
|
|
606
|
-
/** Writable Nanostores-style atom facade over a caller-owned writable node. */
|
|
607
|
-
interface WritableNanoAtom<T> extends NanoAtom<T> {
|
|
608
|
-
set(value: T): void;
|
|
609
|
-
update(fn: (value: T | undefined) => T): void;
|
|
610
|
-
}
|
|
611
|
-
/** TC39-Signals-style facade over a caller-owned node. */
|
|
612
|
-
interface SignalLike<T> {
|
|
613
|
-
get(): T | undefined;
|
|
614
|
-
subscribe(callback: (value: T | undefined) => void): () => void;
|
|
615
|
-
readonly _node: Node<T>;
|
|
616
|
-
}
|
|
617
|
-
/** Writable TC39-Signals-style facade over a caller-owned writable node. */
|
|
618
|
-
interface WritableSignalLike<T> extends SignalLike<T> {
|
|
619
|
-
set(value: T): void;
|
|
620
|
-
update(fn: (value: T | undefined) => T): void;
|
|
621
|
-
}
|
|
622
|
-
interface SubscribeValuesOptions<T> {
|
|
623
|
-
/** Emit the current cache snapshot immediately. `undefined` means SENTINEL/no DATA. */
|
|
624
|
-
immediate?: boolean;
|
|
625
|
-
/** Suppress synchronous push-on-subscribe/replay DATA. Useful for change-only store listeners. */
|
|
626
|
-
changesOnly?: boolean;
|
|
627
|
-
onError?: (error: unknown) => void;
|
|
628
|
-
onComplete?: () => void;
|
|
629
|
-
/** Custom cache reader for wrappers that keep their own snapshot object. */
|
|
630
|
-
getSnapshot?: () => T | undefined;
|
|
631
|
-
}
|
|
632
|
-
interface WritableNode<T> extends Node<T> {
|
|
633
|
-
set(value: T): void;
|
|
634
|
-
}
|
|
635
|
-
interface WritableStoreOptions<T> extends SubscribeValuesOptions<T> {
|
|
636
|
-
/** Override writes for adapters that need a framework-owned reducer. */
|
|
637
|
-
write?: (node: WritableNode<T>, value: T) => void;
|
|
638
|
-
}
|
|
639
|
-
/** Read a node cache without activating it. */
|
|
640
|
-
declare function nodeSnapshot<T>(node: Node<T>): T | undefined;
|
|
641
|
-
/**
|
|
642
|
-
* Subscribe to DATA values from a Node. Protocol internals stay below the adapter boundary:
|
|
643
|
-
* DATA drives value listeners, ERROR/COMPLETE route to optional lifecycle callbacks.
|
|
644
|
-
*/
|
|
645
|
-
declare function subscribeNodeValues<T>(node: Node<T>, run: (value: T | undefined) => void, opts?: SubscribeValuesOptions<T>): () => void;
|
|
646
|
-
/** Build a Svelte/Nanostores-style readable store from a clean-slate Node. */
|
|
647
|
-
declare function readableStore<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): ReadableStore<T>;
|
|
648
|
-
/** Build a writable store over a StateNode or compatible clean-slate writable Node. */
|
|
649
|
-
declare function writableStore<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableStore<T>;
|
|
650
|
-
declare function writableStore<T>(node: Node<T>, opts: WritableStoreOptions<T> & {
|
|
651
|
-
write: (node: WritableNode<T>, value: T) => void;
|
|
652
|
-
}): WritableStore<T>;
|
|
653
|
-
/** Build the tiny shape React's `useSyncExternalStore` expects, without importing React. */
|
|
654
|
-
declare function externalStore<T>(node: Node<T>, opts?: Pick<SubscribeValuesOptions<T>, "getSnapshot" | "onError" | "onComplete">): ExternalStore<T>;
|
|
655
|
-
/** Alias for React-facing bindings; dependency-free so React stays a peer of user code. */
|
|
656
|
-
declare const reactExternalStore: typeof externalStore;
|
|
657
|
-
/** Alias for Svelte-style readable stores. */
|
|
658
|
-
declare const svelteReadableStore: typeof readableStore;
|
|
659
|
-
/** Alias for Svelte-style writable stores. */
|
|
660
|
-
declare const svelteWritableStore: typeof writableStore;
|
|
661
|
-
/** Build a framework-neutral keyed record store (the core of old useSubscribeRecord helpers). */
|
|
662
|
-
declare function recordReadableStore<K extends string, R extends Record<string, unknown>>(keysNode: Node<readonly K[]>, factory: NodeRecordFactory<K, R>, opts?: SubscribeValuesOptions<Record<K, R>>): ReadableStore<Record<K, R>>;
|
|
663
|
-
/** Build a Zustand-compatible StoreApi over a caller-owned clean-slate state node. */
|
|
664
|
-
declare function zustandStore<T extends object>(node: WritableNode<T>, initialState?: T, opts?: WritableStoreOptions<T>): ZustandStoreApi<T>;
|
|
665
|
-
declare function zustandStore<T extends object>(node: Node<T>, initialState: T | undefined, opts: WritableStoreOptions<T> & {
|
|
666
|
-
write: (node: WritableNode<T>, value: T) => void;
|
|
667
|
-
}): ZustandStoreApi<T>;
|
|
668
|
-
/** Build a Jotai-style atom facade over a caller-owned node. */
|
|
669
|
-
declare function jotaiAtom<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableJotaiAtom<T>;
|
|
670
|
-
declare function jotaiAtom<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): JotaiAtom<T>;
|
|
671
|
-
/** Build a Nanostores-style atom facade over a caller-owned node. */
|
|
672
|
-
declare function nanoAtom<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableNanoAtom<T>;
|
|
673
|
-
declare function nanoAtom<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): NanoAtom<T>;
|
|
674
|
-
/** Build a TC39-Signals-style facade over a caller-owned node. */
|
|
675
|
-
declare function signalFromNode<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableSignalLike<T>;
|
|
676
|
-
declare function signalFromNode<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): SignalLike<T>;
|
|
677
|
-
|
|
678
|
-
export { CRON_HANDLERS, type DecoratorBoundMethod, type DecoratorHostConstructor, EVENT_HANDLERS, type ExternalStore, GRAPHREFLY_MODULE_OPTIONS, GRAPHREFLY_REQUEST_GRAPH, GRAPHREFLY_ROOT_GRAPH, GraphCron, type GraphCronMeta, GraphInterval, type GraphIntervalMeta, type GraphMethodDecorator, type HttpRequestOf, INTERVAL_HANDLERS, type JotaiAtom, type NanoAtom, type NodeRecordFactory, OnGraphEvent, type OnGraphEventMeta, type OutboundAdapterOptions, type OutboundBundle, type OutboundEvent, type OutboundStatus, type ProcessCommandOf, type ReadableStore, type RemoteCallBundle, type RemoteCallError, type RemoteCallOptions, type RemoteCallRequest, type RemoteCallResponse, type RemoteCallResult, type RemoteCallStatus, type RemoteCallStatusState, type RemoteCallTimeout, type RemoteResponderBundle, type RemoteResponderEvent, type RemoteResponderHandler, type RemoteResponderHandlerDefinition, type RemoteResponderOptions, type RemoteResponderStatus, type RemoteResponderStatusState, type SignalLike, type SubscribeValuesOptions, type WebSocketSendOf, type WebSocketSessionBundle, type WebSocketSessionCommand, type WebSocketSessionInbound, type WebSocketSessionLifecycle, type WebSocketSessionOptions, type WebSocketSessionOutbound, type WebSocketSessionSendPolicy, type WebSocketSessionStatus, type WireBridgeAck, type WireBridgeAttempt, type WireBridgeBundle, type WireBridgeCommand, type WireBridgeEnvelope, type WireBridgeEnvelopeType, type WireBridgeEvent, type WireBridgeMetadata, type WireBridgeNack, type WireBridgeOptions, type WireBridgePayload, type WireBridgeStatus, type WritableJotaiAtom, type WritableNanoAtom, type WritableNode, type WritableSignalLike, type WritableStore, type WritableStoreOptions, type ZustandStoreApi, externalStore, getGraphToken, getNodeToken, jotaiAtom, nanoAtom, nodeSnapshot, reactExternalStore, readableStore, recordReadableStore, remoteCall, remoteResponder, remoteResponderHandler, signalFromNode, subscribeNodeValues, svelteReadableStore, svelteWritableStore, toHttp, toProcess, toWebSocket, webSocketSession, wireBridge, wireBridgeEnvelope, wireBridgeIdempotencyKey, writableStore, zustandStore };
|
|
553
|
+
export { CRON_HANDLERS, type DecoratorBoundMethod, type DecoratorHostConstructor, EVENT_HANDLERS, GRAPHREFLY_MODULE_OPTIONS, GRAPHREFLY_REQUEST_GRAPH, GRAPHREFLY_ROOT_GRAPH, GraphCron, type GraphCronMeta, GraphInterval, type GraphIntervalMeta, type GraphMethodDecorator, type HttpRequestOf, INTERVAL_HANDLERS, OnGraphEvent, type OnGraphEventMeta, type OutboundAdapterOptions, type OutboundBundle, type OutboundEvent, type OutboundStatus, type ProcessCommandOf, type RemoteCallBundle, type RemoteCallError, type RemoteCallOptions, type RemoteCallRequest, type RemoteCallResponse, type RemoteCallResult, type RemoteCallStatus, type RemoteCallStatusState, type RemoteCallTimeout, type RemoteResponderBundle, type RemoteResponderEvent, type RemoteResponderHandler, type RemoteResponderHandlerDefinition, type RemoteResponderOptions, type RemoteResponderStatus, type RemoteResponderStatusState, type WebSocketSendOf, type WebSocketSessionBundle, type WebSocketSessionCommand, type WebSocketSessionInbound, type WebSocketSessionLifecycle, type WebSocketSessionOptions, type WebSocketSessionOutbound, type WebSocketSessionSendPolicy, type WebSocketSessionStatus, type WireBridgeAck, type WireBridgeAttempt, type WireBridgeBundle, type WireBridgeCommand, type WireBridgeEnvelope, type WireBridgeEnvelopeType, type WireBridgeEvent, type WireBridgeMetadata, type WireBridgeNack, type WireBridgeOptions, type WireBridgePayload, type WireBridgeStatus, getGraphToken, getNodeToken, remoteCall, remoteResponder, remoteResponderHandler, toHttp, toProcess, toWebSocket, webSocketSession, wireBridge, wireBridgeEnvelope, wireBridgeIdempotencyKey };
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export { A as AGENTIC_MEMORY_RECORD_CHANGE_FORMAT, a as AGENTIC_MEMORY_RECORD_SNAPSHOT_FORMAT, b as AGENTIC_MEMORY_RECORD_STORAGE_FRAME_VERSION, c as AgenticMemoryRecordChangeFrame, d as AgenticMemoryRecordSnapshotFrame, e as AgenticMemoryRecordsPersistenceCursor, f as AgenticMemoryRecordsPersistenceError, g as AgenticMemoryRecordsPersistenceHandle, h as AgenticMemoryRecordsPersistenceStatus, i as AgenticMemoryRecordsRestoreState, L as LoadAgenticMemoryRecordsStateOptions, O as OpenPersistentAgenticMemoryRecordsOptions, j as OpenPersistentReactiveIndexOptions, k as OpenPersistentReactiveListOptions, l as OpenPersistentReactiveLogOptions, m as OpenPersistentReactiveMapOptions, P as PersistAgenticMemoryRecordsOptions, n as PersistReactiveCollectionOptions, o as PersistentAgenticMemoryRecords, p as PersistentReactiveIndex, q as PersistentReactiveList, r as PersistentReactiveLog, s as PersistentReactiveMap, R as ReactiveCollectionPersistenceCursor, t as ReactiveCollectionPersistenceError, u as ReactiveCollectionPersistenceHandle, v as ReactiveCollectionPersistenceStatus, w as agenticMemoryRecordChangeFrame, x as agenticMemoryRecordSnapshotFrame, y as agenticMemoryRecordsSnapshotKey, z as assertAgenticMemoryRecordChangeFrame, B as assertAgenticMemoryRecordSnapshotFrame, C as loadAgenticMemoryRecordsState, D as openPersistentAgenticMemoryRecords, E as openPersistentReactiveIndex, F as openPersistentReactiveList, G as openPersistentReactiveLog, H as openPersistentReactiveMap, I as persistAgenticMemoryRecords, J as persistReactiveCollection } from '../reactive-collection-storage-
|
|
2
|
-
import { d as Graph } from '../graph-
|
|
1
|
+
export { A as AGENTIC_MEMORY_RECORD_CHANGE_FORMAT, a as AGENTIC_MEMORY_RECORD_SNAPSHOT_FORMAT, b as AGENTIC_MEMORY_RECORD_STORAGE_FRAME_VERSION, c as AgenticMemoryRecordChangeFrame, d as AgenticMemoryRecordSnapshotFrame, e as AgenticMemoryRecordsPersistenceCursor, f as AgenticMemoryRecordsPersistenceError, g as AgenticMemoryRecordsPersistenceHandle, h as AgenticMemoryRecordsPersistenceStatus, i as AgenticMemoryRecordsRestoreState, L as LoadAgenticMemoryRecordsStateOptions, O as OpenPersistentAgenticMemoryRecordsOptions, j as OpenPersistentReactiveIndexOptions, k as OpenPersistentReactiveListOptions, l as OpenPersistentReactiveLogOptions, m as OpenPersistentReactiveMapOptions, P as PersistAgenticMemoryRecordsOptions, n as PersistReactiveCollectionOptions, o as PersistentAgenticMemoryRecords, p as PersistentReactiveIndex, q as PersistentReactiveList, r as PersistentReactiveLog, s as PersistentReactiveMap, R as ReactiveCollectionPersistenceCursor, t as ReactiveCollectionPersistenceError, u as ReactiveCollectionPersistenceHandle, v as ReactiveCollectionPersistenceStatus, w as agenticMemoryRecordChangeFrame, x as agenticMemoryRecordSnapshotFrame, y as agenticMemoryRecordsSnapshotKey, z as assertAgenticMemoryRecordChangeFrame, B as assertAgenticMemoryRecordSnapshotFrame, C as loadAgenticMemoryRecordsState, D as openPersistentAgenticMemoryRecords, E as openPersistentReactiveIndex, F as openPersistentReactiveList, G as openPersistentReactiveLog, H as openPersistentReactiveMap, I as persistAgenticMemoryRecords, J as persistReactiveCollection } from '../reactive-collection-storage-YZsAQsWK.js';
|
|
2
|
+
import { d as Graph } from '../graph-D-1-SQeC.js';
|
|
3
3
|
import { R as RetryPolicy } from '../resilience-Dig3Q7n0.js';
|
|
4
|
-
import { N as Node, g as HttpRequest, w as ProcessCommand, O as WebSocketSend, h as HttpResponse, x as ProcessResult, M as WebSocketRequest, Q as WebSocketSendResult } from '../types-
|
|
5
|
-
|
|
4
|
+
import { N as Node, g as HttpRequest, w as ProcessCommand, O as WebSocketSend, h as HttpResponse, x as ProcessResult, M as WebSocketRequest, Q as WebSocketSendResult } from '../types-BsJvElYZ.js';
|
|
5
|
+
export { E as ExternalStore, J as JotaiAtom, N as NanoAtom, a as NodeRecordFactory, R as ReadableStore, S as SignalLike, b as SubscribeValuesOptions, c as WritableJotaiAtom, d as WritableNanoAtom, W as WritableNode, e as WritableSignalLike, f as WritableStore, g as WritableStoreOptions, Z as ZustandStoreApi, h as externalStore, j as jotaiAtom, n as nanoAtom, i as nodeSnapshot, r as readableStore, k as recordReadableStore, s as signalFromNode, l as subscribeNodeValues, w as writableStore, z as zustandStore } from '../store-C-joM4gh.js';
|
|
6
|
+
import '../agentic-memory-BmRCvh0d.js';
|
|
6
7
|
import '../codec-BB7p8fJc.js';
|
|
7
|
-
import '../semantic-memory-graph-
|
|
8
|
+
import '../semantic-memory-graph-uwbwJdhe.js';
|
|
8
9
|
import '../append-log-DzKMmjxx.js';
|
|
9
|
-
import '../reactive-collection-
|
|
10
|
-
import '../reactive-map-
|
|
10
|
+
import '../reactive-collection-BAmfrGjd.js';
|
|
11
|
+
import '../reactive-map-EsDiCmJk.js';
|
|
11
12
|
import '../core/index.js';
|
|
12
|
-
import '../messages-
|
|
13
|
-
import '../describe-
|
|
13
|
+
import '../messages-CAzUPPJM.js';
|
|
14
|
+
import '../describe-BpyJuWkw.js';
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Graph-visible wire bridge envelope helpers (D134).
|
|
@@ -549,130 +550,4 @@ declare function GraphInterval(ms: number): GraphMethodDecorator;
|
|
|
549
550
|
/** Register cron metadata for a user-land NestJS scheduler bridge. */
|
|
550
551
|
declare function GraphCron(expr: string): GraphMethodDecorator;
|
|
551
552
|
|
|
552
|
-
|
|
553
|
-
* Framework-neutral store adapters.
|
|
554
|
-
*
|
|
555
|
-
* React/Vue/Solid/Svelte/Zustand/Jotai/Nanostores bindings can build on this
|
|
556
|
-
* tiny Node-facing layer without importing framework packages or reviving the
|
|
557
|
-
* old `compat` namespace (D125/B61).
|
|
558
|
-
*/
|
|
559
|
-
|
|
560
|
-
/** A minimal readable store contract shared by Svelte/Nanostores-style adapters. */
|
|
561
|
-
interface ReadableStore<T> {
|
|
562
|
-
get(): T | undefined;
|
|
563
|
-
subscribe(run: (value: T | undefined) => void): () => void;
|
|
564
|
-
}
|
|
565
|
-
/** A minimal writable store contract over a clean-slate writable node. */
|
|
566
|
-
interface WritableStore<T> extends ReadableStore<T> {
|
|
567
|
-
set(value: T): void;
|
|
568
|
-
update(fn: (value: T | undefined) => T): void;
|
|
569
|
-
}
|
|
570
|
-
/** React `useSyncExternalStore`-compatible shape, without importing React. */
|
|
571
|
-
interface ExternalStore<T> {
|
|
572
|
-
getSnapshot(): T | undefined;
|
|
573
|
-
getServerSnapshot(): T | undefined;
|
|
574
|
-
subscribe(onStoreChange: () => void): () => void;
|
|
575
|
-
}
|
|
576
|
-
/** Object-of-nodes factory used by record subscription adapters. */
|
|
577
|
-
type NodeRecordFactory<K extends string, R extends Record<string, unknown>> = (key: K) => {
|
|
578
|
-
[P in keyof R]: Node<R[P]>;
|
|
579
|
-
};
|
|
580
|
-
/** Zustand-compatible store API over a caller-owned clean-slate state node. */
|
|
581
|
-
interface ZustandStoreApi<T extends object> {
|
|
582
|
-
getState(): T;
|
|
583
|
-
setState(partial: T | Partial<T> | ((state: T) => T | Partial<T>), replace?: boolean): void;
|
|
584
|
-
getInitialState(): T;
|
|
585
|
-
subscribe(listener: (state: T, prevState: T) => void): () => void;
|
|
586
|
-
destroy(): void;
|
|
587
|
-
}
|
|
588
|
-
/** Jotai-style atom facade over a caller-owned node. */
|
|
589
|
-
interface JotaiAtom<T> {
|
|
590
|
-
get(): T | undefined;
|
|
591
|
-
subscribe(callback: (value: T | undefined) => void): () => void;
|
|
592
|
-
readonly _node: Node<T>;
|
|
593
|
-
}
|
|
594
|
-
/** Writable Jotai-style atom facade over a caller-owned writable node. */
|
|
595
|
-
interface WritableJotaiAtom<T> extends JotaiAtom<T> {
|
|
596
|
-
set(value: T): void;
|
|
597
|
-
update(fn: (value: T | undefined) => T): void;
|
|
598
|
-
}
|
|
599
|
-
/** Nanostores-style atom facade over a caller-owned node. */
|
|
600
|
-
interface NanoAtom<T> {
|
|
601
|
-
get(): T | undefined;
|
|
602
|
-
subscribe(callback: (value: T | undefined) => void): () => void;
|
|
603
|
-
listen(callback: (value: T | undefined) => void): () => void;
|
|
604
|
-
readonly _node: Node<T>;
|
|
605
|
-
}
|
|
606
|
-
/** Writable Nanostores-style atom facade over a caller-owned writable node. */
|
|
607
|
-
interface WritableNanoAtom<T> extends NanoAtom<T> {
|
|
608
|
-
set(value: T): void;
|
|
609
|
-
update(fn: (value: T | undefined) => T): void;
|
|
610
|
-
}
|
|
611
|
-
/** TC39-Signals-style facade over a caller-owned node. */
|
|
612
|
-
interface SignalLike<T> {
|
|
613
|
-
get(): T | undefined;
|
|
614
|
-
subscribe(callback: (value: T | undefined) => void): () => void;
|
|
615
|
-
readonly _node: Node<T>;
|
|
616
|
-
}
|
|
617
|
-
/** Writable TC39-Signals-style facade over a caller-owned writable node. */
|
|
618
|
-
interface WritableSignalLike<T> extends SignalLike<T> {
|
|
619
|
-
set(value: T): void;
|
|
620
|
-
update(fn: (value: T | undefined) => T): void;
|
|
621
|
-
}
|
|
622
|
-
interface SubscribeValuesOptions<T> {
|
|
623
|
-
/** Emit the current cache snapshot immediately. `undefined` means SENTINEL/no DATA. */
|
|
624
|
-
immediate?: boolean;
|
|
625
|
-
/** Suppress synchronous push-on-subscribe/replay DATA. Useful for change-only store listeners. */
|
|
626
|
-
changesOnly?: boolean;
|
|
627
|
-
onError?: (error: unknown) => void;
|
|
628
|
-
onComplete?: () => void;
|
|
629
|
-
/** Custom cache reader for wrappers that keep their own snapshot object. */
|
|
630
|
-
getSnapshot?: () => T | undefined;
|
|
631
|
-
}
|
|
632
|
-
interface WritableNode<T> extends Node<T> {
|
|
633
|
-
set(value: T): void;
|
|
634
|
-
}
|
|
635
|
-
interface WritableStoreOptions<T> extends SubscribeValuesOptions<T> {
|
|
636
|
-
/** Override writes for adapters that need a framework-owned reducer. */
|
|
637
|
-
write?: (node: WritableNode<T>, value: T) => void;
|
|
638
|
-
}
|
|
639
|
-
/** Read a node cache without activating it. */
|
|
640
|
-
declare function nodeSnapshot<T>(node: Node<T>): T | undefined;
|
|
641
|
-
/**
|
|
642
|
-
* Subscribe to DATA values from a Node. Protocol internals stay below the adapter boundary:
|
|
643
|
-
* DATA drives value listeners, ERROR/COMPLETE route to optional lifecycle callbacks.
|
|
644
|
-
*/
|
|
645
|
-
declare function subscribeNodeValues<T>(node: Node<T>, run: (value: T | undefined) => void, opts?: SubscribeValuesOptions<T>): () => void;
|
|
646
|
-
/** Build a Svelte/Nanostores-style readable store from a clean-slate Node. */
|
|
647
|
-
declare function readableStore<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): ReadableStore<T>;
|
|
648
|
-
/** Build a writable store over a StateNode or compatible clean-slate writable Node. */
|
|
649
|
-
declare function writableStore<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableStore<T>;
|
|
650
|
-
declare function writableStore<T>(node: Node<T>, opts: WritableStoreOptions<T> & {
|
|
651
|
-
write: (node: WritableNode<T>, value: T) => void;
|
|
652
|
-
}): WritableStore<T>;
|
|
653
|
-
/** Build the tiny shape React's `useSyncExternalStore` expects, without importing React. */
|
|
654
|
-
declare function externalStore<T>(node: Node<T>, opts?: Pick<SubscribeValuesOptions<T>, "getSnapshot" | "onError" | "onComplete">): ExternalStore<T>;
|
|
655
|
-
/** Alias for React-facing bindings; dependency-free so React stays a peer of user code. */
|
|
656
|
-
declare const reactExternalStore: typeof externalStore;
|
|
657
|
-
/** Alias for Svelte-style readable stores. */
|
|
658
|
-
declare const svelteReadableStore: typeof readableStore;
|
|
659
|
-
/** Alias for Svelte-style writable stores. */
|
|
660
|
-
declare const svelteWritableStore: typeof writableStore;
|
|
661
|
-
/** Build a framework-neutral keyed record store (the core of old useSubscribeRecord helpers). */
|
|
662
|
-
declare function recordReadableStore<K extends string, R extends Record<string, unknown>>(keysNode: Node<readonly K[]>, factory: NodeRecordFactory<K, R>, opts?: SubscribeValuesOptions<Record<K, R>>): ReadableStore<Record<K, R>>;
|
|
663
|
-
/** Build a Zustand-compatible StoreApi over a caller-owned clean-slate state node. */
|
|
664
|
-
declare function zustandStore<T extends object>(node: WritableNode<T>, initialState?: T, opts?: WritableStoreOptions<T>): ZustandStoreApi<T>;
|
|
665
|
-
declare function zustandStore<T extends object>(node: Node<T>, initialState: T | undefined, opts: WritableStoreOptions<T> & {
|
|
666
|
-
write: (node: WritableNode<T>, value: T) => void;
|
|
667
|
-
}): ZustandStoreApi<T>;
|
|
668
|
-
/** Build a Jotai-style atom facade over a caller-owned node. */
|
|
669
|
-
declare function jotaiAtom<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableJotaiAtom<T>;
|
|
670
|
-
declare function jotaiAtom<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): JotaiAtom<T>;
|
|
671
|
-
/** Build a Nanostores-style atom facade over a caller-owned node. */
|
|
672
|
-
declare function nanoAtom<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableNanoAtom<T>;
|
|
673
|
-
declare function nanoAtom<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): NanoAtom<T>;
|
|
674
|
-
/** Build a TC39-Signals-style facade over a caller-owned node. */
|
|
675
|
-
declare function signalFromNode<T>(node: WritableNode<T>, opts?: WritableStoreOptions<T>): WritableSignalLike<T>;
|
|
676
|
-
declare function signalFromNode<T>(node: Node<T>, opts?: SubscribeValuesOptions<T>): SignalLike<T>;
|
|
677
|
-
|
|
678
|
-
export { CRON_HANDLERS, type DecoratorBoundMethod, type DecoratorHostConstructor, EVENT_HANDLERS, type ExternalStore, GRAPHREFLY_MODULE_OPTIONS, GRAPHREFLY_REQUEST_GRAPH, GRAPHREFLY_ROOT_GRAPH, GraphCron, type GraphCronMeta, GraphInterval, type GraphIntervalMeta, type GraphMethodDecorator, type HttpRequestOf, INTERVAL_HANDLERS, type JotaiAtom, type NanoAtom, type NodeRecordFactory, OnGraphEvent, type OnGraphEventMeta, type OutboundAdapterOptions, type OutboundBundle, type OutboundEvent, type OutboundStatus, type ProcessCommandOf, type ReadableStore, type RemoteCallBundle, type RemoteCallError, type RemoteCallOptions, type RemoteCallRequest, type RemoteCallResponse, type RemoteCallResult, type RemoteCallStatus, type RemoteCallStatusState, type RemoteCallTimeout, type RemoteResponderBundle, type RemoteResponderEvent, type RemoteResponderHandler, type RemoteResponderHandlerDefinition, type RemoteResponderOptions, type RemoteResponderStatus, type RemoteResponderStatusState, type SignalLike, type SubscribeValuesOptions, type WebSocketSendOf, type WebSocketSessionBundle, type WebSocketSessionCommand, type WebSocketSessionInbound, type WebSocketSessionLifecycle, type WebSocketSessionOptions, type WebSocketSessionOutbound, type WebSocketSessionSendPolicy, type WebSocketSessionStatus, type WireBridgeAck, type WireBridgeAttempt, type WireBridgeBundle, type WireBridgeCommand, type WireBridgeEnvelope, type WireBridgeEnvelopeType, type WireBridgeEvent, type WireBridgeMetadata, type WireBridgeNack, type WireBridgeOptions, type WireBridgePayload, type WireBridgeStatus, type WritableJotaiAtom, type WritableNanoAtom, type WritableNode, type WritableSignalLike, type WritableStore, type WritableStoreOptions, type ZustandStoreApi, externalStore, getGraphToken, getNodeToken, jotaiAtom, nanoAtom, nodeSnapshot, reactExternalStore, readableStore, recordReadableStore, remoteCall, remoteResponder, remoteResponderHandler, signalFromNode, subscribeNodeValues, svelteReadableStore, svelteWritableStore, toHttp, toProcess, toWebSocket, webSocketSession, wireBridge, wireBridgeEnvelope, wireBridgeIdempotencyKey, writableStore, zustandStore };
|
|
553
|
+
export { CRON_HANDLERS, type DecoratorBoundMethod, type DecoratorHostConstructor, EVENT_HANDLERS, GRAPHREFLY_MODULE_OPTIONS, GRAPHREFLY_REQUEST_GRAPH, GRAPHREFLY_ROOT_GRAPH, GraphCron, type GraphCronMeta, GraphInterval, type GraphIntervalMeta, type GraphMethodDecorator, type HttpRequestOf, INTERVAL_HANDLERS, OnGraphEvent, type OnGraphEventMeta, type OutboundAdapterOptions, type OutboundBundle, type OutboundEvent, type OutboundStatus, type ProcessCommandOf, type RemoteCallBundle, type RemoteCallError, type RemoteCallOptions, type RemoteCallRequest, type RemoteCallResponse, type RemoteCallResult, type RemoteCallStatus, type RemoteCallStatusState, type RemoteCallTimeout, type RemoteResponderBundle, type RemoteResponderEvent, type RemoteResponderHandler, type RemoteResponderHandlerDefinition, type RemoteResponderOptions, type RemoteResponderStatus, type RemoteResponderStatusState, type WebSocketSendOf, type WebSocketSessionBundle, type WebSocketSessionCommand, type WebSocketSessionInbound, type WebSocketSessionLifecycle, type WebSocketSessionOptions, type WebSocketSessionOutbound, type WebSocketSessionSendPolicy, type WebSocketSessionStatus, type WireBridgeAck, type WireBridgeAttempt, type WireBridgeBundle, type WireBridgeCommand, type WireBridgeEnvelope, type WireBridgeEnvelopeType, type WireBridgeEvent, type WireBridgeMetadata, type WireBridgeNack, type WireBridgeOptions, type WireBridgePayload, type WireBridgeStatus, getGraphToken, getNodeToken, remoteCall, remoteResponder, remoteResponderHandler, toHttp, toProcess, toWebSocket, webSocketSession, wireBridge, wireBridgeEnvelope, wireBridgeIdempotencyKey };
|
package/dist/adapters/index.js
CHANGED
|
@@ -15,31 +15,45 @@ import {
|
|
|
15
15
|
openPersistentReactiveMap,
|
|
16
16
|
persistAgenticMemoryRecords,
|
|
17
17
|
persistReactiveCollection
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-43BKLFZU.js";
|
|
19
|
+
import "../chunk-YDSIVHRR.js";
|
|
20
|
+
import "../chunk-YXMZ2N6J.js";
|
|
19
21
|
import "../chunk-GTPCOEOZ.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-K3FXTC3I.js";
|
|
23
|
-
import "../chunk-6PHB5CJS.js";
|
|
22
|
+
import "../chunk-FBUU43PM.js";
|
|
23
|
+
import "../chunk-3JR3EDB2.js";
|
|
24
24
|
import "../chunk-Z2ANQ6JW.js";
|
|
25
|
-
import "../chunk-2ILL7HQI.js";
|
|
26
25
|
import {
|
|
27
26
|
nextRetryDelayMs,
|
|
28
27
|
retryPolicy,
|
|
29
28
|
shouldRetry
|
|
30
29
|
} from "../chunk-OOEN33FB.js";
|
|
30
|
+
import "../chunk-HKK2JD7Z.js";
|
|
31
|
+
import "../chunk-V7CIJE4B.js";
|
|
32
|
+
import "../chunk-K3FXTC3I.js";
|
|
33
|
+
import "../chunk-6PHB5CJS.js";
|
|
31
34
|
import "../chunk-DKP56CSW.js";
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
import {
|
|
36
|
+
externalStore,
|
|
37
|
+
jotaiAtom,
|
|
38
|
+
nanoAtom,
|
|
39
|
+
nodeSnapshot,
|
|
40
|
+
readableStore,
|
|
41
|
+
recordReadableStore,
|
|
42
|
+
signalFromNode,
|
|
43
|
+
subscribeNodeValues,
|
|
44
|
+
writableStore,
|
|
45
|
+
zustandStore
|
|
46
|
+
} from "../chunk-H75VXTGT.js";
|
|
47
|
+
import "../chunk-SS2A464I.js";
|
|
48
|
+
import "../chunk-XKXWK2KP.js";
|
|
37
49
|
import {
|
|
38
50
|
depBatch
|
|
39
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-WQIA3GFB.js";
|
|
40
52
|
import {
|
|
41
53
|
errorPayload
|
|
42
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-S6HXABGL.js";
|
|
55
|
+
import "../chunk-4VLAQHZI.js";
|
|
56
|
+
import "../chunk-DGUM43GV.js";
|
|
43
57
|
|
|
44
58
|
// src/adapters/bridge.ts
|
|
45
59
|
var envelopeTypes = /* @__PURE__ */ new Set([
|
|
@@ -2630,215 +2644,6 @@ function GraphInterval(ms) {
|
|
|
2630
2644
|
function GraphCron(expr) {
|
|
2631
2645
|
return registerMeta(CRON_HANDLERS, (methodKey) => ({ expr, methodKey }));
|
|
2632
2646
|
}
|
|
2633
|
-
|
|
2634
|
-
// src/adapters/store.ts
|
|
2635
|
-
function nodeSnapshot(node) {
|
|
2636
|
-
return node.cache;
|
|
2637
|
-
}
|
|
2638
|
-
function subscribeNodeValues(node, run, opts = {}) {
|
|
2639
|
-
const read = opts.getSnapshot ?? (() => nodeSnapshot(node));
|
|
2640
|
-
if (opts.immediate) run(read());
|
|
2641
|
-
let subscribing = true;
|
|
2642
|
-
const skipSynchronousHandshakeData = opts.changesOnly || opts.immediate;
|
|
2643
|
-
const sink = (msg, delivery) => {
|
|
2644
|
-
switch (msg[0]) {
|
|
2645
|
-
case "DATA":
|
|
2646
|
-
if (skipSynchronousHandshakeData && subscribing && delivery === void 0) {
|
|
2647
|
-
return;
|
|
2648
|
-
}
|
|
2649
|
-
run(msg[1]);
|
|
2650
|
-
return;
|
|
2651
|
-
case "ERROR":
|
|
2652
|
-
opts.onError?.(msg[1]);
|
|
2653
|
-
return;
|
|
2654
|
-
case "COMPLETE":
|
|
2655
|
-
opts.onComplete?.();
|
|
2656
|
-
return;
|
|
2657
|
-
}
|
|
2658
|
-
};
|
|
2659
|
-
const unsubscribe = node.subscribe(sink);
|
|
2660
|
-
subscribing = false;
|
|
2661
|
-
return unsubscribe;
|
|
2662
|
-
}
|
|
2663
|
-
function readableStore(node, opts = {}) {
|
|
2664
|
-
return {
|
|
2665
|
-
get: () => (opts.getSnapshot ?? (() => nodeSnapshot(node)))(),
|
|
2666
|
-
subscribe: (run) => subscribeNodeValues(node, run, { immediate: true, ...opts })
|
|
2667
|
-
};
|
|
2668
|
-
}
|
|
2669
|
-
function hasWritableSet(node) {
|
|
2670
|
-
return typeof node.set === "function";
|
|
2671
|
-
}
|
|
2672
|
-
function defaultWrite(node, value) {
|
|
2673
|
-
node.set(value);
|
|
2674
|
-
}
|
|
2675
|
-
function writableStore(node, opts = {}) {
|
|
2676
|
-
const read = opts.getSnapshot ?? (() => nodeSnapshot(node));
|
|
2677
|
-
const write = opts.write ?? (hasWritableSet(node) ? defaultWrite : void 0);
|
|
2678
|
-
if (!write) {
|
|
2679
|
-
throw new TypeError("writableStore: node must expose set(value) or opts.write");
|
|
2680
|
-
}
|
|
2681
|
-
const writable = node;
|
|
2682
|
-
return {
|
|
2683
|
-
get: read,
|
|
2684
|
-
subscribe: (run) => subscribeNodeValues(node, run, { immediate: true, ...opts }),
|
|
2685
|
-
set: (value) => write(writable, value),
|
|
2686
|
-
update: (fn) => write(writable, fn(read()))
|
|
2687
|
-
};
|
|
2688
|
-
}
|
|
2689
|
-
function externalStore(node, opts = {}) {
|
|
2690
|
-
const read = opts.getSnapshot ?? (() => nodeSnapshot(node));
|
|
2691
|
-
return {
|
|
2692
|
-
getSnapshot: read,
|
|
2693
|
-
getServerSnapshot: read,
|
|
2694
|
-
subscribe: (onStoreChange) => subscribeNodeValues(node, () => onStoreChange(), {
|
|
2695
|
-
changesOnly: true,
|
|
2696
|
-
onError: opts.onError,
|
|
2697
|
-
onComplete: opts.onComplete
|
|
2698
|
-
})
|
|
2699
|
-
};
|
|
2700
|
-
}
|
|
2701
|
-
var reactExternalStore = externalStore;
|
|
2702
|
-
var svelteReadableStore = readableStore;
|
|
2703
|
-
var svelteWritableStore = writableStore;
|
|
2704
|
-
function recordReadableStore(keysNode, factory, opts = {}) {
|
|
2705
|
-
const read = () => {
|
|
2706
|
-
const keys = keysNode.cache ?? [];
|
|
2707
|
-
const out = {};
|
|
2708
|
-
for (const key of keys) {
|
|
2709
|
-
const nodes = factory(key);
|
|
2710
|
-
const values = {};
|
|
2711
|
-
for (const field of Object.keys(nodes)) {
|
|
2712
|
-
values[field] = nodes[field].cache;
|
|
2713
|
-
}
|
|
2714
|
-
out[key] = values;
|
|
2715
|
-
}
|
|
2716
|
-
return out;
|
|
2717
|
-
};
|
|
2718
|
-
return {
|
|
2719
|
-
get: read,
|
|
2720
|
-
subscribe(run) {
|
|
2721
|
-
const entryUnsubs = [];
|
|
2722
|
-
const cleanupEntries = () => {
|
|
2723
|
-
for (const unsub of entryUnsubs.splice(0)) unsub();
|
|
2724
|
-
};
|
|
2725
|
-
const sync = () => {
|
|
2726
|
-
cleanupEntries();
|
|
2727
|
-
for (const key of keysNode.cache ?? []) {
|
|
2728
|
-
const nodes = factory(key);
|
|
2729
|
-
for (const field of Object.keys(nodes)) {
|
|
2730
|
-
entryUnsubs.push(
|
|
2731
|
-
subscribeNodeValues(nodes[field], () => run(read()), {
|
|
2732
|
-
changesOnly: true,
|
|
2733
|
-
onError: opts.onError,
|
|
2734
|
-
onComplete: opts.onComplete
|
|
2735
|
-
})
|
|
2736
|
-
);
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
run(read());
|
|
2740
|
-
};
|
|
2741
|
-
const keysUnsub = subscribeNodeValues(keysNode, sync, {
|
|
2742
|
-
changesOnly: true,
|
|
2743
|
-
onError: opts.onError,
|
|
2744
|
-
onComplete: opts.onComplete
|
|
2745
|
-
});
|
|
2746
|
-
sync();
|
|
2747
|
-
return () => {
|
|
2748
|
-
keysUnsub();
|
|
2749
|
-
cleanupEntries();
|
|
2750
|
-
};
|
|
2751
|
-
}
|
|
2752
|
-
};
|
|
2753
|
-
}
|
|
2754
|
-
function zustandStore(node, initialState = nodeSnapshot(node), opts = {}) {
|
|
2755
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
2756
|
-
const read = opts.getSnapshot ?? (() => nodeSnapshot(node));
|
|
2757
|
-
const write = opts.write ?? (hasWritableSet(node) ? defaultWrite : void 0);
|
|
2758
|
-
if (!write) {
|
|
2759
|
-
throw new TypeError("zustandStore: node must expose set(value) or opts.write");
|
|
2760
|
-
}
|
|
2761
|
-
const writable = node;
|
|
2762
|
-
const api = {
|
|
2763
|
-
getState: () => read(),
|
|
2764
|
-
setState(partial, replace) {
|
|
2765
|
-
const prev = api.getState();
|
|
2766
|
-
const next = typeof partial === "function" ? partial(prev) : partial;
|
|
2767
|
-
write(writable, replace ? next : { ...prev, ...next });
|
|
2768
|
-
},
|
|
2769
|
-
getInitialState: () => initialState,
|
|
2770
|
-
subscribe(listener) {
|
|
2771
|
-
let prev = api.getState();
|
|
2772
|
-
const unsub = subscribeNodeValues(
|
|
2773
|
-
node,
|
|
2774
|
-
(value) => {
|
|
2775
|
-
const next = value;
|
|
2776
|
-
listener(next, prev);
|
|
2777
|
-
prev = next;
|
|
2778
|
-
},
|
|
2779
|
-
{ changesOnly: true, onError: opts.onError, onComplete: opts.onComplete }
|
|
2780
|
-
);
|
|
2781
|
-
listeners.add(unsub);
|
|
2782
|
-
return () => {
|
|
2783
|
-
if (!listeners.delete(unsub)) return;
|
|
2784
|
-
unsub();
|
|
2785
|
-
};
|
|
2786
|
-
},
|
|
2787
|
-
destroy() {
|
|
2788
|
-
for (const unsub of [...listeners]) {
|
|
2789
|
-
listeners.delete(unsub);
|
|
2790
|
-
unsub();
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2793
|
-
};
|
|
2794
|
-
return api;
|
|
2795
|
-
}
|
|
2796
|
-
function jotaiAtom(node, opts = {}) {
|
|
2797
|
-
const base = {
|
|
2798
|
-
get: () => (opts.getSnapshot ?? (() => nodeSnapshot(node)))(),
|
|
2799
|
-
subscribe: (callback) => subscribeNodeValues(node, callback, { changesOnly: true, ...opts }),
|
|
2800
|
-
_node: node
|
|
2801
|
-
};
|
|
2802
|
-
if (hasWritableSet(node) || typeof opts.write === "function") {
|
|
2803
|
-
const writable = writableStore(
|
|
2804
|
-
node,
|
|
2805
|
-
opts
|
|
2806
|
-
);
|
|
2807
|
-
return { ...base, set: writable.set, update: writable.update };
|
|
2808
|
-
}
|
|
2809
|
-
return base;
|
|
2810
|
-
}
|
|
2811
|
-
function nanoAtom(node, opts = {}) {
|
|
2812
|
-
const base = {
|
|
2813
|
-
get: () => (opts.getSnapshot ?? (() => nodeSnapshot(node)))(),
|
|
2814
|
-
subscribe: (callback) => subscribeNodeValues(node, callback, { immediate: true, ...opts }),
|
|
2815
|
-
listen: (callback) => subscribeNodeValues(node, callback, { changesOnly: true, ...opts }),
|
|
2816
|
-
_node: node
|
|
2817
|
-
};
|
|
2818
|
-
if (hasWritableSet(node) || typeof opts.write === "function") {
|
|
2819
|
-
const writable = writableStore(
|
|
2820
|
-
node,
|
|
2821
|
-
opts
|
|
2822
|
-
);
|
|
2823
|
-
return { ...base, set: writable.set, update: writable.update };
|
|
2824
|
-
}
|
|
2825
|
-
return base;
|
|
2826
|
-
}
|
|
2827
|
-
function signalFromNode(node, opts = {}) {
|
|
2828
|
-
const base = {
|
|
2829
|
-
get: () => (opts.getSnapshot ?? (() => nodeSnapshot(node)))(),
|
|
2830
|
-
subscribe: (callback) => subscribeNodeValues(node, callback, { changesOnly: true, ...opts }),
|
|
2831
|
-
_node: node
|
|
2832
|
-
};
|
|
2833
|
-
if (hasWritableSet(node) || typeof opts.write === "function") {
|
|
2834
|
-
const writable = writableStore(
|
|
2835
|
-
node,
|
|
2836
|
-
opts
|
|
2837
|
-
);
|
|
2838
|
-
return { ...base, set: writable.set, update: writable.update };
|
|
2839
|
-
}
|
|
2840
|
-
return base;
|
|
2841
|
-
}
|
|
2842
2647
|
export {
|
|
2843
2648
|
AGENTIC_MEMORY_RECORD_CHANGE_FORMAT,
|
|
2844
2649
|
AGENTIC_MEMORY_RECORD_SNAPSHOT_FORMAT,
|
|
@@ -2871,7 +2676,6 @@ export {
|
|
|
2871
2676
|
openPersistentReactiveMap,
|
|
2872
2677
|
persistAgenticMemoryRecords,
|
|
2873
2678
|
persistReactiveCollection,
|
|
2874
|
-
reactExternalStore,
|
|
2875
2679
|
readableStore,
|
|
2876
2680
|
recordReadableStore,
|
|
2877
2681
|
remoteCall,
|
|
@@ -2879,8 +2683,6 @@ export {
|
|
|
2879
2683
|
remoteResponderHandler,
|
|
2880
2684
|
signalFromNode,
|
|
2881
2685
|
subscribeNodeValues,
|
|
2882
|
-
svelteReadableStore,
|
|
2883
|
-
svelteWritableStore,
|
|
2884
2686
|
toHttp,
|
|
2885
2687
|
toProcess,
|
|
2886
2688
|
toWebSocket,
|