@odla-ai/cli 0.27.6 → 0.27.7

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/index.cjs CHANGED
@@ -586,7 +586,7 @@ var SCOPE_PURPOSE = {
586
586
  "platform:status:read": "read the platform fleet health and deployment snapshot",
587
587
  "app:config:read": "compare checked-in intent with an exact-id app Registry configuration",
588
588
  "app:config:write": "apply or inspect one revision-bound configuration operation for an app you own",
589
- "platform:runbook:write": "add or edit odla's operational runbooks",
589
+ "platform:runbook:write": "read and edit all of odla's operational runbooks, including admin-visible content",
590
590
  "platform:ai:policy:write": "change System AI model routing",
591
591
  "platform:ai:policy:read": "read System AI model routing",
592
592
  "platform:ai:credential:write": "replace a stored AI provider key",
@@ -12144,8 +12144,13 @@ async function whoamiCommand(parsed, deps = {}) {
12144
12144
  out.log(`admin: ${identity.admin ? "yes" : "no"}`);
12145
12145
  if (identity.scopes.length) out.log(`scopes: ${identity.scopes.join(", ")}`);
12146
12146
  if (!identity.admin) {
12147
- out.log("\nYou can read platform runbooks but not edit them. A handshake-minted");
12148
- out.log("device token never carries admin \u2014 sign in to Studio as an admin to edit.");
12147
+ if (identity.scopes.includes("platform:runbook:write")) {
12148
+ out.log("\nThis exact scope can read and edit all platform runbook content.");
12149
+ out.log("The device token is not ambient admin and cannot change visibility.");
12150
+ } else {
12151
+ out.log("\nYou can read operator-visible platform runbooks but not edit them.");
12152
+ out.log("Use a platform-admin-approved runbook write request to edit.");
12153
+ }
12149
12154
  }
12150
12155
  }
12151
12156