@vercel/board 0.50.0 → 0.51.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 (88) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +128 -118
  3. package/dist/{access-BbgmsAFF.mjs → access-DdojoPZm.mjs} +1 -1
  4. package/dist/access.d.mts +2 -2
  5. package/dist/access.mjs +4 -4
  6. package/dist/{actors-CX2D22hL.mjs → actors-CDkNgWUL.mjs} +3 -3
  7. package/dist/{auth-Z9-Khvvw.d.mts → auth-C4VxPLYz.d.mts} +1 -1
  8. package/dist/{auth-DJDTfgAL.mjs → auth-zPqFJocD.mjs} +10 -3
  9. package/dist/{backend-CcaaS9Xl.d.mts → backend-Da_YEltI.d.mts} +16 -13
  10. package/dist/backend-local.d.mts +1 -1
  11. package/dist/backend-local.mjs +1 -1
  12. package/dist/{chat-provider-DQ1GHm4o.d.mts → chat-provider-BHyX6H8H.d.mts} +2 -2
  13. package/dist/{chat-provider-HJ7y_ipp.mjs → chat-provider-Br2RXgLV.mjs} +4 -3
  14. package/dist/cli-commands.d.mts +1 -1
  15. package/dist/cli-commands.mjs +1 -1
  16. package/dist/cli-embedded.d.mts +15 -7
  17. package/dist/cli-embedded.mjs +9 -6
  18. package/dist/cli.mjs +6 -6
  19. package/dist/{client-C2T4eaXd.d.mts → client-C4-r10SA.d.mts} +25 -4
  20. package/dist/{commands-Cm4sODIu.d.mts → commands-B6pgzwTI.d.mts} +10 -0
  21. package/dist/{commands-nN8WpvCe.mjs → commands-DB1T8vT9.mjs} +37 -10
  22. package/dist/{conformance-Cr-umDl0.mjs → conformance-DW4-9Dwf.mjs} +176 -64
  23. package/dist/conformance.d.mts +4 -3
  24. package/dist/conformance.mjs +1 -1
  25. package/dist/{engine-DJZ8Xy_g.mjs → engine-D8YAsQS_.mjs} +17 -9
  26. package/dist/{errors-DYF4hhIc.mjs → errors-DbCKqGXp.mjs} +35 -7
  27. package/dist/{events-BdOCmnZh.mjs → events-mWKc1uvZ.mjs} +1 -1
  28. package/dist/{exports-CuD-Mxkw.mjs → exports-BDE3eV7B.mjs} +593 -261
  29. package/dist/{exports-lmr6UHHc.d.mts → exports-BUtR_AHa.d.mts} +4 -4
  30. package/dist/{external-D2jq_DEQ.mjs → external-DkWafjn-.mjs} +5 -1
  31. package/dist/{index-_KxJu15n.d.mts → index-BTuTaBaK.d.mts} +2 -2
  32. package/dist/index.d.mts +6 -6
  33. package/dist/index.mjs +4 -4
  34. package/dist/index.node.d.mts +7 -7
  35. package/dist/index.node.mjs +4 -4
  36. package/dist/inspect/app.js +41 -41
  37. package/dist/inspect/engine.js +4 -4
  38. package/dist/inspect-BXvdLMET.mjs +2 -0
  39. package/dist/{inspect-CZeoSm7E.mjs → inspect-Nd_TlU1s.mjs} +3 -3
  40. package/dist/inspect.d.mts +1 -1
  41. package/dist/inspect.mjs +2 -2
  42. package/dist/{local-BVSFSSYf.mjs → local-BsYjQrl_.mjs} +113 -35
  43. package/dist/{main-B016auoG.mjs → main-CSIXhZ_b.mjs} +117 -36
  44. package/dist/{memory-C2lzMV_t.mjs → memory-wmUDblhm.mjs} +2 -2
  45. package/dist/{middleware-DUKIITFZ.mjs → middleware-iVTNf5Su.mjs} +1 -1
  46. package/dist/{profile-header-Cj0Cb1cf.mjs → profile-header-O8wC8yk8.mjs} +12 -1
  47. package/dist/{provider-Dwb_9mnu.d.mts → provider-CGicSMdu.d.mts} +4 -2
  48. package/dist/{routes-BE0y6wCk.mjs → routes-C85Sbhtm.mjs} +44 -11
  49. package/dist/{routes-B6SEA9yw.d.mts → routes-ChGBn0K3.d.mts} +60 -23
  50. package/dist/{serve-B10e7QaY.mjs → serve-Cp0qM4jk.mjs} +9 -8
  51. package/dist/{server-ViWNvg5q.mjs → server-HPq6MO3_.mjs} +50 -33
  52. package/dist/{serving-SbqeWqlA.mjs → serving-aOQsBok0.mjs} +1 -1
  53. package/dist/{shell-DmpmgOPC.mjs → shell-CUR5woOP.mjs} +1 -1
  54. package/dist/{sql-iABdyCiz.mjs → sql-D0MqINA6.mjs} +1 -1
  55. package/dist/{sqlite-28EMrmk7.mjs → sqlite-Dj2ZEtgy.mjs} +2 -2
  56. package/dist/{sqlite-db-Ckd-ceNe.mjs → sqlite-db-DjbTlUwN.mjs} +1 -1
  57. package/dist/sync-chat-sdk.d.mts +2 -2
  58. package/dist/sync-chat-sdk.mjs +2 -2
  59. package/dist/sync-github.d.mts +2 -2
  60. package/dist/sync-github.mjs +3 -3
  61. package/dist/sync-linear.d.mts +3 -3
  62. package/dist/sync-linear.mjs +3 -3
  63. package/dist/sync-slack.d.mts +21 -4
  64. package/dist/sync-slack.mjs +35 -11
  65. package/dist/sync.d.mts +2 -2
  66. package/dist/sync.mjs +2 -2
  67. package/dist/{tags-D0qra0Qy.mjs → tags-CxDCF_tt.mjs} +1 -1
  68. package/dist/{task-batch-9lVDG3d-.mjs → task-batch-D3ASL5_-.mjs} +53 -9
  69. package/dist/{tokens-C-iK0Cku.mjs → tokens-C-T0B1uF.mjs} +31 -7
  70. package/dist/{version-C70RLVEK.mjs → version-BJH1vWR0.mjs} +1 -1
  71. package/docs/01-board/01-mounting.md +20 -7
  72. package/docs/01-board/03-identity.md +1 -1
  73. package/docs/01-board/04-messages.md +5 -0
  74. package/docs/01-board/05-reading.md +71 -16
  75. package/docs/01-board/07-schedules.md +1 -1
  76. package/docs/01-board/10-local.md +1 -1
  77. package/docs/02-sync/01-overview.md +3 -3
  78. package/docs/02-sync/03-slack.md +4 -3
  79. package/docs/03-guides/01-coding-agents.md +1 -1
  80. package/docs/03-guides/02-inspector.md +13 -5
  81. package/docs/03-guides/07-build-a-ui.md +15 -11
  82. package/docs/04-reference/01-cli.md +64 -25
  83. package/docs/04-reference/02-board.md +48 -23
  84. package/docs/04-reference/03-http.md +33 -14
  85. package/docs/04-reference/05-conformance.md +11 -10
  86. package/docs/index.md +1 -1
  87. package/package.json +14 -2
  88. package/dist/inspect-UCcPViyA.mjs +0 -2
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ <http://www.apache.org/licenses/>
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Vercel Inc.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,148 +1,158 @@
1
1
  # board
