@agentic-surfaces/core 0.1.17 → 0.1.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/dist/executor.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
package/dist/executor.js
CHANGED
|
@@ -11,7 +11,7 @@ export async function runWorkflow(opts) {
|
|
|
11
11
|
};
|
|
12
12
|
const queue = [triggerNodeId];
|
|
13
13
|
const visited = new Set();
|
|
14
|
-
observer?.onRunStart?.(workflow.name);
|
|
14
|
+
observer?.onRunStart?.(workflow.name, ctx.triggerPayload);
|
|
15
15
|
while (queue.length > 0) {
|
|
16
16
|
const id = queue.shift();
|
|
17
17
|
if (visited.has(id))
|
package/dist/types.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface NodeHandler {
|
|
|
65
65
|
execute(node: WorkflowNode, ctx: RunContext): Promise<NodeResult>;
|
|
66
66
|
}
|
|
67
67
|
export interface RunObserver {
|
|
68
|
-
onRunStart?(workflow: string): void;
|
|
68
|
+
onRunStart?(workflow: string, payload?: unknown): void;
|
|
69
69
|
onNodeStart?(nodeId: string): void;
|
|
70
70
|
onNodeFinish?(nodeId: string, status: "success" | "failed", meta?: unknown): void;
|
|
71
71
|
onRunFinish?(workflow: string, status: "success" | "failed"): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentic-surfaces/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"jsonata": "^2.2.1",
|
|
24
24
|
"yaml": "^2.9.0",
|
|
25
25
|
"zod": "^4.4.3",
|
|
26
|
-
"@agentic-surfaces/agent": "0.1.
|
|
26
|
+
"@agentic-surfaces/agent": "0.1.18"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/better-sqlite3": "^7.6.13",
|