@codemation/core-nodes 0.7.0 → 0.7.1
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/CHANGELOG.md +9 -0
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/nodes/SubWorkflowNode.ts +4 -0
- package/src/nodes/subWorkflow.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemation/core-nodes",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"ai": "^6.0.168",
|
|
34
34
|
"croner": "^10.0.1",
|
|
35
35
|
"lucide-react": "^0.577.0",
|
|
36
|
-
"@codemation/core": "0.10.
|
|
36
|
+
"@codemation/core": "0.10.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^25.3.5",
|
|
@@ -37,6 +37,10 @@ export class SubWorkflowNode implements RunnableNode<SubWorkflow<any, any>> {
|
|
|
37
37
|
engineMaxSubworkflowDepth: args.ctx.engineMaxSubworkflowDepth,
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
|
+
// Annotate the parent node's snapshot with the child run id so the UI can deep-link to
|
|
41
|
+
// the specific child execution. The engine's subsequent markCompleted preserves this via
|
|
42
|
+
// NodeExecutionSnapshotFactory.completed which carries forward previous.childRunId.
|
|
43
|
+
await args.ctx.nodeState?.setChildRunId?.({ nodeId: args.ctx.nodeId, childRunId: result.runId });
|
|
40
44
|
if (result.status !== "completed") {
|
|
41
45
|
throw new Error(`Subworkflow ${args.ctx.config.workflowId} did not complete (status=${result.status})`);
|
|
42
46
|
}
|
package/src/nodes/subWorkflow.ts
CHANGED
|
@@ -8,6 +8,7 @@ export class SubWorkflow<TInputJson = unknown, TOutputJson = unknown> implements
|
|
|
8
8
|
> {
|
|
9
9
|
readonly kind = "node" as const;
|
|
10
10
|
readonly type: TypeToken<unknown> = SubWorkflowNode;
|
|
11
|
+
readonly icon = "lucide:workflow";
|
|
11
12
|
constructor(
|
|
12
13
|
public readonly name: string,
|
|
13
14
|
public readonly workflowId: string,
|