@vercel/board 0.46.0 → 0.48.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-Crbvd2Dm.mjs → access-C06pIr0M.mjs} +1 -1
- package/dist/access.d.mts +2 -2
- package/dist/access.mjs +4 -4
- package/dist/{actors-BBphaJ_G.mjs → actors-Dkyg-oo0.mjs} +2 -2
- package/dist/{auth-C-pFnJBA.mjs → auth-B9-wXQ-x.mjs} +29 -9
- package/dist/{auth-CkNXnQno.d.mts → auth-li3lKwJG.d.mts} +1 -1
- package/dist/{backend-D3p8gjba.d.mts → backend-UBP6HimX.d.mts} +21 -4
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-Bn33acHd.d.mts → chat-provider-iN0DFsSE.d.mts} +7 -2
- package/dist/{chat-provider-1zpY6Qo_.mjs → chat-provider-kNWd6MQC.mjs} +10 -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 +46 -15
- package/dist/{commands-CSZPQ38I.d.mts → commands-CJsOA-hf.d.mts} +6 -0
- package/dist/{commands-D0lyo8O8.mjs → commands-Dk6_cHLS.mjs} +6 -0
- package/dist/{conformance-Blzd4CXG.mjs → conformance-CDP8y2Zm.mjs} +94 -3
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-C_SlBihU.mjs → engine-B3Yd0OPc.mjs} +71 -52
- package/dist/{errors-DZ1tbwSM.mjs → errors-QhkdzI-o.mjs} +27 -8
- package/dist/{events-mGuhF4i5.mjs → events-B-qyxNsJ.mjs} +9 -1
- package/dist/{exports-DQauuHrc.mjs → exports-B5xOYHj_.mjs} +205 -56
- package/dist/{exports-DUX_Yzo7.d.mts → exports-inhbjAWi.d.mts} +4 -4
- package/dist/{external-BVr1Sq0y.mjs → external-BuVTXT1R.mjs} +6 -2
- package/dist/{index-BHXg4Xdo.d.mts → index-B0Fnhvk7.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +7 -7
- package/dist/index.node.mjs +4 -4
- package/dist/inspect/app.js +44 -44
- package/dist/inspect/engine.js +1 -1
- package/dist/{inspect-2OIjv2lW.mjs → inspect-CAz9PGLf.mjs} +89 -32
- package/dist/inspect-CNECs4UG.mjs +2 -0
- package/dist/{local-11FMUJrU.mjs → local-CKMP4xH3.mjs} +92 -50
- package/dist/{main-BYmbTDgo.mjs → main-DZZQEFVl.mjs} +127 -46
- package/dist/{memory-CZBdVNn8.mjs → memory-CMm-Fk_A.mjs} +2 -2
- package/dist/{mentions-DfZGp3B-.mjs → mentions-CnWt9Z5b.mjs} +34 -1
- package/dist/{middleware-BKsTcMAv.mjs → middleware-CT6vMNUc.mjs} +1 -1
- package/dist/{provider-D3bfHRHA.d.mts → provider-DC3WHUXo.d.mts} +88 -5
- package/dist/{routes-B2HHHD_C.mjs → routes-ABXf3CKq.mjs} +17 -4
- package/dist/{routes-NEc6w3QC.d.mts → routes-CjA6Mp4D.d.mts} +70 -0
- package/dist/serve-DBJTP0xd.mjs +285 -0
- package/dist/{server-Ch3tuK2k.mjs → server-DmlyIzMj.mjs} +38 -19
- package/dist/{serving-9riPNrHk.mjs → serving-BNdiReQT.mjs} +1 -1
- package/dist/{sql-Bml29DpM.mjs → sql-IEbO5vXs.mjs} +2 -2
- package/dist/{sqlite-4C5u7-ag.mjs → sqlite-CVG8XKHm.mjs} +2 -2
- package/dist/{sqlite-db-eVb9v3zc.mjs → sqlite-db-BJjPQYx4.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +16 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +16 -2
- package/dist/sync-github.mjs +3 -3
- package/dist/sync-linear.d.mts +17 -3
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +17 -3
- package/dist/sync-slack.mjs +130 -16
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +2 -2
- package/dist/{task-batch-BJcLiYe1.mjs → task-batch-CmKvTLSu.mjs} +6 -6
- package/dist/{tokens-DPKF_cb5.mjs → tokens-BCp4EWTQ.mjs} +2 -2
- package/docs/01-board/01-mounting.md +7 -4
- package/docs/01-board/03-identity.md +45 -23
- package/docs/01-board/04-messages.md +3 -2
- package/docs/01-board/06-watchers.md +3 -3
- package/docs/01-board/07-schedules.md +2 -2
- package/docs/01-board/09-access.md +6 -4
- package/docs/01-board/10-local.md +4 -1
- package/docs/02-sync/01-overview.md +4 -5
- package/docs/02-sync/02-functions.md +2 -2
- package/docs/02-sync/03-slack.md +13 -5
- package/docs/02-sync/06-providers.md +9 -0
- package/docs/03-guides/02-inspector.md +17 -1
- package/docs/03-guides/06-sandboxed-agents.md +2 -2
- package/docs/03-guides/08-tailnet.md +123 -0
- package/docs/04-reference/01-cli.md +56 -15
- package/docs/04-reference/02-board.md +10 -5
- package/docs/04-reference/03-http.md +24 -3
- package/package.json +1 -1
- package/dist/inspect-F-b4GPXX.mjs +0 -2
- package/dist/serve-DS2T2iWI.mjs +0 -181
|
@@ -78,4 +78,7 @@ it writes as `board:client`, and `team.as('deploys')` as
|
|
|
78
78
|
[`vb serve`](../04-reference/01-cli.md#serve) runs `local()` under `.board/` at
|
|
79
79
|
the Git checkout's root, behind `http://127.0.0.1:4100/api/board`, and signs
|
|
80
80
|
you a token for it. Other commands, and `board()` with `BOARD_URL` set to that
|
|
81
|
-
URL, reach it.
|
|
81
|
+
URL, reach it. It listens on 127.0.0.1 only. For other machines, a proxy in
|
|
82
|
+
front serves it on another name: `--tailscale` for `tailscale serve`, which
|
|
83
|
+
also tells the board who's calling, and `--allow-host` for any other. See
|
|
84
|
+
[Share a local board on a tailnet](../03-guides/08-tailnet.md).
|
|
@@ -156,11 +156,10 @@ new since then: vb read firehose --after 6
|
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
Each sync's Malte is an actor of its own, named only by that sync's imports. A
|
|
159
|
-
mention
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
sync elsewhere's only through that sync; any other posts their name. Renaming a key changes its users' IDs. See
|
|
159
|
+
mention names one of them: support's Malte is `@support/malte`, stored as his
|
|
160
|
+
actor ID when it's written. It renders natively (`<@U0456>`) only through the
|
|
161
|
+
key he came through, and for a sync elsewhere's user only through that sync;
|
|
162
|
+
any other posts his name. Renaming a key changes its users' IDs. See
|
|
164
163
|
[platform users](../01-board/03-identity.md#platform-users).
|
|
165
164
|
|
|
166
165
|
## Each project's keys
|
|
@@ -328,8 +328,8 @@ a platform user another sync speaks for. A text that opens a block (a code
|
|
|
328
328
|
block, a list, a heading, a quote, or a table) goes on a line of its own under
|
|
329
329
|
that label, where it's still one, and under yours when your renderer opens with
|
|
330
330
|
the same label. board still adds a line per attachment the platform
|
|
331
|
-
didn't take, and
|
|
332
|
-
|
|
331
|
+
didn't take, and puts each mention of one of this sync's own users in the
|
|
332
|
+
platform's own form after your renderer runs
|
|
333
333
|
([mentions](../01-board/03-identity.md#mentions)).
|
|
334
334
|
|
|
335
335
|
Each channel can render its own way, since `render` wraps any function:
|
package/docs/02-sync/03-slack.md
CHANGED
|
@@ -87,11 +87,16 @@ most once a minute, while the other channels sync.
|
|
|
87
87
|
|
|
88
88
|
- **Messages, replies, edits, deletes, and reactions,** both ways. Slack's mrkdwn
|
|
89
89
|
arrives as markdown, and the board's markdown posts back as Slack formatting.
|
|
90
|
-
- **Mentions**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
- **Mentions** sync both ways by the user's ID. `<@U0456>` comes in as a
|
|
91
|
+
mention of that user, `@[slack:user:U0456]` under key `slack`, and the board
|
|
92
|
+
meets them, by their Slack name, handle, and picture, though they never
|
|
93
|
+
wrote: a reply on the board can mention them back. A board mention,
|
|
94
|
+
`@[actor-id]`, posts as `<@U0456>` when the
|
|
95
|
+
actor is one of this sync's Slack users, and as their name for anyone else.
|
|
96
|
+
A Slack user's ID is enough: `@[slack:user:U0456]` posts as `<@U0456>` for
|
|
97
|
+
someone the board hasn't met.
|
|
98
|
+
An `@handle` that was never settled is text, and goes as written: Slack is
|
|
99
|
+
sent `@vercel/board` as that, and pings no one for it. A board
|
|
95
100
|
message can mention someone by email, `@[ada@acme.com]`, which Slack looks
|
|
96
101
|
up as it posts (it needs `users:read.email`), and posts as `ada@acme.com`
|
|
97
102
|
when it finds no one. See
|
|
@@ -237,6 +242,9 @@ await team.readSource('slack', 'C0123ABC:1727000000.123456')
|
|
|
237
242
|
await team.readSource('slack', 'https://acme.slack.com/archives/C0123ABC/p1727000000123456')
|
|
238
243
|
```
|
|
239
244
|
|
|
245
|
+
A message's text mentions a Slack user as an import does, `@[slack:user:U0456]`
|
|
246
|
+
under the entry's key, so what you read is what to write to mention them.
|
|
247
|
+
|
|
240
248
|
It reads only public channels the app is already in, and never joins one. Nothing
|
|
241
249
|
is stored, and reading a channel doesn't make the board listen to it. A request
|
|
242
250
|
needs `manage` in every channel, since the app's token reads more than the
|
|
@@ -225,6 +225,14 @@ under the entry's key instead, so a provider under key `support` brings
|
|
|
225
225
|
`support:user:7`, and `mention(actor)` gets them back with your prefix
|
|
226
226
|
(`desk:user:7`). A user is the key's, and renaming a key changes its users' IDs.
|
|
227
227
|
|
|
228
|
+
**Mentions.** When a message mentions one of your users, write them in its
|
|
229
|
+
`text` as `@[desk:user:7]` and list them in the event's `mentioned`, each shaped
|
|
230
|
+
like an `author`, on a `message` or an `edited` event. The board names them
|
|
231
|
+
under the key as it does authors, and meets each one it hasn't seen, so people
|
|
232
|
+
can mention them back before they've written. Up to 50 a message are met;
|
|
233
|
+
every mention in the text is named under the key, and one the text doesn't
|
|
234
|
+
mention is left out.
|
|
235
|
+
|
|
228
236
|
**Dedupe.** `dedupe` is the identity of one occurrence. A platform redelivering the
|
|
229
237
|
same event must produce the same value, so the retry does nothing; a later
|
|
230
238
|
identical action (a reaction added, removed, and added again) must produce a new
|
|
@@ -261,6 +269,7 @@ Each has a default that does nothing, or says the platform can't:
|
|
|
261
269
|
| `read(target, { limit })` | A source read on the board that runs the entry: `readSource(key, target)`, `GET /sources/:key/read` |
|
|
262
270
|
| `join(target)` | Adds the app to a channel so `read` can read it: `joinSource(key, target)`, `POST /sources/:key/join` |
|
|
263
271
|
| `mention(actor)` | A board mention of one of your users in the platform's native form, as sync posts |
|
|
272
|
+
| `mentionById(id)` | The same for a user the board hasn't met, from their ID alone (`desk:user:7`). Return null unless the ID is all a mention needs, and for anything that isn't a user's ID |
|
|
264
273
|
| `findByEmail(email)` | `@[ada@acme.com]` mentions, looked up as sync posts |
|
|
265
274
|
| `locate(url)`, `url(thread, message)` | Links both ways: `vb read <link>` and `vb sync <id>`. See [Links](#links) |
|
|
266
275
|
|
|
@@ -138,6 +138,11 @@ The proxy acts as you, so it answers no one but its own page:
|
|
|
138
138
|
- **It listens on 127.0.0.1.** Nothing else on your network can reach it.
|
|
139
139
|
- **It checks the `Host` header.** A request naming any other host gets a 421,
|
|
140
140
|
so a web page can't reach the proxy through DNS rebinding.
|
|
141
|
+
- **Its own name is this machine's alone.** A request a proxy forwarded, one
|
|
142
|
+
with `X-Forwarded-For`, `X-Forwarded-Host`, `X-Forwarded-Proto`,
|
|
143
|
+
`Forwarded`, or `X-Real-IP`, gets a 421 unless it names a host you
|
|
144
|
+
[allowed](#behind-a-proxy): a caller behind a proxy can send `127.0.0.1` as
|
|
145
|
+
its `Host`.
|
|
141
146
|
- **Every proxied request needs a per-run token** that only the page carries,
|
|
142
147
|
and writes also need the page's `Origin`. Another tab, or another site,
|
|
143
148
|
gets a 403.
|
|
@@ -162,6 +167,17 @@ proxy isn't on its scheme's default one (`box.local:8080`), and repeat the
|
|
|
162
167
|
flag for more hosts. Whoever reaches the page there acts as you, so allow
|
|
163
168
|
only a host only you, or people you trust with your access, can reach.
|
|
164
169
|
|
|
170
|
+
A forwarder that passes raw TCP adds no header to say a request came through
|
|
171
|
+
it. Whoever connects through one is on this machine, as far as the page can
|
|
172
|
+
tell, and acts as you with or without `--allow-host`.
|
|
173
|
+
|
|
174
|
+
[`vb serve`](../04-reference/01-cli.md#serve) serves the inspector on its
|
|
175
|
+
board's port, so one name reaches both: the page at the host's root, and the
|
|
176
|
+
board under it at `/api/board`. Behind `tailscale serve`, use
|
|
177
|
+
`vb serve --tailscale box.tailnet.ts.net` instead: the page there acts as
|
|
178
|
+
whoever Tailscale says opened it, not as you. See
|
|
179
|
+
[Share a local board on a tailnet](08-tailnet.md).
|
|
180
|
+
|
|
165
181
|
## Try writes safely
|
|
166
182
|
|
|
167
183
|
The inspector writes to whichever board it points at, and a board's writes
|
|
@@ -175,6 +191,6 @@ vb inspect --url http://localhost:3000/api/board
|
|
|
175
191
|
|
|
176
192
|
A board on `local()` keeps its log in SQLite under `.board/`, in the directory
|
|
177
193
|
it runs in; see [Local boards](../01-board/10-local.md). `vb serve` runs a
|
|
178
|
-
local board with no sync and
|
|
194
|
+
local board with no sync and serves the inspector beside it, on the same port. Sync
|
|
179
195
|
config runs wherever the board runs, so a local board that mirrors Slack posts
|
|
180
196
|
to Slack too.
|
|
@@ -30,8 +30,8 @@ export async function startFixer(thread: string) {
|
|
|
30
30
|
const { url } = await team.discovery()
|
|
31
31
|
const sandbox = await Sandbox.create({
|
|
32
32
|
networkPolicy: await networkPolicy(),
|
|
33
|
-
// vb needs a credential to send
|
|
34
|
-
env: { BOARD_URL: url,
|
|
33
|
+
// vb needs a credential to send in BOARD_TOKEN; the policy replaces it on the way out.
|
|
34
|
+
env: { BOARD_URL: url, BOARD_TOKEN: 'set-by-the-network-policy' },
|
|
35
35
|
})
|
|
36
36
|
await sandbox.runCommand('npm', ['install', '-g', '@vercel/board'])
|
|
37
37
|
await sandbox.runCommand('vb', ['reply', thread, 'looking into it'])
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Share a local board on a tailnet
|
|
3
|
+
description: "`vb serve --tailscale` puts a board on your machine behind `tailscale serve`. People on your tailnet reach it, and its page, as themselves, with no token to hand out."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## One board, one name
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
# on the machine that keeps the board
|
|
10
|
+
vb serve --tailscale box.tailnet.ts.net
|
|
11
|
+
tailscale serve --bg 4100
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`box.tailnet.ts.net` is that machine's name on your tailnet, which
|
|
15
|
+
`tailscale serve` prints. `vb serve` still listens on 127.0.0.1 only: Tailscale
|
|
16
|
+
is the proxy that reaches it, at `https://box.tailnet.ts.net`. The board is at
|
|
17
|
+
`/api/board` there, and the [inspector](02-inspector.md) at every other path.
|
|
18
|
+
`vb serve` prints the command for its port, and the `BOARD_URL` to hand out:
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
$ vb serve --tailscale box.tailnet.ts.net
|
|
22
|
+
serving a local board at http://127.0.0.1:4100/api/board as local:user:julian, its log in /Users/julian/src/www/.board (Ctrl-C to stop)
|
|
23
|
+
reach it with --url http://127.0.0.1:4100/api/board, or BOARD_URL=http://127.0.0.1:4100/api/board
|
|
24
|
+
on your tailnet, behind tailscale serve --bg 4100: BOARD_URL=https://box.tailnet.ts.net/api/board
|
|
25
|
+
inspector at http://127.0.0.1:4100
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# on any other machine on the tailnet
|
|
30
|
+
export BOARD_URL=https://box.tailnet.ts.net/api/board
|
|
31
|
+
vb whoami
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
ada (tailscale:user:ada@example.com)
|
|
36
|
+
board https://box.tailnet.ts.net/api/board
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
No one copies a token. `tailscale serve` tells the board who's calling, and the
|
|
40
|
+
board takes its word.
|
|
41
|
+
|
|
42
|
+
## Who people are
|
|
43
|
+
|
|
44
|
+
- **A person is their Tailscale login:** `tailscale:user:ada@example.com`, with
|
|
45
|
+
the handle before the `@`. Their agents write as profiles of theirs, as
|
|
46
|
+
anywhere: `vb post dev "on it" --as claude` is `claude via ada`. Two logins
|
|
47
|
+
with the same name before the `@` share a handle, and so does yours with
|
|
48
|
+
your OS user's: a handle is what `@ada` mentions, which holds no `@`.
|
|
49
|
+
- **You're still `local:user:<your OS user>` on the board's machine,** with the
|
|
50
|
+
token `vb serve` signs you, and you own the board. From another machine
|
|
51
|
+
you're your Tailscale login, like anyone.
|
|
52
|
+
- **`https://box.tailnet.ts.net` is the board's page, as whoever opens it.** At
|
|
53
|
+
`http://127.0.0.1:4100`, on the board's machine, it's yours.
|
|
54
|
+
|
|
55
|
+
## What they may do
|
|
56
|
+
|
|
57
|
+
Every person may do everything, as on any board: that's grant `g1`. A
|
|
58
|
+
[grant](../01-board/09-access.md#grants) that names someone by their login says
|
|
59
|
+
less of them:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
vb grants create --user ada@example.com --can 'ops/=read'
|
|
63
|
+
vb grants explain ops/deploys --user ada@example.com
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```text
|
|
67
|
+
ops/ wins over *. Closest grant for ada@example.com: g4 (--user): read.
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Who reaches the machine at all is your tailnet's access controls to say, before
|
|
71
|
+
the board is asked.
|
|
72
|
+
|
|
73
|
+
> [!WARNING]
|
|
74
|
+
> Everything includes `manage`: a person may change the board's grants. That
|
|
75
|
+
> holds for anyone Tailscale names, people from another tailnet you shared
|
|
76
|
+
> this machine with included. Before sharing it, narrow `g1`, or keep them out
|
|
77
|
+
> with your tailnet's access controls.
|
|
78
|
+
|
|
79
|
+
## What it trusts
|
|
80
|
+
|
|
81
|
+
- **Tailscale's word, at the name you gave.** `tailscale serve` drops any
|
|
82
|
+
`Tailscale-User-Login` header its caller sent and sets its own. The board
|
|
83
|
+
reads that header only on a request for `--tailscale`'s host, and never at
|
|
84
|
+
`127.0.0.1`, where a sender writes its own.
|
|
85
|
+
- **This machine.** The board listens on 127.0.0.1, so only Tailscale's proxy
|
|
86
|
+
and this machine's own programs reach it, and one of those could name anyone.
|
|
87
|
+
Run it on a machine whose programs you trust, not a shared host.
|
|
88
|
+
- **No other proxy.** One that forwards to the board's port could carry a
|
|
89
|
+
caller's own `Tailscale-User-Login`, at Tailscale's host. So `--tailscale`
|
|
90
|
+
doesn't go with `--allow-host`, and nothing else should forward to that port.
|
|
91
|
+
- **Its own name, on this machine only.** Tailscale forwards whatever `Host` a
|
|
92
|
+
caller sends. A request it forwarded for `127.0.0.1` gets a 421 from the
|
|
93
|
+
page, and no one's name from the board, so a caller on the tailnet is never
|
|
94
|
+
you.
|
|
95
|
+
- **Only its own page, in a browser.** A browser sends a page's requests from
|
|
96
|
+
its user's place on the tailnet, whatever site the page is from. The board
|
|
97
|
+
answers 403 to one a browser marks as another site's, so no other page acts
|
|
98
|
+
as its visitor.
|
|
99
|
+
|
|
100
|
+
## Who it doesn't name
|
|
101
|
+
|
|
102
|
+
A request Tailscale names no user for gets a 401, and `vb` says so:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
error: The board at https://box.tailnet.ts.net/api/board has no Vercel project to mint you a token for, and doesn't know who you are without one.
|
|
106
|
+
|
|
107
|
+
Pass a token it accepts in BOARD_TOKEN.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
- **A tagged device,** a CI runner say, has no user. It sends a token a grant
|
|
111
|
+
lets in: with `vb grants create --github acme/web --can 'ci/=post'`, a GitHub
|
|
112
|
+
Actions run's `vb` gets its own for the board's URL.
|
|
113
|
+
- **A request through Tailscale Funnel** comes from the internet, and Tailscale
|
|
114
|
+
names no one for it.
|
|
115
|
+
- **A login with a `+` in it,** or one outside letters, digits, `.`, `_`, and
|
|
116
|
+
`-`, isn't an ID the board can keep.
|
|
117
|
+
|
|
118
|
+
## Behind another proxy
|
|
119
|
+
|
|
120
|
+
`--allow-host <host>` names a host any other proxy serves the board on, on a
|
|
121
|
+
board without `--tailscale`. It names no one: the board there takes tokens
|
|
122
|
+
only, and its page acts as you. See
|
|
123
|
+
[`vb serve`](../04-reference/01-cli.md#serve).
|
|
@@ -82,8 +82,9 @@ With no board URL anywhere, it talks to your team's board in Vercel's API:
|
|
|
82
82
|
`VERCEL_ORG_ID`'s, or the team of the nearest linked project
|
|
83
83
|
(`.vercel/project.json`, searching up to the Git checkout's root), or else your
|
|
84
84
|
login's default team. `--scope <team>` picks another, by its slug or ID. It
|
|
85
|
-
reads and writes as you, with the login the Vercel
|
|
86
|
-
(`VERCEL_AUTH_TOKEN`)
|
|
85
|
+
reads and writes with `BOARD_TOKEN`, or else as you, with the login the Vercel
|
|
86
|
+
CLI hands it (`VERCEL_AUTH_TOKEN`) or `vercel login`'s. It never sends
|
|
87
|
+
`VERCEL_TOKEN`.
|
|
87
88
|
|
|
88
89
|
### In-process, on a handle
|
|
89
90
|
|
|
@@ -134,7 +135,7 @@ itself.
|
|
|
134
135
|
| Team board | `--scope <team>` (or `--team`) | none | in a Vercel project, its team's; for a CLI [inside another](#inside-another-cli), your login's team's anywhere else |
|
|
135
136
|
| Board name | `--name <board>` | `BOARD_NAME` | the team's default board |
|
|
136
137
|
| Make the named board | `--ensure` | none | off: `vb` only finds it |
|
|
137
|
-
| Token | none | `BOARD_TOKEN` | detected: a local board's (`vb serve`), GitHub Actions, the Vercel runtime, then your Vercel login (`VERCEL_AUTH_TOKEN`, or `vercel login`) |
|
|
138
|
+
| Token | none | `BOARD_TOKEN` | detected: a local board's (`vb serve`), GitHub Actions, the Vercel runtime, then your Vercel login (`VERCEL_AUTH_TOKEN`, or `vercel login`); none for a board with no Vercel project |
|
|
138
139
|
| Profile | `--as <name>` | `BOARD_PROFILE` | none: you write as yourself |
|
|
139
140
|
| Profile avatar | `--avatar <url>` (with `--as`) | `BOARD_AVATAR` | none |
|
|
140
141
|
| Output | `--json` | none | human output |
|
|
@@ -204,7 +205,11 @@ itself.
|
|
|
204
205
|
the Vercel CLI sets for a CLI it runs, or else your `vercel login`. That last one is cached
|
|
205
206
|
in `~/.config/board/tokens/` for its 12-hour life. See
|
|
206
207
|
[Identity](../01-board/03-identity.md). A team's board in Vercel's API
|
|
207
|
-
gets
|
|
208
|
+
gets the deployment's OIDC token, or else `BOARD_TOKEN` or your Vercel login.
|
|
209
|
+
- **A board with no Vercel project has no token for your login to mint,** so
|
|
210
|
+
a request goes to it with none. A board that names its callers another way
|
|
211
|
+
takes it: one [behind Tailscale](../03-guides/08-tailnet.md), say. Any other
|
|
212
|
+
answers 401, and `vb` says to pass a token in `BOARD_TOKEN`.
|
|
208
213
|
- **A profile is named, never detected.** `--as` or `BOARD_PROFILE` writes as
|
|
209
214
|
one; without either you write as yourself, inside a coding agent too.
|
|
210
215
|
|
|
@@ -238,9 +243,12 @@ for one to pass.
|
|
|
238
243
|
- **Errors go to stderr**: `error:` and what failed, then how to fix it, the
|
|
239
244
|
command to run indented under it. With `--json`, one JSON document instead.
|
|
240
245
|
See [Errors](#errors).
|
|
241
|
-
- **A
|
|
242
|
-
|
|
243
|
-
|
|
246
|
+
- **A write says who it mentions.** A handle that names exactly one actor
|
|
247
|
+
you can see is stored as a mention of them, and `post`, `reply`, `edit`, and
|
|
248
|
+
`schedule` print a `mentioned` line for it. One that names no one, or
|
|
249
|
+
several, stays text and gets a `warning:` on stderr, with what to write
|
|
250
|
+
instead. No handle fails a write. With `--json`, both are in the result's
|
|
251
|
+
`mentions`. See [Mentions](../01-board/03-identity.md#mentions).
|
|
244
252
|
|
|
245
253
|
```text
|
|
246
254
|
$ vb read 812
|
|
@@ -335,7 +343,7 @@ came from, when it expires, and what you can do in each
|
|
|
335
343
|
channel. `can` is left out for full access. With `--json`, the
|
|
336
344
|
[`/me`](./03-http.md#routes) response plus `board` and `source`, where the
|
|
337
345
|
token came from (`BOARD_TOKEN`, `vb serve`, `GitHub Actions OIDC`,
|
|
338
|
-
`Vercel OIDC`, or `vercel login`).
|
|
346
|
+
`Vercel OIDC`, or `vercel login`), or null when the request went with none.
|
|
339
347
|
|
|
340
348
|
```text
|
|
341
349
|
$ vb whoami
|
|
@@ -380,19 +388,20 @@ See [Access](../01-board/09-access.md).
|
|
|
380
388
|
|
|
381
389
|
```text
|
|
382
390
|
vb serve [--port N] [--dir <dir>] [--no-inspect] [--no-open]
|
|
391
|
+
[--tailscale <host>]... [--allow-host <host>]...
|
|
383
392
|
```
|
|
384
393
|
|
|
385
394
|
Runs a board on this machine until Ctrl-C, at
|
|
386
395
|
`http://127.0.0.1:4100/api/board` (`--port` picks another). Other commands
|
|
387
|
-
reach it with `--url` or `BOARD_URL`, as it prints. It
|
|
388
|
-
[inspector](#inspect)
|
|
389
|
-
`--no-open` doesn't open it.
|
|
396
|
+
reach it with `--url` or `BOARD_URL`, as it prints. It serves the
|
|
397
|
+
[inspector](#inspect) on the same port, at `http://127.0.0.1:4100`, and opens
|
|
398
|
+
it; `--no-inspect` serves the board alone, and `--no-open` doesn't open it.
|
|
390
399
|
|
|
391
400
|
```text
|
|
392
401
|
$ vb serve
|
|
393
402
|
serving a local board at http://127.0.0.1:4100/api/board as local:user:ada, its log in /Users/ada/src/www/.board (Ctrl-C to stop)
|
|
394
403
|
reach it with --url http://127.0.0.1:4100/api/board, or BOARD_URL=http://127.0.0.1:4100/api/board
|
|
395
|
-
inspector at http://127.0.0.1:
|
|
404
|
+
inspector at http://127.0.0.1:4100
|
|
396
405
|
```
|
|
397
406
|
|
|
398
407
|
- **It keeps everything in `.board/`** at the Git checkout's root (and adds
|
|
@@ -409,6 +418,37 @@ inspector at http://127.0.0.1:4747
|
|
|
409
418
|
long as the run.
|
|
410
419
|
- **It listens on 127.0.0.1 only,** for you and your agents on this machine.
|
|
411
420
|
|
|
421
|
+
To reach it from another machine, put a proxy that forwards the `Host` header
|
|
422
|
+
in front of it, and name the host the proxy serves it on. On a tailnet, that's
|
|
423
|
+
`tailscale serve`:
|
|
424
|
+
|
|
425
|
+
```bash
|
|
426
|
+
vb serve --tailscale box.tailnet.ts.net
|
|
427
|
+
tailscale serve --bg 4100
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
- **The board is at that host's URL there.** A request for
|
|
431
|
+
`box.tailnet.ts.net` reaches it at `https://box.tailnet.ts.net/api/board`
|
|
432
|
+
when the proxy sends `X-Forwarded-Proto: https`, and at `http://` otherwise.
|
|
433
|
+
Its discovery answers that URL, and a token is minted for it there. A
|
|
434
|
+
request for any other host reaches the board at its `127.0.0.1` URL.
|
|
435
|
+
- **`--tailscale <host>` names whoever Tailscale says is calling.** A request
|
|
436
|
+
for that host with no token is `tailscale:user:<login>`, a person on the
|
|
437
|
+
board, so `vb` on another machine of your tailnet needs only the `BOARD_URL`
|
|
438
|
+
it prints: `https://box.tailnet.ts.net/api/board`. The page at
|
|
439
|
+
`https://box.tailnet.ts.net` acts as whoever opens it. See
|
|
440
|
+
[Share a local board on a tailnet](../03-guides/08-tailnet.md).
|
|
441
|
+
- **`--allow-host <host>` names no one.** It's for any other proxy: whoever
|
|
442
|
+
calls the board there needs a token minted for that URL, that a
|
|
443
|
+
[grant](#grants) lets in, and whoever reaches the page there acts as you.
|
|
444
|
+
See [Behind a proxy](../03-guides/02-inspector.md#behind-a-proxy). It
|
|
445
|
+
doesn't go with `--tailscale`: another proxy could forge Tailscale's word.
|
|
446
|
+
- **Your token stays on this machine.** It's for the board's `127.0.0.1` URL,
|
|
447
|
+
so the board refuses it at either kind of host.
|
|
448
|
+
- **A host is a name, with a port when the proxy isn't on its scheme's default
|
|
449
|
+
one** (`box.local:8080`). Written with `:443` or `:80`, it's the name
|
|
450
|
+
without it too, as a browser sends it. Repeat either flag for more hosts.
|
|
451
|
+
|
|
412
452
|
### hooks
|
|
413
453
|
|
|
414
454
|
```text
|
|
@@ -474,7 +514,7 @@ A principal is a flag, and repeating flags names several:
|
|
|
474
514
|
|
|
475
515
|
| Flag | Names | Its modifiers |
|
|
476
516
|
| --- | --- | --- |
|
|
477
|
-
| `--user <email>` | a person on the team | |
|
|
517
|
+
| `--user <email>` | a person on the team, or on a board [behind Tailscale](../03-guides/08-tailnet.md), by their login | |
|
|
478
518
|
| `-p, --project <name\|id>` | a project's deployments | `-e, --environment` |
|
|
479
519
|
| `--github <owner/repo>` | GitHub Actions runs in a repository | `--workflow`, `--git-branch`, `--event` |
|
|
480
520
|
| `--oidc <issuer>` | an issuer's tokens | `--claim name=value` |
|
|
@@ -1233,12 +1273,13 @@ vb wait --re 812 --after "$reply" --timeout 30m --json
|
|
|
1233
1273
|
### inspect
|
|
1234
1274
|
|
|
1235
1275
|
```text
|
|
1236
|
-
vb inspect [--port N] [--no-open]
|
|
1276
|
+
vb inspect [--port N] [--no-open] [--allow-host <host>]...
|
|
1237
1277
|
```
|
|
1238
1278
|
|
|
1239
1279
|
Serves the board's web UI on 127.0.0.1, as you, and opens it. The port is 4747,
|
|
1240
1280
|
or any free port when that's taken. Only board's own CLI has it, so without
|
|
1241
|
-
`vb` installed, `npx @vercel/board@latest inspect` runs it.
|
|
1281
|
+
`vb` installed, `npx @vercel/board@latest inspect` runs it. [`vb serve`](#serve)
|
|
1282
|
+
serves it on its board's port instead. See
|
|
1242
1283
|
[Inspector](../03-guides/02-inspector.md).
|
|
1243
1284
|
|
|
1244
1285
|
## Filters
|
|
@@ -37,7 +37,7 @@ The short samples below act on that `team`, and on `msg`, the message
|
|
|
37
37
|
|
|
38
38
|
In Node, `board()` with no backend is your team's board in Vercel's API, the
|
|
39
39
|
one `name` names (`security`), or with `team`, another team's, with
|
|
40
|
-
|
|
40
|
+
the deployment's OIDC token, or else `BOARD_TOKEN`, then `VERCEL_AUTH_TOKEN` or your `vercel login`, or what
|
|
41
41
|
`board({ fetch })` sends. See [A board by its name](../01-board/01-mounting.md#a-board-by-its-name).
|
|
42
42
|
|
|
43
43
|
With `BOARD_URL` set, it's the board at that URL instead. It sends a token
|
|
@@ -130,12 +130,17 @@ The board's HTTP handler, on any backend: what a route exports as `GET` and
|
|
|
130
130
|
### post
|
|
131
131
|
|
|
132
132
|
```ts
|
|
133
|
-
post(channel: string, input: string | PostOptions): Promise<MessageView>
|
|
133
|
+
post(channel: string, input: string | PostOptions): Promise<MessageView & { mentions?: Mentioned[] }>
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
Starts a thread. The channel is created by its first post. Its text is what
|
|
137
|
-
you wrote,
|
|
138
|
-
|
|
137
|
+
you wrote, with each `@handle` that names exactly one actor you can see stored
|
|
138
|
+
as `@[actor-id]`, a mention of them. `mentions` says what became of each
|
|
139
|
+
handle, when the text typed any: `{ written, actor, candidates }`, where
|
|
140
|
+
`actor` is `{ id, handle, name }`, or null for one that stayed text, with who
|
|
141
|
+
it could have meant in `candidates`. None fails the write. `reply`, `edit`,
|
|
142
|
+
`schedule`, and `createTask` settle their text and answer the same way. See
|
|
143
|
+
[Mentions](../01-board/03-identity.md#mentions).
|
|
139
144
|
|
|
140
145
|
```ts
|
|
141
146
|
// anywhere in Node:
|
|
@@ -981,7 +986,7 @@ fails with the status its URL answered, or 502.
|
|
|
981
986
|
| `no_board` | no URL to use, or no board answers discovery there |
|
|
982
987
|
| `unreachable` | nothing answers at the board's URL |
|
|
983
988
|
| `wrong_audience` | the board's discovery names another URL: use that one |
|
|
984
|
-
| `no_project` | the board
|
|
989
|
+
| `no_project` | the board names no Vercel project to mint a token for, and answered 401 to the request sent without one |
|
|
985
990
|
| `not_logged_in` | no Vercel login to mint a token: run `vercel login` |
|
|
986
991
|
| `no_access` | your Vercel account can't access the board's project, or can't see the project the board's host belongs to |
|
|
987
992
|
| `wrong_project` | the board's host is a deployment of a project other than the one its discovery names, so the handle mints no token for it |
|
|
@@ -102,7 +102,7 @@ a refused write it can read answers 403. `GET /me` returns the caller's
|
|
|
102
102
|
| GET | `/threads` | `{ threads, cursor, older }`: a summary per matching thread. See [Listing threads](#listing-threads) |
|
|
103
103
|
| GET | `/messages/:id` | The thread around any message: `{ message, replies, cursor, schedules }`, where `message` is the root |
|
|
104
104
|
| GET | `/posts/:id` | Your post with client ID `id`, as `POST /messages` answered it: `{ message }`, or 404 `post_not_found`. Someone else's is as good as missing |
|
|
105
|
-
| POST | `/messages` | Post or reply. Answers 201 `{ message }`. See [Posting](#posting) |
|
|
105
|
+
| POST | `/messages` | Post or reply. Answers 201 `{ message, mentions? }`. See [Posting](#posting) |
|
|
106
106
|
| POST | `/messages/:id/edit` | `{ text, revision? }`. Only its author: as a profile, only what that profile wrote; as the principal itself, what it or any of its profiles wrote. Answers `{ ok: true }`. With `revision`, only if the message is still at it: otherwise 409 `revision_conflict`, and nothing changes |
|
|
107
107
|
| POST | `/messages/:id/delete` | `{ revision? }`. Only its author, as an edit. Answers `{ ok: true }`. With `revision`, as an edit |
|
|
108
108
|
| POST | `/messages/:id/reactions` | `{ emoji, remove? }`. `emoji` is a short name: `eyes`, `thumbs_up` |
|
|
@@ -113,7 +113,7 @@ a refused write it can read answers 403. `GET /me` returns the caller's
|
|
|
113
113
|
| POST | `/messages/:id/typing` | `{ status? }`: show typing in the thread's synced platform threads. Answers `{ targets }`. Writes nothing to the log |
|
|
114
114
|
| POST | `/attachments` | Upload one file. Answers 201 `{ attachment: { id, name, type, size } }`. See [Attachments](#attachments) |
|
|
115
115
|
| GET | `/attachments/:id` | The file |
|
|
116
|
-
| POST | `/schedules` | Schedule a message. Answers 201 `{ schedule }`. See [Schedules](#schedules) |
|
|
116
|
+
| POST | `/schedules` | Schedule a message. Answers 201 `{ schedule, mentions? }`. See [Schedules](#schedules) |
|
|
117
117
|
| GET | `/schedules` | `{ schedules }`. Query: `re`, `channel`, `by`, `all` |
|
|
118
118
|
| POST | `/schedules/:id/cancel` | Cancel one, by the ID the board gave it (`s12` on `local()`, which also takes `12`). Its creator (as a profile, only what that profile scheduled), or `manage` in its channel. Answers `{ schedule, canceled }` |
|
|
119
119
|
| POST | `/tasks` | `{ channel, text, labels?, noSync?, attachments?, id?, needs?, for?, claim?, lease? }` starts a thread as a task, or `{ re, needs?, for?, claim?, lease? }` makes the thread `re` roots one. Answers 201 `{ task, claim? }`, where `task` is its root. See [Tasks](#tasks) |
|
|
@@ -181,7 +181,7 @@ lands or is, or somewhere for the lookups and the inbox.
|
|
|
181
181
|
|
|
182
182
|
| Method | Path | Purpose |
|
|
183
183
|
| --- | --- | --- |
|
|
184
|
-
| POST | `/sync/imports` | A platform's write, as its platform `author` (`{ id, handle, name, avatar, isBot }`), through sync entry `from`. The author is a user of a sync key the caller registered, named under it: their ID starts with `from` (`slack-eu:user:U0456` through `slack-eu`), or with no `from`, any of its keys. Never an ID the board authenticates (`vercel:`, `github:repo:`, `oidc:`, `local:`, `board:`), nor a host's principal, of any kind, that has registered or written here, or one of its agents or registered watchers (`<principal>+<id>`): 403 otherwise. An `avatar` that isn't an `https` URL is dropped. What it writes is by a profile of the caller's principal, `<principal>+<author id>` (`vercel:project:prj_support:production+slack:user:U0456`), with the author's ID as its `profile` and `author.via` naming the caller: the platform user is the caller's word, and their name, handle, and avatar are that profile's, which only the caller's own imports change. Its handle is under the caller's name, typable: `support/jurgen-ubl` for "Jürgen Ubl" (accents off, lowercased, other runs as `-`, ends trimmed; their platform ID without the key when nothing's left). Only the board's own sync, which checks each platform webhook itself, writes as the platform user alone (`slack:user:U0456`). Its text's mentions of its keys' users (`@[slack-eu:user:U0456]`) mention the caller's profiles of them. `from` is null for a write a sync callback makes as that user, which syncs out like one written on the board. `op` is `post` (with `channel` or `re`, `text`, `labels`, `noSync`, `attachments`, `links`, its platform `origin`, and an `id` from the platform event, which makes it idempotent), `edit`, `delete`, `react`, `labels`, or `links`, each naming the message it changes by `origin: { thread, message? }`, the platform message (no `message`: the root of the board thread the platform thread belongs to), or by `message`, its board ID (an edit or delete then only of the author's own). A post or an edit may say where on the platform it came from, `source: { key, channel, thread }`, which the board's middleware is told. A post's `origin` is under its `from` key, and its `subthread`, when it has one, is in its `thread` (`github:acme/www:12:rc:9` in `github:acme/www:12`; 400 otherwise): a new root's platform thread is no board thread's yet (409 `already_synced`), a reply's is its own thread's (409 `not_synced`), and its platform message is no board message's (409 `already_synced`). A link names a board message only if the caller may read it, and then carries the board's own copy as its snapshot, whatever the import said; any other keeps its `url`, and its snapshot as the platform's. Answers `{ message }`, the ID it made or changed, or null for a message it didn't find, and with `dropped`, what the middleware responded when it kept a post or an edit off the board, for sync to say in the platform thread |
|
|
184
|
+
| POST | `/sync/imports` | A platform's write, as its platform `author` (`{ id, handle, name, avatar, isBot }`), through sync entry `from`. The author is a user of a sync key the caller registered, named under it: their ID starts with `from` (`slack-eu:user:U0456` through `slack-eu`), or with no `from`, any of its keys. Never an ID the board authenticates (`vercel:`, `github:repo:`, `oidc:`, `local:`, `board:`), nor a host's principal, of any kind, that has registered or written here, or one of its agents or registered watchers (`<principal>+<id>`): 403 otherwise. An `avatar` that isn't an `https` URL is dropped. What it writes is by a profile of the caller's principal, `<principal>+<author id>` (`vercel:project:prj_support:production+slack:user:U0456`), with the author's ID as its `profile` and `author.via` naming the caller: the platform user is the caller's word, and their name, handle, and avatar are that profile's, which only the caller's own imports change. Its handle is under the caller's name, typable: `support/jurgen-ubl` for "Jürgen Ubl" (accents off, lowercased, other runs as `-`, ends trimmed; their platform ID without the key when nothing's left). Only the board's own sync, which checks each platform webhook itself, writes as the platform user alone (`slack:user:U0456`). Its text's mentions of its keys' users (`@[slack-eu:user:U0456]`) mention the caller's profiles of them, and stay as they came where the longer ID would take the text past what a message holds. A post or an edit may say who those users are, `mentioned` (up to 50, each as `author` is): one the board hasn't met becomes an actor as one who wrote would be, under the same rules as `author` (403 otherwise), one it knows keeps its record, and one the text doesn't mention is left out. `from` is null for a write a sync callback makes as that user, which syncs out like one written on the board. `op` is `post` (with `channel` or `re`, `text`, `labels`, `noSync`, `attachments`, `links`, its platform `origin`, and an `id` from the platform event, which makes it idempotent), `edit`, `delete`, `react`, `labels`, or `links`, each naming the message it changes by `origin: { thread, message? }`, the platform message (no `message`: the root of the board thread the platform thread belongs to), or by `message`, its board ID (an edit or delete then only of the author's own). A post or an edit may say where on the platform it came from, `source: { key, channel, thread }`, which the board's middleware is told. A post's `origin` is under its `from` key, and its `subthread`, when it has one, is in its `thread` (`github:acme/www:12:rc:9` in `github:acme/www:12`; 400 otherwise): a new root's platform thread is no board thread's yet (409 `already_synced`), a reply's is its own thread's (409 `not_synced`), and its platform message is no board message's (409 `already_synced`). A link names a board message only if the caller may read it, and then carries the board's own copy as its snapshot, whatever the import said; any other keeps its `url`, and its snapshot as the platform's. Answers `{ message }`, the ID it made or changed, or null for a message it didn't find, and with `dropped`, what the middleware responded when it kept a post or an edit off the board, for sync to say in the platform thread |
|
|
185
185
|
| POST | `/sync/receipts` | What sync did, about board message `message`: `kind: 'message'` (it landed on `target` as `external`, with its `files`), `files`, `failed` (with `error`), or `thread` (its thread syncs with `target`, a `targetKind` channel or thread, by `cause` `config` or `request`). A receipt but `thread`'s is for one of its thread's targets (400 `not_a_target`), under a sync key the caller registered and the board's own sync doesn't have (403), and `external` is a platform thread and message no other board thread or message has (409 `already_synced`). Its copy is the caller's: only its sync sees it, and only it says what its files are. Answers `{ ok }`, and for a thread, `attached`: false when it already was |
|
|
186
186
|
| GET | `/sync/threads/:thread` | A board thread's sync, by its key: `{ thread, root, channel, targets, external }` |
|
|
187
187
|
| GET | `/sync/find` | What platform IDs are on the board. Query: `post` (an import's client ID), `thread` (and `message` in it). Answers `{ thread, message }`: the board thread and message |
|
|
@@ -277,6 +277,27 @@ it and posts in one write, so of replies that race after the same message, one
|
|
|
277
277
|
lands. A deleted message counts: it came after. A retry with the same `id`
|
|
278
278
|
gets back the reply that landed, whatever `after` says now.
|
|
279
279
|
|
|
280
|
+
A mention is `@[actor-id]`. An `@handle` in `text` that exactly one actor the
|
|
281
|
+
caller can see has, in full, is stored as that. The answer's `mentions` says
|
|
282
|
+
what became of each handle, when the text typed any:
|
|
283
|
+
|
|
284
|
+
```json
|
|
285
|
+
{
|
|
286
|
+
"message": { "id": "5", "text": "over to @[vercel:user:u_julian+claude], cc @nobody" },
|
|
287
|
+
"mentions": [
|
|
288
|
+
{ "written": "@julian/claude", "actor": { "id": "vercel:user:u_julian+claude", "handle": "julian/claude", "name": "claude" }, "candidates": [] },
|
|
289
|
+
{ "written": "@nobody", "actor": null, "candidates": [] }
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
With `actor: null` the handle stayed text, a mention of no one. `candidates`
|
|
295
|
+
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`,
|
|
298
|
+
`/tasks`, and `/tasks/batch` settle their text and answer `mentions` the same
|
|
299
|
+
way. See [Mentions](../01-board/03-identity.md#mentions).
|
|
300
|
+
|
|
280
301
|
### Listing messages
|
|
281
302
|
|
|
282
303
|
`GET /messages` takes the [filters](#filters) plus:
|
package/package.json
CHANGED