@treeseed/cli 0.4.9 → 0.4.11

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.
@@ -34,6 +34,7 @@ function formatPrintEnvReports(payload) {
34
34
  function renderConfigResult(commandName, result) {
35
35
  const payload = result.payload;
36
36
  const toolHealth = payload.toolHealth;
37
+ const readinessByScope = payload.result?.readinessByScope ?? {};
37
38
  const summary = payload.mode === "print-env-only" ? "Treeseed config environment report completed." : payload.mode === "rotate-machine-key" ? "Treeseed machine key rotated successfully." : "Treeseed config completed successfully.";
38
39
  return guidedResult({
39
40
  command: commandName,
@@ -45,6 +46,9 @@ function renderConfigResult(commandName, result) {
45
46
  { label: "Safe repairs", value: Array.isArray(payload.repairs) ? payload.repairs.length : 0 },
46
47
  { label: "Machine config", value: payload.configPath },
47
48
  { label: "Machine key", value: payload.keyPath },
49
+ { label: "Local readiness", value: readinessByScope.local?.deployable ? "deployable" : readinessByScope.local?.configured ? "configured" : "pending" },
50
+ { label: "Staging readiness", value: readinessByScope.staging?.deployable ? "deployable" : readinessByScope.staging?.provisioned ? "provisioned" : readinessByScope.staging?.configured ? "configured" : "pending" },
51
+ { label: "Prod readiness", value: readinessByScope.prod?.deployable ? "deployable" : readinessByScope.prod?.provisioned ? "provisioned" : readinessByScope.prod?.configured ? "configured" : "pending" },
48
52
  { label: "GitHub CLI", value: toolHealth?.githubCli?.available ? "ready" : "missing" },
49
53
  { label: "gh act", value: toolHealth?.ghActExtension?.available ? "ready" : "missing" },
50
54
  { label: "Docker", value: toolHealth?.dockerDaemon?.available ? "ready" : "missing" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/cli",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "description": "Operator-facing Treeseed CLI package.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "release:publish": "node ./scripts/run-ts.mjs ./scripts/publish-package.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@treeseed/sdk": "^0.4.8",
46
+ "@treeseed/sdk": "^0.4.12",
47
47
  "ink": "^7.0.0",
48
48
  "react": "^19.2.5"
49
49
  },