@treeseed/sdk 0.13.0-rc.30 → 0.13.0-rc.31

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.
@@ -35,6 +35,14 @@ const operationBindings = {
35
35
  "host component enable": local("local.host.component.enable"),
36
36
  "host component disable": local("local.host.component.disable"),
37
37
  "host aliases list": local("local.host.aliases.list"),
38
+ "host config show": local("local.host.config.show"),
39
+ "host config plan": local("local.host.config.plan"),
40
+ "host config apply": local("local.host.config.apply"),
41
+ "host config adopt": local("local.host.config.adopt"),
42
+ "host topology": local("local.host.topology"),
43
+ "host connections": local("local.host.connections"),
44
+ "host provider status": local("local.host.provider.status"),
45
+ "host fleet status": local("local.host.fleet.status"),
38
46
  "host recovery status": local("local.host.recovery.status"),
39
47
  "host recovery retry": local("local.host.recovery.retry"),
40
48
  "host recovery restore": local("local.host.recovery.restore"),
@@ -110,6 +118,12 @@ function leaf(segment, kind = "read", argument, confirmation = "never") {
110
118
  function branch(segment, children) {
111
119
  return { nodeType: "branch", segment, description: `${segment[0].toUpperCase()}${segment.slice(1)} operations.`, children };
112
120
  }
121
+ function configurationAdopt() {
122
+ const value = leaf("adopt", "mutation", "file", "authority");
123
+ if (value.nodeType !== "leaf") throw new Error("Configuration adoption must be a leaf command.");
124
+ value.options = [...value.options ?? [], { name: "--confirm", description: "Confirm replacement of the installed configuration identity.", type: "boolean" }];
125
+ return value;
126
+ }
113
127
  const commandTree = {
114
128
  schemaVersion: "treeseed.command-tree/v1",
115
129
  executable: "trsd",
@@ -124,6 +138,11 @@ const commandTree = {
124
138
  leaf("apply", "mutation", void 0, "authority"),
125
139
  leaf("reconcile", "mutation", void 0, "authority"),
126
140
  leaf("events"),
141
+ branch("config", [leaf("show"), leaf("plan", "read", "file"), leaf("apply", "mutation", "file", "authority"), configurationAdopt()]),
142
+ leaf("topology"),
143
+ leaf("connections"),
144
+ branch("provider", [leaf("status")]),
145
+ branch("fleet", [leaf("status")]),
127
146
  branch("update", [leaf("status"), leaf("check", "mutation"), leaf("apply", "mutation", void 0, "authority"), leaf("channel", "mutation", "track", "authority"), leaf("pause", "mutation", void 0, "authority"), leaf("resume", "mutation", void 0, "authority")]),
128
147
  branch("component", [leaf("list"), leaf("status", "read", "component"), leaf("enable", "mutation", "component", "authority"), leaf("disable", "mutation", "component", "destructive")]),
129
148
  branch("aliases", [leaf("list")]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.13.0-rc.30",
3
+ "version": "0.13.0-rc.31",
4
4
  "description": "Portable TreeSeed contracts, standards, and typed remote control-plane clients.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {