@graphrefly/graphrefly 0.37.0 → 0.38.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/{chunk-CZIQ6JCE.js → chunk-2YFDSYEF.js} +1 -1
- package/dist/{chunk-YVYSO5CW.js → chunk-4BDQXBXE.js} +1 -1
- package/dist/chunk-5BGFS2XH.js +1 -0
- package/dist/chunk-6773HURD.js +1 -0
- package/dist/{chunk-U3COB5WU.js → chunk-6KZZ6XQE.js} +1 -1
- package/dist/{chunk-5CPPC75H.js → chunk-6VFC334U.js} +1 -1
- package/dist/{chunk-KUVDFOJH.js → chunk-7KZZLWZ6.js} +1 -1
- package/dist/{chunk-Q7EUZ6NN.js → chunk-B5S7KTGP.js} +1 -1
- package/dist/chunk-CMTN3KPT.js +80 -0
- package/dist/chunk-DQJLC6YY.js +1 -0
- package/dist/chunk-DSOVKKTI.js +1 -0
- package/dist/chunk-FAYEMS5M.js +1 -0
- package/dist/chunk-FWGIZP3W.js +1 -0
- package/dist/{chunk-FMI4CWFL.js → chunk-G7JN6LCB.js} +1 -1
- package/dist/{chunk-PCD2MU7X.js → chunk-IBGE62GZ.js} +1 -1
- package/dist/{chunk-MYFR67PY.js → chunk-K5C67OGE.js} +1 -1
- package/dist/chunk-KJEAIIIY.js +43 -0
- package/dist/chunk-LV3ACS5J.js +1 -0
- package/dist/{chunk-LOQRPP4Y.js → chunk-NBGPXQSP.js} +1 -1
- package/dist/chunk-NN3QPJ6U.js +1 -0
- package/dist/{chunk-QWVQIL3T.js → chunk-NSAZ6PR6.js} +1 -1
- package/dist/{chunk-MC5LZG3U.js → chunk-NV63VQHI.js} +1 -1
- package/dist/{chunk-2C4NESZE.js → chunk-O245YLM5.js} +1 -1
- package/dist/{chunk-TLS7M7H4.js → chunk-O2BLVQU4.js} +1 -1
- package/dist/chunk-PHXZRR6C.js +1 -0
- package/dist/{chunk-K6ZFJ473.js → chunk-POCWFIJ7.js} +1 -1
- package/dist/{chunk-C5CBVOCB.js → chunk-QEVSIVSF.js} +1 -1
- package/dist/chunk-QMC2PLNM.js +7 -0
- package/dist/chunk-QOJFR6GS.js +1 -0
- package/dist/{chunk-MQZWA3DF.js → chunk-RZ5HKPGI.js} +1 -1
- package/dist/{chunk-WSLN4JFO.js → chunk-SFK7MN7S.js} +1 -1
- package/dist/{chunk-QP5TH523.js → chunk-SP5O2MIX.js} +1 -1
- package/dist/chunk-TB7JKSVS.js +61 -0
- package/dist/{chunk-T4U24DXX.js → chunk-TMVY7OWG.js} +1 -1
- package/dist/{chunk-UODQF4EY.js → chunk-UAXFKMAG.js} +1 -1
- package/dist/{chunk-TFK4P4CX.js → chunk-UVLZX2OU.js} +1 -1
- package/dist/chunk-XIMFHEKV.js +1 -0
- package/dist/{chunk-XIJKEXWR.js → chunk-XLMYQB6F.js} +1 -1
- package/dist/{chunk-4EATTNAE.js → chunk-XLYF4LBH.js} +1 -1
- package/dist/compat/index.cjs +9 -9
- package/dist/compat/index.d.cts +7 -7
- package/dist/compat/index.d.ts +7 -7
- package/dist/compat/index.js +1 -1
- package/dist/compat/nestjs/index.cjs +11 -11
- package/dist/compat/nestjs/index.d.cts +5 -5
- package/dist/compat/nestjs/index.d.ts +5 -5
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/zustand/index.cjs +7 -7
- package/dist/compat/zustand/index.d.cts +3 -3
- package/dist/compat/zustand/index.d.ts +3 -3
- package/dist/compat/zustand/index.js +1 -1
- package/dist/{composite-_XckYx2e.d.cts → composite-CgG0MqHm.d.cts} +8 -1
- package/dist/{composite-CT_mApQD.d.ts → composite-DTOlDuch.d.ts} +8 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/extra/index.cjs +19 -19
- package/dist/extra/index.d.cts +5 -5
- package/dist/extra/index.d.ts +5 -5
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +2 -2
- package/dist/extra/node.d.cts +107 -1
- package/dist/extra/node.d.ts +107 -1
- package/dist/extra/node.js +2 -2
- package/dist/extra/operators.cjs +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.d.cts +1 -1
- package/dist/extra/reactive.d.ts +1 -1
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-tiers-browser.d.cts +76 -5
- package/dist/extra/storage-tiers-browser.d.ts +76 -5
- package/dist/extra/storage-tiers-node.d.cts +137 -13
- package/dist/extra/storage-tiers-node.d.ts +137 -13
- package/dist/extra/storage-tiers.d.cts +151 -23
- package/dist/extra/storage-tiers.d.ts +151 -23
- package/dist/graph/index.cjs +7 -7
- package/dist/graph/index.d.cts +4 -4
- package/dist/graph/index.d.ts +4 -4
- package/dist/graph/index.js +1 -1
- package/dist/{graph-YQXDndFy.d.ts → graph-BjW1taJl.d.ts} +217 -10
- package/dist/{graph-CaNXUc3c.d.cts → graph-CHsVwf9S.d.cts} +217 -10
- package/dist/{index-CUTHDZ7Q.d.ts → index-5dNRlW7J.d.ts} +3 -3
- package/dist/{index-Bpzw8hx3.d.ts → index-AUqWe_fX.d.ts} +7 -4
- package/dist/{index-fHKHdAso.d.ts → index-B-ORMr3k.d.ts} +2 -2
- package/dist/{index-DcWbx58m.d.cts → index-B2IUcH13.d.cts} +2 -2
- package/dist/{index-DuhOdNyg.d.ts → index-BFaALJxR.d.ts} +2 -2
- package/dist/{index-DPqR3wdW.d.ts → index-BI1wMfyc.d.ts} +2 -2
- package/dist/{index-D0ZxFXYl.d.ts → index-BUFCHvOR.d.ts} +2 -2
- package/dist/{index-CLPQyYY5.d.cts → index-BWUMIt7J.d.cts} +3 -3
- package/dist/{index-CkN8CZlT.d.cts → index-BaSy4L6w.d.cts} +37 -17
- package/dist/{index-B1IcU--K.d.cts → index-BgzPO43H.d.cts} +2 -2
- package/dist/{index-D6tRNEKz.d.cts → index-BhzwpIJc.d.cts} +1 -1
- package/dist/{index-4IwO4mH2.d.cts → index-BkQqf1EF.d.cts} +80 -7
- package/dist/{index-CajEOoAN.d.ts → index-BmWuVdER.d.ts} +2 -2
- package/dist/{index-0qOD-421.d.ts → index-Bn0uZEL4.d.ts} +2 -2
- package/dist/{index-DAKm44My.d.cts → index-BpMZzX9P.d.cts} +2 -2
- package/dist/{index-CrpjECS6.d.cts → index-Bpr0Pwgl.d.cts} +2 -2
- package/dist/{index-BECJ8M0T.d.cts → index-BqcgiSQg.d.cts} +2 -2
- package/dist/{index-DfAo9WKr.d.ts → index-BsZk9T8y.d.ts} +1 -1
- package/dist/{index-CU3z8Cel.d.cts → index-BsgxnHN8.d.cts} +2 -2
- package/dist/index-Bub6x_D4.d.cts +427 -0
- package/dist/{index-C-pFD_FV.d.ts → index-BwOsJfLJ.d.ts} +2 -2
- package/dist/{index-CRycrNfn.d.ts → index-Byp771zP.d.ts} +1 -1
- package/dist/{index-e1m3ZHgc.d.cts → index-C-3UXnHT.d.cts} +1 -1
- package/dist/{index-DTYIRT_v.d.cts → index-C56XZiDe.d.cts} +2 -2
- package/dist/{index-D11pGlaI.d.cts → index-CAV-3RpJ.d.cts} +2 -2
- package/dist/{index-D_DThl_J.d.cts → index-CAbHN_rP.d.cts} +1 -1
- package/dist/{index-BhLA9feT.d.ts → index-CEVzBWeB.d.ts} +2 -2
- package/dist/{index-Ci358GSC.d.cts → index-CM-i58FY.d.cts} +2 -2
- package/dist/{index-B9qJmmv3.d.cts → index-CQsqqEVz.d.cts} +1 -1
- package/dist/{index-C0tga1_x.d.ts → index-CijfwEWx.d.ts} +2 -2
- package/dist/{index-BwtIbzSV.d.cts → index-Ckil6miL.d.cts} +2 -2
- package/dist/{index-BokynmA4.d.cts → index-CpdnP-0y.d.cts} +1 -1
- package/dist/{index-BmLkcDlj.d.ts → index-CrlHFsiT.d.ts} +37 -17
- package/dist/{index-DCAuN9u5.d.cts → index-Czk3r0yA.d.cts} +37 -3
- package/dist/{index-C4N-dg5U.d.cts → index-D-B7U42V.d.cts} +2 -2
- package/dist/{index-CKcnuQ2c.d.ts → index-D-HZ7sP4.d.ts} +2 -2
- package/dist/{index-D6pwWiOc.d.cts → index-D7-RSD93.d.cts} +2 -2
- package/dist/{index-9mbs_PIG.d.ts → index-D9vBTuzo.d.ts} +2 -2
- package/dist/{index-C_qi0WlF.d.cts → index-DJNAWzcH.d.cts} +2 -2
- package/dist/{index-Ae6L8liv.d.ts → index-DJVQ-t07.d.ts} +2 -2
- package/dist/{index-D_d1erkR.d.ts → index-DKrIuF-r.d.ts} +2 -2
- package/dist/{index-DXz9uwcs.d.ts → index-DOU1Ee_k.d.ts} +1 -1
- package/dist/{index-D1E1tqHT.d.ts → index-DTDVDzhA.d.ts} +37 -3
- package/dist/{index-B5UR87KG.d.ts → index-DY2f2b9z.d.ts} +4 -2
- package/dist/{index-D8IyqHvT.d.cts → index-DeSsvHDD.d.cts} +4 -2
- package/dist/index-Di7OdwlO.d.ts +427 -0
- package/dist/{index-CzIWlnPp.d.ts → index-DqICM_I7.d.ts} +80 -7
- package/dist/{index-BOfHwQc1.d.ts → index-ML6vHKXK.d.ts} +1 -1
- package/dist/{index-DqtXA3yX.d.cts → index-UsU9ptzs.d.cts} +7 -4
- package/dist/{index-B46GWgk3.d.ts → index-Vz7KPfgz.d.ts} +1 -1
- package/dist/index.cjs +50 -50
- package/dist/index.d.cts +32 -32
- package/dist/index.d.ts +32 -32
- package/dist/index.js +1 -1
- package/dist/meta-BYqlATmg.d.ts +98 -0
- package/dist/meta-DreaEM_a.d.cts +98 -0
- package/dist/patterns/ai/browser.cjs +2 -2
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +21 -21
- package/dist/patterns/ai/index.d.cts +9 -9
- package/dist/patterns/ai/index.d.ts +9 -9
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +7 -7
- package/dist/patterns/audit/index.d.cts +5 -5
- package/dist/patterns/audit/index.d.ts +5 -5
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +7 -7
- package/dist/patterns/cqrs/index.d.cts +4 -4
- package/dist/patterns/cqrs/index.d.ts +4 -4
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +8 -8
- package/dist/patterns/demo-shell/index.d.cts +4 -4
- package/dist/patterns/demo-shell/index.d.ts +4 -4
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +7 -7
- package/dist/patterns/domain-templates/index.d.cts +3 -3
- package/dist/patterns/domain-templates/index.d.ts +3 -3
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +21 -21
- package/dist/patterns/graphspec/index.d.cts +3 -3
- package/dist/patterns/graphspec/index.d.ts +3 -3
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +7 -7
- package/dist/patterns/guarded-execution/index.d.cts +6 -6
- package/dist/patterns/guarded-execution/index.d.ts +6 -6
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +12 -12
- package/dist/patterns/harness/index.d.cts +8 -8
- package/dist/patterns/harness/index.d.ts +8 -8
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +7 -7
- package/dist/patterns/job-queue/index.d.cts +4 -4
- package/dist/patterns/job-queue/index.d.ts +4 -4
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +7 -7
- package/dist/patterns/lens/index.d.cts +4 -4
- package/dist/patterns/lens/index.d.ts +4 -4
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +7 -7
- package/dist/patterns/memory/index.d.cts +6 -4
- package/dist/patterns/memory/index.d.ts +6 -4
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +7 -7
- package/dist/patterns/messaging/index.d.cts +4 -4
- package/dist/patterns/messaging/index.d.ts +4 -4
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +7 -7
- package/dist/patterns/orchestration/index.d.cts +4 -4
- package/dist/patterns/orchestration/index.d.ts +4 -4
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.d.cts +5 -5
- package/dist/patterns/process/index.d.ts +5 -5
- package/dist/patterns/process/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +8 -8
- package/dist/patterns/reactive-layout/index.d.cts +4 -4
- package/dist/patterns/reactive-layout/index.d.ts +4 -4
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +7 -7
- package/dist/patterns/reduction/index.d.cts +3 -3
- package/dist/patterns/reduction/index.d.ts +3 -3
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +8 -8
- package/dist/patterns/refine-loop/index.d.cts +5 -5
- package/dist/patterns/refine-loop/index.d.ts +5 -5
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +4 -4
- package/dist/patterns/resilient-pipeline/index.d.ts +4 -4
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +14 -14
- package/dist/patterns/surface/index.d.cts +4 -4
- package/dist/patterns/surface/index.d.ts +4 -4
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{pipeline-graph-DX2Twdj-.d.ts → pipeline-graph-9JBbmRxA.d.ts} +2 -2
- package/dist/{pipeline-graph-BrrYGjuZ.d.cts → pipeline-graph-DuHpXSOn.d.cts} +2 -2
- package/dist/{reactive-layout-DrGjuwyC.d.cts → reactive-layout-BMLDB4Vd.d.cts} +1 -1
- package/dist/{reactive-layout-BDdngW56.d.ts → reactive-layout-D-tRiNhg.d.ts} +1 -1
- package/dist/{reactive-log-jirQsxMY.d.ts → reactive-log-BgWSA1fg.d.ts} +28 -1
- package/dist/{reactive-log-ScpWyqny.d.cts → reactive-log-C3IMAGpT.d.cts} +28 -1
- package/dist/resilience-LGBK236C.js +1 -0
- package/dist/{topology-tree-BI665P0L.d.ts → topology-tree-D47-nI6Z.d.ts} +1 -1
- package/dist/{topology-tree-BkhmMg2a.d.cts → topology-tree-jrZue3ao.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-533RQFF6.js +0 -1
- package/dist/chunk-6SVKZ7VI.js +0 -1
- package/dist/chunk-A5HZZYRK.js +0 -1
- package/dist/chunk-B4L5X2QO.js +0 -7
- package/dist/chunk-FJ6IEMOS.js +0 -1
- package/dist/chunk-G6Q3DUMJ.js +0 -1
- package/dist/chunk-GDDPCDLG.js +0 -1
- package/dist/chunk-GFOT6UBB.js +0 -1
- package/dist/chunk-JJTF75VS.js +0 -1
- package/dist/chunk-K2WYIVHM.js +0 -1
- package/dist/chunk-KTWBUJO5.js +0 -61
- package/dist/chunk-M27MVZCP.js +0 -1
- package/dist/chunk-NKKUUKPD.js +0 -43
- package/dist/chunk-QKBCTKH7.js +0 -1
- package/dist/chunk-WGST56ZH.js +0 -80
- package/dist/index-BCq12BqB.d.ts +0 -139
- package/dist/index-DbWwMWiB.d.cts +0 -139
- package/dist/meta-BGO6C7K9.d.cts +0 -41
- package/dist/meta-CC6EPdpK.d.ts +0 -41
- package/dist/resilience-OBU472D2.js +0 -1
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { a as Node } from './node-fSc-hCv8.cjs';
|
|
2
|
-
import { G as Graph } from './graph-CaNXUc3c.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Memory patterns (roadmap §4.3).
|
|
6
|
-
*
|
|
7
|
-
* Domain-layer helpers composed from GraphRefly primitives. `vectorIndex` uses
|
|
8
|
-
* an exact-search backend by default; an HNSW adapter can be injected as an
|
|
9
|
-
* optional dependency.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
type CollectionPolicy = "fifo" | "lru";
|
|
13
|
-
type VectorBackend = "flat" | "hnsw";
|
|
14
|
-
type LightCollectionEntry<T> = {
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly value: T;
|
|
17
|
-
readonly createdAtNs: number;
|
|
18
|
-
readonly lastAccessNs: number;
|
|
19
|
-
};
|
|
20
|
-
type LightCollectionOptions = {
|
|
21
|
-
name?: string;
|
|
22
|
-
maxSize?: number;
|
|
23
|
-
policy?: CollectionPolicy;
|
|
24
|
-
};
|
|
25
|
-
type LightCollectionBundle<T> = {
|
|
26
|
-
readonly entries: Node<ReadonlyMap<string, LightCollectionEntry<T>>>;
|
|
27
|
-
upsert: (id: string, value: T) => void;
|
|
28
|
-
remove: (id: string) => void;
|
|
29
|
-
clear: () => void;
|
|
30
|
-
get: (id: string) => T | undefined;
|
|
31
|
-
has: (id: string) => boolean;
|
|
32
|
-
};
|
|
33
|
-
type CollectionEntry<T> = LightCollectionEntry<T> & {
|
|
34
|
-
readonly baseScore: number;
|
|
35
|
-
};
|
|
36
|
-
type RankedCollectionEntry<T> = CollectionEntry<T> & {
|
|
37
|
-
readonly score: number;
|
|
38
|
-
};
|
|
39
|
-
type CollectionOptions<T> = {
|
|
40
|
-
maxSize?: number;
|
|
41
|
-
policy?: CollectionPolicy;
|
|
42
|
-
/**
|
|
43
|
-
* Produces a base score at insert/update time.
|
|
44
|
-
*/
|
|
45
|
-
score?: (value: T) => number;
|
|
46
|
-
/**
|
|
47
|
-
* Exponential decay rate per second. 0 disables decay.
|
|
48
|
-
*/
|
|
49
|
-
decayRate?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Minimum score floor after decay.
|
|
52
|
-
*/
|
|
53
|
-
minScore?: number;
|
|
54
|
-
};
|
|
55
|
-
type CollectionGraph<T> = Graph & {
|
|
56
|
-
upsert: (id: string, value: T, opts?: {
|
|
57
|
-
score?: number;
|
|
58
|
-
}) => void;
|
|
59
|
-
remove: (id: string) => void;
|
|
60
|
-
clear: () => void;
|
|
61
|
-
getItem: (id: string) => CollectionEntry<T> | undefined;
|
|
62
|
-
};
|
|
63
|
-
type VectorRecord<TMeta> = {
|
|
64
|
-
readonly id: string;
|
|
65
|
-
readonly vector: readonly number[];
|
|
66
|
-
readonly meta?: TMeta;
|
|
67
|
-
};
|
|
68
|
-
type VectorSearchResult<TMeta> = {
|
|
69
|
-
readonly id: string;
|
|
70
|
-
readonly score: number;
|
|
71
|
-
readonly meta?: TMeta;
|
|
72
|
-
};
|
|
73
|
-
type HnswAdapter<TMeta> = {
|
|
74
|
-
upsert: (id: string, vector: readonly number[], meta?: TMeta) => void;
|
|
75
|
-
remove: (id: string) => void;
|
|
76
|
-
clear: () => void;
|
|
77
|
-
search: (query: readonly number[], k: number) => ReadonlyArray<VectorSearchResult<TMeta>>;
|
|
78
|
-
};
|
|
79
|
-
type VectorIndexOptions<TMeta> = {
|
|
80
|
-
backend?: VectorBackend;
|
|
81
|
-
dimension?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Optional dependency seam for HNSW.
|
|
84
|
-
*/
|
|
85
|
-
hnswFactory?: () => HnswAdapter<TMeta>;
|
|
86
|
-
};
|
|
87
|
-
type VectorIndexBundle<TMeta> = {
|
|
88
|
-
readonly backend: VectorBackend;
|
|
89
|
-
readonly entries: Node<ReadonlyMap<string, VectorRecord<TMeta>>>;
|
|
90
|
-
upsert: (id: string, vector: readonly number[], meta?: TMeta) => void;
|
|
91
|
-
remove: (id: string) => void;
|
|
92
|
-
clear: () => void;
|
|
93
|
-
search: (query: readonly number[], k?: number) => ReadonlyArray<VectorSearchResult<TMeta>>;
|
|
94
|
-
};
|
|
95
|
-
type KnowledgeEdge<TRelation extends string = string> = {
|
|
96
|
-
readonly from: string;
|
|
97
|
-
readonly to: string;
|
|
98
|
-
readonly relation: TRelation;
|
|
99
|
-
readonly weight: number;
|
|
100
|
-
};
|
|
101
|
-
type KnowledgeGraphGraph<TEntity, TRelation extends string = string> = Graph & {
|
|
102
|
-
upsertEntity: (id: string, value: TEntity) => void;
|
|
103
|
-
removeEntity: (id: string) => void;
|
|
104
|
-
link: (from: string, to: string, relation: TRelation, weight?: number) => void;
|
|
105
|
-
unlink: (from: string, to: string, relation?: TRelation) => void;
|
|
106
|
-
related: (id: string, relation?: TRelation) => ReadonlyArray<KnowledgeEdge<TRelation>>;
|
|
107
|
-
};
|
|
108
|
-
declare function decay(baseScore: number, ageSeconds: number, ratePerSecond: number, minScore?: number): number;
|
|
109
|
-
declare function lightCollection<T>(opts?: LightCollectionOptions): LightCollectionBundle<T>;
|
|
110
|
-
declare function collection<T>(name: string, opts?: CollectionOptions<T>): CollectionGraph<T>;
|
|
111
|
-
declare function vectorIndex<TMeta>(opts?: VectorIndexOptions<TMeta>): VectorIndexBundle<TMeta>;
|
|
112
|
-
declare function knowledgeGraph<TEntity, TRelation extends string = string>(name: string): KnowledgeGraphGraph<TEntity, TRelation>;
|
|
113
|
-
|
|
114
|
-
type index_CollectionEntry<T> = CollectionEntry<T>;
|
|
115
|
-
type index_CollectionGraph<T> = CollectionGraph<T>;
|
|
116
|
-
type index_CollectionOptions<T> = CollectionOptions<T>;
|
|
117
|
-
type index_CollectionPolicy = CollectionPolicy;
|
|
118
|
-
type index_HnswAdapter<TMeta> = HnswAdapter<TMeta>;
|
|
119
|
-
type index_KnowledgeEdge<TRelation extends string = string> = KnowledgeEdge<TRelation>;
|
|
120
|
-
type index_KnowledgeGraphGraph<TEntity, TRelation extends string = string> = KnowledgeGraphGraph<TEntity, TRelation>;
|
|
121
|
-
type index_LightCollectionBundle<T> = LightCollectionBundle<T>;
|
|
122
|
-
type index_LightCollectionEntry<T> = LightCollectionEntry<T>;
|
|
123
|
-
type index_LightCollectionOptions = LightCollectionOptions;
|
|
124
|
-
type index_RankedCollectionEntry<T> = RankedCollectionEntry<T>;
|
|
125
|
-
type index_VectorBackend = VectorBackend;
|
|
126
|
-
type index_VectorIndexBundle<TMeta> = VectorIndexBundle<TMeta>;
|
|
127
|
-
type index_VectorIndexOptions<TMeta> = VectorIndexOptions<TMeta>;
|
|
128
|
-
type index_VectorRecord<TMeta> = VectorRecord<TMeta>;
|
|
129
|
-
type index_VectorSearchResult<TMeta> = VectorSearchResult<TMeta>;
|
|
130
|
-
declare const index_collection: typeof collection;
|
|
131
|
-
declare const index_decay: typeof decay;
|
|
132
|
-
declare const index_knowledgeGraph: typeof knowledgeGraph;
|
|
133
|
-
declare const index_lightCollection: typeof lightCollection;
|
|
134
|
-
declare const index_vectorIndex: typeof vectorIndex;
|
|
135
|
-
declare namespace index {
|
|
136
|
-
export { type index_CollectionEntry as CollectionEntry, type index_CollectionGraph as CollectionGraph, type index_CollectionOptions as CollectionOptions, type index_CollectionPolicy as CollectionPolicy, type index_HnswAdapter as HnswAdapter, type index_KnowledgeEdge as KnowledgeEdge, type index_KnowledgeGraphGraph as KnowledgeGraphGraph, type index_LightCollectionBundle as LightCollectionBundle, type index_LightCollectionEntry as LightCollectionEntry, type index_LightCollectionOptions as LightCollectionOptions, type index_RankedCollectionEntry as RankedCollectionEntry, type index_VectorBackend as VectorBackend, type index_VectorIndexBundle as VectorIndexBundle, type index_VectorIndexOptions as VectorIndexOptions, type index_VectorRecord as VectorRecord, type index_VectorSearchResult as VectorSearchResult, index_collection as collection, index_decay as decay, index_knowledgeGraph as knowledgeGraph, index_lightCollection as lightCollection, index_vectorIndex as vectorIndex };
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export { type CollectionEntry as C, type HnswAdapter as H, type KnowledgeGraphGraph as K, type LightCollectionBundle as L, type RankedCollectionEntry as R, type VectorSearchResult as V, type VectorIndexBundle as a, type CollectionGraph as b, type CollectionOptions as c, type CollectionPolicy as d, type KnowledgeEdge as e, type LightCollectionEntry as f, type LightCollectionOptions as g, type VectorBackend as h, index as i, type VectorIndexOptions as j, type VectorRecord as k, collection as l, decay as m, knowledgeGraph as n, lightCollection as o, vectorIndex as v };
|
package/dist/meta-BGO6C7K9.d.cts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { e as NodeDescribeKind, a as Node, A as Actor } from './node-fSc-hCv8.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* JSON-shaped slice of a node for `Graph.describe()`
|
|
5
|
-
* (GRAPHREFLY-SPEC §3.6, Appendix B).
|
|
6
|
-
*/
|
|
7
|
-
type DescribeNodeOutput = {
|
|
8
|
-
type: NodeDescribeKind;
|
|
9
|
-
status?: Node["status"];
|
|
10
|
-
deps: string[];
|
|
11
|
-
meta?: Record<string, unknown>;
|
|
12
|
-
name?: string;
|
|
13
|
-
value?: unknown;
|
|
14
|
-
/** True when the node is in `"sentinel"` state (no value ever). */
|
|
15
|
-
sentinel?: boolean;
|
|
16
|
-
v?: {
|
|
17
|
-
id: string;
|
|
18
|
-
version: number;
|
|
19
|
-
cid?: string;
|
|
20
|
-
prev?: string | null;
|
|
21
|
-
};
|
|
22
|
-
guard?: string;
|
|
23
|
-
lastMutation?: Readonly<{
|
|
24
|
-
actor: Actor;
|
|
25
|
-
timestamp_ns: number;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Latest annotation attached via `graph.trace(path, annotation)` or via
|
|
29
|
-
* `graph.add(node, { name: path, annotation })`, when present. Populated by
|
|
30
|
-
* `Graph.describe` only — `describeNode` has no graph context.
|
|
31
|
-
*/
|
|
32
|
-
annotation?: string;
|
|
33
|
-
};
|
|
34
|
-
/** Detail level for progressive disclosure (Phase 3.3b). */
|
|
35
|
-
type DescribeDetail = "minimal" | "standard" | "full";
|
|
36
|
-
/** Valid field names for `describe({ fields: [...] })`. */
|
|
37
|
-
type DescribeField = "type" | "status" | "value" | "deps" | "meta" | "v" | "guard" | "lastMutation" | `meta.${string}`;
|
|
38
|
-
/** Resolve which fields to include based on detail level or explicit field list. */
|
|
39
|
-
declare function resolveDescribeFields(detail?: DescribeDetail, fields?: readonly DescribeField[]): Set<string> | null;
|
|
40
|
-
|
|
41
|
-
export { type DescribeDetail as D, type DescribeField as a, type DescribeNodeOutput as b, resolveDescribeFields as r };
|
package/dist/meta-CC6EPdpK.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { e as NodeDescribeKind, a as Node, A as Actor } from './node-fSc-hCv8.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* JSON-shaped slice of a node for `Graph.describe()`
|
|
5
|
-
* (GRAPHREFLY-SPEC §3.6, Appendix B).
|
|
6
|
-
*/
|
|
7
|
-
type DescribeNodeOutput = {
|
|
8
|
-
type: NodeDescribeKind;
|
|
9
|
-
status?: Node["status"];
|
|
10
|
-
deps: string[];
|
|
11
|
-
meta?: Record<string, unknown>;
|
|
12
|
-
name?: string;
|
|
13
|
-
value?: unknown;
|
|
14
|
-
/** True when the node is in `"sentinel"` state (no value ever). */
|
|
15
|
-
sentinel?: boolean;
|
|
16
|
-
v?: {
|
|
17
|
-
id: string;
|
|
18
|
-
version: number;
|
|
19
|
-
cid?: string;
|
|
20
|
-
prev?: string | null;
|
|
21
|
-
};
|
|
22
|
-
guard?: string;
|
|
23
|
-
lastMutation?: Readonly<{
|
|
24
|
-
actor: Actor;
|
|
25
|
-
timestamp_ns: number;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Latest annotation attached via `graph.trace(path, annotation)` or via
|
|
29
|
-
* `graph.add(node, { name: path, annotation })`, when present. Populated by
|
|
30
|
-
* `Graph.describe` only — `describeNode` has no graph context.
|
|
31
|
-
*/
|
|
32
|
-
annotation?: string;
|
|
33
|
-
};
|
|
34
|
-
/** Detail level for progressive disclosure (Phase 3.3b). */
|
|
35
|
-
type DescribeDetail = "minimal" | "standard" | "full";
|
|
36
|
-
/** Valid field names for `describe({ fields: [...] })`. */
|
|
37
|
-
type DescribeField = "type" | "status" | "value" | "deps" | "meta" | "v" | "guard" | "lastMutation" | `meta.${string}`;
|
|
38
|
-
/** Resolve which fields to include based on detail level or explicit field list. */
|
|
39
|
-
declare function resolveDescribeFields(detail?: DescribeDetail, fields?: readonly DescribeField[]): Set<string> | null;
|
|
40
|
-
|
|
41
|
-
export { type DescribeDetail as D, type DescribeField as a, type DescribeNodeOutput as b, resolveDescribeFields as r };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k}from"./chunk-A5HZZYRK.js";import"./chunk-ESMPEKEV.js";import"./chunk-4VVTGLXJ.js";import"./chunk-MQZWA3DF.js";import"./chunk-LYCLF26R.js";import"./chunk-CK2E7BTU.js";import"./chunk-QYADASLV.js";export{b as CircuitOpenError,f as RateLimiterOverflowError,i as TimeoutError,c as circuitBreaker,j as fallback,g as rateLimiter,a as retry,k as timeout,e as tokenBucket,d as withBreaker,h as withStatus};
|