@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 CHANGED
@@ -2618,6 +2618,10 @@ var InMemoryWorkflowTrackingStore = class {
2618
2618
  this.runs.set(runId, updated);
2619
2619
  return updated;
2620
2620
  }
2621
+ async deleteWorkflowRun(runId) {
2622
+ this.runs.delete(runId);
2623
+ this.steps.delete(runId);
2624
+ }
2621
2625
  async getWorkflowRunsByThreadId(tenantId, threadId) {
2622
2626
  const results = [];
2623
2627
  for (const run of this.runs.values()) {
@@ -17418,6 +17422,9 @@ function createTopologyMiddleware(options) {
17418
17422
  stepIdMap: import_zod52.z.record(import_zod52.z.string()).default({})
17419
17423
  }),
17420
17424
  beforeAgent: async (state, runtime) => {
17425
+ if (state.runId) {
17426
+ return {};
17427
+ }
17421
17428
  const runConfig = runtime.context?.runConfig ?? {};
17422
17429
  const startingNode = edges[0]?.from ?? runConfig.assistant_id ?? "";
17423
17430
  let runId = "";