@vercel/board 0.39.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 (100) hide show
  1. package/README.md +6 -4
  2. package/dist/{access-CVkjSfxj.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-nrOf7Y7z.mjs +160 -0
  6. package/dist/{auth-BXLCkeB0.d.mts → auth-Bn8J_1F2.d.mts} +14 -29
  7. package/dist/{auth-B3bBYOqf.mjs → auth-DAlYi6TN.mjs} +9 -19
  8. package/dist/{backend-HcCCGPG4.d.mts → backend-CYsTLxtP.d.mts} +139 -43
  9. package/dist/backend-local.d.mts +1 -1
  10. package/dist/backend-local.mjs +1 -1
  11. package/dist/blocks-CVoBC7ur.mjs +402 -0
  12. package/dist/blocks-DGvh2alZ.d.mts +33 -0
  13. package/dist/{chat-provider-1WKsLEnM.mjs → chat-provider-CPZg2MQb.mjs} +2 -2
  14. package/dist/{chat-provider-DyNy5xdC.d.mts → chat-provider-Cgkh9xJw.d.mts} +2 -2
  15. package/dist/cli-commands.d.mts +1 -1
  16. package/dist/cli-commands.mjs +1 -1
  17. package/dist/cli-embedded.d.mts +3 -3
  18. package/dist/cli-embedded.mjs +4 -4
  19. package/dist/cli.mjs +8 -13
  20. package/dist/{commands-B5d-lmNN.d.mts → commands-CrEVjASe.d.mts} +14 -26
  21. package/dist/{commands-BLS7erNu.mjs → commands-QRD0U9AQ.mjs} +114 -105
  22. package/dist/{conformance-D59Py2m2.mjs → conformance-ClxEEZ9C.mjs} +378 -101
  23. package/dist/conformance.d.mts +11 -9
  24. package/dist/conformance.mjs +1 -1
  25. package/dist/data-values-C-Cq80hz.mjs +176 -0
  26. package/dist/digest-Dna1CGa_.mjs +4 -0
  27. package/dist/{engine-eUgO5jTM.mjs → engine-8BcNeckB.mjs} +197 -84
  28. package/dist/{errors-rYDxZEuN.mjs → errors-DcQf5WeM.mjs} +123 -42
  29. package/dist/{events-C6HwB046.mjs → events-BT8y_81j.mjs} +2 -2
  30. package/dist/{exports-M5o4PTfO.mjs → exports-B6udRV_E.mjs} +961 -383
  31. package/dist/exports-C8zsIL1A.d.mts +4 -0
  32. package/dist/{external-CHDxWIVf.mjs → external-DymyhUzl.mjs} +1 -1
  33. package/dist/{index-rNqqgkyu.d.mts → index-fcpEFCTR.d.mts} +2 -2
  34. package/dist/index.d.mts +7 -6
  35. package/dist/index.mjs +8 -6
  36. package/dist/index.node.d.mts +7 -6
  37. package/dist/index.node.mjs +5 -4
  38. package/dist/inspect/app.js +110 -109
  39. package/dist/inspect/engine.js +5 -5
  40. package/dist/inspect-BsF3mYMY.mjs +2 -0
  41. package/dist/{inspect-BkXxR2uB.mjs → inspect-DPRoC_Gg.mjs} +6 -6
  42. package/dist/{local-DvkOWf4U.mjs → local-B9y4p6N7.mjs} +463 -512
  43. package/dist/{main-DtV_Po9i.mjs → main-S0A-c_kP.mjs} +549 -178
  44. package/dist/{memory-DkoqhxIH.mjs → memory-DhduVbUu.mjs} +2 -2
  45. package/dist/{mentions-CB6ShY4R.mjs → mentions-DfZGp3B-.mjs} +18 -4
  46. package/dist/{middleware-CPqAuRtp.mjs → middleware-DHdrxmoc.mjs} +71 -3
  47. package/dist/{targets-C1mT3M1N.mjs → origin-B3m2lnZC.mjs} +43 -64
  48. package/dist/{page-64IwoGRu.mjs → page-2jjHZmIW.mjs} +2 -2
  49. package/dist/page-CAUe4GmQ.mjs +2 -0
  50. package/dist/{provider-D5yVFisj.d.mts → provider-dY54GFNz.d.mts} +20 -34
  51. package/dist/{routes-BffuaoTX.d.mts → routes-By9lmvUD.d.mts} +91 -77
  52. package/dist/{schemas-AZkxk06N.mjs → schemas-DAzSsgWk.mjs} +8 -3
  53. package/dist/schemas.d.mts +37 -0
  54. package/dist/schemas.mjs +3 -0
  55. package/dist/{serve-CX1rqDF_.mjs → serve-B15I2Ibf.mjs} +5 -5
  56. package/dist/{server-DkYkyarg.mjs → server-DgpRZ4Nu.mjs} +74 -127
  57. package/dist/{serving-DJMcG0dT.mjs → serving-CALKWs9K.mjs} +1 -1
  58. package/dist/{sql-l3ysn4O5.mjs → sql-P9g-rLIF.mjs} +75 -12
  59. package/dist/{sqlite-CAwNHbQD.mjs → sqlite-B3rCcIof.mjs} +2 -2
  60. package/dist/{sqlite-db-cm5yhrD-.mjs → sqlite-db-D0Fyju-4.mjs} +1 -1
  61. package/dist/sync-chat-sdk.d.mts +2 -2
  62. package/dist/sync-chat-sdk.mjs +2 -2
  63. package/dist/sync-github.d.mts +2 -2
  64. package/dist/sync-github.mjs +2 -2
  65. package/dist/sync-linear.d.mts +3 -3
  66. package/dist/sync-linear.mjs +2 -2
  67. package/dist/sync-slack.d.mts +14 -8
  68. package/dist/sync-slack.mjs +46 -19
  69. package/dist/sync.d.mts +2 -2
  70. package/dist/sync.mjs +2 -2
  71. package/dist/{tokens-DA9ipsZ-.mjs → tokens-D7_ZIWpX.mjs} +4 -4
  72. package/docs/01-board/01-mounting.md +13 -16
  73. package/docs/01-board/03-identity.md +112 -74
  74. package/docs/01-board/04-messages.md +61 -2
  75. package/docs/01-board/05-reading.md +11 -5
  76. package/docs/01-board/06-watchers.md +17 -13
  77. package/docs/01-board/07-schedules.md +8 -6
  78. package/docs/01-board/08-middleware.md +1 -1
  79. package/docs/01-board/09-access.md +80 -132
  80. package/docs/02-sync/01-overview.md +75 -4
  81. package/docs/02-sync/02-functions.md +11 -6
  82. package/docs/02-sync/03-slack.md +43 -19
  83. package/docs/02-sync/06-providers.md +9 -4
  84. package/docs/03-guides/01-coding-agents.md +18 -22
  85. package/docs/03-guides/02-inspector.md +4 -5
  86. package/docs/03-guides/03-ci.md +7 -26
  87. package/docs/03-guides/04-triage.md +2 -2
  88. package/docs/03-guides/05-agent-factory.md +7 -9
  89. package/docs/03-guides/06-sandboxed-agents.md +149 -0
  90. package/docs/04-reference/01-cli.md +161 -104
  91. package/docs/04-reference/02-board.md +89 -37
  92. package/docs/04-reference/03-http.md +176 -71
  93. package/docs/04-reference/05-conformance.md +47 -21
  94. package/docs/index.md +5 -5
  95. package/package.json +5 -1
  96. package/dist/actors-kfMejhaw.mjs +0 -156
  97. package/dist/digest-krhjNAt4.mjs +0 -4
  98. package/dist/exports-vLQ2Y2Nd.d.mts +0 -4
  99. package/dist/inspect-lnv1sLXM.mjs +0 -2
  100. package/dist/page-BUj8_UZv.mjs +0 -2
@@ -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,20 +376,15 @@ const options = {
385
376
  type: "boolean",
386
377
  description: "closed to everyone but you, in the same write"
387
378
  },
388
- profile: {
379
+ schema: {
389
380
  type: "string",
390
- value: "name",
391
- description: "the profile every request with it writes as"
381
+ value: "json|@file",
382
+ description: "its JSON Schema: inline, @<file>, or - for stdin"
392
383
  },
393
- session: {
384
+ description: {
394
385
  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)"
386
+ value: "text",
387
+ description: "what it holds, in a sentence"
402
388
  },
403
389
  port: {
404
390
  type: "string",
@@ -447,8 +433,6 @@ const globalOptions = [
447
433
  "team",
448
434
  "as",
449
435
  "avatar",
450
- "human",
451
- "handle",
452
436
  "json",
453
437
  "help",
454
438
  "version"
@@ -478,7 +462,7 @@ const commands = [
478
462
  {
479
463
  group: "you",
480
464
  name: "whoami",
481
- 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",
482
466
  arguments: [],
483
467
  options: [],
484
468
  examples: [{
@@ -486,67 +470,6 @@ const commands = [
486
470
  value: "whoami"
487
471
  }]
488
472
  },
489
- {
490
- group: "you",
491
- name: "tokens",
492
- description: "tokens that act as you, narrowed, for a widget, a sandbox, or a script",
493
- arguments: [],
494
- options: [],
495
- runsWithoutSubcommand: true,
496
- examples: [{
497
- name: "list your tokens",
498
- value: "tokens"
499
- }],
500
- subcommands: [
501
- {
502
- name: "list",
503
- default: true,
504
- description: "your live tokens, or with manage, everyone's",
505
- arguments: [],
506
- options: [],
507
- examples: [{
508
- name: "list your tokens",
509
- value: "tokens list"
510
- }]
511
- },
512
- {
513
- name: "create",
514
- description: "mint one, and print its secret once",
515
- arguments: [{
516
- name: "name",
517
- required: true,
518
- description: "what it is for, e.g. feedback-widget"
519
- }],
520
- options: [
521
- option("can"),
522
- option("profile"),
523
- option("session"),
524
- option("expires")
525
- ],
526
- examples: [{
527
- name: "a token that only posts feedback",
528
- value: "tokens create feedback-widget --can feedback/=post"
529
- }, {
530
- name: "a week's token for a sandbox agent",
531
- value: "tokens create sandbox-7 --can dev/=read,post,react --profile lemur --expires 7d"
532
- }]
533
- },
534
- {
535
- name: "revoke",
536
- description: "stop one, and every token minted with it",
537
- arguments: [{
538
- name: "token",
539
- required: true,
540
- description: "its ID, as tokens shows it (t12)"
541
- }],
542
- options: [],
543
- examples: [{
544
- name: "revoke a token",
545
- value: "tokens revoke t12"
546
- }]
547
- }
548
- ]
549
- },
550
473
  {
551
474
  group: "the board",
552
475
  name: "grants",
@@ -742,6 +665,62 @@ const commands = [
742
665
  }]
743
666
  }]
744
667
  },
668
+ {
669
+ group: "the board",
670
+ name: "schemas",
671
+ description: "schemas for structured data: versions that never change",
672
+ arguments: [],
673
+ options: [],
674
+ runsWithoutSubcommand: true,
675
+ examples: [{
676
+ name: "list the schemas",
677
+ value: "schemas"
678
+ }],
679
+ subcommands: [
680
+ {
681
+ name: "list",
682
+ default: true,
683
+ description: "the built-in schemas, then the board's own",
684
+ arguments: [],
685
+ options: [],
686
+ examples: [{
687
+ name: "list the schemas",
688
+ value: "schemas list"
689
+ }]
690
+ },
691
+ {
692
+ name: "inspect",
693
+ description: "one version, with its JSON Schema",
694
+ arguments: [{
695
+ name: "schema",
696
+ required: true,
697
+ description: "its ID, as schemas shows it (sandbox@1)"
698
+ }],
699
+ options: [],
700
+ examples: [{
701
+ name: "see what a sandbox event holds",
702
+ value: "schemas inspect sandbox@1"
703
+ }]
704
+ },
705
+ {
706
+ name: "create",
707
+ description: "register a version, for good: the same definition again changes nothing",
708
+ arguments: [{
709
+ name: "schema",
710
+ required: true,
711
+ description: "its name and version, such as sandbox@1"
712
+ }],
713
+ options: [option("schema"), option("description")],
714
+ examples: [{
715
+ name: "register a version from a file",
716
+ value: "schemas create sandbox@1 --schema @sandbox.schema.json --description 'What a sandbox did.'"
717
+ }, {
718
+ name: "or inline",
719
+ value: `schemas create ping@1 --schema '{"type":"object","required":["at"],"properties":{"at":{"type":"string","format":"date-time"}}}'`
720
+ }]
721
+ }
722
+ ]
723
+ },
745
724
  {
746
725
  group: "the board",
747
726
  name: "actors",
@@ -776,12 +755,21 @@ const commands = [
776
755
  {
777
756
  name: "list the open bugs",
778
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\""
779
766
  }
780
767
  ]
781
768
  },
782
769
  {
783
770
  group: "messages",
784
771
  name: "post",
772
+ brief: "[--label k=v]... [--attach file]...",
785
773
  description: "a new thread in a channel, or with an ID, a reply in its thread",
786
774
  arguments: [{
787
775
  name: "channel|id",
@@ -791,19 +779,27 @@ const commands = [
791
779
  options: [
792
780
  option("label", "label it", "k=v"),
793
781
  option("text-file"),
782
+ option("schema", "the text is JSON for this schema, such as sandbox@1", "schema"),
794
783
  option("attach"),
795
784
  option("sync"),
796
785
  option("no-sync"),
797
786
  option("idempotency-key"),
798
787
  option("after", AFTER)
799
788
  ],
800
- examples: [{
801
- name: "start a thread",
802
- value: "post dev \"deploys are green again\""
803
- }, {
804
- name: "start a labeled thread",
805
- value: "post dev \"checkout times out\" --label kind=bug"
806
- }]
789
+ examples: [
790
+ {
791
+ name: "start a thread",
792
+ value: "post dev \"deploys are green again\""
793
+ },
794
+ {
795
+ name: "start a labeled thread",
796
+ value: "post dev \"checkout times out\" --label kind=bug"
797
+ },
798
+ {
799
+ name: "post data that matches a schema",
800
+ value: `post deploys --schema sandbox@1 '{"id":"sbx-123","action":"started"}'`
801
+ }
802
+ ]
807
803
  },
808
804
  {
809
805
  group: "messages",
@@ -813,6 +809,7 @@ const commands = [
813
809
  options: [
814
810
  option("label", "label it", "k=v"),
815
811
  option("text-file"),
812
+ option("schema", "the text is JSON for this schema, such as sandbox@1", "schema"),
816
813
  option("attach"),
817
814
  option("idempotency-key"),
818
815
  option("no-sync"),
@@ -836,6 +833,7 @@ const commands = [
836
833
  {
837
834
  group: "messages",
838
835
  name: "schedule",
836
+ brief: "(--in 5m | --at time | --every 30m)",
839
837
  description: "post later, as you: once (--in or --at), or repeating (--every) until a stop or until canceled",
840
838
  arguments: [{
841
839
  name: "channel|id",
@@ -851,6 +849,7 @@ const commands = [
851
849
  option("times"),
852
850
  option("label", "label it", "k=v"),
853
851
  option("text-file"),
852
+ option("schema", "the text is JSON for this schema, such as sandbox@1", "schema"),
854
853
  option("attach"),
855
854
  option("no-sync")
856
855
  ],
@@ -880,11 +879,12 @@ const commands = [
880
879
  {
881
880
  group: "messages",
882
881
  name: "schedules",
883
- 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",
884
884
  arguments: [{
885
885
  name: "id",
886
886
  required: false,
887
- description: "a message in the thread"
887
+ description: "a message in the thread, or a schedule (s12): sent, canceled, or pending"
888
888
  }],
889
889
  options: [
890
890
  option("by", "scheduled by a handle"),
@@ -905,7 +905,11 @@ const commands = [
905
905
  required: false,
906
906
  description: "its new text: - reads it from stdin, and it may be left out when you --text-file"
907
907
  }],
908
- options: [option("text-file"), option("if-revision")],
908
+ options: [
909
+ option("text-file"),
910
+ option("schema", "the text is JSON for this schema, such as sandbox@1", "schema"),
911
+ option("if-revision")
912
+ ],
909
913
  examples: [{
910
914
  name: "fix a typo",
911
915
  value: "edit 812 \"deploys are green again\""
@@ -944,6 +948,7 @@ const commands = [
944
948
  {
945
949
  group: "messages",
946
950
  name: "label",
951
+ brief: "[--if-unset k] [--unset k]",
947
952
  description: "set labels on a message, or remove them",
948
953
  arguments: [id(), {
949
954
  name: "k=v",
@@ -1075,9 +1080,9 @@ const commands = [
1075
1080
  name: "download",
1076
1081
  description: "save an attachment (its name, here, by default; - for stdout)",
1077
1082
  arguments: [{
1078
- name: "attachment",
1083
+ name: "attachment-id",
1079
1084
  required: true,
1080
- 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"
1081
1086
  }, {
1082
1087
  name: "path",
1083
1088
  required: false,
@@ -1155,17 +1160,21 @@ const commands = [
1155
1160
  {
1156
1161
  group: "live",
1157
1162
  name: "wait",
1163
+ brief: "[--after id] [--timeout 10m]",
1158
1164
  description: "block for the next match and print it",
1159
1165
  arguments: [{
1160
- name: "channel",
1166
+ name: "channel|id",
1161
1167
  required: false,
1162
- 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"
1163
1169
  }],
1164
1170
  options: [option("timeout")],
1165
1171
  filters: true,
1166
1172
  examples: [{
1167
- name: "wait for a mention",
1173
+ name: "wait for a mention: when none comes in time it says \"Nothing matched\" and exits 1",
1168
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"
1169
1178
  }]
1170
1179
  },
1171
1180
  {