@bian-womp/spark-graph 0.1.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/lib/cjs/index.cjs +1872 -0
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/cjs/src/builder/GraphBuilder.d.ts +42 -0
- package/lib/cjs/src/builder/GraphBuilder.d.ts.map +1 -0
- package/lib/cjs/src/builder/Registry.d.ts +42 -0
- package/lib/cjs/src/builder/Registry.d.ts.map +1 -0
- package/lib/cjs/src/core/categories.d.ts +32 -0
- package/lib/cjs/src/core/categories.d.ts.map +1 -0
- package/lib/cjs/src/core/types.d.ts +80 -0
- package/lib/cjs/src/core/types.d.ts.map +1 -0
- package/lib/cjs/src/examples/async.d.ts +5 -0
- package/lib/cjs/src/examples/async.d.ts.map +1 -0
- package/lib/cjs/src/examples/engine.d.ts +6 -0
- package/lib/cjs/src/examples/engine.d.ts.map +1 -0
- package/lib/cjs/src/examples/progress.d.ts +5 -0
- package/lib/cjs/src/examples/progress.d.ts.map +1 -0
- package/lib/cjs/src/examples/run.d.ts +2 -0
- package/lib/cjs/src/examples/run.d.ts.map +1 -0
- package/lib/cjs/src/examples/shared.d.ts +8 -0
- package/lib/cjs/src/examples/shared.d.ts.map +1 -0
- package/lib/cjs/src/examples/simple.d.ts +4 -0
- package/lib/cjs/src/examples/simple.d.ts.map +1 -0
- package/lib/cjs/src/examples/validation.d.ts +5 -0
- package/lib/cjs/src/examples/validation.d.ts.map +1 -0
- package/lib/cjs/src/index.d.ts +23 -0
- package/lib/cjs/src/index.d.ts.map +1 -0
- package/lib/cjs/src/plugins/composite.d.ts +22 -0
- package/lib/cjs/src/plugins/composite.d.ts.map +1 -0
- package/lib/cjs/src/plugins/compute.d.ts +5 -0
- package/lib/cjs/src/plugins/compute.d.ts.map +1 -0
- package/lib/cjs/src/runtime/AbstractEngine.d.ts +14 -0
- package/lib/cjs/src/runtime/AbstractEngine.d.ts.map +1 -0
- package/lib/cjs/src/runtime/BatchedEngine.d.ts +17 -0
- package/lib/cjs/src/runtime/BatchedEngine.d.ts.map +1 -0
- package/lib/cjs/src/runtime/Engine.d.ts +14 -0
- package/lib/cjs/src/runtime/Engine.d.ts.map +1 -0
- package/lib/cjs/src/runtime/GraphRuntime.d.ts +127 -0
- package/lib/cjs/src/runtime/GraphRuntime.d.ts.map +1 -0
- package/lib/cjs/src/runtime/HybridEngine.d.ts +21 -0
- package/lib/cjs/src/runtime/HybridEngine.d.ts.map +1 -0
- package/lib/cjs/src/runtime/LocalRunner.d.ts +16 -0
- package/lib/cjs/src/runtime/LocalRunner.d.ts.map +1 -0
- package/lib/cjs/src/runtime/PullEngine.d.ts +8 -0
- package/lib/cjs/src/runtime/PullEngine.d.ts.map +1 -0
- package/lib/cjs/src/runtime/PushEngine.d.ts +6 -0
- package/lib/cjs/src/runtime/PushEngine.d.ts.map +1 -0
- package/lib/cjs/src/runtime/RunnerControl.d.ts +10 -0
- package/lib/cjs/src/runtime/RunnerControl.d.ts.map +1 -0
- package/lib/cjs/src/runtime/StepEngine.d.ts +11 -0
- package/lib/cjs/src/runtime/StepEngine.d.ts.map +1 -0
- package/lib/esm/index.js +1850 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/src/builder/GraphBuilder.d.ts +42 -0
- package/lib/esm/src/builder/GraphBuilder.d.ts.map +1 -0
- package/lib/esm/src/builder/Registry.d.ts +42 -0
- package/lib/esm/src/builder/Registry.d.ts.map +1 -0
- package/lib/esm/src/core/categories.d.ts +32 -0
- package/lib/esm/src/core/categories.d.ts.map +1 -0
- package/lib/esm/src/core/types.d.ts +80 -0
- package/lib/esm/src/core/types.d.ts.map +1 -0
- package/lib/esm/src/examples/async.d.ts +5 -0
- package/lib/esm/src/examples/async.d.ts.map +1 -0
- package/lib/esm/src/examples/engine.d.ts +6 -0
- package/lib/esm/src/examples/engine.d.ts.map +1 -0
- package/lib/esm/src/examples/progress.d.ts +5 -0
- package/lib/esm/src/examples/progress.d.ts.map +1 -0
- package/lib/esm/src/examples/run.d.ts +2 -0
- package/lib/esm/src/examples/run.d.ts.map +1 -0
- package/lib/esm/src/examples/shared.d.ts +8 -0
- package/lib/esm/src/examples/shared.d.ts.map +1 -0
- package/lib/esm/src/examples/simple.d.ts +4 -0
- package/lib/esm/src/examples/simple.d.ts.map +1 -0
- package/lib/esm/src/examples/validation.d.ts +5 -0
- package/lib/esm/src/examples/validation.d.ts.map +1 -0
- package/lib/esm/src/index.d.ts +23 -0
- package/lib/esm/src/index.d.ts.map +1 -0
- package/lib/esm/src/plugins/composite.d.ts +22 -0
- package/lib/esm/src/plugins/composite.d.ts.map +1 -0
- package/lib/esm/src/plugins/compute.d.ts +5 -0
- package/lib/esm/src/plugins/compute.d.ts.map +1 -0
- package/lib/esm/src/runtime/AbstractEngine.d.ts +14 -0
- package/lib/esm/src/runtime/AbstractEngine.d.ts.map +1 -0
- package/lib/esm/src/runtime/BatchedEngine.d.ts +17 -0
- package/lib/esm/src/runtime/BatchedEngine.d.ts.map +1 -0
- package/lib/esm/src/runtime/Engine.d.ts +14 -0
- package/lib/esm/src/runtime/Engine.d.ts.map +1 -0
- package/lib/esm/src/runtime/GraphRuntime.d.ts +127 -0
- package/lib/esm/src/runtime/GraphRuntime.d.ts.map +1 -0
- package/lib/esm/src/runtime/HybridEngine.d.ts +21 -0
- package/lib/esm/src/runtime/HybridEngine.d.ts.map +1 -0
- package/lib/esm/src/runtime/LocalRunner.d.ts +16 -0
- package/lib/esm/src/runtime/LocalRunner.d.ts.map +1 -0
- package/lib/esm/src/runtime/PullEngine.d.ts +8 -0
- package/lib/esm/src/runtime/PullEngine.d.ts.map +1 -0
- package/lib/esm/src/runtime/PushEngine.d.ts +6 -0
- package/lib/esm/src/runtime/PushEngine.d.ts.map +1 -0
- package/lib/esm/src/runtime/RunnerControl.d.ts +10 -0
- package/lib/esm/src/runtime/RunnerControl.d.ts.map +1 -0
- package/lib/esm/src/runtime/StepEngine.d.ts +11 -0
- package/lib/esm/src/runtime/StepEngine.d.ts.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GraphDefinition } from "../core/types";
|
|
2
|
+
export declare function createProgressGraphDef(): GraphDefinition;
|
|
3
|
+
export declare function createProgressGraphRegistry(): import("..").Registry;
|
|
4
|
+
export declare function main(): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../../src/examples/progress.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,wBAAgB,sBAAsB,oBAsBrC;AAED,wBAAgB,2BAA2B,0BAI1C;AAED,wBAAsB,IAAI,kBAqDzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../src/examples/run.ts"],"names":[],"mappings":"AAAA,wBAAsB,GAAG,CAAC,OAAO,EAAE,MAAM,iBAoBxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Registry } from "../builder/Registry";
|
|
2
|
+
import type { GraphDefinition } from "../core/types";
|
|
3
|
+
export declare function setupBasicGraphRegistry(): Registry;
|
|
4
|
+
export declare function makeBasicGraphDefinition(): GraphDefinition;
|
|
5
|
+
export declare function registerDelayNode(registry: Registry): void;
|
|
6
|
+
export declare function registerProgressNodes(registry: Registry): void;
|
|
7
|
+
export declare function createRuntime(registry: Registry, def: GraphDefinition): import("..").GraphRuntime;
|
|
8
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/examples/shared.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAGV,eAAe,EAChB,MAAM,eAAe,CAAC;AAGvB,wBAAgB,uBAAuB,IAAI,QAAQ,CA4ZlD;AAED,wBAAgB,wBAAwB,IAAI,eAAe,CAc1D;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,QA2BnD;AAqBD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,QAyBvD;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,eAAe,6BAUrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../../../../src/examples/simple.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,iCAEnC;AAED,wBAAgB,yBAAyB,0BAExC;AAGD,wBAAsB,IAAI,kBAqBzB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GraphDefinition } from "../core/types";
|
|
2
|
+
export declare function createValidationGraphDef(): GraphDefinition;
|
|
3
|
+
export declare function createValidationGraphRegistry(): import("..").Registry;
|
|
4
|
+
export declare function main(): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/examples/validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,wBAAgB,wBAAwB,IAAI,eAAe,CA2C1D;AAED,wBAAgB,6BAA6B,0BAG5C;AAED,wBAAsB,IAAI,kBAazB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type { DataTypeId, NodeTypeId, NodeInstanceId, HandleId, EdgeInstanceId, NodeCategoryId, DataTypeDescriptor, InvalidateReason, NodeContext, ExecutionContext, NodeTypeDescriptor, GraphDefinition, RuntimeNodeStats, RuntimeEdgeStats, } from "./core/types";
|
|
2
|
+
export type { CategoryRuntime, NodeCategoryDescriptor, } from "./core/categories";
|
|
3
|
+
export { Registry } from "./builder/Registry";
|
|
4
|
+
export { GraphBuilder } from "./builder/GraphBuilder";
|
|
5
|
+
export type { ValidationIssue, ValidationReport } from "./builder/GraphBuilder";
|
|
6
|
+
export { GraphRuntime } from "./runtime/GraphRuntime";
|
|
7
|
+
export type { RunnerControl } from "./runtime/RunnerControl";
|
|
8
|
+
export { LocalRunner } from "./runtime/LocalRunner";
|
|
9
|
+
export type { RuntimeEventName, RuntimeEventMap, ValueEvent, NodeRunErrorEvent, EdgeConvertErrorEvent, RuntimeErrorEvent, InvalidateEvent, StatsEvent, } from "./runtime/GraphRuntime";
|
|
10
|
+
export type { Engine, EngineEventListener, EngineEventMap, EngineEventName, } from "./runtime/Engine";
|
|
11
|
+
export { PushEngine } from "./runtime/PushEngine";
|
|
12
|
+
export { BatchedEngine } from "./runtime/BatchedEngine";
|
|
13
|
+
export { PullEngine } from "./runtime/PullEngine";
|
|
14
|
+
export { HybridEngine } from "./runtime/HybridEngine";
|
|
15
|
+
export { StepEngine } from "./runtime/StepEngine";
|
|
16
|
+
export { ComputeCategory } from "./plugins/compute";
|
|
17
|
+
export { CompositeCategory } from "./plugins/composite";
|
|
18
|
+
export { createSimpleGraphRegistry, createSimpleGraphDef, } from "./examples/simple";
|
|
19
|
+
export { createAsyncGraphRegistry, createAsyncGraphDef, } from "./examples/async";
|
|
20
|
+
export { createProgressGraphRegistry, createProgressGraphDef, } from "./examples/progress";
|
|
21
|
+
export { createValidationGraphRegistry, createValidationGraphDef, } from "./examples/validation";
|
|
22
|
+
export { registerDelayNode, registerProgressNodes } from "./examples/shared";
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,gBAA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AM,qBAAqB,CAAC;AAC7B,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { NodeCategoryDescriptor } from "../core/categories";
|
|
2
|
+
import type { GraphDefinition } from "../core/types";
|
|
3
|
+
import { Registry } from "../builder/Registry";
|
|
4
|
+
import { GraphRuntime } from "../runtime/GraphRuntime";
|
|
5
|
+
export interface CompositeImpl {
|
|
6
|
+
def: GraphDefinition;
|
|
7
|
+
exposure: {
|
|
8
|
+
inputs: Record<string, {
|
|
9
|
+
nodeId: string;
|
|
10
|
+
handle: string;
|
|
11
|
+
}>;
|
|
12
|
+
outputs: Record<string, {
|
|
13
|
+
nodeId: string;
|
|
14
|
+
handle: string;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const CompositeCategory: (registry: Registry) => NodeCategoryDescriptor<CompositeImpl, {
|
|
19
|
+
inner?: GraphRuntime;
|
|
20
|
+
unsub?: () => void;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=composite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite.d.ts","sourceRoot":"","sources":["../../../../src/plugins/composite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,eAAe,CAAC;IACrB,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC3D,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC7D,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,GAC5B,UAAU,QAAQ,KACjB,sBAAsB,CACvB,aAAa,EACb;IAAE,KAAK,CAAC,EAAE,YAAY,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAiD5C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { NodeCategoryDescriptor } from "../core/categories";
|
|
2
|
+
import type { ExecutionContext } from "../core/types";
|
|
3
|
+
export type ComputeImpl = (inputs: Record<string, unknown>, ctx: ExecutionContext<any>) => void | Record<string, unknown> | Promise<void | Record<string, unknown>>;
|
|
4
|
+
export declare const ComputeCategory: NodeCategoryDescriptor<ComputeImpl, {}>;
|
|
5
|
+
//# sourceMappingURL=compute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../../src/plugins/compute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG,CACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,KACvB,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAE9E,eAAO,MAAM,eAAe,EAAE,sBAAsB,CAAC,WAAW,EAAE,EAAE,CAYnE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Engine, EngineEventListener, EngineEventName } from "./Engine";
|
|
2
|
+
import { GraphRuntime } from "./GraphRuntime";
|
|
3
|
+
export declare abstract class AbstractEngine implements Engine {
|
|
4
|
+
graphRuntime: GraphRuntime;
|
|
5
|
+
constructor(graphRuntime: GraphRuntime);
|
|
6
|
+
launch(): void;
|
|
7
|
+
setInput(nodeId: string, handle: string, value: unknown): void;
|
|
8
|
+
triggerExternal(nodeId: string, event: unknown): void;
|
|
9
|
+
on<K extends EngineEventName>(event: K, handler: EngineEventListener<K>): () => void;
|
|
10
|
+
getOutput(nodeId: string, output: string): unknown;
|
|
11
|
+
whenIdle(): Promise<void>;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AbstractEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractEngine.d.ts","sourceRoot":"","sources":["../../../../src/runtime/AbstractEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,8BAAsB,cAAe,YAAW,MAAM;IACjC,YAAY,EAAE,YAAY;gBAA1B,YAAY,EAAE,YAAY;IAE7C,MAAM,IAAI,IAAI;IAId,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAI9D,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAIrD,EAAE,CAAC,CAAC,SAAS,eAAe,EAC1B,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAC9B,MAAM,IAAI;IAIb,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAIlD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,OAAO,IAAI,IAAI;CAGhB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEngine } from "./AbstractEngine";
|
|
2
|
+
import { GraphRuntime } from "./GraphRuntime";
|
|
3
|
+
export interface BatchedEngineOptions {
|
|
4
|
+
flushIntervalMs?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class BatchedEngine extends AbstractEngine {
|
|
7
|
+
private opts;
|
|
8
|
+
private dirtyNodes;
|
|
9
|
+
private timer;
|
|
10
|
+
constructor(graphRuntime: GraphRuntime, opts?: BatchedEngineOptions);
|
|
11
|
+
launch(): void;
|
|
12
|
+
setInput(nodeId: string, handle: string, value: unknown): void;
|
|
13
|
+
triggerExternal(nodeId: string, event: unknown): void;
|
|
14
|
+
flush(): Promise<void>;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=BatchedEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchedEngine.d.ts","sourceRoot":"","sources":["../../../../src/runtime/BatchedEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,aAAc,SAAQ,cAAc;IAK7C,OAAO,CAAC,IAAI;IAJd,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,KAAK,CAA6B;gBAExC,YAAY,EAAE,YAAY,EAClB,IAAI,GAAE,oBAAyB;IAKhC,MAAM,IAAI,IAAI;IAOd,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAK9D,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAKxD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAWnB,OAAO,IAAI,IAAI;CAIzB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RuntimeEventName, RuntimeEventListener, RuntimeEventMap } from "./GraphRuntime";
|
|
2
|
+
export type EngineEventName = RuntimeEventName;
|
|
3
|
+
export type EngineEventListener<K extends EngineEventName> = RuntimeEventListener<K>;
|
|
4
|
+
export type EngineEventMap = RuntimeEventMap;
|
|
5
|
+
export interface Engine {
|
|
6
|
+
launch(): void;
|
|
7
|
+
setInput(nodeId: string, handle: string, value: unknown): void;
|
|
8
|
+
triggerExternal(nodeId: string, event: unknown): void;
|
|
9
|
+
on<K extends EngineEventName>(event: K, handler: EngineEventListener<K>): () => void;
|
|
10
|
+
getOutput(nodeId: string, output: string): unknown;
|
|
11
|
+
whenIdle(): Promise<void>;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=Engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Engine.d.ts","sourceRoot":"","sources":["../../../../src/runtime/Engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAC/C,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,eAAe,IACvD,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC1B,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAC7C,MAAM,WAAW,MAAM;IACrB,MAAM,IAAI,IAAI,CAAC;IACf,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/D,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACtD,EAAE,CAAC,CAAC,SAAS,eAAe,EAC1B,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAC9B,MAAM,IAAI,CAAC;IACd,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACnD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,OAAO,IAAI,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { GraphDefinition, RuntimeNodeStats } from "../core/types";
|
|
2
|
+
import { Registry } from "../builder/Registry";
|
|
3
|
+
export type RuntimeEventListener<K extends RuntimeEventName> = (e: RuntimeEventMap[K]) => void;
|
|
4
|
+
export type RuntimeEventName = "value" | "invalidate" | "error" | "stats";
|
|
5
|
+
export interface ValueEvent {
|
|
6
|
+
nodeId: string;
|
|
7
|
+
handle: string;
|
|
8
|
+
value: unknown;
|
|
9
|
+
io: "input" | "output";
|
|
10
|
+
}
|
|
11
|
+
export type NodeRunErrorEvent = {
|
|
12
|
+
nodeId: string;
|
|
13
|
+
runId: string;
|
|
14
|
+
err: unknown;
|
|
15
|
+
};
|
|
16
|
+
export type EdgeConvertErrorEvent = {
|
|
17
|
+
kind: "edge-convert";
|
|
18
|
+
edgeId: string;
|
|
19
|
+
source: {
|
|
20
|
+
nodeId: string;
|
|
21
|
+
handle: string;
|
|
22
|
+
};
|
|
23
|
+
target: {
|
|
24
|
+
nodeId: string;
|
|
25
|
+
handle: string;
|
|
26
|
+
};
|
|
27
|
+
err: unknown;
|
|
28
|
+
};
|
|
29
|
+
export type RuntimeErrorEvent = NodeRunErrorEvent | EdgeConvertErrorEvent;
|
|
30
|
+
export interface InvalidateEvent {
|
|
31
|
+
reason: string;
|
|
32
|
+
}
|
|
33
|
+
export type NodeStartStats = {
|
|
34
|
+
kind: "node-start";
|
|
35
|
+
nodeId: string;
|
|
36
|
+
runId: string;
|
|
37
|
+
};
|
|
38
|
+
export type NodeProgressStats = {
|
|
39
|
+
kind: "node-progress";
|
|
40
|
+
nodeId: string;
|
|
41
|
+
runId: string;
|
|
42
|
+
progress: number;
|
|
43
|
+
};
|
|
44
|
+
export type NodeDoneStats = {
|
|
45
|
+
kind: "node-done";
|
|
46
|
+
nodeId: string;
|
|
47
|
+
runId: string;
|
|
48
|
+
durationMs?: number;
|
|
49
|
+
};
|
|
50
|
+
export type EdgeStartStats = {
|
|
51
|
+
kind: "edge-start";
|
|
52
|
+
edgeId: string;
|
|
53
|
+
source: {
|
|
54
|
+
nodeId: string;
|
|
55
|
+
handle: string;
|
|
56
|
+
};
|
|
57
|
+
target: {
|
|
58
|
+
nodeId: string;
|
|
59
|
+
handle: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export type EdgeDoneStats = {
|
|
63
|
+
kind: "edge-done";
|
|
64
|
+
edgeId: string;
|
|
65
|
+
source: {
|
|
66
|
+
nodeId: string;
|
|
67
|
+
handle: string;
|
|
68
|
+
};
|
|
69
|
+
target: {
|
|
70
|
+
nodeId: string;
|
|
71
|
+
handle: string;
|
|
72
|
+
};
|
|
73
|
+
durationMs?: number;
|
|
74
|
+
};
|
|
75
|
+
export type StatsEvent = NodeStartStats | NodeProgressStats | NodeDoneStats | EdgeStartStats | EdgeDoneStats;
|
|
76
|
+
export interface RuntimeEventMap {
|
|
77
|
+
value: ValueEvent;
|
|
78
|
+
invalidate: InvalidateEvent;
|
|
79
|
+
error: RuntimeErrorEvent;
|
|
80
|
+
stats: StatsEvent;
|
|
81
|
+
}
|
|
82
|
+
export declare class GraphRuntime {
|
|
83
|
+
private nodes;
|
|
84
|
+
private edges;
|
|
85
|
+
private listeners;
|
|
86
|
+
private environment;
|
|
87
|
+
private paused;
|
|
88
|
+
static create(def: GraphDefinition, registry: Registry, opts?: {
|
|
89
|
+
environment?: Record<string, unknown>;
|
|
90
|
+
}): GraphRuntime;
|
|
91
|
+
on<K extends RuntimeEventName>(event: K, handler: RuntimeEventListener<K>): () => void;
|
|
92
|
+
private emit;
|
|
93
|
+
setInput(nodeId: string, handle: string, value: unknown): void;
|
|
94
|
+
getOutput(nodeId: string, output: string): unknown;
|
|
95
|
+
private scheduleInputsChanged;
|
|
96
|
+
private invalidateDownstream;
|
|
97
|
+
private propagate;
|
|
98
|
+
launch(): void;
|
|
99
|
+
triggerExternal(nodeId: string, event: unknown): void;
|
|
100
|
+
dispose(): void;
|
|
101
|
+
__unsafe_getNodeData(nodeId: string): {
|
|
102
|
+
inputs: Record<string, unknown>;
|
|
103
|
+
outputs: Record<string, unknown>;
|
|
104
|
+
state: unknown;
|
|
105
|
+
params?: Record<string, unknown>;
|
|
106
|
+
stats?: RuntimeNodeStats;
|
|
107
|
+
} | undefined;
|
|
108
|
+
__unsafe_getEnvironment(): Record<string, unknown>;
|
|
109
|
+
setEnvironment(env: Record<string, unknown>): void;
|
|
110
|
+
__unsafe_setEnvironment(env: Record<string, unknown>): void;
|
|
111
|
+
__unsafe_hydrateNode(nodeId: string, data: {
|
|
112
|
+
inputs?: Record<string, unknown>;
|
|
113
|
+
outputs?: Record<string, unknown>;
|
|
114
|
+
state?: unknown;
|
|
115
|
+
params?: Record<string, unknown>;
|
|
116
|
+
}, opts?: {
|
|
117
|
+
replace?: boolean;
|
|
118
|
+
}): void;
|
|
119
|
+
whenIdle(): Promise<void>;
|
|
120
|
+
pause(): void;
|
|
121
|
+
resume(): void;
|
|
122
|
+
__unsafe_invalidateDownstream(nodeId: string): void;
|
|
123
|
+
__unsafe_reemitNodeOutputs(nodeId: string): void;
|
|
124
|
+
__unsafe_scheduleInputsChanged(nodeId: string): void;
|
|
125
|
+
update(def: GraphDefinition, registry: Registry): void;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=GraphRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Graph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AC;IAIlD,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAIlD,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAI3D,oBAAoB,CAClB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;QACJ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAClC,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC,EACD,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAC3B,IAAI;IAcD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB/B,KAAK,IAAI,IAAI;IAIb,MAAM,IAAI,IAAI;IAId,6BAA6B,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAInD,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQhD,8BAA8B,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAKpD,MAAM,CAAC,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI;CAuKvD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbstractEngine } from "./AbstractEngine";
|
|
2
|
+
import { GraphRuntime } from "./GraphRuntime";
|
|
3
|
+
export interface HybridOptions {
|
|
4
|
+
windowMs?: number;
|
|
5
|
+
batchThreshold?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class HybridEngine extends AbstractEngine {
|
|
8
|
+
private opts;
|
|
9
|
+
private windowStart;
|
|
10
|
+
private countInWindow;
|
|
11
|
+
private batching;
|
|
12
|
+
private dirtyNodes;
|
|
13
|
+
private flushTimer;
|
|
14
|
+
constructor(graphRuntime: GraphRuntime, opts?: HybridOptions);
|
|
15
|
+
private updateWindow;
|
|
16
|
+
launch(): void;
|
|
17
|
+
setInput(nodeId: string, handle: string, value: unknown): void;
|
|
18
|
+
triggerExternal(nodeId: string, event: unknown): void;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=HybridEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HybridEngine.d.ts","sourceRoot":"","sources":["../../../../src/runtime/HybridEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,YAAa,SAAQ,cAAc;IAMN,OAAO,CAAC,IAAI;IALpD,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,UAAU,CAA6B;gBACnC,YAAY,EAAE,YAAY,EAAU,IAAI,GAAE,aAAkB;IAKxE,OAAO,CAAC,YAAY;IAsBX,MAAM,IAAI,IAAI;IAId,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IA2B9D,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAKrD,OAAO,IAAI,IAAI;CAOzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GraphDefinition } from "../core/types";
|
|
2
|
+
import { AbstractEngine } from "./AbstractEngine";
|
|
3
|
+
import type { RunnerControl } from "./RunnerControl";
|
|
4
|
+
import { Registry } from "../builder/Registry";
|
|
5
|
+
export declare class LocalRunner implements RunnerControl {
|
|
6
|
+
private registry;
|
|
7
|
+
private builder;
|
|
8
|
+
private engine?;
|
|
9
|
+
constructor(registry: Registry);
|
|
10
|
+
build(def: GraphDefinition, opts?: {
|
|
11
|
+
environment?: Record<string, unknown>;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
update(def: GraphDefinition): Promise<void>;
|
|
14
|
+
getEngine(): AbstractEngine;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=LocalRunner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalRunner.d.ts","sourceRoot":"","sources":["../../../../src/runtime/LocalRunner.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,qBAAa,WAAY,YAAW,aAAa;IAInC,OAAO,CAAC,QAAQ;IAH5B,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,MAAM,CAAC,CAAiB;gBAEZ,QAAQ,EAAE,QAAQ;IAIhC,KAAK,CACT,GAAG,EAAE,eAAe,EACpB,IAAI,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAC/C,OAAO,CAAC,IAAI,CAAC;IAKV,MAAM,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAWjD,SAAS,IAAI,cAAc;CAK5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractEngine } from "./AbstractEngine";
|
|
2
|
+
import { GraphRuntime } from "./GraphRuntime";
|
|
3
|
+
export declare class PullEngine extends AbstractEngine {
|
|
4
|
+
constructor(graphRuntime: GraphRuntime);
|
|
5
|
+
launch(): void;
|
|
6
|
+
computeNode(nodeId: string): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=PullEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullEngine.d.ts","sourceRoot":"","sources":["../../../../src/runtime/PullEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,qBAAa,UAAW,SAAQ,cAAc;gBAChC,YAAY,EAAE,YAAY;IAK7B,MAAM,IAAI,IAAI;IAGjB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAMjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PushEngine.d.ts","sourceRoot":"","sources":["../../../../src/runtime/PushEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,qBAAa,UAAW,SAAQ,cAAc;gBAChC,YAAY,EAAE,YAAY;CAGvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GraphDefinition } from "../core/types";
|
|
2
|
+
import type { Engine } from "./Engine";
|
|
3
|
+
export interface RunnerControl {
|
|
4
|
+
build(def: GraphDefinition, opts?: {
|
|
5
|
+
environment?: Record<string, unknown>;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
update(def: GraphDefinition): Promise<void>;
|
|
8
|
+
getEngine(): Engine;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=RunnerControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunnerControl.d.ts","sourceRoot":"","sources":["../../../../src/runtime/RunnerControl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,KAAK,CACH,GAAG,EAAE,eAAe,EACpB,IAAI,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAC/C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,MAAM,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,SAAS,IAAI,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractEngine } from "./AbstractEngine";
|
|
2
|
+
import { GraphRuntime } from "./GraphRuntime";
|
|
3
|
+
export declare class StepEngine extends AbstractEngine {
|
|
4
|
+
private dirtyNodes;
|
|
5
|
+
constructor(graphRuntime: GraphRuntime);
|
|
6
|
+
launch(): void;
|
|
7
|
+
setInput(nodeId: string, handle: string, value: unknown): void;
|
|
8
|
+
triggerExternal(nodeId: string, event: unknown): void;
|
|
9
|
+
step(): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=StepEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepEngine.d.ts","sourceRoot":"","sources":["../../../../src/runtime/StepEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,qBAAa,UAAW,SAAQ,cAAc;IAC5C,OAAO,CAAC,UAAU,CAAqB;gBAC3B,YAAY,EAAE,YAAY;IAK7B,MAAM,IAAI,IAAI;IAEd,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAK9D,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAKxD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAS5B"}
|