@graphrefly/ts 0.0.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/LICENSE +21 -0
- package/dist/adapters/index.cjs +9015 -0
- package/dist/adapters/index.cjs.map +1 -0
- package/dist/adapters/index.d.cts +678 -0
- package/dist/adapters/index.d.ts +678 -0
- package/dist/adapters/index.js +2894 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/observe-storage.cjs +260 -0
- package/dist/adapters/observe-storage.cjs.map +1 -0
- package/dist/adapters/observe-storage.d.cts +77 -0
- package/dist/adapters/observe-storage.d.ts +77 -0
- package/dist/adapters/observe-storage.js +161 -0
- package/dist/adapters/observe-storage.js.map +1 -0
- package/dist/append-log-DisvEReb.d.cts +189 -0
- package/dist/append-log-DzKMmjxx.d.ts +189 -0
- package/dist/chunk-2ILL7HQI.js +1189 -0
- package/dist/chunk-2ILL7HQI.js.map +1 -0
- package/dist/chunk-4VLAQHZI.js +330 -0
- package/dist/chunk-4VLAQHZI.js.map +1 -0
- package/dist/chunk-6PHB5CJS.js +229 -0
- package/dist/chunk-6PHB5CJS.js.map +1 -0
- package/dist/chunk-COHO25CZ.js +2449 -0
- package/dist/chunk-COHO25CZ.js.map +1 -0
- package/dist/chunk-D6BG7U6A.js +161 -0
- package/dist/chunk-D6BG7U6A.js.map +1 -0
- package/dist/chunk-DJC4CHLQ.js +818 -0
- package/dist/chunk-DJC4CHLQ.js.map +1 -0
- package/dist/chunk-DK554R7P.js +67 -0
- package/dist/chunk-DK554R7P.js.map +1 -0
- package/dist/chunk-DKP56CSW.js +322 -0
- package/dist/chunk-DKP56CSW.js.map +1 -0
- package/dist/chunk-G4M3NHRJ.js +688 -0
- package/dist/chunk-G4M3NHRJ.js.map +1 -0
- package/dist/chunk-GAJW5I5P.js +1 -0
- package/dist/chunk-GAJW5I5P.js.map +1 -0
- package/dist/chunk-GDL26N2T.js +282 -0
- package/dist/chunk-GDL26N2T.js.map +1 -0
- package/dist/chunk-GTPCOEOZ.js +741 -0
- package/dist/chunk-GTPCOEOZ.js.map +1 -0
- package/dist/chunk-H2HTHFVN.js +1 -0
- package/dist/chunk-H2HTHFVN.js.map +1 -0
- package/dist/chunk-HDRL4VQQ.js +218 -0
- package/dist/chunk-HDRL4VQQ.js.map +1 -0
- package/dist/chunk-I3IHOHCJ.js +2267 -0
- package/dist/chunk-I3IHOHCJ.js.map +1 -0
- package/dist/chunk-JIMUDQN3.js +965 -0
- package/dist/chunk-JIMUDQN3.js.map +1 -0
- package/dist/chunk-JR4IKCR2.js +462 -0
- package/dist/chunk-JR4IKCR2.js.map +1 -0
- package/dist/chunk-K3FXTC3I.js +165 -0
- package/dist/chunk-K3FXTC3I.js.map +1 -0
- package/dist/chunk-OOEN33FB.js +65 -0
- package/dist/chunk-OOEN33FB.js.map +1 -0
- package/dist/chunk-PKVBHGBM.js +554 -0
- package/dist/chunk-PKVBHGBM.js.map +1 -0
- package/dist/chunk-RIIOUTGM.js +1857 -0
- package/dist/chunk-RIIOUTGM.js.map +1 -0
- package/dist/chunk-SCRFRCGR.js +33 -0
- package/dist/chunk-SCRFRCGR.js.map +1 -0
- package/dist/chunk-SWTLEQL6.js +53 -0
- package/dist/chunk-SWTLEQL6.js.map +1 -0
- package/dist/chunk-SZAETNNA.js +1 -0
- package/dist/chunk-SZAETNNA.js.map +1 -0
- package/dist/chunk-TEW47IVR.js +49 -0
- package/dist/chunk-TEW47IVR.js.map +1 -0
- package/dist/chunk-Y3ZLRGHC.js +1482 -0
- package/dist/chunk-Y3ZLRGHC.js.map +1 -0
- package/dist/chunk-Z2ANQ6JW.js +149 -0
- package/dist/chunk-Z2ANQ6JW.js.map +1 -0
- package/dist/codec-BB7p8fJc.d.cts +38 -0
- package/dist/codec-BB7p8fJc.d.ts +38 -0
- package/dist/composition/index.cjs +2505 -0
- package/dist/composition/index.cjs.map +1 -0
- package/dist/composition/index.d.cts +95 -0
- package/dist/composition/index.d.ts +95 -0
- package/dist/composition/index.js +19 -0
- package/dist/composition/index.js.map +1 -0
- package/dist/core/index.cjs +2475 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +25 -0
- package/dist/core/index.d.ts +25 -0
- package/dist/core/index.js +74 -0
- package/dist/core/index.js.map +1 -0
- package/dist/cqrs/index.cjs +595 -0
- package/dist/cqrs/index.cjs.map +1 -0
- package/dist/cqrs/index.d.cts +200 -0
- package/dist/cqrs/index.d.ts +200 -0
- package/dist/cqrs/index.js +557 -0
- package/dist/cqrs/index.js.map +1 -0
- package/dist/data-structures/index.cjs +4277 -0
- package/dist/data-structures/index.cjs.map +1 -0
- package/dist/data-structures/index.d.cts +22 -0
- package/dist/data-structures/index.d.ts +22 -0
- package/dist/data-structures/index.js +31 -0
- package/dist/data-structures/index.js.map +1 -0
- package/dist/describe-BZb7AS2y.d.ts +57 -0
- package/dist/describe-Ciu8SUnN.d.cts +57 -0
- package/dist/graph/index.cjs +7832 -0
- package/dist/graph/index.cjs.map +1 -0
- package/dist/graph/index.d.cts +251 -0
- package/dist/graph/index.d.ts +251 -0
- package/dist/graph/index.js +131 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph-DfdF9zy4.d.ts +666 -0
- package/dist/graph-s23RbbFO.d.cts +666 -0
- package/dist/index-CAEmLCYF.d.cts +166 -0
- package/dist/index-SnzZu3x7.d.ts +166 -0
- package/dist/index.cjs +15409 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +582 -0
- package/dist/index.js.map +1 -0
- package/dist/messages-BZqrGGm1.d.cts +55 -0
- package/dist/messages-BZqrGGm1.d.ts +55 -0
- package/dist/messaging/index.cjs +818 -0
- package/dist/messaging/index.cjs.map +1 -0
- package/dist/messaging/index.d.cts +235 -0
- package/dist/messaging/index.d.ts +235 -0
- package/dist/messaging/index.js +767 -0
- package/dist/messaging/index.js.map +1 -0
- package/dist/observe-event-log-0SVsx7JG.d.cts +88 -0
- package/dist/observe-event-log-Dnm76owp.d.ts +88 -0
- package/dist/operators/index.cjs +3774 -0
- package/dist/operators/index.cjs.map +1 -0
- package/dist/operators/index.d.cts +308 -0
- package/dist/operators/index.d.ts +308 -0
- package/dist/operators/index.js +112 -0
- package/dist/operators/index.js.map +1 -0
- package/dist/orchestration/index.cjs +3541 -0
- package/dist/orchestration/index.cjs.map +1 -0
- package/dist/orchestration/index.d.cts +302 -0
- package/dist/orchestration/index.d.ts +302 -0
- package/dist/orchestration/index.js +1004 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/patterns/index.cjs +1045 -0
- package/dist/patterns/index.cjs.map +1 -0
- package/dist/patterns/index.d.cts +39 -0
- package/dist/patterns/index.d.ts +39 -0
- package/dist/patterns/index.js +33 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/reactive-collection-BxBqtIOE.d.cts +344 -0
- package/dist/reactive-collection-Cb1II1Fi.d.ts +344 -0
- package/dist/reactive-collection-storage-BNiEc-Gd.d.ts +217 -0
- package/dist/reactive-collection-storage-D-KmjE0J.d.cts +217 -0
- package/dist/reactive-map-BcB4KsQR.d.ts +256 -0
- package/dist/reactive-map-D-g3dv8I.d.cts +256 -0
- package/dist/read-through-B1CYPfq_.d.cts +82 -0
- package/dist/read-through-DwyJhGs1.d.ts +82 -0
- package/dist/render/index.cjs +250 -0
- package/dist/render/index.cjs.map +1 -0
- package/dist/render/index.d.cts +58 -0
- package/dist/render/index.d.ts +58 -0
- package/dist/render/index.js +20 -0
- package/dist/render/index.js.map +1 -0
- package/dist/resilience-Dig3Q7n0.d.cts +45 -0
- package/dist/resilience-Dig3Q7n0.d.ts +45 -0
- package/dist/semantic-memory-graph-BYoIlP35.d.cts +356 -0
- package/dist/semantic-memory-graph-CxyXLms3.d.ts +356 -0
- package/dist/solutions/index.cjs +3249 -0
- package/dist/solutions/index.cjs.map +1 -0
- package/dist/solutions/index.d.cts +520 -0
- package/dist/solutions/index.d.ts +520 -0
- package/dist/solutions/index.js +31 -0
- package/dist/solutions/index.js.map +1 -0
- package/dist/sources/browser.cjs +3095 -0
- package/dist/sources/browser.cjs.map +1 -0
- package/dist/sources/browser.d.cts +39 -0
- package/dist/sources/browser.d.ts +39 -0
- package/dist/sources/browser.js +137 -0
- package/dist/sources/browser.js.map +1 -0
- package/dist/sources/index.cjs +3021 -0
- package/dist/sources/index.cjs.map +1 -0
- package/dist/sources/index.d.cts +7 -0
- package/dist/sources/index.d.ts +7 -0
- package/dist/sources/index.js +63 -0
- package/dist/sources/index.js.map +1 -0
- package/dist/sources/node.cjs +675 -0
- package/dist/sources/node.cjs.map +1 -0
- package/dist/sources/node.d.cts +109 -0
- package/dist/sources/node.d.ts +109 -0
- package/dist/sources/node.js +639 -0
- package/dist/sources/node.js.map +1 -0
- package/dist/storage/browser.cjs +777 -0
- package/dist/storage/browser.cjs.map +1 -0
- package/dist/storage/browser.d.cts +40 -0
- package/dist/storage/browser.d.ts +40 -0
- package/dist/storage/browser.js +275 -0
- package/dist/storage/browser.js.map +1 -0
- package/dist/storage/index.cjs +1989 -0
- package/dist/storage/index.cjs.map +1 -0
- package/dist/storage/index.d.cts +92 -0
- package/dist/storage/index.d.ts +92 -0
- package/dist/storage/index.js +161 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/node.cjs +898 -0
- package/dist/storage/node.cjs.map +1 -0
- package/dist/storage/node.d.cts +66 -0
- package/dist/storage/node.d.ts +66 -0
- package/dist/storage/node.js +402 -0
- package/dist/storage/node.js.map +1 -0
- package/dist/testing/index.cjs +95 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +20 -0
- package/dist/testing/index.d.ts +20 -0
- package/dist/testing/index.js +8 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/types-bNMSWKqF.d.cts +732 -0
- package/dist/types-h12mNYbq.d.ts +732 -0
- package/package.json +250 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export { DescribeChangeset, DescribeEvent, PipeOperator, Stratified, StratifyOptions, StratifyRule, pipe, stratify, stratifyBranch, topologyDiff } from '../composition/index.cjs';
|
|
2
|
+
export { C as CapacityPolicy, I as IndexChange, a as IndexRow, L as ListChange, c as LogChange, M as MapChange, O as OrderedCapacityPolicy, j as ReactiveIndex, k as ReactiveIndexCapacityOrder, l as ReactiveIndexCapacityPolicy, m as ReactiveIndexOpt, n as ReactiveIndexOptions, s as ReactiveOpt, t as ReactiveView, u as RetentionPolicy, V as ViewCachePolicy, H as reactiveIndex } from '../reactive-collection-BxBqtIOE.cjs';
|
|
3
|
+
export { R as ReactiveList, a as ReactiveListOpt, b as ReactiveListOptions, c as ReactiveLog, d as ReactiveLogOptions, e as ReactiveMap, f as ReactiveMapOpt, g as ReactiveMapOptions, h as ReactiveMapRetentionEntry, i as ReactiveMapRetentionPolicy, m as mergeReactiveLogs, r as reactiveList, j as reactiveLog, k as reactiveMap, s as scanLog } from '../reactive-map-D-g3dv8I.cjs';
|
|
4
|
+
export { restoreReactiveIndex, restoreReactiveList, restoreReactiveLog, restoreReactiveMap } from '../data-structures/index.cjs';
|
|
5
|
+
export { DescribeToAsciiOptions, DescribeToD2Options, DescribeToJsonOptions, DescribeToMermaidOptions, DescribeToMermaidUrlOptions, DescribeToPrettyOptions, DiagramDirection, MermaidLiveTheme, MermaidLiveUrlOptions, describeToAscii, describeToD2, describeToJson, describeToMermaid, describeToMermaidUrl, describeToPretty, mermaidLiveUrl } from '../render/index.cjs';
|
|
6
|
+
import { d as Graph } from '../graph-s23RbbFO.cjs';
|
|
7
|
+
export { b as DerivedFn, E as EffectFn, G as GRAPH_BLUEPRINT_VERSION, c as GRAPH_CHECKPOINT_VERSION, e as GraphBlueprint, f as GraphBlueprintDiagnosticCode, g as GraphBlueprintDiagnosticIssue, h as GraphBlueprintDiagnostics, i as GraphBlueprintHash, j as GraphBlueprintHashInput, k as GraphBlueprintHashOptions, l as GraphBlueprintJson, m as GraphBlueprintOptions, n as GraphBlueprintProvenance, o as GraphCheckpoint, p as GraphCheckpointEdge, q as GraphCheckpointFactory, r as GraphCheckpointJson, s as GraphCheckpointMount, t as GraphCheckpointNode, u as GraphCheckpointTerminal, v as GraphCheckpointValue, w as GraphCheckpointVersion, x as GraphOptions, z as GraphRestoreDescriptor, A as GraphRestoreDescriptorContext, C as GraphRestoreRegistry, N as NodeProfile, F as NormalizedGraphTopologyNode, H as NormalizedGraphTopologySnapshot, O as ObserveEvent, I as ObserveEventEquals, J as ObservePredicate, K as ObserveStream, P as Profile, R as RestoreGraphOptions, Q as StateNode, T as SugarOpts, V as TopologyEvent, W as TopologyEventKind, X as TopologyGroup, Y as TopologyGroupOptions, Z as TopologyGroupReleaseOptions, _ as TopologyStream, a0 as canonicalTopologyBytes, a1 as canonicalTopologyJson, a3 as coalesceObserve, a4 as defaultRestoreRegistry, a9 as filterObserve, ac as graph, ad as graphBlueprintDiagnostics, aj as normalizeTopology, ao as restoreGraph, at as stateRestoreDescriptor, av as takeRestoreDescriptor, az as timerRestoreDescriptor, aB as withBlueprintHash, aC as withBlueprintProvenance } from '../graph-s23RbbFO.cjs';
|
|
8
|
+
import { N as Node, C as Ctx } from '../types-bNMSWKqF.cjs';
|
|
9
|
+
export { b as DriverCancel, c as DriverResult, E as EnvironmentDrivers, d as EnvironmentDriversInit, F as FetchLike, e as FetchResponseLike, g as HttpRequest, h as HttpResponse, L as LocalHttpDriver, i as LocalProcessDriver, j as LocalSseDriver, k as LocalWebSocketDriver, l as LocalWebhookDriver, w as ProcessCommand, x as ProcessResult, y as SseDriverEvent, z as SseEvent, A as SseRequest, G as WebSocketConstructorLike, I as WebSocketDriverEvent, J as WebSocketEvent, K as WebSocketLike, M as WebSocketRequest, O as WebSocketSend, Q as WebSocketSendResult, U as WebSocketSessionHandle, V as WebhookDriverEvent, X as WebhookEvent, Y as WebhookRegistration, a4 as domWebSocketDriver, a6 as fetchHttpDriver } from '../types-bNMSWKqF.cjs';
|
|
10
|
+
import { f as KvStorageTier } from '../append-log-DisvEReb.cjs';
|
|
11
|
+
import { b as ReadThroughLookupTier } from '../read-through-B1CYPfq_.cjs';
|
|
12
|
+
import { a as DescribeNode, c as DescribeSnapshot } from '../describe-Ciu8SUnN.cjs';
|
|
13
|
+
export { D as DescribeEdge, b as DescribeOpts, G as GraphTopologyEdge, d as GraphTopologyNode, e as GraphTopologySnapshot } from '../describe-Ciu8SUnN.cjs';
|
|
14
|
+
export { B as BackoffPolicy, R as RetryPolicy, a as RetryState, b as RetryStatus, c as backoffDelayMs, n as nextRetryDelayMs, d as noBackoff, r as retryPolicy, s as shouldRetry } from '../resilience-Dig3Q7n0.cjs';
|
|
15
|
+
import '../messages-BZqrGGm1.cjs';
|
|
16
|
+
import '../core/index.cjs';
|
|
17
|
+
import '../codec-BB7p8fJc.cjs';
|
|
18
|
+
|
|
19
|
+
/** Dynamic read-through policy for {@link reactiveCascadingCache}. */
|
|
20
|
+
interface CascadingCachePolicy {
|
|
21
|
+
readonly promoteTo?: readonly number[] | false;
|
|
22
|
+
}
|
|
23
|
+
type CascadingCacheStatus<K> = {
|
|
24
|
+
readonly kind: "idle";
|
|
25
|
+
} | {
|
|
26
|
+
readonly kind: "loading";
|
|
27
|
+
readonly key: K;
|
|
28
|
+
readonly requestSeq: number;
|
|
29
|
+
} | {
|
|
30
|
+
readonly kind: "hit";
|
|
31
|
+
readonly key: K;
|
|
32
|
+
readonly requestSeq: number;
|
|
33
|
+
readonly tier?: ReadThroughLookupTier;
|
|
34
|
+
} | {
|
|
35
|
+
readonly kind: "miss";
|
|
36
|
+
readonly key: K;
|
|
37
|
+
readonly requestSeq: number;
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: "error";
|
|
40
|
+
readonly key: K;
|
|
41
|
+
readonly requestSeq: number;
|
|
42
|
+
readonly error: unknown;
|
|
43
|
+
};
|
|
44
|
+
type CascadingCacheEvent<K, V> = {
|
|
45
|
+
readonly kind: "request";
|
|
46
|
+
readonly key: K;
|
|
47
|
+
readonly requestSeq: number;
|
|
48
|
+
} | {
|
|
49
|
+
readonly kind: "invalidate";
|
|
50
|
+
readonly key: K;
|
|
51
|
+
readonly requestSeq: number;
|
|
52
|
+
} | {
|
|
53
|
+
readonly kind: "lookup";
|
|
54
|
+
readonly key: K;
|
|
55
|
+
readonly requestSeq: number;
|
|
56
|
+
readonly outcome: "hit" | "miss" | "error";
|
|
57
|
+
readonly tier: ReadThroughLookupTier;
|
|
58
|
+
readonly value?: V;
|
|
59
|
+
readonly error?: unknown;
|
|
60
|
+
} | {
|
|
61
|
+
readonly kind: "promotion";
|
|
62
|
+
readonly key: K;
|
|
63
|
+
readonly requestSeq: number;
|
|
64
|
+
readonly tier: ReadThroughLookupTier;
|
|
65
|
+
readonly ok: boolean;
|
|
66
|
+
readonly error?: unknown;
|
|
67
|
+
} | {
|
|
68
|
+
readonly kind: "fill";
|
|
69
|
+
readonly key: K;
|
|
70
|
+
readonly requestSeq: number;
|
|
71
|
+
readonly status: "hit" | "miss" | "error";
|
|
72
|
+
readonly value?: V;
|
|
73
|
+
readonly tier?: ReadThroughLookupTier;
|
|
74
|
+
readonly error?: unknown;
|
|
75
|
+
} | {
|
|
76
|
+
readonly kind: "error";
|
|
77
|
+
readonly key: K;
|
|
78
|
+
readonly requestSeq: number;
|
|
79
|
+
readonly stage: "lookup" | "promotion";
|
|
80
|
+
readonly tier?: ReadThroughLookupTier;
|
|
81
|
+
readonly error: unknown;
|
|
82
|
+
};
|
|
83
|
+
interface ReactiveCascadingCacheOptions<K extends string, V> {
|
|
84
|
+
readonly graph: Graph;
|
|
85
|
+
readonly request: Node<K>;
|
|
86
|
+
readonly policy?: Node<CascadingCachePolicy>;
|
|
87
|
+
readonly invalidate?: Node<K>;
|
|
88
|
+
readonly tiers: readonly KvStorageTier<V>[];
|
|
89
|
+
readonly load?: (key: K) => Promise<V | undefined> | V | undefined;
|
|
90
|
+
readonly tierNames?: readonly string[];
|
|
91
|
+
/**
|
|
92
|
+
* Storage promotion is explicit for the graph-layer factory. `requestSeq` guards visible graph
|
|
93
|
+
* value/status updates; without a generation/CAS storage contract, passive tier writes are
|
|
94
|
+
* best-effort and cannot be made stale-proof once an async `set` has started.
|
|
95
|
+
*
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
readonly promoteTo?: readonly number[] | false;
|
|
99
|
+
readonly name?: string;
|
|
100
|
+
readonly meta?: Record<string, unknown>;
|
|
101
|
+
}
|
|
102
|
+
interface ReactiveCascadingCache<K, V> {
|
|
103
|
+
readonly value: Node<V | undefined>;
|
|
104
|
+
readonly status: Node<CascadingCacheStatus<K>>;
|
|
105
|
+
readonly events: Node<CascadingCacheEvent<K, V>>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Free-standing graph-layer cascading cache factory (D104/D105/D107).
|
|
109
|
+
*
|
|
110
|
+
* Passive tiers stay in `tieredReadThrough`; this factory wraps lookup work at an async pool
|
|
111
|
+
* boundary and exposes every request, invalidation, lookup, promotion, fill, status, and value
|
|
112
|
+
* change through declared graph nodes. `requestSeq` is the stale-fill guard for visible graph
|
|
113
|
+
* nodes: older async fills may still be observable as events, but downstream value/status nodes
|
|
114
|
+
* ignore them. Storage promotion defaults to `false` here because passive tier writes have no
|
|
115
|
+
* generation/CAS contract; callers may opt in with `promoteTo` when best-effort promotion is
|
|
116
|
+
* acceptable.
|
|
117
|
+
*/
|
|
118
|
+
declare function reactiveCascadingCache<K extends string, V>(opts: ReactiveCascadingCacheOptions<K, V>): ReactiveCascadingCache<K, V>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Pure graph diagnostics over {@link DescribeSnapshot} (D39/R-describe).
|
|
122
|
+
*
|
|
123
|
+
* These helpers re-derive the useful frozen pure-ts inspection utilities without restoring
|
|
124
|
+
* graph methods, path facades, actors, soft edges, or storage coupling. They operate only on the
|
|
125
|
+
* public JSON-serializable describe shape; the live topology truth remains R-edges-derived.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
type ReachableDirection = "upstream" | "downstream";
|
|
129
|
+
interface ReachableOptions {
|
|
130
|
+
/** Maximum hop distance to walk. Omit for unbounded. */
|
|
131
|
+
maxDepth?: number;
|
|
132
|
+
/** Walk both upstream and downstream, ignoring `direction`. */
|
|
133
|
+
both?: boolean;
|
|
134
|
+
/** Return depths/truncation metadata instead of only sorted paths. */
|
|
135
|
+
withDetail?: boolean;
|
|
136
|
+
}
|
|
137
|
+
interface ReachableResult {
|
|
138
|
+
/** Reachable node ids, excluding the start id, sorted deterministically. */
|
|
139
|
+
paths: readonly string[];
|
|
140
|
+
/** Hop depth by reachable node id. */
|
|
141
|
+
depths: Readonly<Record<string, number>>;
|
|
142
|
+
/** True when `maxDepth` cut off at least one still-expandable frontier node. */
|
|
143
|
+
truncated: boolean;
|
|
144
|
+
}
|
|
145
|
+
type ExplainPathReason = "ok" | "no-such-from" | "no-such-to" | "no-path" | "max-depth-exceeded";
|
|
146
|
+
interface ExplainPathOptions {
|
|
147
|
+
/** Maximum hop distance to search. Omit for unbounded. */
|
|
148
|
+
maxDepth?: number;
|
|
149
|
+
/** When `from === to`, search for a non-trivial cycle before returning the trivial step. */
|
|
150
|
+
findCycle?: boolean;
|
|
151
|
+
}
|
|
152
|
+
interface CausalStep {
|
|
153
|
+
/** Mount-aware describe node id. */
|
|
154
|
+
id: string;
|
|
155
|
+
/** Operator/verb factory name from describe. */
|
|
156
|
+
factory: string;
|
|
157
|
+
/** Status as of the source snapshot. */
|
|
158
|
+
status: DescribeNode["status"];
|
|
159
|
+
/** Cached value when present; absence still means SENTINEL. */
|
|
160
|
+
value?: unknown;
|
|
161
|
+
/** Hop distance from the `from` node. */
|
|
162
|
+
hop: number;
|
|
163
|
+
/** First dep slot in the next step that points at this step, when the edge is dep-derived. */
|
|
164
|
+
depIndex?: number;
|
|
165
|
+
/** All matching dep slots when the next step depends on this step more than once. */
|
|
166
|
+
depIndices?: readonly number[];
|
|
167
|
+
}
|
|
168
|
+
interface CausalChain {
|
|
169
|
+
from: string;
|
|
170
|
+
to: string;
|
|
171
|
+
found: boolean;
|
|
172
|
+
reason: ExplainPathReason;
|
|
173
|
+
steps: readonly CausalStep[];
|
|
174
|
+
text: string;
|
|
175
|
+
toJSON(): {
|
|
176
|
+
from: string;
|
|
177
|
+
to: string;
|
|
178
|
+
found: boolean;
|
|
179
|
+
reason: ExplainPathReason;
|
|
180
|
+
steps: readonly CausalStep[];
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
interface IslandReport {
|
|
184
|
+
/** Node id from the flattened snapshot. */
|
|
185
|
+
id: string;
|
|
186
|
+
/** Factory/kind for quick triage. */
|
|
187
|
+
factory: string;
|
|
188
|
+
}
|
|
189
|
+
interface ValidateNoIslandsResult {
|
|
190
|
+
ok: boolean;
|
|
191
|
+
/** Nodes with zero deps and zero dependents, sorted by id. */
|
|
192
|
+
orphans: readonly IslandReport[];
|
|
193
|
+
summary(): string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Return node ids reachable from `from` through describe deps/edges.
|
|
197
|
+
*
|
|
198
|
+
* `upstream` follows dep edges toward causes; `downstream` follows reverse deps toward effects.
|
|
199
|
+
* The helper is intentionally pure over `DescribeSnapshot` (D39/D51): it never reads Nodes.
|
|
200
|
+
*/
|
|
201
|
+
declare function reachable(snapshot: DescribeSnapshot, from: string, direction: ReachableDirection, options?: ReachableOptions & {
|
|
202
|
+
withDetail: true;
|
|
203
|
+
}): ReachableResult;
|
|
204
|
+
declare function reachable(snapshot: DescribeSnapshot, from: string, direction: ReachableDirection, options?: ReachableOptions): readonly string[];
|
|
205
|
+
/**
|
|
206
|
+
* Explain the shortest describe-edge path from `from` to `to`.
|
|
207
|
+
*
|
|
208
|
+
* This is the rich companion to `Graph.describe({ explain })`: it reports found/no-path
|
|
209
|
+
* status and per-hop metadata, but remains a pure helper over the snapshot.
|
|
210
|
+
*/
|
|
211
|
+
declare function explainPath(snapshot: DescribeSnapshot, from: string, to: string, options?: ExplainPathOptions): CausalChain;
|
|
212
|
+
/** Detect nodes with zero deps and zero dependents in a describe snapshot. */
|
|
213
|
+
declare function validateNoIslands(snapshot: DescribeSnapshot): ValidateNoIslandsResult;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Helper-first worker compute (D138/D148).
|
|
217
|
+
*
|
|
218
|
+
* `prepare` runs on the graph thread and returns an owned input. The required
|
|
219
|
+
* backend receives only that input plus the static compute closure; Ctx/Node/
|
|
220
|
+
* graph state/live topology never cross the boundary.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
interface WorkerDerivedJob<TInput, TResult> {
|
|
224
|
+
readonly input: TInput;
|
|
225
|
+
readonly compute: (input: TInput) => TResult;
|
|
226
|
+
}
|
|
227
|
+
type WorkerDerivedSettlement<TResult> = {
|
|
228
|
+
readonly ok: true;
|
|
229
|
+
readonly value: TResult;
|
|
230
|
+
} | {
|
|
231
|
+
readonly ok: false;
|
|
232
|
+
readonly error: unknown;
|
|
233
|
+
};
|
|
234
|
+
type WorkerDerivedSettle<TResult> = (settlement: WorkerDerivedSettlement<TResult>) => void;
|
|
235
|
+
type WorkerDerivedCancel = () => void;
|
|
236
|
+
interface WorkerDerivedBackend<TInput, TResult> {
|
|
237
|
+
run(job: WorkerDerivedJob<TInput, TResult>, settle: WorkerDerivedSettle<TResult>): WorkerDerivedCancel | undefined;
|
|
238
|
+
}
|
|
239
|
+
interface WorkerDerivedOptions<TInput, TResult> {
|
|
240
|
+
readonly name?: string;
|
|
241
|
+
prepare(ctx: Ctx): TInput | undefined;
|
|
242
|
+
compute(input: TInput): TResult;
|
|
243
|
+
backend: WorkerDerivedBackend<TInput, TResult>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* D148 backend-required graph helper. No public submit API is exposed; the
|
|
247
|
+
* backend starts work only after this helper installs the graph-local fence.
|
|
248
|
+
*/
|
|
249
|
+
declare function workerDerived<TInput, TResult>(graph: Graph, deps: readonly Node<unknown>[], opts: WorkerDerivedOptions<TInput, TResult>): Node<TResult>;
|
|
250
|
+
|
|
251
|
+
export { type CascadingCacheEvent, type CascadingCachePolicy, type CascadingCacheStatus, type CausalChain, type CausalStep, DescribeNode, DescribeSnapshot, type ExplainPathOptions, type ExplainPathReason, Graph, type IslandReport, type ReachableDirection, type ReachableOptions, type ReachableResult, type ReactiveCascadingCache, type ReactiveCascadingCacheOptions, type ValidateNoIslandsResult, type WorkerDerivedBackend, type WorkerDerivedCancel, type WorkerDerivedJob, type WorkerDerivedOptions, type WorkerDerivedSettle, type WorkerDerivedSettlement, explainPath, reachable, reactiveCascadingCache, validateNoIslands, workerDerived };
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export { DescribeChangeset, DescribeEvent, PipeOperator, Stratified, StratifyOptions, StratifyRule, pipe, stratify, stratifyBranch, topologyDiff } from '../composition/index.js';
|
|
2
|
+
export { C as CapacityPolicy, I as IndexChange, a as IndexRow, L as ListChange, c as LogChange, M as MapChange, O as OrderedCapacityPolicy, j as ReactiveIndex, k as ReactiveIndexCapacityOrder, l as ReactiveIndexCapacityPolicy, m as ReactiveIndexOpt, n as ReactiveIndexOptions, s as ReactiveOpt, t as ReactiveView, u as RetentionPolicy, V as ViewCachePolicy, H as reactiveIndex } from '../reactive-collection-Cb1II1Fi.js';
|
|
3
|
+
export { R as ReactiveList, a as ReactiveListOpt, b as ReactiveListOptions, c as ReactiveLog, d as ReactiveLogOptions, e as ReactiveMap, f as ReactiveMapOpt, g as ReactiveMapOptions, h as ReactiveMapRetentionEntry, i as ReactiveMapRetentionPolicy, m as mergeReactiveLogs, r as reactiveList, j as reactiveLog, k as reactiveMap, s as scanLog } from '../reactive-map-BcB4KsQR.js';
|
|
4
|
+
export { restoreReactiveIndex, restoreReactiveList, restoreReactiveLog, restoreReactiveMap } from '../data-structures/index.js';
|
|
5
|
+
export { DescribeToAsciiOptions, DescribeToD2Options, DescribeToJsonOptions, DescribeToMermaidOptions, DescribeToMermaidUrlOptions, DescribeToPrettyOptions, DiagramDirection, MermaidLiveTheme, MermaidLiveUrlOptions, describeToAscii, describeToD2, describeToJson, describeToMermaid, describeToMermaidUrl, describeToPretty, mermaidLiveUrl } from '../render/index.js';
|
|
6
|
+
import { d as Graph } from '../graph-DfdF9zy4.js';
|
|
7
|
+
export { b as DerivedFn, E as EffectFn, G as GRAPH_BLUEPRINT_VERSION, c as GRAPH_CHECKPOINT_VERSION, e as GraphBlueprint, f as GraphBlueprintDiagnosticCode, g as GraphBlueprintDiagnosticIssue, h as GraphBlueprintDiagnostics, i as GraphBlueprintHash, j as GraphBlueprintHashInput, k as GraphBlueprintHashOptions, l as GraphBlueprintJson, m as GraphBlueprintOptions, n as GraphBlueprintProvenance, o as GraphCheckpoint, p as GraphCheckpointEdge, q as GraphCheckpointFactory, r as GraphCheckpointJson, s as GraphCheckpointMount, t as GraphCheckpointNode, u as GraphCheckpointTerminal, v as GraphCheckpointValue, w as GraphCheckpointVersion, x as GraphOptions, z as GraphRestoreDescriptor, A as GraphRestoreDescriptorContext, C as GraphRestoreRegistry, N as NodeProfile, F as NormalizedGraphTopologyNode, H as NormalizedGraphTopologySnapshot, O as ObserveEvent, I as ObserveEventEquals, J as ObservePredicate, K as ObserveStream, P as Profile, R as RestoreGraphOptions, Q as StateNode, T as SugarOpts, V as TopologyEvent, W as TopologyEventKind, X as TopologyGroup, Y as TopologyGroupOptions, Z as TopologyGroupReleaseOptions, _ as TopologyStream, a0 as canonicalTopologyBytes, a1 as canonicalTopologyJson, a3 as coalesceObserve, a4 as defaultRestoreRegistry, a9 as filterObserve, ac as graph, ad as graphBlueprintDiagnostics, aj as normalizeTopology, ao as restoreGraph, at as stateRestoreDescriptor, av as takeRestoreDescriptor, az as timerRestoreDescriptor, aB as withBlueprintHash, aC as withBlueprintProvenance } from '../graph-DfdF9zy4.js';
|
|
8
|
+
import { N as Node, C as Ctx } from '../types-h12mNYbq.js';
|
|
9
|
+
export { b as DriverCancel, c as DriverResult, E as EnvironmentDrivers, d as EnvironmentDriversInit, F as FetchLike, e as FetchResponseLike, g as HttpRequest, h as HttpResponse, L as LocalHttpDriver, i as LocalProcessDriver, j as LocalSseDriver, k as LocalWebSocketDriver, l as LocalWebhookDriver, w as ProcessCommand, x as ProcessResult, y as SseDriverEvent, z as SseEvent, A as SseRequest, G as WebSocketConstructorLike, I as WebSocketDriverEvent, J as WebSocketEvent, K as WebSocketLike, M as WebSocketRequest, O as WebSocketSend, Q as WebSocketSendResult, U as WebSocketSessionHandle, V as WebhookDriverEvent, X as WebhookEvent, Y as WebhookRegistration, a4 as domWebSocketDriver, a6 as fetchHttpDriver } from '../types-h12mNYbq.js';
|
|
10
|
+
import { f as KvStorageTier } from '../append-log-DzKMmjxx.js';
|
|
11
|
+
import { b as ReadThroughLookupTier } from '../read-through-DwyJhGs1.js';
|
|
12
|
+
import { a as DescribeNode, c as DescribeSnapshot } from '../describe-BZb7AS2y.js';
|
|
13
|
+
export { D as DescribeEdge, b as DescribeOpts, G as GraphTopologyEdge, d as GraphTopologyNode, e as GraphTopologySnapshot } from '../describe-BZb7AS2y.js';
|
|
14
|
+
export { B as BackoffPolicy, R as RetryPolicy, a as RetryState, b as RetryStatus, c as backoffDelayMs, n as nextRetryDelayMs, d as noBackoff, r as retryPolicy, s as shouldRetry } from '../resilience-Dig3Q7n0.js';
|
|
15
|
+
import '../messages-BZqrGGm1.js';
|
|
16
|
+
import '../core/index.js';
|
|
17
|
+
import '../codec-BB7p8fJc.js';
|
|
18
|
+
|
|
19
|
+
/** Dynamic read-through policy for {@link reactiveCascadingCache}. */
|
|
20
|
+
interface CascadingCachePolicy {
|
|
21
|
+
readonly promoteTo?: readonly number[] | false;
|
|
22
|
+
}
|
|
23
|
+
type CascadingCacheStatus<K> = {
|
|
24
|
+
readonly kind: "idle";
|
|
25
|
+
} | {
|
|
26
|
+
readonly kind: "loading";
|
|
27
|
+
readonly key: K;
|
|
28
|
+
readonly requestSeq: number;
|
|
29
|
+
} | {
|
|
30
|
+
readonly kind: "hit";
|
|
31
|
+
readonly key: K;
|
|
32
|
+
readonly requestSeq: number;
|
|
33
|
+
readonly tier?: ReadThroughLookupTier;
|
|
34
|
+
} | {
|
|
35
|
+
readonly kind: "miss";
|
|
36
|
+
readonly key: K;
|
|
37
|
+
readonly requestSeq: number;
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: "error";
|
|
40
|
+
readonly key: K;
|
|
41
|
+
readonly requestSeq: number;
|
|
42
|
+
readonly error: unknown;
|
|
43
|
+
};
|
|
44
|
+
type CascadingCacheEvent<K, V> = {
|
|
45
|
+
readonly kind: "request";
|
|
46
|
+
readonly key: K;
|
|
47
|
+
readonly requestSeq: number;
|
|
48
|
+
} | {
|
|
49
|
+
readonly kind: "invalidate";
|
|
50
|
+
readonly key: K;
|
|
51
|
+
readonly requestSeq: number;
|
|
52
|
+
} | {
|
|
53
|
+
readonly kind: "lookup";
|
|
54
|
+
readonly key: K;
|
|
55
|
+
readonly requestSeq: number;
|
|
56
|
+
readonly outcome: "hit" | "miss" | "error";
|
|
57
|
+
readonly tier: ReadThroughLookupTier;
|
|
58
|
+
readonly value?: V;
|
|
59
|
+
readonly error?: unknown;
|
|
60
|
+
} | {
|
|
61
|
+
readonly kind: "promotion";
|
|
62
|
+
readonly key: K;
|
|
63
|
+
readonly requestSeq: number;
|
|
64
|
+
readonly tier: ReadThroughLookupTier;
|
|
65
|
+
readonly ok: boolean;
|
|
66
|
+
readonly error?: unknown;
|
|
67
|
+
} | {
|
|
68
|
+
readonly kind: "fill";
|
|
69
|
+
readonly key: K;
|
|
70
|
+
readonly requestSeq: number;
|
|
71
|
+
readonly status: "hit" | "miss" | "error";
|
|
72
|
+
readonly value?: V;
|
|
73
|
+
readonly tier?: ReadThroughLookupTier;
|
|
74
|
+
readonly error?: unknown;
|
|
75
|
+
} | {
|
|
76
|
+
readonly kind: "error";
|
|
77
|
+
readonly key: K;
|
|
78
|
+
readonly requestSeq: number;
|
|
79
|
+
readonly stage: "lookup" | "promotion";
|
|
80
|
+
readonly tier?: ReadThroughLookupTier;
|
|
81
|
+
readonly error: unknown;
|
|
82
|
+
};
|
|
83
|
+
interface ReactiveCascadingCacheOptions<K extends string, V> {
|
|
84
|
+
readonly graph: Graph;
|
|
85
|
+
readonly request: Node<K>;
|
|
86
|
+
readonly policy?: Node<CascadingCachePolicy>;
|
|
87
|
+
readonly invalidate?: Node<K>;
|
|
88
|
+
readonly tiers: readonly KvStorageTier<V>[];
|
|
89
|
+
readonly load?: (key: K) => Promise<V | undefined> | V | undefined;
|
|
90
|
+
readonly tierNames?: readonly string[];
|
|
91
|
+
/**
|
|
92
|
+
* Storage promotion is explicit for the graph-layer factory. `requestSeq` guards visible graph
|
|
93
|
+
* value/status updates; without a generation/CAS storage contract, passive tier writes are
|
|
94
|
+
* best-effort and cannot be made stale-proof once an async `set` has started.
|
|
95
|
+
*
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
readonly promoteTo?: readonly number[] | false;
|
|
99
|
+
readonly name?: string;
|
|
100
|
+
readonly meta?: Record<string, unknown>;
|
|
101
|
+
}
|
|
102
|
+
interface ReactiveCascadingCache<K, V> {
|
|
103
|
+
readonly value: Node<V | undefined>;
|
|
104
|
+
readonly status: Node<CascadingCacheStatus<K>>;
|
|
105
|
+
readonly events: Node<CascadingCacheEvent<K, V>>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Free-standing graph-layer cascading cache factory (D104/D105/D107).
|
|
109
|
+
*
|
|
110
|
+
* Passive tiers stay in `tieredReadThrough`; this factory wraps lookup work at an async pool
|
|
111
|
+
* boundary and exposes every request, invalidation, lookup, promotion, fill, status, and value
|
|
112
|
+
* change through declared graph nodes. `requestSeq` is the stale-fill guard for visible graph
|
|
113
|
+
* nodes: older async fills may still be observable as events, but downstream value/status nodes
|
|
114
|
+
* ignore them. Storage promotion defaults to `false` here because passive tier writes have no
|
|
115
|
+
* generation/CAS contract; callers may opt in with `promoteTo` when best-effort promotion is
|
|
116
|
+
* acceptable.
|
|
117
|
+
*/
|
|
118
|
+
declare function reactiveCascadingCache<K extends string, V>(opts: ReactiveCascadingCacheOptions<K, V>): ReactiveCascadingCache<K, V>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Pure graph diagnostics over {@link DescribeSnapshot} (D39/R-describe).
|
|
122
|
+
*
|
|
123
|
+
* These helpers re-derive the useful frozen pure-ts inspection utilities without restoring
|
|
124
|
+
* graph methods, path facades, actors, soft edges, or storage coupling. They operate only on the
|
|
125
|
+
* public JSON-serializable describe shape; the live topology truth remains R-edges-derived.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
type ReachableDirection = "upstream" | "downstream";
|
|
129
|
+
interface ReachableOptions {
|
|
130
|
+
/** Maximum hop distance to walk. Omit for unbounded. */
|
|
131
|
+
maxDepth?: number;
|
|
132
|
+
/** Walk both upstream and downstream, ignoring `direction`. */
|
|
133
|
+
both?: boolean;
|
|
134
|
+
/** Return depths/truncation metadata instead of only sorted paths. */
|
|
135
|
+
withDetail?: boolean;
|
|
136
|
+
}
|
|
137
|
+
interface ReachableResult {
|
|
138
|
+
/** Reachable node ids, excluding the start id, sorted deterministically. */
|
|
139
|
+
paths: readonly string[];
|
|
140
|
+
/** Hop depth by reachable node id. */
|
|
141
|
+
depths: Readonly<Record<string, number>>;
|
|
142
|
+
/** True when `maxDepth` cut off at least one still-expandable frontier node. */
|
|
143
|
+
truncated: boolean;
|
|
144
|
+
}
|
|
145
|
+
type ExplainPathReason = "ok" | "no-such-from" | "no-such-to" | "no-path" | "max-depth-exceeded";
|
|
146
|
+
interface ExplainPathOptions {
|
|
147
|
+
/** Maximum hop distance to search. Omit for unbounded. */
|
|
148
|
+
maxDepth?: number;
|
|
149
|
+
/** When `from === to`, search for a non-trivial cycle before returning the trivial step. */
|
|
150
|
+
findCycle?: boolean;
|
|
151
|
+
}
|
|
152
|
+
interface CausalStep {
|
|
153
|
+
/** Mount-aware describe node id. */
|
|
154
|
+
id: string;
|
|
155
|
+
/** Operator/verb factory name from describe. */
|
|
156
|
+
factory: string;
|
|
157
|
+
/** Status as of the source snapshot. */
|
|
158
|
+
status: DescribeNode["status"];
|
|
159
|
+
/** Cached value when present; absence still means SENTINEL. */
|
|
160
|
+
value?: unknown;
|
|
161
|
+
/** Hop distance from the `from` node. */
|
|
162
|
+
hop: number;
|
|
163
|
+
/** First dep slot in the next step that points at this step, when the edge is dep-derived. */
|
|
164
|
+
depIndex?: number;
|
|
165
|
+
/** All matching dep slots when the next step depends on this step more than once. */
|
|
166
|
+
depIndices?: readonly number[];
|
|
167
|
+
}
|
|
168
|
+
interface CausalChain {
|
|
169
|
+
from: string;
|
|
170
|
+
to: string;
|
|
171
|
+
found: boolean;
|
|
172
|
+
reason: ExplainPathReason;
|
|
173
|
+
steps: readonly CausalStep[];
|
|
174
|
+
text: string;
|
|
175
|
+
toJSON(): {
|
|
176
|
+
from: string;
|
|
177
|
+
to: string;
|
|
178
|
+
found: boolean;
|
|
179
|
+
reason: ExplainPathReason;
|
|
180
|
+
steps: readonly CausalStep[];
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
interface IslandReport {
|
|
184
|
+
/** Node id from the flattened snapshot. */
|
|
185
|
+
id: string;
|
|
186
|
+
/** Factory/kind for quick triage. */
|
|
187
|
+
factory: string;
|
|
188
|
+
}
|
|
189
|
+
interface ValidateNoIslandsResult {
|
|
190
|
+
ok: boolean;
|
|
191
|
+
/** Nodes with zero deps and zero dependents, sorted by id. */
|
|
192
|
+
orphans: readonly IslandReport[];
|
|
193
|
+
summary(): string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Return node ids reachable from `from` through describe deps/edges.
|
|
197
|
+
*
|
|
198
|
+
* `upstream` follows dep edges toward causes; `downstream` follows reverse deps toward effects.
|
|
199
|
+
* The helper is intentionally pure over `DescribeSnapshot` (D39/D51): it never reads Nodes.
|
|
200
|
+
*/
|
|
201
|
+
declare function reachable(snapshot: DescribeSnapshot, from: string, direction: ReachableDirection, options?: ReachableOptions & {
|
|
202
|
+
withDetail: true;
|
|
203
|
+
}): ReachableResult;
|
|
204
|
+
declare function reachable(snapshot: DescribeSnapshot, from: string, direction: ReachableDirection, options?: ReachableOptions): readonly string[];
|
|
205
|
+
/**
|
|
206
|
+
* Explain the shortest describe-edge path from `from` to `to`.
|
|
207
|
+
*
|
|
208
|
+
* This is the rich companion to `Graph.describe({ explain })`: it reports found/no-path
|
|
209
|
+
* status and per-hop metadata, but remains a pure helper over the snapshot.
|
|
210
|
+
*/
|
|
211
|
+
declare function explainPath(snapshot: DescribeSnapshot, from: string, to: string, options?: ExplainPathOptions): CausalChain;
|
|
212
|
+
/** Detect nodes with zero deps and zero dependents in a describe snapshot. */
|
|
213
|
+
declare function validateNoIslands(snapshot: DescribeSnapshot): ValidateNoIslandsResult;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Helper-first worker compute (D138/D148).
|
|
217
|
+
*
|
|
218
|
+
* `prepare` runs on the graph thread and returns an owned input. The required
|
|
219
|
+
* backend receives only that input plus the static compute closure; Ctx/Node/
|
|
220
|
+
* graph state/live topology never cross the boundary.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
interface WorkerDerivedJob<TInput, TResult> {
|
|
224
|
+
readonly input: TInput;
|
|
225
|
+
readonly compute: (input: TInput) => TResult;
|
|
226
|
+
}
|
|
227
|
+
type WorkerDerivedSettlement<TResult> = {
|
|
228
|
+
readonly ok: true;
|
|
229
|
+
readonly value: TResult;
|
|
230
|
+
} | {
|
|
231
|
+
readonly ok: false;
|
|
232
|
+
readonly error: unknown;
|
|
233
|
+
};
|
|
234
|
+
type WorkerDerivedSettle<TResult> = (settlement: WorkerDerivedSettlement<TResult>) => void;
|
|
235
|
+
type WorkerDerivedCancel = () => void;
|
|
236
|
+
interface WorkerDerivedBackend<TInput, TResult> {
|
|
237
|
+
run(job: WorkerDerivedJob<TInput, TResult>, settle: WorkerDerivedSettle<TResult>): WorkerDerivedCancel | undefined;
|
|
238
|
+
}
|
|
239
|
+
interface WorkerDerivedOptions<TInput, TResult> {
|
|
240
|
+
readonly name?: string;
|
|
241
|
+
prepare(ctx: Ctx): TInput | undefined;
|
|
242
|
+
compute(input: TInput): TResult;
|
|
243
|
+
backend: WorkerDerivedBackend<TInput, TResult>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* D148 backend-required graph helper. No public submit API is exposed; the
|
|
247
|
+
* backend starts work only after this helper installs the graph-local fence.
|
|
248
|
+
*/
|
|
249
|
+
declare function workerDerived<TInput, TResult>(graph: Graph, deps: readonly Node<unknown>[], opts: WorkerDerivedOptions<TInput, TResult>): Node<TResult>;
|
|
250
|
+
|
|
251
|
+
export { type CascadingCacheEvent, type CascadingCachePolicy, type CascadingCacheStatus, type CausalChain, type CausalStep, DescribeNode, DescribeSnapshot, type ExplainPathOptions, type ExplainPathReason, Graph, type IslandReport, type ReachableDirection, type ReachableOptions, type ReachableResult, type ReactiveCascadingCache, type ReactiveCascadingCacheOptions, type ValidateNoIslandsResult, type WorkerDerivedBackend, type WorkerDerivedCancel, type WorkerDerivedJob, type WorkerDerivedOptions, type WorkerDerivedSettle, type WorkerDerivedSettlement, explainPath, reachable, reactiveCascadingCache, validateNoIslands, workerDerived };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import "../chunk-GAJW5I5P.js";
|
|
2
|
+
import {
|
|
3
|
+
coalesceObserve,
|
|
4
|
+
defaultRestoreRegistry,
|
|
5
|
+
explainPath,
|
|
6
|
+
filterObserve,
|
|
7
|
+
reachable,
|
|
8
|
+
reactiveCascadingCache,
|
|
9
|
+
restoreGraph,
|
|
10
|
+
stateRestoreDescriptor,
|
|
11
|
+
takeRestoreDescriptor,
|
|
12
|
+
timerRestoreDescriptor,
|
|
13
|
+
validateNoIslands,
|
|
14
|
+
workerDerived
|
|
15
|
+
} from "../chunk-Y3ZLRGHC.js";
|
|
16
|
+
import {
|
|
17
|
+
describeToAscii,
|
|
18
|
+
describeToD2,
|
|
19
|
+
describeToJson,
|
|
20
|
+
describeToMermaid,
|
|
21
|
+
describeToMermaidUrl,
|
|
22
|
+
describeToPretty,
|
|
23
|
+
mermaidLiveUrl
|
|
24
|
+
} from "../chunk-HDRL4VQQ.js";
|
|
25
|
+
import "../chunk-H2HTHFVN.js";
|
|
26
|
+
import {
|
|
27
|
+
pipe,
|
|
28
|
+
stratify,
|
|
29
|
+
stratifyBranch,
|
|
30
|
+
topologyDiff
|
|
31
|
+
} from "../chunk-D6BG7U6A.js";
|
|
32
|
+
import "../chunk-Z2ANQ6JW.js";
|
|
33
|
+
import {
|
|
34
|
+
GRAPH_BLUEPRINT_VERSION,
|
|
35
|
+
Graph,
|
|
36
|
+
StateNode,
|
|
37
|
+
canonicalTopologyBytes,
|
|
38
|
+
canonicalTopologyJson,
|
|
39
|
+
graph,
|
|
40
|
+
graphBlueprintDiagnostics,
|
|
41
|
+
normalizeTopology,
|
|
42
|
+
withBlueprintHash,
|
|
43
|
+
withBlueprintProvenance
|
|
44
|
+
} from "../chunk-2ILL7HQI.js";
|
|
45
|
+
import {
|
|
46
|
+
backoffDelayMs,
|
|
47
|
+
nextRetryDelayMs,
|
|
48
|
+
noBackoff,
|
|
49
|
+
retryPolicy,
|
|
50
|
+
shouldRetry
|
|
51
|
+
} from "../chunk-OOEN33FB.js";
|
|
52
|
+
import "../chunk-DKP56CSW.js";
|
|
53
|
+
import {
|
|
54
|
+
mergeReactiveLogs,
|
|
55
|
+
reactiveIndex,
|
|
56
|
+
reactiveList,
|
|
57
|
+
reactiveLog,
|
|
58
|
+
reactiveMap,
|
|
59
|
+
restoreReactiveIndex,
|
|
60
|
+
restoreReactiveList,
|
|
61
|
+
restoreReactiveLog,
|
|
62
|
+
restoreReactiveMap,
|
|
63
|
+
scanLog
|
|
64
|
+
} from "../chunk-RIIOUTGM.js";
|
|
65
|
+
import "../chunk-G4M3NHRJ.js";
|
|
66
|
+
import {
|
|
67
|
+
GRAPH_CHECKPOINT_VERSION
|
|
68
|
+
} from "../chunk-PKVBHGBM.js";
|
|
69
|
+
import {
|
|
70
|
+
EnvironmentDrivers,
|
|
71
|
+
domWebSocketDriver,
|
|
72
|
+
fetchHttpDriver
|
|
73
|
+
} from "../chunk-I3IHOHCJ.js";
|
|
74
|
+
import "../chunk-4VLAQHZI.js";
|
|
75
|
+
import "../chunk-SWTLEQL6.js";
|
|
76
|
+
import "../chunk-DK554R7P.js";
|
|
77
|
+
export {
|
|
78
|
+
EnvironmentDrivers,
|
|
79
|
+
GRAPH_BLUEPRINT_VERSION,
|
|
80
|
+
GRAPH_CHECKPOINT_VERSION,
|
|
81
|
+
Graph,
|
|
82
|
+
StateNode,
|
|
83
|
+
backoffDelayMs,
|
|
84
|
+
canonicalTopologyBytes,
|
|
85
|
+
canonicalTopologyJson,
|
|
86
|
+
coalesceObserve,
|
|
87
|
+
defaultRestoreRegistry,
|
|
88
|
+
describeToAscii,
|
|
89
|
+
describeToD2,
|
|
90
|
+
describeToJson,
|
|
91
|
+
describeToMermaid,
|
|
92
|
+
describeToMermaidUrl,
|
|
93
|
+
describeToPretty,
|
|
94
|
+
domWebSocketDriver,
|
|
95
|
+
explainPath,
|
|
96
|
+
fetchHttpDriver,
|
|
97
|
+
filterObserve,
|
|
98
|
+
graph,
|
|
99
|
+
graphBlueprintDiagnostics,
|
|
100
|
+
mergeReactiveLogs,
|
|
101
|
+
mermaidLiveUrl,
|
|
102
|
+
nextRetryDelayMs,
|
|
103
|
+
noBackoff,
|
|
104
|
+
normalizeTopology,
|
|
105
|
+
pipe,
|
|
106
|
+
reachable,
|
|
107
|
+
reactiveCascadingCache,
|
|
108
|
+
reactiveIndex,
|
|
109
|
+
reactiveList,
|
|
110
|
+
reactiveLog,
|
|
111
|
+
reactiveMap,
|
|
112
|
+
restoreGraph,
|
|
113
|
+
restoreReactiveIndex,
|
|
114
|
+
restoreReactiveList,
|
|
115
|
+
restoreReactiveLog,
|
|
116
|
+
restoreReactiveMap,
|
|
117
|
+
retryPolicy,
|
|
118
|
+
scanLog,
|
|
119
|
+
shouldRetry,
|
|
120
|
+
stateRestoreDescriptor,
|
|
121
|
+
stratify,
|
|
122
|
+
stratifyBranch,
|
|
123
|
+
takeRestoreDescriptor,
|
|
124
|
+
timerRestoreDescriptor,
|
|
125
|
+
topologyDiff,
|
|
126
|
+
validateNoIslands,
|
|
127
|
+
withBlueprintHash,
|
|
128
|
+
withBlueprintProvenance,
|
|
129
|
+
workerDerived
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|