@vercel/board 0.54.1 → 0.56.1
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/backend-local.mjs +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/{commands-D8HctFGJ.mjs → commands-7FY_8p92.mjs} +15 -0
- package/dist/{exports-D6Q99t_O.mjs → exports-DSX-CI5c.mjs} +22 -2
- package/dist/index.mjs +1 -1
- package/dist/index.node.mjs +2 -2
- package/dist/inspect/app.js +1 -1
- package/dist/{inspect-Cb1Sj8QV.mjs → inspect-C-vDnB_n.mjs} +2 -2
- package/dist/inspect-CJ8osLQ-.mjs +2 -0
- package/dist/inspect.mjs +1 -1
- package/dist/{local-BtzF9fRs.mjs → local-B5aZcAwj.mjs} +2 -2
- package/dist/{main-Dicvkp6D.mjs → main-DSlpMoBN.mjs} +76 -14
- package/dist/{serve-BMOtQEiQ.mjs → serve-CI3kvpx_.mjs} +3 -3
- package/dist/{server--J1DfQjI.mjs → server-55vryxAl.mjs} +2 -2
- package/dist/{shell-DsDyOFd1.mjs → shell-7nGyF--f.mjs} +1 -1
- package/dist/{task-batch-BviIruES.mjs → task-batch-iecHMssy.mjs} +3 -3
- package/dist/{version-1isUFDyU.mjs → version-gbihG3ui.mjs} +1 -1
- package/docs/01-board/03-identity.md +2 -2
- package/docs/01-board/06-watchers.md +2 -1
- package/docs/04-reference/01-cli.md +27 -1
- package/package.json +1 -1
- package/dist/inspect-DeY883DA.mjs +0 -2
|
@@ -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-
|
|
4
|
-
import { n as relative, r as shell, t as CSP } from "./shell-
|
|
3
|
+
import { t as Failed, u as who } from "./main-DSlpMoBN.mjs";
|
|
4
|
+
import { n as relative, r as shell, t as CSP } from "./shell-7nGyF--f.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";
|
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-
|
|
3
|
+
import { n as relative, r as shell, t as CSP } from "./shell-7nGyF--f.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-
|
|
8
|
+
import { t as VERSION } from "./version-gbihG3ui.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
|
|
10
|
+
import { _ as uploadName, a as runMatch, g as carried, i as canonicalWatchers, n as SYNC_ACTOR, o as compileWatcher, r as syncTarget, s as hasCriteria, t as batchPlan, u as METHODS, v as SYNC } from "./task-batch-iecHMssy.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,12 +5,12 @@ 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-
|
|
8
|
+
import { t as VERSION } from "./version-gbihG3ui.mjs";
|
|
9
9
|
import { r as PERMISSIONS } from "./access-HzqFpgL_.mjs";
|
|
10
|
-
import { c as withMentions } from "./task-batch-
|
|
11
|
-
import { a as isBoardName, l as isApiMessageId, n as createTasksInChunks, s as apiThreadRoot, t as TasksInChunksError } from "./exports-
|
|
12
|
-
import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-
|
|
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
|
|
10
|
+
import { c as mentionValue, l as withMentions } from "./task-batch-iecHMssy.mjs";
|
|
11
|
+
import { a as isBoardName, l as isApiMessageId, n as createTasksInChunks, s as apiThreadRoot, t as TasksInChunksError } from "./exports-DSX-CI5c.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-7FY_8p92.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-55vryxAl.mjs";
|
|
14
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";
|
|
@@ -1435,6 +1435,8 @@ let current = {
|
|
|
1435
1435
|
let typed = [];
|
|
1436
1436
|
/** What this run's writes had to say, for its JSON result. */
|
|
1437
1437
|
let warnings = [];
|
|
1438
|
+
/** The word a bare `--mentions` came before, when it isn't the command: a warning says how it reads. */
|
|
1439
|
+
let bareMentions;
|
|
1438
1440
|
/** The board this run reached by its URL, for a failure to name. */
|
|
1439
1441
|
let reached = null;
|
|
1440
1442
|
/** The team whose default board this run reached, nothing naming one of its boards: `--scope`'s, or the one the environment finds. */
|
|
@@ -1466,6 +1468,17 @@ const TEXT = /* @__PURE__ */ new Set([
|
|
|
1466
1468
|
"edit",
|
|
1467
1469
|
"schedule"
|
|
1468
1470
|
]);
|
|
1471
|
+
/**
|
|
1472
|
+
* The word a bare `--mentions` came before, when it isn't the command: `--mentions ada` means
|
|
1473
|
+
* mentions of you, with `ada` a channel or ID, since only `me` or a word with an `@` is its value.
|
|
1474
|
+
*/
|
|
1475
|
+
function bareMentionsWord(argv, word) {
|
|
1476
|
+
const end = argv.includes("--") ? argv.indexOf("--") : argv.length;
|
|
1477
|
+
for (let at = 0; at < end - 1; at++) {
|
|
1478
|
+
const next = argv[at + 1];
|
|
1479
|
+
if (argv[at] === "--mentions" && !mentionValue(next) && !next.startsWith("-") && canonical(next) !== word) return next;
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1469
1482
|
/** Parses `argv` for this run, or throws what's wrong with it. */
|
|
1470
1483
|
function parse(argv) {
|
|
1471
1484
|
const args = withMentions(argv);
|
|
@@ -1494,6 +1507,7 @@ function parse(argv) {
|
|
|
1494
1507
|
}] : []);
|
|
1495
1508
|
flags = parsed.values;
|
|
1496
1509
|
positionals = parsed.positionals.map((arg) => arg.startsWith(MARK) ? arg.slice(1) : arg);
|
|
1510
|
+
bareMentions = bareMentionsWord(argv, word);
|
|
1497
1511
|
} catch (error) {
|
|
1498
1512
|
throw parseFailure(error, argv, word);
|
|
1499
1513
|
}
|
|
@@ -2084,6 +2098,7 @@ function doing() {
|
|
|
2084
2098
|
case "channels": return a === "create" ? `create ${b ?? "the channel"}` : "list channels";
|
|
2085
2099
|
case "schedules":
|
|
2086
2100
|
case "actors": return `list ${command}`;
|
|
2101
|
+
case "list": return "list the team's boards";
|
|
2087
2102
|
case "tasks": {
|
|
2088
2103
|
if (a === void 0 || !TASK_VERBS.has(a)) return a === void 0 ? "list tasks" : `list tasks in ${a}`;
|
|
2089
2104
|
const one = b === void 0 ? "a task" : `task ${ref(b)}`;
|
|
@@ -2423,10 +2438,13 @@ function unsupportedRecoveries() {
|
|
|
2423
2438
|
}
|
|
2424
2439
|
/** `42s`, `2m`: a wait the way people say it. */
|
|
2425
2440
|
const waitFor = (seconds) => seconds < 120 ? `${Math.max(1, seconds)}s` : `${Math.ceil(seconds / 60)}m`;
|
|
2426
|
-
/** How this run ends with `failure`: shown on stderr, or by the app, and its exit code. */
|
|
2441
|
+
/** How this run ends with `failure`: shown on stderr, or by the app, and its exit code. With `--json`, its document carries the run's warnings, which may say why it failed. */
|
|
2427
2442
|
function report(failure, json) {
|
|
2428
2443
|
if (app.onError) app.onError(failure, { json });
|
|
2429
|
-
else if (json) io.error(`${JSON.stringify(
|
|
2444
|
+
else if (json) io.error(`${JSON.stringify(warnings.length ? {
|
|
2445
|
+
...failureDocument(failure),
|
|
2446
|
+
warnings
|
|
2447
|
+
} : failureDocument(failure))}\n`);
|
|
2430
2448
|
else io.error(`${terminalText(formatFailure(failure))}\n`);
|
|
2431
2449
|
return exitCode(failure);
|
|
2432
2450
|
}
|
|
@@ -2535,6 +2553,37 @@ function connection(url = flags.url, options = {}) {
|
|
|
2535
2553
|
};
|
|
2536
2554
|
}
|
|
2537
2555
|
/**
|
|
2556
|
+
* The team's boards, in Vercel's API: `--scope`'s team, the one `--url` or `BOARD_URL` names when
|
|
2557
|
+
* it's a team's board there, or the one the environment finds. A board of its own (`vb serve`, a
|
|
2558
|
+
* deployment's) is one board, with no team's to list.
|
|
2559
|
+
*/
|
|
2560
|
+
async function teamBoards() {
|
|
2561
|
+
if (io.board) throw usage("list isn't available in-process: the board handle you pass is one board.", {
|
|
2562
|
+
reason: "not_available",
|
|
2563
|
+
next: []
|
|
2564
|
+
});
|
|
2565
|
+
if (flags.name !== void 0 || flags.ensure) throw usage(`list lists every board of the team, and --${flags.name !== void 0 ? "name" : "ensure"} picks one: leave it out.`, { reason: "conflicting_options" });
|
|
2566
|
+
let team = flags.scope ?? flags.team;
|
|
2567
|
+
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" });
|
|
2568
|
+
const url = flags.url ?? (team === void 0 ? configuredUrl() : null);
|
|
2569
|
+
if (url !== null && url !== void 0) {
|
|
2570
|
+
const onVercel = vercelBoard(url.replace(/\/+$/, ""));
|
|
2571
|
+
if (!onVercel) throw usage(`${url} is a board of its own, with no team's boards to list: list lists a team's, in Vercel's API.`, {
|
|
2572
|
+
reason: "not_available",
|
|
2573
|
+
next: [{
|
|
2574
|
+
instruction: "List a team's boards",
|
|
2575
|
+
argv: rerunWithout(["--url"], "--scope", "<TEAM>")
|
|
2576
|
+
}]
|
|
2577
|
+
});
|
|
2578
|
+
team = onVercel.team;
|
|
2579
|
+
}
|
|
2580
|
+
sent = credentialSource;
|
|
2581
|
+
return vercel({
|
|
2582
|
+
...team !== void 0 ? { team } : {},
|
|
2583
|
+
...sending(void 0)
|
|
2584
|
+
}).boards();
|
|
2585
|
+
}
|
|
2586
|
+
/**
|
|
2538
2587
|
* The team's board this run names: `--name`, or `BOARD_NAME`, on `--scope`'s team or the one the
|
|
2539
2588
|
* environment finds. A URL names a board itself, its team included. `BOARD_NAME` is read only
|
|
2540
2589
|
* where it picks the board: beside `BOARD_URL`, which names another, nothing says which one.
|
|
@@ -2791,6 +2840,18 @@ async function run(command, args) {
|
|
|
2791
2840
|
if (listed.next !== null) out(`\n(more not shown: ${commandLine(rerunWithout(["--after"], "--after", listed.next))})`);
|
|
2792
2841
|
return 0;
|
|
2793
2842
|
}
|
|
2843
|
+
case "list": {
|
|
2844
|
+
if (args[0] !== void 0) throw usage(`list takes no arguments: ${args[0]} is one too many.`);
|
|
2845
|
+
const listed = await teamBoards();
|
|
2846
|
+
if (flags.json) return result(listed), 0;
|
|
2847
|
+
if (listed.boards.length === 0) return out("no boards you can use on this team yet"), 0;
|
|
2848
|
+
const width = Math.max(...listed.boards.map((board) => board.name.length));
|
|
2849
|
+
for (const board of listed.boards) {
|
|
2850
|
+
const notes = [...board.id === listed.defaultBoardId ? ["default"] : [], ...board.visibility === "private" ? ["private"] : []];
|
|
2851
|
+
out(`${board.name.padEnd(width)} ${board.id}${notes.length > 0 ? ` ${notes.join(", ")}` : ""}`.trimEnd());
|
|
2852
|
+
}
|
|
2853
|
+
return 0;
|
|
2854
|
+
}
|
|
2794
2855
|
case "actors": {
|
|
2795
2856
|
const actors = await client().actors();
|
|
2796
2857
|
if (flags.json) return result({ actors }), 0;
|
|
@@ -4426,13 +4487,9 @@ const OTHER_NAMES = {
|
|
|
4426
4487
|
search: SEARCH,
|
|
4427
4488
|
find: SEARCH,
|
|
4428
4489
|
grep: SEARCH,
|
|
4429
|
-
|
|
4430
|
-
instruction: "List
|
|
4431
|
-
argv: ["
|
|
4432
|
-
},
|
|
4433
|
-
ls: {
|
|
4434
|
-
instruction: "List a channel's threads with read",
|
|
4435
|
-
argv: ["read", "<CHANNEL>"]
|
|
4490
|
+
boards: {
|
|
4491
|
+
instruction: "List the team's boards",
|
|
4492
|
+
argv: ["list"]
|
|
4436
4493
|
},
|
|
4437
4494
|
threads: {
|
|
4438
4495
|
instruction: "List a channel's threads with read",
|
|
@@ -4708,6 +4765,7 @@ async function runOnce(argv, options) {
|
|
|
4708
4765
|
flags = {};
|
|
4709
4766
|
positionals = [];
|
|
4710
4767
|
warnings = [];
|
|
4768
|
+
bareMentions = void 0;
|
|
4711
4769
|
reached = null;
|
|
4712
4770
|
teamDefault = null;
|
|
4713
4771
|
sent = () => null;
|
|
@@ -4730,6 +4788,10 @@ async function runOnce(argv, options) {
|
|
|
4730
4788
|
command,
|
|
4731
4789
|
args
|
|
4732
4790
|
};
|
|
4791
|
+
if (bareMentions !== void 0) warn({
|
|
4792
|
+
reason: "bare_mentions",
|
|
4793
|
+
message: `--mentions ${bareMentions} means mentions of you, with ${bareMentions} as a channel or ID: for mentions of ${bareMentions}, write --mentions @${bareMentions}.`
|
|
4794
|
+
});
|
|
4733
4795
|
if (io.board) {
|
|
4734
4796
|
const given = flags.url ? "url" : flags.name !== void 0 ? "name" : flags.ensure ? "ensure" : null;
|
|
4735
4797
|
if (given) throw usage(`--${given} doesn't apply in-process: the board handle you pass says which board and who.`, { next: [] });
|
|
@@ -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-
|
|
2
|
+
import { i as hostCheckedBy } from "./exports-DSX-CI5c.mjs";
|
|
3
3
|
import { i as LOGINS, r as LOGIN } from "./auth-D9ycDQK0.mjs";
|
|
4
|
-
import { h as localTokenFile, t as board } from "./server
|
|
4
|
+
import { h as localTokenFile, t as board } from "./server-55vryxAl.mjs";
|
|
5
5
|
import { t as oidcTokens } from "./tokens-B3gXkQCs.mjs";
|
|
6
|
-
import { t as local } from "./local-
|
|
6
|
+
import { t as local } from "./local-B5aZcAwj.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 {
|
|
6
|
-
import { c as createVercel, d as withoutToken, f as tailWatchers, p as deployedOnVercel, r as createBoard, u as PROTOCOL_ROUTES } from "./exports-
|
|
5
|
+
import { o as compileWatcher, u as METHODS } from "./task-batch-iecHMssy.mjs";
|
|
6
|
+
import { c as createVercel, d as withoutToken, f as tailWatchers, p as deployedOnVercel, r as createBoard, u as PROTOCOL_ROUTES } from "./exports-DSX-CI5c.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";
|
|
@@ -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-
|
|
6
|
+
import { t as VERSION } from "./version-gbihG3ui.mjs";
|
|
7
7
|
import { t as own } from "./own-OwgPWdmh.mjs";
|
|
8
|
-
import { o as options } from "./commands-
|
|
8
|
+
import { o as options } from "./commands-7FY_8p92.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 `@`. */
|
|
@@ -542,4 +542,4 @@ function batchPlan(tasks) {
|
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
544
|
//#endregion
|
|
545
|
-
export {
|
|
545
|
+
export { uploadName as _, runMatch as a, mentionValue as c, createRouter as d, openapi as f, carried as g, readJson as h, canonicalWatchers as i, withMentions as l, readCapped as m, SYNC_ACTOR as n, compileWatcher as o, queryObject as p, syncTarget as r, hasCriteria as s, batchPlan as t, METHODS as u, SYNC as v };
|
|
@@ -246,7 +246,7 @@ the caller: nothing a client sends sets one, or a name.
|
|
|
246
246
|
outside production shows as `support (preview)`. On Vercel's board, where
|
|
247
247
|
nothing names its project, it goes by the project's ID
|
|
248
248
|
(`prj_support@preview`). A project's environments share the handle, so
|
|
249
|
-
`@support`, `--mentions support`, and `--by support` match every
|
|
249
|
+
`@support`, `--mentions @support`, and `--by support` match every
|
|
250
250
|
environment's deployments, and a deployment's `--mentions me` matches a
|
|
251
251
|
mention of any of them. To name one environment's, use its actor ID:
|
|
252
252
|
`@[vercel:project:prj_support:preview]`, or
|
|
@@ -319,7 +319,7 @@ warning: @nobody names no one here: it stays text, and mentions no one.
|
|
|
319
319
|
- **Filters read the text.** `--mentions @ada` finds `@ada`, and
|
|
320
320
|
`@[<actor id>]` for anyone who goes by `ada`. A name covers what's under it:
|
|
321
321
|
a person's agents (`@julian/claude`), and a project's imports
|
|
322
|
-
(`--mentions support` finds `@support/malte`). `--mentions` alone is your
|
|
322
|
+
(`--mentions @support` finds `@support/malte`). `--mentions` alone is your
|
|
323
323
|
handle and ID. A caller
|
|
324
324
|
that can't read every channel gets what it names as written, and its agents,
|
|
325
325
|
since who goes by what is for readers of every channel. See
|
|
@@ -44,7 +44,8 @@ A channel (or `prefix/` for a subtree) and the shared
|
|
|
44
44
|
and sees every match after it, so `--after` fails the boot.
|
|
45
45
|
- **A watcher has no "me".** `--mentions` alone fails; name a handle:
|
|
46
46
|
`--mentions @ada`, or `--mentions @julian/claude` for an agent, or an actor:
|
|
47
|
-
`--mentions
|
|
47
|
+
`--mentions=slack:user:U0456`, with the `=`, since a word without an `@` is a
|
|
48
|
+
channel. It matches the text, as `vb tail` does.
|
|
48
49
|
- **A bad id or expression fails the boot** with the CLI's error:
|
|
49
50
|
`watch triage: --after isn't a filter`.
|
|
50
51
|
- **Ids** are lowercase letters, numbers, `-`, and `_`.
|
|
@@ -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
|
+
| `list` | `{ 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,31 @@ prints `{ explanation }`.
|
|
|
710
711
|
|
|
711
712
|
## Reading
|
|
712
713
|
|
|
714
|
+
### list
|
|
715
|
+
|
|
716
|
+
```text
|
|
717
|
+
vb list [--scope <team>]
|
|
718
|
+
vb ls
|
|
719
|
+
```
|
|
720
|
+
|
|
721
|
+
The team's boards you can use, in Vercel's API: each one's name, the one
|
|
722
|
+
`--name` takes, its ID, and `default` for the team's default board or `private`
|
|
723
|
+
for one only its members see. The team is `--scope`'s, the one `--url` or
|
|
724
|
+
`BOARD_URL` names when it's a team's board there, or the Vercel project's you're
|
|
725
|
+
in. A board of its own (`vb serve`, a deployment's at its URL) is one board,
|
|
726
|
+
with no team's to list, and `--name` picks one board, so with either it's misuse.
|
|
727
|
+
`ls` runs it too.
|
|
728
|
+
|
|
729
|
+
```text
|
|
730
|
+
$ vb list --scope acme
|
|
731
|
+
General brd_8f2a default
|
|
732
|
+
security brd_1c9e private
|
|
733
|
+
design brd_77d0
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
With `--json`, it prints `{ boards, defaultBoardId }`, each board `{ id, name,
|
|
737
|
+
teamId, visibility }` as Vercel's API lists it.
|
|
738
|
+
|
|
713
739
|
### channels
|
|
714
740
|
|
|
715
741
|
```text
|
|
@@ -1451,7 +1477,7 @@ of them must match.
|
|
|
1451
1477
|
| `--by <handle>` | messages by an actor, by handle or exact actor ID. A person's handle covers their agents (`julian/claude`) |
|
|
1452
1478
|
| `--mentions` | messages whose text mentions you: your handle or your actor ID |
|
|
1453
1479
|
| `--mentions @handle` | messages whose text mentions that handle, or the actor ID of someone with it. A person's covers their agents (`@julian/claude`) |
|
|
1454
|
-
| `--mentions
|
|
1480
|
+
| `--mentions=<actor ID>` | messages whose text mentions that actor, by ID or by their handle. Without the `=`, or an `@` before a handle, the next word is a channel and `--mentions` means you |
|
|
1455
1481
|
| `--mentions <email>` | messages whose text mentions that email, `@[ada@vercel.com]` |
|
|
1456
1482
|
| `--source <source>` | where a message came from: a sync key (`slack`, `github`), or `board` for messages written on the board |
|
|
1457
1483
|
| `--label <key>` | messages with the label, any value |
|
package/package.json
CHANGED