@nodetool-ai/kernel 0.7.0-rc.11

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.
Files changed (53) hide show
  1. package/dist/actor.d.ts +110 -0
  2. package/dist/actor.d.ts.map +1 -0
  3. package/dist/actor.js +430 -0
  4. package/dist/actor.js.map +1 -0
  5. package/dist/channel.d.ts +46 -0
  6. package/dist/channel.d.ts.map +1 -0
  7. package/dist/channel.js +191 -0
  8. package/dist/channel.js.map +1 -0
  9. package/dist/durable-inbox.d.ts +82 -0
  10. package/dist/durable-inbox.d.ts.map +1 -0
  11. package/dist/durable-inbox.js +158 -0
  12. package/dist/durable-inbox.js.map +1 -0
  13. package/dist/graph-utils.d.ts +60 -0
  14. package/dist/graph-utils.d.ts.map +1 -0
  15. package/dist/graph-utils.js +249 -0
  16. package/dist/graph-utils.js.map +1 -0
  17. package/dist/graph.d.ts +153 -0
  18. package/dist/graph.d.ts.map +1 -0
  19. package/dist/graph.js +656 -0
  20. package/dist/graph.js.map +1 -0
  21. package/dist/inbox.d.ts +109 -0
  22. package/dist/inbox.d.ts.map +1 -0
  23. package/dist/inbox.js +310 -0
  24. package/dist/inbox.js.map +1 -0
  25. package/dist/index.d.ts +16 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +16 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/io.d.ts +92 -0
  30. package/dist/io.d.ts.map +1 -0
  31. package/dist/io.js +128 -0
  32. package/dist/io.js.map +1 -0
  33. package/dist/runner.d.ts +221 -0
  34. package/dist/runner.d.ts.map +1 -0
  35. package/dist/runner.js +1018 -0
  36. package/dist/runner.js.map +1 -0
  37. package/dist/suspendable.d.ts +68 -0
  38. package/dist/suspendable.d.ts.map +1 -0
  39. package/dist/suspendable.js +108 -0
  40. package/dist/suspendable.js.map +1 -0
  41. package/dist/trigger-manager.d.ts +107 -0
  42. package/dist/trigger-manager.d.ts.map +1 -0
  43. package/dist/trigger-manager.js +214 -0
  44. package/dist/trigger-manager.js.map +1 -0
  45. package/dist/trigger-wakeup.d.ts +54 -0
  46. package/dist/trigger-wakeup.d.ts.map +1 -0
  47. package/dist/trigger-wakeup.js +99 -0
  48. package/dist/trigger-wakeup.js.map +1 -0
  49. package/dist/trigger.d.ts +57 -0
  50. package/dist/trigger.d.ts.map +1 -0
  51. package/dist/trigger.js +145 -0
  52. package/dist/trigger.js.map +1 -0
  53. package/package.json +49 -0