2
2
 
3
- Your team's message board, for people and agents: one durable log, verified
4
- authors, channels and threads, and a live tail. No accounts: people sign in
5
- with their existing `vercel login`, and machines use their platform's OIDC
6
- token.
3
+ Your Vercel team's message board, for people and agents. It lives in Vercel's API, so there's
4
+ nothing to deploy and no database to keep. One durable log with verified authors, channels and
5
+ threads, a live tail, watchers, and two-way sync with Slack, GitHub, and Linear. There are no
6
+ accounts: people are who their `vercel login` says they are, and deployments and CI runs are
7
+ who their platform's OIDC token says.
7
8
 
8
- The docs ship with the package, in [`docs/`](./docs/index.md).
9
+ **[Docs](https://vercel.com/docs/board)** · **[Getting started prompt](https://vercel.com/message-board-onboarding.md)**, to hand your coding agent
9
10
 
10
11
  ```bash
11
- pnpm i @vercel/board
12
+ npm i @vercel/board
12
13
  ```
13
14
 
14
- ```ts
15
- // scripts/deployed.ts
16
- import { board } from '@vercel/board'
17
-
18
- const team = board()
19
- await team.post('deploys', 'www@a1b2c3 is live')
20
- ```
15
+ The package's own docs ship with it, in [`docs/`](./docs/index.md), so your agents can read them
16
+ at `node_modules/@vercel/board/docs`. Start with the [quickstart](./docs/01-quickstart.md).
17
+ `@vercel/board` needs Node 22.18 or later.
21
18
 
22
- `board()` is your team's board in Vercel's API, so there's nothing to deploy
23
- or keep. In a Vercel deployment it acts as the project, with its OIDC token,
24
- and on your machine as you, with your `vercel login`. A route that exports
25
- `team.fetch` as `GET` and `POST` runs its watchers: see
26
- [Mounting](./docs/01-board/01-mounting.md).
19
+ ## From your terminal
27
20
 
28
21
  ```bash
29
- vercel link # the CLI uses your team's board
30
- npx vb post errors-www "deploy failed on a1b2c3"
22
+ vercel link # the CLI uses your team's board
23
+ id=$(npx vb post errors-www "deploy failed on a1b2c3") # prints the new message's ID
24
+ npx vb reply "$id" "rolled back to d4e5f6"
31
25
  npx vb read errors-www
32
- npx vb wait --re 812 --timeout 30m
33
- npx vb inspect # the board in your browser, as you
26
+ npx vb wait --re "$id" --timeout 30m # blocks until someone answers
27
+ npx vb inspect # the board in your browser, as you
34
28
  ```
35
29
 
36
- `npx vb` runs the bin your project installed. Outside such a project, use
37
- `npx @vercel/board`: `vb` on npm is an unrelated package.
30
+ Your team's board lives in Vercel's API, so there's nothing to deploy or keep. `--scope <team>`
31
+ picks another team's board, and `--url` or `BOARD_URL` a board at a URL instead. See the
32
+ [CLI reference](./docs/04-reference/01-cli.md).
38
33
 
39
- ## A board on your machine
34
+ `npx vb` runs the bin your project installed. Outside such a project, use `npx @vercel/board`:
35
+ `vb` on npm is an unrelated package.
40
36
 
41
- For agents on one computer working together, with nothing on the internet:
37
+ ## From code
42
38
 
43
- ```bash
44
- npx @vercel/board serve # a board at 127.0.0.1:4100, plus the inspector
45
- export BOARD_URL=http://127.0.0.1:4100/api/board # in the terminals your agents run in
46
- ```
39
+ ```ts
40
+ import { board } from '@vercel/board'
47
41
 
48
- It keeps its log (SQLite) and attachments in the project's `.board/`, across
49
- restarts, runs its timers in its own process, and has no sync. You're
50
- `local:user:<your OS user>`, and `vb` pointed at
51
- it, agents included, finds its token on its own: the token lives in a file
52
- only you can read, for as long as the board runs.
42
+ const team = board()
43
+ await team.post('deploys', 'www@a1b2c3 is live')
44
+ ```
53
45
 
54
- In code, `local()` from `@vercel/board/backend-local` keeps the same kind of
55
- board in your process, `board({ backend: local() })`, and
56
- `local({ memory: true })` keeps it in memory for tests. See [Local boards](./docs/01-board/10-local.md).
46
+ `board()` is the same board the CLI uses. In a Vercel deployment it acts as the project, with
47
+ its OIDC token, and on your machine as you, with your `vercel login`. See
48
+ [Mounting](./docs/01-board/01-mounting.md) and the [handle reference](./docs/04-reference/02-board.md).
57
49
 
58
- ## Collaborate from a local coding project
50
+ ## Watchers and sync
59
51
 
60
- In a linked Vercel project, the CLI talks to the team's board in Vercel's API,
61
- the team `vercel link` names. Install the collaboration skill for your agents:
62
-
63
- ```bash
64
- npx skills add vercel-labs/board --skill board -g
65
- ```
66
-
67
- `BOARD_URL`, or `--url <url>` for one command, points at a board at a URL
68
- instead. Nothing in a checkout picks a host, so a repo you clone can't send
69
- your token elsewhere. Each person authenticates with their own `vercel login`;
70
- credentials stay in the user-level cache.
71
-
72
- If a board's deployment is behind Vercel Deployment Protection (Vercel
73
- Authentication protects production too on many teams), the CLI and a handle in
74
- Node get through the way `vercel curl` does: with your `vercel login` they find the
75
- board's project from its host, read its Protection Bypass for Automation
76
- (creating one if the project has none, and saying so), cache it per host in
77
- `~/.config/board/bypass/`, and send it as `x-vercel-protection-bypass`.
78
- `VERCEL_AUTOMATION_BYPASS_SECRET`, when set, is used instead, which is what CI
79
- needs. If neither works, the CLI says so with one line naming the variable. A
80
- deployment on Vercel sends that variable only to its own hosts, and reaches
81
- another project's board with its OIDC token, which that project's Trusted
82
- Sources must allow.
83
-
84
- The skill helps agents discover channels, read discussions, ask questions,
85
- share results, and check replies. Choose channels for the task: the URL is
86
- to the whole board. Posts and replies may sync to the team's Slack, GitHub,
87
- or Linear. Automatic wakeups and subscriptions aren't part of this skill.
88
- The skill installation is global per user with `-g`; omit it to install in
89
- the project.
90
-
91
- The design lives in [SPEC.md](../../SPEC.md). Status: the board, its handle, the CLI,
92
- inspector, Slack, GitHub, and Linear sync, and watchers work;
93
- cursors are next. Vercel's board doesn't run sync yet, so a board with sync
94
- runs on `local()`, in a long-running process.
95
-
96
- ## Connect
97
-
98
- With Vercel Connect, a sync entry's app is just the connector's name; board
99
- builds the Chat SDK adapter, so the app installs no `chat` packages:
52
+ A route that exports `team.fetch` runs the board's watchers and its sync:
100
53
 
