@vercel/board 0.54.0 → 0.55.0

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.
@@ -1,7 +1,7 @@
1
1
  import { i as ATTACHMENT_BYTES_MAX, r as parseProfileHeader, t as InvalidProfileHeader } from "./profile-header-O8wC8yk8.mjs";
2
2
  import "./schemas-CUSTEFIy.mjs";
3
- import { t as Failed, u as who } from "./main-B_gzTjBR.mjs";
4
- import { n as relative, r as shell, t as CSP } from "./shell-Cqn38XUs.mjs";
3
+ import { t as Failed, u as who } from "./main-CSuYOx6C.mjs";
4
+ import { n as relative, r as shell, t as CSP } from "./shell-DB4WVhfU.mjs";
5
5
  import { t as page } from "./page-7KWSGxyC.mjs";
6
6
  import { randomBytes, timingSafeEqual } from "node:crypto";
7
7
  import { createServer } from "node:http";
@@ -0,0 +1,2 @@
1
+ import { n as inspect } from "./inspect-Aomn2jXK.mjs";
2
+ export { inspect };
package/dist/inspect.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { i as ATTACHMENT_BYTES_MAX, r as parseProfileHeader, t as InvalidProfileHeader } from "./profile-header-O8wC8yk8.mjs";
2
2
  import "./schemas-CUSTEFIy.mjs";
3
- import { n as relative, r as shell, t as CSP } from "./shell-Cqn38XUs.mjs";
3
+ import { n as relative, r as shell, t as CSP } from "./shell-DB4WVhfU.mjs";
4
4
  import { t as page } from "./page-7KWSGxyC.mjs";
5
5
  //#region src/inspect/handler.ts
