@claudexor/schema 3.3.12 → 3.3.13
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/control-gc.d.ts
CHANGED
|
@@ -11,10 +11,13 @@ export declare const GcKeepReason: z.ZodEnum<["active", "recent", "young", "refe
|
|
|
11
11
|
export type GcKeepReason = z.infer<typeof GcKeepReason>;
|
|
12
12
|
export declare const ControlGcRequest: z.ZodObject<{
|
|
13
13
|
dry_run: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
data_root_report: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
}, "strict", z.ZodTypeAny, {
|
|
15
16
|
dry_run: boolean;
|
|
17
|
+
data_root_report?: boolean | undefined;
|
|
16
18
|
}, {
|
|
17
19
|
dry_run?: boolean | undefined;
|
|
20
|
+
data_root_report?: boolean | undefined;
|
|
18
21
|
}>;
|
|
19
22
|
export type ControlGcRequest = z.infer<typeof ControlGcRequest>;
|
|
20
23
|
export declare const GcRunDeletion: z.ZodObject<{
|
|
@@ -120,6 +123,7 @@ export declare const ControlGcReceipt: z.ZodObject<{
|
|
|
120
123
|
}>, "many">>;
|
|
121
124
|
freed_bytes: z.ZodNumber;
|
|
122
125
|
errors: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
126
|
+
data_root_unrecognized: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
123
127
|
}, "strict", z.ZodTypeAny, {
|
|
124
128
|
schema_version: 1;
|
|
125
129
|
dry_run: boolean;
|
|
@@ -150,6 +154,7 @@ export declare const ControlGcReceipt: z.ZodObject<{
|
|
|
150
154
|
}[];
|
|
151
155
|
freed_bytes: number;
|
|
152
156
|
errors: string[];
|
|
157
|
+
data_root_unrecognized?: string[] | undefined;
|
|
153
158
|
}, {
|
|
154
159
|
schema_version?: 1 | undefined;
|
|
155
160
|
dry_run: boolean;
|
|
@@ -180,6 +185,7 @@ export declare const ControlGcReceipt: z.ZodObject<{
|
|
|
180
185
|
}[] | undefined;
|
|
181
186
|
freed_bytes: number;
|
|
182
187
|
errors?: string[] | undefined;
|
|
188
|
+
data_root_unrecognized?: string[] | undefined;
|
|
183
189
|
}>;
|
|
184
190
|
export type ControlGcReceipt = z.infer<typeof ControlGcReceipt>;
|
|
185
191
|
//# sourceMappingURL=control-gc.d.ts.map
|
package/dist/control-gc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-gc.d.ts","sourceRoot":"","sources":["../src/control-gc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;GAMG;AAEH,sDAAsD;AACtD,eAAO,MAAM,YAAY,uFAItB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"control-gc.d.ts","sourceRoot":"","sources":["../src/control-gc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;GAMG;AAEH,sDAAsD;AACtD,eAAO,MAAM,YAAY,uFAItB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;;;;;;;EAc6C,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa;;;;;;;;;;;;EAMf,CAAC;AACZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;EAUsB,CAAC;AAChD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDsB,CAAC;AACpD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/control-gc.js
CHANGED
|
@@ -16,6 +16,10 @@ export const ControlGcRequest = z
|
|
|
16
16
|
.boolean()
|
|
17
17
|
.default(false)
|
|
18
18
|
.describe("Report what WOULD be deleted without touching disk."),
|
|
19
|
+
data_root_report: z
|
|
20
|
+
.boolean()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe("Opt in to the advisory data-root scan: when true, the receipt carries data_root_unrecognized. Capability negotiation for engine-version skew — a client omits this unless the serving daemon is the SAME engine version, so an older daemon never sees the unknown request key and an older client never receives the unknown receipt key."),
|
|
19
23
|
})
|
|
20
24
|
.strict()
|
|
21
25
|
.describe("Run one retention pass over engine-owned runtime artifacts.");
|
|
@@ -75,6 +79,10 @@ export const ControlGcReceipt = z
|
|
|
75
79
|
.array(z.string())
|
|
76
80
|
.default([])
|
|
77
81
|
.describe("Non-fatal per-tree failures; the pass continues past them."),
|
|
82
|
+
data_root_unrecognized: z
|
|
83
|
+
.array(z.string())
|
|
84
|
+
.optional()
|
|
85
|
+
.describe("Names of top-level entries in the Claudexor-owned data root that the engine does not own and will never touch (advisory only — nothing here is ever deleted). The full sorted list. Present ONLY when the request opted in via data_root_report; ABSENT (not empty) when the request did not opt in, the scan failed, or the serving daemon predates the feature; a scan failure is disclosed in errors instead."),
|
|
78
86
|
})
|
|
79
87
|
.strict()
|
|
80
88
|
.describe("Typed receipt of one retention pass.");
|
package/dist/control-gc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-gc.js","sourceRoot":"","sources":["../src/control-gc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;GAMG;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC;KAChF,QAAQ,CACP,gSAAgS,CACjS,CAAC;AAGJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"control-gc.js","sourceRoot":"","sources":["../src/control-gc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;GAMG;AAEH,sDAAsD;AACtD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC;KAChF,QAAQ,CACP,gSAAgS,CACjS,CAAC;AAGJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,qDAAqD,CAAC;IAClE,gBAAgB,EAAE,CAAC;SAChB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,4UAA4U,CAC7U;CACJ,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CAAC,6DAA6D,CAAC,CAAC;AAG3E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,MAAM,EA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b,QAAQ,CAAC,mDAAmD,CAAC;IAChE,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,4DAA4D,CAAC;IACzE,sBAAsB,EAAE,CAAC;SACtB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,kZAAkZ,CACnZ;CACJ,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CAAC,sCAAsC,CAAC,CAAC"}
|
|
@@ -151,6 +151,13 @@
|
|
|
151
151
|
},
|
|
152
152
|
"default": [],
|
|
153
153
|
"description": "Non-fatal per-tree failures; the pass continues past them."
|
|
154
|
+
},
|
|
155
|
+
"data_root_unrecognized": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"description": "Names of top-level entries in the Claudexor-owned data root that the engine does not own and will never touch (advisory only — nothing here is ever deleted). The full sorted list. Present ONLY when the request opted in via data_root_report; ABSENT (not empty) when the request did not opt in, the scan failed, or the serving daemon predates the feature; a scan failure is disclosed in errors instead."
|
|
154
161
|
}
|
|
155
162
|
},
|
|
156
163
|
"required": [
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"type": "boolean",
|
|
9
9
|
"default": false,
|
|
10
10
|
"description": "Report what WOULD be deleted without touching disk."
|
|
11
|
+
},
|
|
12
|
+
"data_root_report": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Opt in to the advisory data-root scan: when true, the receipt carries data_root_unrecognized. Capability negotiation for engine-version skew — a client omits this unless the serving daemon is the SAME engine version, so an older daemon never sees the unknown request key and an older client never receives the unknown receipt key."
|
|
11
15
|
}
|
|
12
16
|
},
|
|
13
17
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudexor/schema",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Single source of truth for all Claudexor data shapes (Zod + generated JSON Schema).",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "^4.4.3",
|
|
22
22
|
"zod-to-json-schema": "^3.24.1",
|
|
23
|
-
"@claudexor/util": "3.3.
|
|
23
|
+
"@claudexor/util": "3.3.13"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|