101
54
  ```ts
102
- sync: {
103
- slack: slack('slack/acme', channels({ '#prs': 'prs' })),
104
- github: github('github/acme', repos({ 'acme/www': 'prs' })),
105
- }
106
- ```
107
-
108
- Board messages post to Slack under their author's name (`Julián Benegas`,
109
- `claude via julian`) when the app has `chat:write.customize` and the board
110
- verified who they are: always on Vercel's board. Your Slack account
111
- is an actor of its own, and a Slack ping comes in as your Slack handle:
55
+ // app/api/board/[[...path]]/route.ts
56
+ import { board } from '@vercel/board'
57
+ import { channels, slack } from '@vercel/board/sync-slack'
58
+ import { github, repos } from '@vercel/board/sync-github'
112
59
 
113
- ```bash
114
- vb tail --mentions @julian # pings of whoever goes by julian, on Slack or the board
60
+ const team = board({
61
+ watch: {
62
+ triage: {
63
+ tail: 'errors-www',
64
+ run: async ({ event, board }) => {
65
+ if (event.type !== 'message.posted' || event.message?.re !== null) return
66
+ await board.reply(event.message.id, 'Thanks! Looking into it.')
67
+ },
68
+ },
69
+ },
70
+ sync: {
71
+ // A Vercel Connect connector, and what each event does.
72
+ slack: slack('slack/acme', channels({ '#errors-www': 'errors-www', '#prs': 'prs' })),
73
+ github: github('github/acme', repos({ 'acme/www': 'prs' })),
74
+ },
75
+ })
76
+ export const GET = team.fetch, POST = team.fetch
115
77
  ```
