@vercel/board 0.35.0 → 0.36.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.
Files changed (35) hide show
  1. package/dist/backend-local.mjs +1 -1
  2. package/dist/{chat-provider-9hCT654s.mjs → chat-provider-Bb-jeJLY.mjs} +2 -2
  3. package/dist/cli-commands.d.mts +1 -1
  4. package/dist/cli-commands.mjs +1 -1
  5. package/dist/cli-embedded.mjs +1 -1
  6. package/dist/cli.mjs +4 -4
  7. package/dist/{commands-CENWob9m.mjs → commands-BLtqSwha.mjs} +8 -6
  8. package/dist/{commands-BorACIFS.d.mts → commands-DGID-4Z2.d.mts} +4 -2
  9. package/dist/{engine-wN7quvbU.mjs → engine-B_prP0b8.mjs} +2 -2
  10. package/dist/{events-IQg0k281.mjs → events-AEKh9tJm.mjs} +1 -1
  11. package/dist/{exports-GIRJm2Ja.mjs → exports-Ck4Xu3OV.mjs} +49 -3
  12. package/dist/{external-CYe424fO.mjs → external-BA2aCC_3.mjs} +1 -1
  13. package/dist/index.mjs +2 -2
  14. package/dist/index.node.mjs +1 -1
  15. package/dist/inspect/app.js +3 -3
  16. package/dist/{local-yKwdgukb.mjs → local-DJ_qI9q7.mjs} +5 -5
  17. package/dist/{main-DjokcEAL.mjs → main-Jz4nbNJi.mjs} +12 -10
  18. package/dist/{memory-7RRnLa4X.mjs → memory-DqwXlyK4.mjs} +2 -2
  19. package/dist/{serve-CJ8hauK2.mjs → serve-Puf3I-oI.mjs} +2 -2
  20. package/dist/{server-CtaTtyhw.mjs → server-CS-1aeTl.mjs} +3 -3
  21. package/dist/{sql-BQzKUqQt.mjs → sql-aetuEBZC.mjs} +1 -1
  22. package/dist/{sqlite-DCtZFEVm.mjs → sqlite-DvsB8ENQ.mjs} +2 -2
  23. package/dist/{sqlite-db-qLTs52Ny.mjs → sqlite-db-BPwRoDI7.mjs} +1 -1
  24. package/dist/sync-chat-sdk.mjs +2 -2
  25. package/dist/sync-github.mjs +2 -2
  26. package/dist/sync-linear.mjs +2 -2
  27. package/dist/sync-slack.mjs +3 -3
  28. package/dist/sync.mjs +2 -2
  29. package/dist/{targets-n2i2ZOWI.mjs → targets-Dk_xgS9q.mjs} +3 -3
  30. package/docs/01-board/03-identity.md +1 -1
  31. package/docs/01-board/09-access.md +1 -1
  32. package/docs/03-guides/03-ci.md +1 -1
  33. package/docs/04-reference/01-cli.md +4 -4
  34. package/docs/04-reference/02-board.md +5 -0
  35. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { a as forbidden$1, c as toErrorResponse, f as duration, g as fileName, h as IMPORT_BYTES_MAX, i as duplicateId, l as unauthorized, m as DIRECT_UPLOAD_BYTES_MAX, p as ATTACHMENT_BYTES_MAX, r as badRequest, s as notFound, t as HttpError, u as BoardError, v as mediaType } from "./errors-rYDxZEuN.mjs";
2
2
  import { _ as actorKind, a as ChannelPath, c as LabelKey, f as MessageId, g as SeenActorKind, h as SCOPE_MAX, i as Author, m as RemoteWatcherId, n as Attachment, o as Emoji, p as MessageText, s as Handle, t as ActorId, u as Labels, v as platformAvatar, y as storable } from "./schemas-BG205xds.mjs";
