@vercel/board 0.37.0 → 0.39.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 (77) hide show
  1. package/dist/{access-BsP0hvcC.mjs → access-CVkjSfxj.mjs} +12 -12
  2. package/dist/access.d.mts +3 -3
  3. package/dist/access.mjs +6 -5
  4. package/dist/{actors-uoD62kiN.mjs → actors-kfMejhaw.mjs} +5 -4
  5. package/dist/{auth-CrjXLgOb.mjs → auth-B3bBYOqf.mjs} +2 -2
  6. package/dist/{auth-BHXgi696.d.mts → auth-BXLCkeB0.d.mts} +3 -3
  7. package/dist/{backend-BIvl2z1z.d.mts → backend-HcCCGPG4.d.mts} +4 -4
  8. package/dist/backend-local.d.mts +1 -1
  9. package/dist/backend-local.mjs +1 -1
  10. package/dist/{chat-provider-C0WUS3-G.mjs → chat-provider-1WKsLEnM.mjs} +2 -2
  11. package/dist/{chat-provider-DFYEReZL.d.mts → chat-provider-DyNy5xdC.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 +2 -2
  15. package/dist/cli-embedded.mjs +3 -3
  16. package/dist/cli.mjs +5 -5
  17. package/dist/{commands-DGID-4Z2.d.mts → commands-B5d-lmNN.d.mts} +1 -1
  18. package/dist/{commands-D2pFCMSh.mjs → commands-BLS7erNu.mjs} +1 -1
  19. package/dist/{conformance-rCrc_mwi.mjs → conformance-D59Py2m2.mjs} +166 -28
  20. package/dist/conformance.d.mts +10 -2
  21. package/dist/conformance.mjs +1 -1
  22. package/dist/digest-krhjNAt4.mjs +4 -0
  23. package/dist/{engine-COa73McY.mjs → engine-eUgO5jTM.mjs} +4 -4
  24. package/dist/{events-v8f7pF9f.mjs → events-C6HwB046.mjs} +2 -2
  25. package/dist/{exports-DTezg4xR.mjs → exports-M5o4PTfO.mjs} +100 -40
  26. package/dist/exports-vLQ2Y2Nd.d.mts +4 -0
  27. package/dist/{external-BA2aCC_3.mjs → external-CHDxWIVf.mjs} +1 -1
  28. package/dist/{index-B1TZrMMu.d.mts → index-rNqqgkyu.d.mts} +2 -2
  29. package/dist/index.d.mts +5 -5
  30. package/dist/index.mjs +3 -3
  31. package/dist/index.node.d.mts +5 -5
  32. package/dist/index.node.mjs +2 -2
  33. package/dist/inspect/app.js +22 -22
  34. package/dist/{inspect-CoFk2Xj7.mjs → inspect-BkXxR2uB.mjs} +4 -4
  35. package/dist/inspect-lnv1sLXM.mjs +2 -0
  36. package/dist/{local-Cm7a7_Q0.mjs → local-DvkOWf4U.mjs} +248 -532
  37. package/dist/{main-DoZ8IFPb.mjs → main-DtV_Po9i.mjs} +42 -36
  38. package/dist/{memory-DqwXlyK4.mjs → memory-DkoqhxIH.mjs} +2 -2
  39. package/dist/{middleware-k_XKQ6f7.mjs → middleware-CPqAuRtp.mjs} +1 -1
  40. package/dist/{page-LysMGAl3.mjs → page-64IwoGRu.mjs} +2 -2
  41. package/dist/page-BUj8_UZv.mjs +2 -0
  42. package/dist/{provider-7pOnK8Jw.d.mts → provider-D5yVFisj.d.mts} +1 -1
  43. package/dist/{routes-BtsZzal-.d.mts → routes-BffuaoTX.d.mts} +11 -1
  44. package/dist/{schemas-BG205xds.mjs → schemas-AZkxk06N.mjs} +3 -3
  45. package/dist/{serve-2U_JPJtS.mjs → serve-CX1rqDF_.mjs} +3 -3
  46. package/dist/{server-Drul_uwj.mjs → server-DkYkyarg.mjs} +47 -100
  47. package/dist/{serving-6_bhBNAW.mjs → serving-DJMcG0dT.mjs} +1 -1
  48. package/dist/{sql-aetuEBZC.mjs → sql-l3ysn4O5.mjs} +2 -2
  49. package/dist/{sqlite-DvsB8ENQ.mjs → sqlite-CAwNHbQD.mjs} +2 -2
  50. package/dist/{sqlite-db-BPwRoDI7.mjs → sqlite-db-cm5yhrD-.mjs} +1 -1
  51. package/dist/sync-chat-sdk.d.mts +2 -2
  52. package/dist/sync-chat-sdk.mjs +2 -2
  53. package/dist/sync-github.d.mts +2 -2
  54. package/dist/sync-github.mjs +2 -2
  55. package/dist/sync-linear.d.mts +3 -3
  56. package/dist/sync-linear.mjs +2 -2
  57. package/dist/sync-slack.d.mts +3 -3
  58. package/dist/sync-slack.mjs +4 -4
  59. package/dist/sync.d.mts +2 -2
  60. package/dist/sync.mjs +2 -2
  61. package/dist/{targets-B0D4tJDY.mjs → targets-C1mT3M1N.mjs} +6 -6
  62. package/dist/{tokens-Dn4cPZIr.mjs → tokens-DA9ipsZ-.mjs} +1 -1
  63. package/docs/01-board/01-mounting.md +3 -3
  64. package/docs/01-board/03-identity.md +1 -1
  65. package/docs/01-board/06-watchers.md +8 -11
  66. package/docs/01-board/09-access.md +11 -6
  67. package/docs/02-sync/01-overview.md +2 -5
  68. package/docs/03-guides/03-ci.md +10 -4
  69. package/docs/04-reference/01-cli.md +23 -9
  70. package/docs/04-reference/02-board.md +2 -1
  71. package/docs/04-reference/03-http.md +6 -6
  72. package/docs/04-reference/05-conformance.md +9 -2
  73. package/package.json +1 -1
  74. package/dist/digest-CLGw7653.mjs +0 -4
  75. package/dist/exports-Bb0m03fT.d.mts +0 -4
  76. package/dist/inspect-B8c0Wh5Z.mjs +0 -2
  77. package/dist/page-BAQpb-s-.mjs +0 -2
@@ -1,12 +1,12 @@
1
1
  import { _ as fileSize, m as DIRECT_UPLOAD_BYTES_MAX, u as BoardError } from "./errors-rYDxZEuN.mjs";
2
- import { d as MESSAGE_TEXT_MAX, r as AttachmentId } from "./schemas-BG205xds.mjs";
3
- import { c as withMentions, g as VERSION } from "./targets-B0D4tJDY.mjs";
2
+ import { f as MESSAGE_TEXT_MAX, r as AttachmentId } from "./schemas-AZkxk06N.mjs";
3
+ import { c as withMentions, g as VERSION } from "./targets-C1mT3M1N.mjs";
4
4
  import { n as displayEmoji, r as normalizeEmoji } from "./emoji-CTLpvH-A.mjs";
5
- import { r as PERMISSIONS, u as parseScope } from "./access-BsP0hvcC.mjs";
6
- import { i as isApiMessageId, n as isBoardName } from "./exports-DTezg4xR.mjs";
7
- import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-D2pFCMSh.mjs";
8
- import { a as http, c as handFetch, f as vercelProjectFile, i as vercel, l as handLogin, n as credentialSource, o as boardUrl, r as handTeam, s as connect, t as board } from "./server-Drul_uwj.mjs";
9
- import { t as conformance } from "./conformance-rCrc_mwi.mjs";
5
+ import { r as PERMISSIONS, u as parseCan } from "./access-CVkjSfxj.mjs";
6
+ import { i as isApiMessageId, n as isBoardName } from "./exports-M5o4PTfO.mjs";
7
+ import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-BLS7erNu.mjs";
8
+ import { a as vercel, c as connect, i as handTeam, l as handFetch, n as credentialSource, o as http, p as vercelProjectFile, r as credentialed, s as boardUrl, t as board, u as handLogin } from "./server-DkYkyarg.mjs";
9
+ import { t as conformance } from "./conformance-D59Py2m2.mjs";
10
10
  import { t as displayText } from "./bots-CGkO76qH.mjs";
11
11
  import { spawn } from "node:child_process";
12
12
  import { readFile, stat, writeFile } from "node:fs/promises";
@@ -1293,7 +1293,7 @@ function trustId(what, value) {
1293
1293
  return value;
1294
1294
  }
1295
1295
  /**
1296
- * A token's `--can`, as `x-board-scope` writes it (`dev/=read,post;ci/=read`), repeated or
1296
+ * A token's `--can`, as `x-board-can` writes it (`dev/=read,post;ci/=read`), repeated or
1297
1297
  * `;`-joined, with `none` for no permissions, as `all` is every one: `*=all;security/=none` closes a
1298
1298
  * subtree. `security/=` means the same. The board takes an empty list, so `none` never leaves the CLI.
1299
1299
  */
@@ -1306,9 +1306,9 @@ function canFlag(values) {
1306
1306
  return permissions[0] === "none" ? entry.slice(0, at + 1) : entry;
1307
1307
  }).join(";");
