@graphrefly/graphrefly 0.47.1 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/composition/index.cjs +28 -19
- package/dist/base/composition/index.cjs.map +1 -1
- package/dist/base/composition/index.d.cts +14 -5
- package/dist/base/composition/index.d.ts +14 -5
- package/dist/base/composition/index.js +9 -9
- package/dist/base/index.cjs +294 -164
- package/dist/base/index.cjs.map +1 -1
- package/dist/base/index.d.cts +2 -2
- package/dist/base/index.d.ts +2 -2
- package/dist/base/index.js +77 -72
- package/dist/base/io/index.cjs +145 -85
- package/dist/base/io/index.cjs.map +1 -1
- package/dist/base/io/index.d.cts +32 -5
- package/dist/base/io/index.d.ts +32 -5
- package/dist/base/io/index.js +5 -5
- package/dist/base/mutation/index.cjs +21 -0
- package/dist/base/mutation/index.cjs.map +1 -1
- package/dist/base/mutation/index.d.cts +23 -1
- package/dist/base/mutation/index.d.ts +23 -1
- package/dist/base/mutation/index.js +3 -1
- package/dist/base/sources/browser/index.cjs +18 -12
- package/dist/base/sources/browser/index.cjs.map +1 -1
- package/dist/base/sources/browser/index.d.cts +20 -2
- package/dist/base/sources/browser/index.d.ts +20 -2
- package/dist/base/sources/browser/index.js +18 -12
- package/dist/base/sources/browser/index.js.map +1 -1
- package/dist/base/sources/event/index.cjs +29 -1
- package/dist/base/sources/event/index.cjs.map +1 -1
- package/dist/base/sources/event/index.d.cts +67 -3
- package/dist/base/sources/event/index.d.ts +67 -3
- package/dist/base/sources/event/index.js +5 -2
- package/dist/base/sources/index.cjs +96 -50
- package/dist/base/sources/index.cjs.map +1 -1
- package/dist/base/sources/index.d.cts +1 -1
- package/dist/base/sources/index.d.ts +1 -1
- package/dist/base/sources/index.js +7 -4
- package/dist/base/sources/node/index.cjs +43 -37
- package/dist/base/sources/node/index.cjs.map +1 -1
- package/dist/base/sources/node/index.js +43 -37
- package/dist/base/sources/node/index.js.map +1 -1
- package/dist/{chunk-J5WFUEO4.js → chunk-23MAWVOJ.js} +3 -3
- package/dist/{chunk-YXCPV26R.js → chunk-3REMCHSS.js} +39 -27
- package/dist/chunk-3REMCHSS.js.map +1 -0
- package/dist/{chunk-CEVNQ74M.js → chunk-3YGXPUHW.js} +2 -2
- package/dist/{chunk-CEVNQ74M.js.map → chunk-3YGXPUHW.js.map} +1 -1
- package/dist/{chunk-EVYY4X5A.js → chunk-46X2EFQH.js} +16 -5
- package/dist/chunk-46X2EFQH.js.map +1 -0
- package/dist/{chunk-NY2PYHNC.js → chunk-5UY3PNFY.js} +12 -5
- package/dist/chunk-5UY3PNFY.js.map +1 -0
- package/dist/{chunk-RGMTUZCL.js → chunk-65OM4XLQ.js} +50 -4
- package/dist/chunk-65OM4XLQ.js.map +1 -0
- package/dist/{chunk-3PSLNJDU.js → chunk-6DQYBIHW.js} +314 -49
- package/dist/chunk-6DQYBIHW.js.map +1 -0
- package/dist/{chunk-LDCSZ72P.js → chunk-6YBER5UP.js} +3 -3
- package/dist/{chunk-LDCSZ72P.js.map → chunk-6YBER5UP.js.map} +1 -1
- package/dist/{chunk-7EGRP2VX.js → chunk-7BULJTL6.js} +2 -2
- package/dist/{chunk-7EGRP2VX.js.map → chunk-7BULJTL6.js.map} +1 -1
- package/dist/{chunk-VLAGJZSL.js → chunk-7T7WLEPM.js} +25 -4
- package/dist/chunk-7T7WLEPM.js.map +1 -0
- package/dist/{chunk-PKPO3JTZ.js → chunk-AQAKDE7F.js} +29 -11
- package/dist/chunk-AQAKDE7F.js.map +1 -0
- package/dist/{chunk-2OB3CEJS.js → chunk-B5Y5GPD5.js} +2 -2
- package/dist/{chunk-BXGZFGZ4.js → chunk-C5QD5DQX.js} +22 -1
- package/dist/chunk-C5QD5DQX.js.map +1 -0
- package/dist/{chunk-4XCHZRUJ.js → chunk-D5YGR4TP.js} +58 -7
- package/dist/chunk-D5YGR4TP.js.map +1 -0
- package/dist/{chunk-NPRP3MCV.js → chunk-DHDCOOJU.js} +2 -2
- package/dist/chunk-DHDCOOJU.js.map +1 -0
- package/dist/{chunk-MTTRCEJT.js → chunk-DVTDF5OI.js} +2 -2
- package/dist/{chunk-SOOKUYVM.js → chunk-F7EKHR32.js} +13 -9
- package/dist/chunk-F7EKHR32.js.map +1 -0
- package/dist/{chunk-A7KV5UK4.js → chunk-G7H6PN7P.js} +2 -2
- package/dist/{chunk-OCUDSN63.js → chunk-GGKHHG5Y.js} +110 -64
- package/dist/chunk-GGKHHG5Y.js.map +1 -0
- package/dist/{chunk-RAGGHLCV.js → chunk-GUNIRPEJ.js} +8 -6
- package/dist/{chunk-RAGGHLCV.js.map → chunk-GUNIRPEJ.js.map} +1 -1
- package/dist/{chunk-YJ4U2D2C.js → chunk-J5TBZFBD.js} +9 -7
- package/dist/chunk-J5TBZFBD.js.map +1 -0
- package/dist/{chunk-Y52CS6YA.js → chunk-JA67ZQG2.js} +2 -2
- package/dist/{chunk-Y52CS6YA.js.map → chunk-JA67ZQG2.js.map} +1 -1
- package/dist/{chunk-U225SKB4.js → chunk-K4ZYJ4EM.js} +569 -424
- package/dist/chunk-K4ZYJ4EM.js.map +1 -0
- package/dist/{chunk-Z4YXAUDN.js → chunk-KUFXLAEY.js} +11 -7
- package/dist/{chunk-Z4YXAUDN.js.map → chunk-KUFXLAEY.js.map} +1 -1
- package/dist/{chunk-IHTWQEDR.js → chunk-LTSI7ULC.js} +3 -3
- package/dist/{chunk-IHTWQEDR.js.map → chunk-LTSI7ULC.js.map} +1 -1
- package/dist/{chunk-DKNHAICT.js → chunk-MMHGYX44.js} +25 -9
- package/dist/chunk-MMHGYX44.js.map +1 -0
- package/dist/{chunk-K7PDZYQE.js → chunk-MQMTRKY3.js} +129 -50
- package/dist/chunk-MQMTRKY3.js.map +1 -0
- package/dist/{chunk-42FQ27MQ.js → chunk-MTODGQBR.js} +44 -179
- package/dist/chunk-MTODGQBR.js.map +1 -0
- package/dist/{chunk-O3MT7DYI.js → chunk-N6MNJNHB.js} +2 -2
- package/dist/{chunk-FVINAAKA.js → chunk-NBK6QQMG.js} +14 -13
- package/dist/{chunk-FVINAAKA.js.map → chunk-NBK6QQMG.js.map} +1 -1
- package/dist/{chunk-DM4OMPWK.js → chunk-NSA5K5G2.js} +2 -2
- package/dist/{chunk-MLTPJMH6.js → chunk-QQYULEZL.js} +2 -2
- package/dist/chunk-QSW4DFKE.js +31 -0
- package/dist/chunk-QSW4DFKE.js.map +1 -0
- package/dist/{chunk-PZWISPIQ.js → chunk-S7HN5FHL.js} +17 -11
- package/dist/chunk-S7HN5FHL.js.map +1 -0
- package/dist/{chunk-4S53H2KR.js → chunk-SUNCHMML.js} +2 -2
- package/dist/{chunk-4GYMCUDZ.js → chunk-T2U6N3FV.js} +7 -7
- package/dist/{chunk-RJOG4IJU.js → chunk-T5URUIIY.js} +50 -35
- package/dist/chunk-T5URUIIY.js.map +1 -0
- package/dist/{chunk-B4AKFXGE.js → chunk-TPTZZV25.js} +6 -6
- package/dist/chunk-TPTZZV25.js.map +1 -0
- package/dist/{chunk-BU3SEFA5.js → chunk-V46JWFGV.js} +7 -6
- package/dist/chunk-V46JWFGV.js.map +1 -0
- package/dist/{chunk-IJRR6YAI.js → chunk-VLDRAMP7.js} +18 -12
- package/dist/chunk-VLDRAMP7.js.map +1 -0
- package/dist/{chunk-6XZYT4SW.js → chunk-X6ESZDR6.js} +8 -9
- package/dist/chunk-X6ESZDR6.js.map +1 -0
- package/dist/{chunk-E5OZPDIW.js → chunk-X7BA5PWG.js} +7 -5
- package/dist/chunk-X7BA5PWG.js.map +1 -0
- package/dist/{chunk-CXANAIZU.js → chunk-XEWV254I.js} +3 -3
- package/dist/{chunk-CXANAIZU.js.map → chunk-XEWV254I.js.map} +1 -1
- package/dist/{chunk-V4Y3TM7U.js → chunk-YBJVKMTM.js} +38 -16
- package/dist/chunk-YBJVKMTM.js.map +1 -0
- package/dist/{chunk-7ADWWI2T.js → chunk-ZW32BPXV.js} +17 -6
- package/dist/chunk-ZW32BPXV.js.map +1 -0
- package/dist/compat/index.cjs +52 -5
- package/dist/compat/index.cjs.map +1 -1
- package/dist/compat/index.d.cts +1 -1
- package/dist/compat/index.d.ts +1 -1
- package/dist/compat/index.js +7 -7
- package/dist/compat/nestjs/index.cjs +52 -5
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +1 -1
- package/dist/compat/nestjs/index.d.ts +1 -1
- package/dist/compat/nestjs/index.js +4 -4
- package/dist/{fallback-Bx46zqky.d.cts → fallback-BROR6ZhO.d.cts} +1 -1
- package/dist/{fallback-pIWW8A2d.d.ts → fallback-DO80aM_3.d.ts} +1 -1
- package/dist/{index-B_p8tnvf.d.cts → index-D1z3XcF9.d.cts} +1 -0
- package/dist/{index-_HDSmPyp.d.ts → index-DZ6yua0Q.d.ts} +1 -0
- package/dist/index.cjs +2387 -1707
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +173 -150
- package/dist/index.js.map +1 -1
- package/dist/presets/ai/index.cjs +88 -26
- package/dist/presets/ai/index.cjs.map +1 -1
- package/dist/presets/ai/index.js +14 -14
- package/dist/presets/harness/index.cjs +183 -51
- package/dist/presets/harness/index.cjs.map +1 -1
- package/dist/presets/harness/index.d.cts +15 -5
- package/dist/presets/harness/index.d.ts +15 -5
- package/dist/presets/harness/index.js +26 -26
- package/dist/presets/index.cjs +298 -101
- package/dist/presets/index.cjs.map +1 -1
- package/dist/presets/index.d.cts +2 -2
- package/dist/presets/index.d.ts +2 -2
- package/dist/presets/index.js +49 -49
- package/dist/presets/inspect/index.cjs +63 -14
- package/dist/presets/inspect/index.cjs.map +1 -1
- package/dist/presets/inspect/index.d.cts +1 -1
- package/dist/presets/inspect/index.d.ts +1 -1
- package/dist/presets/inspect/index.js +6 -6
- package/dist/presets/resilience/index.cjs +64 -44
- package/dist/presets/resilience/index.cjs.map +1 -1
- package/dist/presets/resilience/index.d.cts +12 -8
- package/dist/presets/resilience/index.d.ts +12 -8
- package/dist/presets/resilience/index.js +6 -6
- package/dist/{rate-limiter-DpVbSYdH.d.cts → rate-limiter-DC26FM8J.d.cts} +10 -1
- package/dist/{rate-limiter-CEALq4N1.d.ts → rate-limiter-DyWpwpQP.d.ts} +10 -1
- package/dist/{reactive-layout-fswlBUvX.d.ts → reactive-layout-BBBWH0V_.d.cts} +85 -4
- package/dist/{reactive-layout-fswlBUvX.d.cts → reactive-layout-BBBWH0V_.d.ts} +85 -4
- package/dist/solutions/index.cjs +239 -92
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +2 -2
- package/dist/solutions/index.d.ts +2 -2
- package/dist/solutions/index.js +32 -32
- package/dist/{spawnable-5mDY501F.d.cts → spawnable-B2IlW60f.d.cts} +23 -2
- package/dist/{spawnable-D3lR0oQu.d.ts → spawnable-tttFz2Nh.d.ts} +23 -2
- package/dist/testing/index.cjs +94 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +59 -0
- package/dist/testing/index.d.ts +59 -0
- package/dist/testing/index.js +73 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/{timeout-U5O4ESK3.js → timeout-BEABACRP.js} +2 -2
- package/dist/utils/ai/browser.cjs.map +1 -1
- package/dist/utils/ai/browser.d.cts +2 -2
- package/dist/utils/ai/browser.d.ts +2 -2
- package/dist/utils/ai/browser.js +10 -10
- package/dist/utils/ai/browser.js.map +1 -1
- package/dist/utils/ai/index.cjs +291 -191
- package/dist/utils/ai/index.cjs.map +1 -1
- package/dist/utils/ai/index.d.cts +108 -12
- package/dist/utils/ai/index.d.ts +108 -12
- package/dist/utils/ai/index.js +23 -21
- package/dist/utils/ai/node.cjs.map +1 -1
- package/dist/utils/ai/node.d.cts +5 -5
- package/dist/utils/ai/node.d.ts +5 -5
- package/dist/utils/ai/node.js +3 -3
- package/dist/utils/ai/node.js.map +1 -1
- package/dist/utils/cqrs/index.cjs +29 -3
- package/dist/utils/cqrs/index.cjs.map +1 -1
- package/dist/utils/cqrs/index.d.cts +12 -7
- package/dist/utils/cqrs/index.d.ts +12 -7
- package/dist/utils/cqrs/index.js +2 -2
- package/dist/utils/demo-shell/index.cjs +45 -19
- package/dist/utils/demo-shell/index.cjs.map +1 -1
- package/dist/utils/demo-shell/index.d.cts +1 -1
- package/dist/utils/demo-shell/index.d.ts +1 -1
- package/dist/utils/demo-shell/index.js +2 -2
- package/dist/utils/domain-templates/index.cjs +1 -1
- package/dist/utils/domain-templates/index.cjs.map +1 -1
- package/dist/utils/domain-templates/index.js +3 -3
- package/dist/utils/graphspec/index.cjs +1 -1
- package/dist/utils/graphspec/index.cjs.map +1 -1
- package/dist/utils/graphspec/index.js +3 -3
- package/dist/utils/harness/index.cjs +16 -10
- package/dist/utils/harness/index.cjs.map +1 -1
- package/dist/utils/harness/index.js +1 -1
- package/dist/utils/index.cjs +1692 -1192
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +7 -7
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.js +77 -59
- package/dist/utils/inspect/index.cjs +52 -4
- package/dist/utils/inspect/index.cjs.map +1 -1
- package/dist/utils/inspect/index.d.cts +32 -3
- package/dist/utils/inspect/index.d.ts +32 -3
- package/dist/utils/inspect/index.js +4 -4
- package/dist/utils/job-queue/index.cjs +46 -9
- package/dist/utils/job-queue/index.cjs.map +1 -1
- package/dist/utils/job-queue/index.d.cts +33 -3
- package/dist/utils/job-queue/index.d.ts +33 -3
- package/dist/utils/job-queue/index.js +2 -2
- package/dist/utils/memory/index.cjs +570 -425
- package/dist/utils/memory/index.cjs.map +1 -1
- package/dist/utils/memory/index.d.cts +261 -33
- package/dist/utils/memory/index.d.ts +261 -33
- package/dist/utils/memory/index.js +10 -2
- package/dist/utils/messaging/index.cjs.map +1 -1
- package/dist/utils/messaging/index.d.cts +4 -3
- package/dist/utils/messaging/index.d.ts +4 -3
- package/dist/utils/messaging/index.js +2 -2
- package/dist/utils/orchestration/index.cjs +14 -3
- package/dist/utils/orchestration/index.cjs.map +1 -1
- package/dist/utils/orchestration/index.js +3 -3
- package/dist/utils/process/index.cjs +32 -2
- package/dist/utils/process/index.cjs.map +1 -1
- package/dist/utils/process/index.d.cts +4 -3
- package/dist/utils/process/index.d.ts +4 -3
- package/dist/utils/process/index.js +3 -3
- package/dist/utils/reactive-layout/index.cjs +184 -55
- package/dist/utils/reactive-layout/index.cjs.map +1 -1
- package/dist/utils/reactive-layout/index.d.cts +128 -3
- package/dist/utils/reactive-layout/index.d.ts +128 -3
- package/dist/utils/reactive-layout/index.js +16 -8
- package/dist/utils/reduction/index.cjs +1 -1
- package/dist/utils/reduction/index.cjs.map +1 -1
- package/dist/utils/reduction/index.js +2 -2
- package/dist/utils/resilience/index.cjs +64 -43
- package/dist/utils/resilience/index.cjs.map +1 -1
- package/dist/utils/resilience/index.d.cts +1 -1
- package/dist/utils/resilience/index.d.ts +1 -1
- package/dist/utils/resilience/index.js +5 -5
- package/dist/utils/surface/index.cjs +1 -1
- package/dist/utils/surface/index.cjs.map +1 -1
- package/dist/utils/surface/index.js +4 -4
- package/package.json +15 -3
- package/dist/chunk-3PSLNJDU.js.map +0 -1
- package/dist/chunk-42FQ27MQ.js.map +0 -1
- package/dist/chunk-4XCHZRUJ.js.map +0 -1
- package/dist/chunk-6XZYT4SW.js.map +0 -1
- package/dist/chunk-7ADWWI2T.js.map +0 -1
- package/dist/chunk-B4AKFXGE.js.map +0 -1
- package/dist/chunk-BU3SEFA5.js.map +0 -1
- package/dist/chunk-BXGZFGZ4.js.map +0 -1
- package/dist/chunk-DKNHAICT.js.map +0 -1
- package/dist/chunk-E5OZPDIW.js.map +0 -1
- package/dist/chunk-EVYY4X5A.js.map +0 -1
- package/dist/chunk-IJRR6YAI.js.map +0 -1
- package/dist/chunk-K7PDZYQE.js.map +0 -1
- package/dist/chunk-NPRP3MCV.js.map +0 -1
- package/dist/chunk-NY2PYHNC.js.map +0 -1
- package/dist/chunk-OCUDSN63.js.map +0 -1
- package/dist/chunk-PKPO3JTZ.js.map +0 -1
- package/dist/chunk-PZWISPIQ.js.map +0 -1
- package/dist/chunk-RGMTUZCL.js.map +0 -1
- package/dist/chunk-RJOG4IJU.js.map +0 -1
- package/dist/chunk-SOOKUYVM.js.map +0 -1
- package/dist/chunk-U225SKB4.js.map +0 -1
- package/dist/chunk-V4Y3TM7U.js.map +0 -1
- package/dist/chunk-VLAGJZSL.js.map +0 -1
- package/dist/chunk-W2BOPXTI.js +0 -1
- package/dist/chunk-YJ4U2D2C.js.map +0 -1
- package/dist/chunk-YXCPV26R.js.map +0 -1
- package/dist/timeout-U5O4ESK3.js.map +0 -1
- /package/dist/{chunk-J5WFUEO4.js.map → chunk-23MAWVOJ.js.map} +0 -0
- /package/dist/{chunk-2OB3CEJS.js.map → chunk-B5Y5GPD5.js.map} +0 -0
- /package/dist/{chunk-MTTRCEJT.js.map → chunk-DVTDF5OI.js.map} +0 -0
- /package/dist/{chunk-A7KV5UK4.js.map → chunk-G7H6PN7P.js.map} +0 -0
- /package/dist/{chunk-O3MT7DYI.js.map → chunk-N6MNJNHB.js.map} +0 -0
- /package/dist/{chunk-DM4OMPWK.js.map → chunk-NSA5K5G2.js.map} +0 -0
- /package/dist/{chunk-MLTPJMH6.js.map → chunk-QQYULEZL.js.map} +0 -0
- /package/dist/{chunk-4S53H2KR.js.map → chunk-SUNCHMML.js.map} +0 -0
- /package/dist/{chunk-4GYMCUDZ.js.map → chunk-T2U6N3FV.js.map} +0 -0
- /package/dist/{chunk-W2BOPXTI.js.map → timeout-BEABACRP.js.map} +0 -0
|
@@ -170,9 +170,19 @@ interface ReviewRequest {
|
|
|
170
170
|
readonly threshold: number;
|
|
171
171
|
}
|
|
172
172
|
interface FactStoreAuditRecord extends BaseAuditRecord {
|
|
173
|
-
readonly action: "ingest" | "invalidate" | "outcome" | "consolidate" | "overflow";
|
|
173
|
+
readonly action: "ingest" | "invalidate" | "outcome" | "consolidate" | "decay" | "overflow";
|
|
174
174
|
readonly id?: FactId;
|
|
175
175
|
readonly reason?: CascadeReason;
|
|
176
|
+
/**
|
|
177
|
+
* Number of facts whose state actually changed in a batch action
|
|
178
|
+
* (post-filter — excludes no-op / non-finite / resurrection-guard
|
|
179
|
+
* skips; equals the length of the emitted `decay_processor` value
|
|
180
|
+
* array). Populated for `"decay"` (a per-tick batch over many facts
|
|
181
|
+
* with no single `id` — the bare `{action,t_ns,seq}` record was opaque
|
|
182
|
+
* to audit-log forensics). Absent for single-fact actions (`id`
|
|
183
|
+
* carries those).
|
|
184
|
+
*/
|
|
185
|
+
readonly count?: number;
|
|
176
186
|
}
|
|
177
187
|
interface ReactiveFactStoreConfig<T> {
|
|
178
188
|
readonly extractDependencies: (f: MemoryFragment<T>) => readonly FactId[];
|
|
@@ -181,11 +191,59 @@ interface ReactiveFactStoreConfig<T> {
|
|
|
181
191
|
/** Shard count for the default hash-mod sharder. Default 4 (§3.2). */
|
|
182
192
|
readonly shardCount?: number;
|
|
183
193
|
readonly scoring?: Node<ScoringPolicy<T>>;
|
|
194
|
+
/**
|
|
195
|
+
* Forgetting-curve policy `(confidence, ageNs) => confidence'` (MEME L1
|
|
196
|
+
* time-drift / Hassabis forgetting curve, DS-14.7 PART 4.1 face ②). `ageNs`
|
|
197
|
+
* is the fact's monotonic age (`monotonicNs() - t_ns`, a `bigint`
|
|
198
|
+
* nanosecond duration — `Number()` it for float math; precision degrades
|
|
199
|
+
* for ages beyond `Number.MAX_SAFE_INTEGER` ns ≈ 104 days of process
|
|
200
|
+
* uptime). Reactive: the policy itself can evolve (e.g.
|
|
201
|
+
* `derived([outcome], …)` for continual learning — spec §1.4
|
|
202
|
+
* push-on-update).
|
|
203
|
+
*
|
|
204
|
+
* **Activation contract.** The decay processor exists only when
|
|
205
|
+
* {@link decayTrigger} is *configured*. Once it is, **both** a
|
|
206
|
+
* `decayTrigger` tick **and** a `decay` policy emit drive a full pass
|
|
207
|
+
* (push-on-update — the `outcomeProcessor`+`scoring` precedent). A policy
|
|
208
|
+
* Node's *initial* value therefore runs a pass on first resolution: if you
|
|
209
|
+
* build `decay` via `derived(...)`, expect a store-wide pass when it first
|
|
210
|
+
* settles. With no `decayTrigger` configured the face is fully inert
|
|
211
|
+
* (mirrors {@link consolidate}/{@link consolidateTrigger}).
|
|
212
|
+
*
|
|
213
|
+
* Each pass applies the current policy to every *live* fact (`validTo`
|
|
214
|
+
* unset), clamps to `[0, 1]`, and writes back only facts whose confidence
|
|
215
|
+
* actually changed (a fact obsoleted earlier in the same tick is never
|
|
216
|
+
* resurrected). A drop below {@link reviewThreshold} surfaces via the
|
|
217
|
+
* `review` topic; decay never sets `validTo`, so it cannot itself drive the
|
|
218
|
+
* cascade.
|
|
219
|
+
*
|
|
220
|
+
* **Quiescence is the policy's responsibility.** The only no-op guard is
|
|
221
|
+
* exact-equality (`next === confidence`). A policy with no reachable
|
|
222
|
+
* fixpoint (e.g. plain geometric `c => c * 0.5`) therefore re-decays and
|
|
223
|
+
* re-emits **every** live fact on **every** tick forever (silent CPU/GC +
|
|
224
|
+
* audit-log churn — never an error). Bound it in the policy: clamp to a
|
|
225
|
+
* floor and return `confidence` unchanged once at/below it (so the
|
|
226
|
+
* exact-equality guard quiesces the store). The {@link decayExponential}
|
|
227
|
+
* recipe is the ergonomic alternative that owns its own `fromTimer` +
|
|
228
|
+
* `floor`/`epsilon` and writes through the `ingest` face (no
|
|
229
|
+
* `decay`/`decayTrigger` wiring). Use this face when you want the store to
|
|
230
|
+
* own decay as a reactive, swappable policy and you are providing the floor.
|
|
231
|
+
*/
|
|
184
232
|
readonly decay?: Node<DecayPolicy>;
|
|
185
233
|
readonly admissionFilter?: Node<AdmissionFilter<T>>;
|
|
186
234
|
readonly ingest: Node<MemoryFragment<T>>;
|
|
187
235
|
readonly outcome?: Node<OutcomeSignal>;
|
|
188
236
|
readonly query?: Node<MemoryQuery>;
|
|
237
|
+
/**
|
|
238
|
+
* Decay trigger — a reactive timer/cron Node (e.g. `fromTimer(...)` /
|
|
239
|
+
* `fromCron(...)`). Configuring it creates the decay processor; each tick
|
|
240
|
+
* then re-applies the current {@link decay} policy to every live fact (a
|
|
241
|
+
* `decay` policy emit also drives a pass — see {@link decay}'s "Activation
|
|
242
|
+
* contract"). A tick before any `decay` policy has emitted is a no-op.
|
|
243
|
+
* Without this field the `decay` face is fully inert (mirrors
|
|
244
|
+
* {@link consolidateTrigger}/{@link consolidate}).
|
|
245
|
+
*/
|
|
246
|
+
readonly decayTrigger?: Node<unknown>;
|
|
189
247
|
/**
|
|
190
248
|
* Consolidator trigger — a reactive timer/cron Node (e.g. `fromCron(...)`).
|
|
191
249
|
* When supplied, the `consolidated` node maps each tick to summarized
|
|
@@ -258,29 +316,6 @@ interface ReactiveFactStoreConfig<T> {
|
|
|
258
316
|
*/
|
|
259
317
|
readonly recordIngest?: boolean;
|
|
260
318
|
}
|
|
261
|
-
interface ReactiveFactStoreGraph<T> extends Graph {
|
|
262
|
-
/** Per-shard `state<FactStore<T>>` nodes (length = shard count). */
|
|
263
|
-
readonly shards: readonly Node<FactStore<T>>[];
|
|
264
|
-
/** Unified read view across all shards (derived). */
|
|
265
|
-
readonly factStore: Node<FactStore<T>>;
|
|
266
|
-
readonly dependentsIndex: Node<DependentsIndex>;
|
|
267
|
-
readonly answer: Node<MemoryAnswer<T> | null>;
|
|
268
|
-
readonly cascade: Node<readonly CascadeEvent[]>;
|
|
269
|
-
readonly cascadeOverflow: Node<CascadeOverflow | null>;
|
|
270
|
-
readonly review: Node<ReviewRequest | null>;
|
|
271
|
-
readonly consolidated: Node<readonly MemoryFragment<T>[]>;
|
|
272
|
-
readonly events: ReactiveLogBundle<FactStoreAuditRecord>;
|
|
273
|
-
/**
|
|
274
|
-
* Payload-carrying, replayable log of every committed fragment. Present iff
|
|
275
|
-
* {@link ReactiveFactStoreConfig.recordIngest} is `true`. Unlike
|
|
276
|
-
* {@link ReactiveFactStoreGraph.events} (action-only audit), each entry is
|
|
277
|
-
* the full {@link MemoryFragment} — `attachStorage` it for a durable,
|
|
278
|
-
* replayable projection source (see `recordIngest` docs for the recipe).
|
|
279
|
-
*/
|
|
280
|
-
readonly ingestLog?: ReactiveLogBundle<MemoryFragment<T>>;
|
|
281
|
-
/** Reactive read: a single fact by id (SENTINEL until the fact exists). */
|
|
282
|
-
itemNode(id: FactId): Node<MemoryFragment<T> | undefined>;
|
|
283
|
-
}
|
|
284
319
|
/**
|
|
285
320
|
* Build a static-topology reactive fact store (DS-14.7 architecture C).
|
|
286
321
|
*
|
|
@@ -314,6 +349,38 @@ interface ReactiveFactStoreGraph<T> extends Graph {
|
|
|
314
349
|
*
|
|
315
350
|
* @category memory
|
|
316
351
|
*/
|
|
352
|
+
declare class ReactiveFactStoreGraph<T> extends Graph {
|
|
353
|
+
/** Per-shard `state<FactStore<T>>` nodes (length = shard count). */
|
|
354
|
+
readonly shards: readonly Node<FactStore<T>>[];
|
|
355
|
+
/** Unified read view across all shards (derived). */
|
|
356
|
+
readonly factStore: Node<FactStore<T>>;
|
|
357
|
+
readonly dependentsIndex: Node<DependentsIndex>;
|
|
358
|
+
readonly answer: Node<MemoryAnswer<T> | null>;
|
|
359
|
+
readonly cascade: Node<readonly CascadeEvent[]>;
|
|
360
|
+
readonly cascadeOverflow: Node<CascadeOverflow | null>;
|
|
361
|
+
readonly review: Node<ReviewRequest | null>;
|
|
362
|
+
readonly consolidated: Node<readonly MemoryFragment<T>[]>;
|
|
363
|
+
readonly events: ReactiveLogBundle<FactStoreAuditRecord>;
|
|
364
|
+
/**
|
|
365
|
+
* Payload-carrying, replayable log of every committed fragment. Present iff
|
|
366
|
+
* {@link ReactiveFactStoreConfig.recordIngest} is `true`. Unlike
|
|
367
|
+
* {@link ReactiveFactStoreGraph.events} (action-only audit), each entry is
|
|
368
|
+
* the full {@link MemoryFragment} — `attachStorage` it for a durable,
|
|
369
|
+
* replayable projection source (see `recordIngest` docs for the recipe).
|
|
370
|
+
*/
|
|
371
|
+
readonly ingestLog?: ReactiveLogBundle<MemoryFragment<T>>;
|
|
372
|
+
constructor(config: ReactiveFactStoreConfig<T>);
|
|
373
|
+
/** Reactive read: a single fact by id (SENTINEL until the fact exists). */
|
|
374
|
+
itemNode(id: FactId): Node<MemoryFragment<T> | undefined>;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Build a static-topology reactive fact store (DS-14.7 architecture C).
|
|
378
|
+
*
|
|
379
|
+
* Thin factory over {@link ReactiveFactStoreGraph} — see that class for the
|
|
380
|
+
* full topology / locked-decision docs and the `instanceof`-narrowable type.
|
|
381
|
+
*
|
|
382
|
+
* @category memory
|
|
383
|
+
*/
|
|
317
384
|
declare function reactiveFactStore<T>(config: ReactiveFactStoreConfig<T>): ReactiveFactStoreGraph<T>;
|
|
318
385
|
|
|
319
386
|
/**
|
|
@@ -620,14 +687,15 @@ declare function consolidationRem<T>(opts: ConsolidationRemOptions<T>): Consolid
|
|
|
620
687
|
* re-ingest write commits **synchronously this tick** (graphrefly push is
|
|
621
688
|
* synchronous) and the next tick decays from there.
|
|
622
689
|
*
|
|
623
|
-
* > **
|
|
624
|
-
* > Node<DecayPolicy>`
|
|
625
|
-
* >
|
|
626
|
-
* >
|
|
627
|
-
* >
|
|
628
|
-
* >
|
|
629
|
-
* >
|
|
630
|
-
* >
|
|
690
|
+
* > **Recipe vs the `decay` face.** `ReactiveFactStoreConfig.decay:
|
|
691
|
+
* > Node<DecayPolicy>` (DS-14.7 PART 4.1 face ②) **is wired** in the factory —
|
|
692
|
+
* > pair it with `decayTrigger` and the store owns decay as a reactive,
|
|
693
|
+
* > swappable policy. This recipe is the **ergonomic alternative**: it owns its
|
|
694
|
+
* > own `fromTimer` and writes through the already-wired `ingest` face, so the
|
|
695
|
+
* > caller wires no `decay`/`decayTrigger` and the recipe composes whether or
|
|
696
|
+
* > not the face is also used. Both deliver the §5.8 "`fromTimer` for periodic
|
|
697
|
+
* > confidence drift" behavior; pick the face for a caller-controlled policy
|
|
698
|
+
* > Node, this recipe for a self-contained drop-in forgetting curve.
|
|
631
699
|
*
|
|
632
700
|
* **Convergence (conditional — read this).** Per-id decay is computed against
|
|
633
701
|
* the elapsed time since this fact was last decayed (recipe-owned closure
|
|
@@ -905,6 +973,166 @@ interface ShardByTenantConfig<T> {
|
|
|
905
973
|
*/
|
|
906
974
|
declare function shardByTenant<T>(tenantOf: (f: MemoryFragment<T>) => string, opts?: ShardByTenantOptions): ShardByTenantConfig<T>;
|
|
907
975
|
|
|
976
|
+
/**
|
|
977
|
+
* `simpleFactStore()` — the 80%-case ergonomic wrapper over
|
|
978
|
+
* {@link reactiveFactStore} / {@link persistentReactiveFactStore}
|
|
979
|
+
* (DS-14.7 follow-up #2; design LOCKED 2026-05-17 `/dev-dispatch` Q-walk,
|
|
980
|
+
* Q1–Q6 + sub-decisions resolved).
|
|
981
|
+
*
|
|
982
|
+
* Closes the gap where a consumer wanting durable agent memory had to
|
|
983
|
+
* hand-compose: an `ingest` source + `extractDependencies` + (optionally) a
|
|
984
|
+
* `StorageBackend` + decay/consolidation recipes + the
|
|
985
|
+
* `BigInt(monotonicNs())` fragment boilerplate. `simpleFactStore` owns all
|
|
986
|
+
* of that and exposes a single ergonomic `remember(id, payload, opts?)`.
|
|
987
|
+
*
|
|
988
|
+
* **Q-walk locks (canonical: `docs/optimizations.md` DS-14.7 follow-up #2):**
|
|
989
|
+
* - **Q1** — `extractDependencies` defaults to `() => []` (flat store;
|
|
990
|
+
* cascade inert by default — dependency-tracking is opt-in).
|
|
991
|
+
* - **Q2** — single factory, **optional `storage`**: present → wraps
|
|
992
|
+
* {@link persistentReactiveFactStore} (durable, event-sourced); absent →
|
|
993
|
+
* in-memory {@link reactiveFactStore}.
|
|
994
|
+
* - **Q3** — the wrapper **owns** the internal `ingest` source and exposes
|
|
995
|
+
* {@link SimpleFactStoreGraph.remember}. `remember` `.emit`s into the
|
|
996
|
+
* owned leaf source — this is the *sanctioned* external push that the
|
|
997
|
+
* `reactiveFactStore` ingest contract documents (same shape as the
|
|
998
|
+
* `decay`/replay recipes' `.emit`-into-source), **not** a spec-§5.9
|
|
999
|
+
* imperative trigger: it feeds DATA into a source node, it does not
|
|
1000
|
+
* bypass topology for control flow. Reactive reads (`answer` / `review` /
|
|
1001
|
+
* `events`) stay the canonical observation surface.
|
|
1002
|
+
* - **Q4** — auto-wire **default recipes** with internal `fromTimer`
|
|
1003
|
+
* cadences (batteries-included; user-blessed 2026-05-17). `decay` is
|
|
1004
|
+
* generically meaningful (confidence forgetting needs no domain
|
|
1005
|
+
* knowledge) → **ON by default** with conservative defaults
|
|
1006
|
+
* ({@link DEFAULT_DECAY_HALF_LIFE_NS} / {@link DEFAULT_DECAY_PERIOD_MS}),
|
|
1007
|
+
* tunable or `false` to disable. `consolidate` is **domain-bound** —
|
|
1008
|
+
* {@link consolidationRem} *requires* a `summarize` (there is no generic
|
|
1009
|
+
* default; an arbitrary `T` cannot be summarized blindly), so it is wired
|
|
1010
|
+
* **iff** the caller supplies `opts.consolidate`. This consolidation
|
|
1011
|
+
* asymmetry is dictated by the recipe's own required contract, not an
|
|
1012
|
+
* autonomous downgrade of the Q4 lock.
|
|
1013
|
+
* - **Q5** — minimal input: `remember(id, payload, { tags? })` auto-fills
|
|
1014
|
+
* `t_ns = BigInt(monotonicNs())` (per the {@link MemoryFragment.t_ns}
|
|
1015
|
+
* contract + the clock-return-type rule — `monotonicNs()` is `number`,
|
|
1016
|
+
* the `BigInt(...)` wrap is load-bearing) and `confidence = 1`.
|
|
1017
|
+
* - **Q6** — **wraps** the existing factories (not a parallel impl).
|
|
1018
|
+
*
|
|
1019
|
+
* Presentation-only (`@graphrefly/graphrefly`, `utils/memory` barrel),
|
|
1020
|
+
* universal tier (`fromTimer` only, no `node:*`/DOM — the optional
|
|
1021
|
+
* `StorageBackend` impl's tier is the *caller's* concern, forwarded
|
|
1022
|
+
* verbatim, exactly as {@link persistentReactiveFactStore} does).
|
|
1023
|
+
*
|
|
1024
|
+
* @module
|
|
1025
|
+
*/
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Default exponential-decay half-life: **7 days** in nanoseconds. Confidence
|
|
1029
|
+
* halves once per week of fact age — gentle forgetting suitable for the
|
|
1030
|
+
* 80%-case agent memory. Override via `opts.decay.halfLifeNs`.
|
|
1031
|
+
*/
|
|
1032
|
+
declare const DEFAULT_DECAY_HALF_LIFE_NS = 604800000000000n;
|
|
1033
|
+
/**
|
|
1034
|
+
* Default decay tick cadence: **1 hour** (ms). How often the forgetting pass
|
|
1035
|
+
* runs. Override via `opts.decay.periodMs`.
|
|
1036
|
+
*/
|
|
1037
|
+
declare const DEFAULT_DECAY_PERIOD_MS = 3600000;
|
|
1038
|
+
/** Per-fact override fields accepted by {@link SimpleFactStoreGraph.remember}. */
|
|
1039
|
+
interface RememberOptions {
|
|
1040
|
+
/** Tags. Default `[]`. */
|
|
1041
|
+
readonly tags?: readonly string[];
|
|
1042
|
+
/** Dependency edges (fact IDs this fact derives from). Default `[]`. */
|
|
1043
|
+
readonly sources?: readonly FactId[];
|
|
1044
|
+
/** Confidence 0..1. Default `1`. */
|
|
1045
|
+
readonly confidence?: number;
|
|
1046
|
+
/** Valid-time end — set to obsolete a fact (MEME L3 lever). */
|
|
1047
|
+
readonly validTo?: bigint;
|
|
1048
|
+
/** Valid-time start — `undefined` = unbounded past. */
|
|
1049
|
+
readonly validFrom?: bigint;
|
|
1050
|
+
/** Free-form provenance string. */
|
|
1051
|
+
readonly provenance?: string;
|
|
1052
|
+
}
|
|
1053
|
+
interface SimpleFactStoreOptions<T> {
|
|
1054
|
+
/**
|
|
1055
|
+
* Durable backing. Present → delegates to
|
|
1056
|
+
* {@link persistentReactiveFactStore} (event-sourced, replay-on-start,
|
|
1057
|
+
* substrate-owned cursor). Absent → in-memory {@link reactiveFactStore}.
|
|
1058
|
+
* The backend's runtime tier (node / browser) is the caller's concern —
|
|
1059
|
+
* forwarded verbatim.
|
|
1060
|
+
*/
|
|
1061
|
+
readonly storage?: StorageBackend;
|
|
1062
|
+
/**
|
|
1063
|
+
* Cascade dependency extractor. **Default `() => []`** — flat store, no
|
|
1064
|
+
* cascade. Supply to opt into MEME L2 cascade invalidation.
|
|
1065
|
+
*/
|
|
1066
|
+
readonly extractDependencies?: (f: MemoryFragment<T>) => readonly FactId[];
|
|
1067
|
+
/**
|
|
1068
|
+
* Exponential-decay forgetting. **Default: ON** with
|
|
1069
|
+
* {@link DEFAULT_DECAY_HALF_LIFE_NS} / {@link DEFAULT_DECAY_PERIOD_MS}.
|
|
1070
|
+
* Pass a partial to tune; pass `false` to disable. Wires an internal
|
|
1071
|
+
* `fromTimer` (the user-blessed batteries-included cadence).
|
|
1072
|
+
*/
|
|
1073
|
+
readonly decay?: false | Partial<DecayExponentialOptions>;
|
|
1074
|
+
/**
|
|
1075
|
+
* REM-replay consolidation. **Domain-bound** — requires a `summarize`
|
|
1076
|
+
* (no generic default exists). Supply the full
|
|
1077
|
+
* {@link ConsolidationRemOptions} to enable; omit to disable. Wires an
|
|
1078
|
+
* internal `fromTimer` at `consolidate.periodMs`.
|
|
1079
|
+
*/
|
|
1080
|
+
readonly consolidate?: ConsolidationRemOptions<T>;
|
|
1081
|
+
/** Persistent-only: durable bucket name. Default `fact_store_ingest`. */
|
|
1082
|
+
readonly persistName?: string;
|
|
1083
|
+
/** Persistent-only: durable codec. Default `bigintJsonCodecFor`. */
|
|
1084
|
+
readonly codec?: Codec<readonly MemoryFragment<T>[]>;
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* The ergonomic write added to every `simpleFactStore` graph. Normalizes to a
|
|
1088
|
+
* {@link MemoryFragment} (auto `t_ns = BigInt(monotonicNs())`,
|
|
1089
|
+
* `confidence = 1`, `tags`/`sources` = `[]`) and `.emit`s it into the owned
|
|
1090
|
+
* `ingest` source. Re-`remember`ing an existing `id` is the MEME L1
|
|
1091
|
+
* direct-replace lever; set `opts.validTo` to obsolete (MEME L3).
|
|
1092
|
+
*/
|
|
1093
|
+
type SimpleFactStoreRemember<T> = (id: FactId, payload: T, opts?: RememberOptions) => void;
|
|
1094
|
+
/**
|
|
1095
|
+
* In-memory `simpleFactStore` graph (no `storage`) augmented with
|
|
1096
|
+
* {@link SimpleFactStoreRemember}.
|
|
1097
|
+
*/
|
|
1098
|
+
interface SimpleFactStoreGraph<T> extends ReactiveFactStoreGraph<T> {
|
|
1099
|
+
remember: SimpleFactStoreRemember<T>;
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Durable (`storage`-backed) `simpleFactStore` graph — the **type-honest**
|
|
1103
|
+
* persistent surface. EC-LOW-1 (`/qa` 2026-05-17): the `storage` overload
|
|
1104
|
+
* returns this so `position` / `replayedCount` / `flush` / `tier` are typed
|
|
1105
|
+
* without a hand-cast (the durable path is the headline 80%-case).
|
|
1106
|
+
*/
|
|
1107
|
+
type PersistentSimpleFactStoreGraph<T> = PersistentReactiveFactStoreGraph<T> & {
|
|
1108
|
+
remember: SimpleFactStoreRemember<T>;
|
|
1109
|
+
};
|
|
1110
|
+
/**
|
|
1111
|
+
* Build a fact store with sensible defaults and a one-call `remember`.
|
|
1112
|
+
*
|
|
1113
|
+
* @example
|
|
1114
|
+
* ```ts
|
|
1115
|
+
* import { simpleFactStore } from "@graphrefly/graphrefly/utils/memory";
|
|
1116
|
+
* import { memoryBackend } from "@graphrefly/graphrefly/extra";
|
|
1117
|
+
*
|
|
1118
|
+
* const mem = simpleFactStore<string>(); // in-memory, decay ON
|
|
1119
|
+
* mem.remember("user:lang", "TypeScript", { tags: ["pref"] });
|
|
1120
|
+
* mem.answer.subscribe((a) => console.log(a)); // reactive read
|
|
1121
|
+
*
|
|
1122
|
+
* // Durable: the `storage` overload returns the typed persistent surface
|
|
1123
|
+
* // (no hand-cast needed for `position` / `flush`).
|
|
1124
|
+
* const durable = simpleFactStore<string>({ storage: memoryBackend() });
|
|
1125
|
+
* durable.remember("k", "v");
|
|
1126
|
+
* await durable.flush();
|
|
1127
|
+
* ```
|
|
1128
|
+
*
|
|
1129
|
+
* @category memory
|
|
1130
|
+
*/
|
|
1131
|
+
declare function simpleFactStore<T>(opts: SimpleFactStoreOptions<T> & {
|
|
1132
|
+
storage: StorageBackend;
|
|
1133
|
+
}): PersistentSimpleFactStoreGraph<T>;
|
|
1134
|
+
declare function simpleFactStore<T>(opts?: SimpleFactStoreOptions<T>): SimpleFactStoreGraph<T>;
|
|
1135
|
+
|
|
908
1136
|
/**
|
|
909
1137
|
* Memory patterns (roadmap §4.3) — public-face Phase-4 primitives audited under
|
|
910
1138
|
* `archive/docs/SESSION-public-face-blocks-review.md` (Wave A, locked 2026-04-25).
|
|
@@ -1246,4 +1474,4 @@ type KnowledgeGraph<TEntity, TRelation extends string = string> = Graph & {
|
|
|
1246
1474
|
*/
|
|
1247
1475
|
declare function knowledgeGraph<TEntity, TRelation extends string = string>(name: string, opts?: KnowledgeGraphOptions): KnowledgeGraph<TEntity, TRelation>;
|
|
1248
1476
|
|
|
1249
|
-
export { type AdmissionFilter, type AdmissionLlmJudgeOptions, type BitemporalQueryOptions, type CascadeEvent, type CascadeOverflow, type CascadeReason, type CollectionAuditRecord, type CollectionEntry, type CollectionGraph, type CollectionOptions, type CollectionScoreFn, type ConsolidationRemConfig, type ConsolidationRemOptions, type DecayExponentialOptions, type DecayPolicy, type DependentsIndex, type FactId, type FactStore, type FactStoreAuditRecord, type HnswAdapter, type InfluenceAnalysis, type InfluenceAnalysisOptions, type InfluenceRow, type InvalidationTraceEntry, type InvalidationTracerOptions, type KnowledgeEdge, type KnowledgeGraph, type KnowledgeGraphAuditRecord, type KnowledgeGraphOptions, type MemoryAnswer, type MemoryFragment, type MemoryQuery, NodeOrValue, type OutcomeSignal, type PersistentReactiveFactStoreConfig, type PersistentReactiveFactStoreGraph, type RankedCollectionEntry, type ReactiveFactStoreConfig, type
|
|
1477
|
+
export { type AdmissionFilter, type AdmissionLlmJudgeOptions, type BitemporalQueryOptions, type CascadeEvent, type CascadeOverflow, type CascadeReason, type CollectionAuditRecord, type CollectionEntry, type CollectionGraph, type CollectionOptions, type CollectionScoreFn, type ConsolidationRemConfig, type ConsolidationRemOptions, DEFAULT_DECAY_HALF_LIFE_NS, DEFAULT_DECAY_PERIOD_MS, type DecayExponentialOptions, type DecayPolicy, type DependentsIndex, type FactId, type FactStore, type FactStoreAuditRecord, type HnswAdapter, type InfluenceAnalysis, type InfluenceAnalysisOptions, type InfluenceRow, type InvalidationTraceEntry, type InvalidationTracerOptions, type KnowledgeEdge, type KnowledgeGraph, type KnowledgeGraphAuditRecord, type KnowledgeGraphOptions, type MemoryAnswer, type MemoryFragment, type MemoryQuery, NodeOrValue, type OutcomeSignal, type PersistentReactiveFactStoreConfig, type PersistentReactiveFactStoreGraph, type RankedCollectionEntry, type ReactiveFactStoreConfig, ReactiveFactStoreGraph, type RememberOptions, type ReviewRequest, type ScoringByOutcomeOptions, type ScoringPolicy, type ShardByTenantConfig, type ShardByTenantOptions, type ShardKey, type SimpleFactStoreGraph, type SimpleFactStoreOptions, type StoreReadHandle, type VectorBackend, type VectorIndexAuditRecord, type VectorIndexGraph, type VectorIndexOptions, type VectorRecord, type VectorSearchResult, admissionLlmJudge, bitemporalQuery, collection, consolidationRem, cosineSimilarity, decayExponential, influenceAnalysis, invalidationTracer, knowledgeGraph, persistentReactiveFactStore, reactiveFactStore, scoringByOutcome, shardByTenant, simpleFactStore, vectorIndex };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DEFAULT_DECAY_HALF_LIFE_NS,
|
|
3
|
+
DEFAULT_DECAY_PERIOD_MS,
|
|
4
|
+
ReactiveFactStoreGraph,
|
|
2
5
|
admissionLlmJudge,
|
|
3
6
|
bitemporalQuery,
|
|
4
7
|
collection,
|
|
@@ -12,13 +15,17 @@ import {
|
|
|
12
15
|
reactiveFactStore,
|
|
13
16
|
scoringByOutcome,
|
|
14
17
|
shardByTenant,
|
|
18
|
+
simpleFactStore,
|
|
15
19
|
vectorIndex
|
|
16
|
-
} from "../../chunk-
|
|
20
|
+
} from "../../chunk-K4ZYJ4EM.js";
|
|
17
21
|
import "../../chunk-QMBYUVRL.js";
|
|
18
22
|
import "../../chunk-FMPF42Q4.js";
|
|
19
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-C5QD5DQX.js";
|
|
20
24
|
import "../../chunk-AZDQPQ3V.js";
|
|
21
25
|
export {
|
|
26
|
+
DEFAULT_DECAY_HALF_LIFE_NS,
|
|
27
|
+
DEFAULT_DECAY_PERIOD_MS,
|
|
28
|
+
ReactiveFactStoreGraph,
|
|
22
29
|
admissionLlmJudge,
|
|
23
30
|
bitemporalQuery,
|
|
24
31
|
collection,
|
|
@@ -32,6 +39,7 @@ export {
|
|
|
32
39
|
reactiveFactStore,
|
|
33
40
|
scoringByOutcome,
|
|
34
41
|
shardByTenant,
|
|
42
|
+
simpleFactStore,
|
|
35
43
|
vectorIndex
|
|
36
44
|
};
|
|
37
45
|
//# sourceMappingURL=index.js.map
|