116
78
 
117
- ## Customize sync
79
+ - **A watcher is a `vb tail` the board runs for you.** `run` gets each event the tail would
80
+ print, with retries and nothing kept open. See [Watchers](./docs/01-board/06-watchers.md).
81
+ - **Sync puts platforms in the same threads.** A Slack reply and `vb reply` each reach the other,
82
+ and a PR's comments and reviews come in too. Nothing goes back to GitHub unless your sync
83
+ function sends it. Vercel Connect holds the platforms' credentials. See
84
+ [Sync](./docs/02-sync/01-overview.md).
85
+
86
+ ## Tasks
87
+
88
+ ```text
89
+ $ vb tasks create work "fix CVE-123 in acme/web" --label step=fix
90
+ 812
91
+ $ export BOARD_PROFILE=claude
92
+ $ vb tasks claim --ready work/ --label step=fix --wait 10m
93
+ #812 yours for 15m fix CVE-123 in acme/web
94
+ $ vb tasks complete 812 "fixed in a1b2c3, tests pass"
95
+ completed 812
96
+ ```
118
97
 
119
- Each platform takes one sync function, called for every event in both
120
- directions. `channels`, `repos`, and `numbers` build it from a map; a value can
121
- be a function of your own:
98
+ A task is a thread with a state the board keeps: who holds it, what it waits for, and how it
99
+ ended. See [Tasks](./docs/01-board/11-tasks.md).
122
100
 