1308
1308
  try {
1309
- return parseScope(scope);
1309
+ return parseCan(scope, "--can");
1310
1310
  } catch (error) {
1311
- throw usage(`${error.message.replace(/x-board-scope/g, "--can").replace(/, or all$/, ", all, or none")}.`);
1311
+ throw usage(`${error.message.replace(/, or all$/, ", all, or none")}.`);
1312
1312
  }
1313
1313
  }
1314
1314
  /** What a grant's flags say, or the misuse in them. */
@@ -1493,6 +1493,7 @@ function failureOf(error) {
1493
1493
  case "board_name_taken": return own("conflict", "board_name_taken");
1494
1494
  case "board_not_granted": return own("permission", "board_not_granted");
1495
1495
  case "watchers_need_project": return own("permission", "watchers_need_project");
1496
+ case "unsupported_principal": return own(status === 403 ? "permission" : "usage", "unsupported_principal");
1496
1497
  case "board_token_scope": return own("permission", "board_token_scope");
1497
1498
  case "invalid_board_name": return own("usage", "invalid_arguments", [helpRecovery()]);
1498
1499
  case "too_many_redirects": return own("network", "network_error");
@@ -1649,7 +1650,7 @@ function connection(url = flags.url, options = {}) {
1649
1650
  const board$1 = board({
1650
1651
  backend: vercel({
1651
1652
  ...team !== void 0 ? { team } : {},
1652
- ...sending(options.token)
1653
+ ...sending(options.token, options.can)
1653
1654
  }),
1654
1655
  ...name !== void 0 ? {
1655
1656
  name,
@@ -1668,7 +1669,7 @@ function connection(url = flags.url, options = {}) {
1668
1669
  if (onVercel) {
1669
1670
  const board$3 = board({ backend: vercel({
1670
1671
  ...onVercel,
1671
- ...sending(options.token)
1672
+ ...sending(options.token, options.can)
1672
1673
  }) });
1673
1674
  return {
1674
1675
  url: at,
@@ -1679,7 +1680,8 @@ function connection(url = flags.url, options = {}) {
1679
1680
  const handle = options.handle ?? flags.handle;
1680
1681
  const transport = connect(at, {
1681
1682
  ...options.token !== void 0 ? { token: options.token } : {},
1682
- ...handle ? { handle } : {}
1683
+ ...handle ? { handle } : {},
1684
+ ...options.can !== void 0 ? { fetch: narrowing(options.can) } : {}
1683
1685
  });
1684
1686
  const board$2 = board({ backend: http(at, { fetch: transport.fetch }) });
1685
1687
  return {
@@ -1719,14 +1721,26 @@ function boardNameFlag(url, team) {
1719
1721
  if (!isBoardName(given)) throw usage(`${from} ${given} isn't a board's name: one is 1 to 64 characters.`);
1720
1722
  return given;
1721
1723
  }
1722
- /** For Vercel's API, `token` in place of your own credentials: a board token's secret. */
1723
- function sending(token) {
1724
- if (token === void 0) return {};
1725
- return { fetch: (input, init) => {
1724
+ /** For Vercel's API, `token` in place of your own credentials (a board token's secret), and `can` narrowing them. */
1725
+ function sending(token, can) {
1726
+ if (token === void 0 && can === void 0) return {};
1727
+ return { fetch: (input, init = {}) => {
1728
+ const headers = new Headers(init.headers ?? (input instanceof Request ? input.headers : void 0));
1729
+ if (token !== void 0) headers.set("authorization", `Bearer ${token}`);
1730
+ if (can !== void 0) headers.set("x-board-can", can);
1731
+ return (token === void 0 ? credentialed() : globalThis.fetch)(input, {
1732
+ ...init,
1733
+ headers
1734
+ });
1735
+ } };
1736
+ }
1737
+ /** A fetch that narrows what a board on HTTP lets its credentials do to `can`, as a proxy holding them would. */
1738
+ function narrowing(can) {
1739
+ return (input, init) => {
1726
1740
  const request = new Request(input, init);
1727
- request.headers.set("authorization", `Bearer ${token}`);
1741
+ request.headers.set("x-board-can", can);
1728
1742
  return globalThis.fetch(request);
1729
- } };
1743
+ };
1730
1744
  }
1731
1745
  /** A handle on the board this command talks to: `vb()`'s, as `--as` says, or the one `connection()` finds. */
1732
1746
  function client() {
@@ -1860,9 +1874,11 @@ async function run(command, args) {
1860
1874
  });
1861
1875
  const tokenUrl = io.board ? void 0 : connection().url === null ? (await client().discovery()).url : flags.url;
1862
1876
  const withToken = io.board ? {} : { withToken: (secret) => connection(tokenUrl, { token: secret }).board };
1877
+ const withCan = io.board ? {} : { withCan: (can) => connection(void 0, { can }).board };
1863
1878
  const report = await conformance(client(), {
1864
1879
  ...flags.channel ? { channel: flags.channel } : {},
1865
- ...withToken
1880
+ ...withToken,
1881
+ ...withCan
1866
1882
  });
1867
1883
  if (flags.json) result(report);
1868
1884
  else out(formatConformance(report));
@@ -2078,21 +2094,11 @@ async function run(command, args) {
2078
2094
  principals,
2079
2095
  can
2080
2096
  });
2081
- const unsigned = principals.some((principal) => principal.kind === "github" || principal.kind === "oidc") && vercelBoard((await client().discovery()).url) !== null;
2082
- const note = "Vercel's board doesn't sign in GitHub or OIDC callers yet: this grant works once it does";
2083
- if (flags.json) {
2084
- if (unsigned) warnings.push({
2085
- reason: "callers_not_signed_in",
2086
- message: note
2087
- });
2088
- result({
2089
- grant,
2090
- outcome: "created"
2091
- });
2092
- } else {
2093
- out(`created ${grantRow(grant)}`);
2094
- if (unsigned) out(`note ${note}`);
2095
- }
2097
+ if (flags.json) result({
2098
+ grant,
2099
+ outcome: "created"
2100
+ });
2101
+ else out(`created ${grantRow(grant)}`);
2096
2102
  return 0;
2097
2103
  }
2098
2104
  if (verb === "update") {
@@ -2404,7 +2410,7 @@ async function run(command, args) {
2404
2410
  else out(formatEvent(event));
2405
2411
  return 0;
2406
2412
  }
2407
- case "inspect": return (await import("./inspect-B8c0Wh5Z.mjs")).inspect(context());
2413
+ case "inspect": return (await import("./inspect-lnv1sLXM.mjs")).inspect(context());
2408
2414
  default: {
2409
2415
  const own = app.commands[command];
2410
2416
  if (own) return own.run(args, context());
@@ -1,6 +1,6 @@
1
- import { r as sqlTables } from "./sql-aetuEBZC.mjs";
1
+ import { r as sqlTables } from "./sql-l3ysn4O5.mjs";
2
2
  import { t as memory$1 } from "./store-memory-CKQVEzXN.mjs";
3
- import { t as sqliteDb } from "./sqlite-db-BPwRoDI7.mjs";
3
+ import { t as sqliteDb } from "./sqlite-db-cm5yhrD-.mjs";
4
4
  //#region src/store/memory.ts
5
5
  /**
6
6
  * A board that lives in memory, for tests: its log in A2's memory store, its
@@ -1,5 +1,5 @@
1
1
  import { t as HttpError } from "./errors-rYDxZEuN.mjs";
2
- import { d as MESSAGE_TEXT_MAX, u as Labels } from "./schemas-BG205xds.mjs";
2
+ import { d as Labels, f as MESSAGE_TEXT_MAX } from "./schemas-AZkxk06N.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/client/ids.ts
5
5
  const hex = (bytes) => Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -1,4 +1,4 @@
1
- import "./digest-CLGw7653.mjs";
1
+ import "./digest-krhjNAt4.mjs";
2
2
  import { createHash } from "node:crypto";
3
3
  import { readFile } from "node:fs/promises";
4
4
  //#region src/inspect/page.ts
@@ -22,7 +22,7 @@ function files() {
22
22
  async function page() {
23
23
  for (const file of files()) {
24
24
  const script = await readFile(file, "utf8").catch(() => null);
25
- if (script !== null && createHash("sha256").update(script).digest("hex") === "4f1478124855783385e763c2cc87539b5299c8c9c0325f1ec65db6b7284f3382") return script;
25
+ if (script !== null && createHash("sha256").update(script).digest("hex") === "831fda9c440268389bdc650983308eeab1265b2f09035633f6f9d7a229636cc5") return script;
26
26
  }
27
27
  return null;
28
28
  }
@@ -0,0 +1,2 @@
1
+ import { t as page } from "./page-64IwoGRu.mjs";
2
+ export { page };
@@ -1,4 +1,4 @@
1
- import { $t as ExternalCopy, C as InboxItem, Ct as ThreadsPage, Dt as TokenInput, F as MessagesPage, J as RegistrationView, L as MessagesQueryInput, Mt as UpdateGrantInput, N as Me, Ot as TokenView, P as MessageView, Qt as Actor, S as InboxEntry, St as ThreadView, Tt as ThreadsQueryInput, an as ExternalFile, b as GrantView, bt as SyncedView, d as EventsPage, en as Attachment, et as ScheduleView, ft as SyncFindInput, g as FiltersInput, gt as SyncImportInput, h as Explanation, i as BoardEventView, in as ExternalEvent, it as SourceJoin, j as MatchView, l as Discovery, mt as SyncFindView, nt as SchedulesQueryInput, o as ChannelView, on as ExternalLink, q as RegisterInput, rn as ExternalAuthor, sn as Link, st as SourceRead, vt as SyncReceiptInput, y as GrantInput, yt as SyncThreadView } from "./routes-BtsZzal-.mjs";
1
+ import { $t as Actor, C as InboxItem, Ct as ThreadsPage, Dt as TokenInput, F as MessagesPage, J as RegistrationView, L as MessagesQueryInput, Mt as UpdateGrantInput, N as Me, Ot as TokenView, P as MessageView, S as InboxEntry, St as ThreadView, Tt as ThreadsQueryInput, an as ExternalAuthor, b as GrantView, bt as SyncedView, cn as ExternalLink, d as EventsPage, en as ExternalCopy, et as ScheduleView, ft as SyncFindInput, g as FiltersInput, gt as SyncImportInput, h as Explanation, i as BoardEventView, it as SourceJoin, j as MatchView, l as Discovery, ln as Link, mt as SyncFindView, nt as SchedulesQueryInput, o as ChannelView, on as ExternalEvent, q as RegisterInput, sn as ExternalFile, st as SourceRead, tn as Attachment, vt as SyncReceiptInput, y as GrantInput, yt as SyncThreadView } from "./routes-BffuaoTX.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/client/client.d.ts
4
4
  /**
@@ -420,6 +420,8 @@ type BoardEvent<K extends keyof BoardEvents & string = keyof BoardEvents & strin
420
420
  }; }[K];
421
421
  //#endregion
422
422
  //#region src/contract/schemas.d.ts
423
+ /** The longest `x-board-can` header the board reads; a schedule keeps its creator's. */
424
+ declare const CAN_MAX = 4000;
423
425
  declare const Labels: z.ZodRecord<z.ZodString, z.ZodString>;
424
426
  /** What an actor is: a `person`, an `agent` acting for a principal (`--as claude`), a deployment, a workflow, or a platform user (`external`). */
425
427
  declare const ActorKind: z.ZodEnum<{
@@ -571,6 +573,14 @@ type WrittenCan = Readonly<Record<ChannelPattern, 'all' | readonly Permission[]>
571
573
  */
572
574
  declare const LEVELS: readonly ['principal', 'group', 'everyone'];
573
575
  type Level = (typeof LEVELS)[number];
576
+ /**
577
+ * `x-board-can`: `dev/=read,post,react,label;ci/=read`. Each entry is a
578
+ * pattern and its permissions (or `all`). It's meant for a proxy that holds the
579
+ * credential, like Pi's sandbox: the board intersects it with the principal's
580
+ * access, so it can only narrow, and a caller holding its own token gains
581
+ * nothing by sending it. `name` is what its errors call it: the CLI's `--can` writes the same.
582
+ */
583
+ declare function parseCan(header: string, name?: string): Can;
574
584
  /** A grant as `checkGrantChange` reads it: whom it names, by kind, and what it gives where. */
575
585
  type GrantShape = {
576
586
  readonly principals: readonly {
@@ -2646,4 +2656,4 @@ declare const routes: {
2646
2656
  };
2647
2657
  type RouteName = keyof typeof routes;
2648
2658
  //#endregion
2649
- export { ScheduleInput as $, ExternalCopy as $t, LinkedQuery as A, TypingResult as At, PostInput as B, FULL_ACCESS as Bt, InboxItem as C, ThreadsPage as Ct, LABEL_CONDITIONS_MAX as D, TokenInput as Dt, InboxQuery as E, TokenBody as Et, MessagesPage as F, routes as Ft, Ref as G, InvalidCan as Gt, PrincipalView as H, GrantChange as Ht, MessagesQuery as I, Access as It, RegistrationView as J, WrittenCan as Jt, RegisterBody as K, Level as Kt, MessagesQueryInput as L, AccessSummary as Lt, MatchesQuery as M, UpdateGrantInput as Mt, Me as N, UploadStartBody as Nt, LabelBody as O, TokenView as Ot, MessageView as P, UploadTicket as Pt, ScheduleBodyOutput as Q, Actor as Qt, ParsedFilters as R, Can as Rt, InboxEntry as S, ThreadView as St, InboxPushBody as T, ThreadsQueryInput as Tt, REGISTERED_WATCHERS_MAX as U, GrantChangeRefusal as Ut, PrincipalInput as V, Grant as Vt, ReactBody as W, GrantShape as Wt, RouteName as X, compileAccess as Xt, ResolvedSyncTarget as Y, checkGrantChange as Yt, ScheduleBody as Z, union as Zt, GrantBody as _, SyncReceiptBody as _t, CanAt as a, ExternalFile as an, SourceJoinBody as at, GrantView as b, SyncedView as bt, DeleteBody as c, SourceReadQuery as ct, EventsPage as d, SyncCopiesView as dt, Attachment as en, ScheduleView as et, EventsQuery as f, SyncFindInput as ft, FiltersInput as g, SyncImportInput as gt, Explanation as h, SyncImportBody as ht, BoardEventView as i, ExternalEvent as in, SourceJoin as it, MatchView as j, UpdateGrantBody as jt, LinkView as k, TypingBody as kt, Discovery as l, SyncBody as lt, ExplainQuery as m, SyncFindView as mt, ActorView as n, Labels as nn, SchedulesQueryInput as nt, ChannelView as o, ExternalLink as on, SourceMessage as ot, EventsQueryInput as p, SyncFindQuery as pt, RegisterInput as q, Permission as qt, ApiError as r, ExternalAuthor as rn, SchedulesQueryOutput as rt, CreateChannelBody as s, Link as sn, SourceRead as st, AckBody as t, Author as tn, SchedulesQuery as tt, EditBody as u, SyncCopiesQuery as ut, GrantCan as v, SyncReceiptInput as vt, InboxNextQuery as w, ThreadsQuery as wt, InboxAckBody as x, ThreadSummaryView as xt, GrantInput as y, SyncThreadView as yt, PostBody as z, ChannelPattern as zt };
2659
+ export { ScheduleInput as $, Actor as $t, LinkedQuery as A, TypingResult as At, PostInput as B, FULL_ACCESS as Bt, InboxItem as C, ThreadsPage as Ct, LABEL_CONDITIONS_MAX as D, TokenInput as Dt, InboxQuery as E, TokenBody as Et, MessagesPage as F, routes as Ft, Ref as G, InvalidCan as Gt, PrincipalView as H, GrantChange as Ht, MessagesQuery as I, Access as It, RegistrationView as J, WrittenCan as Jt, RegisterBody as K, Level as Kt, MessagesQueryInput as L, AccessSummary as Lt, MatchesQuery as M, UpdateGrantInput as Mt, Me as N, UploadStartBody as Nt, LabelBody as O, TokenView as Ot, MessageView as P, UploadTicket as Pt, ScheduleBodyOutput as Q, union as Qt, ParsedFilters as R, Can as Rt, InboxEntry as S, ThreadView as St, InboxPushBody as T, ThreadsQueryInput as Tt, REGISTERED_WATCHERS_MAX as U, GrantChangeRefusal as Ut, PrincipalInput as V, Grant as Vt, ReactBody as W, GrantShape as Wt, RouteName as X, compileAccess as Xt, ResolvedSyncTarget as Y, checkGrantChange as Yt, ScheduleBody as Z, parseCan as Zt, GrantBody as _, SyncReceiptBody as _t, CanAt as a, ExternalAuthor as an, SourceJoinBody as at, GrantView as b, SyncedView as bt, DeleteBody as c, ExternalLink as cn, SourceReadQuery as ct, EventsPage as d, SyncCopiesView as dt, ExternalCopy as en, ScheduleView as et, EventsQuery as f, SyncFindInput as ft, FiltersInput as g, SyncImportInput as gt, Explanation as h, SyncImportBody as ht, BoardEventView as i, Labels as in, SourceJoin as it, MatchView as j, UpdateGrantBody as jt, LinkView as k, TypingBody as kt, Discovery as l, Link as ln, SyncBody as lt, ExplainQuery as m, SyncFindView as mt, ActorView as n, Author as nn, SchedulesQueryInput as nt, ChannelView as o, ExternalEvent as on, SourceMessage as ot, EventsQueryInput as p, SyncFindQuery as pt, RegisterInput as q, Permission as qt, ApiError as r, CAN_MAX as rn, SchedulesQueryOutput as rt, CreateChannelBody as s, ExternalFile as sn, SourceRead as st, AckBody as t, Attachment as tn, SchedulesQuery as tt, EditBody as u, SyncCopiesQuery as ut, GrantCan as v, SyncReceiptInput as vt, InboxNextQuery as w, ThreadsQuery as wt, InboxAckBody as x, ThreadSummaryView as xt, GrantInput as y, SyncThreadView as yt, PostBody as z, ChannelPattern as zt };
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  const MESSAGE_TEXT_MAX = 1e4;
3
- /** The longest `x-board-scope` header the board reads; a schedule keeps its creator's. */
4
- const SCOPE_MAX = 4e3;
3
+ /** The longest `x-board-can` header the board reads; a schedule keeps its creator's. */
4
+ const CAN_MAX = 4e3;
5
5
  const segment = "[a-z0-9][a-z0-9_-]*";
6
6
  /** `errors-www`, `www/production`: lowercase segments joined by `/`. */
7
7
  const ChannelPath = z.string().max(80).regex(new RegExp(`^${segment}(?:/${segment})*$`), "invalid channel path");
@@ -69,4 +69,4 @@ const Attachment = z.object({
69
69
  /** A registered watcher's ID: a profile name, since its writes are by that profile. */
70
70
  const RemoteWatcherId = z.string().regex(/^[A-Za-z][A-Za-z0-9-]{0,31}$/, "ids start with a letter and use up to 32 letters, numbers, and hyphens");
71
71
  //#endregion
72
- export { actorKind as _, ChannelPath as a, toStorable as b, LabelKey as c, MESSAGE_TEXT_MAX as d, MessageId as f, SeenActorKind as g, SCOPE_MAX as h, Author as i, LabelValue as l, RemoteWatcherId as m, Attachment as n, Emoji as o, MessageText as p, AttachmentId as r, Handle as s, ActorId as t, Labels as u, platformAvatar as v, storable as y };
72
+ export { actorKind as _, CAN_MAX as a, toStorable as b, Handle as c, Labels as d, MESSAGE_TEXT_MAX as f, SeenActorKind as g, RemoteWatcherId as h, Author as i, LabelKey as l, MessageText as m, Attachment as n, ChannelPath as o, MessageId as p, AttachmentId as r, Emoji as s, ActorId as t, LabelValue as u, platformAvatar as v, storable as y };
@@ -1,7 +1,7 @@
1
1
  import { u as BoardError } from "./errors-rYDxZEuN.mjs";
2
- import { t as board, u as localTokenFile } from "./server-Drul_uwj.mjs";
3
- import { t as oidcTokens } from "./tokens-Dn4cPZIr.mjs";
4
- import { t as local } from "./local-Cm7a7_Q0.mjs";
2
+ import { d as localTokenFile, t as board } from "./server-DkYkyarg.mjs";
3
+ import { t as oidcTokens } from "./tokens-DA9ipsZ-.mjs";
4
+ import { t as local } from "./local-DvkOWf4U.mjs";
5
5
  import { mkdir, rename, rm, stat, writeFile } from "node:fs/promises";
6
6
  import { userInfo } from "node:os";
7
7
  import { dirname, join, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
- import { d as createBoardClient, o as json, t as HttpError, u as BoardError } from "./errors-rYDxZEuN.mjs";
2
- import "./schemas-BG205xds.mjs";
3
- import { F as RegisterBody, X as routes, i as canonicalWatchers, l as METHODS, o as compileWatcher } from "./targets-B0D4tJDY.mjs";
4
- import { l as keyId, o as DERIVED_ID, u as sha256 } from "./middleware-k_XKQ6f7.mjs";
5
- import { a as registrant, o as wakePath, r as createVercel, t as createBoard } from "./exports-DTezg4xR.mjs";
1
+ import { d as createBoardClient, t as HttpError, u as BoardError } from "./errors-rYDxZEuN.mjs";
2
+ import "./schemas-AZkxk06N.mjs";
3
+ import { X as routes, l as METHODS, o as compileWatcher } from "./targets-C1mT3M1N.mjs";
4
+ import { l as keyId, o as DERIVED_ID } from "./middleware-CPqAuRtp.mjs";
5
+ import { a as tailWatchers, o as deployedOnVercel, r as createVercel, t as createBoard } from "./exports-M5o4PTfO.mjs";
6
6
  import { execFile } from "node:child_process";
7
7
  import { createHash } from "node:crypto";
8
8
  import { mkdir, readFile, readdir, stat, unlink, writeFile } from "node:fs/promises";
@@ -749,12 +749,8 @@ function createHttp(url, options, environment) {
749
749
  const remote = (url ?? environment.url()).replace(/\/+$/, "");
750
750
  const doFetch = options.fetch ?? environment?.fetch(remote) ?? ((input, init) => globalThis.fetch(input, init));
751
751
  let binding = null;
752
- const specs = {};
753
- /** This board's sync entries, registered there when it syncs. */
754
- let sync = [];
755
- let hash = null;
756
- /** What every wake-up carries, so the board it uses can tell it's stale. */
757
- const watchersHash = () => hash ??= sha256(canonicalWatchers(specs, sync)).then((hex) => hex.slice(0, 32));
752
+ /** This board's watchers, compiled: they run here, as tails of the board it uses. */
753
+ const tails = {};
758
754
  const bound = () => {
759
755
  if (!binding) throw new Error("http: this backend isn't serving a board yet: pass it to board({ backend })");
760
756
  return binding;
@@ -867,10 +863,9 @@ function createHttp(url, options, environment) {
867
863
  }
868
864
  /** A protocol method, called on the board it uses, as `caller`. */
869
865
  async function remoteCall(method, caller, input, signal) {
870
- const registering = start();
871
- if ("identity" in caller) throw new HttpError(404, "not_found", `this board uses ${remote}, and answers only wake-ups and webhooks`);
866
+ start();
867
+ if ("identity" in caller) throw new HttpError(404, "not_found", `this board uses ${remote}, and answers nothing itself`);
872
868
  const client = clientOf(caller);
873
- if ("self" in caller && caller.origin.via?.kind === "engine") await registering;
874
869
  if ((method === "post" || method === "posted") && "self" in caller && typeof input.id === "string" && DERIVED_ID.test(input.id)) input = {
875
870
  ...input,
876
871
  id: await ownKey(input.id).catch(rethrow)
@@ -882,104 +877,54 @@ function createHttp(url, options, environment) {
882
877
  ...Object.fromEntries(METHODS.map((method) => [method, (caller, input, signal) => remoteCall(method, caller, input, signal)])),
883
878
  async discovery() {
884
879
  return discovery();
885
- },
886
- async readSource(caller, input, signal) {
887
- if ("self" in caller && bound().sync.some((entry) => entry.key === input.key)) return bound().readSource(input.key, input.target, input.limit ?? 50, input.after ?? null);
888
- return remoteCall("readSource", caller, input, signal);
889
- },
890
- async joinSource(caller, input, signal) {
891
- if ("self" in caller && bound().sync.some((entry) => entry.key === input.key)) return bound().joinSource(input.key, input.target);
892
- return remoteCall("joinSource", caller, input, signal);
893
- },
894
- async synced(caller, input, signal) {
895
- const { targets } = await remoteCall("synced", caller, input, signal);
896
- return { targets: await Promise.all(targets.map(async (row) => ({
897
- ...row,
898
- url: row.url ?? (row.thread !== null && row.message !== null ? await bound().linkOf(row.key, row.thread, row.message) : null)
899
- }))) };
900
- },
901
- async linked(caller, input, signal) {
902
- const missing = () => new HttpError(404, "message_not_found", "no message on this board for that link");
903
- const first = async () => {
904
- for (const { platform, thread, message } of bound().locate(input.url)) for (const entry of bound().sync.filter((candidate) => candidate.platform === platform)) {
905
- const at = await own.syncFind({
906
- thread: `${entry.key}:${thread}`,
907
- ...message !== null ? { message } : {}
908
- }, { signal }).catch(rethrow);
909
- const found = message !== null ? at.message : at.thread === null ? null : (await own.syncThread(at.thread).catch(rethrow)).root;
910
- if (found !== null) return found;
911
- }
912
- return null;
913
- };
914
- const id = await first();
915
- if (id === null) return remoteCall("linked", caller, input, signal);
916
- try {
917
- return await methods.message(caller, { id }, signal);
918
- } catch (error) {
919
- if (error instanceof HttpError && error.status === 404) throw missing();
920
- throw error;
921
- }
922
- },
923
- async typing(caller, input, signal) {
924
- const { targets } = await remoteCall("typing", caller, input, signal);
925
- if (!("self" in caller) || bound().sync.length === 0) return { targets };
926
- const { message, replies } = await methods.message(caller, { id: input.id }, signal);
927
- const here = await bound().typing([message, ...replies], input.status).catch((error) => {
928
- console.warn("[board] skipped typing where this board syncs:", describe(error));
929
- return [];
930
- });
931
- return { targets: [...targets, ...here] };
932
880
  }
933
881
  };
882
+ let running = null;
883
+ /** Whether they won't run, or won't again: on Vercel, or once closed. */
884
+ let stopped = false;
934
885
  /**
935
- * Where the remote wakes this board: on a board that wakes by path, the path on this project,
936
- * which gets through its Deployment Protection (`wakePath`); anywhere else, its URL.
886
+ * On first use, this board's watchers start following the board it uses, in this process, as
887
+ * `vb tail` does. Nothing wakes a board on http(). A deployment's function doesn't outlive its
888
+ * request, so on Vercel none run.
937
889
  */
938
- async function wakeAt(here) {
939
- const path = wakePath(here);
940
- return path && (await discovery()).wake_by_path ? path : { url: here };
890
+ function start() {
891
+ if (running || stopped || Object.keys(tails).length === 0) return;
892
+ if (deployedOnVercel()) {
893
+ stopped = true;
894
+ console.error(`[board] watchers on a board that uses ${remote} run only in a process that stays up: on Vercel, none run`);
895
+ return;
896
+ }
897
+ running = tailWatchers({
898
+ watchers: tails,
899
+ events: async (query, signal) => (await call(own, "events", query, signal)).json(),
900
+ actorOf: async (id) => (await asProfile(id).me().catch(rethrow)).actor,
901
+ run: (id, event, meta) => bound().run(id, event, meta)
902
+ });
903
+ running.start();
941
904
  }
942
- const runner = registrant({
943
- remote,
944
- registry: {
945
- register: (where) => own.register({
946
- ...where,
947
- watch: specs,
948
- ...sync.length > 0 ? { sync } : {}
949
- }),
950
- matches: (query) => own.matches(query),
951
- ack: (id, body) => own.ack(id, body)
952
- },
953
- wakeAt,
954
- binding: bound,
955
- hash: watchersHash,
956
- hasWork: () => Object.keys(specs).length > 0 || sync.length > 0,
957
- rethrow,
958
- registerFor: async (caller, request) => json(await methods.register(caller, RegisterBody.parse(await request.json()), request.signal))
959
- });
960
- const start = runner.start;
961
905
  return {
962
906
  ...methods,
963
- routes: runner.routes,
907
+ routes: [],
964
908
  keeps: false,
965
909
  bind(next) {
966
910
  if (binding) throw new Error("http: this backend already serves a board: create one http() per board()");
967
911
  for (const [id, spec] of Object.entries(next.subscriptions)) {
968
- if (spec.kind === "sync") {
969
- if (id === "@sync") sync = next.sync.map((entry) => ({ ...entry }));
970
- continue;
971
- }
912
+ if (spec.kind === "sync") throw new Error(`http: sync doesn't run on a board that uses ${remote}: sync from that board's own config`);
972
913
  if (!PROFILE.test(id)) throw new Error(`watch ${id}: ${PROFILE_RULE}`);
973
- compileWatcher(id, spec);
974
- specs[id] = { tail: spec.tail };
914
+ const { filters, all } = compileWatcher(id, spec);
915
+ tails[id] = {
916
+ filters,
917
+ all
918
+ };
975
919
  }
976
- hash = null;
977
920
  binding = next;
978
921
  },
979
- /** Registers this board's watchers with the board it uses now, as `POST /watchers` does. */
980
- registerWatchers: runner.registerNow,
981
- /** Stops pulling, for a board that pulls on its own. */
982
- close: runner.close
922
+ /** Stops its watchers' tails. */
923
+ close: () => {
924
+ stopped = true;
925
+ running?.close();
926
+ running = null;
927
+ }
983
928
  };
984
929
  }
985
930
  //#endregion
@@ -1077,6 +1022,8 @@ const environment = {
1077
1022
  profile: environmentProfile,
1078
1023
  boardToken: () => boardToken() !== null
1079
1024
  };
1025
+ /** The fetch `vercel()` sends by default, with the credentials it finds: for the CLI to add a header of its own to. */
1026
+ const credentialed = () => environment.fetch();
1080
1027
  /**
1081
1028
  * Your team's board, in Vercel's API: this board keeps nothing, and reads and writes that one as
1082
1029
  * this deployment's project, or as you. Without `board`, the team's board; without `fetch`, it
@@ -1095,9 +1042,9 @@ function vercel(options = {}) {
1095
1042
  function board(options = {}) {
1096
1043
  return createBoard(options, {
1097
1044
  backend: (fetch) => process.env.BOARD_URL?.trim() ? http() : vercel(fetch ? { fetch } : {}),
1098
- sync: () => import("./engine-COa73McY.mjs"),
1099
- serving: () => import("./serving-6_bhBNAW.mjs")
1045
+ sync: () => import("./engine-eUgO5jTM.mjs"),
1046
+ serving: () => import("./serving-DJMcG0dT.mjs")
1100
1047
  });
1101
1048
  }
1102
1049
  //#endregion
1103
- export { http as a, handFetch as c, projectDir as d, vercelProjectFile as f, vercel as i, handLogin as l, credentialSource as n, boardUrl as o, handTeam as r, connect as s, board as t, localTokenFile as u };
1050
+ export { vercel as a, connect as c, localTokenFile as d, projectDir as f, handTeam as i, handFetch as l, credentialSource as n, http as o, vercelProjectFile as p, credentialed as r, boardUrl as s, board as t, handLogin as u };
@@ -1,2 +1,2 @@
1
- import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-Dn4cPZIr.mjs";
1
+ import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-DA9ipsZ-.mjs";
2
2
  export { discoveryIdentity, oidcTokens, ownProjectId, ownTeamId };
@@ -1,5 +1,5 @@
1
- import { _ as actorKind } from "./schemas-BG205xds.mjs";
2
- import { c as externalMessageKey, l as isThreadTarget } from "./external-BA2aCC_3.mjs";
1
+ import { _ as actorKind } from "./schemas-AZkxk06N.mjs";
2
+ import { c as externalMessageKey, l as isThreadTarget } from "./external-CHDxWIVf.mjs";
3
3
  import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
4
4
  import { n as setOwn, t as own } from "./own-OwgPWdmh.mjs";
5
5
  //#region src/contract/folds.ts
@@ -1,6 +1,6 @@
1
- import { r as sqlTables } from "./sql-aetuEBZC.mjs";
1
+ import { r as sqlTables } from "./sql-l3ysn4O5.mjs";
2
2
  import { t as sqlite$1 } from "./store-sqlite-D6fIszST.mjs";
3
- import { t as sqliteDb } from "./sqlite-db-BPwRoDI7.mjs";
3
+ import { t as sqliteDb } from "./sqlite-db-cm5yhrD-.mjs";
4
4
  //#region src/store/sqlite.ts
5
5
  /**
6
6
  * A local board in one SQLite file, its log and board's tables side by side. It
@@ -1,4 +1,4 @@
1
- import { n as ddl } from "./sql-aetuEBZC.mjs";
1
+ import { n as ddl } from "./sql-l3ysn4O5.mjs";
2
2
  import { mkdirSync } from "node:fs";
3
3
  import { dirname, resolve } from "node:path";
4
4
  //#region src/store/sqlite-db.ts
@@ -1,5 +1,5 @@
1
- import { b as channels, g as SyncFn, p as SyncProvider } from "./provider-7pOnK8Jw.mjs";
2
- import { r as ChatTransport, t as ChatInput } from "./chat-provider-DFYEReZL.mjs";
1
+ import { b as channels, g as SyncFn, p as SyncProvider } from "./provider-D5yVFisj.mjs";
2
+ import { r as ChatTransport, t as ChatInput } from "./chat-provider-DyNy5xdC.mjs";
3
3
  import { z } from "zod";
4
4
  import { ReactionEvent } from "chat";
5
5
  //#region src/sync/chat-sdk.d.ts
@@ -1,5 +1,5 @@
1
- import { f as channels, i as eventSchema, r as envelope } from "./events-v8f7pF9f.mjs";
2
- import { t as ChatSyncProvider } from "./chat-provider-C0WUS3-G.mjs";
1
+ import { f as channels, i as eventSchema, r as envelope } from "./events-C6HwB046.mjs";
2
+ import { t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
3
3
  import { createHash } from "node:crypto";
4
4
  //#region src/sync/chat-sdk.ts
5
5
  const schemaOf = (platform) => eventSchema(platform, "message");
@@ -1,5 +1,5 @@
1
- import { f as SyncContext, g as SyncFn, y as SyncUnit } from "./provider-7pOnK8Jw.mjs";
2
- import { n as ChatSyncProvider } from "./chat-provider-DFYEReZL.mjs";
1
+ import { f as SyncContext, g as SyncFn, y as SyncUnit } from "./provider-D5yVFisj.mjs";
2
+ import { n as ChatSyncProvider } from "./chat-provider-DyNy5xdC.mjs";
3
3
  import { z } from "zod";
4
4
  import { Adapter } from "chat";
5
5
  //#region src/sync/github.d.ts
@@ -1,5 +1,5 @@
1
- import { g as withRoutes, i as eventSchema, p as into, r as envelope } from "./events-v8f7pF9f.mjs";
2
- import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-C0WUS3-G.mjs";
1
+ import { g as withRoutes, i as eventSchema, p as into, r as envelope } from "./events-C6HwB046.mjs";
2
+ import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
3
3
  import { n as tagOf } from "./tags-BpFo6q0_.mjs";
4
4
  import { z } from "zod";
5
5
  import { connectGitHubAdapter } from "@vercel/connect/chat";
@@ -1,6 +1,6 @@
1
- import { st as SourceRead } from "./routes-BtsZzal-.mjs";
2
- import { c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery, y as SyncUnit } from "./provider-7pOnK8Jw.mjs";
3
- import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-DFYEReZL.mjs";
1
+ import { st as SourceRead } from "./routes-BffuaoTX.mjs";
2
+ import { c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery, y as SyncUnit } from "./provider-D5yVFisj.mjs";
3
+ import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-DyNy5xdC.mjs";
4
4
  import { z } from "zod";
5
5
  import { Adapter } from "chat";
6
6
  //#region src/sync/linear.d.ts
@@ -1,5 +1,5 @@
1
- import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-v8f7pF9f.mjs";
2
- import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-C0WUS3-G.mjs";
1
+ import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-C6HwB046.mjs";
2
+ import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
3
3
  import { n as tagOf, t as slug } from "./tags-BpFo6q0_.mjs";
4
4
  import "zod";
5
5
  import { connectLinearAdapter } from "@vercel/connect/chat";
@@ -1,6 +1,6 @@
1
- import { on as ExternalLink } from "./routes-BtsZzal-.mjs";
2
- import { b as channels, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery } from "./provider-7pOnK8Jw.mjs";
3
- import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-DFYEReZL.mjs";
1
+ import { cn as ExternalLink } from "./routes-BffuaoTX.mjs";
2
+ import { b as channels, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery } from "./provider-D5yVFisj.mjs";
3
+ import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-DyNy5xdC.mjs";
4
4
  import { z } from "zod";
5
5
  import { Adapter } from "chat";
6
6
  //#region src/sync/slack.d.ts
@@ -1,7 +1,7 @@
1
- import { d as MESSAGE_TEXT_MAX } from "./schemas-BG205xds.mjs";
2
- import "./external-BA2aCC_3.mjs";
3
- import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-v8f7pF9f.mjs";
4
- import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-C0WUS3-G.mjs";
1
+ import { f as MESSAGE_TEXT_MAX } from "./schemas-AZkxk06N.mjs";
2
+ import "./external-CHDxWIVf.mjs";
3
+ import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-C6HwB046.mjs";
4
+ import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
5
5
  import { z } from "zod";
6
6
  import { stringifyMarkdown } from "chat";
7
7
  import { createSlackAdapter } from "@chat-adapter/slack";
package/dist/sync.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { an as ExternalFile, in as ExternalEvent, rn as ExternalAuthor } from "./routes-BtsZzal-.mjs";
2
- import { A as envelope, C as render, D as SyncOverrides, E as RootOverride, O as SyncResult, S as mirror, T as ProviderEvent, _ as SyncIn, a as ProviderOptions, b as channels, c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, h as Sync, i as ProviderFile, j as eventSchema, k as SyncRoot, l as RenderInput, m as UnreadableError, n as FileDelivery, o as ProviderPost, p as SyncProvider, r as ProviderDelivery, s as Receive, u as Renderer, v as SyncOut, w as EventBase, x as into, y as SyncUnit } from "./provider-7pOnK8Jw.mjs";
1
+ import { an as ExternalAuthor, on as ExternalEvent, sn as ExternalFile } from "./routes-BffuaoTX.mjs";
2
+ import { A as envelope, C as render, D as SyncOverrides, E as RootOverride, O as SyncResult, S as mirror, T as ProviderEvent, _ as SyncIn, a as ProviderOptions, b as channels, c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, h as Sync, i as ProviderFile, j as eventSchema, k as SyncRoot, l as RenderInput, m as UnreadableError, n as FileDelivery, o as ProviderPost, p as SyncProvider, r as ProviderDelivery, s as Receive, u as Renderer, v as SyncOut, w as EventBase, x as into, y as SyncUnit } from "./provider-D5yVFisj.mjs";
3
3
  export { EventBase, type ExternalAuthor, ExternalEvent, type ExternalFile, type FileDelivery, type ProviderDelivery, type ProviderEvent, type ProviderFile, type ProviderOptions, type ProviderPost, type Receive, ReceivedEvent, type RenderInput, type Renderer, ResolvedTarget, type RootOverride, type Sync, type SyncContext, type SyncFn, type SyncIn, type SyncOut, SyncOverrides, SyncProvider, type SyncResult, type SyncRoot, type SyncUnit, UnreadableError, channels, envelope, eventSchema, into, mirror, render };
package/dist/sync.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as ExternalEvent } from "./external-BA2aCC_3.mjs";
2
- import { c as SyncProvider, f as channels, h as render, i as eventSchema, l as UnreadableError, m as mirror, n as SyncOverrides, o as ReceivedEvent, p as into, r as envelope, s as ResolvedTarget, t as EventBase } from "./events-v8f7pF9f.mjs";
1
+ import { n as ExternalEvent } from "./external-CHDxWIVf.mjs";
2
+ import { c as SyncProvider, f as channels, h as render, i as eventSchema, l as UnreadableError, m as mirror, n as SyncOverrides, o as ReceivedEvent, p as into, r as envelope, s as ResolvedTarget, t as EventBase } from "./events-C6HwB046.mjs";
3
3
  export { EventBase, ExternalEvent, ReceivedEvent, ResolvedTarget, SyncOverrides, SyncProvider, UnreadableError, channels, envelope, eventSchema, into, mirror, render };