@topolo/cli 0.1.12 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { platform as platform2 } from "os";
9
9
  import { createInterface } from "readline/promises";
10
10
  import { stdin as input } from "process";
11
11
 
12
- // ../../../../../Users/ashes/Projects/topolo/PlatformApplications/packages/topolo-sdk/dist/index.js
12
+ // ../packages/topolo-sdk/dist/index.js
13
13
  function applyAuthHeaders(headers, credential) {
14
14
  if (credential.kind === "api_key") {
15
15
  headers.set("X-Api-Key", credential.apiKey);
@@ -1942,7 +1942,7 @@ function sleep(ms) {
1942
1942
  }
1943
1943
 
1944
1944
  // src/version.ts
1945
- var CLI_VERSION = "0.1.12";
1945
+ var CLI_VERSION = "0.1.13";
1946
1946
 
1947
1947
  // src/client.ts
1948
1948
  async function buildClient(options) {
@@ -5074,7 +5074,9 @@ function resolvePlatformSurfaceModel(value) {
5074
5074
  );
5075
5075
  }
5076
5076
  function isPlatformAdminIdentity(identity) {
5077
- return String(identity?.user?.role || "").trim().toLowerCase() === "super_admin" && String(identity?.organization?.slug || "").trim().toLowerCase() === "admin";
5077
+ const role = String(identity?.user?.role || "").trim().toLowerCase();
5078
+ const orgSlug = String(identity?.organization?.slug || "").trim().toLowerCase();
5079
+ return orgSlug === "admin" && (role === "platform_super_admin" || role === "platform_admin");
5078
5080
  }
5079
5081
  async function requirePlatformAdminSession() {
5080
5082
  const client = await buildClient();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topolo/cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Command-line interface for Topolo developers, operators, and agents, with internal first-party scaffolding available under the topolo platform namespace.",
5
5
  "type": "module",
6
6
  "bin": {