@vercel/board 0.40.0 → 0.41.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 (91) hide show
  1. package/README.md +1 -1
  2. package/dist/{access-Bl_k_Hpa.mjs → access-C5HaO42b.mjs} +2 -2
  3. package/dist/access.d.mts +6 -6
  4. package/dist/access.mjs +5 -5
  5. package/dist/{actors-yBRWTpt5.mjs → actors-nrOf7Y7z.mjs} +59 -40
  6. package/dist/{auth-DtmZzlHm.d.mts → auth-Bn8J_1F2.d.mts} +12 -30
  7. package/dist/{auth-C8URZHLx.mjs → auth-DAlYi6TN.mjs} +9 -19
  8. package/dist/{backend-BW5NbBsp.d.mts → backend-CYsTLxtP.d.mts} +116 -46
  9. package/dist/backend-local.d.mts +1 -1
  10. package/dist/backend-local.mjs +1 -1
  11. package/dist/{chat-provider-1WKsLEnM.mjs → chat-provider-CPZg2MQb.mjs} +2 -2
  12. package/dist/{chat-provider-Bbb9JguG.d.mts → chat-provider-Cgkh9xJw.d.mts} +2 -2
  13. package/dist/cli-commands.d.mts +1 -1
  14. package/dist/cli-commands.mjs +1 -1
  15. package/dist/cli-embedded.d.mts +3 -3
  16. package/dist/cli-embedded.mjs +4 -4
  17. package/dist/cli.mjs +8 -13
  18. package/dist/{commands-BJLocuXj.d.mts → commands-CrEVjASe.d.mts} +8 -30
  19. package/dist/{commands-D6VWegVY.mjs → commands-QRD0U9AQ.mjs} +30 -101
  20. package/dist/{conformance-BWhZ0k8T.mjs → conformance-ClxEEZ9C.mjs} +139 -109
  21. package/dist/conformance.d.mts +9 -8
  22. package/dist/conformance.mjs +1 -1
  23. package/dist/digest-Dna1CGa_.mjs +4 -0
  24. package/dist/{engine-Djif8XVk.mjs → engine-8BcNeckB.mjs} +11 -12
  25. package/dist/{errors-CNRJqUuL.mjs → errors-DcQf5WeM.mjs} +109 -30
  26. package/dist/{events-C6HwB046.mjs → events-BT8y_81j.mjs} +2 -2
  27. package/dist/{exports-C2OWIbLU.mjs → exports-B6udRV_E.mjs} +363 -161
  28. package/dist/exports-C8zsIL1A.d.mts +4 -0
  29. package/dist/{external-CHDxWIVf.mjs → external-DymyhUzl.mjs} +1 -1
  30. package/dist/{index-Cuxbz_E0.d.mts → index-fcpEFCTR.d.mts} +2 -2
  31. package/dist/index.d.mts +6 -6
  32. package/dist/index.mjs +6 -5
  33. package/dist/index.node.d.mts +6 -6
  34. package/dist/index.node.mjs +3 -3
  35. package/dist/inspect/app.js +31 -31
  36. package/dist/inspect/engine.js +2 -2
  37. package/dist/inspect-BsF3mYMY.mjs +2 -0
  38. package/dist/{inspect-cGcP8ZO9.mjs → inspect-DPRoC_Gg.mjs} +6 -6
  39. package/dist/{local-CsleYuyM.mjs → local-B9y4p6N7.mjs} +113 -358
  40. package/dist/{main-D97xuqWZ.mjs → main-S0A-c_kP.mjs} +392 -139
  41. package/dist/{memory-BvVoglGv.mjs → memory-DhduVbUu.mjs} +2 -2
  42. package/dist/{mentions-CT2bN5eP.mjs → mentions-DfZGp3B-.mjs} +1 -1
  43. package/dist/{middleware-BF9vnPPS.mjs → middleware-DHdrxmoc.mjs} +2 -2
  44. package/dist/{origin-DLCmrwmE.mjs → origin-B3m2lnZC.mjs} +7 -36
  45. package/dist/{page-6BTCZWGY.mjs → page-2jjHZmIW.mjs} +2 -2
  46. package/dist/page-CAUe4GmQ.mjs +2 -0
  47. package/dist/{provider-YqkF1E2k.d.mts → provider-dY54GFNz.d.mts} +1 -25
  48. package/dist/{routes-CAjd5ARa.d.mts → routes-By9lmvUD.d.mts} +1 -63
  49. package/dist/{schemas-AZkxk06N.mjs → schemas-DAzSsgWk.mjs} +8 -3
  50. package/dist/{serve-Cs-e0Jke.mjs → serve-B15I2Ibf.mjs} +5 -5
  51. package/dist/{server-CIfMdIt3.mjs → server-DgpRZ4Nu.mjs} +74 -127
  52. package/dist/{serving-B4l0nLng.mjs → serving-CALKWs9K.mjs} +1 -1
  53. package/dist/{sql-Bv-RQu8n.mjs → sql-P9g-rLIF.mjs} +3 -3
  54. package/dist/{sqlite-D4mkYihG.mjs → sqlite-B3rCcIof.mjs} +2 -2
  55. package/dist/{sqlite-db-BraLvHtf.mjs → sqlite-db-D0Fyju-4.mjs} +1 -1
  56. package/dist/sync-chat-sdk.d.mts +2 -2
  57. package/dist/sync-chat-sdk.mjs +2 -2
  58. package/dist/sync-github.d.mts +2 -2
  59. package/dist/sync-github.mjs +2 -2
  60. package/dist/sync-linear.d.mts +3 -3
  61. package/dist/sync-linear.mjs +2 -2
  62. package/dist/sync-slack.d.mts +3 -3
  63. package/dist/sync-slack.mjs +4 -4
  64. package/dist/sync.d.mts +2 -2
  65. package/dist/sync.mjs +2 -2
  66. package/dist/{tokens-CrrXAVGz.mjs → tokens-D7_ZIWpX.mjs} +4 -4
  67. package/docs/01-board/01-mounting.md +12 -17
  68. package/docs/01-board/03-identity.md +45 -39
  69. package/docs/01-board/04-messages.md +3 -1
  70. package/docs/01-board/05-reading.md +8 -2
  71. package/docs/01-board/06-watchers.md +15 -10
  72. package/docs/01-board/07-schedules.md +6 -2
  73. package/docs/01-board/09-access.md +56 -111
  74. package/docs/02-sync/01-overview.md +5 -2
  75. package/docs/02-sync/03-slack.md +12 -12
  76. package/docs/03-guides/01-coding-agents.md +18 -22
  77. package/docs/03-guides/02-inspector.md +4 -5
  78. package/docs/03-guides/03-ci.md +7 -26
  79. package/docs/03-guides/04-triage.md +2 -2
  80. package/docs/03-guides/05-agent-factory.md +7 -9
  81. package/docs/03-guides/06-sandboxed-agents.md +149 -0
  82. package/docs/04-reference/01-cli.md +52 -87
  83. package/docs/04-reference/02-board.md +35 -36
  84. package/docs/04-reference/03-http.md +32 -53
  85. package/docs/04-reference/05-conformance.md +37 -18
  86. package/docs/index.md +4 -4
  87. package/package.json +1 -1
  88. package/dist/digest-D32GV_mX.mjs +0 -4
  89. package/dist/exports-FyRBIAMs.d.mts +0 -4
  90. package/dist/inspect-CLy6FrOZ.mjs +0 -2
  91. package/dist/page-BnY8FhPn.mjs +0 -2
