@graphrefly/graphrefly 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/chunk-44HD4BTA.js +47 -0
- package/dist/chunk-44HD4BTA.js.map +1 -0
- package/dist/chunk-7TAQJHQV.js +103 -0
- package/dist/chunk-7TAQJHQV.js.map +1 -0
- package/dist/chunk-BLD3IFYF.js +6827 -0
- package/dist/chunk-BLD3IFYF.js.map +1 -0
- package/dist/{chunk-ZTCDY5NQ.js → chunk-EQUZ5NLD.js} +34 -45
- package/dist/chunk-EQUZ5NLD.js.map +1 -0
- package/dist/{chunk-VOQFK7YN.js → chunk-IR3KMOLX.js} +358 -128
- package/dist/chunk-IR3KMOLX.js.map +1 -0
- package/dist/{chunk-XWBVAO2R.js → chunk-MQBQOFDS.js} +20 -11
- package/dist/chunk-MQBQOFDS.js.map +1 -0
- package/dist/chunk-NXC35KC5.js +2417 -0
- package/dist/chunk-NXC35KC5.js.map +1 -0
- package/dist/chunk-QA3RP5NH.js +2234 -0
- package/dist/chunk-QA3RP5NH.js.map +1 -0
- package/dist/chunk-RHI3GHZW.js +115 -0
- package/dist/chunk-RHI3GHZW.js.map +1 -0
- package/dist/{chunk-7IGHIFTT.js → chunk-TH6COGOP.js} +15 -26
- package/dist/chunk-TH6COGOP.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +3366 -2259
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +6 -4
- package/dist/compat/nestjs/index.d.ts +6 -4
- package/dist/compat/nestjs/index.js +8 -8
- package/dist/core/index.cjs +1611 -1218
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +3 -2
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.js +37 -34
- package/dist/extra/index.cjs +7387 -6089
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +4 -4
- package/dist/extra/index.d.ts +4 -4
- package/dist/extra/index.js +57 -30
- package/dist/graph/index.cjs +3107 -2216
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +5 -3
- package/dist/graph/index.d.ts +5 -3
- package/dist/graph/index.js +24 -11
- package/dist/graph-DFr0diXB.d.ts +1128 -0
- package/dist/graph-ab1yPwIB.d.cts +1128 -0
- package/dist/{index-8a605sg9.d.ts → index-BHm3Ba5q.d.ts} +2 -2
- package/dist/{index-DuN3bhtm.d.ts → index-BbYZma8G.d.ts} +1697 -586
- package/dist/{index-SFzE_KTa.d.cts → index-BvWfZCTt.d.cts} +1697 -586
- package/dist/index-C9z6rU9P.d.cts +388 -0
- package/dist/{index-BjtlNirP.d.cts → index-D36MAQ3f.d.ts} +4 -4
- package/dist/{index-VHA43cGP.d.cts → index-DLE1Sp-L.d.cts} +2 -2
- package/dist/{index-CgSiUouz.d.ts → index-DrJq9B1T.d.cts} +4 -4
- package/dist/index-DsGxLfwL.d.ts +315 -0
- package/dist/index-Dy04P4W3.d.cts +315 -0
- package/dist/index-HdJx_BjO.d.ts +388 -0
- package/dist/index.cjs +9781 -7878
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -37
- package/dist/index.d.ts +214 -37
- package/dist/index.js +905 -638
- package/dist/index.js.map +1 -1
- package/dist/meta--fr9sxRM.d.cts +41 -0
- package/dist/meta-n3FoVWML.d.ts +41 -0
- package/dist/node-C5UD5MGq.d.cts +1146 -0
- package/dist/node-C5UD5MGq.d.ts +1146 -0
- package/dist/{observable-DcBwQY7t.d.ts → observable-CQRBtEbq.d.ts} +1 -1
- package/dist/{observable-C8Kx_O6k.d.cts → observable-DWydVy5b.d.cts} +1 -1
- package/dist/patterns/reactive-layout/index.cjs +3102 -2132
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +5 -3
- package/dist/patterns/reactive-layout/index.d.ts +5 -3
- package/dist/patterns/reactive-layout/index.js +5 -4
- package/dist/storage-Bew05Xy6.d.cts +182 -0
- package/dist/storage-C9fZfMfM.d.ts +182 -0
- package/package.json +1 -1
- package/dist/chunk-2UDLYZHT.js +0 -2117
- package/dist/chunk-2UDLYZHT.js.map +0 -1
- package/dist/chunk-4MQ2J6IG.js +0 -1631
- package/dist/chunk-4MQ2J6IG.js.map +0 -1
- package/dist/chunk-7IGHIFTT.js.map +0 -1
- package/dist/chunk-DOSLSFKL.js +0 -162
- package/dist/chunk-DOSLSFKL.js.map +0 -1
- package/dist/chunk-ECN37NVS.js +0 -6227
- package/dist/chunk-ECN37NVS.js.map +0 -1
- package/dist/chunk-G66H6ZRK.js +0 -111
- package/dist/chunk-G66H6ZRK.js.map +0 -1
- package/dist/chunk-VOQFK7YN.js.map +0 -1
- package/dist/chunk-WZ2Z2CRV.js +0 -32
- package/dist/chunk-WZ2Z2CRV.js.map +0 -1
- package/dist/chunk-XWBVAO2R.js.map +0 -1
- package/dist/chunk-ZTCDY5NQ.js.map +0 -1
- package/dist/graph-KsTe57nI.d.cts +0 -750
- package/dist/graph-mILUUqW8.d.ts +0 -750
- package/dist/index-B2SvPEbc.d.ts +0 -257
- package/dist/index-BHfg_Ez3.d.ts +0 -629
- package/dist/index-Bc_diYYJ.d.cts +0 -629
- package/dist/index-UudxGnzc.d.cts +0 -257
- package/dist/meta-BnG7XAaE.d.cts +0 -778
- package/dist/meta-BnG7XAaE.d.ts +0 -778
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { k as GraphReFlyConfig } from './node-C5UD5MGq.js';
|
|
2
|
+
import { r as GraphPersistSnapshot, g as GraphCheckpointRecord, D as DescribeFilter, e as GRAPH_META_SEGMENT, G as Graph, f as GraphActorOptions, b as GraphAttachStorageOptions, h as GraphDescribeOptions, i as GraphDescribeOutput, j as GraphDiagramDirection, k as GraphDiagramOptions, l as GraphDiffChange, m as GraphDiffResult, n as GraphFactoryContext, o as GraphNodeFactory, p as GraphObserveAll, q as GraphObserveOne, a as GraphOptions, d as GraphProfileOptions, c as GraphProfileResult, s as GraphVersionChange, t as GraphWALDiff, N as NodeProfile, O as ObserveDetail, u as ObserveEvent, v as ObserveOptions, w as ObserveResult, x as ObserveTheme, y as ObserveThemeName, R as ReachableDirection, z as ReachableOptions, T as TraceEntry, A as diffForWAL, B as graphProfile, C as reachable } from './graph-DFr0diXB.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Approximate in-memory size estimation for arbitrary JS values.
|
|
6
|
+
*
|
|
7
|
+
* Iterative walk with cycle detection via `WeakSet`. V8-tuned overhead
|
|
8
|
+
* heuristics. Not exact — approximate enough for profiling and hotspot
|
|
9
|
+
* detection.
|
|
10
|
+
*
|
|
11
|
+
* Use cases: `graphProfile` (per-node value size), reactive data structure
|
|
12
|
+
* memory audits, heuristic cache admission.
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
/** Approximate per-type overhead in bytes (V8 heuristics). */
|
|
17
|
+
declare const OVERHEAD: {
|
|
18
|
+
readonly object: 56;
|
|
19
|
+
readonly array: 64;
|
|
20
|
+
readonly string: 40;
|
|
21
|
+
readonly number: 8;
|
|
22
|
+
readonly boolean: 4;
|
|
23
|
+
readonly null: 0;
|
|
24
|
+
readonly undefined: 0;
|
|
25
|
+
readonly symbol: 40;
|
|
26
|
+
readonly bigint: 16;
|
|
27
|
+
readonly function: 120;
|
|
28
|
+
readonly map: 72;
|
|
29
|
+
readonly set: 72;
|
|
30
|
+
readonly mapEntry: 40;
|
|
31
|
+
readonly setEntry: 24;
|
|
32
|
+
readonly date: 24;
|
|
33
|
+
readonly regexp: 48;
|
|
34
|
+
readonly error: 64;
|
|
35
|
+
readonly url: 80;
|
|
36
|
+
readonly promise: 48;
|
|
37
|
+
readonly weakmap: 40;
|
|
38
|
+
readonly weakset: 40;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Optional user hook. Declare a `sizeof` symbol key on any object to return
|
|
42
|
+
* a precomputed size (in bytes); the walker will honor it and skip recursion.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const SIZEOF = Symbol.for("sizeof");
|
|
47
|
+
* class MyCache { [SIZEOF]() { return this.bytes; } }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare const SIZEOF_SYMBOL: unique symbol;
|
|
51
|
+
/**
|
|
52
|
+
* Estimate the approximate retained memory (in bytes) of a JS value.
|
|
53
|
+
*
|
|
54
|
+
* Handles primitives, plain objects, arrays, Maps, Sets, ArrayBuffers +
|
|
55
|
+
* TypedArrays (shared-buffer dedup), Date, RegExp, Error, URL, Promise,
|
|
56
|
+
* WeakMap, WeakSet, nested combinations. Cyclic refs are counted once.
|
|
57
|
+
*
|
|
58
|
+
* @param value - The value to measure.
|
|
59
|
+
* @returns Approximate size in bytes.
|
|
60
|
+
*/
|
|
61
|
+
declare function sizeof(value: unknown): number;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* GraphCodec — pluggable serialization for graph snapshots (Phase 8.6).
|
|
65
|
+
*
|
|
66
|
+
* Design reference: `archive/docs/SESSION-serialization-memory-footprint.md`
|
|
67
|
+
*
|
|
68
|
+
* The codec interface decouples snapshot format from graph internals.
|
|
69
|
+
* Default is JSON (current behavior). DAG-CBOR and compressed variants
|
|
70
|
+
* ship as optional codecs. FlatBuffers/Arrow for advanced tiers.
|
|
71
|
+
*
|
|
72
|
+
* Tiered representation:
|
|
73
|
+
* HOT — JS objects (live propagation, no codec involved)
|
|
74
|
+
* WARM — DAG-CBOR in-memory buffer (lazy hydration, delta checkpoints)
|
|
75
|
+
* COLD — Arrow/Parquet (bulk storage, ML pipelines, archival)
|
|
76
|
+
* PEEK — FlatBuffers (zero-copy read from dormant graph)
|
|
77
|
+
*
|
|
78
|
+
* Wire-protocol envelope (v1):
|
|
79
|
+
*
|
|
80
|
+
* [envelope_v=1: u8][name_len: u8][name: utf8][codec_v: u16 BE][payload: rest]
|
|
81
|
+
*
|
|
82
|
+
* `graph.snapshot({format: "bytes", codec: name})` wraps the codec's
|
|
83
|
+
* `encode` output in this envelope; `Graph.decode(bytes)` auto-dispatches
|
|
84
|
+
* via the config's codec registry — no out-of-band content-type needed.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Encode/decode graph snapshots to/from binary.
|
|
89
|
+
*
|
|
90
|
+
* Implementations must be deterministic: `encode(x)` always produces the
|
|
91
|
+
* same bytes for the same input. This is critical for CID computation (V1)
|
|
92
|
+
* and snapshot hash-comparison.
|
|
93
|
+
*/
|
|
94
|
+
interface GraphCodec {
|
|
95
|
+
/** Human-readable name; used as the lookup key in the envelope and config registry. */
|
|
96
|
+
readonly name: string;
|
|
97
|
+
/**
|
|
98
|
+
* Codec version. Bumps on breaking wire format changes; `decode` receives
|
|
99
|
+
* this via the envelope so codecs can dispatch on historical layouts.
|
|
100
|
+
* Must fit in a `u16` (0–65535).
|
|
101
|
+
*/
|
|
102
|
+
readonly version: number;
|
|
103
|
+
/** MIME-like content type identifier (e.g. `"application/dag-cbor+zstd"`). */
|
|
104
|
+
readonly contentType: string;
|
|
105
|
+
/** Encode a snapshot to binary. */
|
|
106
|
+
encode(snapshot: GraphPersistSnapshot): Uint8Array;
|
|
107
|
+
/**
|
|
108
|
+
* Decode binary back to a snapshot.
|
|
109
|
+
*
|
|
110
|
+
* `codecVersion` is the version that produced `buffer` (read from the
|
|
111
|
+
* envelope). Omit when the caller is sure of the version (tests, one-shot
|
|
112
|
+
* round-trips). Codecs that support multiple historical layouts dispatch
|
|
113
|
+
* on this value.
|
|
114
|
+
*
|
|
115
|
+
* For lazy codecs, this may return a proxy that decodes nodes on access
|
|
116
|
+
* (see {@link LazyGraphCodec}).
|
|
117
|
+
*/
|
|
118
|
+
decode(buffer: Uint8Array, codecVersion?: number): GraphPersistSnapshot;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Extended codec that supports lazy (on-demand) node decoding.
|
|
122
|
+
*
|
|
123
|
+
* `decodeLazy` returns a snapshot where `nodes` is a Proxy — individual
|
|
124
|
+
* nodes are decoded only when accessed. This enables near-zero cold-start
|
|
125
|
+
* for large graphs (decode envelope + topology, skip node values until read).
|
|
126
|
+
*/
|
|
127
|
+
interface LazyGraphCodec extends GraphCodec {
|
|
128
|
+
/** Decode envelope and topology; defer node value decoding to access time. */
|
|
129
|
+
decodeLazy(buffer: Uint8Array, codecVersion?: number): GraphPersistSnapshot;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* WAL entry. Unified with {@link GraphCheckpointRecord} — every record
|
|
133
|
+
* already carries `mode` / `seq` / `timestamp_ns` / `format_version`, so the
|
|
134
|
+
* WAL is just an ordered list of records. `replayWAL` walks this list.
|
|
135
|
+
*/
|
|
136
|
+
type WALEntry = GraphCheckpointRecord;
|
|
137
|
+
/**
|
|
138
|
+
* Policy for evicting dormant subgraphs to reduce memory.
|
|
139
|
+
*
|
|
140
|
+
* When a subgraph hasn't propagated for `idleTimeoutMs`, it is serialized
|
|
141
|
+
* using the graph's codec and JS objects are released. Re-hydrated on next
|
|
142
|
+
* access (read, propagation, describe).
|
|
143
|
+
*/
|
|
144
|
+
interface EvictionPolicy {
|
|
145
|
+
/** Milliseconds of inactivity before eviction. */
|
|
146
|
+
idleTimeoutMs: number;
|
|
147
|
+
/** Codec to use for serializing evicted subgraphs (default: graph's codec). */
|
|
148
|
+
codec?: GraphCodec;
|
|
149
|
+
}
|
|
150
|
+
/** Metadata about an evicted subgraph, exposed via describe(). */
|
|
151
|
+
interface EvictedSubgraphInfo {
|
|
152
|
+
/** True if currently evicted (serialized, JS objects released). */
|
|
153
|
+
evicted: true;
|
|
154
|
+
/** Wall-clock ns of last propagation before eviction. */
|
|
155
|
+
lastActiveNs: bigint;
|
|
156
|
+
/** Size of serialized buffer in bytes. */
|
|
157
|
+
serializedBytes: number;
|
|
158
|
+
/** Codec used for serialization. */
|
|
159
|
+
codecName: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Default JSON codec. Wraps `JSON.stringify`/`JSON.parse` with deterministic
|
|
163
|
+
* key ordering (matching current `snapshot()` behavior).
|
|
164
|
+
*/
|
|
165
|
+
declare const JsonCodec: GraphCodec;
|
|
166
|
+
/**
|
|
167
|
+
* Create a DAG-CBOR codec.
|
|
168
|
+
*
|
|
169
|
+
* Requires `@ipld/dag-cbor` as a peer dependency. ~40-50% smaller than JSON,
|
|
170
|
+
* deterministic encoding (required for V1 CID), CID links as native type.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```ts
|
|
174
|
+
* import * as dagCbor from "@ipld/dag-cbor";
|
|
175
|
+
* const codec = createDagCborCodec(dagCbor);
|
|
176
|
+
* config.registerCodec(codec);
|
|
177
|
+
* const bytes = graph.snapshot({ format: "bytes", codec: "dag-cbor" });
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
declare function createDagCborCodec(dagCbor: {
|
|
181
|
+
encode: (value: unknown) => Uint8Array;
|
|
182
|
+
decode: (bytes: Uint8Array) => unknown;
|
|
183
|
+
}): GraphCodec;
|
|
184
|
+
/**
|
|
185
|
+
* Create a DAG-CBOR + zstd codec. ~80-90% smaller than JSON.
|
|
186
|
+
*
|
|
187
|
+
* Requires `@ipld/dag-cbor` and a zstd implementation (e.g. `fzstd` for
|
|
188
|
+
* browser, `node:zlib` for Node.js).
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```ts
|
|
192
|
+
* import * as dagCbor from "@ipld/dag-cbor";
|
|
193
|
+
* import { compressSync, decompressSync } from "fzstd";
|
|
194
|
+
* const codec = createDagCborZstdCodec(dagCbor, { compressSync, decompressSync });
|
|
195
|
+
* config.registerCodec(codec);
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
declare function createDagCborZstdCodec(dagCbor: {
|
|
199
|
+
encode: (value: unknown) => Uint8Array;
|
|
200
|
+
decode: (bytes: Uint8Array) => unknown;
|
|
201
|
+
}, zstd: {
|
|
202
|
+
compressSync: (data: Uint8Array) => Uint8Array;
|
|
203
|
+
decompressSync: (data: Uint8Array) => Uint8Array;
|
|
204
|
+
}): GraphCodec;
|
|
205
|
+
/** Current envelope format version. Bump on breaking layout changes. */
|
|
206
|
+
declare const ENVELOPE_VERSION = 1;
|
|
207
|
+
/**
|
|
208
|
+
* Prepend the v1 envelope to `payload` identifying `codec`. The resulting
|
|
209
|
+
* bytes are self-describing — any caller with access to the registering
|
|
210
|
+
* {@link GraphReFlyConfig} can {@link decodeEnvelope} without knowing the
|
|
211
|
+
* codec up front.
|
|
212
|
+
*
|
|
213
|
+
* Layout:
|
|
214
|
+
* `[envelope_v=1: u8][name_len: u8][name: utf8][codec_v: u16 BE][payload: rest]`
|
|
215
|
+
*
|
|
216
|
+
* @throws If `codec.name` encodes to more than 255 UTF-8 bytes or
|
|
217
|
+
* `codec.version` doesn't fit in a u16.
|
|
218
|
+
*/
|
|
219
|
+
declare function encodeEnvelope(codec: Pick<GraphCodec, "name" | "version">, payload: Uint8Array): Uint8Array;
|
|
220
|
+
/**
|
|
221
|
+
* Inverse of {@link encodeEnvelope}. Reads the header, resolves the codec
|
|
222
|
+
* via `config.lookupCodec(name)`, and returns the codec + its version + the
|
|
223
|
+
* inner payload slice. The caller feeds `payload` to `codec.decode(payload,
|
|
224
|
+
* codecVersion)` — or uses {@link Graph.decode} which does both steps.
|
|
225
|
+
*
|
|
226
|
+
* @throws If the envelope is truncated, the version is unsupported, or the
|
|
227
|
+
* named codec isn't registered on `config`.
|
|
228
|
+
*/
|
|
229
|
+
declare function decodeEnvelope(bytes: Uint8Array, config: GraphReFlyConfig): {
|
|
230
|
+
codec: GraphCodec;
|
|
231
|
+
codecVersion: number;
|
|
232
|
+
payload: Uint8Array;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Register the built-in {@link JsonCodec} on a config. Called once on
|
|
236
|
+
* `defaultConfig` at module load so `graph.snapshot({format: "bytes", codec:
|
|
237
|
+
* "json"})` works out of the box. Test / isolated configs should call this
|
|
238
|
+
* manually before the first node is created.
|
|
239
|
+
*/
|
|
240
|
+
declare function registerBuiltinCodecs(config: GraphReFlyConfig): void;
|
|
241
|
+
/**
|
|
242
|
+
* Reconstruct a snapshot from a WAL (sequence of {@link GraphCheckpointRecord}s).
|
|
243
|
+
*
|
|
244
|
+
* - Must start with a `"full"` record carrying a baseline snapshot — that's
|
|
245
|
+
* the anchor {@link Graph.attachStorage} always emits on the first flush
|
|
246
|
+
* of any tier (and every `compactEvery`-th flush thereafter).
|
|
247
|
+
* - Subsequent `"full"` entries (compaction points) **replace** the result
|
|
248
|
+
* wholesale.
|
|
249
|
+
* - `"diff"` entries roll forward by applying the structural diff —
|
|
250
|
+
* added nodes (via `nodesAddedFull`), removed nodes, and changed fields
|
|
251
|
+
* are reflected into the accumulated snapshot.
|
|
252
|
+
*
|
|
253
|
+
* Validates monotonic `seq` progression across entries.
|
|
254
|
+
*/
|
|
255
|
+
declare function replayWAL(entries: readonly WALEntry[]): GraphPersistSnapshot;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Graph container: registry, wiring, introspection (Phase 1).
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
declare const index_DescribeFilter: typeof DescribeFilter;
|
|
262
|
+
declare const index_ENVELOPE_VERSION: typeof ENVELOPE_VERSION;
|
|
263
|
+
type index_EvictedSubgraphInfo = EvictedSubgraphInfo;
|
|
264
|
+
type index_EvictionPolicy = EvictionPolicy;
|
|
265
|
+
declare const index_GRAPH_META_SEGMENT: typeof GRAPH_META_SEGMENT;
|
|
266
|
+
declare const index_Graph: typeof Graph;
|
|
267
|
+
declare const index_GraphActorOptions: typeof GraphActorOptions;
|
|
268
|
+
declare const index_GraphAttachStorageOptions: typeof GraphAttachStorageOptions;
|
|
269
|
+
declare const index_GraphCheckpointRecord: typeof GraphCheckpointRecord;
|
|
270
|
+
type index_GraphCodec = GraphCodec;
|
|
271
|
+
declare const index_GraphDescribeOptions: typeof GraphDescribeOptions;
|
|
272
|
+
declare const index_GraphDescribeOutput: typeof GraphDescribeOutput;
|
|
273
|
+
declare const index_GraphDiagramDirection: typeof GraphDiagramDirection;
|
|
274
|
+
declare const index_GraphDiagramOptions: typeof GraphDiagramOptions;
|
|
275
|
+
declare const index_GraphDiffChange: typeof GraphDiffChange;
|
|
276
|
+
declare const index_GraphDiffResult: typeof GraphDiffResult;
|
|
277
|
+
declare const index_GraphFactoryContext: typeof GraphFactoryContext;
|
|
278
|
+
declare const index_GraphNodeFactory: typeof GraphNodeFactory;
|
|
279
|
+
declare const index_GraphObserveAll: typeof GraphObserveAll;
|
|
280
|
+
declare const index_GraphObserveOne: typeof GraphObserveOne;
|
|
281
|
+
declare const index_GraphOptions: typeof GraphOptions;
|
|
282
|
+
declare const index_GraphPersistSnapshot: typeof GraphPersistSnapshot;
|
|
283
|
+
declare const index_GraphProfileOptions: typeof GraphProfileOptions;
|
|
284
|
+
declare const index_GraphProfileResult: typeof GraphProfileResult;
|
|
285
|
+
declare const index_GraphVersionChange: typeof GraphVersionChange;
|
|
286
|
+
declare const index_GraphWALDiff: typeof GraphWALDiff;
|
|
287
|
+
declare const index_JsonCodec: typeof JsonCodec;
|
|
288
|
+
type index_LazyGraphCodec = LazyGraphCodec;
|
|
289
|
+
declare const index_NodeProfile: typeof NodeProfile;
|
|
290
|
+
declare const index_ObserveDetail: typeof ObserveDetail;
|
|
291
|
+
declare const index_ObserveEvent: typeof ObserveEvent;
|
|
292
|
+
declare const index_ObserveOptions: typeof ObserveOptions;
|
|
293
|
+
declare const index_ObserveResult: typeof ObserveResult;
|
|
294
|
+
declare const index_ObserveTheme: typeof ObserveTheme;
|
|
295
|
+
declare const index_ObserveThemeName: typeof ObserveThemeName;
|
|
296
|
+
declare const index_ReachableDirection: typeof ReachableDirection;
|
|
297
|
+
declare const index_ReachableOptions: typeof ReachableOptions;
|
|
298
|
+
declare const index_SIZEOF_SYMBOL: typeof SIZEOF_SYMBOL;
|
|
299
|
+
declare const index_TraceEntry: typeof TraceEntry;
|
|
300
|
+
type index_WALEntry = WALEntry;
|
|
301
|
+
declare const index_createDagCborCodec: typeof createDagCborCodec;
|
|
302
|
+
declare const index_createDagCborZstdCodec: typeof createDagCborZstdCodec;
|
|
303
|
+
declare const index_decodeEnvelope: typeof decodeEnvelope;
|
|
304
|
+
declare const index_diffForWAL: typeof diffForWAL;
|
|
305
|
+
declare const index_encodeEnvelope: typeof encodeEnvelope;
|
|
306
|
+
declare const index_graphProfile: typeof graphProfile;
|
|
307
|
+
declare const index_reachable: typeof reachable;
|
|
308
|
+
declare const index_registerBuiltinCodecs: typeof registerBuiltinCodecs;
|
|
309
|
+
declare const index_replayWAL: typeof replayWAL;
|
|
310
|
+
declare const index_sizeof: typeof sizeof;
|
|
311
|
+
declare namespace index {
|
|
312
|
+
export { index_DescribeFilter as DescribeFilter, index_ENVELOPE_VERSION as ENVELOPE_VERSION, type index_EvictedSubgraphInfo as EvictedSubgraphInfo, type index_EvictionPolicy as EvictionPolicy, index_GRAPH_META_SEGMENT as GRAPH_META_SEGMENT, index_Graph as Graph, index_GraphActorOptions as GraphActorOptions, index_GraphAttachStorageOptions as GraphAttachStorageOptions, index_GraphCheckpointRecord as GraphCheckpointRecord, type index_GraphCodec as GraphCodec, index_GraphDescribeOptions as GraphDescribeOptions, index_GraphDescribeOutput as GraphDescribeOutput, index_GraphDiagramDirection as GraphDiagramDirection, index_GraphDiagramOptions as GraphDiagramOptions, index_GraphDiffChange as GraphDiffChange, index_GraphDiffResult as GraphDiffResult, index_GraphFactoryContext as GraphFactoryContext, index_GraphNodeFactory as GraphNodeFactory, index_GraphObserveAll as GraphObserveAll, index_GraphObserveOne as GraphObserveOne, index_GraphOptions as GraphOptions, index_GraphPersistSnapshot as GraphPersistSnapshot, index_GraphProfileOptions as GraphProfileOptions, index_GraphProfileResult as GraphProfileResult, index_GraphVersionChange as GraphVersionChange, index_GraphWALDiff as GraphWALDiff, index_JsonCodec as JsonCodec, type index_LazyGraphCodec as LazyGraphCodec, index_NodeProfile as NodeProfile, index_ObserveDetail as ObserveDetail, index_ObserveEvent as ObserveEvent, index_ObserveOptions as ObserveOptions, index_ObserveResult as ObserveResult, index_ObserveTheme as ObserveTheme, index_ObserveThemeName as ObserveThemeName, index_ReachableDirection as ReachableDirection, index_ReachableOptions as ReachableOptions, OVERHEAD as SIZEOF_OVERHEAD, index_SIZEOF_SYMBOL as SIZEOF_SYMBOL, index_TraceEntry as TraceEntry, type index_WALEntry as WALEntry, index_createDagCborCodec as createDagCborCodec, index_createDagCborZstdCodec as createDagCborZstdCodec, index_decodeEnvelope as decodeEnvelope, index_diffForWAL as diffForWAL, index_encodeEnvelope as encodeEnvelope, index_graphProfile as graphProfile, index_reachable as reachable, index_registerBuiltinCodecs as registerBuiltinCodecs, index_replayWAL as replayWAL, index_sizeof as sizeof };
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export { ENVELOPE_VERSION as E, type GraphCodec as G, JsonCodec as J, type LazyGraphCodec as L, OVERHEAD as O, SIZEOF_SYMBOL as S, type WALEntry as W, type EvictedSubgraphInfo as a, type EvictionPolicy as b, createDagCborCodec as c, createDagCborZstdCodec as d, decodeEnvelope as e, encodeEnvelope as f, replayWAL as g, index as i, registerBuiltinCodecs as r, sizeof as s };
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { k as GraphReFlyConfig } from './node-C5UD5MGq.cjs';
|
|
2
|
+
import { r as GraphPersistSnapshot, g as GraphCheckpointRecord, D as DescribeFilter, e as GRAPH_META_SEGMENT, G as Graph, f as GraphActorOptions, b as GraphAttachStorageOptions, h as GraphDescribeOptions, i as GraphDescribeOutput, j as GraphDiagramDirection, k as GraphDiagramOptions, l as GraphDiffChange, m as GraphDiffResult, n as GraphFactoryContext, o as GraphNodeFactory, p as GraphObserveAll, q as GraphObserveOne, a as GraphOptions, d as GraphProfileOptions, c as GraphProfileResult, s as GraphVersionChange, t as GraphWALDiff, N as NodeProfile, O as ObserveDetail, u as ObserveEvent, v as ObserveOptions, w as ObserveResult, x as ObserveTheme, y as ObserveThemeName, R as ReachableDirection, z as ReachableOptions, T as TraceEntry, A as diffForWAL, B as graphProfile, C as reachable } from './graph-ab1yPwIB.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Approximate in-memory size estimation for arbitrary JS values.
|
|
6
|
+
*
|
|
7
|
+
* Iterative walk with cycle detection via `WeakSet`. V8-tuned overhead
|
|
8
|
+
* heuristics. Not exact — approximate enough for profiling and hotspot
|
|
9
|
+
* detection.
|
|
10
|
+
*
|
|
11
|
+
* Use cases: `graphProfile` (per-node value size), reactive data structure
|
|
12
|
+
* memory audits, heuristic cache admission.
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
/** Approximate per-type overhead in bytes (V8 heuristics). */
|
|
17
|
+
declare const OVERHEAD: {
|
|
18
|
+
readonly object: 56;
|
|
19
|
+
readonly array: 64;
|
|
20
|
+
readonly string: 40;
|
|
21
|
+
readonly number: 8;
|
|
22
|
+
readonly boolean: 4;
|
|
23
|
+
readonly null: 0;
|
|
24
|
+
readonly undefined: 0;
|
|
25
|
+
readonly symbol: 40;
|
|
26
|
+
readonly bigint: 16;
|
|
27
|
+
readonly function: 120;
|
|
28
|
+
readonly map: 72;
|
|
29
|
+
readonly set: 72;
|
|
30
|
+
readonly mapEntry: 40;
|
|
31
|
+
readonly setEntry: 24;
|
|
32
|
+
readonly date: 24;
|
|
33
|
+
readonly regexp: 48;
|
|
34
|
+
readonly error: 64;
|
|
35
|
+
readonly url: 80;
|
|
36
|
+
readonly promise: 48;
|
|
37
|
+
readonly weakmap: 40;
|
|
38
|
+
readonly weakset: 40;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Optional user hook. Declare a `sizeof` symbol key on any object to return
|
|
42
|
+
* a precomputed size (in bytes); the walker will honor it and skip recursion.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const SIZEOF = Symbol.for("sizeof");
|
|
47
|
+
* class MyCache { [SIZEOF]() { return this.bytes; } }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare const SIZEOF_SYMBOL: unique symbol;
|
|
51
|
+
/**
|
|
52
|
+
* Estimate the approximate retained memory (in bytes) of a JS value.
|
|
53
|
+
*
|
|
54
|
+
* Handles primitives, plain objects, arrays, Maps, Sets, ArrayBuffers +
|
|
55
|
+
* TypedArrays (shared-buffer dedup), Date, RegExp, Error, URL, Promise,
|
|
56
|
+
* WeakMap, WeakSet, nested combinations. Cyclic refs are counted once.
|
|
57
|
+
*
|
|
58
|
+
* @param value - The value to measure.
|
|
59
|
+
* @returns Approximate size in bytes.
|
|
60
|
+
*/
|
|
61
|
+
declare function sizeof(value: unknown): number;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* GraphCodec — pluggable serialization for graph snapshots (Phase 8.6).
|
|
65
|
+
*
|
|
66
|
+
* Design reference: `archive/docs/SESSION-serialization-memory-footprint.md`
|
|
67
|
+
*
|
|
68
|
+
* The codec interface decouples snapshot format from graph internals.
|
|
69
|
+
* Default is JSON (current behavior). DAG-CBOR and compressed variants
|
|
70
|
+
* ship as optional codecs. FlatBuffers/Arrow for advanced tiers.
|
|
71
|
+
*
|
|
72
|
+
* Tiered representation:
|
|
73
|
+
* HOT — JS objects (live propagation, no codec involved)
|
|
74
|
+
* WARM — DAG-CBOR in-memory buffer (lazy hydration, delta checkpoints)
|
|
75
|
+
* COLD — Arrow/Parquet (bulk storage, ML pipelines, archival)
|
|
76
|
+
* PEEK — FlatBuffers (zero-copy read from dormant graph)
|
|
77
|
+
*
|
|
78
|
+
* Wire-protocol envelope (v1):
|
|
79
|
+
*
|
|
80
|
+
* [envelope_v=1: u8][name_len: u8][name: utf8][codec_v: u16 BE][payload: rest]
|
|
81
|
+
*
|
|
82
|
+
* `graph.snapshot({format: "bytes", codec: name})` wraps the codec's
|
|
83
|
+
* `encode` output in this envelope; `Graph.decode(bytes)` auto-dispatches
|
|
84
|
+
* via the config's codec registry — no out-of-band content-type needed.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Encode/decode graph snapshots to/from binary.
|
|
89
|
+
*
|
|
90
|
+
* Implementations must be deterministic: `encode(x)` always produces the
|
|
91
|
+
* same bytes for the same input. This is critical for CID computation (V1)
|
|
92
|
+
* and snapshot hash-comparison.
|
|
93
|
+
*/
|
|
94
|
+
interface GraphCodec {
|
|
95
|
+
/** Human-readable name; used as the lookup key in the envelope and config registry. */
|
|
96
|
+
readonly name: string;
|
|
97
|
+
/**
|
|
98
|
+
* Codec version. Bumps on breaking wire format changes; `decode` receives
|
|
99
|
+
* this via the envelope so codecs can dispatch on historical layouts.
|
|
100
|
+
* Must fit in a `u16` (0–65535).
|
|
101
|
+
*/
|
|
102
|
+
readonly version: number;
|
|
103
|
+
/** MIME-like content type identifier (e.g. `"application/dag-cbor+zstd"`). */
|
|
104
|
+
readonly contentType: string;
|
|
105
|
+
/** Encode a snapshot to binary. */
|
|
106
|
+
encode(snapshot: GraphPersistSnapshot): Uint8Array;
|
|
107
|
+
/**
|
|
108
|
+
* Decode binary back to a snapshot.
|
|
109
|
+
*
|
|
110
|
+
* `codecVersion` is the version that produced `buffer` (read from the
|
|
111
|
+
* envelope). Omit when the caller is sure of the version (tests, one-shot
|
|
112
|
+
* round-trips). Codecs that support multiple historical layouts dispatch
|
|
113
|
+
* on this value.
|
|
114
|
+
*
|
|
115
|
+
* For lazy codecs, this may return a proxy that decodes nodes on access
|
|
116
|
+
* (see {@link LazyGraphCodec}).
|
|
117
|
+
*/
|
|
118
|
+
decode(buffer: Uint8Array, codecVersion?: number): GraphPersistSnapshot;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Extended codec that supports lazy (on-demand) node decoding.
|
|
122
|
+
*
|
|
123
|
+
* `decodeLazy` returns a snapshot where `nodes` is a Proxy — individual
|
|
124
|
+
* nodes are decoded only when accessed. This enables near-zero cold-start
|
|
125
|
+
* for large graphs (decode envelope + topology, skip node values until read).
|
|
126
|
+
*/
|
|
127
|
+
interface LazyGraphCodec extends GraphCodec {
|
|
128
|
+
/** Decode envelope and topology; defer node value decoding to access time. */
|
|
129
|
+
decodeLazy(buffer: Uint8Array, codecVersion?: number): GraphPersistSnapshot;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* WAL entry. Unified with {@link GraphCheckpointRecord} — every record
|
|
133
|
+
* already carries `mode` / `seq` / `timestamp_ns` / `format_version`, so the
|
|
134
|
+
* WAL is just an ordered list of records. `replayWAL` walks this list.
|
|
135
|
+
*/
|
|
136
|
+
type WALEntry = GraphCheckpointRecord;
|
|
137
|
+
/**
|
|
138
|
+
* Policy for evicting dormant subgraphs to reduce memory.
|
|
139
|
+
*
|
|
140
|
+
* When a subgraph hasn't propagated for `idleTimeoutMs`, it is serialized
|
|
141
|
+
* using the graph's codec and JS objects are released. Re-hydrated on next
|
|
142
|
+
* access (read, propagation, describe).
|
|
143
|
+
*/
|
|
144
|
+
interface EvictionPolicy {
|
|
145
|
+
/** Milliseconds of inactivity before eviction. */
|
|
146
|
+
idleTimeoutMs: number;
|
|
147
|
+
/** Codec to use for serializing evicted subgraphs (default: graph's codec). */
|
|
148
|
+
codec?: GraphCodec;
|
|
149
|
+
}
|
|
150
|
+
/** Metadata about an evicted subgraph, exposed via describe(). */
|
|
151
|
+
interface EvictedSubgraphInfo {
|
|
152
|
+
/** True if currently evicted (serialized, JS objects released). */
|
|
153
|
+
evicted: true;
|
|
154
|
+
/** Wall-clock ns of last propagation before eviction. */
|
|
155
|
+
lastActiveNs: bigint;
|
|
156
|
+
/** Size of serialized buffer in bytes. */
|
|
157
|
+
serializedBytes: number;
|
|
158
|
+
/** Codec used for serialization. */
|
|
159
|
+
codecName: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Default JSON codec. Wraps `JSON.stringify`/`JSON.parse` with deterministic
|
|
163
|
+
* key ordering (matching current `snapshot()` behavior).
|
|
164
|
+
*/
|
|
165
|
+
declare const JsonCodec: GraphCodec;
|
|
166
|
+
/**
|
|
167
|
+
* Create a DAG-CBOR codec.
|
|
168
|
+
*
|
|
169
|
+
* Requires `@ipld/dag-cbor` as a peer dependency. ~40-50% smaller than JSON,
|
|
170
|
+
* deterministic encoding (required for V1 CID), CID links as native type.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```ts
|
|
174
|
+
* import * as dagCbor from "@ipld/dag-cbor";
|
|
175
|
+
* const codec = createDagCborCodec(dagCbor);
|
|
176
|
+
* config.registerCodec(codec);
|
|
177
|
+
* const bytes = graph.snapshot({ format: "bytes", codec: "dag-cbor" });
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
declare function createDagCborCodec(dagCbor: {
|
|
181
|
+
encode: (value: unknown) => Uint8Array;
|
|
182
|
+
decode: (bytes: Uint8Array) => unknown;
|
|
183
|
+
}): GraphCodec;
|
|
184
|
+
/**
|
|
185
|
+
* Create a DAG-CBOR + zstd codec. ~80-90% smaller than JSON.
|
|
186
|
+
*
|
|
187
|
+
* Requires `@ipld/dag-cbor` and a zstd implementation (e.g. `fzstd` for
|
|
188
|
+
* browser, `node:zlib` for Node.js).
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```ts
|
|
192
|
+
* import * as dagCbor from "@ipld/dag-cbor";
|
|
193
|
+
* import { compressSync, decompressSync } from "fzstd";
|
|
194
|
+
* const codec = createDagCborZstdCodec(dagCbor, { compressSync, decompressSync });
|
|
195
|
+
* config.registerCodec(codec);
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
declare function createDagCborZstdCodec(dagCbor: {
|
|
199
|
+
encode: (value: unknown) => Uint8Array;
|
|
200
|
+
decode: (bytes: Uint8Array) => unknown;
|
|
201
|
+
}, zstd: {
|
|
202
|
+
compressSync: (data: Uint8Array) => Uint8Array;
|
|
203
|
+
decompressSync: (data: Uint8Array) => Uint8Array;
|
|
204
|
+
}): GraphCodec;
|
|
205
|
+
/** Current envelope format version. Bump on breaking layout changes. */
|
|
206
|
+
declare const ENVELOPE_VERSION = 1;
|
|
207
|
+
/**
|
|
208
|
+
* Prepend the v1 envelope to `payload` identifying `codec`. The resulting
|
|
209
|
+
* bytes are self-describing — any caller with access to the registering
|
|
210
|
+
* {@link GraphReFlyConfig} can {@link decodeEnvelope} without knowing the
|
|
211
|
+
* codec up front.
|
|
212
|
+
*
|
|
213
|
+
* Layout:
|
|
214
|
+
* `[envelope_v=1: u8][name_len: u8][name: utf8][codec_v: u16 BE][payload: rest]`
|
|
215
|
+
*
|
|
216
|
+
* @throws If `codec.name` encodes to more than 255 UTF-8 bytes or
|
|
217
|
+
* `codec.version` doesn't fit in a u16.
|
|
218
|
+
*/
|
|
219
|
+
declare function encodeEnvelope(codec: Pick<GraphCodec, "name" | "version">, payload: Uint8Array): Uint8Array;
|
|
220
|
+
/**
|
|
221
|
+
* Inverse of {@link encodeEnvelope}. Reads the header, resolves the codec
|
|
222
|
+
* via `config.lookupCodec(name)`, and returns the codec + its version + the
|
|
223
|
+
* inner payload slice. The caller feeds `payload` to `codec.decode(payload,
|
|
224
|
+
* codecVersion)` — or uses {@link Graph.decode} which does both steps.
|
|
225
|
+
*
|
|
226
|
+
* @throws If the envelope is truncated, the version is unsupported, or the
|
|
227
|
+
* named codec isn't registered on `config`.
|
|
228
|
+
*/
|
|
229
|
+
declare function decodeEnvelope(bytes: Uint8Array, config: GraphReFlyConfig): {
|
|
230
|
+
codec: GraphCodec;
|
|
231
|
+
codecVersion: number;
|
|
232
|
+
payload: Uint8Array;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Register the built-in {@link JsonCodec} on a config. Called once on
|
|
236
|
+
* `defaultConfig` at module load so `graph.snapshot({format: "bytes", codec:
|
|
237
|
+
* "json"})` works out of the box. Test / isolated configs should call this
|
|
238
|
+
* manually before the first node is created.
|
|
239
|
+
*/
|
|
240
|
+
declare function registerBuiltinCodecs(config: GraphReFlyConfig): void;
|
|
241
|
+
/**
|
|
242
|
+
* Reconstruct a snapshot from a WAL (sequence of {@link GraphCheckpointRecord}s).
|
|
243
|
+
*
|
|
244
|
+
* - Must start with a `"full"` record carrying a baseline snapshot — that's
|
|
245
|
+
* the anchor {@link Graph.attachStorage} always emits on the first flush
|
|
246
|
+
* of any tier (and every `compactEvery`-th flush thereafter).
|
|
247
|
+
* - Subsequent `"full"` entries (compaction points) **replace** the result
|
|
248
|
+
* wholesale.
|
|
249
|
+
* - `"diff"` entries roll forward by applying the structural diff —
|
|
250
|
+
* added nodes (via `nodesAddedFull`), removed nodes, and changed fields
|
|
251
|
+
* are reflected into the accumulated snapshot.
|
|
252
|
+
*
|
|
253
|
+
* Validates monotonic `seq` progression across entries.
|
|
254
|
+
*/
|
|
255
|
+
declare function replayWAL(entries: readonly WALEntry[]): GraphPersistSnapshot;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Graph container: registry, wiring, introspection (Phase 1).
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
declare const index_DescribeFilter: typeof DescribeFilter;
|
|
262
|
+
declare const index_ENVELOPE_VERSION: typeof ENVELOPE_VERSION;
|
|
263
|
+
type index_EvictedSubgraphInfo = EvictedSubgraphInfo;
|
|
264
|
+
type index_EvictionPolicy = EvictionPolicy;
|
|
265
|
+
declare const index_GRAPH_META_SEGMENT: typeof GRAPH_META_SEGMENT;
|
|
266
|
+
declare const index_Graph: typeof Graph;
|
|
267
|
+
declare const index_GraphActorOptions: typeof GraphActorOptions;
|
|
268
|
+
declare const index_GraphAttachStorageOptions: typeof GraphAttachStorageOptions;
|
|
269
|
+
declare const index_GraphCheckpointRecord: typeof GraphCheckpointRecord;
|
|
270
|
+
type index_GraphCodec = GraphCodec;
|
|
271
|
+
declare const index_GraphDescribeOptions: typeof GraphDescribeOptions;
|
|
272
|
+
declare const index_GraphDescribeOutput: typeof GraphDescribeOutput;
|
|
273
|
+
declare const index_GraphDiagramDirection: typeof GraphDiagramDirection;
|
|
274
|
+
declare const index_GraphDiagramOptions: typeof GraphDiagramOptions;
|
|
275
|
+
declare const index_GraphDiffChange: typeof GraphDiffChange;
|
|
276
|
+
declare const index_GraphDiffResult: typeof GraphDiffResult;
|
|
277
|
+
declare const index_GraphFactoryContext: typeof GraphFactoryContext;
|
|
278
|
+
declare const index_GraphNodeFactory: typeof GraphNodeFactory;
|
|
279
|
+
declare const index_GraphObserveAll: typeof GraphObserveAll;
|
|
280
|
+
declare const index_GraphObserveOne: typeof GraphObserveOne;
|
|
281
|
+
declare const index_GraphOptions: typeof GraphOptions;
|
|
282
|
+
declare const index_GraphPersistSnapshot: typeof GraphPersistSnapshot;
|
|
283
|
+
declare const index_GraphProfileOptions: typeof GraphProfileOptions;
|
|
284
|
+
declare const index_GraphProfileResult: typeof GraphProfileResult;
|
|
285
|
+
declare const index_GraphVersionChange: typeof GraphVersionChange;
|
|
286
|
+
declare const index_GraphWALDiff: typeof GraphWALDiff;
|
|
287
|
+
declare const index_JsonCodec: typeof JsonCodec;
|
|
288
|
+
type index_LazyGraphCodec = LazyGraphCodec;
|
|
289
|
+
declare const index_NodeProfile: typeof NodeProfile;
|
|
290
|
+
declare const index_ObserveDetail: typeof ObserveDetail;
|
|
291
|
+
declare const index_ObserveEvent: typeof ObserveEvent;
|
|
292
|
+
declare const index_ObserveOptions: typeof ObserveOptions;
|
|
293
|
+
declare const index_ObserveResult: typeof ObserveResult;
|
|
294
|
+
declare const index_ObserveTheme: typeof ObserveTheme;
|
|
295
|
+
declare const index_ObserveThemeName: typeof ObserveThemeName;
|
|
296
|
+
declare const index_ReachableDirection: typeof ReachableDirection;
|
|
297
|
+
declare const index_ReachableOptions: typeof ReachableOptions;
|
|
298
|
+
declare const index_SIZEOF_SYMBOL: typeof SIZEOF_SYMBOL;
|
|
299
|
+
declare const index_TraceEntry: typeof TraceEntry;
|
|
300
|
+
type index_WALEntry = WALEntry;
|
|
301
|
+
declare const index_createDagCborCodec: typeof createDagCborCodec;
|
|
302
|
+
declare const index_createDagCborZstdCodec: typeof createDagCborZstdCodec;
|
|
303
|
+
declare const index_decodeEnvelope: typeof decodeEnvelope;
|
|
304
|
+
declare const index_diffForWAL: typeof diffForWAL;
|
|
305
|
+
declare const index_encodeEnvelope: typeof encodeEnvelope;
|
|
306
|
+
declare const index_graphProfile: typeof graphProfile;
|
|
307
|
+
declare const index_reachable: typeof reachable;
|
|
308
|
+
declare const index_registerBuiltinCodecs: typeof registerBuiltinCodecs;
|
|
309
|
+
declare const index_replayWAL: typeof replayWAL;
|
|
310
|
+
declare const index_sizeof: typeof sizeof;
|
|
311
|
+
declare namespace index {
|
|
312
|
+
export { index_DescribeFilter as DescribeFilter, index_ENVELOPE_VERSION as ENVELOPE_VERSION, type index_EvictedSubgraphInfo as EvictedSubgraphInfo, type index_EvictionPolicy as EvictionPolicy, index_GRAPH_META_SEGMENT as GRAPH_META_SEGMENT, index_Graph as Graph, index_GraphActorOptions as GraphActorOptions, index_GraphAttachStorageOptions as GraphAttachStorageOptions, index_GraphCheckpointRecord as GraphCheckpointRecord, type index_GraphCodec as GraphCodec, index_GraphDescribeOptions as GraphDescribeOptions, index_GraphDescribeOutput as GraphDescribeOutput, index_GraphDiagramDirection as GraphDiagramDirection, index_GraphDiagramOptions as GraphDiagramOptions, index_GraphDiffChange as GraphDiffChange, index_GraphDiffResult as GraphDiffResult, index_GraphFactoryContext as GraphFactoryContext, index_GraphNodeFactory as GraphNodeFactory, index_GraphObserveAll as GraphObserveAll, index_GraphObserveOne as GraphObserveOne, index_GraphOptions as GraphOptions, index_GraphPersistSnapshot as GraphPersistSnapshot, index_GraphProfileOptions as GraphProfileOptions, index_GraphProfileResult as GraphProfileResult, index_GraphVersionChange as GraphVersionChange, index_GraphWALDiff as GraphWALDiff, index_JsonCodec as JsonCodec, type index_LazyGraphCodec as LazyGraphCodec, index_NodeProfile as NodeProfile, index_ObserveDetail as ObserveDetail, index_ObserveEvent as ObserveEvent, index_ObserveOptions as ObserveOptions, index_ObserveResult as ObserveResult, index_ObserveTheme as ObserveTheme, index_ObserveThemeName as ObserveThemeName, index_ReachableDirection as ReachableDirection, index_ReachableOptions as ReachableOptions, OVERHEAD as SIZEOF_OVERHEAD, index_SIZEOF_SYMBOL as SIZEOF_SYMBOL, index_TraceEntry as TraceEntry, type index_WALEntry as WALEntry, index_createDagCborCodec as createDagCborCodec, index_createDagCborZstdCodec as createDagCborZstdCodec, index_decodeEnvelope as decodeEnvelope, index_diffForWAL as diffForWAL, index_encodeEnvelope as encodeEnvelope, index_graphProfile as graphProfile, index_reachable as reachable, index_registerBuiltinCodecs as registerBuiltinCodecs, index_replayWAL as replayWAL, index_sizeof as sizeof };
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export { ENVELOPE_VERSION as E, type GraphCodec as G, JsonCodec as J, type LazyGraphCodec as L, OVERHEAD as O, SIZEOF_SYMBOL as S, type WALEntry as W, type EvictedSubgraphInfo as a, type EvictionPolicy as b, createDagCborCodec as c, createDagCborZstdCodec as d, decodeEnvelope as e, encodeEnvelope as f, replayWAL as g, index as i, registerBuiltinCodecs as r, sizeof as s };
|