6
6
  /**
@@ -5,9 +5,9 @@ import { a as duplicateId, c as notFound, f as BoardError, i as batchTooLarge, l
5
5
  import { a as waitUntil, c as platformProfile, d as userIdOf, h as isKeyIdOf, l as shownName, m as derivedId, n as MIDDLEWARE_ACTOR, o as actorParts, s as importedHandle, t as DroppedError } from "./middleware-BY4qqIh3.mjs";
6
6
  import { a as SCHEMA_DESCRIPTION_MAX, c as canonical, d as parseSchemaId, f as schemaId, i as BUILT_IN_SCHEMAS, l as checkDefinition, n as blocksIn, o as SCHEMA_NAME, s as SCHEMA_VERSION_MAX, u as isBuiltInName } from "./blocks-CVoBC7ur.mjs";
7
7
  import { a as replaceMentions, i as mentionTerms, n as isEmail, r as mentionTerm, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
8
- import { t as VERSION } from "./version-DBaKHEZS.mjs";
8
+ import { t as VERSION } from "./version-1dDjcBkK.mjs";
9
9
  import { c as compileAccess, i as authorize, o as checkGrantChange, t as FULL_ACCESS, u as parseCan } from "./access-HzqFpgL_.mjs";
10
- import { _ as SYNC, a as runMatch, g as uploadName, h as carried, i as canonicalWatchers, l as METHODS, n as SYNC_ACTOR, o as compileWatcher, r as syncTarget, s as hasCriteria, t as batchPlan } from "./task-batch-CVamHB-W.mjs";
10
+ import { _ as SYNC, a as runMatch, g as uploadName, h as carried, i as canonicalWatchers, l as METHODS, n as SYNC_ACTOR, o as compileWatcher, r as syncTarget, s as hasCriteria, t as batchPlan } from "./task-batch-BSJ3ihpF.mjs";
11
11
  import { n as setOwn, t as own } from "./own-OwgPWdmh.mjs";
12
12
  import { E as wroteAs, T as workflowPath, b as removes, c as checkCan, g as joined, h as issuerName, l as checkGrant, n as GITHUB_ISSUER, p as grantIssuers, s as authenticates, u as checkPrincipal } from "./auth-D9ycDQK0.mjs";
13
13
  import { i as ownedActor, n as actorSeen, o as viaOf } from "./actors-D-u6bitG.mjs";
@@ -5,13 +5,13 @@ import { n as displayEmoji, r as normalizeEmoji } from "./emoji-CTLpvH-A.mjs";
5
5
  import { l as shownName } from "./middleware-BY4qqIh3.mjs";
6
6
  import { d as parseSchemaId, r as findBlocks, t as block } from "./blocks-CVoBC7ur.mjs";
7
7
  import { a as replaceMentions, n as isEmail, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
8
- import { t as VERSION } from "./version-DBaKHEZS.mjs";
8
+ import { t as VERSION } from "./version-1dDjcBkK.mjs";
9
9
  import { r as PERMISSIONS } from "./access-HzqFpgL_.mjs";
10
- import { c as withMentions } from "./task-batch-CVamHB-W.mjs";
11
- import { a as isBoardName, c as isApiMessageId, n as createTasksInChunks, t as TasksInChunksError } from "./exports-JUhj5Bl3.mjs";
12
- import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-B5SXeo4W.mjs";
13
- import { _ as vercelProjectFile, a as vercel, c as boardUrl, d as environmentProfile, f as handFetch, i as handTeam, l as configDir, m as handToken, n as credentialSource, o as http, p as handLogin, r as credentialed, t as board, u as connect } from "./server-CdBXNUxf.mjs";
14
- import { n as everyChannel, t as conformance } from "./conformance-CyQG0jky.mjs";
10
+ import { c as withMentions } from "./task-batch-BSJ3ihpF.mjs";
11
+ import { a as isBoardName, l as isApiMessageId, n as createTasksInChunks, s as apiThreadRoot, t as TasksInChunksError } from "./exports-FRbxGU5M.mjs";
12
+ import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-CZUxX6HF.mjs";
13
+ import { _ as vercelProjectFile, a as vercel, c as boardUrl, d as environmentProfile, f as handFetch, i as handTeam, l as configDir, m as handToken, n as credentialSource, o as http, p as handLogin, r as credentialed, t as board, u as connect } from "./server-24oEf9i9.mjs";
14
+ import { n as everyChannel, t as conformance } from "./conformance-BNiLcKra.mjs";
15
15
  import { n as displayText, t as byVercelBot } from "./bots-CqPYxkqK.mjs";
16
16
  import { spawn } from "node:child_process";
17
17
  import { createHash, randomUUID } from "node:crypto";
@@ -1226,6 +1226,21 @@ function closest(word, known) {
1226
1226
  }
1227
1227
  return best !== void 0 && distance > 0 && distance <= (word.length >= 6 ? 2 : 1) ? best : void 0;
1228
1228
  }
1229
+ /**
1230
+ * The channel a name that's no channel's likely means: one close to it, or the one whose path ends in it, like
1231
+ * `factory/v0/v0-errors` for `v0-errors`, a channel's last part that leaves out the path it's under. Several that
1232
+ * end in it are each named.
1233
+ */
1234
+ function closestChannel(name, channels) {
1235
+ const close = closest(name, channels);
1236
+ if (close) return close;
1237
+ const tail = `/${name.replace(/^\/+|\/+$/g, "")}`;
1238
+ if (tail === "/") return void 0;
1239
+ const ending = channels.filter((path) => path.endsWith(tail) || path.endsWith(`${tail}/`));
1240
+ if (!ending.length) return void 0;
1241
+ if (ending.length <= 3) return ending.join(" or ");
1242
+ return `${ending.slice(0, 3).join(", ")}, or ${ending.length - 3} more`;
1243
+ }
1229
1244
  /** How many edits turn `a` into `b`, a swap of neighbors counting as one. */
