@vercel/board 0.56.1 → 0.57.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 (85) hide show
  1. package/dist/{access-HzqFpgL_.mjs → access-CIj7v_Dr.mjs} +1 -1
  2. package/dist/access.d.mts +2 -2
  3. package/dist/access.mjs +4 -4
  4. package/dist/{actors-D-u6bitG.mjs → actors-DVDTqjm7.mjs} +2 -2
  5. package/dist/{auth-D9ycDQK0.mjs → auth-BDWGvFWl.mjs} +2 -2
  6. package/dist/{auth-ULldUvir.d.mts → auth-C0Mla9OU.d.mts} +1 -1
  7. package/dist/{backend-BHN6GTjB.d.mts → backend-BuqwQbb4.d.mts} +6 -22
  8. package/dist/backend-local.d.mts +1 -1
  9. package/dist/backend-local.mjs +1 -1
  10. package/dist/backend-postgres/blob-vercel.d.mts +8 -0
  11. package/dist/backend-postgres/blob-vercel.mjs +81 -0
  12. package/dist/backend-postgres/scheduler-vercel.d.mts +2 -0
  13. package/dist/backend-postgres/scheduler-vercel.mjs +2 -0
  14. package/dist/backend-postgres.d.mts +74 -0
  15. package/dist/backend-postgres.mjs +3229 -0
  16. package/dist/blob-DjS53D1A.d.mts +35 -0
  17. package/dist/{chat-provider-F7UqWVZK.d.mts → chat-provider-CpYdXEpI.d.mts} +2 -2
  18. package/dist/cli-embedded.d.mts +2 -2
  19. package/dist/cli-embedded.mjs +2 -2
  20. package/dist/cli.mjs +5 -5
  21. package/dist/{client-CFHunEFn.d.mts → client-B0DGOt7P.d.mts} +1 -1
  22. package/dist/{conformance-BNiLcKra.mjs → conformance-FiQ68adg.mjs} +2 -2
  23. package/dist/conformance.d.mts +1 -1
  24. package/dist/conformance.mjs +1 -1
  25. package/dist/{engine-C8wCzkw-.mjs → engine-B_CjnE3G.mjs} +3 -3
  26. package/dist/{errors-DDfXnZ2b.mjs → errors-BfMR39F0.mjs} +60 -17
  27. package/dist/errors-DBZtbfph.d.mts +19 -0
  28. package/dist/{exports-BBmjHyCB.d.mts → exports-BvJTIorX.d.mts} +5 -4
  29. package/dist/{exports-DSX-CI5c.mjs → exports-x-ioAfbp.mjs} +23 -14
  30. package/dist/{index-Ce3SDZ3Y.d.mts → index-DuibwQf9.d.mts} +2 -2
  31. package/dist/index.d.mts +6 -5
  32. package/dist/index.mjs +4 -4
  33. package/dist/index.node.d.mts +7 -6
  34. package/dist/index.node.mjs +4 -4
  35. package/dist/inspect/app.js +35 -35
  36. package/dist/{inspect-C-vDnB_n.mjs → inspect-BFnDSdsq.mjs} +2 -2
  37. package/dist/inspect-BuNsu2z6.mjs +2 -0
  38. package/dist/inspect.d.mts +1 -1
  39. package/dist/inspect.mjs +1 -1
  40. package/dist/{internal-CvsrprnU-CEPOUpAv.mjs → internal-CvsrprnU-DhZF6sZK.mjs} +43 -1
  41. package/dist/{local-B5aZcAwj.mjs → local-Bt1-jA9A.mjs} +129 -3956
  42. package/dist/local-Gp8pqHSu.mjs +98 -0
  43. package/dist/{main-DSlpMoBN.mjs → main-Du-mKQZn.mjs} +93 -13
  44. package/dist/{memory-wmUDblhm.mjs → memory-74hyK6eH.mjs} +3 -3
  45. package/dist/{mentions-CnWt9Z5b.mjs → mentions-DBGmqkr2.mjs} +5 -1
  46. package/dist/{middleware-BY4qqIh3.mjs → middleware-bIABV895.mjs} +1 -1
  47. package/dist/{provider-DgGp4Zej.d.mts → provider-BNVyVKtH.d.mts} +2 -2
  48. package/dist/{routes-DNmQSOvQ.d.mts → routes-CSnxZyyb.d.mts} +2 -2
  49. package/dist/{serve-CI3kvpx_.mjs → serve-xOoxwq7T.mjs} +6 -6
  50. package/dist/{server-55vryxAl.mjs → server-BSexF7Bk.mjs} +8 -8
  51. package/dist/server-DX7mM6nm-Cq1xPyqJ.mjs +3769 -0
  52. package/dist/{serving-C1mhZQqH.mjs → serving-ByD4TOOU.mjs} +1 -1
  53. package/dist/{shell-7nGyF--f.mjs → shell-0nWQEqh3.mjs} +5 -1
  54. package/dist/{sql-D0MqINA6.mjs → sql-CvBbb5Ui.mjs} +33 -22
  55. package/dist/{sqlite-Dj2ZEtgy.mjs → sqlite-DtfrT_EP.mjs} +3 -3
  56. package/dist/{sqlite-db-DjbTlUwN.mjs → sqlite-db-DSVlzQjv.mjs} +2 -2
  57. package/dist/store-N8PXxDAS-DWWgv-Vz.mjs +5 -0
  58. package/dist/{store-N8PXxDAS-BdL4Sq-f.mjs → store-codec-pAG2oPgQ-DbEYfF5Y.mjs} +2 -6
  59. package/dist/{store-memory-CKQVEzXN.mjs → store-memory-DOMraCLN.mjs} +3 -2
  60. package/dist/store-memory-XNDFHASI.mjs +2 -0
  61. package/dist/{store-polling-BZt2Rf3D-oh3aU_An.mjs → store-polling-BZt2Rf3D-nlZUQLz2.mjs} +1 -1
  62. package/dist/store-sqlite-Cs8dH9EX.mjs +2 -0
  63. package/dist/{store-sqlite-D6fIszST.mjs → store-sqlite-DUdQnX_6.mjs} +4 -3
  64. package/dist/sync-chat-sdk.d.mts +2 -2
  65. package/dist/sync-github.d.mts +2 -2
  66. package/dist/sync-linear.d.mts +3 -3
  67. package/dist/sync-slack.d.mts +3 -3
  68. package/dist/sync-slack.mjs +1 -1
  69. package/dist/sync.d.mts +2 -2
  70. package/dist/{task-batch-iecHMssy.mjs → task-batch-DgyfK9qx.mjs} +3 -3
  71. package/dist/{tokens-B3gXkQCs.mjs → tokens-_1X8JNLT.mjs} +2 -2
  72. package/dist/vercel-B5FM4uS8.d.mts +21 -0
  73. package/dist/vercel-BUb8II-P.mjs +305 -0
  74. package/dist/{version-gbihG3ui.mjs → version-CZT5WmZs.mjs} +1 -1
  75. package/docs/01-board/01-mounting.md +1 -0
  76. package/docs/01-board/12-postgres.md +222 -0
  77. package/docs/03-guides/02-inspector.md +33 -0
  78. package/docs/03-guides/07-build-a-ui.md +8 -4
  79. package/docs/04-reference/03-http.md +1 -1
  80. package/docs/index.md +4 -1
  81. package/package.json +31 -2
  82. package/sql/postgres/schema.sql +389 -0
  83. package/dist/inspect-CJ8osLQ-.mjs +0 -2
  84. package/dist/store-memory-OdGsc-t_.mjs +0 -2
  85. package/dist/store-sqlite-CTxAVCcz.mjs +0 -2
@@ -1,2 +1,2 @@
1
- import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-B3gXkQCs.mjs";
1
+ import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-_1X8JNLT.mjs";
2
2
  export { discoveryIdentity, oidcTokens, ownProjectId, ownTeamId };
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-gbihG3ui.mjs";
1
+ import { t as VERSION } from "./version-CZT5WmZs.mjs";
2
2
  //#region src/inspect/style.ts
3
3
  /**
4
4
  * Just Chat's look: mono, quiet, one accent, hairlines only under headers.
@@ -194,6 +194,8 @@ a:focus-visible, button:focus-visible, [role='separator']:focus-visible { outlin
194
194
  .message { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 6px 20px 4px 8px; }
195
195
  .message.continued { padding-top: 1px; padding-bottom: 1px; }
196
196
  .message.active { background: var(--shade); }
197
+ .message[data-target] { animation: target 2s ease-out; }
198
+ @keyframes target { from { background: var(--accent-transparent); } }
197
199
  .message.pending { opacity: 0.5; }
198
200
  .message.failed { opacity: 1; }
199
201
  .gutter { display: flex; justify-content: center; align-items: flex-start; }
@@ -274,6 +276,8 @@ a:focus-visible, button:focus-visible, [role='separator']:focus-visible { outlin
274
276
  line-height: 16px;
275
277
  }
276
278
  .badge.slack, .badge.github { border-color: var(--accent-transparent); background: none; color: var(--accent); }
279
+ .chips .label { max-width: 100%; }
280
+ .label-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
277
281
  .label:hover, .chip:hover { color: var(--bright); background: var(--shade-hover); }
278
282
  .label button { color: var(--faint); display: inline-flex; }
279
283
  .label button:hover { color: var(--bright); }
@@ -1,7 +1,7 @@
1
1
  import { A as actorKind, T as TASK_LABEL } from "./schemas-CUSTEFIy.mjs";
2
2
  import { c as externalMessageKey, l as isThreadTarget } from "./external-DkWafjn-.mjs";
3
3
  import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
4
- import { i as mentionTerms } from "./mentions-CnWt9Z5b.mjs";
4
+ import { a as mentionTerms } from "./mentions-DBGmqkr2.mjs";
5
5
  import { n as setOwn, t as own } from "./own-OwgPWdmh.mjs";
6
6
  //#region src/contract/folds.ts
7
7
  const iso = (date) => typeof date === "string" ? date : date.toISOString();
@@ -464,28 +464,30 @@ function projectSync(before, event) {
464
464
  //#region src/store/sql.ts
465
465
  /** The projection's name in `board_positions`, and the A2 consumer that runs it. */
466
466
  const TABLES_CONSUMER = "board-tables";
467
- /** The tables, as statements. */
468
- function ddl() {
467
+ /** The tables, as statements for one dialect. */
468
+ function ddl(dialect) {
469
+ const big = dialect === "postgres" ? "bigint" : "integer";
470
+ const bool = dialect === "postgres" ? "boolean" : "integer";
469
471
  return [
470
472
  `create table if not exists board_positions (
471
473
  consumer text primary key,
472
- log_index integer not null
474
+ log_index ${big} not null
473
475
  )`,
474
476
  `create table if not exists board_messages (
475
- id integer primary key,
477
+ id ${big} primary key,
476
478
  event_id text not null unique,
477
479
  channel text not null,
478
- re integer,
480
+ re ${big},
479
481
  by_actor text not null,
480
482
  by_principal text not null,
481
483
  by_profile text,
482
484
  from_key text,
483
- no_sync integer not null,
485
+ no_sync ${bool} not null,
484
486
  text_lower text not null,
485
- deleted integer not null,
486
- created_at integer not null,
487
+ deleted ${bool} not null,
488
+ created_at ${big} not null,
487
489
  replies integer not null default 0,
488
- at integer,
490
+ at ${big},
489
491
  data text not null
490
492
  )`,
491
493
  "create index if not exists board_messages_channel on board_messages (channel, id)",
@@ -495,13 +497,13 @@ function ddl() {
495
497
  "create index if not exists board_threads_at on board_messages (at) where re is null",
496
498
  "create index if not exists board_threads_channel on board_messages (channel, at) where re is null",
497
499
  `create table if not exists board_versions (
498
- log_index integer primary key,
499
- message_id integer not null,
500
+ log_index ${big} primary key,
501
+ message_id ${big} not null,
500
502
  data text not null
501
503
  )`,
502
504
  "create index if not exists board_versions_message on board_versions (message_id, log_index)",
503
505
  `create table if not exists board_terms (
504
- message_id integer not null,
506
+ message_id ${big} not null,
505
507
  term text not null,
506
508
  value text not null,
507
509
  primary key (message_id, term, value)
@@ -510,14 +512,14 @@ function ddl() {
510
512
  "create table if not exists board_sync_threads (\n thread text primary key,\n data text not null\n)",
511
513
  "create table if not exists board_external_threads (\n external text primary key,\n thread text not null\n)",
512
514
  `create table if not exists board_copies (
513
- message_id integer not null,
515
+ message_id ${big} not null,
514
516
  target text not null,
515
517
  data text not null,
516
518
  primary key (message_id, target)
517
519
  )`,
518
520
  `create table if not exists board_external_messages (
519
521
  key text primary key,
520
- message_id integer not null
522
+ message_id ${big} not null
521
523
  )`,
522
524
  "drop index if exists board_messages_recent",
523
525
  "create table if not exists board_meta (\n key text primary key,\n value text not null\n)"
@@ -537,6 +539,14 @@ const clean = (value) => value.replaceAll("\0", "").toWellFormed();
537
539
  * digit, so it's never a label's.
538
540
  */
539
541
  const MENTION = "@";
542
+ /**
543
+ * The longest mention the tables index, in characters: far past any actor ID or handle, and short
544
+ * enough for Postgres's index, which takes an entry to about 2.7 kB. `@[…]` takes a name of any
545
+ * length, and one longer names no actor, so no filter needs it.
546
+ */
547
+ const MENTION_TERM_MAX = 500;
548
+ /** What `text` mentions, as the tables index it. */
549
+ const indexedMentions = (text) => mentionTerms(text).filter((term) => term.length <= MENTION_TERM_MAX);
540
550
  /** An attachment's term, the same way. */
541
551
  const ATTACHMENT = "^";
542
552
  /** Terms one insert takes, three parameters each. */
@@ -610,16 +620,17 @@ function sqlTables(db) {
610
620
  const writes = [];
611
621
  for (const row of rows) {
612
622
  const message = parse(row);
613
- const unchanged = "json_extract((select data from board_messages where id = $1), '$.text') = $2";
623
+ const unchanged = "(select text_lower from board_messages where id = cast($1 as bigint)) = cast($2 as text)";
624
+ const read = clean(message.text.toLowerCase());
614
625
  writes.push({
615
- text: `delete from board_terms where message_id = $1 and term = '${MENTION}' and ${unchanged}`,
616
- values: [message.id, message.text]
626
+ text: `delete from board_terms where message_id = cast($1 as bigint) and term = '${MENTION}' and ${unchanged}`,
627
+ values: [message.id, read]
617
628
  });
618
- for (const term of mentionTerms(message.text)) writes.push({
619
- text: `insert or ignore into board_terms (message_id, term, value) select $1, '${MENTION}', $3 where ${unchanged}`,
629
+ for (const term of indexedMentions(message.text)) writes.push({
630
+ text: `insert into board_terms (message_id, term, value) select cast($1 as bigint), '${MENTION}', cast($3 as text) where ${unchanged} on conflict do nothing`,
620
631
  values: [
621
632
  message.id,
622
- message.text,
633
+ read,
623
634
  clean(term)
624
635
  ]
625
636
  });
@@ -753,7 +764,7 @@ function sqlTables(db) {
753
764
  },
754
765
  terms: m && change.message.terms ? [
755
766
  ...Object.entries(m.labels).map(([key, value]) => [key, clean(value)]),
756
- ...mentionTerms(m.text).map((term) => [MENTION, clean(term)]),
767
+ ...indexedMentions(m.text).map((term) => [MENTION, clean(term)]),
757
768
  ...[...new Set(m.attachments.map((file) => file.id))].map((id) => [ATTACHMENT, clean(id)])
758
769
  ] : null,
759
770
  summary: change.summary ?? null,
@@ -1,6 +1,6 @@
1
- import { r as sqlTables } from "./sql-D0MqINA6.mjs";
2
- import { t as sqlite$1 } from "./store-sqlite-D6fIszST.mjs";
3
- import { t as sqliteDb } from "./sqlite-db-DjbTlUwN.mjs";
1
+ import { r as sqlTables } from "./sql-CvBbb5Ui.mjs";
2
+ import { t as sqlite$1 } from "./store-sqlite-DUdQnX_6.mjs";
3
+ import { t as sqliteDb } from "./sqlite-db-DSVlzQjv.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-D0MqINA6.mjs";
1
+ import { n as ddl } from "./sql-CvBbb5Ui.mjs";
2
2
  import { mkdirSync } from "node:fs";
3
3
  import { dirname, resolve } from "node:path";
4
4
  //#region src/store/sqlite-db.ts
@@ -20,7 +20,7 @@ function sqliteDb(path) {
20
20
  )), { recursive: true });
21
21
  const db = new Database(path);
22
22
  db.exec("pragma busy_timeout = 5000");
23
- for (const statement of ddl()) db.exec(statement);
23
+ for (const statement of ddl("sqlite")) db.exec(statement);
24
24
  const statements = /* @__PURE__ */ new Map();
25
25
  const run = (query) => {
26
26
  let statement = statements.get(query.text);
@@ -0,0 +1,5 @@
1
+ //#region ../../node_modules/.pnpm/experimental-a2@0.24.0_@upstash+qstash@2.12.0_@vercel+queue@0.7.0_ai@7.0.130_zod@4.6.5__b1e2c243a963f2620a5d202817417c26/node_modules/experimental-a2/dist/store-N8PXxDAS.js
2
+ const SYSTEM_CLOCK = { now: () => /* @__PURE__ */ new Date() };
3
+ const RANDOM_IDS = () => crypto.randomUUID();
4
+ //#endregion
5
+ export { SYSTEM_CLOCK as n, RANDOM_IDS as t };
@@ -1,4 +1,4 @@
1
- import { b as duplicateBatchError } from "./internal-CvsrprnU-CEPOUpAv.mjs";
1
+ import { C as duplicateBatchError } from "./internal-CvsrprnU-DhZF6sZK.mjs";
2
2
  //#region ../../node_modules/.pnpm/experimental-a2@0.24.0_@upstash+qstash@2.12.0_@vercel+queue@0.7.0_ai@7.0.130_zod@4.6.5__b1e2c243a963f2620a5d202817417c26/node_modules/experimental-a2/dist/store-codec-pAG2oPgQ.js
3
3
  const canonicalJson = (value) => JSON.stringify(value, (_key, candidate) => {
4
4
  if (candidate === null || typeof candidate !== "object" || Array.isArray(candidate)) return candidate;
@@ -58,8 +58,4 @@ const idleLogCursor = (consumer, lane, position) => ({
58
58
  failedAt: null
59
59
  });
60
60
  //#endregion
61
- //#region ../../node_modules/.pnpm/experimental-a2@0.24.0_@upstash+qstash@2.12.0_@vercel+queue@0.7.0_ai@7.0.130_zod@4.6.5__b1e2c243a963f2620a5d202817417c26/node_modules/experimental-a2/dist/store-N8PXxDAS.js
62
- const SYSTEM_CLOCK = { now: () => /* @__PURE__ */ new Date() };
63
- const RANDOM_IDS = () => crypto.randomUUID();
64
- //#endregion
65
- export { decodeReturnedEventIds as a, decodeCause as i, SYSTEM_CLOCK as n, idempotentReplay as o, cursorKeyOf as r, idleLogCursor as s, RANDOM_IDS as t };
61
+ export { idleLogCursor as a, idempotentReplay as i, decodeCause as n, decodeReturnedEventIds as r, cursorKeyOf as t };
@@ -1,5 +1,6 @@
1
- import { C as sessionClearedError, S as lastIndexMismatchError, _ as CLEAR_EVENT_TYPE, b as duplicateBatchError, d as nullProtoRecord, g as A2Error, w as supersededAttemptError } from "./internal-CvsrprnU-CEPOUpAv.mjs";
2
- import { n as SYSTEM_CLOCK, o as idempotentReplay, s as idleLogCursor, t as RANDOM_IDS } from "./store-N8PXxDAS-BdL4Sq-f.mjs";
1
+ import { C as duplicateBatchError, D as supersededAttemptError, E as sessionClearedError, T as lastIndexMismatchError, b as CLEAR_EVENT_TYPE, m as nullProtoRecord, y as A2Error } from "./internal-CvsrprnU-DhZF6sZK.mjs";
2
+ import { n as SYSTEM_CLOCK, t as RANDOM_IDS } from "./store-N8PXxDAS-DWWgv-Vz.mjs";
3
+ import { a as idleLogCursor, i as idempotentReplay } from "./store-codec-pAG2oPgQ-DbEYfF5Y.mjs";
3
4
  //#region ../../node_modules/.pnpm/experimental-a2@0.24.0_@upstash+qstash@2.12.0_@vercel+queue@0.7.0_ai@7.0.130_zod@4.6.5__b1e2c243a963f2620a5d202817417c26/node_modules/experimental-a2/dist/store-memory.js
4
5
  const RECLAIM_BATCH = 256;
5
6
  const headOf = (log) => log ? log.offset + log.rows.length : 0;
@@ -0,0 +1,2 @@
1
+ import { t as memory } from "./store-memory-DOMraCLN.mjs";
2
+ export { memory };
@@ -1,4 +1,4 @@
1
- import { n as POLL_TIMINGS } from "./internal-CvsrprnU-CEPOUpAv.mjs";
1
+ import { r as POLL_TIMINGS } from "./internal-CvsrprnU-DhZF6sZK.mjs";
2
2
  //#region ../../node_modules/.pnpm/experimental-a2@0.24.0_@upstash+qstash@2.12.0_@vercel+queue@0.7.0_ai@7.0.130_zod@4.6.5__b1e2c243a963f2620a5d202817417c26/node_modules/experimental-a2/dist/store-polling-BZt2Rf3D.js
3
3
  const streamActivities = /* @__PURE__ */ new WeakMap();
4
4
  function createStreamActivity(wake) {
@@ -0,0 +1,2 @@
1
+ import { t as sqlite } from "./store-sqlite-DUdQnX_6.mjs";
2
+ export { sqlite };
@@ -1,6 +1,7 @@
1
- import { C as sessionClearedError, S as lastIndexMismatchError, _ as CLEAR_EVENT_TYPE, b as duplicateBatchError, g as A2Error, w as supersededAttemptError } from "./internal-CvsrprnU-CEPOUpAv.mjs";
2
- import { r as pollingStream } from "./store-polling-BZt2Rf3D-oh3aU_An.mjs";
3
- import { a as decodeReturnedEventIds, i as decodeCause, n as SYSTEM_CLOCK, o as idempotentReplay, r as cursorKeyOf, s as idleLogCursor, t as RANDOM_IDS } from "./store-N8PXxDAS-BdL4Sq-f.mjs";
1
+ import { C as duplicateBatchError, D as supersededAttemptError, E as sessionClearedError, T as lastIndexMismatchError, b as CLEAR_EVENT_TYPE, y as A2Error } from "./internal-CvsrprnU-DhZF6sZK.mjs";
2
+ import { r as pollingStream } from "./store-polling-BZt2Rf3D-nlZUQLz2.mjs";
3
+ import { n as SYSTEM_CLOCK, t as RANDOM_IDS } from "./store-N8PXxDAS-DWWgv-Vz.mjs";
4
+ import { a as idleLogCursor, i as idempotentReplay, n as decodeCause, r as decodeReturnedEventIds, t as cursorKeyOf } from "./store-codec-pAG2oPgQ-DbEYfF5Y.mjs";
4
5
  import { mkdirSync } from "node:fs";
5
6
  import { dirname, resolve } from "node:path";
6
7
  import { DatabaseSync } from "node:sqlite";
@@ -1,5 +1,5 @@
1
- import { _ as SyncFn, m as SyncProvider, x as channels } from "./provider-DgGp4Zej.mjs";
2
- import { r as ChatTransport, t as ChatInput } from "./chat-provider-F7UqWVZK.mjs";
1
+ import { _ as SyncFn, m as SyncProvider, x as channels } from "./provider-BNVyVKtH.mjs";
2
+ import { r as ChatTransport, t as ChatInput } from "./chat-provider-CpYdXEpI.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 { _ as SyncFn, b as SyncUnit, p as SyncContext } from "./provider-DgGp4Zej.mjs";
2
- import { n as ChatSyncProvider } from "./chat-provider-F7UqWVZK.mjs";
1
+ import { _ as SyncFn, b as SyncUnit, p as SyncContext } from "./provider-BNVyVKtH.mjs";
2
+ import { n as ChatSyncProvider } from "./chat-provider-CpYdXEpI.mjs";
3
3
  import { z } from "zod";
4
4
  import { Adapter } from "chat";
5
5
  //#region src/sync/github.d.ts
@@ -1,6 +1,6 @@
1
- import { Vt as SourceRead } from "./routes-DNmQSOvQ.mjs";
2
- import { _ as SyncFn, b as SyncUnit, f as ResolvedTarget, l as ReceivedEvent, o as ProviderPost, p as SyncContext, r as ProviderDelivery } from "./provider-DgGp4Zej.mjs";
3
- import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-F7UqWVZK.mjs";
1
+ import { Vt as SourceRead } from "./routes-CSnxZyyb.mjs";
2
+ import { _ as SyncFn, b as SyncUnit, f as ResolvedTarget, l as ReceivedEvent, o as ProviderPost, p as SyncContext, r as ProviderDelivery } from "./provider-BNVyVKtH.mjs";
3
+ import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-CpYdXEpI.mjs";
4
4
  import { z } from "zod";
5
5
  import { Adapter } from "chat";
6
6
  //#region src/sync/linear.d.ts
@@ -1,6 +1,6 @@
1
- import { Xn as ExternalLink } from "./routes-DNmQSOvQ.mjs";
2
- import { _ as SyncFn, f as ResolvedTarget, o as ProviderPost, p as SyncContext, r as ProviderDelivery, s as ProviderSender, x as channels } from "./provider-DgGp4Zej.mjs";
3
- import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-F7UqWVZK.mjs";
1
+ import { Xn as ExternalLink } from "./routes-CSnxZyyb.mjs";
2
+ import { _ as SyncFn, f as ResolvedTarget, o as ProviderPost, p as SyncContext, r as ProviderDelivery, s as ProviderSender, x as channels } from "./provider-BNVyVKtH.mjs";
3
+ import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-CpYdXEpI.mjs";
4
4
  import { z } from "zod";
5
5
  import { Adapter } from "chat";
6
6
  //#region src/sync/slack-deployments.d.ts
@@ -1,6 +1,6 @@
1
1
  import { m as MESSAGE_TEXT_MAX } from "./schemas-CUSTEFIy.mjs";
2
2
  import "./external-DkWafjn-.mjs";
3
- import { t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
3
+ import { t as extractMentions } from "./mentions-DBGmqkr2.mjs";
4
4
  import { d as opensBlock, i as eventSchema, l as UnreadableError, p as channels, r as envelope } from "./events-mWKc1uvZ.mjs";
5
5
  import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-Br2RXgLV.mjs";
6
6
  import { r as formatVercelDeployments } from "./bots-CqPYxkqK.mjs";
package/dist/sync.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { Jn as ExternalEvent, Yn as ExternalFile, qn as ExternalAuthor } from "./routes-DNmQSOvQ.mjs";
2
- import { A as SyncRoot, C as mirror, D as RootOverride, E as ProviderEvent, M as eventSchema, N as VercelDeployment, O as SyncOverrides, S as into, T as EventBase, _ as SyncFn, a as ProviderOptions, b as SyncUnit, c as Receive, d as Renderer, f as ResolvedTarget, g as Sync, h as UnreadableError, i as ProviderFile, j as envelope, k as SyncResult, l as ReceivedEvent, m as SyncProvider, n as FileDelivery, o as ProviderPost, p as SyncContext, r as ProviderDelivery, u as RenderInput, v as SyncIn, w as render, x as channels, y as SyncOut } from "./provider-DgGp4Zej.mjs";
1
+ import { Jn as ExternalEvent, Yn as ExternalFile, qn as ExternalAuthor } from "./routes-CSnxZyyb.mjs";
2
+ import { A as SyncRoot, C as mirror, D as RootOverride, E as ProviderEvent, M as eventSchema, N as VercelDeployment, O as SyncOverrides, S as into, T as EventBase, _ as SyncFn, a as ProviderOptions, b as SyncUnit, c as Receive, d as Renderer, f as ResolvedTarget, g as Sync, h as UnreadableError, i as ProviderFile, j as envelope, k as SyncResult, l as ReceivedEvent, m as SyncProvider, n as FileDelivery, o as ProviderPost, p as SyncContext, r as ProviderDelivery, u as RenderInput, v as SyncIn, w as render, x as channels, y as SyncOut } from "./provider-BNVyVKtH.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, type VercelDeployment, channels, envelope, eventSchema, into, mirror, render };
@@ -1,9 +1,9 @@
1
1
  import { c as fileNameProblem, i as ATTACHMENT_BYTES_MAX, s as fileName } from "./profile-header-O8wC8yk8.mjs";
2
2
  import "./schemas-CUSTEFIy.mjs";
3
3
  import { l as isThreadTarget } from "./external-DkWafjn-.mjs";
4
- import { I as Filters, ht as routes, r as badRequest, t as HttpError } from "./errors-DDfXnZ2b.mjs";
5
- import { i as afterRetry } from "./middleware-BY4qqIh3.mjs";
6
- import { t as VERSION } from "./version-gbihG3ui.mjs";
4
+ import { L as Filters, gt as routes, r as badRequest, t as HttpError } from "./errors-BfMR39F0.mjs";
5
+ import { i as afterRetry } from "./middleware-bIABV895.mjs";
6
+ import { t as VERSION } from "./version-CZT5WmZs.mjs";
7
7
  import { t as own } from "./own-OwgPWdmh.mjs";
8
8
  import { o as options } from "./commands-7FY_8p92.mjs";
9
9
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
- import { d as unauthorized } from "./errors-DDfXnZ2b.mjs";
2
- import { S as trustedIssuers, _ as markVerified, a as TOKENS, h as issuerName, o as VERCEL_ISSUER, x as subFits, y as privateHost } from "./auth-D9ycDQK0.mjs";
1
+ import { d as unauthorized } from "./errors-BfMR39F0.mjs";
2
+ import { S as trustedIssuers, _ as markVerified, a as TOKENS, h as issuerName, o as VERCEL_ISSUER, x as subFits, y as privateHost } from "./auth-BDWGvFWl.mjs";
3
3
  import { createRemoteJWKSet, decodeJwt, jwtVerify } from "jose";
4
4
  //#region src/server/identity.ts
5
5
  let fromDisk;
@@ -0,0 +1,21 @@
1
+ //#region src/scheduler/vercel.d.ts
2
+ /**
3
+ * What runs a board's timers off the process: pass it to `postgres({ scheduler })`, and mount it,
4
+ * as the route its queue calls: `export { scheduler as POST }`.
5
+ */
6
+ type Scheduler = ((request: Request) => Promise<Response>) & {
7
+ readonly __boardScheduler: true;
8
+ };
9
+ type VercelQueuesOptions = {
10
+ /** The queue topic its timers go on, `[A-Za-z0-9_-]+`: the one the scheduler route's trigger names. Default `board`. */
11
+ topic?: string;
12
+ };
13
+ /**
14
+ * Vercel Queues as a board's scheduler (`npm i @vercel/queue`): scheduled messages, leases running
15
+ * out, and watchers' and sync's retries go out on time with nothing running, each to the
16
+ * deployment that armed it. It's also the route the topic calls: mount it as `POST` in a route of
17
+ * its own, which `vercel.json` gives a `queue/v2beta` trigger on the topic.
18
+ */
19
+ declare function vercelQueues(options?: VercelQueuesOptions): Scheduler;
20
+ //#endregion
21
+ export { VercelQueuesOptions as n, vercelQueues as r, Scheduler as t };