@vercel/board 0.52.0 → 0.54.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 (72) hide show
  1. package/README.md +4 -3
  2. package/dist/{access-DdojoPZm.mjs → access-HzqFpgL_.mjs} +1 -1
  3. package/dist/access.d.mts +3 -3
  4. package/dist/access.mjs +5 -5
  5. package/dist/{actors-CDkNgWUL.mjs → actors-D-u6bitG.mjs} +2 -2
  6. package/dist/{auth-zPqFJocD.mjs → auth-D9ycDQK0.mjs} +34 -12
  7. package/dist/{auth-C4VxPLYz.d.mts → auth-ULldUvir.d.mts} +8 -2
  8. package/dist/{backend-Da_YEltI.d.mts → backend-BHN6GTjB.d.mts} +8 -7
  9. package/dist/backend-local.d.mts +1 -1
  10. package/dist/backend-local.mjs +1 -1
  11. package/dist/{chat-provider-BHyX6H8H.d.mts → chat-provider-F7UqWVZK.d.mts} +2 -2
  12. package/dist/cli-commands.d.mts +1 -1
  13. package/dist/cli-commands.mjs +1 -1
  14. package/dist/cli-embedded.d.mts +32 -3
  15. package/dist/cli-embedded.mjs +4 -2
  16. package/dist/cli.mjs +6 -6
  17. package/dist/{client-C4-r10SA.d.mts → client-CFHunEFn.d.mts} +16 -4
  18. package/dist/{commands-B_gbi2sU.mjs → commands-B5SXeo4W.mjs} +14 -9
  19. package/dist/{commands-B6pgzwTI.d.mts → commands-DLPIX7Jw.d.mts} +3 -1
  20. package/dist/{conformance-DW4-9Dwf.mjs → conformance-CyQG0jky.mjs} +56 -4
  21. package/dist/conformance.d.mts +3 -4
  22. package/dist/conformance.mjs +1 -1
  23. package/dist/{engine-D8YAsQS_.mjs → engine-C8wCzkw-.mjs} +2 -2
  24. package/dist/errors-DDfXnZ2b.mjs +1958 -0
  25. package/dist/{exports-BUtR_AHa.d.mts → exports-BBmjHyCB.d.mts} +4 -4
  26. package/dist/{exports-DI-MtN01.mjs → exports-JUhj5Bl3.mjs} +127 -77
  27. package/dist/{index-BTuTaBaK.d.mts → index-Ce3SDZ3Y.d.mts} +2 -2
  28. package/dist/index.d.mts +6 -6
  29. package/dist/index.mjs +4 -4
  30. package/dist/index.node.d.mts +7 -7
  31. package/dist/index.node.mjs +4 -4
  32. package/dist/inspect/app.js +69 -69
  33. package/dist/inspect/engine.js +3 -3
  34. package/dist/inspect-BN7V9e-M.mjs +2 -0
  35. package/dist/{inspect-BJR-BsUv.mjs → inspect-CrVs-iEi.mjs} +2 -2
  36. package/dist/inspect.d.mts +1 -1
  37. package/dist/inspect.mjs +1 -1
  38. package/dist/{local-B376y9u3.mjs → local-RoMUU6QX.mjs} +39 -23
  39. package/dist/{main-DfJNxck4.mjs → main-B_gzTjBR.mjs} +370 -102
  40. package/dist/{middleware-iVTNf5Su.mjs → middleware-BY4qqIh3.mjs} +1 -1
  41. package/dist/{provider-CGicSMdu.d.mts → provider-DgGp4Zej.d.mts} +2 -2
  42. package/dist/{routes-ChGBn0K3.d.mts → routes-DNmQSOvQ.d.mts} +36 -3
  43. package/dist/{serve-D8j7O2Tc.mjs → serve-Cz1NynhG.mjs} +6 -6
  44. package/dist/{server--BLSj6fd.mjs → server-CdBXNUxf.mjs} +68 -11
  45. package/dist/{serving-aOQsBok0.mjs → serving-C1mhZQqH.mjs} +1 -1
  46. package/dist/{shell-qrJL3Z_R.mjs → shell-Cqn38XUs.mjs} +1 -1
  47. package/dist/sync-chat-sdk.d.mts +2 -2
  48. package/dist/sync-github.d.mts +2 -2
  49. package/dist/sync-linear.d.mts +3 -3
  50. package/dist/sync-slack.d.mts +3 -3
  51. package/dist/sync.d.mts +2 -2
  52. package/dist/{task-batch-6UHphYfl.mjs → task-batch-CVamHB-W.mjs} +4 -5
  53. package/dist/{tokens-C-T0B1uF.mjs → tokens-B3gXkQCs.mjs} +2 -2
  54. package/dist/{version-NfsFHDfg.mjs → version-DBaKHEZS.mjs} +1 -1
  55. package/docs/01-board/01-mounting.md +8 -6
  56. package/docs/01-board/03-identity.md +1 -1
  57. package/docs/01-board/05-reading.md +34 -7
  58. package/docs/01-board/06-watchers.md +2 -1
  59. package/docs/01-board/09-access.md +11 -2
  60. package/docs/01-board/11-tasks.md +28 -5
  61. package/docs/01-quickstart.md +19 -5
  62. package/docs/03-guides/03-ci.md +71 -43
  63. package/docs/03-guides/04-triage.md +4 -4
  64. package/docs/04-reference/01-cli.md +84 -22
  65. package/docs/04-reference/02-board.md +19 -10
  66. package/docs/04-reference/03-http.md +14 -5
  67. package/docs/04-reference/05-conformance.md +1 -1
  68. package/docs/index.md +7 -5
  69. package/package.json +2 -2
  70. package/dist/errors-DbCKqGXp.mjs +0 -851
  71. package/dist/inspect-CYfZ0vva.mjs +0 -2
  72. package/dist/routes-C85Sbhtm.mjs +0 -1067
@@ -1,7 +1,7 @@
1
- import { st as MessageView } from "./routes-ChGBn0K3.mjs";
2
- import "./auth-C4VxPLYz.mjs";
3
- import "./backend-Da_YEltI.mjs";
4
- import { g as TaskInBatch, n as BoardError } from "./client-C4-r10SA.mjs";
1
+ import { ut as MessageView } from "./routes-DNmQSOvQ.mjs";
2
+ import "./auth-ULldUvir.mjs";
3
+ import "./backend-BHN6GTjB.mjs";
4
+ import { g as TaskInBatch, n as BoardError } from "./client-CFHunEFn.mjs";
5
5
  //#region src/client/chunks.d.ts
6
6
  /** What `createTasksInChunks` makes tasks with: a handle, or anything with its `tasks.createMany`. */