3
- import { a as Link, i as ExternalTarget, n as ExternalEvent, o as Origin } from "./external-CYe424fO.mjs";
4
- import { a as compileWatcher, c as METHODS, h as VERSION, i as canonicalWatchers, m as SYNC, n as syncTarget, o as hasCriteria, r as withEmailMentions } from "./targets-n2i2ZOWI.mjs";
3
+ import { a as Link, i as ExternalTarget, n as ExternalEvent, o as Origin } from "./external-BA2aCC_3.mjs";
4
+ import { a as compileWatcher, c as METHODS, h as VERSION, i as canonicalWatchers, m as SYNC, n as syncTarget, o as hasCriteria, r as withEmailMentions } from "./targets-Dk_xgS9q.mjs";
5
5
  import { i as waitUntil, n as MIDDLEWARE_ACTOR, o as derivedId, s as isKeyIdOf, t as DroppedError } from "./middleware-BxgizazV.mjs";
6
6
  import { a as checkGrantChange, d as scopeOf, i as authorize, s as compileAccess, t as FULL_ACCESS, u as parseScope } from "./access-BsP0hvcC.mjs";
7
7
  import { C as workflowPath, c as checkGrant, f as grantIssuers, h as joined, l as checkPrincipal, m as issuerName, n as DEFAULT_CAN, o as authenticates, r as GITHUB_ISSUER, s as checkCan, t as BOARD_TOKEN_PREFIX, v as removes, w as wroteAs, y as tokenHash } from "./auth-CrjXLgOb.mjs";
@@ -10,7 +10,7 @@ import { n as replaceMentions } from "./mentions-CB6ShY4R.mjs";
10
10
  import { a as resolveMentions, n as actorSeen } from "./actors-DFOpTw89.mjs";
11
11
  import { C as sessionClearedError, a as SOCKET_TIMINGS, c as drainSettledHooks, d as nullProtoRecord, f as runtimeConsumerFactory, g as A2Error, h as stateTailReaders, i as RESERVED_PARTICIPANT_IDS, l as failedPreviousAttempt, m as serverInternals, n as POLL_TIMINGS, o as STATE_CACHE, p as runtimeConsumers, r as PRESENCE_TIMINGS, s as STREAM_TIMINGS, t as DRAIN_TIMINGS, u as markSchedulerSendFailure, v as NonRetriableError, x as isSessionCleared, y as asStoreUnavailable } from "./internal-CvsrprnU-CEPOUpAv.mjs";
12
12
  import { i as streamActivities, n as defaultSleep, t as createStreamActivity } from "./store-polling-BZt2Rf3D-oh3aU_An.mjs";
13
- import { a as foldActors, i as concernedMessageId, o as foldMessages, s as iso, t as TABLES_CONSUMER } from "./sql-BQzKUqQt.mjs";
13
+ import { a as foldActors, i as concernedMessageId, o as foldMessages, s as iso, t as TABLES_CONSUMER } from "./sql-aetuEBZC.mjs";
14
14
  import { t as afterRetry } from "./attempts-HXcskN1w.mjs";
15
15
  import { z } from "zod";
16
16
  import { createHash, randomBytes } from "node:crypto";
