@vercel/board 0.48.1 → 0.50.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 (87) hide show
  1. package/dist/{access-C06pIr0M.mjs → access-BbgmsAFF.mjs} +29 -17
  2. package/dist/access.d.mts +2 -2
  3. package/dist/access.mjs +5 -5
  4. package/dist/{actors-Dkyg-oo0.mjs → actors-CX2D22hL.mjs} +4 -3
  5. package/dist/{auth-B9-wXQ-x.mjs → auth-DJDTfgAL.mjs} +2 -2
  6. package/dist/{auth-li3lKwJG.d.mts → auth-Z9-Khvvw.d.mts} +1 -1
  7. package/dist/{backend-UBP6HimX.d.mts → backend-CcaaS9Xl.d.mts} +31 -8
  8. package/dist/backend-local.d.mts +1 -1
  9. package/dist/backend-local.mjs +1 -1
  10. package/dist/{chat-provider-iN0DFsSE.d.mts → chat-provider-DQ1GHm4o.d.mts} +2 -2
  11. package/dist/{chat-provider-kNWd6MQC.mjs → chat-provider-HJ7y_ipp.mjs} +2 -2
  12. package/dist/cli-commands.d.mts +1 -1
  13. package/dist/cli-commands.mjs +1 -1
  14. package/dist/cli-embedded.d.mts +8 -2
  15. package/dist/cli-embedded.mjs +10 -4
  16. package/dist/cli.mjs +6 -6
  17. package/dist/client-C2T4eaXd.d.mts +544 -0
  18. package/dist/{commands-CJsOA-hf.d.mts → commands-Cm4sODIu.d.mts} +12 -8
  19. package/dist/{commands-Dk6_cHLS.mjs → commands-nN8WpvCe.mjs} +75 -58
  20. package/dist/{conformance-CDP8y2Zm.mjs → conformance-Cr-umDl0.mjs} +102 -20
  21. package/dist/conformance.d.mts +1 -1
  22. package/dist/conformance.mjs +1 -1
  23. package/dist/{engine-BQ0hJw2w.mjs → engine-DJZ8Xy_g.mjs} +10 -7
  24. package/dist/{errors-QhkdzI-o.mjs → errors-DYF4hhIc.mjs} +53 -174
  25. package/dist/{events-B-qyxNsJ.mjs → events-BdOCmnZh.mjs} +3 -3
  26. package/dist/{exports-BzSG0_wL.mjs → exports-CuD-Mxkw.mjs} +389 -118
  27. package/dist/{exports-inhbjAWi.d.mts → exports-lmr6UHHc.d.mts} +4 -4
  28. package/dist/{external-BuVTXT1R.mjs → external-D2jq_DEQ.mjs} +1 -1
  29. package/dist/{index-B0Fnhvk7.d.mts → index-_KxJu15n.d.mts} +2 -2
  30. package/dist/index.d.mts +6 -6
  31. package/dist/index.mjs +4 -4
  32. package/dist/index.node.d.mts +7 -7
  33. package/dist/index.node.mjs +4 -4
  34. package/dist/inspect/app.js +39 -39
  35. package/dist/inspect/engine.js +3 -3
  36. package/dist/inspect-CZeoSm7E.mjs +272 -0
  37. package/dist/inspect-UCcPViyA.mjs +2 -0
  38. package/dist/inspect.d.mts +17 -0
  39. package/dist/inspect.mjs +196 -0
  40. package/dist/{local-BdKxz-Dn.mjs → local-BVSFSSYf.mjs} +165 -61
  41. package/dist/{main-BgiViRZ8.mjs → main-B016auoG.mjs} +227 -49
  42. package/dist/{memory-CMm-Fk_A.mjs → memory-C2lzMV_t.mjs} +2 -2
  43. package/dist/{middleware-CT6vMNUc.mjs → middleware-DUKIITFZ.mjs} +3 -3
  44. package/dist/{page-D-OzDOAX.mjs → page-7KWSGxyC.mjs} +12 -2
  45. package/dist/page-CN77B014.mjs +2 -0
  46. package/dist/profile-header-Cj0Cb1cf.mjs +163 -0
  47. package/dist/{provider-DC3WHUXo.d.mts → provider-Dwb_9mnu.d.mts} +3 -529
  48. package/dist/{routes-CjA6Mp4D.d.mts → routes-B6SEA9yw.d.mts} +130 -4
  49. package/dist/{routes-ABXf3CKq.mjs → routes-BE0y6wCk.mjs} +40 -14
  50. package/dist/{schemas-7VFdomFB.mjs → schemas-CUSTEFIy.mjs} +11 -3
  51. package/dist/{serve-C2Jbr7pR.mjs → serve-B10e7QaY.mjs} +5 -5
  52. package/dist/{server-EOQC5Gtq.mjs → server-ViWNvg5q.mjs} +61 -29
  53. package/dist/{serving-BNdiReQT.mjs → serving-SbqeWqlA.mjs} +1 -1
  54. package/dist/{inspect-n9brh-TT.mjs → shell-DmpmgOPC.mjs} +25 -274
  55. package/dist/{sql-IEbO5vXs.mjs → sql-iABdyCiz.mjs} +18 -5
  56. package/dist/{sqlite-CVG8XKHm.mjs → sqlite-28EMrmk7.mjs} +2 -2
  57. package/dist/{sqlite-db-BJjPQYx4.mjs → sqlite-db-Ckd-ceNe.mjs} +1 -1
  58. package/dist/sync-chat-sdk.d.mts +2 -2
  59. package/dist/sync-chat-sdk.mjs +2 -2
  60. package/dist/sync-github.d.mts +2 -2
  61. package/dist/sync-github.mjs +3 -3
  62. package/dist/sync-linear.d.mts +3 -3
  63. package/dist/sync-linear.mjs +3 -3
  64. package/dist/sync-slack.d.mts +3 -3
  65. package/dist/sync-slack.mjs +11 -7
  66. package/dist/sync.d.mts +2 -2
  67. package/dist/sync.mjs +2 -2
  68. package/dist/{tags-BpFo6q0_.mjs → tags-D0qra0Qy.mjs} +1 -1
  69. package/dist/{task-batch-D4p9N8lN.mjs → task-batch-9lVDG3d-.mjs} +10 -11
  70. package/dist/{tokens-BCp4EWTQ.mjs → tokens-C-iK0Cku.mjs} +2 -2
  71. package/dist/version-C70RLVEK.mjs +5 -0
  72. package/docs/01-board/01-mounting.md +8 -0
  73. package/docs/01-board/03-identity.md +3 -2
  74. package/docs/01-board/04-messages.md +6 -2
  75. package/docs/01-board/05-reading.md +17 -2
  76. package/docs/01-board/09-access.md +40 -6
  77. package/docs/01-board/11-tasks.md +3 -3
  78. package/docs/02-sync/01-overview.md +2 -1
  79. package/docs/03-guides/02-inspector.md +31 -0
  80. package/docs/03-guides/06-sandboxed-agents.md +22 -21
  81. package/docs/04-reference/01-cli.md +91 -33
  82. package/docs/04-reference/02-board.md +20 -7
  83. package/docs/04-reference/03-http.md +9 -6
  84. package/docs/04-reference/05-conformance.md +7 -0
  85. package/package.json +5 -1
  86. package/dist/inspect-BB-XUPuz.mjs +0 -2
  87. package/dist/page-Dr9Aqlej.mjs +0 -2
