@clearideas/agent-runtime-store-local 0.7.1 → 0.9.0

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.
@@ -23,4 +23,5 @@ export declare class MemoryRunStore implements RunStore {
23
23
  failRun(runId: string, error: RunError, failedAt: string, expectedAttempt: number): Promise<void>;
24
24
  interruptRun(runId: string, error: RunError, interruptedAt: string, expectedAttempt: number): Promise<void>;
25
25
  cancelRun(runId: string, cancelledAt: string, expectedAttempt: number): Promise<void>;
26
+ deleteRun(runId: string): Promise<boolean>;
26
27
  }
@@ -150,6 +150,17 @@ export class MemoryRunStore {
150
150
  updatedAt: cancelledAt,
151
151
  });
152
152
  }
153
+ async deleteRun(runId) {
154
+ const existing = this.#runs.get(runId);
155
+ if (!existing)
156
+ return false;
157
+ if (existing.status === "running") {
158
+ throw new Error(`Cannot delete running run ${runId}`);
159
+ }
160
+ this.#runs.delete(runId);
161
+ this.#checkpoints.delete(runId);
162
+ return true;
163
+ }
153
164
  #requireRun(runId) {
154
165
  const record = this.#runs.get(runId);
155
166
  if (!record)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clearideas/agent-runtime-store-local",
3
- "version": "0.7.1",
3
+ "version": "0.9.0",
4
4
  "description": "Memory, file, console, and JSONL adapters for Clear Ideas Agent Runtime.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Clear Ideas Incorporated",
@@ -36,8 +36,8 @@
36
36
  "postpack": "node ../../scripts/cleanup-package-license.mjs"
37
37
  },
38
38
  "dependencies": {
39
- "@clearideas/agent-runtime-contracts": "0.7.1",
40
- "@clearideas/agent-runtime-core": "0.7.1",
39
+ "@clearideas/agent-runtime-contracts": "0.9.0",
40
+ "@clearideas/agent-runtime-core": "0.9.0",
41
41
  "yaml": "^2.9.1"
42
42
  },
43
43
  "devDependencies": {
@@ -46,7 +46,7 @@
46
46
  "vitest": "^5.1.0"
47
47
  },
48
48
  "engines": {
49
- "node": ">=24"
49
+ "node": ">=22.20.0"
50
50
  },
51
51
  "homepage": "https://github.com/clearideas/agent-runtime#readme",
52
52
  "bugs": {