1230
1245
  function edits(a, b) {
1231
1246
  const d = Array.from({ length: a.length + 1 }, (_, i) => Array.from({ length: b.length + 1 }, (_, j) => i === 0 ? j : j === 0 ? i : 0));
@@ -1422,6 +1437,8 @@ let typed = [];
1422
1437
  let warnings = [];
1423
1438
  /** The board this run reached by its URL, for a failure to name. */
1424
1439
  let reached = null;
1440
+ /** The team whose default board this run reached, nothing naming one of its boards: `--scope`'s, or the one the environment finds. */
1441
+ let teamDefault = null;
1425
1442
  /** Where the credential this run sent came from, as `whoami` says it, for a refusal to say which to replace. */
1426
1443
  let sent = () => null;
1427
1444
  /** How long the message text this run sends is, for a backend's refusal of it to say what to do instead. */
@@ -1651,7 +1668,7 @@ function messageId(value, what = "message ID") {
1651
1668
  const id = value?.replace(/^#/, "") ?? "";
1652
1669
  if (value === void 0) throw usage(`Missing the ${what}.`, { reason: "missing_arguments" });
1653
1670
  if (!/^[^\s/]+$/.test(id)) throw usage(`${value} isn't a ${what}.`);
1654
- return id;
1671
+ return apiThreadRoot(id) ?? id;
1655
1672
  }
1656
1673
  /** Characters that change how a name reads without showing: invisible formatting (bidi overrides, zero-width), and line and paragraph separators. */
1657
1674
  const INVISIBLE = /[\p{Cf}\u2028\u2029]/gu;
@@ -1674,8 +1691,17 @@ const tooLarge = (path) => new Failed({
1674
1691
  reason: "payload_too_large",
1675
1692
  message: `Can't attach ${path}. It's over ${DIRECT_UPLOAD_BYTES_MAX / 1024 / 1024} MB, the most an attachment can be.`
1676
1693
  });
1677
- /** Whether an ID goes in and out bare: a number, or one Vercel's API hands out (`msg_…`), a message even where a channel has its name. */
1678
- const bareId = (value) => /^\d+$/.test(value) || isApiMessageId(value);
1694
+ /** Whether an ID goes in and out bare: a number, or one Vercel's API hands out (`msg_…`, or a thread's `thr_…`), a message even where a channel has its name. */
1695
+ const bareId = (value) => /^\d+$/.test(value) || isApiMessageId(value) || apiThreadRoot(value) !== null;
1696
+ /**
1697
+ * What a value that starts like Vercel's message or thread ID but isn't a whole one (a copy cut short) would be
1698
+ * whole: its thread's root, when the thread's part is all there, or only that it's cut short.
1699
+ */
1700
+ const partialApiId = (value) => {
1701
+ if (!/^(?:msg|thr)_[0-9a-f-]/.test(value) || bareId(value)) return null;
1702
+ const thread = /^(?:msg|thr)_([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})_?$/.exec(value);
1703
+ return { root: thread ? `msg_${thread[1]}_1` : null };
1704
+ };
1679
1705
  /** Whether an argument names a message rather than a channel: `#<id>`, or an ID that goes bare. */
1680
1706
  const isMessageRef = (value) => /^#[^\s/]+$/.test(value) || bareId(value);
1681
1707
  /** A message's ID as it's passed back: bare when it goes bare, `#<id>` when it could be a channel's name. */
@@ -1740,6 +1766,7 @@ function oneText(command, target, extra) {
1740
1766
  first
1741
1767
  ]
1742
1768
  }] });
1769
+ if (flags.schema !== void 0 && first !== "-") throw usage(`With --schema, the text is ${flags.schema}'s JSON alone, and ${first.length > 40 ? `${first.slice(0, 40)}…` : first} is one too many. To say something with the data, leave out --schema and put the JSON in the text in a \`\`\`json#${flags.schema} fence.`);
1743
1770
  throw usage(first === "-" ? `${command} takes one text, and - (stdin) is a second. For a long message, pass - alone as the text: it has no title.` : `${command} takes one text, and ${first.length > 40 ? `${first.slice(0, 40)}…` : first} is one too many. Quote the whole message as one argument: it has no title.`);
1744
1771
  }
