@axiom-lattice/core 2.1.67 → 2.1.68
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/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2393,6 +2393,10 @@ var InMemoryWorkflowTrackingStore = class {
|
|
|
2393
2393
|
this.runs.set(runId, updated);
|
|
2394
2394
|
return updated;
|
|
2395
2395
|
}
|
|
2396
|
+
async deleteWorkflowRun(runId) {
|
|
2397
|
+
this.runs.delete(runId);
|
|
2398
|
+
this.steps.delete(runId);
|
|
2399
|
+
}
|
|
2396
2400
|
async getWorkflowRunsByThreadId(tenantId, threadId) {
|
|
2397
2401
|
const results = [];
|
|
2398
2402
|
for (const run of this.runs.values()) {
|
|
@@ -17239,6 +17243,9 @@ function createTopologyMiddleware(options) {
|
|
|
17239
17243
|
stepIdMap: z54.record(z54.string()).default({})
|
|
17240
17244
|
}),
|
|
17241
17245
|
beforeAgent: async (state, runtime) => {
|
|
17246
|
+
if (state.runId) {
|
|
17247
|
+
return {};
|
|
17248
|
+
}
|
|
17242
17249
|
const runConfig = runtime.context?.runConfig ?? {};
|
|
17243
17250
|
const startingNode = edges[0]?.from ?? runConfig.assistant_id ?? "";
|
|
17244
17251
|
let runId = "";
|