@@ -9168,10 +9168,10 @@ function local(options = {}) {
9168
9168
  opening ??= (async () => {
9169
9169
  const file = localFile(bound.name);
9170
9170
  let store;
9171
- if (options.memory) store = (await import("./memory-7RRnLa4X.mjs")).memory();
9171
+ if (options.memory) store = (await import("./memory-DqwXlyK4.mjs")).memory();
9172
9172
  else {
9173
9173
  const { mkdir } = await import("node:fs/promises");
9174
- const { sqlite } = await import("./sqlite-DCtZFEVm.mjs");
9174
+ const { sqlite } = await import("./sqlite-DvsB8ENQ.mjs");
9175
9175
  const path = join(dir, `${file}.db`);
9176
9176
  try {
9177
9177
  await mkdir(dir, {
@@ -1,11 +1,11 @@
1
1
  import { _ as fileSize, m as DIRECT_UPLOAD_BYTES_MAX, u as BoardError } from "./errors-rYDxZEuN.mjs";
2
2
  import { d as MESSAGE_TEXT_MAX, r as AttachmentId } from "./schemas-BG205xds.mjs";
3
- import { h as VERSION, s as withMentions } from "./targets-n2i2ZOWI.mjs";
3
+ import { h as VERSION, s as withMentions } from "./targets-Dk_xgS9q.mjs";
4
4
  import { n as displayEmoji, r as normalizeEmoji } from "./emoji-CTLpvH-A.mjs";
5
5
  import { r as PERMISSIONS, u as parseScope } from "./access-BsP0hvcC.mjs";
6
- import { i as isApiMessageId, n as isBoardName } from "./exports-GIRJm2Ja.mjs";
7
- import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-CENWob9m.mjs";
8
- import { a as http, c as handFetch, f as vercelProjectFile, i as vercel, l as handLogin, n as credentialSource, o as boardUrl, r as handTeam, s as connect, t as board } from "./server-CtaTtyhw.mjs";
6
+ import { i as isApiMessageId, n as isBoardName } from "./exports-Ck4Xu3OV.mjs";
7
+ import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-BLtqSwha.mjs";
8
+ import { a as http, c as handFetch, f as vercelProjectFile, i as vercel, l as handLogin, n as credentialSource, o as boardUrl, r as handTeam, s as connect, t as board } from "./server-CS-1aeTl.mjs";
9
9
  import { t as conformance } from "./conformance-CKrwglzA.mjs";
10
10
  import { t as displayText } from "./bots-CGkO76qH.mjs";
11
11
  import { spawn } from "node:child_process";
@@ -39,7 +39,7 @@ const KINDS = [
39
39
  const MODIFIERS = {
40
40
  environment: ["project", "all-projects"],
41
41
  workflow: ["github"],
42
- branch: ["github"],
42
+ "git-branch": ["github"],
43
43
  event: ["github"],
44
44
  claim: ["oidc"]
45
45
  };
@@ -77,11 +77,13 @@ function principalsIn(tokens, prefixes, removal) {
77
77
  break;
78
78
  }
79
79
  case "workflow":
80
- case "branch":
81
- case "event":
82
- if (last[name] !== void 0) throw new GrantMisuse(`${flagOf(last)} takes one --${name}: name the repository again for another.`);
83
- last[name] = given;
80
+ case "git-branch":
81
+ case "event": {
82
+ const field = name === "git-branch" ? "branch" : name;
83
+ if (last[field] !== void 0) throw new GrantMisuse(`${flagOf(last)} takes one --${name}: name the repository again for another.`);
84
+ last[field] = given;
84
85
  break;
86
+ }
85
87
  case "claim": {
86
88
  const at = given.indexOf("=");
87
89
  if (at <= 0) throw new GrantMisuse(`--claim takes name=value, like project_id=42: got ${JSON.stringify(given)}.`);
@@ -432,7 +434,7 @@ function principalFlags(principal) {
432
434
  case "github": return [
433
435
  `--github ${principal.repository}`,
434
436
  ...principal.workflow !== void 0 ? [`--workflow ${workflowName(principal.workflow)}`] : [],
435
- ...principal.branch !== void 0 ? [`--branch ${principal.branch}`] : [],
437
+ ...principal.branch !== void 0 ? [`--git-branch ${principal.branch}`] : [],
436
438
  ...principal.event !== void 0 ? [`--event ${principal.event}`] : []
437
439
  ].join(" ");
438
440
  case "oidc": return [`--oidc ${principal.issuer}`, ...Object.entries(principal.claims).flatMap(([name, value]) => [value].flat().map((one) => `--claim ${name}=${one}`))].join(" ");
@@ -1,6 +1,6 @@
1
- import { r as sqlTables } from "./sql-BQzKUqQt.mjs";
1
+ import { r as sqlTables } from "./sql-aetuEBZC.mjs";
2
2
  import { t as memory$1 } from "./store-memory-CKQVEzXN.mjs";
3
- import { t as sqliteDb } from "./sqlite-db-qLTs52Ny.mjs";
3
+ import { t as sqliteDb } from "./sqlite-db-BPwRoDI7.mjs";
4
4
  //#region src/store/memory.ts
5
5
  /**
6
6
  * A board that lives in memory, for tests: its log in A2's memory store, its
@@ -1,7 +1,7 @@
1
1
  import { u as BoardError } from "./errors-rYDxZEuN.mjs";
2
- import { t as board, u as localTokenFile } from "./server-CtaTtyhw.mjs";
2
+ import { t as board, u as localTokenFile } from "./server-CS-1aeTl.mjs";
3
3
  import { t as oidcTokens } from "./tokens-Dn4cPZIr.mjs";
4
- import { t as local } from "./local-yKwdgukb.mjs";
4
+ import { t as local } from "./local-DJ_qI9q7.mjs";
5
5
  import { mkdir, rename, rm, stat, writeFile } from "node:fs/promises";
6
6
  import { userInfo } from "node:os";
7
7
  import { dirname, join, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { d as createBoardClient, o as json, t as HttpError, u as BoardError } from "./errors-rYDxZEuN.mjs";
2
2
  import "./schemas-BG205xds.mjs";
3
- import { P as RegisterBody, Y as routes, a as compileWatcher, c as METHODS, i as canonicalWatchers } from "./targets-n2i2ZOWI.mjs";
3
+ import { P as RegisterBody, Y as routes, a as compileWatcher, c as METHODS, i as canonicalWatchers } from "./targets-Dk_xgS9q.mjs";
4
4
  import { a as DERIVED_ID, c as keyId, l as sha256 } from "./middleware-BxgizazV.mjs";
5
- import { a as registrant, o as wakePath, r as createVercel, t as createBoard } from "./exports-GIRJm2Ja.mjs";
5
+ import { a as registrant, o as wakePath, r as createVercel, t as createBoard } from "./exports-Ck4Xu3OV.mjs";
6
6
  import { execFile } from "node:child_process";
7
7
  import { createHash } from "node:crypto";
8
8
  import { mkdir, readFile, readdir, stat, unlink, writeFile } from "node:fs/promises";
@@ -1087,7 +1087,7 @@ function vercel(options = {}) {
1087
1087
  function board(options = {}) {
1088
1088
  return createBoard(options, {
1089
1089
  backend: (fetch) => process.env.BOARD_URL?.trim() ? http() : vercel(fetch ? { fetch } : {}),
1090
- sync: () => import("./engine-wN7quvbU.mjs"),
1090
+ sync: () => import("./engine-B_prP0b8.mjs"),
1091
1091
  serving: () => import("./serving-6_bhBNAW.mjs")
1092
1092
  });
1093
1093
  }
@@ -1,5 +1,5 @@
1
1
  import { _ as actorKind } from "./schemas-BG205xds.mjs";
2
- import { c as externalMessageKey, l as isThreadTarget } from "./external-CYe424fO.mjs";
2
+ import { c as externalMessageKey, l as isThreadTarget } from "./external-BA2aCC_3.mjs";
3
3
  import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
4
4
  import { n as setOwn, t as own } from "./own-OwgPWdmh.mjs";
5
5
  //#region src/contract/folds.ts
@@ -1,6 +1,6 @@
1
- import { r as sqlTables } from "./sql-BQzKUqQt.mjs";
1
+ import { r as sqlTables } from "./sql-aetuEBZC.mjs";
2
2
  import { t as sqlite$1 } from "./store-sqlite-D6fIszST.mjs";
3
- import { t as sqliteDb } from "./sqlite-db-qLTs52Ny.mjs";
3
+ import { t as sqliteDb } from "./sqlite-db-BPwRoDI7.mjs";
4
4
  //#region src/store/sqlite.ts
5
5
  /**
6
6
  * A local board in one SQLite file, its log and board's tables side by side. It
@@ -1,4 +1,4 @@
1
- import { n as ddl } from "./sql-BQzKUqQt.mjs";
1
+ import { n as ddl } from "./sql-aetuEBZC.mjs";
2
2
  import { mkdirSync } from "node:fs";
3
3
  import { dirname, resolve } from "node:path";
4
4
  //#region src/store/sqlite-db.ts
@@ -1,5 +1,5 @@
1
- import { f as channels, i as eventSchema, r as envelope } from "./events-IQg0k281.mjs";
2
- import { t as ChatSyncProvider } from "./chat-provider-9hCT654s.mjs";
1
+ import { f as channels, i as eventSchema, r as envelope } from "./events-AEKh9tJm.mjs";
2
+ import { t as ChatSyncProvider } from "./chat-provider-Bb-jeJLY.mjs";
3
3
  import { createHash } from "node:crypto";
4
4
  //#region src/sync/chat-sdk.ts
5
5
  const schemaOf = (platform) => eventSchema(platform, "message");
@@ -1,5 +1,5 @@
1
- import { g as withRoutes, i as eventSchema, p as into, r as envelope } from "./events-IQg0k281.mjs";
2
- import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-9hCT654s.mjs";
1
+ import { g as withRoutes, i as eventSchema, p as into, r as envelope } from "./events-AEKh9tJm.mjs";
2
+ import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-Bb-jeJLY.mjs";
3
3
  import { n as tagOf } from "./tags-BpFo6q0_.mjs";
4
4
  import { z } from "zod";
5
5
  import { connectGitHubAdapter } from "@vercel/connect/chat";
@@ -1,5 +1,5 @@
1
- import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-IQg0k281.mjs";
2
- import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-9hCT654s.mjs";
1
+ import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-AEKh9tJm.mjs";
2
+ import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-Bb-jeJLY.mjs";
3
3
  import { n as tagOf, t as slug } from "./tags-BpFo6q0_.mjs";
4
4
  import "zod";
5
5
  import { connectLinearAdapter } from "@vercel/connect/chat";
@@ -1,7 +1,7 @@
1
1
  import { d as MESSAGE_TEXT_MAX } from "./schemas-BG205xds.mjs";
2
- import "./external-CYe424fO.mjs";
3
- import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-IQg0k281.mjs";
4
- import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-9hCT654s.mjs";
2
+ import "./external-BA2aCC_3.mjs";
3
+ import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-AEKh9tJm.mjs";
4
+ import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-Bb-jeJLY.mjs";
5
5
  import { z } from "zod";
6
6
  import { stringifyMarkdown } from "chat";
7
7
  import { createSlackAdapter } from "@chat-adapter/slack";
package/dist/sync.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as ExternalEvent } from "./external-CYe424fO.mjs";
2
- import { c as SyncProvider, f as channels, h as render, i as eventSchema, l as UnreadableError, m as mirror, n as SyncOverrides, o as ReceivedEvent, p as into, r as envelope, s as ResolvedTarget, t as EventBase } from "./events-IQg0k281.mjs";
1
+ import { n as ExternalEvent } from "./external-BA2aCC_3.mjs";
2
+ import { c as SyncProvider, f as channels, h as render, i as eventSchema, l as UnreadableError, m as mirror, n as SyncOverrides, o as ReceivedEvent, p as into, r as envelope, s as ResolvedTarget, t as EventBase } from "./events-AEKh9tJm.mjs";
3
3
  export { EventBase, ExternalEvent, ReceivedEvent, ResolvedTarget, SyncOverrides, SyncProvider, UnreadableError, channels, envelope, eventSchema, into, mirror, render };
@@ -1,7 +1,7 @@
1
1
  import { m as DIRECT_UPLOAD_BYTES_MAX, p as ATTACHMENT_BYTES_MAX, r as badRequest, t as HttpError } from "./errors-rYDxZEuN.mjs";
2
2
  import { a as ChannelPath, c as LabelKey, d as MESSAGE_TEXT_MAX, l as LabelValue, o as Emoji, p as MessageText, r as AttachmentId, u as Labels, v as platformAvatar, y as storable } from "./schemas-BG205xds.mjs";
3
- import { a as Link, i as ExternalTarget, l as isThreadTarget, n as ExternalEvent, o as Origin, t as ExternalAuthor } from "./external-CYe424fO.mjs";
4
- import { o as options } from "./commands-CENWob9m.mjs";
3
+ import { a as Link, i as ExternalTarget, l as isThreadTarget, n as ExternalEvent, o as Origin, t as ExternalAuthor } from "./external-BA2aCC_3.mjs";
4
+ import { o as options } from "./commands-BLtqSwha.mjs";
5
5
  import { n as replaceMentions, t as extractMentions } from "./mentions-CB6ShY4R.mjs";
6
6
  import { z } from "zod";
7
7
  //#region src/api/routes.ts
@@ -764,7 +764,7 @@ const routes = {
764
764
  };
765
765
  //#endregion
766
766
  //#region src/version.ts
767
- const VERSION = "0.35.0";
767
+ const VERSION = "0.36.0";
768
768
  //#endregion
769
769
  //#region src/server/backend.ts
770
770
  /** The subscription sync's outbound runs on, in `BoardBinding.subscriptions`. No watcher's ID starts with `@`. */
@@ -183,7 +183,7 @@ created g5 --github acme/www deploys=read,post
183
183
  `github:repo:<repository_id>` whatever its grant names, so a rename doesn't
184
184
  change who wrote what.
185
185
  - **A `pull_request` run's token carries `ref: refs/pull/<n>/merge`,** so a
186
- grant pinned to `--branch main` doesn't match it. Match on `--event` instead.
186
+ grant pinned to `--git-branch main` doesn't match it. Match on `--event` instead.
187
187
 
188
188
  > [!WARNING]
189
189
  > For `pull_request`, GitHub runs the workflow file from the PR's merge commit,
@@ -88,7 +88,7 @@ deployments.
88
88
  | `vb grants create --everyone --can 'security/=none'` | `team.createGrant({ principals: [{ kind: 'everyone' }], can: { 'security/': 'none' } })` |
89
89
  | `vb grants create --user alice@acme.com --user bob@acme.com --can 'security/=all'` | `team.createGrant({ principals: [{ kind: 'user', email: 'alice@acme.com' }, { kind: 'user', email: 'bob@acme.com' }], can: { 'security/': 'all' } })` |
90
90
  | `vb grants create --project sec --environment production,preview --can 'security/=read,post'` | `team.createGrant({ principals: [{ kind: 'project', project: 'sec', environments: ['production', 'preview'] }], can: { 'security/': ['read', 'post'] } })` |
91
- | `vb grants create --github acme/web --workflow ci.yml --branch main --can 'ci/=post'` | `team.createGrant({ principals: [{ kind: 'github', repository: 'acme/web', workflow: 'ci.yml', branch: 'main' }], can: { 'ci/': ['post'] } })` |
91
+ | `vb grants create --github acme/web --workflow ci.yml --git-branch main --can 'ci/=post'` | `team.createGrant({ principals: [{ kind: 'github', repository: 'acme/web', workflow: 'ci.yml', branch: 'main' }], can: { 'ci/': ['post'] } })` |
92
92
  | `vb grants create --oidc https://gitlab.com --claim project_id=42 --can 'ci/=post'` | `team.createGrant({ principals: [{ kind: 'oidc', issuer: 'https://gitlab.com', claims: { project_id: '42' } }], can: { 'ci/': ['post'] } })` |
93
93
  | `vb grants create --app ship --can 'ship/=post'` | `team.createGrant({ principals: [{ kind: 'app', app: 'ship' }], can: { 'ship/': ['post'] } })` |
94
94
  | `vb grants update g5 --add-user carol@acme.com` | `team.updateGrant('g5', { add: [{ kind: 'user', email: 'carol@acme.com' }] })` |
@@ -62,7 +62,7 @@ created g4 --github acme/www --event push errors-www=post,label deploys=read,p
62
62
  ```
63
63
 
64
64
  The grant matches the token's `repository` and `event_name`, and a
65
- `--workflow` or `--branch` you add narrows it to that workflow file or
65
+ `--workflow` or `--git-branch` you add narrows it to that workflow file or
66
66
  branch. The workflow writes as `github:repo:<repository_id>`, with the
67
67
  handle `acme/www`. A workflow no grant lets in gets a 403 whose hint is the
68
68
  grant to create: `Grant it: vb grants create --github acme/www`.
@@ -502,12 +502,12 @@ A principal is a flag, and repeating flags names several:
502
502
  | Flag | Names | Its modifiers |
503
503
  | --- | --- | --- |
504
504
  | `--user <email>` | a person on the team | |
505
- | `--project <name\|id>` | a project's deployments | `--environment` |
506
- | `--github <owner/repo>` | GitHub Actions runs in a repository | `--workflow`, `--branch`, `--event` |
505
+ | `-p, --project <name\|id>` | a project's deployments | `-e, --environment` |
506
+ | `--github <owner/repo>` | GitHub Actions runs in a repository | `--workflow`, `--git-branch`, `--event` |
507
507
  | `--oidc <issuer>` | an issuer's tokens | `--claim name=value` |
508
508
  | `--app <slug\|id>` | an app installed on the team | |
509
509
  | `--all-users` | every person on the team | |
510
- | `--all-projects` | every project's deployments on the team | `--environment` |
510
+ | `--all-projects` | every project's deployments on the team | `-e, --environment` |
511
511
  | `--all-apps` | every app installed on the team | |
512
512
  | `--everyone` | everyone something else lets in | |
513
513
 
@@ -515,7 +515,7 @@ A modifier goes after the principal it's for, so one grant mixes them:
515
515
  `--github acme/web --workflow ci.yml --github acme/api --workflow deploy.yml`.
516
516
  `--environment` takes a comma-separated list and is `production` when left
517
517
  out. `--workflow` matches the run's workflow file (`ci.yml` is
518
- `.github/workflows/ci.yml`), `--branch` its `refs/heads/` branch, and
518
+ `.github/workflows/ci.yml`), `--git-branch` its `refs/heads/` branch, and
519
519
  `--event` its event. `--can pattern=permissions` repeats; permissions are a
520
520
  comma-separated list, `all`, or `none`. A board that verifies tokens itself,
521
521
  as `vb serve` does, takes IDs: `--user u_123`, `--project prj_123`, and an
@@ -370,6 +370,11 @@ cursor the read reflects. Without `after`, it's the latest `limit` (50 by
370
370
  default, at most 500); with `after`, the first `limit` after it. `before`
371
371
  pages back. Both take a cursor or a message ID.
372
372
 
373
+ A team board in Vercel's API lists a channel's newest 100 and no further back.
374
+ Up to a `limit` of 100, the latest across channels is exactly the latest
375
+ `limit`. Past that, it stops where the busiest channel's 100 do, so it can be
376
+ fewer than `limit`, but it never skips a message newer than its oldest.
377
+
373
378
  ```ts
374
379
  const page = await team.messages({ channel: 'errors-www', label: { status: 'open' }, limit: 100 })
375
380
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/board",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "description": "A message board you mount in one route: one durable log, verified authors, live tail, and two-way sync.",
5
5
  "license": "MIT",
6
6
  "type": "module",