@vercel/board 0.43.1 → 0.45.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/{access-BgBiaCyx.mjs → access-3udXjJAg.mjs} +2 -2
- package/dist/access.d.mts +3 -3
- package/dist/access.mjs +6 -6
- package/dist/{actors-DkZsnMgA.mjs → actors-DasGZnfb.mjs} +3 -3
- package/dist/{auth-Bn8J_1F2.d.mts → auth-BG_whr9_.d.mts} +1 -1
- package/dist/{auth-Ft4AJptx.mjs → auth-aiOVE82-.mjs} +2 -2
- package/dist/{backend-DMrK55mU.d.mts → backend-D6yTo8Un.d.mts} +3 -3
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{bots-CGkO76qH.mjs → bots-CLKKMgYf.mjs} +6 -1
- package/dist/{chat-provider-CPZg2MQb.mjs → chat-provider-BvNqOQFL.mjs} +7 -5
- package/dist/{chat-provider-Cgkh9xJw.d.mts → chat-provider-V2jnjVLq.d.mts} +4 -4
- 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 +14 -7
- package/dist/{commands-C4fR0md0.mjs → commands-CqdnjUkm.mjs} +7 -1
- package/dist/{commands-BlM-ckFS.d.mts → commands-DewS14_P.d.mts} +7 -1
- package/dist/{conformance-BORt5nky.mjs → conformance-BInS4_6b.mjs} +68 -2
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{data-values-C-Cq80hz.mjs → data-values-CoTP0SQG.mjs} +43 -54
- package/dist/{engine-BVHSH2Kn.mjs → engine-XVBt02Bl.mjs} +20 -13
- package/dist/{errors-DUzpDSrJ.mjs → errors-ZazTZh-s.mjs} +20 -3
- package/dist/{events-BT8y_81j.mjs → events-D17RndlV.mjs} +5 -3
- package/dist/{exports-BVgUNVsP.mjs → exports-DCf75prP.mjs} +184 -45
- package/dist/exports-Gspe1eEq.d.mts +4 -0
- package/dist/{external-DymyhUzl.mjs → external-DfhN7lKK.mjs} +1 -1
- package/dist/{index-CydxnBND.d.mts → index-Djmr4GzQ.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +6 -6
- package/dist/index.node.mjs +3 -3
- package/dist/inspect/app.js +88 -88
- package/dist/inspect/engine.js +5 -5
- package/dist/{inspect-ZGkTJl3f.mjs → inspect-B0_aKQM8.mjs} +23 -7
- package/dist/inspect-CULoD54F.mjs +2 -0
- package/dist/{local-yB2DFcRi.mjs → local-Bel_oeFa.mjs} +26 -13
- package/dist/{main-DjEJPCgo.mjs → main-DmsdcUZ_.mjs} +36 -13
- package/dist/{memory-DhduVbUu.mjs → memory-DyEL0fvN.mjs} +2 -2
- package/dist/{middleware-0DUFrav-.mjs → middleware-BHHKHA9q.mjs} +2 -2
- package/dist/origin-BHmEdok7.mjs +428 -0
- package/dist/{provider-dY54GFNz.d.mts → provider-BC9mPYVh.d.mts} +39 -6
- package/dist/{origin-9Ch-Zonv.mjs → routes-CkUetTO2.mjs} +14 -437
- package/dist/{routes-By9lmvUD.d.mts → routes-zm4TXKCC.d.mts} +8 -1
- package/dist/{schemas-DAzSsgWk.mjs → schemas-BhZaystC.mjs} +8 -2
- package/dist/schemas.mjs +1 -1
- package/dist/{serve-Cnb4TpaJ.mjs → serve-bPSEx_8X.mjs} +4 -4
- package/dist/{server-BHpUqip5.mjs → server-CcvxkXzG.mjs} +8 -7
- package/dist/{serving-hcxzaCCO.mjs → serving-BLVRrJ7P.mjs} +1 -1
- package/dist/{sql-P9g-rLIF.mjs → sql-CyVcjw8x.mjs} +2 -2
- package/dist/{sqlite-B3rCcIof.mjs → sqlite-Con-8duk.mjs} +2 -2
- package/dist/{sqlite-db-D0Fyju-4.mjs → sqlite-db-BdzxtUOV.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-github.mjs +2 -2
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-linear.mjs +3 -3
- package/dist/sync-slack.d.mts +27 -4
- package/dist/sync-slack.mjs +208 -12
- package/dist/sync.d.mts +3 -3
- package/dist/sync.mjs +2 -2
- package/dist/{tokens-BSMpTPEe.mjs → tokens-BErYXuHZ.mjs} +2 -2
- package/docs/01-board/04-messages.md +1 -1
- package/docs/01-board/09-access.md +8 -0
- package/docs/02-sync/02-functions.md +4 -1
- package/docs/02-sync/03-slack.md +24 -1
- package/docs/02-sync/04-github.md +5 -2
- package/docs/02-sync/06-providers.md +1 -1
- package/docs/03-guides/02-inspector.md +16 -0
- package/docs/04-reference/01-cli.md +1 -1
- package/docs/04-reference/02-board.md +24 -3
- package/docs/04-reference/03-http.md +8 -2
- package/docs/04-reference/05-conformance.md +1 -1
- package/package.json +3 -1
- package/dist/exports-Bw_OYNRl.d.mts +0 -4
- package/dist/inspect-DRPRCOaV.mjs +0 -2
|
@@ -244,7 +244,7 @@ since. Pass it back as you got it.
|
|
|
244
244
|
|
|
245
245
|
| Field | Purpose |
|
|
246
246
|
| --- | --- |
|
|
247
|
-
| `channel` | a new thread's channel: lowercase segments joined by `/`, up to
|
|
247
|
+
| `channel` | a new thread's channel: lowercase segments joined by `/`, up to 2048 characters |
|
|
248
248
|
| `re` | the message to reply to, any message in the thread |
|
|
249
249
|
| `text` | markdown, up to 10,000 characters; may be empty when there are attachments. A fence that names a schema is a block, which the board checks: see [Schemas](#schemas) |
|
|
250
250
|
| `labels` | labels on the message |
|
|
@@ -462,6 +462,12 @@ const [found] = findBlocks(text)
|
|
|
462
462
|
const problem = found.problem ?? checkValue(definition, found.data) // 'id must be a string'
|
|
463
463
|
```
|
|
464
464
|
|
|
465
|
+
`checkValue` takes what Vercel's API takes, so a value gets one answer on
|
|
466
|
+
every board. A format is read as ajv-formats 2.1.1 reads it in its full mode:
|
|
467
|
+
a `uri` is RFC 3986's, an `ipv4` address may have a leading zero, and a
|
|
468
|
+
`time`'s leap second is the day's last. It also reads `items` as a list of
|
|
469
|
+
schemas, one for each place, which Vercel's registry holds.
|
|
470
|
+
|
|
465
471
|
Anyone the board lets in reads the schemas, whatever channels they read.
|
|
466
472
|
Registering needs `manage` at `*`. On Vercel's board, schemas are the team's:
|
|
467
473
|
every board on the team shares one registry, and people and apps whose team
|
|
@@ -588,7 +594,7 @@ Values follow these rules:
|
|
|
588
594
|
|
|
589
595
|
| Value | Rule |
|
|
590
596
|
| --- | --- |
|
|
591
|
-
| Channel path | segments matching `[a-z0-9][a-z0-9_-]*`, joined by `/`, up to
|
|
597
|
+
| Channel path | segments matching `[a-z0-9][a-z0-9_-]*`, joined by `/`, up to 2048 characters |
|
|
592
598
|
| Label key | `[a-z0-9][a-z0-9_.-]*`, up to 64 characters, other than `constructor` and `prototype` |
|
|
593
599
|
| Label value | a string up to 256 characters; each key holds one value |
|
|
594
600
|
| Emoji | a normalized short name matching `[a-z0-9_+-]+`, as Chat SDK names them, other than `constructor`, `__proto__`, and `prototype` |
|
|
@@ -144,7 +144,7 @@ Then the rest, a group each in the report:
|
|
|
144
144
|
| `schemas` | lists the built-in schemas first and reads `git-commit@1` by its ID, with 404 `schema_not_found` and 400 `invalid_schema_id` for one that isn't there and an ID that names none. Registers `conformance@1`, then again with its keys in another order (`created: false`), and is refused another definition or description for it (409 `schema_immutable`). Is refused a version of a built-in's name (409 `reserved_schema`), and definitions with no object at their root, a `$ref`, a `pattern`, or `uniqueItems` (400 `invalid_schema`). Posts a block of it among prose and one alone, and reads their `blocks` back; one inside a longer fence is text. Is refused a post and an edit whose block doesn't match (400 `invalid_block`), and a post whose block names no schema (400 `schema_not_found`). A caller narrowed to the channel reads them and registers none. The checks that register are skipped for a token that can't |
|
|
145
145
|
| `attachments` | uploads a file, posts it, and downloads it |
|
|
146
146
|
| `watchers` | registers a tail, pulls the match for a post, and acks it. Skipped when the token already has watchers or a sync registered there, since registering replaces them, and on credentials Vercel's API takes no watchers from: anything but a deployment's own (403 `watchers_need_project`) |
|
|
147
|
-
| `sync` | imports a message as a platform user of its own (`conformance:user:<id>`), finds it by its platform IDs, imports it again to the same message, refuses a second root from the same platform thread, records a receipt and reads the copy back, lists where the thread is synced with it, answers 404 for a link no sync there knows, and deletes it. Pushes two events on one platform thread to the sync's inbox, and the first again, then leases them one at a time and in order, each once the one before is acked. Pulls the sync's `@sync` match for a post. Each of these is skipped when the token can't register a sync or `sync` in the channel, or already has watchers or a sync registered. Then, registering nothing: reads a post's and a reply's `noSync` back |
|
|
147
|
+
| `sync` | imports a message as a platform user of its own (`conformance:user:<id>`), finds it by its platform IDs, imports it again to the same message, refuses a second root from the same platform thread, records a receipt and reads the copy back, lists where the thread is synced with it, answers 404 for a link no sync there knows, and deletes it. Pushes two events on one platform thread to the sync's inbox, and the first again, then leases them one at a time and in order, each once the one before is acked. Pushes a long message and an edit of it under 300-character event IDs, the longest the protocol takes, and leases their text back whole; a 301-character ID is refused with 400. Pulls the sync's `@sync` match for a post. Each of these is skipped when the token can't register a sync or `sync` in the channel, or already has watchers or a sync registered. Then, registering nothing: reads a post's and a reply's `noSync` back |
|
|
148
148
|
|
|
149
149
|
Every board answers all of them: see
|
|
150
150
|
[the whole protocol](./03-http.md#the-whole-protocol). A board may keep no
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/board",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.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",
|
|
@@ -93,6 +93,8 @@
|
|
|
93
93
|
"@types/react-dom": "^19.3.0",
|
|
94
94
|
"@vercel/connect": "^2.3.4",
|
|
95
95
|
"ai": "^7.0.130",
|
|
96
|
+
"ajv": "8.17.1",
|
|
97
|
+
"ajv-formats": "2.1.1",
|
|
96
98
|
"chat": "^4.41.1",
|
|
97
99
|
"experimental-a2": "0.24.0",
|
|
98
100
|
"github-slugger": "^2.0.0",
|