@treeseed/sdk 0.13.0-rc.31 → 0.13.0-rc.33
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.
|
@@ -175,7 +175,7 @@ const integrationReleaseSchema = z.object({
|
|
|
175
175
|
release: packageVersion,
|
|
176
176
|
manifest: lockedArtifactSchema,
|
|
177
177
|
files: z.array(z.object({ path: z.string().min(1), artifact: lockedArtifactSchema }).strict()).min(1)
|
|
178
|
-
}).strict())
|
|
178
|
+
}).strict()),
|
|
179
179
|
createdAt: z.string().datetime()
|
|
180
180
|
}).strict().superRefine((release, context) => {
|
|
181
181
|
const components = release.components.map((component) => component.componentId);
|
|
@@ -189,7 +189,7 @@ const releaseCatalogSchema = z.object({
|
|
|
189
189
|
compatibilityId: identifier,
|
|
190
190
|
catalogDigest: digest,
|
|
191
191
|
stableBase: z.object({ release: packageVersion, catalogDigest: digest }).strict().nullable(),
|
|
192
|
-
components: z.array(componentReleaseSchema)
|
|
192
|
+
components: z.array(componentReleaseSchema),
|
|
193
193
|
createdAt: z.string().datetime()
|
|
194
194
|
}).strict().superRefine((catalog, context) => {
|
|
195
195
|
if (catalog.track === "development" && !catalog.stableBase) context.addIssue({ code: z.ZodIssueCode.custom, path: ["stableBase"], message: "Development catalogs require an exact stable base." });
|
|
@@ -48,6 +48,7 @@ const operationBindings = {
|
|
|
48
48
|
"host recovery restore": local("local.host.recovery.restore"),
|
|
49
49
|
"host bootstrap status": local("local.host.bootstrap.status"),
|
|
50
50
|
"host bootstrap enroll": local("local.host.bootstrap.enroll"),
|
|
51
|
+
"host reset": local("local.host.reset"),
|
|
51
52
|
"agents list": operation("agents.list", [field("path", "projectId", "context", "project", true), ...page()]),
|
|
52
53
|
"agents show": operation("agents.show", [field("path", "projectId", "context", "project", true), field("path", "agentSlug", "argument", "agent", true)]),
|
|
53
54
|
"agents classes list": operation("agents.classes.list", [field("path", "projectId", "context", "project", true)]),
|
|
@@ -124,6 +125,13 @@ function configurationAdopt() {
|
|
|
124
125
|
value.options = [...value.options ?? [], { name: "--confirm", description: "Confirm replacement of the installed configuration identity.", type: "boolean" }];
|
|
125
126
|
return value;
|
|
126
127
|
}
|
|
128
|
+
function hostReset() {
|
|
129
|
+
const value = leaf("reset", "mutation", void 0, "irreversible");
|
|
130
|
+
if (value.nodeType !== "leaf") throw new Error("Host reset must be a leaf command.");
|
|
131
|
+
value.description = "Stop managed components, erase their state, and reconcile a fresh unseeded platform.";
|
|
132
|
+
value.options = [...value.options ?? [], { name: "--confirm", description: "Confirm deletion of all manager-owned component data and receipts.", type: "boolean" }];
|
|
133
|
+
return value;
|
|
134
|
+
}
|
|
127
135
|
const commandTree = {
|
|
128
136
|
schemaVersion: "treeseed.command-tree/v1",
|
|
129
137
|
executable: "trsd",
|
|
@@ -147,7 +155,8 @@ const commandTree = {
|
|
|
147
155
|
branch("component", [leaf("list"), leaf("status", "read", "component"), leaf("enable", "mutation", "component", "authority"), leaf("disable", "mutation", "component", "destructive")]),
|
|
148
156
|
branch("aliases", [leaf("list")]),
|
|
149
157
|
branch("recovery", [leaf("status"), leaf("retry", "mutation", void 0, "authority"), leaf("restore", "mutation", "generation", "destructive")]),
|
|
150
|
-
branch("bootstrap", [leaf("status"), leaf("enroll", "mutation", void 0, "credential")])
|
|
158
|
+
branch("bootstrap", [leaf("status"), leaf("enroll", "mutation", void 0, "credential")]),
|
|
159
|
+
hostReset()
|
|
151
160
|
]),
|
|
152
161
|
branch("agents", [
|
|
153
162
|
leaf("list"),
|