wicked-core-ts 0.6.2 → 0.7.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.
Files changed (2) hide show
  1. package/index.d.ts +8 -0
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -275,6 +275,14 @@ export declare class Core {
275
275
  * distinction this return value exists to carry.
276
276
  */
277
277
  retirePolicy(id: string): Promise<string>
278
+ /**
279
+ * Archive (or unarchive) a TERMINAL run (crew#265) — a write-off, not a delete: the run and
280
+ * its artifacts stay fully readable, but default run listings exclude it. Resolves to a
281
+ * JSON-encoded boolean (`true` = session existed, `false` = unknown id → answer 404); REJECTS
282
+ * when the run is non-terminal (the caller answers 409 — write-off is for finished history
283
+ * only). Parse the reply; a bare truthiness test reads a miss as a hit.
284
+ */
285
+ archiveRun(runId: string, archived: boolean, note?: string | undefined | null): Promise<string>
278
286
  /**
279
287
  * Withdraw a conformance rule from recall. Same retire-not-delete contract as
280
288
  * [`Core::retire_policy`], and the same JSON-encoded `true`/`false` reply that must be
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "Node/TypeScript bindings (napi-rs) for wicked-core: drive the in-process orchestration engine from JS/TS.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,11 +41,11 @@
41
41
  "smoke:all": "node smoke.mjs && node smoke-lifecycle.mjs && node smoke-terminal.mjs"
42
42
  },
43
43
  "optionalDependencies": {
44
- "wicked-core-ts-darwin-arm64": "0.6.2",
45
- "wicked-core-ts-darwin-x64": "0.6.2",
46
- "wicked-core-ts-linux-arm64-gnu": "0.6.2",
47
- "wicked-core-ts-linux-x64-gnu": "0.6.2",
48
- "wicked-core-ts-win32-x64-msvc": "0.6.2"
44
+ "wicked-core-ts-darwin-arm64": "0.7.0",
45
+ "wicked-core-ts-darwin-x64": "0.7.0",
46
+ "wicked-core-ts-linux-arm64-gnu": "0.7.0",
47
+ "wicked-core-ts-linux-x64-gnu": "0.7.0",
48
+ "wicked-core-ts-win32-x64-msvc": "0.7.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@napi-rs/cli": "^2.18.4"