package/dist/io.js ADDED
@@ -0,0 +1,128 @@
1
+ /**
2
+ * NodeInputs / NodeOutputs – node I/O convenience wrappers.
3
+ *
4
+ * Port of src/nodetool/workflows/io.py.
5
+ *
6
+ * NodeInputs wraps a NodeInbox for reading inputs in node implementations.
7
+ * NodeOutputs provides an emit-based output interface backed by callbacks
8
+ * supplied by the actor/runner, decoupled from WorkflowRunner internals.
9
+ */
10
+ export class NodeInputs {
11
+ _inbox;
12
+ constructor(inbox) {
13
+ this._inbox = inbox;
14
+ }
15
+ /**
16
+ * Return the first available item for a handle, or default if EOS.
17
+ */
18
+ async first(name, defaultValue) {
19
+ for await (const item of this._inbox.iterInput(name)) {
20
+ return item;
21
+ }
22
+ return defaultValue;
23
+ }
24
+ /**
25
+ * Return the first available MessageEnvelope for a handle, or default if EOS.
26
+ */
27
+ async firstWithEnvelope(name, defaultValue) {
28
+ for await (const envelope of this._inbox.iterInputWithEnvelope(name)) {
29
+ return envelope;
30
+ }
31
+ return defaultValue;
32
+ }
33
+ /**
34
+ * Async generator: yields items until EOS.
35
+ */
36
+ async *stream(name) {
37
+ for await (const item of this._inbox.iterInput(name)) {
38
+ yield item;
39
+ }
40
+ }
41
+ /**
42
+ * Async generator: yields MessageEnvelopes until EOS.
43
+ */
44
+ async *streamWithEnvelope(name) {
45
+ for await (const envelope of this._inbox.iterInputWithEnvelope(name)) {
46
+ yield envelope;
47
+ }
48
+ }
49
+ /**
50
+ * Async generator: yields [handle, item] tuples in arrival order.
51
+ */
52
+ async *any() {
53
+ for await (const tuple of this._inbox.iterAny()) {
54
+ yield tuple;
55
+ }
56
+ }
57
+ /**
58
+ * Async generator: yields [handle, MessageEnvelope] tuples.
59
+ */
60
+ async *anyWithEnvelope() {
61
+ for await (const tuple of this._inbox.iterAnyWithEnvelope()) {
62
+ yield tuple;
63
+ }
64
+ }
65
+ /**
66
+ * True if handle has buffered items.
67
+ */
68
+ hasBuffered(name) {
69
+ return this._inbox.hasBuffered(name);
70
+ }
71
+ /**
72
+ * True if handle has open upstream sources.
73
+ */
74
+ hasStream(name) {
75
+ return this._inbox.isOpen(name);
76
+ }
77
+ }
78
+ /**
79
+ * Emitter wrapper for routing node outputs.
80
+ *
81
+ * Port of src/nodetool/workflows/io.py (NodeOutputs class).
82
+ *
83
+ * Provides a clean emit-based interface for nodes to produce outputs.
84
+ * Routing is decoupled via callbacks provided by the actor/runner.
85
+ */
86
+ export class NodeOutputs {
87
+ _collected = {};
88
+ _sendFn;
89
+ _eosCallback;
90
+ constructor(opts = {}) {
91
+ this._sendFn = opts.sendFn ?? null;
92
+ this._eosCallback = opts.eosCallback ?? null;
93
+ }
94
+ /**
95
+ * Emit a value to a named output slot.
96
+ * Routes downstream via sendFn (if set) and collects the last value per slot.
97
+ * An empty or null slot name defaults to "output".
98
+ */
99
+ async emit(slot, value) {
100
+ const resolvedSlot = slot || "output";
101
+ this._collected[resolvedSlot] = value;
102
+ if (this._sendFn) {
103
+ await this._sendFn(resolvedSlot, value);
104
+ }
105
+ }
106
+ /**
107
+ * Convenience: emit to the "output" slot.
108
+ */
109
+ async default(value) {
110
+ await this.emit("output", value);
111
+ }
112
+ /**
113
+ * Signal early end-of-stream for a specific output slot.
114
+ * Calls the eosCallback if provided.
115
+ */
116
+ complete(slot) {
117
+ if (this._eosCallback) {
118
+ this._eosCallback(slot);
119
+ }
120
+ }
121
+ /**
122
+ * Return a snapshot of all collected outputs (slot → last emitted value).
123
+ */
124
+ collected() {
125
+ return { ...this._collected };
126
+ }
127
+ }
128
+ //# sourceMappingURL=io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QACnB,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACtB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;IAChC,CAAC;CACF"}
@@ -0,0 +1,221 @@
1
+ /**
2
+ * WorkflowRunner – DAG orchestration.
3
+ *
4
+ * Port of src/nodetool/workflows/workflow_runner.py.
5
+ *
6
+ * Responsibilities:
7
+ * - Graph validation and initialization.
8
+ * - Inbox creation with upstream counts.
9
+ * - Input value dispatch to input nodes.
10
+ * - Actor spawning with concurrent execution.
11
+ * - Output routing via send_messages.
12
+ * - Edge counter tracking for EOS propagation.
13
+ * - Control event dispatch.
14
+ * - Completion detection.
15
+ */
16
+ import type { NodeDescriptor, Edge, ProcessingMessage, ControlEvent } from "@nodetool-ai/protocol";
17
+ import type { ProcessingContext } from "@nodetool-ai/runtime";
18
+ import { type NodeExecutor } from "./actor.js";
19
+ /**
20
+ * Issue reported by a node validator. Mirrors the shape of
21
+ * `@nodetool-ai/node-sdk`'s `NodePropertyValidationIssue`, redeclared here to
22
+ * avoid a circular dependency (node-sdk depends on kernel).
23
+ */
24
+ export interface NodeValidationIssue {
25
+ nodeId?: string;
26
+ nodeType?: string;
27
+ property: string;
28
+ message: string;
29
+ }
30
+ /**
31
+ * Function used by WorkflowRunner to validate each node before execution.
32
+ * `connectedHandles` lists the targetHandles on the node that have an
33
+ * incoming data edge — those properties are produced at runtime and the
34
+ * validator must not flag them as missing.
35
+ */
36
+ export type NodeValidator = (node: NodeDescriptor, connectedHandles: ReadonlySet<string>) => NodeValidationIssue[] | undefined | null;
37
+ export interface RunJobRequest {
38
+ /** Unique job identifier. */
39
+ job_id: string;
40
+ /** Workflow / graph identifier. */
41
+ workflow_id?: string;
42
+ /** Input parameters keyed by input-node name. */
43
+ params?: Record<string, unknown>;
44
+ /** Optional parent workflow ID for sub-graph execution. */
45
+ parent_id?: string;
46
+ }
47
+ export interface WorkflowRunnerOptions {
48
+ /**
49
+ * Factory that resolves a NodeDescriptor to a NodeExecutor.
50
+ * This is the integration point for actual node implementations.
51
+ */
52
+ resolveExecutor: (node: NodeDescriptor) => NodeExecutor;
53
+ /** Optional per-inbox buffer limit. */
54
+ bufferLimit?: number | null;
55
+ /** Optional execution context passed to each node executor call. */
56
+ executionContext?: ProcessingContext;
57
+ /**
58
+ * Optional pre-flight validator invoked once per node after structural
59
+ * graph validation succeeds. Returning a non-empty list of issues aborts
60
+ * the run with a `GraphValidationError` before any actor is spawned.
61
+ *
62
+ * `NodeRegistry.createNodeValidator()` from `@nodetool-ai/node-sdk` produces
63
+ * a callback compatible with this signature.
64
+ */
65
+ validateNode?: NodeValidator;
66
+ }
67
+ export interface RunResult {
68
+ /** Outputs collected from output nodes, keyed by node name/id. */
69
+ outputs: Record<string, unknown[]>;
70
+ /** All processing messages emitted during the run. */
71
+ messages: ProcessingMessage[];
72
+ /** Final job status. */
73
+ status: "completed" | "failed" | "cancelled";
74
+ /** Error message if status is 'failed'. */
75
+ error?: string;
76
+ }
77
+ export declare class WorkflowRunner {
78
+ readonly jobId: string;
79
+ private _graph;
80
+ private _options;
81
+ /** Per-node inboxes. */
82
+ private _inboxes;
83
+ /** Per-edge message counters (for EdgeUpdate tracking). */
84
+ private _edgeCounters;
85
+ /** Per-edge streaming flag (true if on a streaming path). */
86
+ private _streamingEdges;
87
+ /** Control edges that have routed at least one event (used for diagnostics). */
88
+ private _controlEdgesRouted;
89
+ /**
90
+ * Multi-edge list inputs: nodeId → set of handles that aggregate
91
+ * multiple edges into a list.
92
+ */
93
+ private _multiEdgeListInputs;
94
+ /** Collected outputs from output nodes. */
95
+ private _outputs;
96
+ /** All emitted messages. */
97
+ private _messages;
98
+ /** Cancellation flag. */
99
+ private _cancelled;
100
+ /** Pending response resolvers for sendControlEvent. nodeId → resolver */
101
+ private _pendingControlResponses;
102
+ constructor(jobId: string, options: WorkflowRunnerOptions);
103
+ /**
104
+ * Push a streaming input value into the graph while it is running.
105
+ * The input name matches an input-node's `name` (or `id` fallback).
106
+ */
107
+ pushInputValue(inputName: string, value: unknown, sourceHandle?: string): Promise<void>;
108
+ /**
109
+ * Signal end-of-stream for an input node so downstream handles can complete.
110
+ */
111
+ finishInputStream(inputName: string, sourceHandle?: string): void;
112
+ /**
113
+ * Execute a workflow graph.
114
+ */
115
+ run(request: RunJobRequest, graphData: {
116
+ nodes: NodeDescriptor[];
117
+ edges: Edge[];
118
+ }): Promise<RunResult>;
119
+ private _runImpl;
120
+ private _resetRunState;
121
+ /**
122
+ * Cancel the running workflow.
123
+ */
124
+ cancel(): void;
125
+ /**
126
+ * Remove edges whose source or target node doesn't exist in the graph.
127
+ * Reconstructs the graph without dangling edges.
128
+ */
129
+ private _filterInvalidEdges;
130
+ /**
131
+ * Run the optional `validateNode` callback for every node in the graph,
132
+ * passing the set of property handles that have an incoming data edge.
133
+ * Aggregates issues across nodes and throws a single GraphValidationError.
134
+ */
135
+ private _validateNodes;
136
+ private _initializeGraph;
137
+ private _initializeInboxes;
138
+ private _detectMultiEdgeListInputs;
139
+ /**
140
+ * Deliver input parameters to input nodes (nodes with no incoming data edges).
141
+ * After delivery, mark them as done (EOS) since input nodes produce exactly
142
+ * one value.
143
+ */
144
+ private _dispatchInputs;
145
+ /**
146
+ * Spawn one NodeActor per node and run them concurrently.
147
+ * Actors that depend on inputs will block on their inboxes until
148
+ * upstream actors produce data.
149
+ */
150
+ private _processGraph;
151
+ /**
152
+ * Route output values from a node to downstream inboxes.
153
+ * For control edges: route control events to the __control__ handle.
154
+ * For data edges: route to the named target handle.
155
+ */
156
+ private _sendMessages;
157
+ /**
158
+ * Signal EOS on all outgoing edges of a completed node.
159
+ * For control edges: close the __control__ handle of the target.
160
+ * For data edges: close the named target handle.
161
+ */
162
+ private _sendEOS;
163
+ /**
164
+ * Route __control_output__ from controller nodes to all controlled
165
+ * nodes via control edges. Wraps raw property dicts in a RunEvent.
166
+ * (Python parity: send_messages special handling of __control_output__.)
167
+ */
168
+ private _routeControlOutput;
169
+ /**
170
+ * Broadcast a control event to all controlled nodes.
171
+ */
172
+ dispatchControlEvent(event: ControlEvent): Promise<void>;
173
+ /**
174
+ * Send a control event to a specific target node.
175
+ */
176
+ dispatchControlEventToTarget(event: ControlEvent, targetNodeId: string): Promise<void>;
177
+ /**
178
+ * Send a run control event to a specific node and await its output.
179
+ * Returns a promise that resolves with the node's output from the next
180
+ * output_update message emitted for that node.
181
+ */
182
+ sendControlEvent(targetNodeId: string, properties: Record<string, unknown>): Promise<Record<string, unknown>>;
183
+ private _incrementEdgeCounter;
184
+ /**
185
+ * Post a "drained" EdgeUpdate for any edge whose target handle still has
186
+ * buffered items or open upstream sources. Called during post-completion
187
+ * cleanup to ensure front-end consumers stop listening to streams and
188
+ * clear any spinners.
189
+ */
190
+ private _drainActiveEdges;
191
+ private _edgeKey;
192
+ private _analyzeStreaming;
193
+ /** Returns true if the given edge is on a streaming path. */
194
+ edgeStreams(edge: Edge): boolean;
195
+ private _checkPendingInboxWork;
196
+ private _isOutputNode;
197
+ /**
198
+ * External input nodes are placeholders that receive runtime params/streamed values.
199
+ * They should not execute as normal source actors.
200
+ */
201
+ private _isExternalInputNode;
202
+ private _getExternalInputName;
203
+ private _emit;
204
+ private _resolveInputNodes;
205
+ /**
206
+ * Build control context for a controller node.
207
+ * Returns null if the node has no outgoing control edges.
208
+ *
209
+ * The control context maps controlled node IDs to their metadata
210
+ * (node_type, properties with current values, types, descriptions).
211
+ * This is injected as `_control_context` input so agent nodes can
212
+ * build ControlNodeTool instances for LLM tool-calling.
213
+ */
214
+ private _buildControlContext;
215
+ /**
216
+ * Build the property schema for a controlled node's "run" action.
217
+ * Maps property names to JSON-schema-like descriptors for ControlNodeTool.
218
+ */
219
+ private _buildControlActionProperties;
220
+ }
221
+ //# sourceMappingURL=runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runner.d.ts","sourceRoot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