@bian-womp/spark-graph 0.3.17 → 0.3.18
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/lib/cjs/index.cjs +41 -42
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/src/runtime/components/HandleResolver.d.ts +2 -10
- package/lib/cjs/src/runtime/components/HandleResolver.d.ts.map +1 -1
- package/lib/cjs/src/runtime/components/interfaces.d.ts +0 -2
- package/lib/cjs/src/runtime/components/interfaces.d.ts.map +1 -1
- package/lib/esm/index.js +41 -42
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/src/runtime/components/HandleResolver.d.ts +2 -10
- package/lib/esm/src/runtime/components/HandleResolver.d.ts.map +1 -1
- package/lib/esm/src/runtime/components/interfaces.d.ts +0 -2
- package/lib/esm/src/runtime/components/interfaces.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Registry } from "../../builder/Registry";
|
|
2
2
|
import type { EventEmitter } from "./EventEmitter";
|
|
3
3
|
import type { Graph } from "./Graph";
|
|
4
|
-
import type {
|
|
4
|
+
import type { RunContextManager } from "./RunContextManager";
|
|
5
5
|
import type { IEdgePropagator, IHandleResolver } from "./interfaces";
|
|
6
6
|
/**
|
|
7
7
|
* HandleResolver component - manages dynamic handle resolution
|
|
@@ -15,22 +15,14 @@ export declare class HandleResolver implements IHandleResolver {
|
|
|
15
15
|
private recomputeTokenByNode;
|
|
16
16
|
private environment;
|
|
17
17
|
private pendingResolutions;
|
|
18
|
-
private
|
|
18
|
+
private isRecomputing;
|
|
19
19
|
constructor(graph: Graph, eventEmitter: EventEmitter, runContextManager: RunContextManager, edgePropagator: IEdgePropagator, registry?: Registry | undefined, environment?: Record<string, unknown>);
|
|
20
20
|
setRegistry(registry: Registry): void;
|
|
21
21
|
setEnvironment(environment: Record<string, unknown>): void;
|
|
22
|
-
/**
|
|
23
|
-
* Check if handle resolution is pending for a node
|
|
24
|
-
*/
|
|
25
|
-
isResolvingHandles(nodeId: string): boolean;
|
|
26
22
|
/**
|
|
27
23
|
* Get the promise for pending handle resolution, or null if none
|
|
28
24
|
*/
|
|
29
25
|
getPendingResolution(nodeId: string): Promise<void> | null;
|
|
30
|
-
/**
|
|
31
|
-
* Track additional run contexts for a pending resolution
|
|
32
|
-
*/
|
|
33
|
-
trackRunContextsForPendingResolution(nodeId: string, runContextIds: Set<RunContextId>): void;
|
|
34
26
|
/**
|
|
35
27
|
* Schedule async recomputation of handles for a node
|
|
36
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HandleResolver.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/components/HandleResolver.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"HandleResolver.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/components/HandleResolver.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAgB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKrE;;GAEG;AACH,qBAAa,cAAe,YAAW,eAAe;IAOlD,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC;IAVnB,OAAO,CAAC,oBAAoB,CAA6B;IACzD,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,kBAAkB,CAAoC;IAC9D,OAAO,CAAC,aAAa,CAA8B;gBAGhC,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,eAAe,EACxC,QAAQ,CAAC,EAAE,QAAQ,YAAA,EAC3B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKvC,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAIrC,cAAc,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAI1D;;OAEG;IACH,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAI1D;;OAEG;IACH,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAqD9C,OAAO,CAAC,iBAAiB;IA+EzB;;OAEG;YACW,uBAAuB;CA0GtC"}
|
|
@@ -18,9 +18,7 @@ export interface INodeExecutor {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface IHandleResolver {
|
|
20
20
|
scheduleRecomputeHandles(nodeId: string): void;
|
|
21
|
-
isResolvingHandles(nodeId: string): boolean;
|
|
22
21
|
getPendingResolution(nodeId: string): Promise<void> | null;
|
|
23
|
-
trackRunContextsForPendingResolution(nodeId: string, runContextIds: Set<RunContextId>): void;
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* Interface for runtime coordination operations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/components/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAA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AoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC5D;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,IAAI,OAAO,CAAC;IACpB,UAAU,IAAI,OAAO,GAAG,IAAI,CAAC;CAC9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bian-womp/spark-graph",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Spark Graph - Node-based computation graph system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": ">=20.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@bian-womp/spark-protocol": "^0.3.
|
|
38
|
+
"@bian-womp/spark-protocol": "^0.3.18"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@rollup/plugin-commonjs": "^28.0.6",
|