@vercel/board 0.31.0 → 0.32.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 (63) hide show
  1. package/dist/{a2-DngWY2Eb.mjs → a2-DiDc77Uf.mjs} +6 -6
  2. package/dist/access.d.mts +1 -1
  3. package/dist/access.mjs +2 -2
  4. package/dist/{auth-CyO2aw5n.mjs → auth-8pRZnF1M.mjs} +7 -3
  5. package/dist/{auth-DLYSt_-A.d.mts → auth-K8dY1nBY.d.mts} +5 -1
  6. package/dist/{backend-Bob-5CM7.d.mts → backend-DxE9wGKm.d.mts} +1 -1
  7. package/dist/backend-a2/contract.mjs +1 -1
  8. package/dist/backend-a2/store-memory.mjs +2 -2
  9. package/dist/backend-a2/store-postgres.mjs +1 -1
  10. package/dist/backend-a2/store-redis-http.mjs +1 -1
  11. package/dist/backend-a2/store-redis.mjs +1 -1
  12. package/dist/backend-a2/store-sqlite.mjs +2 -2
  13. package/dist/backend-a2.d.mts +2 -2
  14. package/dist/backend-a2.mjs +1 -1
  15. package/dist/{backend-http-BRrRbjRx.d.mts → backend-http-CaN06CaD.d.mts} +1 -1
  16. package/dist/{backend-http-D8mUzuKQ.mjs → backend-http-CoaCghuJ.mjs} +1 -1
  17. package/dist/{backend-http-CvUKOn-m.mjs → backend-http-l5A8UmL-.mjs} +1 -1
  18. package/dist/backend-http.d.mts +1 -1
  19. package/dist/backend-http.mjs +1 -1
  20. package/dist/backend-http.node.d.mts +1 -1
  21. package/dist/backend-http.node.mjs +1 -1
  22. package/dist/{backend-vercel-Ba8JDtqW.mjs → backend-vercel-BE65okBC.mjs} +1 -1
  23. package/dist/{backend-vercel-CmY9yZ9m.mjs → backend-vercel-CVxoTNF2.mjs} +108 -20
  24. package/dist/{backend-vercel-BaSEUdwg.d.mts → backend-vercel-jg-6PAgD.d.mts} +1 -1
  25. package/dist/backend-vercel.d.mts +1 -1
  26. package/dist/backend-vercel.mjs +1 -1
  27. package/dist/backend-vercel.node.d.mts +1 -1
  28. package/dist/backend-vercel.node.mjs +1 -1
  29. package/dist/cli-commands.d.mts +1 -1
  30. package/dist/cli-commands.mjs +1 -1
  31. package/dist/cli-embedded.d.mts +2 -2
  32. package/dist/cli-embedded.mjs +2 -2
  33. package/dist/cli.mjs +3 -3
  34. package/dist/{commands-DK4W3HCJ.d.mts → commands-CpyPV_tk.d.mts} +5 -0
  35. package/dist/{commands-L1JSGz2Z.mjs → commands-DsnQKTdB.mjs} +27 -11
  36. package/dist/{conformance-DK43HiHf.mjs → conformance-3RBKxwbp.mjs} +35 -0
  37. package/dist/conformance.d.mts +1 -1
  38. package/dist/conformance.mjs +1 -1
  39. package/dist/{exports-CWIdN0Ub.mjs → exports-BnUZuRm9.mjs} +2 -2
  40. package/dist/exports-u5mApVvn.d.mts +5 -0
  41. package/dist/{folds-Cu9Q9zyQ.mjs → folds-DsWfIftc.mjs} +1 -0
  42. package/dist/{index-Ho-ayyQL.d.mts → index-UXpTPWNc.d.mts} +2 -2
  43. package/dist/index.d.mts +3 -3
  44. package/dist/{index.default-BUcwDaAe.mjs → index.default-Dp8gexln.mjs} +1 -1
  45. package/dist/index.mjs +2 -2
  46. package/dist/index.node.d.mts +3 -3
  47. package/dist/index.node.mjs +1 -1
  48. package/dist/inspect/app.js +1 -1
  49. package/dist/{main-Dz-8komG.mjs → main-CcYDo9Hb.mjs} +57 -21
  50. package/dist/{project-CQ4VUibA.mjs → project-4Vl7_uy5.mjs} +1 -1
  51. package/dist/{redis-tables-DHf85ixI.mjs → redis-tables-BFRj_SEJ.mjs} +1 -1
  52. package/dist/{reducers-DcENwtwZ.mjs → reducers-DQVSP3kk.mjs} +1 -1
  53. package/dist/{serve-CTmow-YH.mjs → serve-Bplieh0C.mjs} +3 -3
  54. package/dist/{server-DG8D6VV0.mjs → server-wIpAEjpX.mjs} +3 -3
  55. package/dist/{serving-DBFRo6U_.mjs → serving-Y7s7VDjB.mjs} +1 -1
  56. package/dist/{sql-CT5xVuGr.mjs → sql-E1K5g_ih.mjs} +1 -1
  57. package/dist/{sqlite-db-0WeSOEZN.mjs → sqlite-db-CzcD_FW8.mjs} +1 -1
  58. package/dist/{tokens-Dnyd_y1n.mjs → tokens-C7kYyrAG.mjs} +1 -1
  59. package/dist/{watchers-hash-BjwlnGD9.mjs → watchers-hash-CurCzwhe.mjs} +2 -2
  60. package/docs/01-board/04-messages.md +4 -2
  61. package/docs/04-reference/01-cli.md +14 -10
  62. package/package.json +1 -1
  63. package/dist/exports-FBOQWT7O.d.mts +0 -5
@@ -1,8 +1,8 @@
1
1
  import { u as BoardError } from "./errors-CJXhhzvT.mjs";
2
2
  import { s as localTokenFile } from "./node-BgeGcwX0.mjs";
3
- import { t as board } from "./server-DG8D6VV0.mjs";
4
- import { t as oidcTokens } from "./tokens-Dnyd_y1n.mjs";
5
- import { t as a2 } from "./a2-DngWY2Eb.mjs";
3
+ import { t as board } from "./server-wIpAEjpX.mjs";
4
+ import { t as oidcTokens } from "./tokens-C7kYyrAG.mjs";
5
+ import { t as a2 } from "./a2-DiDc77Uf.mjs";
6
6
  import { a as fsBlob } from "./blob-WbB2DJKn.mjs";
7
7
  import { t as localScheduler } from "./local-C76Fy5ad.mjs";
8
8
  import { mkdir, rm, writeFile } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
- import { t as createBoard } from "./exports-CWIdN0Ub.mjs";
2
- import { t as http } from "./backend-http-D8mUzuKQ.mjs";
1
+ import { t as createBoard } from "./exports-BnUZuRm9.mjs";
2
+ import { t as http } from "./backend-http-CoaCghuJ.mjs";
3
3
  //#region src/server/index.ts
4
4
  /**
5
5
  * The handle on a board. With a `backend`, the board lives there: `a2()` keeps it in this
@@ -10,7 +10,7 @@ function board(options = {}) {
10
10
  return createBoard(options, {
11
11
  http: () => http(),
12
12
  sync: () => import("./engine-DurYIRt8.mjs"),
13
- serving: () => import("./serving-DBFRo6U_.mjs")
13
+ serving: () => import("./serving-Y7s7VDjB.mjs")
14
14
  });
15
15
  }
16
16
  //#endregion
@@ -1,2 +1,2 @@
1
- import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-Dnyd_y1n.mjs";
1
+ import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-C7kYyrAG.mjs";
2
2
  export { discoveryIdentity, oidcTokens, ownProjectId, ownTeamId };
@@ -1,6 +1,6 @@
1
1
  import { c as externalMessageKey } from "./external-D3p5T57R.mjs";
2
2
  import { n as setOwn } from "./own-OwgPWdmh.mjs";
3
- import { i as syncReads, n as project, r as projectSync, t as concernedMessageId } from "./project-CQ4VUibA.mjs";
3
+ import { i as syncReads, n as project, r as projectSync, t as concernedMessageId } from "./project-4Vl7_uy5.mjs";
4
4
  //#region src/store/sql.ts
5
5
  /** The projection's name in `board_positions`, and the A2 consumer that runs it. */
6
6
  const TABLES_CONSUMER = "board-tables";
@@ -1,4 +1,4 @@
1
- import { n as ddl } from "./sql-CT5xVuGr.mjs";
1
+ import { n as ddl } from "./sql-E1K5g_ih.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
1
  import { l as unauthorized } from "./errors-CJXhhzvT.mjs";
2
- import { a as VERCEL_ISSUER, b as trustedIssuers, g as markVerified, i as TOKENS, m as issuerName, v as privateHost } from "./auth-CyO2aw5n.mjs";
2
+ import { a as VERCEL_ISSUER, b as trustedIssuers, g as markVerified, i as TOKENS, m as issuerName, v as privateHost } from "./auth-8pRZnF1M.mjs";
3
3
  import { createRemoteJWKSet, decodeJwt, jwtVerify } from "jose";
4
4
  //#region src/server/identity.ts
5
5
  let fromDisk;
@@ -2,7 +2,7 @@ import { n as DIRECT_UPLOAD_BYTES_MAX, t as ATTACHMENT_BYTES_MAX } from "./files
2
2
  import { S as storable, a as AttachmentId, c as ChannelPath, d as LabelKey, f as LabelValue, g as MessageText, l as Emoji, m as MESSAGE_TEXT_MAX, p as Labels, x as platformAvatar } from "./schemas-DBmUO6pr.mjs";
3
3
  import { a as Link, i as ExternalTarget, n as ExternalEvent, o as Origin, t as ExternalAuthor } from "./external-D3p5T57R.mjs";
4
4
  import { r as badRequest, t as HttpError } from "./errors-CJXhhzvT.mjs";
5
- import { o as options } from "./commands-L1JSGz2Z.mjs";
5
+ import { o as options } from "./commands-DsnQKTdB.mjs";
6
6
  import { z } from "zod";
7
7
  //#region src/api/routes.ts
8
8
  /**
@@ -678,7 +678,7 @@ const routes = {
678
678
  const SYNC = "@sync";
679
679
  //#endregion
680
680
  //#region src/version.ts
681
- const VERSION = "0.31.0";
681
+ const VERSION = "0.32.0";
682
682
  //#endregion
683
683
  //#region src/server/routing.ts
684
684
  /** board()'s own routes: the files it serves, and sync's, which run where board() does. */
@@ -69,8 +69,10 @@ vb delete 812
69
69
 
70
70
  Only the principal that wrote a message can edit or delete it. A deleted
71
71
  message becomes a tombstone: `vb read` shows `(message removed)`, and its text,
72
- reactions, mentions, and attachments are gone from every view. A deleted message
73
- takes no more edits, reactions, or labels. Its replies stay.
72
+ reactions, labels, mentions, and attachments are gone from every view. A label
73
+ filter no longer finds it, or its replies by its labels, so a deleted task never
74
+ looks open. A deleted message takes no more edits, reactions, or labels. Its
75
+ replies stay.
74
76
 
75
77
  A message's `revision` changes with each edit and delete, and only then:
76
78
  reactions and labels leave it as it is. `--if-revision` edits or deletes only
@@ -174,12 +174,16 @@ hyphens. Avatars are `https` URLs (`http` only on localhost).
174
174
  [JSON output](#json-output).
175
175
  - **Writes print the new message's ID** on stdout (`{ message, outcome }` with
176
176
  `--json`), so a script can chain them: `id=$(vb post ops "…")`. A number