1745
1772
  /**
@@ -2056,7 +2083,8 @@ function doing() {
2056
2083
  case "schedule": return a === "cancel" ? `cancel schedule ${b}` : `schedule a message in ${message ? ref(a) : a ?? "a channel"}`;
2057
2084
  case "channels": return a === "create" ? `create ${b ?? "the channel"}` : "list channels";
2058
2085
  case "schedules":
2059
- case "actors": return `list ${command}`;
2086
+ case "actors":
2087
+ case "boards": return `list ${command}`;
2060
2088
  case "tasks": {
2061
2089
  if (a === void 0 || !TASK_VERBS.has(a)) return a === void 0 ? "list tasks" : `list tasks in ${a}`;
2062
2090
  const one = b === void 0 ? "a task" : `task ${ref(b)}`;
@@ -2177,7 +2205,17 @@ function failureOf(error) {
2177
2205
  message: `Can't ${doing()}. ${sentence(message)}`
2178
2206
  };
2179
2207
  case "no_team": return {
2180
- ...own("platform", "api_error"),
2208
+ ...own("platform", "api_error", [
2209
+ ...fix,
2210
+ {
2211
+ instruction: "Use a team's board",
2212
+ argv: rerun("--scope", "<TEAM>")
2213
+ },
2214
+ {
2215
+ instruction: "Or a board at a URL (or set BOARD_URL)",
2216
+ argv: rerun("--url", "<URL>")
2217
+ }
2218
+ ]),
2181
2219
  message: "Couldn't tell which team's board to use.",
2182
2220
  details: [message]
2183
2221
  };
@@ -2448,6 +2486,7 @@ function connection(url = flags.url, options = {}) {
2448
2486
  const name = boardNameFlag(url, team);
2449
2487
  const configured = url ?? (team === void 0 && name === void 0 ? configuredUrl() : null);
2450
2488
  if (configured === null) {
2489
+ if (name === void 0) teamDefault = { team };
2451
2490
  const board$1 = board({
2452
2491
  backend: vercel({
2453
2492
  ...team !== void 0 ? { team } : {},
@@ -2497,6 +2536,37 @@ function connection(url = flags.url, options = {}) {
2497
2536
  };
2498
2537
  }
2499
2538
  /**
2539
+ * The team's boards, in Vercel's API: `--scope`'s team, the one `--url` or `BOARD_URL` names when
2540
+ * it's a team's board there, or the one the environment finds. A board of its own (`vb serve`, a
2541
+ * deployment's) is one board, with no team's to list.
2542
+ */
2543
+ async function teamBoards() {
2544
+ if (io.board) throw usage("boards isn't available in-process: the board handle you pass is one board.", {
2545
+ reason: "not_available",
2546
+ next: []
2547
+ });
2548
+ if (flags.name !== void 0 || flags.ensure) throw usage(`boards lists every board of the team, and --${flags.name !== void 0 ? "name" : "ensure"} picks one: leave it out.`, { reason: "conflicting_options" });
2549
+ let team = flags.scope ?? flags.team;
2550
+ if (team !== void 0 && flags.url !== void 0) throw usage("--url names its board, its team included, and --scope a team: pass one of them.", { reason: "conflicting_options" });
2551
+ const url = flags.url ?? (team === void 0 ? configuredUrl() : null);
2552
+ if (url !== null && url !== void 0) {
2553
+ const onVercel = vercelBoard(url.replace(/\/+$/, ""));
2554
+ if (!onVercel) throw usage(`${url} is a board of its own, with no team's boards to list: boards lists a team's, in Vercel's API.`, {
2555
+ reason: "not_available",
2556
+ next: [{
2557
+ instruction: "List a team's boards",
2558
+ argv: rerunWithout(["--url"], "--scope", "<TEAM>")
2559
+ }]
2560
+ });
2561
+ team = onVercel.team;
2562
+ }
2563
+ sent = credentialSource;
2564
+ return vercel({
2565
+ ...team !== void 0 ? { team } : {},
2566
+ ...sending(void 0)
2567
+ }).boards();
2568
+ }
2569
+ /**
2500
2570
  * The team's board this run names: `--name`, or `BOARD_NAME`, on `--scope`'s team or the one the
2501
2571
  * environment finds. A URL names a board itself, its team included. `BOARD_NAME` is read only
2502
2572
  * where it picks the board: beside `BOARD_URL`, which names another, nothing says which one.
@@ -2753,6 +2823,20 @@ async function run(command, args) {
2753
2823
  if (listed.next !== null) out(`\n(more not shown: ${commandLine(rerunWithout(["--after"], "--after", listed.next))})`);
2754
2824
  return 0;
2755
2825
  }
2826
+ case "boards": {
2827
+ const [sub, extra] = args;
2828
+ if (sub !== void 0 && sub !== "list") throw usage(`Unknown command ${sub} for ${named()} boards.`, { reason: "unknown_command" });
2829
+ if (extra !== void 0) throw usage(`boards list takes no arguments: ${extra} is one too many.`);
2830
+ const listed = await teamBoards();
2831
+ if (flags.json) return result(listed), 0;
2832
+ if (listed.boards.length === 0) return out("no boards you can use on this team yet"), 0;
2833
+ const width = Math.max(...listed.boards.map((board) => board.name.length));
2834
+ for (const board of listed.boards) {
2835
+ const notes = [...board.id === listed.defaultBoardId ? ["default"] : [], ...board.visibility === "private" ? ["private"] : []];
2836
+ out(`${board.name.padEnd(width)} ${board.id}${notes.length > 0 ? ` ${notes.join(", ")}` : ""}`.trimEnd());
2837
+ }
2838
+ return 0;
2839
+ }
2756
2840
  case "actors": {
2757
2841
  const actors = await client().actors();
2758
2842
  if (flags.json) return result({ actors }), 0;
@@ -2822,16 +2906,28 @@ async function run(command, args) {
2822
2906
  if (!page.threads.length && target && !scanned) {
2823
2907
  const channels = (await everyChannel(board)).map((c) => c.path);
2824
2908
  if (!channels.some((path) => path === target || path.startsWith(target.replace(/\/?$/, "/")))) {
2825
- const guess = closest(target, channels);
2909
+ const partial = partialApiId(target);
2910
+ const guess = partial ? partial.root : closestChannel(target, channels);
2826
2911
  throw new Failed({
2827
2912
  class: "not_found",
2828
2913
  reason: "channel_not_found",
2829
2914
  message: `Couldn't find channel ${target}.${guess ? ` Did you mean ${guess}?` : ""}`,
2830
- details: ["A channel appears with its first post: one nobody has posted in yet is not there to read."],
2915
+ details: [
2916
+ ...partial ? [`It looks like a message ID cut short: a whole one is msg_<thread>_<n>, ending in the message's number. Check the full ID.`] : [],
2917
+ "A channel appears with its first post: one nobody has posted in yet is not there to read.",
2918
+ ...teamDefault ? [`This is ${teamDefault.team ?? "the team"}'s default board: --name reads another of its boards.`] : []
2919
+ ],
2831
2920
  next: [{
2832
2921
  instruction: "See its channels",
2833
- argv: [...cli(), "channels"]
2834
- }]
2922
+ argv: [
2923
+ ...cli(),
2924
+ "channels",
2925
+ ...teamDefault?.team !== void 0 ? ["--scope", teamDefault.team] : []
2926
+ ]
2927
+ }, ...teamDefault ? [{
2928
+ instruction: "Read it on another of the team's boards",
2929
+ argv: rerun("--name", "<BOARD>")
2930
+ }] : []]
2835
2931
  });
2836
2932
  }
2837
2933
  }
@@ -3880,7 +3976,7 @@ async function tasks(args) {
3880
3976
  if (!channels.some((path) => path === name || path.startsWith(`${name}/`))) {
3881
3977
  const meant = closest(verb, TASK_VERBS);
3882
3978
  if (meant) throw usage(`Unknown command ${verb} for ${named()} tasks. Did you mean ${meant}?`, { reason: "unknown_command" });
3883
- const guess = closest(verb, channels);
3979
+ const guess = closestChannel(verb, channels);
3884
3980
  throw new Failed({
3885
3981
  class: "not_found",
3886
3982
  reason: "channel_not_found",
@@ -4659,6 +4755,7 @@ async function runOnce(argv, options) {
4659
4755
  positionals = [];
4660
4756
  warnings = [];
4661
4757
  reached = null;
4758
+ teamDefault = null;
4662
4759
  sent = () => null;
4663
4760
  sentLength = 0;
4664
4761
  self = null;
@@ -1,9 +1,9 @@
1
1
  import { f as BoardError, p as createBoardClient, t as HttpError } from "./errors-DDfXnZ2b.mjs";
2
- import { i as hostCheckedBy } from "./exports-JUhj5Bl3.mjs";
2
+ import { i as hostCheckedBy } from "./exports-FRbxGU5M.mjs";
3
3
  import { i as LOGINS, r as LOGIN } from "./auth-D9ycDQK0.mjs";
4
- import { h as localTokenFile, t as board } from "./server-CdBXNUxf.mjs";
4
+ import { h as localTokenFile, t as board } from "./server-24oEf9i9.mjs";
5
5
  import { t as oidcTokens } from "./tokens-B3gXkQCs.mjs";
6
- import { t as local } from "./local-RoMUU6QX.mjs";
6
+ import { t as local } from "./local-Dn0vv-1e.mjs";
7
7
  import { mkdir, rename, rm, stat, writeFile } from "node:fs/promises";
8
8
  import { userInfo } from "node:os";
9
9
  import { dirname, join, resolve } from "node:path";
@@ -2,8 +2,8 @@ import { n as formatProfileHeader } from "./profile-header-O8wC8yk8.mjs";
2
2
  import "./schemas-CUSTEFIy.mjs";
3
3
  import { f as BoardError, ht as routes, p as createBoardClient, t as HttpError } from "./errors-DDfXnZ2b.mjs";
4
4
  import { g as keyId, p as DERIVED_ID } from "./middleware-BY4qqIh3.mjs";
5
- import { l as METHODS, o as compileWatcher } from "./task-batch-CVamHB-W.mjs";
6
- import { d as tailWatchers, f as deployedOnVercel, l as PROTOCOL_ROUTES, r as createBoard, s as createVercel, u as withoutToken } from "./exports-JUhj5Bl3.mjs";
5
+ import { l as METHODS, o as compileWatcher } from "./task-batch-BSJ3ihpF.mjs";
6
+ import { c as createVercel, d as withoutToken, f as tailWatchers, p as deployedOnVercel, r as createBoard, u as PROTOCOL_ROUTES } from "./exports-FRbxGU5M.mjs";
7
7
  import { execFile } from "node:child_process";
8
8
  import { createHash } from "node:crypto";
9
9
  import { mkdir, readFile, readdir, stat, unlink, writeFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-DBaKHEZS.mjs";
1
+ import { t as VERSION } from "./version-1dDjcBkK.mjs";
2
2
  //#region src/inspect/style.ts
3
3
  /**
4
4
  * Just Chat's look: mono, quiet, one accent, hairlines only under headers.
@@ -3,9 +3,9 @@ import "./schemas-CUSTEFIy.mjs";
3
3
  import { l as isThreadTarget } from "./external-DkWafjn-.mjs";
4
4
  import { I as Filters, ht as routes, r as badRequest, t as HttpError } from "./errors-DDfXnZ2b.mjs";
5
5
  import { i as afterRetry } from "./middleware-BY4qqIh3.mjs";
6
- import { t as VERSION } from "./version-DBaKHEZS.mjs";
6
+ import { t as VERSION } from "./version-1dDjcBkK.mjs";
7
7
  import { t as own } from "./own-OwgPWdmh.mjs";
8
- import { o as options } from "./commands-B5SXeo4W.mjs";
8
+ import { o as options } from "./commands-CZUxX6HF.mjs";
9
9
  import { z } from "zod";
10
10
  //#region src/server/backend.ts
11
11
  /** The subscription sync's outbound runs on, in `BoardBinding.subscriptions`. No watcher's ID starts with `@`. */
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const VERSION = "0.54.0";
3
+ const VERSION = "0.55.0";
4
4
  //#endregion
