@koda-sl/baker-cli 0.113.1 → 0.113.2

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
@@ -2500,7 +2500,11 @@ baker mcp remove --name weather
2500
2500
  ```
2501
2501
 
2502
2502
  - `--url` must be HTTPS and public; loopback / private / cloud-metadata hosts are rejected.
2503
- - `--scope company` (default) shares with every chat in the company; `--scope org` needs an admin API key; `--scope user` binds to the current message sender (requires running inside a chat turn — the bridge supplies the sender via `BAKER_ACTING_USER_ID`).
2503
+ - Scope is two independent choices audience (just you / everyone) × level (this company / whole org):
2504
+ - `--scope company` (default) — everyone in this company.
2505
+ - `--scope org` — everyone across the org; needs an admin API key.
2506
+ - `--scope user` — only you, in this company; binds to the current message sender (requires a chat turn — the bridge supplies the sender via `BAKER_ACTING_USER_ID`).
2507
+ - `--scope user_org` — only you, across every company in the org; also binds to the sender (no admin needed — it only affects your own turns).
2504
2508
  - Repeat `--header "Key: Value"` for multiple auth headers. Header values are stored server-side and ride the MCP transport — `list` returns only the header keys, never the values.
2505
2509
 
2506
2510
  ---
package/dist/cli.js CHANGED
@@ -18583,11 +18583,11 @@ Paid transforms (run on the Convex backend, cost-tracked):
18583
18583
 
18584
18584
  // src/commands/mcp/index.ts
18585
18585
  import { defineCommand as defineCommand123 } from "citty";
18586
- var SCOPES = ["user", "company", "org"];
18586
+ var SCOPES = ["user", "user_org", "company", "org"];
18587
18587
  function parseScope(raw) {
18588
18588
  const scope = raw === void 0 ? "company" : String(raw);
18589
18589
  if (!SCOPES.includes(scope)) {
18590
- throw new ApiError("VALIDATION_ERROR", `Invalid --scope "${scope}". Use user | company | org.`);
18590
+ throw new ApiError("VALIDATION_ERROR", `Invalid --scope "${scope}". Use user | user_org | company | org.`);
18591
18591
  }
18592
18592
  return scope;
18593
18593
  }
@@ -18642,7 +18642,7 @@ registerSchema({
18642
18642
  args: {
18643
18643
  name: { type: "string", description: "Server name \u2192 tools appear as mcp__<name>__*", required: true },
18644
18644
  url: { type: "string", description: "HTTPS MCP endpoint", required: true },
18645
- scope: { type: "string", description: "user | company | org (default company)", required: false },
18645
+ scope: { type: "string", description: "user | user_org | company | org (default company)", required: false },
18646
18646
  header: { type: "string", description: 'Auth header "Key: Value" (repeatable)', required: false }
18647
18647
  }
18648
18648
  });
@@ -18661,7 +18661,7 @@ Examples:
18661
18661
  args: {
18662
18662
  name: { type: "string", description: "Server name (mcp__<name>__*)", required: true },
18663
18663
  url: { type: "string", description: "HTTPS MCP endpoint", required: true },
18664
- scope: { type: "string", description: "user | company | org (default company)", required: false },
18664
+ scope: { type: "string", description: "user | user_org | company | org (default company)", required: false },
18665
18665
  header: { type: "string", description: 'Auth header "Key: Value" (repeatable)', required: false }
18666
18666
  },
18667
18667
  run: async ({ args }) => {