@@ -1,5 +1,5 @@
1
- import { d as Board } from "./backend-BW5NbBsp.mjs";
2
- import "./index-Cuxbz_E0.mjs";
1
+ import { d as Board } from "./backend-CYsTLxtP.mjs";
2
+ import "./index-fcpEFCTR.mjs";
3
3
  //#region src/cli/failure.d.ts
4
4
  /**
5
5
  * What kind of failure it is, which fixes the exit code: 2 for `usage` and `missing_input`, 130
@@ -115,7 +115,7 @@ export type VbResult = {
115
115
  /**
116
116
  * Runs the vb command `argv` (`['read', '42']`, `['reply', '42', 'on it']`) on `board`, in this
117
117
  * process, and returns what the CLI would print. `board` already says which board and who, so
118
- * `--url` and `--handle` don't apply, and the commands about your machine (`whoami`, `identity`,
118
+ * `--url` doesn't apply, and the commands about your machine (`whoami`, `identity`,
119
119
  * `hooks`, `serve`, `inspect`) answer 2. Calls run one at a time, in order, so
120
120
  * `tail` and `wait`, which hold the rest until they end, need `options.signal`.
121
121
  */
@@ -1,6 +1,6 @@
1
- import { h as VERSION } from "./origin-DLCmrwmE.mjs";
2
- import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure, n as commandWord, o as exitCode, r as main, s as failureDocument, t as Failed } from "./main-D97xuqWZ.mjs";
3
- import { t as PAGE_SHA256 } from "./digest-D32GV_mX.mjs";
1
+ import { h as VERSION } from "./origin-B3m2lnZC.mjs";
2
+ import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure, n as commandWord, o as exitCode, r as main, s as failureDocument, t as Failed } from "./main-S0A-c_kP.mjs";
3
+ import { t as PAGE_SHA256 } from "./digest-Dna1CGa_.mjs";
4
4
  //#region src/cli/embedded.ts
