@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.
- package/dist/{a2-DngWY2Eb.mjs → a2-DiDc77Uf.mjs} +6 -6
- package/dist/access.d.mts +1 -1
- package/dist/access.mjs +2 -2
- package/dist/{auth-CyO2aw5n.mjs → auth-8pRZnF1M.mjs} +7 -3
- package/dist/{auth-DLYSt_-A.d.mts → auth-K8dY1nBY.d.mts} +5 -1
- package/dist/{backend-Bob-5CM7.d.mts → backend-DxE9wGKm.d.mts} +1 -1
- package/dist/backend-a2/contract.mjs +1 -1
- package/dist/backend-a2/store-memory.mjs +2 -2
- package/dist/backend-a2/store-postgres.mjs +1 -1
- package/dist/backend-a2/store-redis-http.mjs +1 -1
- package/dist/backend-a2/store-redis.mjs +1 -1
- package/dist/backend-a2/store-sqlite.mjs +2 -2
- package/dist/backend-a2.d.mts +2 -2
- package/dist/backend-a2.mjs +1 -1
- package/dist/{backend-http-BRrRbjRx.d.mts → backend-http-CaN06CaD.d.mts} +1 -1
- package/dist/{backend-http-D8mUzuKQ.mjs → backend-http-CoaCghuJ.mjs} +1 -1
- package/dist/{backend-http-CvUKOn-m.mjs → backend-http-l5A8UmL-.mjs} +1 -1
- package/dist/backend-http.d.mts +1 -1
- package/dist/backend-http.mjs +1 -1
- package/dist/backend-http.node.d.mts +1 -1
- package/dist/backend-http.node.mjs +1 -1
- package/dist/{backend-vercel-Ba8JDtqW.mjs → backend-vercel-BE65okBC.mjs} +1 -1
- package/dist/{backend-vercel-CmY9yZ9m.mjs → backend-vercel-CVxoTNF2.mjs} +108 -20
- package/dist/{backend-vercel-BaSEUdwg.d.mts → backend-vercel-jg-6PAgD.d.mts} +1 -1
- package/dist/backend-vercel.d.mts +1 -1
- package/dist/backend-vercel.mjs +1 -1
- package/dist/backend-vercel.node.d.mts +1 -1
- package/dist/backend-vercel.node.mjs +1 -1
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/{commands-DK4W3HCJ.d.mts → commands-CpyPV_tk.d.mts} +5 -0
- package/dist/{commands-L1JSGz2Z.mjs → commands-DsnQKTdB.mjs} +27 -11
- package/dist/{conformance-DK43HiHf.mjs → conformance-3RBKxwbp.mjs} +35 -0
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{exports-CWIdN0Ub.mjs → exports-BnUZuRm9.mjs} +2 -2
- package/dist/exports-u5mApVvn.d.mts +5 -0
- package/dist/{folds-Cu9Q9zyQ.mjs → folds-DsWfIftc.mjs} +1 -0
- package/dist/{index-Ho-ayyQL.d.mts → index-UXpTPWNc.d.mts} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/{index.default-BUcwDaAe.mjs → index.default-Dp8gexln.mjs} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.node.d.mts +3 -3
- package/dist/index.node.mjs +1 -1
- package/dist/inspect/app.js +1 -1
- package/dist/{main-Dz-8komG.mjs → main-CcYDo9Hb.mjs} +57 -21
- package/dist/{project-CQ4VUibA.mjs → project-4Vl7_uy5.mjs} +1 -1
- package/dist/{redis-tables-DHf85ixI.mjs → redis-tables-BFRj_SEJ.mjs} +1 -1
- package/dist/{reducers-DcENwtwZ.mjs → reducers-DQVSP3kk.mjs} +1 -1
- package/dist/{serve-CTmow-YH.mjs → serve-Bplieh0C.mjs} +3 -3
- package/dist/{server-DG8D6VV0.mjs → server-wIpAEjpX.mjs} +3 -3
- package/dist/{serving-DBFRo6U_.mjs → serving-Y7s7VDjB.mjs} +1 -1
- package/dist/{sql-CT5xVuGr.mjs → sql-E1K5g_ih.mjs} +1 -1
- package/dist/{sqlite-db-0WeSOEZN.mjs → sqlite-db-CzcD_FW8.mjs} +1 -1
- package/dist/{tokens-Dnyd_y1n.mjs → tokens-C7kYyrAG.mjs} +1 -1
- package/dist/{watchers-hash-BjwlnGD9.mjs → watchers-hash-CurCzwhe.mjs} +2 -2
- package/docs/01-board/04-messages.md +4 -2
- package/docs/04-reference/01-cli.md +14 -10
- package/package.json +1 -1
- 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-
|
|
4
|
-
import { t as oidcTokens } from "./tokens-
|
|
5
|
-
import { t as a2 } from "./a2-
|
|
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-
|
|
2
|
-
import { t as http } from "./backend-http-
|
|
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-
|
|
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-
|
|
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-
|
|
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,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-
|
|
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-
|
|
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.
|
|
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
|
|
73
|
-
|
|
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
|
|
178
|
-
|
|
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
|
|
182
|
-
the
|
|
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`. `--
|
|
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