@supacloud/admin 0.12.0 → 0.12.1

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/README.md CHANGED
@@ -89,7 +89,9 @@ npx @supacloud/admin project service_control --ref abc123 --service gotrue --ser
89
89
  Each component reports `status` as `ok`, `unknown`, or `error`; a failed probe
90
90
  never substitutes a guessed version. Binary evidence is bound to the active
91
91
  systemd `ExecStart`, and Web Console evidence comes from its component marker
92
- plus an explicit `tree_sha256` digest.
92
+ plus an explicit `tree_sha256` digest. An `unknown` component remains a valid
93
+ inventory result, while any `error` component makes the CLI exit non-zero after
94
+ printing the structured report.
93
95
 
94
96
  ## Verified platform upgrades
95
97
 
package/dist/index.js CHANGED
@@ -4759,7 +4759,7 @@ var require_utils = __commonJS((exports, module) => {
4759
4759
 
4760
4760
  // node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node
4761
4761
  var require_sshcrypto = __commonJS((exports, module) => {
4762
- module.exports = __require("./sshcrypto-vd2k5hq9.node");
4762
+ module.exports = __require("./sshcrypto-8m50vnmb.node");
4763
4763
  });
4764
4764
 
4765
4765
  // node_modules/ssh2/lib/protocol/crypto/poly1305.js
@@ -28724,6 +28724,13 @@ async function platformVersions(ssh) {
28724
28724
  }
28725
28725
  };
28726
28726
  }
28727
+ function platformVersionsToolResult(report) {
28728
+ const isError = Object.values(report.components).some((component) => component.status === "error");
28729
+ return {
28730
+ content: [{ type: "text", text: JSON.stringify(report, null, 2) }],
28731
+ ...isError ? { isError: true } : {}
28732
+ };
28733
+ }
28727
28734
  function registerSshTools(server, ssh) {
28728
28735
  server.tool("ssh", `Server management via SSH. Available before & after SupaCloud installation.
28729
28736
  Actions: ping, setup, install, upgrade, versions, diagnose, exec, troubleshoot, container_logs, tenant_manage, tenant_list, tenant_inspect, tenant_diagnose, tenant_migrate`, {
@@ -28910,8 +28917,7 @@ ${upgradeExecution.stdout.slice(-300)}${edgeBoundary}`;
28910
28917
  break;
28911
28918
  }
28912
28919
  case "versions": {
28913
- text = JSON.stringify(await platformVersions(ssh), null, 2);
28914
- break;
28920
+ return platformVersionsToolResult(await platformVersions(ssh));
28915
28921
  }
28916
28922
  case "diagnose": {
28917
28923
  const cmds = [
@@ -31049,7 +31055,7 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
31049
31055
  // package.json
31050
31056
  var package_default = {
31051
31057
  name: "@supacloud/admin",
31052
- version: "0.12.0",
31058
+ version: "0.12.1",
31053
31059
  description: "Platform administration CLI for SupaCloud operators",
31054
31060
  type: "module",
31055
31061
  main: "./dist/index.js",
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/admin",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Platform administration CLI for SupaCloud operators",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
Binary file