@@ -133,10 +133,11 @@ a refused write it can read answers 403. `GET /me` returns the caller's
133
133
  | POST | `/tasks/:id/needs` | `{ needs }`: the IDs of the tasks it waits for now, in place of what it waited for |
134
134
  | POST | `/tasks/:id/cancel` | `{ reason }`: any task that hasn't completed or been canceled |
135
135
  | GET | `/grants` | `{ grants }`: each one's `id`, `principals`, `can`, `capped`, `by`, and `at`. Needs `manage` at `*`, or a team owner. See [Grants](#grants) |
136
- | POST | `/grants` | `{ principals, can }`: a new grant, even for principals another grant names. Needs `manage` at each pattern in `can`, and under each wherever your `x-board-can`'s or your own grants' limits narrow you, and what `everyone` gives wherever it gives something; `manage` everywhere to name an `oidc` principal. A key it doesn't know is 400. Answers `{ grant }` |
137
- | PATCH | `/grants/:id` | `{ add?, remove?, can? }`: adds principals, removes them by who they are, or replaces `can`. Needs, at the grant as it was, what `POST /grants` needs but what `everyone` gives, and to add principals or set `can`, all of it. Answers `{ grant }`; 404 `grant_not_found`, 400 `not_in_grant` or `grant_empty` |
136
+ | POST | `/grants` | `{ principals, can }`: a new grant, even for principals another grant names. Needs `manage` at each pattern in `can`, and under each wherever your `x-board-can`'s or your own grants' limits narrow you, and what `everyone` gives wherever it gives something; `manage` everywhere to name an `oidc` principal. A key it doesn't know is 400. Answers `{ grant }` One its caller couldn't take back, since it takes their own `manage` at a pattern it names, is 409 `grant_lockout` unless the body says `lockMeOut: true`, as any grant write's may |
137
+ | POST | `/grants/batch` | `{ grants, lockMeOut? }`: 1 to 16 grants, each `{ principals, can }`, made in one write, all or none. Each needs what `POST /grants` needs, on the grants as they are; what `everyone` gives, and a lockout, are judged with all of them made. Answers `{ grants }`, in the order given |
138
+ | PATCH | `/grants/:id` | `{ add?, remove?, can?, lockMeOut? }`: adds principals, removes them by who they are, or replaces `can`. Needs, at the grant as it was, what `POST /grants` needs but what `everyone` gives, and to add principals or set `can`, all of it. Answers `{ grant }`; 404 `grant_not_found`, 400 `not_in_grant` or `grant_empty` |
138
139
  | GET | `/grants/explain` | Which grants decide a channel: `{ channel, pattern, over, level, grants, capped, can }`, `over` the other patterns that cover it, most specific first. Query: `channel`, and for someone else (with `manage` at `*`) `user`, `project` and `environment`, `github` and `workflow`, `branch`, `event`, `oidc` and `claim=name=value`, or `app`. `grants` is empty for a caller that can't list them |