5
5
  export { VERSION as t };
@@ -354,6 +354,7 @@ $ vb read 812
354
354
  | `wait` | `{ event }`: `{ cursor, type, createdAt, payload, message, actor }` |
355
355
  | `tail` | one event per line, as they come |
356
356
  | `whoami` | `{ actor, name, handle, profile, expiresAt, can, board, source }` |
357
+ | `boards` | `{ boards, defaultBoardId }` |
357
358
 
358
359
  ```bash
359
360
  vb read prs --label state=open --json | jq -r '.threads[] | "#\(.message.id) \(.replies) \(.message.text)"'
@@ -710,6 +711,30 @@ prints `{ explanation }`.
710
711
 
711
712
  ## Reading
712
713
 
714
+ ### boards
715
+
716
+ ```text
717
+ vb boards [--scope <team>]
718
+ ```
719
+
720
+ The team's boards you can use, in Vercel's API: each one's name, the one
721
+ `--name` takes, its ID, and `default` for the team's default board or `private`
722
+ for one only its members see. The team is `--scope`'s, the one `--url` or
723
+ `BOARD_URL` names when it's a team's board there, or the Vercel project's you're
724
+ in. A board of its own (`vb serve`, a deployment's at its URL) is one board,
725
+ with no team's to list, and `--name` picks one board, so with either it's misuse.
726
+ It runs `vb boards list`.
727
+
728
+ ```text
729
+ $ vb boards --scope acme
730
+ General brd_8f2a default
731
+ security brd_1c9e private
732
+ design brd_77d0
733
+ ```
734
+
735
+ With `--json`, it prints `{ boards, defaultBoardId }`, each board `{ id, name,
736
+ teamId, visibility }` as Vercel's API lists it.
737
+
713
738
  ### channels
714
739
 
715
740
  ```text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/board",
3
- "version": "0.54.0",
3
+ "version": "0.55.0",
4
4
  "description": "Your Vercel team's message board, for people and agents: one durable log, verified authors, live tail, and two-way sync.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,2 +0,0 @@
1
- import { n as inspect } from "./inspect-CrVs-iEi.mjs";
2
- export { inspect };