177
- prints as it is (`812`); any other ID prints with its `#` (`#msg_…`), since
178
- it could also be a channel's name.
177
+ (`812`) prints as it is, and so does a message ID from Vercel's API
178
+ (`msg_…`), which is taken as a message even where a channel has that name.
179
+ Any other ID prints with its `#`, since it could also be a channel's name.
180
+ - **Other writes say what they did**, in a line: `edited 812`, `deleted 812`,
181
+ `reacted 812`, `unreacted 812`, or `labeled 812`.
179
182
  - **IDs go in as they come out.** Output shows `#812`; pass `812`, or quote
180
183
  it as `'#812'`, since in a shell an unquoted `#` starts a comment.
181
- - **Text can come from stdin.** Pass `-` as the text. It may be left out when
182
- the message has `--attach` files.
184
+ - **Text can come from a file or stdin.** `--text-file note.md` reads a file,
185
+ and `--text-file -`, or `-` as the text, reads stdin. Text may be left out
186
+ when the message has `--attach` files.
183
187
  - **Errors go to stderr**: `error:` and what failed, then how to fix it, the
184
188
  command to run indented under it. With `--json`, one JSON document instead.
185
189
  See [Errors](#errors).
@@ -538,7 +542,7 @@ schedules that reply in that thread. `--all` adds done and canceled ones.
538
542
  ### post
539
543
 
540
544
  ```text
541
- vb post <channel|id> ["<text>"] [--label k=v]... [--attach <file>]... [--sync <target>]... [--no-sync] [--idempotency-key <key>] [--after <id>]
545
+ vb post <channel|id> ["<text>" | --text-file <path>] [--label k=v]... [--attach <file>]... [--sync <target>]... [--no-sync] [--idempotency-key <key>] [--after <id>]
542
546
  ```
543
547
 
544
548
  Starts a thread. The channel is created by its first post. Given a message ID
@@ -562,19 +566,19 @@ for new threads only.
562
566
  ### reply
563
567
 
564
568
  ```text
565
- vb reply <id> ["<text>"] [--attach <file>]... [--no-sync] [--idempotency-key <key>] [--after <id>]
569
+ vb reply <id> ["<text>" | --text-file <path>] [--label k=v]... [--attach <file>]... [--no-sync] [--idempotency-key <key>] [--after <id>]
566
570
  ```
567
571
 
568
572
  Replies in a thread. `<id>` may be any message in it: the board stores the
569
- root as `re`, and the message you answered as `replyTo`. `--no-sync` keeps the
570
- reply on the board. `--after <id>` posts only while that message, the newest
573
+ root as `re`, and the message you answered as `replyTo`. `--label` labels the
574
+ reply as it posts. `--no-sync` keeps the reply on the board. `--after <id>` posts only while that message, the newest
571
575
  you read, is still the thread's newest: see
572
576
  [Replying after the newest message](../01-board/04-messages.md#replying-after-the-newest-message).
573
577
 
574
578
  ### edit
575
579
 
576
580
  ```text
577
- vb edit <id> "<text>" [--if-revision N]
581
+ vb edit <id> ("<text>" | --text-file <path>) [--if-revision N]
578
582
  ```
579
583
 
580
584
  Replaces a message's text. Only its author's principal may edit it, so a
@@ -617,7 +621,7 @@ See [Only if they're as you read them](../01-board/04-messages.md#only-if-theyre
617
621
  ### schedule
618
622
 
619
623
  ```text
620
- vb schedule <channel|id> ["<text>"] (--in 1d | --at <time> | --every 30m)
624
+ vb schedule <channel|id> ["<text>" | --text-file <path>] (--in 1d | --at <time> | --every 30m)
621
625
  [--until <time> | --for 24h | --times N] [--label k=v]... [--attach <file>]... [--no-sync]
622
626
  vb schedule cancel <schedule>
623
627
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/board",
3
- "version": "0.31.0",
3
+ "version": "0.32.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",
@@ -1,5 +0,0 @@
1
- import "./auth-DLYSt_-A.mjs";
2
- import "./folds-DLUzfibJ.mjs";
3
- import "./client-COfYrgfV.mjs";
4
- import "./backend-Bob-5CM7.mjs";
5
- import "./errors-2vGs49Db.mjs";