@codemation/core 0.10.0 → 0.10.2
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 +28 -0
- package/dist/{EngineRuntimeRegistration.types-pB3FnzqR.d.cts → EngineRuntimeRegistration.types-BryWi2mA.d.cts} +2 -2
- package/dist/{EngineRuntimeRegistration.types-D1fyApMI.d.ts → EngineRuntimeRegistration.types-ClLuY1FG.d.ts} +2 -2
- package/dist/{InMemoryRunDataFactory-Xw7v4-sj.d.cts → InMemoryRunDataFactory-DeXNJt1O.d.cts} +2 -2
- package/dist/{RunIntentService-siBSjaaY.d.cts → RunIntentService-BqNjrksF.d.cts} +15 -1
- package/dist/{RunIntentService-BE9CAkbf.d.ts → RunIntentService-CI-F8qQ7.d.ts} +20 -1
- package/dist/bootstrap/index.cjs +2 -2
- package/dist/bootstrap/index.d.cts +3 -3
- package/dist/bootstrap/index.d.ts +3 -3
- package/dist/bootstrap/index.js +2 -2
- package/dist/{bootstrap-D3r505ko.js → bootstrap-BfFKGzyj.js} +2 -2
- package/dist/{bootstrap-D3r505ko.js.map → bootstrap-BfFKGzyj.js.map} +1 -1
- package/dist/{bootstrap-Cm5ruQxx.cjs → bootstrap-DtjQtuvi.cjs} +2 -2
- package/dist/{bootstrap-Cm5ruQxx.cjs.map → bootstrap-DtjQtuvi.cjs.map} +1 -1
- package/dist/{index-DeLl1Tne.d.ts → index-CJQtTY_M.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{runtime-BGNbRnqs.js → runtime-DbMjpb5d.js} +19 -4
- package/dist/runtime-DbMjpb5d.js.map +1 -0
- package/dist/{runtime-DKXJwTNv.cjs → runtime-_ywksLa6.cjs} +19 -4
- package/dist/runtime-_ywksLa6.cjs.map +1 -0
- package/dist/testing.cjs +6 -2
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +6 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/contracts/executionPersistenceContracts.ts +5 -0
- package/src/contracts/runTypes.ts +5 -0
- package/src/contracts/runtimeTypes.ts +6 -0
- package/src/execution/NodeExecutionSnapshotFactory.ts +3 -0
- package/src/execution/NodeRunStateWriter.ts +12 -0
- package/src/testing/SubWorkflowRunnerTestNode.ts +1 -0
- package/dist/runtime-BGNbRnqs.js.map +0 -1
- package/dist/runtime-DKXJwTNv.cjs.map +0 -1
|
@@ -1022,7 +1022,8 @@ var NodeExecutionSnapshotFactory = class {
|
|
|
1022
1022
|
inputsByPort: args.inputsByPort,
|
|
1023
1023
|
outputs: args.outputs,
|
|
1024
1024
|
usedPinnedOutput: fromPinnedOutput,
|
|
1025
|
-
error: void 0
|
|
1025
|
+
error: void 0,
|
|
1026
|
+
...args.previous?.childRunId !== void 0 ? { childRunId: args.previous.childRunId } : {}
|
|
1026
1027
|
};
|
|
1027
1028
|
}
|
|
1028
1029
|
static skipped(args) {
|
|
@@ -1039,7 +1040,8 @@ var NodeExecutionSnapshotFactory = class {
|
|
|
1039
1040
|
updatedAt: args.finishedAt,
|
|
1040
1041
|
inputsByPort: args.inputsByPort,
|
|
1041
1042
|
outputs: args.outputs,
|
|
1042
|
-
error: void 0
|
|
1043
|
+
error: void 0,
|
|
1044
|
+
...args.previous?.childRunId !== void 0 ? { childRunId: args.previous.childRunId } : {}
|
|
1043
1045
|
};
|
|
1044
1046
|
}
|
|
1045
1047
|
static failed(args) {
|
|
@@ -1061,7 +1063,8 @@ var NodeExecutionSnapshotFactory = class {
|
|
|
1061
1063
|
name: args.error.name,
|
|
1062
1064
|
stack: args.error.stack,
|
|
1063
1065
|
details: args.error.details
|
|
1064
|
-
}
|
|
1066
|
+
},
|
|
1067
|
+
...args.previous?.childRunId !== void 0 ? { childRunId: args.previous.childRunId } : {}
|
|
1065
1068
|
};
|
|
1066
1069
|
}
|
|
1067
1070
|
};
|
|
@@ -2718,6 +2721,18 @@ var NodeRunStateWriter = class {
|
|
|
2718
2721
|
await this.publishNodeEvent("nodeFailed", snapshot);
|
|
2719
2722
|
});
|
|
2720
2723
|
}
|
|
2724
|
+
setChildRunId(args) {
|
|
2725
|
+
return this.enqueue(async () => {
|
|
2726
|
+
const state = await this.loadState();
|
|
2727
|
+
const previous = state.nodeSnapshotsByNodeId?.[args.nodeId];
|
|
2728
|
+
if (!previous) return;
|
|
2729
|
+
const updated = {
|
|
2730
|
+
...previous,
|
|
2731
|
+
childRunId: args.childRunId
|
|
2732
|
+
};
|
|
2733
|
+
await this.saveSnapshot(state, updated);
|
|
2734
|
+
});
|
|
2735
|
+
}
|
|
2721
2736
|
appendConnectionInvocation(args) {
|
|
2722
2737
|
return this.enqueue(async () => {
|
|
2723
2738
|
const state = await this.loadState();
|
|
@@ -6750,4 +6765,4 @@ Object.defineProperty(exports, 'tool', {
|
|
|
6750
6765
|
return tool;
|
|
6751
6766
|
}
|
|
6752
6767
|
});
|
|
6753
|
-
//# sourceMappingURL=runtime-
|
|
6768
|
+
//# sourceMappingURL=runtime-_ywksLa6.cjs.map
|