@odla-ai/cli 0.27.6 → 0.27.8

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/dist/bin.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  exitCodeFor,
4
4
  redactSecrets,
5
5
  runCli
6
- } from "./chunk-DQOJ4S6H.js";
6
+ } from "./chunk-MZSU4YQL.js";
7
7
 
8
8
  // src/bin.ts
9
9
  runCli().catch((err) => {
@@ -465,7 +465,7 @@ var SCOPE_PURPOSE = {
465
465
  "platform:status:read": "read the platform fleet health and deployment snapshot",
466
466
  "app:config:read": "compare checked-in intent with an exact-id app Registry configuration",
467
467
  "app:config:write": "apply or inspect one revision-bound configuration operation for an app you own",
468
- "platform:runbook:write": "add or edit odla's operational runbooks",
468
+ "platform:runbook:write": "read and edit all of odla's operational runbooks, including admin-visible content",
469
469
  "platform:ai:policy:write": "change System AI model routing",
470
470
  "platform:ai:policy:read": "read System AI model routing",
471
471
  "platform:ai:credential:write": "replace a stored AI provider key",
@@ -12332,8 +12332,13 @@ async function whoamiCommand(parsed, deps = {}) {
12332
12332
  out.log(`admin: ${identity.admin ? "yes" : "no"}`);
12333
12333
  if (identity.scopes.length) out.log(`scopes: ${identity.scopes.join(", ")}`);
12334
12334
  if (!identity.admin) {
12335
- out.log("\nYou can read platform runbooks but not edit them. A handshake-minted");
12336
- out.log("device token never carries admin \u2014 sign in to Studio as an admin to edit.");
12335
+ if (identity.scopes.includes("platform:runbook:write")) {
12336
+ out.log("\nThis exact scope can read and edit all platform runbook content.");
12337
+ out.log("The device token is not ambient admin and cannot change visibility.");
12338
+ } else {
12339
+ out.log("\nYou can read operator-visible platform runbooks but not edit them.");
12340
+ out.log("Use a platform-admin-approved runbook write request to edit.");
12341
+ }
12337
12342
  }
12338
12343
  }
12339
12344
 
@@ -13161,4 +13166,4 @@ export {
13161
13166
  exitCodeFor,
13162
13167
  runCli
13163
13168
  };
13164
- //# sourceMappingURL=chunk-DQOJ4S6H.js.map
13169
+ //# sourceMappingURL=chunk-MZSU4YQL.js.map