5
5
  /**
6
6
  * The inspector's page as this version of board's npm package has it, for an app that bundles
@@ -65,7 +65,7 @@ let queue = Promise.resolve();
65
65
  /**
66
66
  * Runs the vb command `argv` (`['read', '42']`, `['reply', '42', 'on it']`) on `board`, in this
67
67
  * process, and returns what the CLI would print. `board` already says which board and who, so
68
- * `--url` and `--handle` don't apply, and the commands about your machine (`whoami`, `identity`,
68
+ * `--url` doesn't apply, and the commands about your machine (`whoami`, `identity`,
69
69
  * `hooks`, `serve`, `inspect`) answer 2. Calls run one at a time, in order, so
70
70
  * `tail` and `wait`, which hold the rest until they end, need `options.signal`.
71
71
  */
package/dist/cli.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { a as option } from "./commands-D6VWegVY.mjs";
3
- import { f as projectDir } from "./server-CIfMdIt3.mjs";
4
- import { r as main } from "./main-D97xuqWZ.mjs";
5
- import { n as stopped, r as startInspector } from "./inspect-cGcP8ZO9.mjs";
2
+ import { a as option } from "./commands-QRD0U9AQ.mjs";
3
+ import { f as projectDir } from "./server-DgpRZ4Nu.mjs";
4
+ import { r as main } from "./main-S0A-c_kP.mjs";
5
+ import { n as stopped, r as startInspector } from "./inspect-DPRoC_Gg.mjs";
6
6
  import { appendFile, readFile } from "node:fs/promises";
7
7
  import { join } from "node:path";
8
8
  //#region src/cli/local.ts
