@graphrefly/ts 0.0.2 → 0.0.3
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 +197 -117
- package/dist/{actions-types-wl9Mgkmr.d.cts → actions-types-CH-XCU9O.d.cts} +4 -4
- package/dist/{actions-types-CSC3NMDl.d.ts → actions-types-w2iPQTkv.d.ts} +4 -4
- package/dist/adapters/index.cjs.map +1 -1
- package/dist/adapters/index.d.cts +10 -10
- package/dist/adapters/index.d.ts +10 -10
- package/dist/adapters/index.js +7 -7
- package/dist/adapters/nestjs/microservices.d.cts +3 -3
- package/dist/adapters/nestjs/microservices.d.ts +3 -3
- package/dist/adapters/nestjs/native.cjs.map +1 -1
- package/dist/adapters/nestjs/native.d.cts +4 -4
- package/dist/adapters/nestjs/native.d.ts +4 -4
- package/dist/adapters/nestjs/native.js +3 -3
- package/dist/adapters/nestjs/websockets.d.cts +3 -3
- package/dist/adapters/nestjs/websockets.d.ts +3 -3
- package/dist/adapters/nestjs.d.cts +3 -3
- package/dist/adapters/nestjs.d.ts +3 -3
- package/dist/adapters/observe-storage.d.cts +3 -3
- package/dist/adapters/observe-storage.d.ts +3 -3
- package/dist/adapters/react.d.cts +2 -2
- package/dist/adapters/react.d.ts +2 -2
- package/dist/adapters/solid.d.cts +2 -2
- package/dist/adapters/solid.d.ts +2 -2
- package/dist/adapters/svelte.d.cts +2 -2
- package/dist/adapters/svelte.d.ts +2 -2
- package/dist/adapters/vue.d.cts +2 -2
- package/dist/adapters/vue.d.ts +2 -2
- package/dist/{agent-runtime-types-core-hU299uIC.d.ts → agent-runtime-types-core-CKwrBDyi.d.ts} +1 -1
- package/dist/{agent-runtime-types-core-CaXfKNtY.d.cts → agent-runtime-types-core-bfl4m0vM.d.cts} +1 -1
- package/dist/{agent-runtime-types-tool-DninPEzk.d.cts → agent-runtime-types-tool-BLPV3azj.d.cts} +4 -4
- package/dist/{agent-runtime-types-tool-BEpSINol.d.ts → agent-runtime-types-tool-hwqvVqNt.d.ts} +4 -4
- package/dist/{agentic-memory-retention-BmGX368S.d.ts → agentic-memory-retention-CLwI76JK.d.ts} +2 -2
- package/dist/{agentic-memory-retention-Ih1qhX9Z.d.cts → agentic-memory-retention-Cz8GR6ie.d.cts} +2 -2
- package/dist/{agentic-memory-types-FnnYlVUs.d.cts → agentic-memory-types-JDr7MPhh.d.cts} +2 -2
- package/dist/{agentic-memory-types-CVSUS6XR.d.ts → agentic-memory-types-khYJgzKL.d.ts} +2 -2
- package/dist/{capability-admission-lwSecxXs.d.cts → capability-admission-B8RNFyaZ.d.cts} +3 -3
- package/dist/{capability-admission-BW2CziT6.d.ts → capability-admission-Dkw1Xz3r.d.ts} +3 -3
- package/dist/{chunk-SIDJO2T4.js → chunk-3J7UPZL5.js} +6 -6
- package/dist/{chunk-ECURQ3HD.js → chunk-3LYI6ADX.js} +4 -4
- package/dist/chunk-3LYI6ADX.js.map +1 -0
- package/dist/{chunk-M7J6Z4IJ.js → chunk-4M37FH2I.js} +2 -2
- package/dist/chunk-4M37FH2I.js.map +1 -0
- package/dist/{chunk-CJIFGJQG.js → chunk-54WPEODM.js} +2 -2
- package/dist/chunk-54WPEODM.js.map +1 -0
- package/dist/{chunk-CX6B6PO2.js → chunk-DKFWDTVY.js} +2 -2
- package/dist/chunk-DKFWDTVY.js.map +1 -0
- package/dist/{chunk-SHZDP2MQ.js → chunk-GXU6WFEJ.js} +1 -1
- package/dist/chunk-GXU6WFEJ.js.map +1 -0
- package/dist/{chunk-YDWBXXQZ.js → chunk-KFURM6FM.js} +3 -3
- package/dist/{chunk-STXRMPW4.js → chunk-MCOFHMUU.js} +2 -2
- package/dist/{chunk-EOKT4QFF.js → chunk-NNDIFUKX.js} +3 -3
- package/dist/chunk-NNDIFUKX.js.map +1 -0
- package/dist/{chunk-TPND5MJS.js → chunk-PUSRRALM.js} +3 -3
- package/dist/{chunk-7HZRJMN6.js → chunk-UEMN5URK.js} +2 -2
- package/dist/{chunk-2NJP6GO4.js → chunk-WOS7RJYZ.js} +2 -2
- package/dist/composition/index.cjs.map +1 -1
- package/dist/composition/index.d.cts +3 -3
- package/dist/composition/index.d.ts +3 -3
- package/dist/composition/index.js +3 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +23 -2
- package/dist/core/index.d.ts +23 -2
- package/dist/core/index.js +1 -1
- package/dist/cqrs/index.d.cts +3 -3
- package/dist/cqrs/index.d.ts +3 -3
- package/dist/cqrs/messaging.d.cts +4 -4
- package/dist/cqrs/messaging.d.ts +4 -4
- package/dist/cqrs/work-queue.d.cts +5 -5
- package/dist/cqrs/work-queue.d.ts +5 -5
- package/dist/data-structures/index.cjs.map +1 -1
- package/dist/data-structures/index.d.cts +8 -8
- package/dist/data-structures/index.d.ts +8 -8
- package/dist/data-structures/index.js +4 -4
- package/dist/{describe-CQRrkv-Q.d.cts → describe-BumQ-3_0.d.cts} +1 -1
- package/dist/{describe-B_A5fbXH.d.ts → describe-cYr_Z5zm.d.ts} +1 -1
- package/dist/executors/tool-provider-adapters.d.cts +7 -7
- package/dist/executors/tool-provider-adapters.d.ts +7 -7
- package/dist/executors/tool-provider-adapters.js +5 -5
- package/dist/executors/tool-provider-runtime.cjs.map +1 -1
- package/dist/executors/tool-provider-runtime.d.cts +8 -8
- package/dist/executors/tool-provider-runtime.d.ts +8 -8
- package/dist/executors/tool-provider-runtime.js +2 -2
- package/dist/executors/tool-provider.cjs.map +1 -1
- package/dist/executors/tool-provider.d.cts +7 -7
- package/dist/executors/tool-provider.d.ts +7 -7
- package/dist/executors/tool-provider.js +2 -2
- package/dist/executors/work-queue.d.cts +6 -6
- package/dist/executors/work-queue.d.ts +6 -6
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +9 -9
- package/dist/graph/index.d.ts +9 -9
- package/dist/graph/index.js +7 -7
- package/dist/{graph-CWK3HLPB.d.cts → graph-C1C-wb0L.d.cts} +135 -8
- package/dist/{graph-ho5sotHP.d.ts → graph-CS0b4V9B.d.ts} +135 -8
- package/dist/{index-CQWcE0Dw.d.ts → index-DLrNopda.d.cts} +135 -8
- package/dist/{index-DHA1i67c.d.cts → index-DzJni3_6.d.ts} +135 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +13 -13
- package/dist/inspection/boundary.d.cts +4 -4
- package/dist/inspection/boundary.d.ts +4 -4
- package/dist/{measurements-OMpCeBwh.d.ts → measurements-BWAnochv.d.ts} +139 -9
- package/dist/{measurements-C0mAvWU1.d.cts → measurements-B_gJfD8h.d.cts} +139 -9
- package/dist/messaging/index.d.cts +5 -5
- package/dist/messaging/index.d.ts +5 -5
- package/dist/operators/index.cjs.map +1 -1
- package/dist/operators/index.d.cts +5 -5
- package/dist/operators/index.d.ts +5 -5
- package/dist/operators/index.js +4 -4
- package/dist/orchestration/index.cjs.map +1 -1
- package/dist/orchestration/index.d.cts +12 -12
- package/dist/orchestration/index.d.ts +12 -12
- package/dist/orchestration/index.js +5 -5
- package/dist/orchestration/messaging.d.cts +5 -5
- package/dist/orchestration/messaging.d.ts +5 -5
- package/dist/orchestration/work-queue.d.cts +8 -8
- package/dist/orchestration/work-queue.d.ts +8 -8
- package/dist/patterns/event-flow.d.cts +4 -4
- package/dist/patterns/event-flow.d.ts +4 -4
- package/dist/patterns/index.d.cts +6 -6
- package/dist/patterns/index.d.ts +6 -6
- package/dist/{process-types-h3uRlzDc.d.cts → process-types-BB7oRhX3.d.cts} +1 -1
- package/dist/{process-types-C9uMYz3i.d.ts → process-types-QNhyoYJ8.d.ts} +1 -1
- package/dist/{reactive-collection-B9R0Bl1P.d.cts → reactive-collection-BYlWvtnp.d.cts} +3 -3
- package/dist/{reactive-collection-BXFrH0U2.d.ts → reactive-collection-efOEdGFN.d.ts} +3 -3
- package/dist/{reactive-collection-storage-BLGv8Xp8.d.cts → reactive-collection-storage-BjoLsoiC.d.cts} +5 -5
- package/dist/{reactive-collection-storage-a4zD3665.d.ts → reactive-collection-storage-DwW6UuK_.d.ts} +5 -5
- package/dist/{reactive-map-jle5dnok.d.ts → reactive-map-BHacbIqz.d.cts} +7 -3
- package/dist/{reactive-map-C_8sOfdS.d.cts → reactive-map-DN4Jyqnf.d.ts} +7 -3
- package/dist/render/index.d.cts +2 -2
- package/dist/render/index.d.ts +2 -2
- package/dist/{scheduled-readiness-5rwQlyjV.d.ts → scheduled-readiness-BmqXxnzX.d.ts} +3 -3
- package/dist/{scheduled-readiness-DpRY8jI0.d.cts → scheduled-readiness-CYSw7KDE.d.cts} +3 -3
- package/dist/{semantic-memory-graph-DlZBD_Eu.d.cts → semantic-memory-graph-B_LwbM-E.d.cts} +2 -2
- package/dist/{semantic-memory-graph-C2ZUwIlq.d.ts → semantic-memory-graph-rsFNNhwn.d.ts} +2 -2
- package/dist/{semantic-memory-graph-types-BvzdqmkY.d.cts → semantic-memory-graph-types-Y73bbwVI.d.cts} +1 -1
- package/dist/{semantic-memory-graph-types-Ci-OtahO.d.ts → semantic-memory-graph-types-safmPkuX.d.ts} +1 -1
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +11 -11
- package/dist/solutions/index.d.ts +11 -11
- package/dist/solutions/index.js +2 -2
- package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/browser/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/browser/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/browser/index.js +2 -2
- package/dist/solutions/reactive-layout/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/index.d.cts +6 -6
- package/dist/solutions/reactive-layout/index.d.ts +6 -6
- package/dist/solutions/reactive-layout/index.js +2 -2
- package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/node-canvas/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/node-canvas/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/node-canvas/index.js +2 -2
- package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/react-native/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/react-native/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/react-native/index.js +2 -2
- package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -1
- package/dist/solutions/reactive-layout/skia/index.d.cts +4 -4
- package/dist/solutions/reactive-layout/skia/index.d.ts +4 -4
- package/dist/solutions/reactive-layout/skia/index.js +2 -2
- package/dist/solutions/work-item/actions.d.cts +10 -10
- package/dist/solutions/work-item/actions.d.ts +10 -10
- package/dist/solutions/work-item/scheduling.d.cts +9 -9
- package/dist/solutions/work-item/scheduling.d.ts +9 -9
- package/dist/solutions/work-item/work-queue.d.cts +7 -7
- package/dist/solutions/work-item/work-queue.d.ts +7 -7
- package/dist/sources/browser.cjs.map +1 -1
- package/dist/sources/browser.d.cts +22 -6
- package/dist/sources/browser.d.ts +22 -6
- package/dist/sources/browser.js +3 -3
- package/dist/sources/browser.js.map +1 -1
- package/dist/sources/index.cjs.map +1 -1
- package/dist/sources/index.d.cts +4 -4
- package/dist/sources/index.d.ts +4 -4
- package/dist/sources/index.js +3 -3
- package/dist/sources/node.d.cts +3 -3
- package/dist/sources/node.d.ts +3 -3
- package/dist/storage/index.d.cts +5 -5
- package/dist/storage/index.d.ts +5 -5
- package/dist/{store-BmtEs9mG.d.ts → store-6_CHF6Ge.d.ts} +1 -1
- package/dist/{store-PAAsYvML.d.cts → store-BljX8RkQ.d.cts} +1 -1
- package/dist/{types-BhveCMg5.d.cts → types-BAw2QVVE.d.cts} +1 -1
- package/dist/{types-XDoqxYO9.d.cts → types-BUbbbh4f.d.cts} +1 -1
- package/dist/{types-BWK2ay3e.d.cts → types-CMnzoL54.d.cts} +2 -2
- package/dist/{types-BS6CyR-x.d.cts → types-CTN3XoMl.d.cts} +30 -0
- package/dist/{types-BXKSAoE1.d.cts → types-CV_ohy5T.d.cts} +2 -2
- package/dist/{types-C9NOgNJw.d.ts → types-DChxk1vK.d.ts} +30 -0
- package/dist/{types-CTsQ8Ww4.d.ts → types-DRu7SnLV.d.ts} +1 -1
- package/dist/{types-DL_05n2M.d.ts → types-DeID_FRl.d.ts} +1 -1
- package/dist/{types-BRNKoFHj.d.ts → types-IhKH0hGW.d.ts} +2 -2
- package/dist/{types-BaPpZItj.d.ts → types-ePlD2uyT.d.ts} +2 -2
- package/dist/{work-item-runtime-types-CHO03AKh.d.cts → work-item-runtime-types-BTxLskN5.d.cts} +2 -2
- package/dist/{work-item-runtime-types-BqtWnSCS.d.ts → work-item-runtime-types-DAsZbb2y.d.ts} +2 -2
- package/dist/work-queue/index.d.cts +6 -6
- package/dist/work-queue/index.d.ts +6 -6
- package/package.json +9 -1
- package/dist/chunk-CJIFGJQG.js.map +0 -1
- package/dist/chunk-CX6B6PO2.js.map +0 -1
- package/dist/chunk-ECURQ3HD.js.map +0 -1
- package/dist/chunk-EOKT4QFF.js.map +0 -1
- package/dist/chunk-M7J6Z4IJ.js.map +0 -1
- package/dist/chunk-SHZDP2MQ.js.map +0 -1
- /package/dist/{chunk-SIDJO2T4.js.map → chunk-3J7UPZL5.js.map} +0 -0
- /package/dist/{chunk-YDWBXXQZ.js.map → chunk-KFURM6FM.js.map} +0 -0
- /package/dist/{chunk-STXRMPW4.js.map → chunk-MCOFHMUU.js.map} +0 -0
- /package/dist/{chunk-TPND5MJS.js.map → chunk-PUSRRALM.js.map} +0 -0
- /package/dist/{chunk-7HZRJMN6.js.map → chunk-UEMN5URK.js.map} +0 -0
- /package/dist/{chunk-2NJP6GO4.js.map → chunk-WOS7RJYZ.js.map} +0 -0
package/dist/graph/index.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { DescribeChangeset, DescribeEvent, PipeOperator, Stratified, StratifyOptions, StratifyRule, pipe, stratify, stratifyBranch, topologyDiff } from '../composition/index.cjs';
|
|
2
|
-
export { I as IndexChange, a as IndexRow, L as ListChange, c as LogChange, M as MapChange, j as ReactiveIndex, k as ReactiveIndexCapacityOrder, l as ReactiveIndexCapacityPolicy, m as ReactiveIndexOpt, n as ReactiveIndexOptions, s as ReactiveView, E as reactiveIndex } from '../reactive-collection-
|
|
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-
|
|
4
|
-
export { C as CapacityPolicy, O as OrderedCapacityPolicy, R as ReactiveOpt, a as RetentionPolicy, V as ViewCachePolicy } from '../types-
|
|
2
|
+
export { I as IndexChange, a as IndexRow, L as ListChange, c as LogChange, M as MapChange, j as ReactiveIndex, k as ReactiveIndexCapacityOrder, l as ReactiveIndexCapacityPolicy, m as ReactiveIndexOpt, n as ReactiveIndexOptions, s as ReactiveView, E as reactiveIndex } from '../reactive-collection-BYlWvtnp.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-BHacbIqz.cjs';
|
|
4
|
+
export { C as CapacityPolicy, O as OrderedCapacityPolicy, R as ReactiveOpt, a as RetentionPolicy, V as ViewCachePolicy } from '../types-BUbbbh4f.cjs';
|
|
5
5
|
export { restoreReactiveIndex, restoreReactiveList, restoreReactiveLog, restoreReactiveMap } from '../data-structures/index.cjs';
|
|
6
6
|
export { DescribeToAsciiOptions, DescribeToD2Options, DescribeToJsonOptions, DescribeToMermaidOptions, DescribeToMermaidUrlOptions, DescribeToPrettyOptions, DiagramDirection, MermaidLiveTheme, MermaidLiveUrlOptions, describeToAscii, describeToD2, describeToJson, describeToMermaid, describeToMermaidUrl, describeToPretty, mermaidLiveUrl } from '../render/index.cjs';
|
|
7
|
-
import { d as Graph } from '../graph-
|
|
8
|
-
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-
|
|
9
|
-
import { N as Node, C as Ctx } from '../types-
|
|
10
|
-
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-
|
|
7
|
+
import { d as Graph } from '../graph-C1C-wb0L.cjs';
|
|
8
|
+
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-C1C-wb0L.cjs';
|
|
9
|
+
import { N as Node, C as Ctx } from '../types-CTN3XoMl.cjs';
|
|
10
|
+
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-CTN3XoMl.cjs';
|
|
11
11
|
import { f as KvStorageTier } from '../append-log-DisvEReb.cjs';
|
|
12
12
|
import { b as ReadThroughLookupTier } from '../read-through-B1CYPfq_.cjs';
|
|
13
|
-
import { a as DescribeNode, c as DescribeSnapshot } from '../describe-
|
|
14
|
-
export { D as DescribeEdge, b as DescribeOpts, G as GraphTopologyEdge, d as GraphTopologyNode, e as GraphTopologySnapshot } from '../describe-
|
|
13
|
+
import { a as DescribeNode, c as DescribeSnapshot } from '../describe-BumQ-3_0.cjs';
|
|
14
|
+
export { D as DescribeEdge, b as DescribeOpts, G as GraphTopologyEdge, d as GraphTopologyNode, e as GraphTopologySnapshot } from '../describe-BumQ-3_0.cjs';
|
|
15
15
|
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';
|
|
16
16
|
import '../messages-CAzUPPJM.cjs';
|
|
17
17
|
import '../core/index.cjs';
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { DescribeChangeset, DescribeEvent, PipeOperator, Stratified, StratifyOptions, StratifyRule, pipe, stratify, stratifyBranch, topologyDiff } from '../composition/index.js';
|
|
2
|
-
export { I as IndexChange, a as IndexRow, L as ListChange, c as LogChange, M as MapChange, j as ReactiveIndex, k as ReactiveIndexCapacityOrder, l as ReactiveIndexCapacityPolicy, m as ReactiveIndexOpt, n as ReactiveIndexOptions, s as ReactiveView, E as reactiveIndex } from '../reactive-collection-
|
|
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-
|
|
4
|
-
export { C as CapacityPolicy, O as OrderedCapacityPolicy, R as ReactiveOpt, a as RetentionPolicy, V as ViewCachePolicy } from '../types-
|
|
2
|
+
export { I as IndexChange, a as IndexRow, L as ListChange, c as LogChange, M as MapChange, j as ReactiveIndex, k as ReactiveIndexCapacityOrder, l as ReactiveIndexCapacityPolicy, m as ReactiveIndexOpt, n as ReactiveIndexOptions, s as ReactiveView, E as reactiveIndex } from '../reactive-collection-efOEdGFN.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-DN4Jyqnf.js';
|
|
4
|
+
export { C as CapacityPolicy, O as OrderedCapacityPolicy, R as ReactiveOpt, a as RetentionPolicy, V as ViewCachePolicy } from '../types-DeID_FRl.js';
|
|
5
5
|
export { restoreReactiveIndex, restoreReactiveList, restoreReactiveLog, restoreReactiveMap } from '../data-structures/index.js';
|
|
6
6
|
export { DescribeToAsciiOptions, DescribeToD2Options, DescribeToJsonOptions, DescribeToMermaidOptions, DescribeToMermaidUrlOptions, DescribeToPrettyOptions, DiagramDirection, MermaidLiveTheme, MermaidLiveUrlOptions, describeToAscii, describeToD2, describeToJson, describeToMermaid, describeToMermaidUrl, describeToPretty, mermaidLiveUrl } from '../render/index.js';
|
|
7
|
-
import { d as Graph } from '../graph-
|
|
8
|
-
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-
|
|
9
|
-
import { N as Node, C as Ctx } from '../types-
|
|
10
|
-
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-
|
|
7
|
+
import { d as Graph } from '../graph-CS0b4V9B.js';
|
|
8
|
+
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-CS0b4V9B.js';
|
|
9
|
+
import { N as Node, C as Ctx } from '../types-DChxk1vK.js';
|
|
10
|
+
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-DChxk1vK.js';
|
|
11
11
|
import { f as KvStorageTier } from '../append-log-DzKMmjxx.js';
|
|
12
12
|
import { b as ReadThroughLookupTier } from '../read-through-DwyJhGs1.js';
|
|
13
|
-
import { a as DescribeNode, c as DescribeSnapshot } from '../describe-
|
|
14
|
-
export { D as DescribeEdge, b as DescribeOpts, G as GraphTopologyEdge, d as GraphTopologyNode, e as GraphTopologySnapshot } from '../describe-
|
|
13
|
+
import { a as DescribeNode, c as DescribeSnapshot } from '../describe-cYr_Z5zm.js';
|
|
14
|
+
export { D as DescribeEdge, b as DescribeOpts, G as GraphTopologyEdge, d as GraphTopologyNode, e as GraphTopologySnapshot } from '../describe-cYr_Z5zm.js';
|
|
15
15
|
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';
|
|
16
16
|
import '../messages-CAzUPPJM.js';
|
|
17
17
|
import '../core/index.js';
|
package/dist/graph/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
timerRestoreDescriptor,
|
|
14
14
|
validateNoIslands,
|
|
15
15
|
workerDerived
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-3J7UPZL5.js";
|
|
17
17
|
import {
|
|
18
18
|
describeToAscii,
|
|
19
19
|
describeToD2,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
stratify,
|
|
29
29
|
stratifyBranch,
|
|
30
30
|
topologyDiff
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-UEMN5URK.js";
|
|
32
32
|
import {
|
|
33
33
|
GRAPH_BLUEPRINT_VERSION,
|
|
34
34
|
Graph,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
normalizeTopology,
|
|
41
41
|
withBlueprintHash,
|
|
42
42
|
withBlueprintProvenance
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-NNDIFUKX.js";
|
|
44
44
|
import "../chunk-4Q77MMJY.js";
|
|
45
45
|
import {
|
|
46
46
|
mergeReactiveLogs,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
restoreReactiveLog,
|
|
54
54
|
restoreReactiveMap,
|
|
55
55
|
scanLog
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-3LYI6ADX.js";
|
|
57
57
|
import "../chunk-6E76H4OU.js";
|
|
58
58
|
import {
|
|
59
59
|
backoffDelayMs,
|
|
@@ -62,15 +62,15 @@ import {
|
|
|
62
62
|
retryPolicy,
|
|
63
63
|
shouldRetry
|
|
64
64
|
} from "../chunk-OOEN33FB.js";
|
|
65
|
-
import "../chunk-
|
|
65
|
+
import "../chunk-DKFWDTVY.js";
|
|
66
66
|
import {
|
|
67
67
|
GRAPH_CHECKPOINT_VERSION
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-54WPEODM.js";
|
|
69
69
|
import {
|
|
70
70
|
EnvironmentDrivers,
|
|
71
71
|
domWebSocketDriver,
|
|
72
72
|
fetchHttpDriver
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-GXU6WFEJ.js";
|
|
74
74
|
import "../chunk-WQIA3GFB.js";
|
|
75
75
|
import "../chunk-S6HXABGL.js";
|
|
76
76
|
import "../chunk-JKAYLDQV.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchCtx } from './core/index.cjs';
|
|
2
|
-
import { q as NodeVersionJson, D as Dispatcher, u as NodeVersioningPolicy, E as EnvironmentDrivers, n as NodeOptions, N as Node, m as NodeFn, C as Ctx, B as Status } from './types-
|
|
2
|
+
import { q as NodeVersionJson, D as Dispatcher, u as NodeVersioningPolicy, E as EnvironmentDrivers, n as NodeOptions, N as Node, m as NodeFn, C as Ctx, B as Status } from './types-CTN3XoMl.cjs';
|
|
3
3
|
import { S as StrictJsonObject, b as StrictJsonValue } from './codec-BB7p8fJc.cjs';
|
|
4
|
-
import { G as GraphTopologyEdge, e as GraphTopologySnapshot, b as DescribeOpts, c as DescribeSnapshot } from './describe-
|
|
4
|
+
import { G as GraphTopologyEdge, e as GraphTopologySnapshot, b as DescribeOpts, c as DescribeSnapshot } from './describe-BumQ-3_0.cjs';
|
|
5
5
|
import { M as Message } from './messages-CAzUPPJM.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -300,19 +300,96 @@ declare function define<S, T>(ref: string, fn: (v: S) => T, opts?: DefineOpts):
|
|
|
300
300
|
* any graph's index.
|
|
301
301
|
*/
|
|
302
302
|
declare function initNode<TIn, TOut>(op: Operator<TIn, TOut>, deps: readonly Node<unknown>[], opts?: NodeOptions<TOut>): Node<TOut>;
|
|
303
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* Transform each upstream DATA value with a synchronous mapping function.
|
|
305
|
+
*
|
|
306
|
+
* @param fn - Mapping function, or a named `define()` definition for checkpoint restoration.
|
|
307
|
+
* @returns An operator that emits `fn(value)` for each upstream value.
|
|
308
|
+
* @example
|
|
309
|
+
* ```ts
|
|
310
|
+
* import { graph, map } from "@graphrefly/ts";
|
|
311
|
+
*
|
|
312
|
+
* const g = graph();
|
|
313
|
+
* const count = g.state(1);
|
|
314
|
+
* const doubled = g.initNode(map((value: number) => value * 2), [count]);
|
|
315
|
+
* ```
|
|
316
|
+
* @remarks **Restorable maps:** Passing a named `define()` registers semantic restore metadata.
|
|
317
|
+
* @category operators
|
|
318
|
+
*/
|
|
304
319
|
declare function map<S, T>(fn: ((v: S) => T) | Definition<S, T>): Operator<S, T>;
|
|
305
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* Pass through upstream values that satisfy a predicate.
|
|
322
|
+
*
|
|
323
|
+
* @param pred - Predicate evaluated for each upstream DATA value.
|
|
324
|
+
* @returns An operator that emits matching values and stays quiet for non-matches.
|
|
325
|
+
* @example
|
|
326
|
+
* ```ts
|
|
327
|
+
* import { filter, graph } from "@graphrefly/ts";
|
|
328
|
+
*
|
|
329
|
+
* const g = graph();
|
|
330
|
+
* const count = g.state(0);
|
|
331
|
+
* const even = g.initNode(filter((value: number) => value % 2 === 0), [count]);
|
|
332
|
+
* ```
|
|
333
|
+
* @category operators
|
|
334
|
+
*/
|
|
306
335
|
declare function filter<S>(pred: (v: S) => boolean): Operator<S, S>;
|
|
307
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* Accumulate upstream values and emit each intermediate accumulator.
|
|
338
|
+
*
|
|
339
|
+
* @param reducer - Reducer called with the previous accumulator and each upstream value.
|
|
340
|
+
* @param seed - Initial accumulator value.
|
|
341
|
+
* @returns An operator that emits the accumulator after every input value.
|
|
342
|
+
* @example
|
|
343
|
+
* ```ts
|
|
344
|
+
* import { graph, scan } from "@graphrefly/ts";
|
|
345
|
+
*
|
|
346
|
+
* const g = graph();
|
|
347
|
+
* const values = g.state(1);
|
|
348
|
+
* const total = g.initNode(scan((sum: number, value: number) => sum + value, 0), [values]);
|
|
349
|
+
* ```
|
|
350
|
+
* @category operators
|
|
351
|
+
*/
|
|
308
352
|
declare function scan<S, T>(reducer: (acc: T, v: S) => T, seed: T): Operator<S, T>;
|
|
309
|
-
/**
|
|
353
|
+
/**
|
|
354
|
+
* Emit the first `n` upstream values, then complete.
|
|
355
|
+
*
|
|
356
|
+
* @param n - Number of DATA values to pass before completion.
|
|
357
|
+
* @returns An operator that forwards at most `n` values and then emits COMPLETE.
|
|
358
|
+
* @example
|
|
359
|
+
* ```ts
|
|
360
|
+
* import { graph, take } from "@graphrefly/ts";
|
|
361
|
+
*
|
|
362
|
+
* const firstThree = graph().initNode(take<number>(3), [source]);
|
|
363
|
+
* ```
|
|
364
|
+
* @category operators
|
|
365
|
+
*/
|
|
310
366
|
declare function take<S>(n: number): Operator<S, S>;
|
|
311
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Suppress consecutive duplicate values.
|
|
369
|
+
*
|
|
370
|
+
* @param eq - Equality predicate; defaults to `Object.is`.
|
|
371
|
+
* @returns An operator that emits only when the next value differs from the previous emitted value.
|
|
372
|
+
* @example
|
|
373
|
+
* ```ts
|
|
374
|
+
* import { distinctUntilChanged, graph } from "@graphrefly/ts";
|
|
375
|
+
*
|
|
376
|
+
* const stable = graph().initNode(distinctUntilChanged<number>(), [source]);
|
|
377
|
+
* ```
|
|
378
|
+
* @category operators
|
|
379
|
+
*/
|
|
312
380
|
declare function distinctUntilChanged<S>(eq?: (a: S, b: S) => boolean): Operator<S, S>;
|
|
313
381
|
/**
|
|
314
382
|
* merge: interleave several sources — emit each DATA from whichever dep fired. `partial:true`
|
|
315
383
|
* (combine-family): fires on any single dep, not gated on all deps settling.
|
|
384
|
+
*
|
|
385
|
+
* @returns An operator that forwards DATA from any dependency.
|
|
386
|
+
* @example
|
|
387
|
+
* ```ts
|
|
388
|
+
* import { graph, merge } from "@graphrefly/ts";
|
|
389
|
+
*
|
|
390
|
+
* const merged = graph().initNode(merge<number>(), [left, right]);
|
|
391
|
+
* ```
|
|
392
|
+
* @category operators
|
|
316
393
|
*/
|
|
317
394
|
declare function merge<T>(): Operator<T, T>;
|
|
318
395
|
/**
|
|
@@ -321,6 +398,17 @@ declare function merge<T>(): Operator<T, T>;
|
|
|
321
398
|
* source terminates. `completeWhenDepsComplete:false + terminalAsRealInput:true`: the fn fires on
|
|
322
399
|
* the source COMPLETE (reading `terminal===true`) and emits the accumulator + COMPLETE. An empty
|
|
323
400
|
* source emits the seed (RxJS parity). A source ERROR auto-forwards (errorWhenDepsError default).
|
|
401
|
+
*
|
|
402
|
+
* @param reducer - Reducer called with the accumulator and each upstream DATA value.
|
|
403
|
+
* @param seed - Initial accumulator value emitted if the source completes empty.
|
|
404
|
+
* @returns An operator that emits one accumulated value when the source completes.
|
|
405
|
+
* @example
|
|
406
|
+
* ```ts
|
|
407
|
+
* import { graph, reduce } from "@graphrefly/ts";
|
|
408
|
+
*
|
|
409
|
+
* const total = graph().initNode(reduce((sum: number, value: number) => sum + value, 0), [source]);
|
|
410
|
+
* ```
|
|
411
|
+
* @category operators
|
|
324
412
|
*/
|
|
325
413
|
declare function reduce<S, T>(reducer: (acc: T, v: S) => T, seed: T): Operator<S, T>;
|
|
326
414
|
/**
|
|
@@ -550,10 +638,34 @@ interface Profile {
|
|
|
550
638
|
/**
|
|
551
639
|
* A state node (L4-Q1): a manual source whose `.set(v)` is `node.down([[DATA, v]])` sugar.
|
|
552
640
|
* Extends the substrate Node so it is usable as a dep AND carries the graph-layer `.set`.
|
|
641
|
+
*
|
|
642
|
+
* @example
|
|
643
|
+
* ```ts
|
|
644
|
+
* import { graph } from "@graphrefly/ts";
|
|
645
|
+
*
|
|
646
|
+
* const count = graph().state(0);
|
|
647
|
+
* count.set(1);
|
|
648
|
+
* ```
|
|
649
|
+
* @category graph
|
|
553
650
|
*/
|
|
554
651
|
declare class StateNode<T> extends Node<T> {
|
|
555
652
|
set(v: T): void;
|
|
556
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* Own a single graph-local topology, lifecycle, inspection index, and dispatcher boundary.
|
|
656
|
+
*
|
|
657
|
+
* @example
|
|
658
|
+
* ```ts
|
|
659
|
+
* import { graph } from "@graphrefly/ts";
|
|
660
|
+
*
|
|
661
|
+
* const g = graph({ name: "counter" });
|
|
662
|
+
* const count = g.state(0, { name: "count" });
|
|
663
|
+
* const doubled = g.derived([count], ([value]) => value * 2, { name: "doubled" });
|
|
664
|
+
* ```
|
|
665
|
+
* @remarks **Graph-local:** Cross-graph dependencies require a wire bridge; direct deps stay inside
|
|
666
|
+
* one graph ownership domain.
|
|
667
|
+
* @category graph
|
|
668
|
+
*/
|
|
557
669
|
declare class Graph {
|
|
558
670
|
readonly name?: string;
|
|
559
671
|
private readonly _dispatcher;
|
|
@@ -662,7 +774,22 @@ declare class Graph {
|
|
|
662
774
|
private _checkpoint;
|
|
663
775
|
private _checkpointNode;
|
|
664
776
|
}
|
|
665
|
-
/**
|
|
777
|
+
/**
|
|
778
|
+
* Construct a graph with graph-local topology, lifecycle, and inspection ownership.
|
|
779
|
+
*
|
|
780
|
+
* @param opts - Optional graph name, dispatcher, versioning policy, environment drivers, and
|
|
781
|
+
* profiling switch.
|
|
782
|
+
* @returns A `Graph` instance whose sugar methods create graph-registered nodes.
|
|
783
|
+
* @example
|
|
784
|
+
* ```ts
|
|
785
|
+
* import { graph } from "@graphrefly/ts";
|
|
786
|
+
*
|
|
787
|
+
* const g = graph({ name: "counter" });
|
|
788
|
+
* const count = g.state(0, { name: "count" });
|
|
789
|
+
* const doubled = g.derived([count], ([value]) => value * 2);
|
|
790
|
+
* ```
|
|
791
|
+
* @category graph
|
|
792
|
+
*/
|
|
666
793
|
declare function graph(opts?: GraphOptions): Graph;
|
|
667
794
|
|
|
668
795
|
export { type ValveOpts as $, type GraphRestoreDescriptorContext as A, type GraphRestoreEntry as B, type GraphRestoreRegistry as C, type DefineOpts as D, type EffectFn as E, type NormalizedGraphTopologyNode as F, GRAPH_BLUEPRINT_VERSION as G, type NormalizedGraphTopologySnapshot as H, type ObserveEventEquals as I, type ObservePredicate as J, type ObserveStream as K, type Operator as L, type RestoreRegistryEntry as M, type NodeProfile as N, type ObserveEvent as O, type Profile as P, StateNode as Q, type RestoreGraphOptions as R, type SettleOpts as S, type SugarOpts as T, type TapObserver as U, type TopologyEvent as V, type TopologyEventKind as W, type TopologyGroup as X, type TopologyGroupOptions as Y, type TopologyGroupReleaseOptions as Z, type TopologyStream as _, type Definition as a, canonicalTopologyBytes as a0, canonicalTopologyJson as a1, catchError as a2, coalesceObserve as a3, defaultRestoreRegistry as a4, define as a5, distinctUntilChanged as a6, elementAt as a7, filter as a8, filterObserve as a9, valve as aA, withBlueprintHash as aB, withBlueprintProvenance as aC, find as aa, first as ab, graph as ac, graphBlueprintDiagnostics as ad, initNode as ae, last as af, map as ag, mapRestoreDescriptor as ah, merge as ai, normalizeTopology as aj, onFirstData as ak, pairwise as al, reduce as am, rescue as an, restoreGraph as ao, restoreRegistry as ap, scan as aq, settle as ar, skip as as, stateRestoreDescriptor as at, take as au, takeRestoreDescriptor as av, takeWhile as aw, tap as ax, tapFirst as ay, timerRestoreDescriptor as az, type DerivedFn as b, GRAPH_CHECKPOINT_VERSION as c, Graph as d, type GraphBlueprint as e, type GraphBlueprintDiagnosticCode as f, type GraphBlueprintDiagnosticIssue as g, type GraphBlueprintDiagnostics as h, type GraphBlueprintHash as i, type GraphBlueprintHashInput as j, type GraphBlueprintHashOptions as k, type GraphBlueprintJson as l, type GraphBlueprintOptions as m, type GraphBlueprintProvenance as n, type GraphCheckpoint as o, type GraphCheckpointEdge as p, type GraphCheckpointFactory as q, type GraphCheckpointJson as r, type GraphCheckpointMount as s, type GraphCheckpointNode as t, type GraphCheckpointTerminal as u, type GraphCheckpointValue as v, type GraphCheckpointVersion as w, type GraphOptions as x, type GraphRestoreDefinition as y, type GraphRestoreDescriptor as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchCtx } from './core/index.js';
|
|
2
|
-
import { q as NodeVersionJson, D as Dispatcher, u as NodeVersioningPolicy, E as EnvironmentDrivers, n as NodeOptions, N as Node, m as NodeFn, C as Ctx, B as Status } from './types-
|
|
2
|
+
import { q as NodeVersionJson, D as Dispatcher, u as NodeVersioningPolicy, E as EnvironmentDrivers, n as NodeOptions, N as Node, m as NodeFn, C as Ctx, B as Status } from './types-DChxk1vK.js';
|
|
3
3
|
import { S as StrictJsonObject, b as StrictJsonValue } from './codec-BB7p8fJc.js';
|
|
4
|
-
import { G as GraphTopologyEdge, e as GraphTopologySnapshot, b as DescribeOpts, c as DescribeSnapshot } from './describe-
|
|
4
|
+
import { G as GraphTopologyEdge, e as GraphTopologySnapshot, b as DescribeOpts, c as DescribeSnapshot } from './describe-cYr_Z5zm.js';
|
|
5
5
|
import { M as Message } from './messages-CAzUPPJM.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -300,19 +300,96 @@ declare function define<S, T>(ref: string, fn: (v: S) => T, opts?: DefineOpts):
|
|
|
300
300
|
* any graph's index.
|
|
301
301
|
*/
|
|
302
302
|
declare function initNode<TIn, TOut>(op: Operator<TIn, TOut>, deps: readonly Node<unknown>[], opts?: NodeOptions<TOut>): Node<TOut>;
|
|
303
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* Transform each upstream DATA value with a synchronous mapping function.
|
|
305
|
+
*
|
|
306
|
+
* @param fn - Mapping function, or a named `define()` definition for checkpoint restoration.
|
|
307
|
+
* @returns An operator that emits `fn(value)` for each upstream value.
|
|
308
|
+
* @example
|
|
309
|
+
* ```ts
|
|
310
|
+
* import { graph, map } from "@graphrefly/ts";
|
|
311
|
+
*
|
|
312
|
+
* const g = graph();
|
|
313
|
+
* const count = g.state(1);
|
|
314
|
+
* const doubled = g.initNode(map((value: number) => value * 2), [count]);
|
|
315
|
+
* ```
|
|
316
|
+
* @remarks **Restorable maps:** Passing a named `define()` registers semantic restore metadata.
|
|
317
|
+
* @category operators
|
|
318
|
+
*/
|
|
304
319
|
declare function map<S, T>(fn: ((v: S) => T) | Definition<S, T>): Operator<S, T>;
|
|
305
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* Pass through upstream values that satisfy a predicate.
|
|
322
|
+
*
|
|
323
|
+
* @param pred - Predicate evaluated for each upstream DATA value.
|
|
324
|
+
* @returns An operator that emits matching values and stays quiet for non-matches.
|
|
325
|
+
* @example
|
|
326
|
+
* ```ts
|
|
327
|
+
* import { filter, graph } from "@graphrefly/ts";
|
|
328
|
+
*
|
|
329
|
+
* const g = graph();
|
|
330
|
+
* const count = g.state(0);
|
|
331
|
+
* const even = g.initNode(filter((value: number) => value % 2 === 0), [count]);
|
|
332
|
+
* ```
|
|
333
|
+
* @category operators
|
|
334
|
+
*/
|
|
306
335
|
declare function filter<S>(pred: (v: S) => boolean): Operator<S, S>;
|
|
307
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* Accumulate upstream values and emit each intermediate accumulator.
|
|
338
|
+
*
|
|
339
|
+
* @param reducer - Reducer called with the previous accumulator and each upstream value.
|
|
340
|
+
* @param seed - Initial accumulator value.
|
|
341
|
+
* @returns An operator that emits the accumulator after every input value.
|
|
342
|
+
* @example
|
|
343
|
+
* ```ts
|
|
344
|
+
* import { graph, scan } from "@graphrefly/ts";
|
|
345
|
+
*
|
|
346
|
+
* const g = graph();
|
|
347
|
+
* const values = g.state(1);
|
|
348
|
+
* const total = g.initNode(scan((sum: number, value: number) => sum + value, 0), [values]);
|
|
349
|
+
* ```
|
|
350
|
+
* @category operators
|
|
351
|
+
*/
|
|
308
352
|
declare function scan<S, T>(reducer: (acc: T, v: S) => T, seed: T): Operator<S, T>;
|
|
309
|
-
/**
|
|
353
|
+
/**
|
|
354
|
+
* Emit the first `n` upstream values, then complete.
|
|
355
|
+
*
|
|
356
|
+
* @param n - Number of DATA values to pass before completion.
|
|
357
|
+
* @returns An operator that forwards at most `n` values and then emits COMPLETE.
|
|
358
|
+
* @example
|
|
359
|
+
* ```ts
|
|
360
|
+
* import { graph, take } from "@graphrefly/ts";
|
|
361
|
+
*
|
|
362
|
+
* const firstThree = graph().initNode(take<number>(3), [source]);
|
|
363
|
+
* ```
|
|
364
|
+
* @category operators
|
|
365
|
+
*/
|
|
310
366
|
declare function take<S>(n: number): Operator<S, S>;
|
|
311
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* Suppress consecutive duplicate values.
|
|
369
|
+
*
|
|
370
|
+
* @param eq - Equality predicate; defaults to `Object.is`.
|
|
371
|
+
* @returns An operator that emits only when the next value differs from the previous emitted value.
|
|
372
|
+
* @example
|
|
373
|
+
* ```ts
|
|
374
|
+
* import { distinctUntilChanged, graph } from "@graphrefly/ts";
|
|
375
|
+
*
|
|
376
|
+
* const stable = graph().initNode(distinctUntilChanged<number>(), [source]);
|
|
377
|
+
* ```
|
|
378
|
+
* @category operators
|
|
379
|
+
*/
|
|
312
380
|
declare function distinctUntilChanged<S>(eq?: (a: S, b: S) => boolean): Operator<S, S>;
|
|
313
381
|
/**
|
|
314
382
|
* merge: interleave several sources — emit each DATA from whichever dep fired. `partial:true`
|
|
315
383
|
* (combine-family): fires on any single dep, not gated on all deps settling.
|
|
384
|
+
*
|
|
385
|
+
* @returns An operator that forwards DATA from any dependency.
|
|
386
|
+
* @example
|
|
387
|
+
* ```ts
|
|
388
|
+
* import { graph, merge } from "@graphrefly/ts";
|
|
389
|
+
*
|
|
390
|
+
* const merged = graph().initNode(merge<number>(), [left, right]);
|
|
391
|
+
* ```
|
|
392
|
+
* @category operators
|
|
316
393
|
*/
|
|
317
394
|
declare function merge<T>(): Operator<T, T>;
|
|
318
395
|
/**
|
|
@@ -321,6 +398,17 @@ declare function merge<T>(): Operator<T, T>;
|
|
|
321
398
|
* source terminates. `completeWhenDepsComplete:false + terminalAsRealInput:true`: the fn fires on
|
|
322
399
|
* the source COMPLETE (reading `terminal===true`) and emits the accumulator + COMPLETE. An empty
|
|
323
400
|
* source emits the seed (RxJS parity). A source ERROR auto-forwards (errorWhenDepsError default).
|
|
401
|
+
*
|
|
402
|
+
* @param reducer - Reducer called with the accumulator and each upstream DATA value.
|
|
403
|
+
* @param seed - Initial accumulator value emitted if the source completes empty.
|
|
404
|
+
* @returns An operator that emits one accumulated value when the source completes.
|
|
405
|
+
* @example
|
|
406
|
+
* ```ts
|
|
407
|
+
* import { graph, reduce } from "@graphrefly/ts";
|
|
408
|
+
*
|
|
409
|
+
* const total = graph().initNode(reduce((sum: number, value: number) => sum + value, 0), [source]);
|
|
410
|
+
* ```
|
|
411
|
+
* @category operators
|
|
324
412
|
*/
|
|
325
413
|
declare function reduce<S, T>(reducer: (acc: T, v: S) => T, seed: T): Operator<S, T>;
|
|
326
414
|
/**
|
|
@@ -550,10 +638,34 @@ interface Profile {
|
|
|
550
638
|
/**
|
|
551
639
|
* A state node (L4-Q1): a manual source whose `.set(v)` is `node.down([[DATA, v]])` sugar.
|
|
552
640
|
* Extends the substrate Node so it is usable as a dep AND carries the graph-layer `.set`.
|
|
641
|
+
*
|
|
642
|
+
* @example
|
|
643
|
+
* ```ts
|
|
644
|
+
* import { graph } from "@graphrefly/ts";
|
|
645
|
+
*
|
|
646
|
+
* const count = graph().state(0);
|
|
647
|
+
* count.set(1);
|
|
648
|
+
* ```
|
|
649
|
+
* @category graph
|
|
553
650
|
*/
|
|
554
651
|
declare class StateNode<T> extends Node<T> {
|
|
555
652
|
set(v: T): void;
|
|
556
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* Own a single graph-local topology, lifecycle, inspection index, and dispatcher boundary.
|
|
656
|
+
*
|
|
657
|
+
* @example
|
|
658
|
+
* ```ts
|
|
659
|
+
* import { graph } from "@graphrefly/ts";
|
|
660
|
+
*
|
|
661
|
+
* const g = graph({ name: "counter" });
|
|
662
|
+
* const count = g.state(0, { name: "count" });
|
|
663
|
+
* const doubled = g.derived([count], ([value]) => value * 2, { name: "doubled" });
|
|
664
|
+
* ```
|
|
665
|
+
* @remarks **Graph-local:** Cross-graph dependencies require a wire bridge; direct deps stay inside
|
|
666
|
+
* one graph ownership domain.
|
|
667
|
+
* @category graph
|
|
668
|
+
*/
|
|
557
669
|
declare class Graph {
|
|
558
670
|
readonly name?: string;
|
|
559
671
|
private readonly _dispatcher;
|
|
@@ -662,7 +774,22 @@ declare class Graph {
|
|
|
662
774
|
private _checkpoint;
|
|
663
775
|
private _checkpointNode;
|
|
664
776
|
}
|
|
665
|
-
/**
|
|
777
|
+
/**
|
|
778
|
+
* Construct a graph with graph-local topology, lifecycle, and inspection ownership.
|
|
779
|
+
*
|
|
780
|
+
* @param opts - Optional graph name, dispatcher, versioning policy, environment drivers, and
|
|
781
|
+
* profiling switch.
|
|
782
|
+
* @returns A `Graph` instance whose sugar methods create graph-registered nodes.
|
|
783
|
+
* @example
|
|
784
|
+
* ```ts
|
|
785
|
+
* import { graph } from "@graphrefly/ts";
|
|
786
|
+
*
|
|
787
|
+
* const g = graph({ name: "counter" });
|
|
788
|
+
* const count = g.state(0, { name: "count" });
|
|
789
|
+
* const doubled = g.derived([count], ([value]) => value * 2);
|
|
790
|
+
* ```
|
|
791
|
+
* @category graph
|
|
792
|
+
*/
|
|
666
793
|
declare function graph(opts?: GraphOptions): Graph;
|
|
667
794
|
|
|
668
795
|
export { type ValveOpts as $, type GraphRestoreDescriptorContext as A, type GraphRestoreEntry as B, type GraphRestoreRegistry as C, type DefineOpts as D, type EffectFn as E, type NormalizedGraphTopologyNode as F, GRAPH_BLUEPRINT_VERSION as G, type NormalizedGraphTopologySnapshot as H, type ObserveEventEquals as I, type ObservePredicate as J, type ObserveStream as K, type Operator as L, type RestoreRegistryEntry as M, type NodeProfile as N, type ObserveEvent as O, type Profile as P, StateNode as Q, type RestoreGraphOptions as R, type SettleOpts as S, type SugarOpts as T, type TapObserver as U, type TopologyEvent as V, type TopologyEventKind as W, type TopologyGroup as X, type TopologyGroupOptions as Y, type TopologyGroupReleaseOptions as Z, type TopologyStream as _, type Definition as a, canonicalTopologyBytes as a0, canonicalTopologyJson as a1, catchError as a2, coalesceObserve as a3, defaultRestoreRegistry as a4, define as a5, distinctUntilChanged as a6, elementAt as a7, filter as a8, filterObserve as a9, valve as aA, withBlueprintHash as aB, withBlueprintProvenance as aC, find as aa, first as ab, graph as ac, graphBlueprintDiagnostics as ad, initNode as ae, last as af, map as ag, mapRestoreDescriptor as ah, merge as ai, normalizeTopology as aj, onFirstData as ak, pairwise as al, reduce as am, rescue as an, restoreGraph as ao, restoreRegistry as ap, scan as aq, settle as ar, skip as as, stateRestoreDescriptor as at, take as au, takeRestoreDescriptor as av, takeWhile as aw, tap as ax, tapFirst as ay, timerRestoreDescriptor as az, type DerivedFn as b, GRAPH_CHECKPOINT_VERSION as c, Graph as d, type GraphBlueprint as e, type GraphBlueprintDiagnosticCode as f, type GraphBlueprintDiagnosticIssue as g, type GraphBlueprintDiagnostics as h, type GraphBlueprintHash as i, type GraphBlueprintHashInput as j, type GraphBlueprintHashOptions as k, type GraphBlueprintJson as l, type GraphBlueprintOptions as m, type GraphBlueprintProvenance as n, type GraphCheckpoint as o, type GraphCheckpointEdge as p, type GraphCheckpointFactory as q, type GraphCheckpointJson as r, type GraphCheckpointMount as s, type GraphCheckpointNode as t, type GraphCheckpointTerminal as u, type GraphCheckpointValue as v, type GraphCheckpointVersion as w, type GraphOptions as x, type GraphRestoreDefinition as y, type GraphRestoreDescriptor as z };
|