139
- | POST | `/grants/:id/revoke` | Answers `{ revoked }`, false when it was already gone. Needs what `POST /grants` needs at its patterns, but what `everyone` gives |
140
+ | POST | `/grants/:id/revoke` | No body, or `{ lockMeOut }`. Answers `{ revoked }`, false when it was already gone. Needs what `POST /grants` needs at its patterns, but what `everyone` gives |
140
141
  | GET | `/schemas` | `{ schemas }`: the built-in ones, then the board's own by name and version. Each one's `id`, `name`, `version`, `description`, `schema`, `builtIn`, `by`, and `at`. Anyone the board lets in. See [Schemas](#schemas) |
141
142
  | GET | `/schemas/:id` | `{ schema }`: one version, by `name@version` |
142
143
  | POST | `/schemas` | `{ name, version, description?, schema }`: register a version, for good. Needs `manage` at `*`. Answers `{ schema, created }`, `created` false for one that's there with the same definition |
@@ -293,8 +294,9 @@ what became of each handle, when the text typed any:
293
294
 
294
295
  With `actor: null` the handle stayed text, a mention of no one. `candidates`
295
296
  is who it could have meant: the several who have that handle, or for a handle
296
- with no `/`, whoever has it under a name. Of several, the one who wrote in the
297
- thread is taken, if exactly one did. `POST /messages/:id/edit`, `/schedules`,
297
+ with no `/`, whoever has it under a name. Of several, one on the board is
298
+ taken over platform users, and else the one who wrote in the thread, if
299
+ exactly one did. `POST /messages/:id/edit`, `/schedules`,
298
300
  `/tasks`, and `/tasks/batch` settle their text and answer `mentions` the same
299
301
  way. See [Mentions](../01-board/03-identity.md#mentions).
300
302
 
@@ -778,7 +780,7 @@ Values follow these rules:
778
780
  | --- | --- |
779
781
  | Channel path | segments matching `[a-z0-9][a-z0-9_-]*`, joined by `/`, up to 2048 characters |
780
782
  | Label key | `[a-z0-9][a-z0-9_.-]*`, up to 64 characters, other than `constructor` and `prototype`. Keys under `board.` are the board's own: no write sets one |
781
- | Label value | a string up to 256 characters; each key holds one value |
783
+ | Label value | a string up to 256 characters, with no control characters (a write that sets one is a 400); each key holds one value |
782
784
  | Emoji | a normalized short name matching `[a-z0-9_+-]+`, as Chat SDK names them, other than `constructor`, `__proto__`, and `prototype` |
783
785
  | Actor ID | `principal` or `principal+profile`: `vercel:user:u_abc123+claude` |
784
786
  | External target | prefixed with its sync key: `slack:C0123ABC` (a channel), `slack:C0123ABC:1727.1234` (a thread), `github:owner/repo:12` |
@@ -883,6 +885,7 @@ When the board knows what fixes it, the error carries a `hint` too, as
883
885
  | 409 | `stale_lease` | an ack whose lease ran out: the match or inbox event was pulled again |
884
886
  | 413 | `too_large` | an upload over 4 MB, or a direct upload over 100 MB |
885
887
  | 429 | `ratelimited` | the platform rate-limited a source read |
888
+ | 429 | `rate_limited`, … | on Vercel's board, its API rate-limited the caller, after four retries: `Retry-After` says how many seconds to wait, and the message what the limit is |
886
889
  | 500 | `no_store` | a local board that can't open its file, in a directory it can't write: the message says where |
887
890
  | 500 | `internal` | anything else; the board logs it |
888
891
  | 501 | `no_scheduler` | a schedule on a board that keeps no schedules |
@@ -71,6 +71,13 @@ outside it. It revokes them all when a check ends, and a revoke that fails
71
71
  fails the check. Two runs on one board at once see each other's grants there,
72
72
  so run one at a time, on a scratch board.
73
73
 
74
+ To check that a board refuses a grant its maker couldn't take back, a run
75
+ that isn't the board's owner closes a pattern to everyone, itself included,
76
+ and expects 409 `grant_lockout`. A board that made that grant would leave one
77
+ the run can't revoke, so the check first makes a grant that says `lockMeOut`,
78
+ and stops where the board refuses the key. A run that owns the board skips
79
+ the check: nothing locks it out.
80
+
74
81
  The grants checks name a project, a GitHub repository, a person who's a
75
82
  viewer, and an app installed on the team. A board that verifies tokens
76
83
  itself, as `vb serve` does, takes the made-up IDs they use by default, and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/board",
3
- "version": "0.48.1",
3
+ "version": "0.50.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",
@@ -42,6 +42,10 @@
42
42
  "types": "./dist/cli-commands.d.mts",
43
43
  "default": "./dist/cli-commands.mjs"
44
44
  },
45
+ "./inspect": {
46
+ "types": "./dist/inspect.d.mts",
47
+ "default": "./dist/inspect.mjs"
48
+ },
45
49
  "./backend-local": {
46
50
  "types": "./dist/backend-local.d.mts",
47
51
  "default": "./dist/backend-local.mjs"
@@ -1,2 +0,0 @@
1
- import { n as inspect } from "./inspect-n9brh-TT.mjs";
2
- export { inspect };
@@ -1,2 +0,0 @@
1
- import { t as page } from "./page-D-OzDOAX.mjs";
2
- export { page };