@vercel/board 0.49.0 → 0.50.2

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 (74) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +6 -2
  3. package/dist/{access-B8DnrnHa.mjs → access-BbgmsAFF.mjs} +2 -2
  4. package/dist/access.mjs +5 -5
  5. package/dist/{actors-DewJKyqy.mjs → actors-CX2D22hL.mjs} +3 -3
  6. package/dist/{auth-CEU06Nyp.mjs → auth-DJDTfgAL.mjs} +2 -2
  7. package/dist/{backend-BzCXxVZ-.d.mts → backend-C2JUnbm5.d.mts} +19 -5
  8. package/dist/backend-local.d.mts +1 -1
  9. package/dist/backend-local.mjs +1 -1
  10. package/dist/{chat-provider-BS_fr61g.mjs → chat-provider-Br2RXgLV.mjs} +4 -3
  11. package/dist/{chat-provider-DQ1GHm4o.d.mts → chat-provider-z4nzV8A-.d.mts} +1 -1
  12. package/dist/cli-embedded.d.mts +11 -2
  13. package/dist/cli-embedded.mjs +12 -3
  14. package/dist/cli.mjs +5 -5
  15. package/dist/{conformance-0xONNKcB.mjs → conformance-jHhuKZe8.mjs} +3 -3
  16. package/dist/conformance.d.mts +1 -1
  17. package/dist/conformance.mjs +1 -1
  18. package/dist/{engine-BH_nfJ3N.mjs → engine-I887QHnP.mjs} +20 -10
  19. package/dist/{errors-DwV7I0g4.mjs → errors-DYF4hhIc.mjs} +1 -1
  20. package/dist/{events-B76-4bNp.mjs → events-mWKc1uvZ.mjs} +3 -3
  21. package/dist/{exports-DLzyKwEp.mjs → exports-DRId1Cks.mjs} +147 -65
  22. package/dist/{exports-CKEK1fxf.d.mts → exports-DkdCh3Zi.d.mts} +1 -1
  23. package/dist/{external-BLI4W_-V.mjs → external-DkWafjn-.mjs} +6 -2
  24. package/dist/{index-DxqSw8yd.d.mts → index-DpuOtt0J.d.mts} +2 -2
  25. package/dist/index.d.mts +2 -2
  26. package/dist/index.mjs +4 -4
  27. package/dist/index.node.d.mts +3 -3
  28. package/dist/index.node.mjs +4 -4
  29. package/dist/inspect/app.js +35 -35
  30. package/dist/inspect/engine.js +3 -3
  31. package/dist/inspect-DLLoYeg7.mjs +2 -0
  32. package/dist/{inspect-B2ImmOvw.mjs → inspect-DSBG5VDl.mjs} +3 -3
  33. package/dist/inspect.mjs +2 -2
  34. package/dist/{local-DPpSEq2_.mjs → local-DjrvtIoE.mjs} +46 -24
  35. package/dist/{main-CqX7JqzE.mjs → main-VTkjxFcG.mjs} +27 -15
  36. package/dist/{memory-DzqkXIB-.mjs → memory-wmUDblhm.mjs} +2 -2
  37. package/dist/{middleware-ysFm2S4v.mjs → middleware-DUKIITFZ.mjs} +3 -3
  38. package/dist/{provider-Dwb_9mnu.d.mts → provider-BgUS6ZpP.d.mts} +2 -0
  39. package/dist/{routes-qS92xz8U.mjs → routes-BSBUdD2X.mjs} +9 -9
  40. package/dist/{schemas-TeVe4Udh.mjs → schemas-CUSTEFIy.mjs} +7 -1
  41. package/dist/{serve-CYr4RwRM.mjs → serve-C2xn_cQV.mjs} +8 -7
  42. package/dist/{server-V7qyVUiJ.mjs → server-BLQxoL0g.mjs} +79 -39
  43. package/dist/{serving-BzNxlnDV.mjs → serving-Bulte-NO.mjs} +1 -1
  44. package/dist/{shell-BLHZoP-x.mjs → shell-Bny3-l_d.mjs} +1 -1
  45. package/dist/{sql-DIKQd5Me.mjs → sql-D0MqINA6.mjs} +18 -5
  46. package/dist/{sqlite-BF9kBDh1.mjs → sqlite-Dj2ZEtgy.mjs} +2 -2
  47. package/dist/{sqlite-db-CSYwiZ4E.mjs → sqlite-db-DjbTlUwN.mjs} +1 -1
  48. package/dist/sync-chat-sdk.d.mts +2 -2
  49. package/dist/sync-chat-sdk.mjs +2 -2
  50. package/dist/sync-github.d.mts +2 -2
  51. package/dist/sync-github.mjs +3 -3
  52. package/dist/sync-linear.d.mts +2 -2
  53. package/dist/sync-linear.mjs +3 -3
  54. package/dist/sync-slack.d.mts +20 -3
  55. package/dist/sync-slack.mjs +36 -12
  56. package/dist/sync.d.mts +1 -1
  57. package/dist/sync.mjs +2 -2
  58. package/dist/{tags-BpFo6q0_.mjs → tags-CxDCF_tt.mjs} +2 -2
  59. package/dist/{task-batch-CujTLmTB.mjs → task-batch-CE6BKnRw.mjs} +6 -6
  60. package/dist/{tokens-BmCDAT4N.mjs → tokens-DnDHSPml.mjs} +30 -7
  61. package/dist/{version-BCoWGLEW.mjs → version-DWvOShz3.mjs} +1 -1
  62. package/docs/01-board/01-mounting.md +1 -1
  63. package/docs/01-board/03-identity.md +3 -2
  64. package/docs/01-board/07-schedules.md +1 -1
  65. package/docs/02-sync/01-overview.md +5 -4
  66. package/docs/02-sync/03-slack.md +4 -3
  67. package/docs/03-guides/01-coding-agents.md +1 -1
  68. package/docs/03-guides/06-sandboxed-agents.md +22 -21
  69. package/docs/04-reference/01-cli.md +24 -10
  70. package/docs/04-reference/02-board.md +6 -4
  71. package/docs/04-reference/03-http.md +4 -3
  72. package/docs/index.md +1 -1
  73. package/package.json +14 -2
  74. package/dist/inspect-DnRQUmP8.mjs +0 -2
