@cleocode/contracts 2026.10.13 → 2026.10.14-rc.ci.683
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/__tests__/memory-wire-shapes.test.js.map +1 -1
- package/dist/acceptance-gate.d.ts +13 -0
- package/dist/acceptance-gate.d.ts.map +1 -1
- package/dist/config.d.ts +8 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/dispatch/operations-registry.d.ts.map +1 -1
- package/dist/dispatch/operations-registry.js +12 -0
- package/dist/dispatch/operations-registry.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/invariants/sync-write-invariants.js +1 -1
- package/dist/invariants/sync-write-invariants.js.map +1 -1
- package/dist/lean.d.ts +36 -0
- package/dist/lean.d.ts.map +1 -1
- package/dist/memory/fetch.d.ts +3 -0
- package/dist/memory/fetch.d.ts.map +1 -1
- package/dist/memory/search.d.ts +9 -0
- package/dist/memory/search.d.ts.map +1 -1
- package/dist/operations/memory.d.ts +5 -0
- package/dist/operations/memory.d.ts.map +1 -1
- package/dist/store-restore.d.ts +27 -0
- package/dist/store-restore.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/__snapshots__/operations-registry.test.ts.snap +1 -1
- package/src/__tests__/memory-wire-shapes.test.ts +2 -0
- package/src/acceptance-gate.ts +14 -0
- package/src/config.ts +8 -0
- package/src/dispatch/operations-registry.ts +12 -0
- package/src/index.ts +9 -1
- package/src/invariants/sync-write-invariants.ts +1 -1
- package/src/lean.ts +35 -0
- package/src/memory/fetch.ts +4 -0
- package/src/memory/search.ts +12 -0
- package/src/operations/memory.ts +5 -0
- package/src/store-restore.ts +28 -0
package/dist/store-restore.d.ts
CHANGED
|
@@ -33,6 +33,20 @@ export interface StoreRestoreKept {
|
|
|
33
33
|
/** Raw sidecar copies kept beside it (`-wal`, `-shm`, `-journal`), when not checkpointed. */
|
|
34
34
|
readonly sidecars: readonly string[];
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* The docs byte surfaces restored from a backup id (T13704, T13708): the
|
|
38
|
+
* blob-store and attachment databases and the byte files `docs fetch` reads.
|
|
39
|
+
*/
|
|
40
|
+
export interface StoreRestoreDocsBytes {
|
|
41
|
+
/** `true` only when every recorded database and byte file was verified and placed. */
|
|
42
|
+
readonly complete: boolean;
|
|
43
|
+
/** Databases placed, relative to `.cleo/` (`blobs/manifest.db`, `attachments/index.db`). */
|
|
44
|
+
readonly dbsRestored: readonly string[];
|
|
45
|
+
/** Byte files verified (sha256) and placed. */
|
|
46
|
+
readonly filesRestored: number;
|
|
47
|
+
/** What was not placed, each `<path>: <why>` (missing, sha256 mismatch, integrity_check, busy). */
|
|
48
|
+
readonly failed: readonly string[];
|
|
49
|
+
}
|
|
36
50
|
/** Result of a store restore (or its dry run). */
|
|
37
51
|
export interface StoreRestoreResult {
|
|
38
52
|
readonly dryRun: boolean;
|
|
@@ -49,6 +63,19 @@ export interface StoreRestoreResult {
|
|
|
49
63
|
readonly removedSidecars: readonly string[];
|
|
50
64
|
/** How to undo the restore (`null` on a dry run, or when nothing was replaced). */
|
|
51
65
|
readonly undo: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The docs byte surfaces restored with the store (`--id` of a backup that
|
|
68
|
+
* captured them, T13708). Absent otherwise.
|
|
69
|
+
*/
|
|
70
|
+
readonly docsBytes?: StoreRestoreDocsBytes;
|
|
71
|
+
/**
|
|
72
|
+
* `true` when the store was placed but part of the backup was not (a docs
|
|
73
|
+
* byte that was missing or failed verification): the restore is not a
|
|
74
|
+
* clean success and the CLI exits non-zero (T13709).
|
|
75
|
+
*/
|
|
76
|
+
readonly partial?: boolean;
|
|
77
|
+
/** What the partial restore left out, one line each. */
|
|
78
|
+
readonly warnings?: readonly string[];
|
|
52
79
|
}
|
|
53
80
|
/**
|
|
54
81
|
* `cleo backup recover tasks|brain|conduit`: the freshest valid snapshot of the
|
|
@@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
|
2
2
|
"name": "@cleocode/contracts",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.14-rc.ci.683",
|
|
4
4
|
"description": "Domain types, interfaces, and contracts for the CLEO ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"dependencies": {
|
|
203
203
|
"zod": "^4.3.6",
|
|
204
204
|
"zod-to-json-schema": "^3.25.2",
|
|
205
|
-
"@cleocode/lafs": "2026.10.
|
|
205
|
+
"@cleocode/lafs": "2026.10.14-rc.ci.683"
|
|
206
206
|
},
|
|
207
207
|
"scripts": {
|
|
208
208
|
"build": "tsc -b --force && node scripts/copy-assets.mjs && node scripts/emit-schemas.mjs",
|