7
7
  type TaskBatches = {
@@ -1,15 +1,14 @@
1
1
  import { d as mediaType, i as ATTACHMENT_BYTES_MAX, n as formatProfileHeader, o as IMPORT_BYTES_MAX } from "./profile-header-O8wC8yk8.mjs";
2
2
  import { T as TASK_LABEL, b as RemoteWatcherId, y as RESERVED_LABEL_PREFIX } from "./schemas-CUSTEFIy.mjs";
3
- import { $ as routes, A as ReactBody, B as SourceReadQuery, C as InboxNextQuery, D as LinkedQuery, E as LabelBody, F as RevokeGrantBody, G as SyncReceiptBody, H as SyncCopiesQuery, I as ScheduleBody, J as ThreadQuery, K as TaskNeedsBody, L as SchedulesQuery, M as RegisterBody, N as ReleaseTaskBody, O as MatchesQuery, P as RenewTaskBody, Q as UploadStartBody, R as SchemaBody, S as InboxAckBody, T as InboxQuery, U as SyncFindQuery, V as SyncBody, W as SyncImportBody, X as TypingBody, Y as ThreadsQuery, Z as UpdateGrantBody, _ as EventsQuery, a as ChannelMessagesQuery, c as ClaimTaskBody, d as CreateGrantsBody, f as CreateTaskBody, g as EditBody, h as DeleteBody, i as CancelTaskBody, j as Ref, k as PostBody, l as CompleteTaskBody, m as CreatedTasksQuery, n as AssignTaskBody, o as ChannelsQuery, p as CreateTasksBody, q as TasksQuery, r as BlockTaskBody, s as ClaimReadyTaskBody, t as AckBody, u as CreateChannelBody, v as ExplainQuery, w as InboxPushBody, x as GrantBody, y as FailTaskBody, z as SourceJoinBody } from "./routes-C85Sbhtm.mjs";
4
- import { a as duplicateId, c as notFound, d as unauthorized, f as BoardError, h as eventsState, i as batchTooLarge, m as duration, n as RejectedError, o as forbidden, p as createBoardClient, r as badRequest, s as json, t as HttpError, u as toErrorResponse } from "./errors-DbCKqGXp.mjs";
5
- import { _ as sha256, a as waitUntil, c as platformProfile, d as userIdOf, m as derivedId, o as actorParts, r as runMiddleware, s as importedHandle, t as DroppedError, u as underPrincipal } from "./middleware-iVTNf5Su.mjs";
3
+ import { $ as SchedulesQuery, A as CreatedTasksQuery, B as InboxPushBody, C as ClaimReadyTaskBody, D as CreateGrantsBody, E as CreateChannelBody, F as FailTaskBody, G as PostBody, H as LabelBody, J as RegisterBody, K as ReactBody, L as GrantBody, M as EditBody, N as EventsQuery, O as CreateTaskBody, P as ExplainQuery, Q as ScheduleBody, R as InboxAckBody, S as ChannelsQuery, T as CompleteTaskBody, U as LinkedQuery, V as InboxQuery, W as MatchesQuery, X as RenewTaskBody, Y as ReleaseTaskBody, Z as RevokeGrantBody, _ as ActorsQuery, a as duplicateId, at as SyncFindQuery, b as CancelTaskBody, c as notFound, ct as TaskNeedsBody, d as unauthorized, dt as ThreadsQuery, et as SchemaBody, f as BoardError, ft as TypingBody, g as AckBody, h as eventsState, ht as routes, i as batchTooLarge, it as SyncCopiesQuery, j as DeleteBody, k as CreateTasksBody, lt as TasksQuery, m as duration, mt as UploadStartBody, n as RejectedError, nt as SourceReadQuery, o as forbidden, ot as SyncImportBody, p as createBoardClient, pt as UpdateGrantBody, q as Ref, r as badRequest, rt as SyncBody, s as json, st as SyncReceiptBody, t as HttpError, tt as SourceJoinBody, u as toErrorResponse, ut as ThreadQuery, v as AssignTaskBody, w as ClaimTaskBody, x as ChannelMessagesQuery, y as BlockTaskBody, z as InboxNextQuery } from "./errors-DDfXnZ2b.mjs";
4
+ import { _ as sha256, a as waitUntil, c as platformProfile, d as userIdOf, m as derivedId, o as actorParts, r as runMiddleware, s as importedHandle, t as DroppedError, u as underPrincipal } from "./middleware-BY4qqIh3.mjs";
6
5
  import { n as blocksIn, r as findBlocks } from "./blocks-CVoBC7ur.mjs";
7
6
  import { a as replaceMentions, i as mentionTerms, o as settleMentions, r as mentionTerm, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
8
- import { t as VERSION } from "./version-NfsFHDfg.mjs";
9
- import { a as canText, c as compileAccess, d as parsePattern, n as InvalidCan, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-DdojoPZm.mjs";
10
- import { _ as SYNC, a as runMatch, d as openapi, f as queryObject, g as uploadName, h as carried, i as canonicalWatchers, l as METHODS, m as readJson, n as SYNC_ACTOR, o as compileWatcher, p as readCapped, r as syncTarget, t as batchPlan, u as createRouter } from "./task-batch-6UHphYfl.mjs";
11
- import { C as verifiedIssuers, D as explainGrants, d as createAuthority, f as fromTokens, m as hostPrincipal, o as VERCEL_ISSUER, p as grantIssuers, t as DEFAULT_CAN$1, v as namesByLogin, w as verifiesTokens } from "./auth-zPqFJocD.mjs";
12
- import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-CDkNgWUL.mjs";
7
+ import { t as VERSION } from "./version-DBaKHEZS.mjs";
8
+ import { a as canText, c as compileAccess, d as parsePattern, n as InvalidCan, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-HzqFpgL_.mjs";
9
+ import { _ as SYNC, a as runMatch, d as openapi, f as queryObject, g as uploadName, h as carried, i as canonicalWatchers, l as METHODS, m as readJson, n as SYNC_ACTOR, o as compileWatcher, p as readCapped, r as syncTarget, t as batchPlan, u as createRouter } from "./task-batch-CVamHB-W.mjs";
10
+ import { C as verifiedIssuers, D as explainGrants, d as createAuthority, f as fromTokens, m as hostPrincipal, o as VERCEL_ISSUER, p as grantIssuers, t as DEFAULT_CAN$1, v as namesByLogin, w as verifiesTokens } from "./auth-D9ycDQK0.mjs";
11
+ import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-D-u6bitG.mjs";
13
12
  import { t as checkValue } from "./data-values-CoTP0SQG.mjs";
14
13
  //#region src/server/registrant.ts
15
14
  /** Registering again this soon after the same registration only repeats it. */
@@ -438,6 +437,10 @@ function boardPolicy(reach) {
438
437
  //#endregion
439
438
  //#region src/server/backend-vercel.ts
440
439
  const PROFILE = /^[A-Za-z][A-Za-z0-9-]{0,31}$/;
440
+ /** A GitHub repository as `owner/name`. */
441
+ const REPOSITORY = /^[A-Za-z0-9-]{1,39}\/[A-Za-z0-9._-]{1,100}$/;
442
+ /** A word of a hint's command as a shell reads it back: a board's name can hold anything but a `/`. */
443
+ const shellWord = (word) => /^[\w@%+=:,.-]+$/.test(word) ? word : `'${word.replace(/'/g, `'\\''`)}'`;
441
444
  /**
442
445
  * What `vb` on this board calls in Vercel's API for what a sandboxed agent does, by method and path
443
446
  * under `/boards/<id>`: reading, posting and replying, editing and deleting its own, reacting and
@@ -729,9 +732,20 @@ function retryWait(attempt, retryAfter) {
729
732
  return Math.min(asked, RETRY_MS * 2 ** attempt * (1 + Math.random()));
730
733
  }
731
734
  /**
735
+ * What the API's 429 asks for: its whole window. It limits requests a minute with a bucket that refills all the
736
+ * time (a request a tenth of a second at 600 a minute), and says when it's full again: `Retry-After` is 60 and
737
+ * `x-ratelimit-reset` a minute from now whatever's left. A wait under this is the API's own, and is taken.
738
+ */
739
+ const WHOLE_WINDOW_S = 59;
740
+ /** The most a put-off request is told to wait, where the API says only its whole window. */
741
+ const THROTTLED_WAIT_MAX_S = 15;
742
+ /**
732
743
  * A 429 the API still answered after `retries` tries again in `ms`: how many requests a minute it
733
- * takes (`x-ratelimit-limit`), from whom, and when to send again. That's when its window resets
734
- * (`x-ratelimit-reset`, in Unix seconds), or what `Retry-After` asks where it doesn't say.
744
+ * takes (`x-ratelimit-limit`), from whom, and when it's worth sending again. That's what `Retry-After`
745
+ * (or `x-ratelimit-reset`, in Unix seconds) asks when it's under the whole window. Otherwise it's the next
746
+ * wait the retries would have taken, a second doubling each time, up to `THROTTLED_WAIT_MAX_S`: the limit
747
+ * gives a request back every tenth of a second at 600 a minute, so what's kept it off this long is everyone
748
+ * else on the login taking them first, and a try a few seconds later usually gets through.
735
749
  */
736
750
  function throttled(response, code, retries, ms) {
737
751
  const header = (name) => {
@@ -740,11 +754,12 @@ function throttled(response, code, retries, ms) {
740
754
  };
741
755
  const reset = header("x-ratelimit-reset");
742
756
  const untilReset = reset !== void 0 ? reset - Math.floor(Date.now() / 1e3) : void 0;
743
- const retryAfter = untilReset !== void 0 && untilReset > 0 && untilReset <= 3600 ? untilReset : header("retry-after");
757
+ const asked = untilReset !== void 0 && untilReset > 0 && untilReset <= 3600 ? untilReset : header("retry-after");
744
758
  const limit = header("x-ratelimit-limit");
759
+ const retryAfter = asked !== void 0 && asked < WHOLE_WINDOW_S ? Math.max(1, asked) : Math.min(THROTTLED_WAIT_MAX_S, RETRY_MS / 1e3 * 2 ** retries);
745
760
  const tried = retries > 0 ? `rate-limited ${retries + 1} tries in ${Math.max(1, Math.round(ms / 1e3))}s` : "rate-limited it";
746
761
  const takes = limit !== void 0 ? `takes ${limit} requests a minute` : "limits requests";
747
- return new HttpError(429, code, `Vercel's API ${tried}. It ${takes} per login or token, for all its agents and profiles together.`, { ...retryAfter !== void 0 ? { retryAfter } : {} });
762
+ return new HttpError(429, code, `Vercel's API ${tried}. It ${takes} per login or token, for all its agents and profiles together, and refills as the minute goes: a try a few seconds later usually gets through.`, { retryAfter });
748
763
  }
749
764
  /** `ms` passing, or `signal` stopping it first. */
750
765
  const pause = (ms, signal) => ms <= 0 || signal?.aborted ? Promise.resolve() : new Promise((resolve) => {
@@ -828,12 +843,18 @@ function locate(id) {
828
843
  sequence: Number(found[2])
829
844
  } : null;
830
845
  }
831
- /** A principal as board names it: `vercel:user:<id>`, `vercel:app:<id>`, `vercel:project:<id>:<env>`. */
832
- function principalId(principal) {
846
+ /**
847
+ * The principal `actor` acts through, as board names it: `vercel:user:<id>`, `vercel:app:<id>`,
848
+ * `vercel:project:<id>:<env>`, and a workflow (`github:repo:<id>`, `oidc:<issuer>:<sub>`) as the
849
+ * actor's ID has it, its issuer encoded as the API encodes it.
850
+ */
851
+ function principalId(actor) {
852
+ const { principal } = actor;
833
853
  if (principal.type === "external") return principal.id;
834
854
  if (principal.type === "user") return `vercel:user:${principal.userId}`;
835
855
  if (principal.type === "app") return `vercel:app:${principal.clientId}`;
836
- return `vercel:project:${principal.projectId}:${principal.environment}`;
856
+ if (principal.type === "project") return `vercel:project:${principal.projectId}:${principal.environment}`;
857
+ return actorParts(actor.id).principal;
837
858
  }
838
859
  /** A principal from a board actor ID, `vercel:project:prj_1:preview+slack:user:U1` say, or null for one the API doesn't name. */
839
860
  function principalFrom(actor) {
@@ -854,6 +875,8 @@ function principalFrom(actor) {
854
875
  };
855
876
  return null;
856
877
  }
878
+ /** Whether an actor ID names someone the API names: one `principalFrom` reads, or a workflow (`github:repo:<id>`, `oidc:<issuer>:<sub>`). */
879
+ const namedByApi = (actor) => principalFrom(actor) !== null || /^(github:repo|oidc):/.test(actorParts(actor).principal);
857
880
  /**
858
881
  * Who an actor with a profile acts through, as board shows it: a project by its name (`project`, as the
859
882
  * actors list names it), or the one the API's view gives it, or its ID, in its environment; a person by
@@ -945,11 +968,19 @@ function shownHandle(id, view, names) {
945
968
  }
946
969
  /** Who goes by `handle` in a read of the actors list: as the API names them, or as board shows them. */
947
970
  const goingBy = (views, names, handle) => [...views].filter(([id, view]) => view.handle.toLowerCase() === handle || shownHandle(id, view, names).toLowerCase() === handle).map(([id]) => id);
948
- /** A short name for a person or an app the API doesn't name: the start of their ID. */
949
- const shortName = (principal) => principal.type === "user" ? `user-${principal.userId.slice(0, 6).toLowerCase()}` : `app-${principal.clientId.slice(0, 6).toLowerCase()}`;
971
+ /**
972
+ * A short name for anyone the API doesn't name: a person or an app by the start of their ID, a GitHub
973
+ * Actions run by its repository (`owner/name`), and another issuer's caller by its subject, as the API cuts it.
974
+ */
975
+ function shortName(principal) {
976
+ if (principal.type === "user") return `user-${principal.userId.slice(0, 6).toLowerCase()}`;
977
+ if (principal.type === "app") return `app-${principal.clientId.slice(0, 6).toLowerCase()}`;
978
+ if (principal.type === "github") return principal.repository;
979
+ return principal.subject.slice(0, 128);
980
+ }
950
981
  const authorOf = (actor) => ({
951
982
  actor: actor.id,
952
- principal: principalId(actor.principal),
983
+ principal: principalId(actor),
953
984
  profile: actor.profile?.name ?? null
954
985
  });
955
986
  /** Who cancels a schedule when no one did: the API, once its creator can no longer post it, as a local board's scheduler. */
@@ -1174,7 +1205,8 @@ function createVercel(options, environment) {
1174
1205
  if (!/^[^/]{1,64}$/.test(name)) throw new HttpError(400, "invalid_board_name", `${JSON.stringify(given)} isn't a board's name: one is 1 to 64 characters with no /.`, { origin: "handle" });
1175
1206
  const { boards } = await api(who, "GET", "/boards", { query: { name } });
1176
1207
  if (boards[0]) return boards[0].id;
1177
- const { principal } = (await self(who)).actor;
1208
+ const me = await self(who);
1209
+ const { principal } = me.actor;
1178
1210
  if (binding?.ensure === false) throw new HttpError(404, "no_board", `no board named ${name} on this team, or none you can see.`, {
1179
1211
  hint: "Check the name, or make it: leave out ensure: false",
1180
1212
  origin: "handle"
@@ -1186,7 +1218,7 @@ function createVercel(options, environment) {
1186
1218
  } });
1187
1219
  return made.id;
1188
1220
  } catch (error) {
1189
- if (error instanceof HttpError && error.code === "board_not_granted") throw notLetIn(name, principal);
1221
+ if (error instanceof HttpError && error.code === "board_not_granted") throw notLetIn(name, principal, me.teamId);
1190
1222
  if (error instanceof HttpError && error.code === "board_name_taken") throw new HttpError(409, "board_name_taken", `the board name ${name} is taken.`, {
1191
1223
  hint: "Pick another name, or ask whoever can see it for access.",
1192
1224
  origin: "handle"
@@ -1197,15 +1229,28 @@ function createVercel(options, environment) {
1197
1229
  /**
1198
1230
  * A project a board's grants don't let in, the one `name`s or the team's (null): they were narrowed,
1199
1231
  * since every project on the team gets in by default. Its way out is the grant that lets it back in,
1200
- * naming the project by ID, since `/me` carries no name.
1232
+ * naming the project by ID, since `/me` carries no name, and the team, so it can't land on the
1233
+ * board of whichever team the person who runs it is linked to.
1201
1234
  */
1202
- const notLetIn = (name, principal) => {
1235
+ const notLetIn = (name, principal, team) => {
1203
1236
  const board = name === null ? "the team's board" : `board ${name}`;
1237
+ const on = `${name === null ? "" : ` --name ${shellWord(name)}`} --scope ${shellWord(team)}`;
1238
+ if (principal.type === "github" || principal.type === "oidc") {
1239
+ const repository = principal.type === "github" && REPOSITORY.test(principal.repository) ? principal.repository : null;
1240
+ if (repository === null) return new HttpError(403, "board_not_granted", `this workflow has no access to ${board}.`, {
1241
+ hint: "Someone who manages the board can grant it.",
1242
+ origin: "handle"
1243
+ });
1244
+ return new HttpError(403, "board_not_granted", `this workflow has no access to ${board} (${repository}).`, {
1245
+ hint: `Grant it: vb grants create --github ${repository}${on} --can '*=read,post,react,label'`,
1246
+ origin: "handle"
1247
+ });
1248
+ }
1204
1249
  if (principal.type !== "project") return new HttpError(403, "board_not_granted", `this project has no access to ${board}.`, {
1205
1250
  hint: "Someone who manages the board can grant it.",
1206
1251
  origin: "handle"
1207
1252
  });
1208
- const grant = `vb grants create --project ${principal.projectId} --environment ${principal.environment}${name === null ? "" : ` --name ${name}`} --can '*=read,post,react,label'`;
1253
+ const grant = `vb grants create --project ${principal.projectId} --environment ${principal.environment}${on} --can '*=read,post,react,label'`;
1209
1254
  return new HttpError(403, "board_not_granted", `this project has no access to ${board} (${principal.projectId}, ${principal.environment}).`, {
1210
1255
  hint: `Grant it: ${grant}`,
1211
1256
  origin: "handle"
@@ -1220,8 +1265,9 @@ function createVercel(options, environment) {
1220
1265
  */
1221
1266
  const boardId = (who) => (board ??= options.board ? Promise.resolve(options.board) : boardName() ? boardNamed(who, boardName()) : api(who, "GET", "/boards").then(async ({ defaultBoardId }) => {
1222
1267
  if (defaultBoardId) return defaultBoardId;
1223
- const { principal } = (await self(who)).actor;
1224
- if (principal.type === "project") throw notLetIn(null, principal);
1268
+ const me = await self(who);
1269
+ const { principal } = me.actor;
1270
+ if (principal.type === "project" || principal.type === "github" || principal.type === "oidc") throw notLetIn(null, principal, me.teamId);
1225
1271
  const { board: made } = await api(who, "POST", "/boards/default", { body: { operationId: operationId() } });
1226
1272
  return made.id;
1227
1273
  })).catch((error) => {
@@ -2073,7 +2119,7 @@ function createVercel(options, environment) {
2073
2119
  }
2074
2120
  for (const id of ids) named.add(id);
2075
2121
  }
2076
- return (actor) => named.has(actor.id) || named.has(principalId(actor.principal)) || actor.profile !== void 0 && !actor.profile.platform && named.has(actor.profile.name);
2122
+ return (actor) => named.has(actor.id) || named.has(principalId(actor)) || actor.profile !== void 0 && !actor.profile.platform && named.has(actor.profile.name);
2077
2123
  }
2078
2124
  /**
2079
2125
  * Which messages `--source` names, as `fromOf` shows where they came from: `board`, a key bare for this caller's own
@@ -2113,7 +2159,7 @@ function createVercel(options, environment) {
2113
2159
  prefixes = [value.includes(":") ? `${value}+` : `${mentionTerm(value)}/`];
2114
2160
  }
2115
2161
  const named = (term) => terms.includes(term) || prefixes.some((prefix) => term.startsWith(prefix));
2116
- const ids = (text) => value === "me" || value.includes(":") ? [] : mentionTerms(text).filter((term) => principalFrom(term) !== null);
2162
+ const ids = (text) => value === "me" || value.includes(":") ? [] : mentionTerms(text).filter(namedByApi);
2117
2163
  /**
2118
2164
  * The handle an ID goes by as the actors list shows it, which is what a `@handle` settles from: the API's own
2119
2165
  * (`pong/claude`), a deployment by its project's name. None for an ID the API names no one by: a handle made up
@@ -2302,11 +2348,13 @@ function createVercel(options, environment) {
2302
2348
  * or read by reference from an API that lists threads without them, then every author on the page is asked for
2303
2349
  * together, before any is named.
2304
2350
  */
2351
+ /** A thread's first message and its newest, or null without replies: as its thread list brought them, or read by reference. */
2352
+ function endsOf(who, thread, signal) {
2353
+ const replied = thread.lastMessage !== void 0 && thread.lastMessage.sequence > 1;
2354
+ return Promise.all([thread.rootMessage ?? messageById(who, idAt(thread.id, 1), signal).then((found) => found.message), !replied ? null : thread.latestMessage ?? messageById(who, thread.lastMessage.id, signal).then((found) => found.message)]);
2355
+ }
2305
2356
  async function summaries(who, page, signal) {
2306
- const read = await Promise.all(page.map(({ thread }) => {
2307
- const replied = thread.lastMessage !== void 0 && thread.lastMessage.sequence > 1;
2308
- return Promise.all([thread.rootMessage ?? messageById(who, idAt(thread.id, 1), signal).then((found) => found.message), !replied ? null : thread.latestMessage ?? messageById(who, thread.lastMessage.id, signal).then((found) => found.message)]);
2309
- }));
2357
+ const read = await Promise.all(page.map(({ thread, ends }) => ends ?? endsOf(who, thread, signal)));
2310
2358
  naming(who, read.flatMap(([root, last]) => [root.createdBy, ...last ? [last.createdBy] : []]));
2311
2359
  return Promise.all(page.map(async ({ thread, channel }, i) => {
2312
2360
  const [root, last] = read[i];
@@ -2325,7 +2373,7 @@ function createVercel(options, environment) {
2325
2373
  throw error;
2326
2374
  });
2327
2375
  /** The actor `who` writes as: the credentials' principal, and its profile, as the API names it. */
2328
- const actorOf = async (who) => `${principalId((await self(who)).actor.principal)}${who.profile ? `+${who.profile.name.toLowerCase()}` : ""}`;
2376
+ const actorOf = async (who) => `${principalId((await self(who)).actor)}${who.profile ? `+${who.profile.name.toLowerCase()}` : ""}`;
2329
2377
  /**
2330
2378
  * Refuses a handle narrowed with `as(profile, { can })` a source: the platform's app reads and
2331
2379
  * joins what it can, not what the caller can, so it's this deployment's sync's job, as on a board
@@ -3210,7 +3258,7 @@ function createVercel(options, environment) {
3210
3258
  const keys = body.from === null ? [.../* @__PURE__ */ new Set([body.author.id.split(":")[0], ...(binding?.sync ?? []).map((entry) => entry.key)])] : [body.from];
3211
3259
  const ours = (actor) => keys.some((key) => actor.startsWith(`${key}:`));
3212
3260
  if (!keys.some((key) => body.text.includes(`@[${key}:`))) return body.text;
3213
- const owner = principalId((await self(who)).actor.principal);
3261
+ const owner = principalId((await self(who)).actor);
3214
3262
  const named = replaceMentions(body.text, (token) => token.kind === "actor" && ours(token.actor) ? `@[${owner}+${token.actor}]` : null);
3215
3263
  return named.length > 1e4 ? body.text : named;
3216
3264
  }
@@ -3280,22 +3328,6 @@ function createVercel(options, environment) {
3280
3328
  }
3281
3329
  /** A sync key's inbox, under the board. */
3282
3330
  const inboxPath = (who, key, rest = "") => onBoard(who, `/sync/inbox/${encodeURIComponent(key)}${rest}`);
3283
- /** A grant Vercel's API won't keep: one naming a GitHub run or an OIDC issuer, which an app stands in for. */
3284
- const grantRefused = (error) => {
3285
- if (error instanceof HttpError && error.code === "unsupported_principal") throw new HttpError(400, "unsupported_principal", "Vercel's board takes no GitHub or OIDC principals in a grant.", {
3286
- hint: "Grant an app that an OIDC exchange policy issues tokens for: --app <slug>.",
3287
- origin: "handle"
3288
- });
3289
- throw error;
3290
- };
3291
- /** An explain Vercel's API won't answer: for a GitHub run or an OIDC issuer, which no grant there names. */
3292
- const explainRefused = (error) => {
3293
- if (error instanceof HttpError && error.code === "unsupported_principal") throw new HttpError(400, "unsupported_principal", "Vercel's board explains no GitHub or OIDC caller: no grant names one.", {
3294
- hint: "Explain the app an OIDC exchange policy issues tokens for: --app <slug>.",
3295
- origin: "handle"
3296
- });
3297
- throw error;
3298
- };
3299
3331
  /**
3300
3332
  * What the API refused of a task, as a board says it: its codes with a board's statuses, and a
3301
3333
  * thread that isn't there as the message it is here. A lost claim keeps the API's word for why, in
@@ -3620,7 +3652,7 @@ function createVercel(options, environment) {
3620
3652
  const via = found.actor.profile && principal.type !== "external" ? { via: viaFor(principal, named, project) } : {};
3621
3653
  return {
3622
3654
  actor: found.actor.id,
3623
- principal: principalId(found.actor.principal),
3655
+ principal: principalId(found.actor),
3624
3656
  kind: shown.kind,
3625
3657
  handle: shown.handle,
3626
3658
  name: shown.name,
@@ -3653,9 +3685,11 @@ function createVercel(options, environment) {
3653
3685
  created
3654
3686
  };
3655
3687
  },
3656
- async actors(caller, _input, signal) {
3688
+ async actors(caller, { id: only }, signal) {
3657
3689
  const who = whoOf(caller);
3658
- const views = await all(who, await onBoard(who, "/actors"), "actors", {}, signal);
3690
+ const wanted = only ? [...new Set(only)] : null;
3691
+ const named = wanted && namesById ? await Promise.all(wanted.map((id) => byId(who, id, true))) : null;
3692
+ const views = named && !named.includes(null) ? named.filter((view) => view !== void 0 && view !== null) : (await all(who, await onBoard(who, "/actors"), "actors", {}, signal)).filter((view) => !wanted || wanted.includes(view.id));
3659
3693
  const names = projectNamesOf(views.map((view) => [view.id, view]));
3660
3694
  return {
3661
3695
  actors: views.map((actor) => {
@@ -3703,14 +3737,11 @@ function createVercel(options, environment) {
3703
3737
  },
3704
3738
  async threads(caller, query, signal) {
3705
3739
  const who = whoOf(caller);
3706
- const unindexed = [
3707
- query.by !== void 0 && "author",
3708
- query.mentions !== void 0 && "mention",
3709
- query.text !== void 0 && "text",
3710
- query.from !== void 0 && "source"
3711
- ].filter((name) => name !== false);
3740
+ const unindexed = [query.by !== void 0 && "author", query.from !== void 0 && "source"].filter((name) => name !== false);
3712
3741
  if (unindexed.length > 0) throw notSupported(`reading threads by ${unindexed.join(", ")}`, "they keep no search index. Read one channel's threads, or one thread, and look through what it answers");
3713
3742
  if (query.re === void 0 && (query.channel === void 0 || query.channel.endsWith("/"))) throw notSupported(query.channel === void 0 ? "reading every channel at once" : `reading every channel under ${query.channel} at once`, "name one channel, and read the others one at a time. The channel list has their names");
3743
+ const looked = [query.mentions !== void 0 && "mention", query.text !== void 0 && "text"].filter((name) => name !== false);
3744
+ if (looked.length > 0 && (query.re !== void 0 || query.label?.length || query.after !== void 0)) throw notSupported(`reading threads by ${looked.join(", ")} ${query.re !== void 0 ? "in one thread" : query.label?.length ? "and a label" : "after a cursor"}`, "they keep no search index, so they look through one page of a channel's threads, and page back with `before`. Read one thread whole, or wait for what's new");
3714
3745
  const after = query.after !== void 0 ? await timeOf(who, query.after) : void 0;
3715
3746
  const limit = query.limit ?? 50;
3716
3747
  const pick = (found) => {
@@ -3719,6 +3750,7 @@ function createVercel(options, environment) {
3719
3750
  };
3720
3751
  if (query.re === void 0 && !query.label?.length && after === void 0) {
3721
3752
  const name = query.channel;
3753
+ const narrow = looked.length > 0 ? await narrowOf(who, { mentions: query.mentions }) : void 0;
3722
3754
  const read = await inNamed(who, name, async (channel) => {
3723
3755
  const feed = await head(who, channel);
3724
3756
  const found = await threadsBefore(who, channel, query.before, limit, signal);
@@ -3746,14 +3778,31 @@ function createVercel(options, environment) {
3746
3778
  channel: { name },
3747
3779
  at: thread.lastActivityAt
3748
3780
  })).reverse();
3749
- return {
3781
+ const cursor = cursorOf({
3782
+ t: page.reduce((max, { at }) => Math.max(max, at), 0),
3783
+ feeds: id === void 0 ? {} : { [id]: read.feed }
3784
+ });
3785
+ if (!narrow) return {
3750
3786
  threads: await summaries(who, page, signal),
3751
- cursor: cursorOf({
3752
- t: page.reduce((max, { at }) => Math.max(max, at), 0),
3753
- feeds: id === void 0 ? {} : { [id]: read.feed }
3754
- }),
3787
+ cursor,
3755
3788
  older: read.found.older
3756
3789
  };
3790
+ const ends = await Promise.all(page.map(({ thread }) => endsOf(who, thread, signal)));
3791
+ narrow.mentions?.ahead(ends.flatMap(([root, last]) => [root.text, ...last ? [last.text] : []]));
3792
+ const filters = {
3793
+ mentions: query.mentions,
3794
+ text: query.text
3795
+ };
3796
+ const matched = await Promise.all(page.map(async ({ thread }, i) => (await Promise.all(ends[i].filter((end) => end !== null).map((end) => matches(filters, end, thread, narrow)))).some(Boolean)));
3797
+ return {
3798
+ threads: await summaries(who, page.flatMap((shown, i) => matched[i] ? [{
3799
+ ...shown,
3800
+ ends: ends[i]
3801
+ }] : []), signal),
3802
+ cursor,
3803
+ older: read.found.older,
3804
+ scanned: page.length
3805
+ };
3757
3806
  }
3758
3807
  if (query.before !== void 0) throw new HttpError(400, "invalid_request", "before: this board pages one channel's threads, with no filters");
3759
3808
  if (query.re !== void 0) {
@@ -4024,7 +4073,7 @@ function createVercel(options, environment) {
4024
4073
  ...input
4025
4074
  },
4026
4075
  ...signal ? { signal } : {}
4027
- }).catch(grantRefused);
4076
+ });
4028
4077
  return { grant: grantFrom(grant) };
4029
4078
  },
4030
4079
  async createGrants(caller, input, signal) {
@@ -4035,7 +4084,7 @@ function createVercel(options, environment) {
4035
4084
  ...input
4036
4085
  },
4037
4086
  ...signal ? { signal } : {}
4038
- }).catch(grantRefused);
4087
+ });
4039
4088
  return { grants: grants.map(grantFrom) };
4040
4089
  },
4041
4090
  async updateGrant(caller, { id, ...change }, signal) {
@@ -4046,7 +4095,7 @@ function createVercel(options, environment) {
4046
4095
  ...change
4047
4096
  },
4048
4097
  ...signal ? { signal } : {}
4049
- }).catch(grantRefused);
4098
+ });
4050
4099
  return { grant: grantFrom(grant) };
4051
4100
  },
4052
4101
  async explain(caller, { claim, ...query }, signal) {
@@ -4054,7 +4103,7 @@ function createVercel(options, environment) {
4054
4103
  const params = new URLSearchParams();
4055
4104
  for (const [name, value] of Object.entries(query)) if (value !== void 0) params.set(name, value);
4056
4105
  for (const pair of claim ?? []) params.append("claim", pair);
4057
- const explained = await api(who, "GET", await onBoard(who, `/grants/explain?${params}`), signal ? { signal } : {}).catch(explainRefused);
4106
+ const explained = await api(who, "GET", await onBoard(who, `/grants/explain?${params}`), signal ? { signal } : {});
4058
4107
  return {
4059
4108
  ...explained,
4060
4109
  grants: explained.grants.map(grantFrom)
@@ -4202,7 +4251,7 @@ function createVercel(options, environment) {
4202
4251
  const path = await onBoard(who, "/tasks");
4203
4252
  const found = [];
4204
4253
  let from = after !== void 0 ? { after } : {};
4205
- while (found.length < limit) {
4254
+ while (query.latest || found.length < limit) {
4206
4255
  const page = await api(who, "GET", path, {
4207
4256
  version: 2,
4208
4257
  query: {
@@ -4213,11 +4262,12 @@ function createVercel(options, environment) {
4213
4262
  }).catch((error) => {
4214
4263
  throw taskRefusal(error);
4215
4264
  });
4216
- for (const task of page.tasks) if (found.length < limit && matching(task)) found.push(task);
4265
+ for (const task of page.tasks) if ((query.latest || found.length < limit) && matching(task)) found.push(task);
4217
4266
  if (!page.cursor) break;
4218
4267
  from = { cursor: page.cursor };
4219
4268
  }
4220
- const tasks = await summaries(who, await Promise.all(found.map(async (task) => ({
4269
+ const kept = query.latest ? [...found].sort((a, b) => a.lastActivityAt - b.lastActivityAt).slice(-limit) : found;
4270
+ const tasks = await summaries(who, await Promise.all(kept.map(async (task) => ({
4221
4271
  thread: listedOf(task),
4222
4272
  channel: await channelById(who, task.channelId)
4223
4273
  }))), signal);
@@ -4229,7 +4279,7 @@ function createVercel(options, environment) {
4229
4279
  },
4230
4280
  async createTask(caller, input, signal) {
4231
4281
  const who = whoOf(caller);
4232
- const token = input.claim ? newClaimToken() : null;
4282
+ const token = input.claim ? input.token ?? newClaimToken() : null;
4233
4283
  const spec = taskSpec(input, token);
4234
4284
  let made;
4235
4285
  let root;
@@ -4271,7 +4321,7 @@ function createVercel(options, environment) {
4271
4321
  root = await view(who, firstOf(made.task), await landedIn(who, made.task.channelId, input.channel, clientId));
4272
4322
  } else {
4273
4323
  const { actor } = await self(who);
4274
- task = askedTask(principalId(actor.principal), await actorOf(who), input);
4324
+ task = askedTask(principalId(actor), await actorOf(who), input);
4275
4325
  root = await view(who, {
4276
4326
  ...await sent(who, {
4277
4327
  id: idAt(made.task.id, 1),
@@ -4345,7 +4395,7 @@ function createVercel(options, environment) {
4345
4395
  const { actor } = await self(who);
4346
4396
  const stood = {
4347
4397
  state: needs.length ? "waiting" : "ready",
4348
- owner: principalId(actor.principal),
4398
+ owner: principalId(actor),
4349
4399
  by: await actorOf(who),
4350
4400
  for: asked.for ?? null,
4351
4401
  needs,
@@ -4377,9 +4427,9 @@ function createVercel(options, environment) {
4377
4427
  async createdTasks(_caller, { id }) {
4378
4428
  throw notFound(`no batch of yours has id ${id}`, "batch_not_found");
4379
4429
  },
4380
- async claimTask(caller, { id, lease }, signal) {
4430
+ async claimTask(caller, { id, lease, token: sent }, signal) {
4381
4431
  const who = whoOf(caller);
4382
- const token = newClaimToken();
4432
+ const token = sent ?? newClaimToken();
4383
4433
  const made = await taskWrite(who, `${await taskPath(who, id, signal)}/claim`, {
4384
4434
  claimToken: token,
4385
4435
  leaseSeconds: lease ?? 900
@@ -4398,7 +4448,7 @@ function createVercel(options, environment) {
4398
4448
  if (signal.aborted) return { task: null };
4399
4449
  const path = await onBoard(who, "/tasks/claim");
4400
4450
  const wait = Math.min(WAIT_MAX_S, Math.ceil(input.wait ?? 0));
4401
- const token = newClaimToken();
4451
+ const token = input.token ?? newClaimToken();
4402
4452
  const body = {
4403
4453
  operationId: operationId(),
4404
4454
  claimToken: token,
@@ -5088,7 +5138,7 @@ async function inputOf(name, request, url, params) {
5088
5138
  case "discovery":
5089
5139
  case "me":
5090
5140
  case "channels": return ChannelsQuery.parse(queryObject(url));
5091
- case "actors":
5141
+ case "actors": return ActorsQuery.parse(queryObject(url));
5092
5142
  case "watchers":
5093
5143
  case "grants":
5094
5144
  case "schemas": return {};
@@ -1,5 +1,5 @@
1
- import { f as Board, p as BoardOptions } from "./backend-Da_YEltI.mjs";
2
- import "./exports-BUtR_AHa.mjs";
1
+ import { f as Board, p as BoardOptions } from "./backend-BHN6GTjB.mjs";
2
+ import "./exports-BBmjHyCB.mjs";
3
3
  //#region src/server/index.d.ts
4
4
  /**
5
5
  * The handle on a board. Without a `backend`, it's Vercel's board for your team, the one `name`
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { $ as LABEL_CONDITIONS_MAX, $t as THREADS_LIMIT_MAX, A as Discovery, At as SchedulesQueryInput, B as GRANT_BATCH_MAX, Bn as Attachment, Bt as SyncBody, C as CreateGrantsBody, Ct as RevokeGrantBody, D as CreateTasksInput, Dt as ScheduleInput, E as CreateTasksBody, Et as ScheduleBodyOutput, F as EventsQueryInput, Ft as SourceJoin, G as GrantWriteOptions, Gt as SyncFindView, H as GrantCan, Ht as SyncCopiesView, I as ExplainQuery, It as SourceJoinBody, J as InboxEntry, Jt as SyncReceiptBody, K as INBOX_EVENT_ID_MAX, Kt as SyncImportBody, L as Explanation, Lt as SourceMessage, M as EditBody, Mt as SchemaBody, N as EventsPage, Nt as SchemaInput, O as CreatedTasksQuery, Ot as ScheduleView, P as EventsQuery, Pt as SchemaView, Q as InboxQuery, Qt as THREADS_LIMIT_DEFAULT, R as FailTaskBody, Rt as SourceRead, S as CreateChannelBody, St as ResolvedSyncTarget, T as CreateTaskInput, Tt as ScheduleBody, U as GrantInput, Ut as SyncFindInput, V as GrantBody, Vt as SyncCopiesQuery, W as GrantView, Wt as SyncFindQuery, X as InboxNextQuery, Xt as SyncThreadView, Y as InboxItem, Yt as SyncReceiptInput, Z as InboxPushBody, Zt as SyncedView, _ as ChannelsQueryInput, _n as UploadStartBody, _t as RegisterBody, a as BlockTaskBody, an as TasksQueryInput, at as MatchesQuery, b as ClaimTaskBody, bt as ReleaseTaskBody, c as CHANNELS_LIMIT_DEFAULT, cn as ThreadSummaryView, ct as MessagesPage, d as CancelTaskBody, dn as ThreadsQuery, dt as PostInput, en as TaskClaim, et as LEASE_DEFAULT_S, f as ChannelMessagesQuery, fn as ThreadsQueryInput, ft as PrincipalInput, g as ChannelsQuery, gn as UpdateGrantInput, gt as Ref, h as ChannelsPage, hn as UpdateGrantBody, ht as ReactBody, i as AssignTaskBody, in as TasksQuery, it as MatchView, j as EVENTS_LAST_MAX, jt as SchedulesQueryOutput, k as DeleteBody, kt as SchedulesQuery, l as CHANNELS_LIMIT_MAX, ln as ThreadView, lt as ParsedFilters, m as ChannelView, mn as TypingResult, mt as REGISTERED_WATCHERS_MAX, n as ActorView, nn as TaskView, nt as LinkView, o as BlockView, on as ThreadQuery, ot as Me, p as ChannelMessagesQueryInput, pn as TypingBody, pt as PrincipalView, q as InboxAckBody, qt as SyncImportInput, r as ApiError, rn as TasksPage, rt as LinkedQuery, s as BoardEventView, sn as ThreadQueryInput, st as MessageView, t as AckBody, tn as TaskNeedsBody, tt as LabelBody, u as CanAt, un as ThreadsPage, ut as PostBody, v as ClaimReadyTaskBody, vn as UploadTicket, vt as RegisterInput, w as CreateTaskBody, wt as RouteName, x as CompleteTaskBody, xt as RenewTaskBody, y as ClaimReadyTaskInput, yn as routes, yt as RegistrationView, z as FiltersInput, zt as SourceReadQuery } from "./routes-ChGBn0K3.mjs";
2
- import { i as Claims, r as CallerRequest } from "./auth-C4VxPLYz.mjs";
3
- import { C as Method, D as SandboxPolicy, E as SandboxMatcher, O as SandboxPolicyOptions, S as HttpError, T as SandboxMatch, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, k as SandboxRule, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as Protocol, x as WriteSource, y as Write } from "./backend-Da_YEltI.mjs";
4
- import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-C4-r10SA.mjs";
5
- import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-BUtR_AHa.mjs";
1
+ import { $ as InboxNextQuery, $t as SyncThreadView, A as CreateTasksInput, At as ScheduleInput, B as Explanation, Bt as SourceMessage, C as ClaimTaskBody, Ct as ReleaseTaskBody, D as CreateTaskBody, Dt as RouteName, E as CreateGrantsBody, Et as RevokeGrantBody, F as EditBody, Ft as SchemaBody, G as GrantCan, Gt as SyncCopiesView, H as FiltersInput, Ht as SourceReadQuery, I as EventsPage, It as SchemaInput, J as GrantWriteOptions, Jt as SyncFindView, K as GrantInput, Kt as SyncFindInput, L as EventsQuery, Lt as SchemaView, M as DeleteBody, Mt as SchedulesQuery, N as Discovery, Nt as SchedulesQueryInput, O as CreateTaskInput, Ot as ScheduleBody, P as EVENTS_LAST_MAX, Pt as SchedulesQueryOutput, Q as InboxItem, Qt as SyncReceiptInput, R as EventsQueryInput, Rt as SourceJoin, S as ClaimReadyTaskInput, Sn as routes, St as RegistrationView, T as CreateChannelBody, Tt as ResolvedSyncTarget, U as GRANT_BATCH_MAX, Un as Attachment, Ut as SyncBody, V as FailTaskBody, Vt as SourceRead, W as GrantBody, Wt as SyncCopiesQuery, X as InboxAckBody, Xt as SyncImportInput, Y as INBOX_EVENT_ID_MAX, Yt as SyncImportBody, Z as InboxEntry, Zt as SyncReceiptBody, _ as ChannelView, _n as TypingResult, _t as REGISTERED_WATCHERS_MAX, a as ActorsQueryInput, an as TaskView, at as LinkView, b as ChannelsQueryInput, bn as UploadStartBody, bt as RegisterBody, c as BlockTaskBody, cn as TasksQueryInput, ct as MatchesQuery, d as CHANNELS_LIMIT_DEFAULT, dn as ThreadSummaryView, dt as MessagesPage, en as SyncedView, et as InboxPushBody, f as CHANNELS_LIMIT_MAX, fn as ThreadView, ft as ParsedFilters, g as ChannelMessagesQueryInput, gn as TypingBody, gt as PrincipalView, h as ChannelMessagesQuery, hn as ThreadsQueryInput, ht as PrincipalInput, i as ActorsQuery, in as TaskNeedsBody, it as LabelBody, j as CreatedTasksQuery, jt as ScheduleView, k as CreateTasksBody, kt as ScheduleBodyOutput, l as BlockView, ln as ThreadQuery, lt as Me, m as CancelTaskBody, mn as ThreadsQuery, mt as PostInput, n as AckBody, nn as THREADS_LIMIT_MAX, nt as LABEL_CONDITIONS_MAX, o as ApiError, on as TasksPage, ot as LinkedQuery, p as CanAt, pn as ThreadsPage, pt as PostBody, q as GrantView, qt as SyncFindQuery, r as ActorView, rn as TaskClaim, rt as LEASE_DEFAULT_S, s as AssignTaskBody, sn as TasksQuery, st as MatchView, t as ACTORS_BY_ID_MAX, tn as THREADS_LIMIT_DEFAULT, tt as InboxQuery, u as BoardEventView, un as ThreadQueryInput, ut as MessageView, v as ChannelsPage, vn as UpdateGrantBody, vt as ReactBody, w as CompleteTaskBody, wt as RenewTaskBody, x as ClaimReadyTaskBody, xn as UploadTicket, xt as RegisterInput, y as ChannelsQuery, yn as UpdateGrantInput, yt as Ref, z as ExplainQuery, zt as SourceJoinBody } from "./routes-DNmQSOvQ.mjs";
2
+ import { i as Claims, r as CallerRequest } from "./auth-ULldUvir.mjs";
3
+ import { C as Method, D as SandboxPolicy, E as SandboxMatcher, O as SandboxPolicyOptions, S as HttpError, T as SandboxMatch, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, k as SandboxRule, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as Protocol, x as WriteSource, y as Write } from "./backend-BHN6GTjB.mjs";
4
+ import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-CFHunEFn.mjs";
5
+ import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-BBmjHyCB.mjs";
6
6
  import { n as block } from "./blocks-DGvh2alZ.mjs";
7
7
  //#region src/server/index.default.d.ts
8
8
  /**
@@ -13,4 +13,4 @@ import { n as block } from "./blocks-DGvh2alZ.mjs";
13
13
  */
14
14
  export declare function board(options?: BoardOptions): Board;
15
15
  //#endregion
16
- export { type AckBody, type ActorView, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, type ParsedFilters, type PostBody, type PostInput, type PostOptions, type PrincipalInput, type PrincipalView, type ProfileOption, type Protocol, type ProtocolMethods, type REGISTERED_WATCHERS_MAX, type ReactBody, type Ref, type RegisterBody, type RegisterInput, type RegistrationView, type ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, type SelfCaller, type SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TypingBody, type TypingResult, type UpdateGrantBody, type UpdateGrantInput, type UploadInput, type UploadStartBody, type UploadTicket, type VerifiedCaller, type WaitOptions, type Watcher, type WatcherContext, type Write, type WritePatch, type WriteSource, type Written, block, createTasksInChunks, duration, type routes };
16
+ export { type ACTORS_BY_ID_MAX, type AckBody, type ActorView, type ActorsQuery, type ActorsQueryInput, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, type ParsedFilters, type PostBody, type PostInput, type PostOptions, type PrincipalInput, type PrincipalView, type ProfileOption, type Protocol, type ProtocolMethods, type REGISTERED_WATCHERS_MAX, type ReactBody, type Ref, type RegisterBody, type RegisterInput, type RegistrationView, type ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, type SelfCaller, type SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TypingBody, type TypingResult, type UpdateGrantBody, type UpdateGrantInput, type UploadInput, type UploadStartBody, type UploadTicket, type VerifiedCaller, type WaitOptions, type Watcher, type WatcherContext, type Write, type WritePatch, type WriteSource, type Written, block, createTasksInChunks, duration, type routes };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { f as BoardError, m as duration, t as HttpError } from "./errors-DbCKqGXp.mjs";
2
- import { t as DroppedError } from "./middleware-iVTNf5Su.mjs";
1
+ import { f as BoardError, m as duration, t as HttpError } from "./errors-DDfXnZ2b.mjs";
2
+ import { t as DroppedError } from "./middleware-BY4qqIh3.mjs";
3
3
  import { t as block } from "./blocks-CVoBC7ur.mjs";
4
- import { n as createTasksInChunks, r as createBoard, s as createVercel, t as TasksInChunksError } from "./exports-DI-MtN01.mjs";
4
+ import { n as createTasksInChunks, r as createBoard, s as createVercel, t as TasksInChunksError } from "./exports-JUhj5Bl3.mjs";
5
5
  //#region src/backend-vercel/index.default.ts
6
6
  /**
7
7
  * Your team's board, in Vercel's API. Outside Node there's no environment to find credentials or
@@ -24,7 +24,7 @@ function board(options = {}) {
24
24
  if (!fetch) throw new Error("board: pass a fetch that sends credentials Vercel's API takes, or a backend: outside Node there's no environment to find them in");
25
25
  return vercel({ fetch });
26
26
  },
27
- sync: () => import("./engine-D8YAsQS_.mjs"),
27
+ sync: () => import("./engine-C8wCzkw-.mjs"),
28
28
  serving: null,
29
29
  sandbox: null
30
30
  });
@@ -1,8 +1,8 @@
1
- import { $ as LABEL_CONDITIONS_MAX, $t as THREADS_LIMIT_MAX, A as Discovery, At as SchedulesQueryInput, B as GRANT_BATCH_MAX, Bn as Attachment, Bt as SyncBody, C as CreateGrantsBody, Ct as RevokeGrantBody, D as CreateTasksInput, Dt as ScheduleInput, E as CreateTasksBody, Et as ScheduleBodyOutput, F as EventsQueryInput, Ft as SourceJoin, G as GrantWriteOptions, Gt as SyncFindView, H as GrantCan, Ht as SyncCopiesView, I as ExplainQuery, It as SourceJoinBody, J as InboxEntry, Jt as SyncReceiptBody, K as INBOX_EVENT_ID_MAX, Kt as SyncImportBody, L as Explanation, Lt as SourceMessage, M as EditBody, Mt as SchemaBody, N as EventsPage, Nt as SchemaInput, O as CreatedTasksQuery, Ot as ScheduleView, P as EventsQuery, Pt as SchemaView, Q as InboxQuery, Qt as THREADS_LIMIT_DEFAULT, R as FailTaskBody, Rt as SourceRead, S as CreateChannelBody, St as ResolvedSyncTarget, T as CreateTaskInput, Tt as ScheduleBody, U as GrantInput, Ut as SyncFindInput, V as GrantBody, Vt as SyncCopiesQuery, W as GrantView, Wt as SyncFindQuery, X as InboxNextQuery, Xt as SyncThreadView, Y as InboxItem, Yt as SyncReceiptInput, Z as InboxPushBody, Zt as SyncedView, _ as ChannelsQueryInput, _n as UploadStartBody, _t as RegisterBody, a as BlockTaskBody, an as TasksQueryInput, at as MatchesQuery, b as ClaimTaskBody, bt as ReleaseTaskBody, c as CHANNELS_LIMIT_DEFAULT, cn as ThreadSummaryView, ct as MessagesPage, d as CancelTaskBody, dn as ThreadsQuery, dt as PostInput, en as TaskClaim, et as LEASE_DEFAULT_S, f as ChannelMessagesQuery, fn as ThreadsQueryInput, ft as PrincipalInput, g as ChannelsQuery, gn as UpdateGrantInput, gt as Ref, h as ChannelsPage, hn as UpdateGrantBody, ht as ReactBody, i as AssignTaskBody, in as TasksQuery, it as MatchView, j as EVENTS_LAST_MAX, jt as SchedulesQueryOutput, k as DeleteBody, kt as SchedulesQuery, l as CHANNELS_LIMIT_MAX, ln as ThreadView, lt as ParsedFilters, m as ChannelView, mn as TypingResult, mt as REGISTERED_WATCHERS_MAX, n as ActorView, nn as TaskView, nt as LinkView, o as BlockView, on as ThreadQuery, ot as Me, p as ChannelMessagesQueryInput, pn as TypingBody, pt as PrincipalView, q as InboxAckBody, qt as SyncImportInput, r as ApiError, rn as TasksPage, rt as LinkedQuery, s as BoardEventView, sn as ThreadQueryInput, st as MessageView, t as AckBody, tn as TaskNeedsBody, tt as LabelBody, u as CanAt, un as ThreadsPage, ut as PostBody, v as ClaimReadyTaskBody, vn as UploadTicket, vt as RegisterInput, w as CreateTaskBody, wt as RouteName, x as CompleteTaskBody, xt as RenewTaskBody, y as ClaimReadyTaskInput, yn as routes, yt as RegistrationView, z as FiltersInput, zt as SourceReadQuery } from "./routes-ChGBn0K3.mjs";
2
- import { i as Claims, r as CallerRequest } from "./auth-C4VxPLYz.mjs";
3
- import { C as Method, D as SandboxPolicy, E as SandboxMatcher, O as SandboxPolicyOptions, S as HttpError, T as SandboxMatch, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, k as SandboxRule, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as Protocol, x as WriteSource, y as Write } from "./backend-Da_YEltI.mjs";
4
- import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-C4-r10SA.mjs";
5
- import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-BUtR_AHa.mjs";
1
+ import { $ as InboxNextQuery, $t as SyncThreadView, A as CreateTasksInput, At as ScheduleInput, B as Explanation, Bt as SourceMessage, C as ClaimTaskBody, Ct as ReleaseTaskBody, D as CreateTaskBody, Dt as RouteName, E as CreateGrantsBody, Et as RevokeGrantBody, F as EditBody, Ft as SchemaBody, G as GrantCan, Gt as SyncCopiesView, H as FiltersInput, Ht as SourceReadQuery, I as EventsPage, It as SchemaInput, J as GrantWriteOptions, Jt as SyncFindView, K as GrantInput, Kt as SyncFindInput, L as EventsQuery, Lt as SchemaView, M as DeleteBody, Mt as SchedulesQuery, N as Discovery, Nt as SchedulesQueryInput, O as CreateTaskInput, Ot as ScheduleBody, P as EVENTS_LAST_MAX, Pt as SchedulesQueryOutput, Q as InboxItem, Qt as SyncReceiptInput, R as EventsQueryInput, Rt as SourceJoin, S as ClaimReadyTaskInput, Sn as routes, St as RegistrationView, T as CreateChannelBody, Tt as ResolvedSyncTarget, U as GRANT_BATCH_MAX, Un as Attachment, Ut as SyncBody, V as FailTaskBody, Vt as SourceRead, W as GrantBody, Wt as SyncCopiesQuery, X as InboxAckBody, Xt as SyncImportInput, Y as INBOX_EVENT_ID_MAX, Yt as SyncImportBody, Z as InboxEntry, Zt as SyncReceiptBody, _ as ChannelView, _n as TypingResult, _t as REGISTERED_WATCHERS_MAX, a as ActorsQueryInput, an as TaskView, at as LinkView, b as ChannelsQueryInput, bn as UploadStartBody, bt as RegisterBody, c as BlockTaskBody, cn as TasksQueryInput, ct as MatchesQuery, d as CHANNELS_LIMIT_DEFAULT, dn as ThreadSummaryView, dt as MessagesPage, en as SyncedView, et as InboxPushBody, f as CHANNELS_LIMIT_MAX, fn as ThreadView, ft as ParsedFilters, g as ChannelMessagesQueryInput, gn as TypingBody, gt as PrincipalView, h as ChannelMessagesQuery, hn as ThreadsQueryInput, ht as PrincipalInput, i as ActorsQuery, in as TaskNeedsBody, it as LabelBody, j as CreatedTasksQuery, jt as ScheduleView, k as CreateTasksBody, kt as ScheduleBodyOutput, l as BlockView, ln as ThreadQuery, lt as Me, m as CancelTaskBody, mn as ThreadsQuery, mt as PostInput, n as AckBody, nn as THREADS_LIMIT_MAX, nt as LABEL_CONDITIONS_MAX, o as ApiError, on as TasksPage, ot as LinkedQuery, p as CanAt, pn as ThreadsPage, pt as PostBody, q as GrantView, qt as SyncFindQuery, r as ActorView, rn as TaskClaim, rt as LEASE_DEFAULT_S, s as AssignTaskBody, sn as TasksQuery, st as MatchView, t as ACTORS_BY_ID_MAX, tn as THREADS_LIMIT_DEFAULT, tt as InboxQuery, u as BoardEventView, un as ThreadQueryInput, ut as MessageView, v as ChannelsPage, vn as UpdateGrantBody, vt as ReactBody, w as CompleteTaskBody, wt as RenewTaskBody, x as ClaimReadyTaskBody, xn as UploadTicket, xt as RegisterInput, y as ChannelsQuery, yn as UpdateGrantInput, yt as Ref, z as ExplainQuery, zt as SourceJoinBody } from "./routes-DNmQSOvQ.mjs";
2
+ import { i as Claims, r as CallerRequest } from "./auth-ULldUvir.mjs";
3
+ import { C as Method, D as SandboxPolicy, E as SandboxMatcher, O as SandboxPolicyOptions, S as HttpError, T as SandboxMatch, _ as Middleware, a as Identity, b as WritePatch, c as SelfCaller, d as AsOptions, f as Board, g as DroppedError, h as WatcherContext, i as Caller, k as SandboxRule, l as Subscription, m as Watcher, n as BackendRoute, o as InboxDelivery, p as BoardOptions, r as BoardBinding, s as ProtocolMethods, t as Backend, u as VerifiedCaller, v as MiddlewareContext, w as Protocol, x as WriteSource, y as Write } from "./backend-BHN6GTjB.mjs";
4
+ import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-CFHunEFn.mjs";
5
+ import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-BBmjHyCB.mjs";
6
6
  import { n as block } from "./blocks-DGvh2alZ.mjs";
7
- import { t as board } from "./index-BTuTaBaK.mjs";
8
- export { type AckBody, type ActorView, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, type ParsedFilters, type PostBody, type PostInput, type PostOptions, type PrincipalInput, type PrincipalView, type ProfileOption, type Protocol, type ProtocolMethods, type REGISTERED_WATCHERS_MAX, type ReactBody, type Ref, type RegisterBody, type RegisterInput, type RegistrationView, type ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, type SelfCaller, type SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TypingBody, type TypingResult, type UpdateGrantBody, type UpdateGrantInput, type UploadInput, type UploadStartBody, type UploadTicket, type VerifiedCaller, type WaitOptions, type Watcher, type WatcherContext, type Write, type WritePatch, type WriteSource, type Written, block, board, createTasksInChunks, duration, type routes };
7
+ import { t as board } from "./index-Ce3SDZ3Y.mjs";
8
+ export { type ACTORS_BY_ID_MAX, type AckBody, type ActorView, type ActorsQuery, type ActorsQueryInput, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type CHANNELS_LIMIT_DEFAULT, type CHANNELS_LIMIT_MAX, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelMessagesQuery, type ChannelMessagesQueryInput, type ChannelView, type ChannelsPage, type ChannelsQuery, type ChannelsQueryInput, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, type CreateGrantsBody, type CreateTaskBody, type CreateTaskInput, type CreateTasksBody, type CreateTasksInput, type CreatedTasksQuery, type DeleteBody, type Discovery, DroppedError, type EVENTS_LAST_MAX, type EditBody, type EventsOptions, type EventsPage, type EventsQuery, type EventsQueryInput, type EventsState, type ExplainPrincipal, type ExplainQuery, type Explanation, type FailTaskBody, type Filters, type FiltersInput, type GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, type HeldTask, HttpError, type INBOX_EVENT_ID_MAX, type Identity, type InboxAckBody, type InboxDelivery, type InboxEntry, type InboxItem, type InboxNextQuery, type InboxPushBody, type InboxQuery, type LABEL_CONDITIONS_MAX, type LEASE_DEFAULT_S, type LabelBody, type LinkView, type LinkedQuery, type MatchView, type MatchesQuery, type Me, type Mentioned, type MentionedActor, type MessageView, type MessagesPage, type Method, type Middleware, type MiddlewareContext, type NewTaskOptions, type ParsedFilters, type PostBody, type PostInput, type PostOptions, type PrincipalInput, type PrincipalView, type ProfileOption, type Protocol, type ProtocolMethods, type REGISTERED_WATCHERS_MAX, type ReactBody, type Ref, type RegisterBody, type RegisterInput, type RegistrationView, type ReleaseTaskBody, type RenewTaskBody, type ReplyOptions, type ResolvedSyncTarget, type RevokeGrantBody, type RouteName, type SandboxMatch, type SandboxMatcher, type SandboxPolicy, type SandboxPolicyOptions, type SandboxRule, type ScheduleBody, type ScheduleBodyOutput, type ScheduleInput, type ScheduleOptions, type ScheduleTiming, type ScheduleView, type SchedulesQuery, type SchedulesQueryInput, type SchedulesQueryOutput, type SchemaBody, type SchemaInput, type SchemaView, type SelfCaller, type SourceJoin, type SourceJoinBody, type SourceMessage, type SourceRead, type SourceReadQuery, type Subscription, type SyncBody, type SyncCopiesQuery, type SyncCopiesView, type SyncFindInput, type SyncFindQuery, type SyncFindView, type SyncImportBody, type SyncImportInput, type SyncReceiptBody, type SyncReceiptInput, type SyncThreadView, type SyncedView, type THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, type TaskBatches, type TaskClaim, type TaskInBatch, type TaskNeedsBody, type TaskOptions, type TaskView, TasksInChunksError, type TasksPage, type TasksQuery, type TasksQueryInput, type ThreadQuery, type ThreadQueryInput, type ThreadSummaryView, type ThreadView, type ThreadsPage, type ThreadsQuery, type ThreadsQueryInput, type TypingBody, type TypingResult, type UpdateGrantBody, type UpdateGrantInput, type UploadInput, type UploadStartBody, type UploadTicket, type VerifiedCaller, type WaitOptions, type Watcher, type WatcherContext, type Write, type WritePatch, type WriteSource, type Written, block, board, createTasksInChunks, duration, type routes };