@@ -1,15 +1,15 @@
1
1
  import { i as ATTACHMENT_BYTES_MAX, l as mediaType, n as formatProfileHeader, o as IMPORT_BYTES_MAX, s as fileName } from "./profile-header-Cj0Cb1cf.mjs";
2
- import { v as RESERVED_LABEL_PREFIX, w as TASK_LABEL, y as RemoteWatcherId } from "./schemas-TeVe4Udh.mjs";
3
- import { A as Ref, B as SyncBody, C as InboxQuery, D as MessagesQuery, E as MatchesQuery, F as ScheduleBody, G as TaskNeedsBody, H as SyncFindQuery, I as SchedulesQuery, J as TypingBody, K as TasksQuery, L as SchemaBody, M as ReleaseTaskBody, N as RenewTaskBody, O as PostBody, P as RevokeGrantBody, R as SourceJoinBody, S as InboxPushBody, T as LinkedQuery, U as SyncImportBody, V as SyncCopiesQuery, W as SyncReceiptBody, X as UploadStartBody, Y as UpdateGrantBody, Z as routes, _ as FailTaskBody, a as ClaimReadyTaskBody, b as InboxAckBody, c as CreateChannelBody, d as CreateTasksBody, f as CreatedTasksQuery, g as ExplainQuery, h as EventsQuery, i as CancelTaskBody, j as RegisterBody, k as ReactBody, l as CreateGrantsBody, m as EditBody, n as AssignTaskBody, o as ClaimTaskBody, p as DeleteBody, q as ThreadsQuery, r as BlockTaskBody, s as CompleteTaskBody, t as AckBody, u as CreateTaskBody, w as LabelBody, x as InboxNextQuery, y as GrantBody, z as SourceReadQuery } from "./routes-qS92xz8U.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-DwV7I0g4.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-ysFm2S4v.mjs";
2
+ import { T as TASK_LABEL, b as RemoteWatcherId, y as RESERVED_LABEL_PREFIX } from "./schemas-CUSTEFIy.mjs";
3
+ import { A as Ref, B as SyncBody, C as InboxQuery, D as MessagesQuery, E as MatchesQuery, F as ScheduleBody, G as TaskNeedsBody, H as SyncFindQuery, I as SchedulesQuery, J as TypingBody, K as TasksQuery, L as SchemaBody, M as ReleaseTaskBody, N as RenewTaskBody, O as PostBody, P as RevokeGrantBody, R as SourceJoinBody, S as InboxPushBody, T as LinkedQuery, U as SyncImportBody, V as SyncCopiesQuery, W as SyncReceiptBody, X as UploadStartBody, Y as UpdateGrantBody, Z as routes, _ as FailTaskBody, a as ClaimReadyTaskBody, b as InboxAckBody, c as CreateChannelBody, d as CreateTasksBody, f as CreatedTasksQuery, g as ExplainQuery, h as EventsQuery, i as CancelTaskBody, j as RegisterBody, k as ReactBody, l as CreateGrantsBody, m as EditBody, n as AssignTaskBody, o as ClaimTaskBody, p as DeleteBody, q as ThreadsQuery, r as BlockTaskBody, s as CompleteTaskBody, t as AckBody, u as CreateTaskBody, w as LabelBody, x as InboxNextQuery, y as GrantBody, z as SourceReadQuery } from "./routes-BSBUdD2X.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-DYF4hhIc.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-DUKIITFZ.mjs";
6
6
  import { n as blocksIn, r as findBlocks } from "./blocks-CVoBC7ur.mjs";
7
7
  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-BCoWGLEW.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-B8DnrnHa.mjs";