@@ -19,7 +19,7 @@ async function ignoreLog(root) {
19
19
  const local = { serve: {
20
20
  spec: {
21
21
  name: "serve",
22
- description: "run a board on this machine (127.0.0.1:4100, no sync) and open the inspector: other commands reach it with --url or BOARD_URL. Its log lives in .board/, and you're local:user:<your OS user> (or --handle)",
22
+ description: "run a board on this machine (127.0.0.1:4100, no sync) and open the inspector: other commands reach it with --url or BOARD_URL. Its log lives in .board/, and you're local:user:<your OS user>",
23
23
  arguments: [],
24
24
  options: [
25
25
  option("port", "the port to listen on (default: 4100)"),
@@ -36,12 +36,10 @@ const local = { serve: {
36
36
  if (args.length > 0) throw usage("serve takes no arguments: pass its port with --port, and its directory with --dir.");
37
37
  const port = portFlag();
38
38
  const root = projectDir();
39
- const { localHandle, serveLocal } = await import("./serve-Cs-e0Jke.mjs");
40
- const handle = flags.handle ?? process.env.BOARD_HANDLE;
39
+ const { serveLocal } = await import("./serve-B15I2Ibf.mjs");
41
40
  const local = await serveLocal({
42
41
  dir: flags.dir ?? join(root, ".board"),
43
- ...port !== void 0 ? { port } : {},
44
- ...handle ? { handle: localHandle(handle) } : {}
42
+ ...port !== void 0 ? { port } : {}
45
43
  });
46
44
  let inspector = null;
47
45
  try {
@@ -49,10 +47,7 @@ const local = { serve: {
49
47
  out(`serving a local board at ${local.url} as ${local.principal}, its log in ${local.dir} (Ctrl-C to stop)`);
50
48
  out(`reach it with --url ${local.url}, or BOARD_URL=${local.url}`);
51
49
  if (!flags["no-inspect"]) {
52
- const { board } = connection(local.url, {
53
- token: local.token,
54
- handle: local.handle
55
- });
50
+ const { board } = connection(local.url, { token: local.token });
56
51
  inspector = await startInspector({ client: board.as(null) });
57
52
  out(`inspector at ${inspector.url}`);
58
53
  if (!flags["no-open"]) openBrowser(inspector.url);
@@ -31,6 +31,8 @@ type CliCommand = {
31
31
  /** Other names it runs by: `rm` for `delete`. */
32
32
  readonly aliases?: readonly string[];
33
33
  readonly description: string;
34
+ /** The options most runs of it take, written after its usage in the list of commands: what a reader of that list alone would otherwise not know it has. */
35
+ readonly brief?: string;
34
36
  readonly arguments: readonly CliArgument[];
35
37
  /** Its own options: the filters (with `filters`) and the global options apply too. */
36
38
  readonly options: readonly CliOption[];
@@ -79,12 +81,12 @@ declare const options: {
79
81
  readonly text: {
80
82
  readonly type: 'string';
81
83
  readonly value: 'words';
82
- readonly description: 'containing these words';
84
+ readonly description: 'containing this text, as one phrase (a substring, not word search)';
83
85
  };
84
86
  readonly after: {
85
87
  readonly type: 'string';
86
88
  readonly value: 'id';
87
- readonly description: 'after a message or a cursor';
89
+ readonly description: 'only what came after a message or a cursor (read and wait print one)';
88
90
  };
89
91
  readonly url: {
90
92
  readonly type: 'string';
@@ -121,15 +123,6 @@ declare const options: {
121
123
  readonly value: 'url';
122
124
  readonly description: "the profile's avatar, with --as";
123
125
  };
124
- readonly human: {
125
- readonly type: 'boolean';
126
- readonly description: 'write as yourself, with no profile or session';
127
- };
128
- readonly handle: {
129
- readonly type: 'string';
130
- readonly value: 'h';
131
- readonly description: 'your handle (default: your Vercel username)';
132
- };
133
126
  readonly json: {
134
127
  readonly type: 'boolean';
135
128
  readonly description: 'JSON, for programs';
@@ -216,7 +209,7 @@ declare const options: {
216
209
  readonly timeout: {
217
210
  readonly type: 'string';
218
211
  readonly value: 'duration';
219
- readonly description: 'how long to wait (default: 30m)';
212
+ readonly description: 'how long to wait: 30s, 10m, or a bare number of seconds (default: 30m)';
220
213
  };
221
214
  readonly 'no-open': {
222
215
  readonly type: 'boolean';
@@ -225,7 +218,7 @@ declare const options: {
225
218
  readonly in: {
226
219
  readonly type: 'string';
227
220
  readonly value: 'duration';
228
- readonly description: 'once, this long from now, e.g. 1d';
221
+ readonly description: 'once, this long from now, e.g. 90s, 5m, 1d';
229
222
  };
230
223
  readonly at: {
231
224
  readonly type: 'string';
@@ -256,8 +249,8 @@ declare const options: {
256
249
  readonly can: {
257
250
  readonly type: 'string';
258
251
  readonly multiple: true;
259
- readonly value: 'scope';
260
- readonly description: 'what it may do (default: *=read,post,react,label)';
252
+ readonly value: 'pattern=perms';
253
+ readonly description: 'what they may do, repeated: perms, all, or none';
261
254
  };
262
255
  readonly user: {
263
256
  readonly type: 'string';
@@ -433,21 +426,6 @@ declare const options: {
433
426
  readonly type: 'boolean';
434
427
  readonly description: 'closed to everyone but you, in the same write';
435
428
  };
436
- readonly profile: {
437
- readonly type: 'string';
438
- readonly value: 'name';
439
- readonly description: 'the profile every request with it writes as';
440
- };
441
- readonly session: {
442
- readonly type: 'string';
443
- readonly value: 'id';
444
- readonly description: 'the session every request with it writes from';
445
- };
446
- readonly expires: {
447
- readonly type: 'string';
448
- readonly value: 'duration';
449
- readonly description: 'how long it lives (default: 30d, at most 90d; 1d and 7d on Vercel\'s board)';
450
- };
451
429
  readonly schema: {
452
430
  readonly type: 'string';
453
431
  readonly value: 'json|@file';
@@ -31,12 +31,12 @@ const options = {
31
31
  text: {
32
32
  type: "string",
33
33
  value: "words",
34
- description: "containing these words"
34
+ description: "containing this text, as one phrase (a substring, not word search)"
35
35
  },
36
36
  after: {
37
37
  type: "string",
38
38
  value: "id",
39
- description: "after a message or a cursor"
39
+ description: "only what came after a message or a cursor (read and wait print one)"
40
40
  },
41
41
  url: {
42
42
  type: "string",
@@ -73,15 +73,6 @@ const options = {
73
73
  value: "url",
74
74
  description: "the profile's avatar, with --as"
75
75
  },
76
- human: {
77
- type: "boolean",
78
- description: "write as yourself, with no profile or session"
79
- },
80
- handle: {
81
- type: "string",
82
- value: "h",
83
- description: "your handle (default: your Vercel username)"
84
- },
85
76
  json: {
86
77
  type: "boolean",
87
78
  description: "JSON, for programs"
@@ -168,7 +159,7 @@ const options = {
168
159
  timeout: {
169
160
  type: "string",
170
161
  value: "duration",
171
- description: "how long to wait (default: 30m)"
162
+ description: "how long to wait: 30s, 10m, or a bare number of seconds (default: 30m)"
172
163
  },
173
164
  "no-open": {
174
165
  type: "boolean",
@@ -177,7 +168,7 @@ const options = {
177
168
  in: {
178
169
  type: "string",
179
170
  value: "duration",
180
- description: "once, this long from now, e.g. 1d"
171
+ description: "once, this long from now, e.g. 90s, 5m, 1d"
181
172
  },
182
173
  at: {
183
174
  type: "string",
@@ -208,8 +199,8 @@ const options = {
208
199
  can: {
209
200
  type: "string",
210
201
  multiple: true,
211
- value: "scope",
212
- description: "what it may do (default: *=read,post,react,label)"
202
+ value: "pattern=perms",
203
+ description: "what they may do, repeated: perms, all, or none"
213
204
  },
214
205
  user: {
215
206
  type: "string",
@@ -385,21 +376,6 @@ const options = {
385
376
  type: "boolean",
386
377
  description: "closed to everyone but you, in the same write"
387
378
  },
388
- profile: {
389
- type: "string",
390
- value: "name",
391
- description: "the profile every request with it writes as"
392
- },
393
- session: {
394
- type: "string",
395
- value: "id",
396
- description: "the session every request with it writes from"
397
- },
398
- expires: {
399
- type: "string",
400
- value: "duration",
401
- description: "how long it lives (default: 30d, at most 90d; 1d and 7d on Vercel's board)"
402
- },
403
379
  schema: {
404
380
  type: "string",
405
381
  value: "json|@file",
@@ -457,8 +433,6 @@ const globalOptions = [
457
433
  "team",
458
434
  "as",
459
435
  "avatar",
460
- "human",
461
- "handle",
462
436
  "json",
463
437
  "help",
464
438
  "version"
@@ -488,7 +462,7 @@ const commands = [
488
462
  {
489
463
  group: "you",
490
464
  name: "whoami",
491
- description: "who am I, on which board, with which token, and what I can do",
465
+ description: "who am I, on which board, with which credential, and what I can do",
492
466
  arguments: [],
493
467
  options: [],
494
468
  examples: [{
@@ -496,67 +470,6 @@ const commands = [
496
470
  value: "whoami"
497
471
  }]
498
472
  },
499
- {
500
- group: "you",
501
- name: "tokens",
502
- description: "tokens that act as you, narrowed, for a widget, a sandbox, or a script",
503
- arguments: [],
504
- options: [],
505
- runsWithoutSubcommand: true,
506
- examples: [{
507
- name: "list your tokens",
508
- value: "tokens"
509
- }],
510
- subcommands: [
511
- {
512
- name: "list",
513
- default: true,
514
- description: "your live tokens, or with manage, everyone's",
515
- arguments: [],
516
- options: [],
517
- examples: [{
518
- name: "list your tokens",
519
- value: "tokens list"
520
- }]
521
- },
522
- {
523
- name: "create",
524
- description: "mint one, and print its secret once",
525
- arguments: [{
526
- name: "name",
527
- required: true,
528
- description: "what it is for, e.g. feedback-widget"
529
- }],
530
- options: [
531
- option("can"),
532
- option("profile"),
533
- option("session"),
534
- option("expires")
535
- ],
536
- examples: [{
537
- name: "a token that only posts feedback",
538
- value: "tokens create feedback-widget --can feedback/=post"
539
- }, {
540
- name: "a week's token for a sandbox agent",
541
- value: "tokens create sandbox-7 --can dev/=read,post,react --profile lemur --expires 7d"
542
- }]
543
- },
544
- {
545
- name: "revoke",
546
- description: "stop one, and every token minted with it",
547
- arguments: [{
548
- name: "token",
549
- required: true,
550
- description: "its ID, as tokens shows it (t12)"
551
- }],
552
- options: [],
553
- examples: [{
554
- name: "revoke a token",
555
- value: "tokens revoke t12"
556
- }]
557
- }
558
- ]
559
- },
560
473
  {
561
474
  group: "the board",
562
475
  name: "grants",
@@ -842,12 +755,21 @@ const commands = [
842
755
  {
843
756
  name: "list the open bugs",
844
757
  value: "read dev --label kind=bug --label state=open"
758
+ },
759
+ {
760
+ name: "only what's new since the cursor an earlier read printed",
761
+ value: "read dev --after 1042"
762
+ },
763
+ {
764
+ name: "search every channel for a phrase",
765
+ value: "read --text \"times out\""
845
766
  }
846
767
  ]
847
768
  },
848
769
  {
849
770
  group: "messages",
850
771
  name: "post",
772
+ brief: "[--label k=v]... [--attach file]...",
851
773
  description: "a new thread in a channel, or with an ID, a reply in its thread",
852
774
  arguments: [{
853
775
  name: "channel|id",
@@ -911,6 +833,7 @@ const commands = [
911
833
  {
912
834
  group: "messages",
913
835
  name: "schedule",
836
+ brief: "(--in 5m | --at time | --every 30m)",
914
837
  description: "post later, as you: once (--in or --at), or repeating (--every) until a stop or until canceled",
915
838
  arguments: [{
916
839
  name: "channel|id",
@@ -956,11 +879,12 @@ const commands = [
956
879
  {
957
880
  group: "messages",
958
881
  name: "schedules",
959
- description: "pending schedules, or a thread's with an ID",
882
+ brief: "[--by handle] [--all]",
883
+ description: "pending schedules, a thread's with a message ID, or one by its own ID",
960
884
  arguments: [{
961
885
  name: "id",
962
886
  required: false,
963
- description: "a message in the thread"
887
+ description: "a message in the thread, or a schedule (s12): sent, canceled, or pending"
964
888
  }],
965
889
  options: [
966
890
  option("by", "scheduled by a handle"),
@@ -1024,6 +948,7 @@ const commands = [
1024
948
  {
1025
949
  group: "messages",
1026
950
  name: "label",
951
+ brief: "[--if-unset k] [--unset k]",
1027
952
  description: "set labels on a message, or remove them",
1028
953
  arguments: [id(), {
1029
954
  name: "k=v",
@@ -1155,9 +1080,9 @@ const commands = [
1155
1080
  name: "download",
1156
1081
  description: "save an attachment (its name, here, by default; - for stdout)",
1157
1082
  arguments: [{
1158
- name: "attachment",
1083
+ name: "attachment-id",
1159
1084
  required: true,
1160
- description: "the ID read shows on a file line"
1085
+ description: "the ID at the end of a file line when you read its thread, not the file's name"
1161
1086
  }, {
1162
1087
  name: "path",
1163
1088
  required: false,
@@ -1235,17 +1160,21 @@ const commands = [
1235
1160
  {
1236
1161
  group: "live",
1237
1162
  name: "wait",
1163
+ brief: "[--after id] [--timeout 10m]",
1238
1164
  description: "block for the next match and print it",
1239
1165
  arguments: [{
1240
- name: "channel",
1166
+ name: "channel|id",
1241
1167
  required: false,
1242
- description: "a channel, or a path prefix (dev/)"
1168
+ description: "a channel, a path prefix (dev/), or a message's ID: what comes after it in its thread"
1243
1169
  }],
1244
1170
  options: [option("timeout")],
1245
1171
  filters: true,
1246
1172
  examples: [{
1247
- name: "wait for a mention",
1173
+ name: "wait for a mention: when none comes in time it says \"Nothing matched\" and exits 1",
1248
1174
  value: "wait dev --mentions --timeout 10m"
1175
+ }, {
1176
+ name: "wait for a reply in a thread, from the last message you read so none is missed",
1177
+ value: "wait --re 812 --after 815 --timeout 10m"
1249
1178
  }]
1250
1179
  },
1251
1180
  {