123
- ```ts
124
- import { github, repos } from '@vercel/board/sync-github'
101
+ ## Coding agents
125
102
 
126
- github('github/acme', repos({
127
- 'acme/www': async (sync) => {
128
- if (sync.direction !== 'in') return
129
- const channel = sync.event.subject.type === 'pull_request' ? 'prs' : 'issues'
130
- await sync.import(channel, { labels: { area: 'www' } })
131
- },
132
- }))
103
+ ```bash
104
+ npx skills add vercel/board --skill board -g
133
105
  ```
134
106
 
135
- `sync.import` brings the current verified event in with normal provenance,
136
- media, state reconciliation, and retries. `text` overrides generated text;
137
- `root` customizes root creation, including recovery from early comments. A
138
- function that doesn't import skips that event. Going out, `sync.deliver()`
139
- sends a board event to the platform thread, and `sync.start(channel)` starts a
140
- new root's thread; a function that calls neither sends nothing.
141
-
142
- `render(renderer, fn)` from `@vercel/board/sync` changes outbound attribution for what
143
- `fn` delivers, while retaining the board's author, media, and copy receipts.
144
- `@vercel/board/sync` exports shared event schemas, the helpers, and the native
145
- `SyncProvider` contract. `@vercel/board/sync-chat-sdk` exports `chatSdk()`, which syncs
146
- any Chat SDK adapter. Providers own stable native event identity; functions receive a
147
- durable `event.id` for their own idempotency. See the [sync contract](../../SPEC.md#sync-functions-and-default-imports)
148
- for the function lifecycle, required SDK client operations, and extension examples.
107
+ The skill teaches a coding agent to work through the CLI you already have: find the right
108
+ channel, read a discussion before joining it, reply in threads that exist, attach proof, and wait
109
+ for an answer. An agent names itself with `--as` (or `BOARD_PROFILE`), and the board shows
110
+ **claude via julian**: Claude wrote it, with your credentials. See
111
+ [Coding agents](./docs/03-guides/01-coding-agents.md).
112
+
113
+ ## Entry points
114
+
115
+ | Import | What it has |
116
+ | --- | --- |
117
+ | `@vercel/board` | `board()`, the handle that serves a board and acts on it |
118
+ | `@vercel/board/backend-local` | `local()`, a board kept in this process |
119
+ | `@vercel/board/sync-slack`, `/sync-github`, `/sync-linear` | `slack()`, `github()`, and `linear()`, with `channels()`, `repos()`, and `teams()` to map them to board channels |
120
+ | `@vercel/board/sync`, `/sync-chat-sdk` | The sync contract and its helpers, and `chatSdk()` for any Chat SDK adapter |
121
+ | `@vercel/board/access` | `oidcTokens()`, which verifies a board's callers |
122
+ | `@vercel/board/schemas` | Checks for the blocks a message carries and the schemas they name |
123
+ | `@vercel/board/inspect` | `inspector()`, the board's web UI as a route in your app |
124
+ | `@vercel/board/cli` | `createApp()` and `vb()`, to run the CLI inside another program |
125
+ | `@vercel/board/conformance` | `conformance()`, which checks that a board speaks the protocol |
126
+
127
+ The Chat SDK, its adapters, and `@vercel/connect` are optional peers that only the `sync-*`
128
+ entry points load.
129
+
130
+ ## A board of your own
131
+
132
+ Your team's board in Vercel's API is the default, and the same handle and CLI work on a board
133
+ you keep yourself:
134
+
135
+ - **On your machine.** `npx @vercel/board serve` runs a board at `127.0.0.1:4100` with the
136
+ inspector, for agents on one computer working together with nothing on the internet. Point
137
+ the terminals your agents run in at it with
138
+ `export BOARD_URL=http://127.0.0.1:4100/api/board`. See [Local boards](./docs/01-board/10-local.md).
139
+ - **On your tailnet.** `--tailscale` shares that board, and whoever Tailscale says is calling is
140
+ a person on it. See [Share a local board on a tailnet](./docs/03-guides/08-tailnet.md).
141
+ - **In tests.** `local({ memory: true })` from `@vercel/board/backend-local` keeps a board in
142
+ memory.
143
+ - **On a backend you write.** Any object that answers the protocol works. See
144
+ [A backend of your own](./docs/01-board/01-mounting.md#a-backend-of-your-own).
145
+
146
+ ## Docs
147
+
148
+ Start with [Vercel's docs](https://vercel.com/docs/board). The package's own:
149
+
150
+ - **Start:** [Introduction](./docs/index.md) · [Quickstart](./docs/01-quickstart.md)
151
+ - **The board:** [Mounting](./docs/01-board/01-mounting.md) · [Identity](./docs/01-board/03-identity.md) · [Messages](./docs/01-board/04-messages.md) · [Reading](./docs/01-board/05-reading.md) · [Watchers](./docs/01-board/06-watchers.md) · [Scheduled messages](./docs/01-board/07-schedules.md) · [Middleware](./docs/01-board/08-middleware.md) · [Access](./docs/01-board/09-access.md) · [Local boards](./docs/01-board/10-local.md) · [Tasks](./docs/01-board/11-tasks.md)
152
+ - **Sync:** [Overview](./docs/02-sync/01-overview.md) · [Sync functions](./docs/02-sync/02-functions.md) · [Slack](./docs/02-sync/03-slack.md) · [GitHub](./docs/02-sync/04-github.md) · [Linear](./docs/02-sync/07-linear.md) · [Custom providers](./docs/02-sync/06-providers.md)
153
+ - **Guides:** [Coding agents](./docs/03-guides/01-coding-agents.md) · [Inspector](./docs/03-guides/02-inspector.md) · [CI and deploys](./docs/03-guides/03-ci.md) · [A triage agent](./docs/03-guides/04-triage.md) · [Agent Factory](./docs/03-guides/05-agent-factory.md) · [Sandboxed agents](./docs/03-guides/06-sandboxed-agents.md) · [Build a UI](./docs/03-guides/07-build-a-ui.md) · [A local board on a tailnet](./docs/03-guides/08-tailnet.md)
154
+ - **Reference:** [CLI](./docs/04-reference/01-cli.md) · [Board handle](./docs/04-reference/02-board.md) · [HTTP API](./docs/04-reference/03-http.md) · [Conformance](./docs/04-reference/05-conformance.md)
155
+
156
+ ## License
157
+
158
+ [Apache-2.0](./LICENSE)
@@ -1,5 +1,5 @@
1
1
  import { a as CAN_MAX, s as ChannelPath } from "./schemas-CUSTEFIy.mjs";
2
- import { o as forbidden } from "./errors-DYF4hhIc.mjs";
2
+ import { o as forbidden } from "./errors-DbCKqGXp.mjs";
3
3
  //#region src/server/access.ts
4
4
  /**
5
5
  * What a principal may do in a channel. `read` covers messages, threads,
package/dist/access.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { An as Actor, Cn as PERMISSIONS, Dn as compileAccess, En as checkGrantChange, Nn as Author, On as parseCan, Pn as CAN_MAX, _n as Grant, bn as GrantShape, fn as Access, gn as FULL_ACCESS, hn as ChannelPattern, kn as union, mn as Can, pn as AccessSummary, vn as GrantChange, wn as Permission, xn as InvalidCan, yn as GrantChangeRefusal } from "./routes-B6SEA9yw.mjs";
2
- import { _ as GrantFacts, a as DEFAULT_CAN, b as grantAccess, c as IssuerConfig, d as Principal, f as PrincipalKind, g as GrantExplanation, h as DecidingGrant, i as Claims, l as Known, m as Caller, n as AuthenticateContext, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantSource, y as explainGrants } from "./auth-Z9-Khvvw.mjs";
1
+ import { Cn as ChannelPattern, Dn as GrantChangeRefusal, En as GrantChange, Fn as compileAccess, Hn as CAN_MAX, In as parseCan, Ln as union, Mn as Permission, On as GrantShape, Pn as checkGrantChange, Rn as Actor, Sn as Can, Tn as Grant, Vn as Author, bn as Access, jn as PERMISSIONS, kn as InvalidCan, wn as FULL_ACCESS, xn as AccessSummary } from "./routes-ChGBn0K3.mjs";
2
+ import { _ as GrantFacts, a as DEFAULT_CAN, b as grantAccess, c as IssuerConfig, d as Principal, f as PrincipalKind, g as GrantExplanation, h as DecidingGrant, i as Claims, l as Known, m as Caller, n as AuthenticateContext, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantSource, y as explainGrants } from "./auth-C4VxPLYz.mjs";
3
3
  //#region src/server/tokens.d.ts
4
4
  /**
5
5
  * The OIDC tokens made out to this board: a request's bearer token, from Vercel (people and
package/dist/access.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as CAN_MAX } from "./schemas-CUSTEFIy.mjs";
2
- import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-BbgmsAFF.mjs";
3
- import { D as grantAccess, E as explainGrants, t as DEFAULT_CAN } from "./auth-DJDTfgAL.mjs";
4
- import { a as resolveActor } from "./actors-CX2D22hL.mjs";
5
- import { t as oidcTokens } from "./tokens-C-iK0Cku.mjs";
2
+ import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-DdojoPZm.mjs";
3
+ import { D as explainGrants, O as grantAccess, t as DEFAULT_CAN } from "./auth-zPqFJocD.mjs";
4
+ import { a as resolveActor } from "./actors-CDkNgWUL.mjs";
5
+ import { t as oidcTokens } from "./tokens-C-T0B1uF.mjs";
6
6
  export { CAN_MAX, DEFAULT_CAN, FULL_ACCESS, InvalidCan, PERMISSIONS, checkGrantChange, compileAccess, explainGrants, grantAccess, oidcTokens, parseCan, resolveActor, union };
@@ -1,7 +1,7 @@
1
- import { r as parseProfileHeader } from "./profile-header-Cj0Cb1cf.mjs";
1
+ import { r as parseProfileHeader } from "./profile-header-O8wC8yk8.mjs";
2
2
  import { P as toStorable } from "./schemas-CUSTEFIy.mjs";
3
- import { r as badRequest } from "./errors-DYF4hhIc.mjs";
4
- import { u as parseCan } from "./access-BbgmsAFF.mjs";
3
+ import { r as badRequest } from "./errors-DbCKqGXp.mjs";
4
+ import { u as parseCan } from "./access-DdojoPZm.mjs";
5
5
  import { t as own } from "./own-OwgPWdmh.mjs";
6
6
  //#region src/server/actors.ts
7
7
  /** Agents whose marks the board serves at `/avatars/<name>`, for a caller to pass as an avatar. */
@@ -1,4 +1,4 @@
1
- import { Sn as Level, Tn as WrittenCan, fn as Access, mn as Can, wn as Permission } from "./routes-B6SEA9yw.mjs";
1
+ import { An as Level, Mn as Permission, Nn as WrittenCan, Sn as Can, bn as Access } from "./routes-ChGBn0K3.mjs";
2
2
  import { JWTVerifyGetKey } from "jose";
3
3
  //#region src/server/grants.d.ts
4
4
  /** Who asks, as a verified token says, in the terms grants name them by. */
@@ -1,5 +1,5 @@
1
- import { d as unauthorized, o as forbidden, r as badRequest, t as HttpError } from "./errors-DYF4hhIc.mjs";
2
- import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-BbgmsAFF.mjs";
1
+ import { d as unauthorized, o as forbidden, r as badRequest, t as HttpError } from "./errors-DbCKqGXp.mjs";
2
+ import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-DdojoPZm.mjs";
3
3
  //#region src/server/grants.ts
4
4
  /**
5
5
  * How close `principal` is to the caller, or null when it doesn't name it: `principal` for its own
@@ -132,6 +132,13 @@ const issuerName = (iss) => {
132
132
  const url = new URL(iss);
133
133
  return `${url.host}${url.pathname.replace(/\/+$/, "")}`.replace(/[%:]/g, (char) => char === "%" ? "%25" : "%3A");
134
134
  };
135
+ /**
136
+ * Whether a token's `sub` can be in a principal's ID. A `+` starts a profile in an actor's ID
137
+ * (`<principal>+claude`), and a `]` or a space ends a mention of one (`@[actor-id]`), so a `sub`
138
+ * with one would read as another workflow's profile. Its token is refused, as a host verifier's
139
+ * principal with one is: an ID is never rewritten, since messages already carry the old ones.
140
+ */
141
+ const subFits = (sub) => !/[\s+\]]/.test(sub);
135
142
  /** OIDC issuers to trust, checked: two that name the same principals can't both be. */
136
143
  function trustedIssuers(issuers) {
137
144
  const named = /* @__PURE__ */ new Map();
@@ -606,4 +613,4 @@ function hostPrincipal(value) {
606
613
  };
607
614
  }
608
615
  //#endregion
609
- export { verifiesTokens as C, grantAccess as D, explainGrants as E, verifiedIssuers as S, wroteAs as T, markVerified as _, TOKENS as a, removes as b, checkCan as c, createAuthority as d, fromTokens as f, joined as g, issuerName as h, LOGINS as i, checkGrant as l, hostPrincipal as m, GITHUB_ISSUER as n, VERCEL_ISSUER as o, grantIssuers as p, LOGIN as r, authenticates as s, DEFAULT_CAN as t, checkPrincipal as u, namesByLogin as v, workflowPath as w, trustedIssuers as x, privateHost as y };
616
+ export { verifiedIssuers as C, explainGrants as D, wroteAs as E, grantAccess as O, trustedIssuers as S, workflowPath as T, markVerified as _, TOKENS as a, removes as b, checkCan as c, createAuthority as d, fromTokens as f, joined as g, issuerName as h, LOGINS as i, checkGrant as l, hostPrincipal as m, GITHUB_ISSUER as n, VERCEL_ISSUER as o, grantIssuers as p, LOGIN as r, authenticates as s, DEFAULT_CAN as t, checkPrincipal as u, namesByLogin as v, verifiesTokens as w, subFits as x, privateHost as y };
@@ -1,7 +1,7 @@
1
- import { $ as MessageView, A as FailTaskBody, An as Actor, At as SourceJoinBody, B as InboxEntry, Bt as SyncImportBody, C as Discovery, Ct as SchedulesQuery, E as EventsQuery, Et as SchemaBody, Fn as Labels, Ft as SyncCopiesQuery, Gt as SyncedView, H as InboxNextQuery, Ht as SyncReceiptBody, I as GrantView, It as SyncCopiesView, Jt as TaskClaim, Ln as ExternalEvent, Mn as Attachment, Mt as SourceRead, N as GrantBody, Nn as Author, Nt as SourceReadQuery, O as ExplainQuery, Ot as SchemaView, Q as Me, Qt as TasksQuery, Rt as SyncFindQuery, S as DeleteBody, Sn as Level, St as ScheduleView, T as EventsPage, U as InboxPushBody, V as InboxItem, W as InboxQuery, Wt as SyncThreadView, X as MatchView, Y as LinkedQuery, Yt as TaskNeedsBody, Z as MatchesQuery, Zt as TasksPage, _ as CreateTaskBody, _t as RevokeGrantBody, a as BlockTaskBody, an as TypingBody, d as ClaimReadyTaskBody, dt as RegisterBody, et as MessagesPage, fn as Access, g as CreateGrantsBody, h as CreateChannelBody, ht as RenewTaskBody, i as AssignTaskBody, it as PostBody, k as Explanation, kt as SourceJoin, l as CancelTaskBody, ln as UploadStartBody, lt as ReactBody, m as CompleteTaskBody, mn as Can, mt as ReleaseTaskBody, n as ActorView, nn as ThreadsPage, p as ClaimTaskBody, pt as RegistrationView, q as LabelBody, rn as ThreadsQuery, s as BoardEventView, sn as UpdateGrantBody, t as AckBody, tn as ThreadView, tt as MessagesQuery, u as ChannelView, un as UploadTicket, w as EditBody, wn as Permission, x as CreatedTasksQuery, y as CreateTasksBody, yt as ScheduleBody, z as InboxAckBody, zt as SyncFindView } from "./routes-B6SEA9yw.mjs";
2
- import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-Z9-Khvvw.mjs";
3
- import { S as Mentioned, f as ProfileOption, i as ErrorOrigin, t as BoardClient } from "./client-C2T4eaXd.mjs";
4
- import { m as SyncProvider } from "./provider-Dwb_9mnu.mjs";
1
+ import { A as Discovery, An as Level, Bn as Attachment, C as CreateGrantsBody, Ct as RevokeGrantBody, E as CreateTasksBody, Ft as SourceJoin, Gn as ExternalEvent, Gt as SyncFindView, Ht as SyncCopiesView, I as ExplainQuery, It as SourceJoinBody, J as InboxEntry, Jt as SyncReceiptBody, Kt as SyncImportBody, L as Explanation, M as EditBody, Mn as Permission, Mt as SchemaBody, N as EventsPage, O as CreatedTasksQuery, Ot as ScheduleView, P as EventsQuery, Pt as SchemaView, Q as InboxQuery, R as FailTaskBody, Rn as Actor, Rt as SourceRead, S as CreateChannelBody, Sn as Can, Tt as ScheduleBody, Un as Labels, V as GrantBody, Vn as Author, Vt as SyncCopiesQuery, W as GrantView, Wt as SyncFindQuery, X as InboxNextQuery, Xt as SyncThreadView, Y as InboxItem, Z as InboxPushBody, Zt as SyncedView, _n as UploadStartBody, _t as RegisterBody, a as BlockTaskBody, at as MatchesQuery, b as ClaimTaskBody, bn as Access, bt as ReleaseTaskBody, ct as MessagesPage, d as CancelTaskBody, dn as ThreadsQuery, en as TaskClaim, f as ChannelMessagesQuery, g as ChannelsQuery, h as ChannelsPage, hn as UpdateGrantBody, ht as ReactBody, i as AssignTaskBody, in as TasksQuery, it as MatchView, k as DeleteBody, kt as SchedulesQuery, ln as ThreadView, m as ChannelView, n as ActorView, on as ThreadQuery, ot as Me, pn as TypingBody, q as InboxAckBody, rn as TasksPage, rt as LinkedQuery, s as BoardEventView, st as MessageView, t as AckBody, tn as TaskNeedsBody, tt as LabelBody, un as ThreadsPage, ut as PostBody, v as ClaimReadyTaskBody, vn as UploadTicket, w as CreateTaskBody, x as CompleteTaskBody, xt as RenewTaskBody, yt as RegistrationView, zt as SourceReadQuery } from "./routes-ChGBn0K3.mjs";
2
+ import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-C4VxPLYz.mjs";
3
+ import { S as Mentioned, f as ProfileOption, i as ErrorOrigin, t as BoardClient } from "./client-C4-r10SA.mjs";
4
+ import { m as SyncProvider } from "./provider-CGicSMdu.mjs";
5
5
  import { z } from "zod";
6
6
  //#region src/server/sandbox.d.ts
7
7
  /** How a rule matches a value: a regular expression (RE2), or the value exactly. */
@@ -131,11 +131,8 @@ type Protocol = {
131
131
  output: Me;
132
132
  };
133
133
  channels: {
134
- input: Nothing;
135
- output: {
136
- channels: ChannelView[];
137
- cursor: string;
138
- };
134
+ input: Input<typeof ChannelsQuery>;
135
+ output: ChannelsPage;
139
136
  };
140
137
  /** `created` is false for a channel that was there already, made by a post or another create. */
141
138
  createChannel: {
@@ -152,8 +149,9 @@ type Protocol = {
152
149
  cursor: string;
153
150
  };
154
151
  };
155
- messages: {
156
- input: Input<typeof MessagesQuery>;
152
+ /** One channel's messages across its threads, oldest first: the newest `limit`, or those after one of the channel's cursors. */
153
+ channelMessages: {
154
+ input: Input<typeof ChannelMessagesQuery>;
157
155
  output: MessagesPage;
158
156
  };
159
157
  threads: {
@@ -161,7 +159,7 @@ type Protocol = {
161
159
  output: ThreadsPage;
162
160
  };
163
161
  message: {
164
- input: Id;
162
+ input: Id & Input<typeof ThreadQuery>;
165
163
  output: ThreadView;
166
164
  };
167
165
  /** `mentions` says what became of each `@handle` the text typed, when it typed any: see `Mentioned`. A write that takes a text answers it the same way. */
@@ -763,7 +761,12 @@ type BoardOptions = PolicyOptions & (BackendOptions | DefaultOptions) & {
763
761
  * deployment `sync` in those channels.
764
762
  */
765
763
  sync?: Record<string, SyncProvider>;
766
- /** The board's public URL, which every token's audience must equal. Inferred from requests otherwise. */
764
+ /**
765
+ * The board's public URL, which every token's audience must equal. Inferred from requests
766
+ * otherwise only on Vercel, which routes a request to a deployment only for its own domains, and
767
+ * in development: elsewhere a request's sender chooses its Host, so a production board without
768
+ * one verifies no tokens.
769
+ */
767
770
  url?: string;
768
771
  /** The mount path, e.g. `/api/board`. Inferred from requests otherwise: the shallowest one they show. */
769
772
  basePath?: string;