10
- import { a as runMatch, d as openapi, f as queryObject, h as SYNC, 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-CujTLmTB.mjs";
11
- import { C as verifiesTokens, E as explainGrants, S as verifiedIssuers, d as createAuthority, f as fromTokens, m as hostPrincipal, o as VERCEL_ISSUER, p as grantIssuers, t as DEFAULT_CAN$1, v as namesByLogin } from "./auth-CEU06Nyp.mjs";
12
- import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-DewJKyqy.mjs";
8
+ import { t as VERSION } from "./version-DWvOShz3.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-BbgmsAFF.mjs";
10
+ import { a as runMatch, d as openapi, f as queryObject, h as SYNC, 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-CE6BKnRw.mjs";
11
+ import { C as verifiesTokens, E as explainGrants, S as verifiedIssuers, d as createAuthority, f as fromTokens, m as hostPrincipal, o as VERCEL_ISSUER, p as grantIssuers, t as DEFAULT_CAN$1, v as namesByLogin } from "./auth-DJDTfgAL.mjs";
12
+ import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-CX2D22hL.mjs";
13
13
  import { t as checkValue } from "./data-values-CoTP0SQG.mjs";
14
14
  //#region src/server/registrant.ts
15
15
  /** Registering again this soon after the same registration only repeats it. */
@@ -311,6 +311,8 @@ const sleep = (ms, signal) => new Promise((resolve) => {
311
311
  });
312
312
  //#endregion
313
313
  //#region src/server/sandbox.ts
314
+ /** What `vb` in a sandbox sends as its credential, for the policy's proxy to replace. */
315
+ const SANDBOX_TOKEN = "set-by-the-network-policy";
314
316
  /** Outside Node there's no deployment credential to find: a sandbox's policy needs the one it's given. */
315
317
  const withoutToken = (url) => {
316
318
  throw new HttpError(400, "no_token", `There's no credential here to hand a sandbox for ${url}: pass one, sandboxPolicy({ token }).`, { origin: "handle" });
@@ -384,6 +386,7 @@ const refused = (why) => ({ response: {
384
386
  * The policy that hands the board `reach` names to a sandbox: its host, and on it only the board's
385
387
  * own routes, under its URL's path and with its query (`teamId`), each request carrying `reach`'s
386
388
  * headers. Anything else on the host is refused there; any other host, the sandbox doesn't reach.
389
+ * Its `env` points `vb` in the sandbox at the board.
387
390
  */
388
391
  function boardPolicy(reach) {
389
392
  const url = new URL(reach.url);
@@ -397,34 +400,40 @@ function boardPolicy(reach) {
397
400
  queryString: query
398
401
  } : match;
399
402
  const transform = [{ headers: { ...reach.headers } }];
400
- return { allow: { [url.host]: [
401
- {
402
- match: { path: { regex: "(?:^|/)\\.\\.?(?:/|$)|%2[eEfF]|%5[cC]|\\\\" } },
403
- ...refused("not a board route")
404
- },
405
- {
406
- match: { queryString: [{ key: { regex: `^${caseless("x-vercel-set-bypass-cookie")}$` } }] },
407
- ...refused("not a board route")
408
- },
409
- {
410
- match: { headers: [{ key: { exact: "x-vercel-set-bypass-cookie" } }] },
411
- ...refused("not a board route")
412
- },
413
- ...routeRules(prefix, reach.routes, scoped, transform),
414
- ...(reach.under ?? []).flatMap(({ path, routes }) => routeRules(escaped(path.replace(/\/+$/, "")), routes, scoped, transform)),
415
- ...(reach.reads ?? []).map((path) => ({
416
- match: scoped({
417
- path: { exact: path },
418
- method: ["GET"]
419
- }),
420
- transform
421
- })),
422
- {
423
- match: { path: { regex: `^${prefix}/(?:${WITHHELD.map(caseless).join("|")})(?:/|$)` } },
424
- ...refused("not a route this sandbox's policy hands it")
425
- },
426
- refused("not this board's")
427
- ] } };
403
+ return {
404
+ allow: { [url.host]: [
405
+ {
406
+ match: { path: { regex: "(?:^|/)\\.\\.?(?:/|$)|%2[eEfF]|%5[cC]|\\\\" } },
407
+ ...refused("not a board route")
408
+ },
409
+ {
410
+ match: { queryString: [{ key: { regex: `^${caseless("x-vercel-set-bypass-cookie")}$` } }] },
411
+ ...refused("not a board route")
412
+ },
413
+ {
414
+ match: { headers: [{ key: { exact: "x-vercel-set-bypass-cookie" } }] },
415
+ ...refused("not a board route")
416
+ },
417
+ ...routeRules(prefix, reach.routes, scoped, transform),
418
+ ...(reach.under ?? []).flatMap(({ path, routes }) => routeRules(escaped(path.replace(/\/+$/, "")), routes, scoped, transform)),
419
+ ...(reach.reads ?? []).map((path) => ({
420
+ match: scoped({
421
+ path: { exact: path },
422
+ method: ["GET"]
423
+ }),
424
+ transform
425
+ })),
426
+ {
427
+ match: { path: { regex: `^${prefix}/(?:${WITHHELD.map(caseless).join("|")})(?:/|$)` } },
428
+ ...refused("not a route this sandbox's policy hands it")
429
+ },
430
+ refused("not this board's")
431
+ ] },
432
+ env: {
433
+ BOARD_URL: reach.url,
434
+ BOARD_TOKEN: SANDBOX_TOKEN
435
+ }
436
+ };
428
437
  }
429
438
  //#endregion
430
439
  //#region src/server/backend-vercel.ts
@@ -1534,13 +1543,14 @@ function createVercel(options, environment) {
1534
1543
  /**
1535
1544
  * An actor as the API names them, asked for by ID with everyone else named in the same turn: the
1536
1545
  * authors on a page cost one request however many actors the board has. Undefined for one the API
1537
- * doesn't have or a read that failed, which isn't kept; null when the API doesn't answer by ID.
1546
+ * doesn't have or a read that failed, which isn't kept; null when the API doesn't answer by ID. `strict` rejects
1547
+ * where the read failed, for a caller that must tell that from an actor the API doesn't have.
1538
1548
  */
1539
- function byId(who, id) {
1549
+ function byId(who, id, strict = false) {
1540
1550
  const names = namesOf(who);
1541
1551
  const { asked } = names;
1542
1552
  const kept = asked.get(id);
1543
- if (kept && Date.now() - kept.at <= NAMES_FRESH_MS) return kept.view;
1553
+ if (kept && Date.now() - kept.at <= NAMES_FRESH_MS) return strict && kept.failing || kept.view;
1544
1554
  let batch = names.asking;
1545
1555
  if (!batch || batch.ids.length >= NAMED_AT_ONCE) {
1546
1556
  const ids = [];
@@ -1554,15 +1564,17 @@ function createVercel(options, environment) {
1554
1564
  batch = names.asking = next;
1555
1565
  }
1556
1566
  batch.ids.push(id);
1557
- const view = batch.views.then((views) => views === null ? null : views.get(id), () => {
1567
+ const failing = batch.views.then((views) => views === null ? null : views.get(id));
1568
+ const view = failing.catch(() => {
1558
1569
  if (asked.get(id)?.view === view) asked.delete(id);
1559
1570
  });
1560
1571
  if (asked.size >= 1e4) asked.clear();
1561
1572
  asked.set(id, {
1562
1573
  at: Date.now(),
1563
- view
1574
+ view,
1575
+ failing
1564
1576
  });
1565
- return view;
1577
+ return strict ? failing : view;
1566
1578
  }
1567
1579
  /**
1568
1580
  * The name of the project `actor` is of, one of its deployments or their agents: as its own actor names it,
@@ -1866,8 +1878,10 @@ function createVercel(options, environment) {
1866
1878
  /**
1867
1879
  * What `--mentions` matches, in a message's text, as on any board: `me` is the caller's handle and
1868
1880
  * actor ID, as the API names them. Anyone else is the name as written and what's under it: a
1869
- * person's agents (`@julian/claude`), a project's imports. The API keeps no mentions, so this reads
1870
- * them from the text of each message a read covers.
1881
+ * person's agents (`@julian/claude`), a project's imports. A mention board() settled to an actor's
1882
+ * ID (`@[vercel:user:u_jb+claude]`) matches by that actor's handle, as the API names them, asked
1883
+ * for by ID; one the API doesn't name matches by its ID alone. The API keeps no mentions, so this
1884
+ * reads them from the text of each message a read covers.
1871
1885
  */
1872
1886
  async function mentionsOf(who, value) {
1873
1887
  if (value === void 0) return void 0;
@@ -1880,7 +1894,26 @@ function createVercel(options, environment) {
1880
1894
  terms = [mentionTerm(value)];
1881
1895
  prefixes = [value.includes(":") ? `${value}+` : `${mentionTerm(value)}/`];
1882
1896
  }
1883
- return (text) => mentionTerms(text).some((term) => terms.includes(term) || prefixes.some((prefix) => term.startsWith(prefix)));
1897
+ const named = (term) => terms.includes(term) || prefixes.some((prefix) => term.startsWith(prefix));
1898
+ const ids = (text) => value === "me" || value.includes(":") ? [] : mentionTerms(text).filter((term) => principalFrom(term) !== null);
1899
+ /**
1900
+ * The handle an ID goes by as the actors list shows it, which is what a `@handle` settles from: the API's own
1901
+ * (`pong/claude`), a deployment by its project's name. None for an ID the API names no one by: a handle made up
1902
+ * from it (an agent by its profile alone) would name another's. A read of the actors that fails fails this, so
1903
+ * a wait reads the same change again rather than going on past a mention it couldn't check.
1904
+ */
1905
+ const handleOf = async (id) => {
1906
+ const view = namesById ? await byId(who, id, true) : null;
1907
+ const found = view === null ? await listed(who, id) : view;
1908
+ return found ? shownHandle(id, found, projectNamesOf([[id, found]])) : null;
1909
+ };
1910
+ const mentioned = async (text) => {
1911
+ if (mentionTerms(text).some(named)) return true;
1912
+ return (await Promise.all(ids(text).map(handleOf))).some((handle) => handle !== null && named(mentionTerm(handle)));
1913
+ };
1914
+ return Object.assign(mentioned, { ahead: (texts) => {
1915
+ if (namesById) for (const text of texts) for (const id of ids(text)) byId(who, id);
1916
+ } });
1884
1917
  }
1885
1918
  const narrowOf = async (who, filters) => ({
1886
1919
  by: await byOf(who, filters.by),
@@ -1894,7 +1927,7 @@ function createVercel(options, environment) {
1894
1927
  async function matches(filters, message, thread, narrow) {
1895
1928
  if (filters.re !== void 0 && filters.re !== message.id && filters.re !== idAt(thread.id, 1)) return false;
1896
1929
  if (narrow.by && !narrow.by(message.createdBy)) return false;
1897
- if (filters.mentions !== void 0 && !narrow.mentions?.(message.text)) return false;
1930
+ if (filters.mentions !== void 0 && !await narrow.mentions?.(message.text)) return false;
1898
1931
  if (filters.from !== void 0 && !await narrow.source?.(message)) return false;
1899
1932
  if (filters.text !== void 0 && !message.text.toLowerCase().includes(filters.text.toLowerCase())) return false;
1900
1933
  for (const [key, values] of filters.label ?? []) {
@@ -2182,10 +2215,16 @@ function createVercel(options, environment) {
2182
2215
  }))))).flat();
2183
2216
  }
2184
2217
  const narrow = await narrowOf(who, filters);
2218
+ const read = [];
2219
+ for (const { thread, channel } of threads) read.push({
2220
+ thread,
2221
+ channel,
2222
+ all: whole(thread) ?? await threadMessages(who, thread.id, signal)
2223
+ });
2224
+ narrow.mentions?.ahead(read.flatMap(({ all }) => all.map((message) => message.text)));
2185
2225
  let newest = 0;
2186
2226
  const messages = [];
2187
- for (const { thread, channel } of threads) {
2188
- const all = whole(thread) ?? await threadMessages(who, thread.id, signal);
2227
+ for (const { thread, channel, all } of read) {
2189
2228
  const labeled = labeledBy(thread, all.find((message) => message.sequence === 1));
2190
2229
  for (const message of all) {
2191
2230
  newest = Math.max(newest, message.createdAt);
@@ -2366,6 +2405,7 @@ function createVercel(options, environment) {
2366
2405
  }))).sort((a, b) => a.change.createdAt - b.change.createdAt);
2367
2406
  const events = [];
2368
2407
  naming(who, merged.flatMap(({ change }) => [change.actor, ...change.currentMessage ? [change.currentMessage.createdBy] : []]));
2408
+ narrow.mentions?.ahead(merged.flatMap(({ change }) => change.currentMessage ? [change.currentMessage.text] : []));
2369
2409
  const start = {
2370
2410
  ...position.past !== void 0 ? { past: position.past } : {},
2371
2411
  ...position.floor !== void 0 ? { floor: position.floor } : {}
@@ -2462,6 +2502,7 @@ function createVercel(options, environment) {
2462
2502
  },
2463
2503
  signal
2464
2504
  });
2505
+ narrow.mentions?.ahead(page.messages.map((message) => message.text));
2465
2506
  for (const message of page.messages) if (await keep(message)) kept.push(message);
2466
2507
  return {
2467
2508
  messages: kept.slice(-limit),
@@ -2479,6 +2520,7 @@ function createVercel(options, environment) {
2479
2520
  signal
2480
2521
  });
2481
2522
  cursor = page.cursor;
2523
+ narrow.mentions?.ahead(page.messages.map((message) => message.text));
2482
2524
  for (const message of page.messages) if (await keep(message)) kept.push(message);
2483
2525
  if (page.messages.length === 0) break;
2484
2526
  }
@@ -2508,6 +2550,7 @@ function createVercel(options, environment) {
2508
2550
  cursor = page.cursor;
2509
2551
  const events = [];
2510
2552
  naming(who, page.events.flatMap((change) => [change.actor, ...change.currentMessage ? [change.currentMessage.createdBy] : []]));
2553
+ narrow.mentions?.ahead(page.events.flatMap((change) => change.currentMessage ? [change.currentMessage.text] : []));
2511
2554
  for (const change of page.events) {
2512
2555
  const message = change.currentMessage;
2513
2556
  const found = message && change.threadId ? {
@@ -2741,11 +2784,19 @@ function createVercel(options, environment) {
2741
2784
  }
2742
2785
  /** A match as vboard hands it out: its event as `vb tail --json` prints it, with its message as it is now. */
2743
2786
  async function matchOf(who, match, filters) {
2744
- const found = await messageIn(who, match.event.messageId).catch((error) => {
2787
+ const current = match.event.currentMessage;
2788
+ const found = current && !filters.label?.length ? {
2789
+ message: current,
2790
+ thread: {
2791
+ id: match.threadId,
2792
+ channelId: match.event.channelId
2793
+ },
2794
+ channel: await channelById(who, match.event.channelId)
2795
+ } : await messageIn(who, match.event.messageId).catch((error) => {
2745
2796
  if (error instanceof HttpError && error.status === 404) return null;
2746
2797
  throw error;
2747
2798
  });
2748
- if (!found) return null;
2799
+ if (!found?.channel) return null;
2749
2800
  const { channel } = found;
2750
2801
  const event = match.event.type === "thread.synced" ? await syncedOf(who, match, found.message, channel.name) : await eventOf(who, match.event, channel.name, match.id, filters, await narrowOf(who, filters), found);
2751
2802
  if (!event?.message) return null;
@@ -4993,9 +5044,11 @@ async function createServe(context) {
4993
5044
  const watch = options.watch ?? {};
4994
5045
  const middleware = options.middleware ?? [];
4995
5046
  /** What a request says about who it is, none of it verified yet: its bearer token, its claims, and the board's URL. */
4996
- function requestOf(request, audience) {
5047
+ function requestOf(request, at) {
5048
+ const credential = (request.headers.get("authorization") ?? "").match(/^Bearer\s+(.+)$/i)?.[1] ?? null;
5049
+ const audience = credential === null ? options.url?.replace(/\/+$/, "") ?? at : audienceOf(at);
4997
5050
  return {
4998
- credential: (request.headers.get("authorization") ?? "").match(/^Bearer\s+(.+)$/i)?.[1] ?? null,
5051
+ credential,
4999
5052
  claims: claimsOf(request.headers),
5000
5053
  audience,
5001
5054
  headers: request.headers
@@ -5008,6 +5061,19 @@ async function createServe(context) {
5008
5061
  origin: { via: { kind: "api" } }
5009
5062
  };
5010
5063
  }
5064
+ let warned = false;
5065
+ /**
5066
+ * The URL a token's audience must be: `url`, or the one `at` reaches where something checks a request's
5067
+ * Host first. Anywhere else its sender chooses it, so a production board without `url` verifies no tokens.
5068
+ */
5069
+ function audienceOf(at) {
5070
+ if (options.url) return options.url.replace(/\/+$/, "");
5071
+ if (hostTrusted(options)) return at;
5072
+ if (typeof process !== "undefined" && process.env.NODE_ENV === "production") throw new HttpError(500, "no_board_url", "this board has no URL to check a token's audience against, and outside Vercel a request's Host is its sender's to choose", { hint: "Pass board({ url: 'https://<host>/api/board' }), the URL people reach it at." });
5073
+ if (!warned) console.warn(`[board] no url: verifying tokens for ${at}, the host requests name. Pass board({ url }) before this serves in production.`);
5074
+ warned = true;
5075
+ return at;
5076
+ }
5011
5077
  /**
5012
5078
  * What a board that serves no requests answers them: one that uses another board's. One on
5013
5079
  * Vercel's still takes wake-ups and webhooks; one at `BOARD_URL` has neither.
@@ -5117,8 +5183,9 @@ async function createServe(context) {
5117
5183
  /**
5118
5184
  * Settles the `@handle`s of a caller's texts: a mention is `@[actor-id]`, so a handle that names
5119
5185
  * exactly one of the actors the caller can see is written as that, and one that names none or
5120
- * several stays as typed, a mention of no one. Of several, it's the one who wrote in `thread`, if
5121
- * exactly one did. The actors are read once, for the first text that has a handle. A board behind
5186
+ * several stays as typed, a mention of no one. Of several, one on the board wins over platform
5187
+ * users (a synced user's handle is their display name, theirs to set), and else it's the one who
5188
+ * wrote in `thread`, if exactly one did. The actors are read once, for the first text that has a handle. A board behind
5122
5189
  * this one settles them itself, and a schedule's send goes as it was settled when it was made: a
5123
5190
  * handle that mentioned no one then mentions no one later. An ID is longer than a handle, so where
5124
5191
  * settling would take a text past what a message holds, it stays as typed, each handle's actor a
@@ -5126,11 +5193,15 @@ async function createServe(context) {
5126
5193
  */
5127
5194
  function settler(caller, signal) {
5128
5195
  let listed = null;
5129
- const actors = () => listed ??= backend.actors(caller, {}, signal).then((answer) => answer.actors.map(({ id, handle, name }) => ({
5130
- id,
5131
- handle,
5132
- name
5133
- })), (error) => {
5196
+ const external = /* @__PURE__ */ new Set();
5197
+ const actors = () => listed ??= backend.actors(caller, {}, signal).then((answer) => answer.actors.map(({ id, handle, name, kind }) => {
5198
+ if (kind === "external") external.add(id);
5199
+ return {
5200
+ id,
5201
+ handle,
5202
+ name
5203
+ };
5204
+ }), (error) => {
5134
5205
  if (error instanceof HttpError && (error.status === 403 || error.status === 404)) return [];
5135
5206
  throw error;
5136
5207
  });
@@ -5154,7 +5225,10 @@ async function createServe(context) {
5154
5225
  if (!(error instanceof HttpError && error.status === 404)) throw error;
5155
5226
  }
5156
5227
  return fitting(settleMentions(text, await actors(), (candidates) => {
5157
- const wrote = candidates.filter((actor) => writers.has(actor.id));
5228
+ const board = candidates.filter((actor) => !external.has(actor.id));
5229
+ const among = board.length > 0 ? board : candidates;
5230
+ if (among.length === 1) return among[0];
5231
+ const wrote = among.filter((actor) => writers.has(actor.id));
5158
5232
  return wrote.length === 1 ? wrote[0] : null;
5159
5233
  }));
5160
5234
  };
@@ -5884,7 +5958,7 @@ async function createServe(context) {
5884
5958
  if (!match) throw notFound(`no route: ${request.method} ${url.pathname}`);
5885
5959
  const { target } = match;
5886
5960
  if (!injected && !match.root && (state.learned === null || state.learned.startsWith(`${match.base}/`))) state.learned = match.base;
5887
- const boardUrl = (options.url ?? `${url.origin}${match.base}`).replace(/\/+$/, "");
5961
+ const at = `${url.origin}${match.base}`.replace(/\/+$/, "");
5888
5962
  if (target.kind === "board" && target.name === "webhook") {
5889
5963
  if (!engine || !entries[match.params.key ?? ""]) throw notFound(`no sync entry named ${match.params.key}`);
5890
5964
  return await engine.handleWebhook(match.params.key, request);
@@ -5903,10 +5977,10 @@ async function createServe(context) {
5903
5977
  param: match.param
5904
5978
  });
5905
5979
  if (!injected && !policy.open) throw servesOnly();
5906
- if (!injected && target.kind === "protocol" && target.name === "discovery") return json(await discovery(request, boardUrl, request.signal));
5980
+ if (!injected && target.kind === "protocol" && target.name === "discovery") return json(await discovery(request, audienceOf(at), request.signal));
5907
5981
  if (target.kind === "protocol" && typeof backend[target.name] !== "function") throw notFound(`no route: ${request.method} ${url.pathname}`);
5908
5982
  const own = injected && "platform" in injected ? engine.caller : injected;
5909
- const asked = own ? null : requestOf(request, boardUrl);
5983
+ const asked = own ? null : requestOf(request, at);
5910
5984
  const caller = own ?? await callerOf(asked);
5911
5985
  if (target.kind === "board") return await serve(target.name, caller, request, url, match.params);
5912
5986
  const input = await inputOf(target.name, request, url, match.params);
@@ -5971,6 +6045,14 @@ async function createServe(context) {
5971
6045
  }
5972
6046
  //#endregion
5973
6047
  //#region src/server/board.ts
6048
+ const hostChecked = /* @__PURE__ */ new WeakSet();
6049
+ /** `options`, for a board behind a server that lets a request name only hosts it allows, as `vb serve` does. */
6050
+ function hostCheckedBy(options) {
6051
+ hostChecked.add(options);
6052
+ return options;
6053
+ }
6054
+ /** Whether a board without `url` can take it from a request's Host: on Vercel, or behind a server that checks Host. */
6055
+ const hostTrusted = (options) => hostChecked.has(options) || typeof process !== "undefined" && process.env.VERCEL === "1";
5974
6056
  /** A handle's own, with every request it makes ended by a signal: what `vb()` runs a command on. Global, so another copy of board finds it. */
5975
6057
  const STOPPED_BY = Symbol.for("@vercel/board/stopped-by");
5976
6058
  /**
@@ -6394,4 +6476,4 @@ async function createTasksInChunks(board, channel, tasks, options = {}) {
6394
6476
  return created;
6395
6477
  }
6396
6478
  //#endregion
6397
- export { stoppedBy as a, PROTOCOL_ROUTES as c, deployedOnVercel as d, isBoardName as i, withoutToken as l, createTasksInChunks as n, createVercel as o, createBoard as r, isApiMessageId as s, TasksInChunksError as t, tailWatchers as u };
6479
+ export { isBoardName as a, isApiMessageId as c, tailWatchers as d, deployedOnVercel as f, hostCheckedBy as i, PROTOCOL_ROUTES as l, createTasksInChunks as n, stoppedBy as o, createBoard as r, createVercel as s, TasksInChunksError as t, withoutToken as u };
@@ -1,6 +1,6 @@
1
1
  import { $ as MessageView } from "./routes-B6SEA9yw.mjs";
2
2
  import "./auth-Z9-Khvvw.mjs";
3
- import "./backend-BzCXxVZ-.mjs";
3
+ import "./backend-C2JUnbm5.mjs";
4
4
  import { g as TaskInBatch, n as BoardError } from "./client-C2T4eaXd.mjs";
5
5
  //#region src/client/chunks.d.ts
6
6
  /** What `createTasksInChunks` makes tasks with: a handle, or anything with its `tasks.createMany`. */
@@ -1,4 +1,4 @@
1
- import { h as MessageId, m as MESSAGE_TEXT_MAX } from "./schemas-TeVe4Udh.mjs";
1
+ import { h as MessageId, m as MESSAGE_TEXT_MAX } from "./schemas-CUSTEFIy.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/contract/external.ts
4
4
  /**
@@ -152,6 +152,10 @@ const channelOf = (externalThread) => {
152
152
  const colon = externalThread.slice(at + 1).indexOf(":");
153
153
  return colon === -1 ? externalThread : externalThread.slice(0, at + 1 + colon);
154
154
  };
155
- const externalMessageKey = (thread, message) => `${thread}|${message}`;
155
+ /**
156
+ * One key for a platform message in a platform thread. The thread's own `|` and `\` are escaped, so
157
+ * its end is the first bare `|`: (`a`, `b|c`) and (`a|b`, `c`) are two keys.
158
+ */
159
+ const externalMessageKey = (thread, message) => `${thread.replace(/[\\|]/g, "\\$&")}|${message}`;
156
160
  //#endregion
157
161
  export { Link as a, externalMessageKey as c, ExternalTarget as i, isThreadTarget as l, ExternalEvent as n, Origin as o, ExternalLocation as r, channelOf as s, ExternalAuthor as t };
@@ -1,5 +1,5 @@
1
- import { f as Board, p as BoardOptions } from "./backend-BzCXxVZ-.mjs";
2
- import "./exports-CKEK1fxf.mjs";
1
+ import { f as Board, p as BoardOptions } from "./backend-C2JUnbm5.mjs";
2
+ import "./exports-DkdCh3Zi.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
1
  import { $ as MessageView, $t as TasksQueryInput, A as FailTaskBody, At as SourceJoinBody, B as InboxEntry, Bt as SyncImportBody, C as Discovery, Ct as SchedulesQuery, D as EventsQueryInput, Dt as SchemaInput, E as EventsQuery, Et as SchemaBody, F as GrantInput, Ft as SyncCopiesQuery, G as LABEL_CONDITIONS_MAX, Gt as SyncedView, H as InboxNextQuery, Ht as SyncReceiptBody, I as GrantView, It as SyncCopiesView, J as LinkView, Jt as TaskClaim, K as LEASE_DEFAULT_S, Kt as THREADS_LIMIT_DEFAULT, L as GrantWriteOptions, Lt as SyncFindInput, M as GRANT_BATCH_MAX, Mn as Attachment, Mt as SourceRead, N as GrantBody, Nt as SourceReadQuery, O as ExplainQuery, Ot as SchemaView, P as GrantCan, Pt as SyncBody, Q as Me, Qt as TasksQuery, R as INBOX_EVENT_ID_MAX, Rt as SyncFindQuery, S as DeleteBody, St as ScheduleView, T as EventsPage, Tt as SchedulesQueryOutput, U as InboxPushBody, Ut as SyncReceiptInput, V as InboxItem, Vt as SyncImportInput, W as InboxQuery, Wt as SyncThreadView, X as MatchView, Xt as TaskView, Y as LinkedQuery, Yt as TaskNeedsBody, Z as MatchesQuery, Zt as TasksPage, _ as CreateTaskBody, _t as RevokeGrantBody, a as BlockTaskBody, an as TypingBody, at as PostInput, b as CreateTasksInput, bt as ScheduleBodyOutput, c as CanAt, cn as UpdateGrantInput, ct as REGISTERED_WATCHERS_MAX, d as ClaimReadyTaskBody, dn as routes, dt as RegisterBody, en as ThreadSummaryView, et as MessagesPage, f as ClaimReadyTaskInput, ft as RegisterInput, g as CreateGrantsBody, gt as ResolvedSyncTarget, h as CreateChannelBody, ht as RenewTaskBody, i as AssignTaskBody, in as ThreadsQueryInput, it as PostBody, j as FiltersInput, jt as SourceMessage, k as Explanation, kt as SourceJoin, l as CancelTaskBody, ln as UploadStartBody, lt as ReactBody, m as CompleteTaskBody, mt as ReleaseTaskBody, n as ActorView, nn as ThreadsPage, nt as MessagesQueryInput, o as BlockView, on as TypingResult, ot as PrincipalInput, p as ClaimTaskBody, pt as RegistrationView, q as LabelBody, qt as THREADS_LIMIT_MAX, r as ApiError, rn as ThreadsQuery, rt as ParsedFilters, s as BoardEventView, sn as UpdateGrantBody, st as PrincipalView, t as AckBody, tn as ThreadView, tt as MessagesQuery, u as ChannelView, un as UploadTicket, ut as Ref, v as CreateTaskInput, vt as RouteName, w as EditBody, wt as SchedulesQueryInput, x as CreatedTasksQuery, xt as ScheduleInput, y as CreateTasksBody, yt as ScheduleBody, z as InboxAckBody, zt as SyncFindView } from "./routes-B6SEA9yw.mjs";
2
2
  import { i as Claims, r as CallerRequest } from "./auth-Z9-Khvvw.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-BzCXxVZ-.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-C2JUnbm5.mjs";
4
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-C2T4eaXd.mjs";
5
- import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-CKEK1fxf.mjs";
5
+ import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-DkdCh3Zi.mjs";
6
6
  import { n as block } from "./blocks-DGvh2alZ.mjs";
7
7
  //#region src/server/index.default.d.ts
8
8
  /**
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { f as BoardError, m as duration, t as HttpError } from "./errors-DwV7I0g4.mjs";
2
- import { t as DroppedError } from "./middleware-ysFm2S4v.mjs";
1
+ import { f as BoardError, m as duration, t as HttpError } from "./errors-DYF4hhIc.mjs";
2
+ import { t as DroppedError } from "./middleware-DUKIITFZ.mjs";
3
3
  import { t as block } from "./blocks-CVoBC7ur.mjs";
4
- import { n as createTasksInChunks, o as createVercel, r as createBoard, t as TasksInChunksError } from "./exports-DLzyKwEp.mjs";
4
+ import { n as createTasksInChunks, r as createBoard, s as createVercel, t as TasksInChunksError } from "./exports-DRId1Cks.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-BH_nfJ3N.mjs"),
27
+ sync: () => import("./engine-I887QHnP.mjs"),
28
28
  serving: null,
29
29
  sandbox: null
30
30
  });
@@ -1,8 +1,8 @@
1
1
  import { $ as MessageView, $t as TasksQueryInput, A as FailTaskBody, At as SourceJoinBody, B as InboxEntry, Bt as SyncImportBody, C as Discovery, Ct as SchedulesQuery, D as EventsQueryInput, Dt as SchemaInput, E as EventsQuery, Et as SchemaBody, F as GrantInput, Ft as SyncCopiesQuery, G as LABEL_CONDITIONS_MAX, Gt as SyncedView, H as InboxNextQuery, Ht as SyncReceiptBody, I as GrantView, It as SyncCopiesView, J as LinkView, Jt as TaskClaim, K as LEASE_DEFAULT_S, Kt as THREADS_LIMIT_DEFAULT, L as GrantWriteOptions, Lt as SyncFindInput, M as GRANT_BATCH_MAX, Mn as Attachment, Mt as SourceRead, N as GrantBody, Nt as SourceReadQuery, O as ExplainQuery, Ot as SchemaView, P as GrantCan, Pt as SyncBody, Q as Me, Qt as TasksQuery, R as INBOX_EVENT_ID_MAX, Rt as SyncFindQuery, S as DeleteBody, St as ScheduleView, T as EventsPage, Tt as SchedulesQueryOutput, U as InboxPushBody, Ut as SyncReceiptInput, V as InboxItem, Vt as SyncImportInput, W as InboxQuery, Wt as SyncThreadView, X as MatchView, Xt as TaskView, Y as LinkedQuery, Yt as TaskNeedsBody, Z as MatchesQuery, Zt as TasksPage, _ as CreateTaskBody, _t as RevokeGrantBody, a as BlockTaskBody, an as TypingBody, at as PostInput, b as CreateTasksInput, bt as ScheduleBodyOutput, c as CanAt, cn as UpdateGrantInput, ct as REGISTERED_WATCHERS_MAX, d as ClaimReadyTaskBody, dn as routes, dt as RegisterBody, en as ThreadSummaryView, et as MessagesPage, f as ClaimReadyTaskInput, ft as RegisterInput, g as CreateGrantsBody, gt as ResolvedSyncTarget, h as CreateChannelBody, ht as RenewTaskBody, i as AssignTaskBody, in as ThreadsQueryInput, it as PostBody, j as FiltersInput, jt as SourceMessage, k as Explanation, kt as SourceJoin, l as CancelTaskBody, ln as UploadStartBody, lt as ReactBody, m as CompleteTaskBody, mt as ReleaseTaskBody, n as ActorView, nn as ThreadsPage, nt as MessagesQueryInput, o as BlockView, on as TypingResult, ot as PrincipalInput, p as ClaimTaskBody, pt as RegistrationView, q as LabelBody, qt as THREADS_LIMIT_MAX, r as ApiError, rn as ThreadsQuery, rt as ParsedFilters, s as BoardEventView, sn as UpdateGrantBody, st as PrincipalView, t as AckBody, tn as ThreadView, tt as MessagesQuery, u as ChannelView, un as UploadTicket, ut as Ref, v as CreateTaskInput, vt as RouteName, w as EditBody, wt as SchedulesQueryInput, x as CreatedTasksQuery, xt as ScheduleInput, y as CreateTasksBody, yt as ScheduleBody, z as InboxAckBody, zt as SyncFindView } from "./routes-B6SEA9yw.mjs";
2
2
  import { i as Claims, r as CallerRequest } from "./auth-Z9-Khvvw.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-BzCXxVZ-.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-C2JUnbm5.mjs";
4
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-C2T4eaXd.mjs";
5
- import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-CKEK1fxf.mjs";
5
+ import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-DkdCh3Zi.mjs";
6
6
  import { n as block } from "./blocks-DGvh2alZ.mjs";
7
- import { t as board } from "./index-DxqSw8yd.mjs";
7
+ import { t as board } from "./index-DpuOtt0J.mjs";
8
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 Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelView, 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 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 MessagesQuery, type MessagesQueryInput, 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 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 };
@@ -1,6 +1,6 @@
1
- import { f as BoardError, m as duration, t as HttpError } from "./errors-DwV7I0g4.mjs";
2
- import { t as DroppedError } from "./middleware-ysFm2S4v.mjs";
1
+ import { f as BoardError, m as duration, t as HttpError } from "./errors-DYF4hhIc.mjs";
2
+ import { t as DroppedError } from "./middleware-DUKIITFZ.mjs";
3
3
  import { t as block } from "./blocks-CVoBC7ur.mjs";
4
- import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-DLzyKwEp.mjs";
5
- import { t as board } from "./server-V7qyVUiJ.mjs";
4
+ import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-DRId1Cks.mjs";
5
+ import { t as board } from "./server-BLQxoL0g.mjs";
6
6
  export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration };