@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.
- package/dist/{access-HzqFpgL_.mjs → access-CIj7v_Dr.mjs} +1 -1
- package/dist/access.d.mts +2 -2
- package/dist/access.mjs +4 -4
- package/dist/{actors-D-u6bitG.mjs → actors-DVDTqjm7.mjs} +2 -2
- package/dist/{auth-D9ycDQK0.mjs → auth-BDWGvFWl.mjs} +2 -2
- package/dist/{auth-ULldUvir.d.mts → auth-C0Mla9OU.d.mts} +1 -1
- package/dist/{backend-BHN6GTjB.d.mts → backend-BuqwQbb4.d.mts} +6 -22
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/backend-postgres/blob-vercel.d.mts +8 -0
- package/dist/backend-postgres/blob-vercel.mjs +81 -0
- package/dist/backend-postgres/scheduler-vercel.d.mts +2 -0
- package/dist/backend-postgres/scheduler-vercel.mjs +2 -0
- package/dist/backend-postgres.d.mts +74 -0
- package/dist/backend-postgres.mjs +3229 -0
- package/dist/blob-DjS53D1A.d.mts +35 -0
- package/dist/{chat-provider-F7UqWVZK.d.mts → chat-provider-CpYdXEpI.d.mts} +2 -2
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +5 -5
- package/dist/{client-CFHunEFn.d.mts → client-B0DGOt7P.d.mts} +1 -1
- package/dist/{conformance-BNiLcKra.mjs → conformance-FiQ68adg.mjs} +2 -2
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-C8wCzkw-.mjs → engine-B_CjnE3G.mjs} +3 -3
- package/dist/{errors-DDfXnZ2b.mjs → errors-BfMR39F0.mjs} +60 -17
- package/dist/errors-DBZtbfph.d.mts +19 -0
- package/dist/{exports-BBmjHyCB.d.mts → exports-BvJTIorX.d.mts} +5 -4
- package/dist/{exports-DSX-CI5c.mjs → exports-x-ioAfbp.mjs} +23 -14
- package/dist/{index-Ce3SDZ3Y.d.mts → index-DuibwQf9.d.mts} +2 -2
- package/dist/index.d.mts +6 -5
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +7 -6
- package/dist/index.node.mjs +4 -4
- package/dist/inspect/app.js +35 -35
- package/dist/{inspect-C-vDnB_n.mjs → inspect-BFnDSdsq.mjs} +2 -2
- package/dist/inspect-BuNsu2z6.mjs +2 -0
- package/dist/inspect.d.mts +1 -1
- package/dist/inspect.mjs +1 -1
- package/dist/{internal-CvsrprnU-CEPOUpAv.mjs → internal-CvsrprnU-DhZF6sZK.mjs} +43 -1
- package/dist/{local-B5aZcAwj.mjs → local-Bt1-jA9A.mjs} +129 -3956
- package/dist/local-Gp8pqHSu.mjs +98 -0
- package/dist/{main-DSlpMoBN.mjs → main-Du-mKQZn.mjs} +93 -13
- package/dist/{memory-wmUDblhm.mjs → memory-74hyK6eH.mjs} +3 -3
- package/dist/{mentions-CnWt9Z5b.mjs → mentions-DBGmqkr2.mjs} +5 -1
- package/dist/{middleware-BY4qqIh3.mjs → middleware-bIABV895.mjs} +1 -1
- package/dist/{provider-DgGp4Zej.d.mts → provider-BNVyVKtH.d.mts} +2 -2
- package/dist/{routes-DNmQSOvQ.d.mts → routes-CSnxZyyb.d.mts} +2 -2
- package/dist/{serve-CI3kvpx_.mjs → serve-xOoxwq7T.mjs} +6 -6
- package/dist/{server-55vryxAl.mjs → server-BSexF7Bk.mjs} +8 -8
- package/dist/server-DX7mM6nm-Cq1xPyqJ.mjs +3769 -0
- package/dist/{serving-C1mhZQqH.mjs → serving-ByD4TOOU.mjs} +1 -1
- package/dist/{shell-7nGyF--f.mjs → shell-0nWQEqh3.mjs} +5 -1
- package/dist/{sql-D0MqINA6.mjs → sql-CvBbb5Ui.mjs} +33 -22
- package/dist/{sqlite-Dj2ZEtgy.mjs → sqlite-DtfrT_EP.mjs} +3 -3
- package/dist/{sqlite-db-DjbTlUwN.mjs → sqlite-db-DSVlzQjv.mjs} +2 -2
- package/dist/store-N8PXxDAS-DWWgv-Vz.mjs +5 -0
- package/dist/{store-N8PXxDAS-BdL4Sq-f.mjs → store-codec-pAG2oPgQ-DbEYfF5Y.mjs} +2 -6
- package/dist/{store-memory-CKQVEzXN.mjs → store-memory-DOMraCLN.mjs} +3 -2
- package/dist/store-memory-XNDFHASI.mjs +2 -0
- package/dist/{store-polling-BZt2Rf3D-oh3aU_An.mjs → store-polling-BZt2Rf3D-nlZUQLz2.mjs} +1 -1
- package/dist/store-sqlite-Cs8dH9EX.mjs +2 -0
- package/dist/{store-sqlite-D6fIszST.mjs → store-sqlite-DUdQnX_6.mjs} +4 -3
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync-slack.mjs +1 -1
- package/dist/sync.d.mts +2 -2
- package/dist/{task-batch-iecHMssy.mjs → task-batch-DgyfK9qx.mjs} +3 -3
- package/dist/{tokens-B3gXkQCs.mjs → tokens-_1X8JNLT.mjs} +2 -2
- package/dist/vercel-B5FM4uS8.d.mts +21 -0
- package/dist/vercel-BUb8II-P.mjs +305 -0
- package/dist/{version-gbihG3ui.mjs → version-CZT5WmZs.mjs} +1 -1
- package/docs/01-board/01-mounting.md +1 -0
- package/docs/01-board/12-postgres.md +222 -0
- package/docs/03-guides/02-inspector.md +33 -0
- package/docs/03-guides/07-build-a-ui.md +8 -4
- package/docs/04-reference/03-http.md +1 -1
- package/docs/index.md +4 -1
- package/package.json +31 -2
- package/sql/postgres/schema.sql +389 -0
- package/dist/inspect-CJ8osLQ-.mjs +0 -2
- package/dist/store-memory-OdGsc-t_.mjs +0 -2
- package/dist/store-sqlite-CTxAVCcz.mjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ATTACHMENT_BYTES_MAX, r as parseProfileHeader, t as InvalidProfileHeader } from "./profile-header-O8wC8yk8.mjs";
|
|
2
2
|
import "./schemas-CUSTEFIy.mjs";
|
|
3
|
-
import { t as Failed, u as who } from "./main-
|
|
4
|
-
import { n as relative, r as shell, t as CSP } from "./shell-
|
|
3
|
+
import { t as Failed, u as who } from "./main-Du-mKQZn.mjs";
|
|
4
|
+
import { n as relative, r as shell, t as CSP } from "./shell-0nWQEqh3.mjs";
|
|
5
5
|
import { t as page } from "./page-7KWSGxyC.mjs";
|
|
6
6
|
import { randomBytes, timingSafeEqual } from "node:crypto";
|
|
7
7
|
import { createServer } from "node:http";
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BoardClient } from "./client-
|
|
1
|
+
import { t as BoardClient } from "./client-B0DGOt7P.mjs";
|
|
2
2
|
//#region src/inspect/handler.d.ts
|
|
3
3
|
/** Answers the inspector's requests under `basePath`: `GET`, `POST`, `PATCH`, `PUT`, and `DELETE` alike. */
|
|
4
4
|
export type InspectorHandler = (request: Request) => Promise<Response>;
|
package/dist/inspect.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ATTACHMENT_BYTES_MAX, r as parseProfileHeader, t as InvalidProfileHeader } from "./profile-header-O8wC8yk8.mjs";
|
|
2
2
|
import "./schemas-CUSTEFIy.mjs";
|
|
3
|
-
import { n as relative, r as shell, t as CSP } from "./shell-
|
|
3
|
+
import { n as relative, r as shell, t as CSP } from "./shell-0nWQEqh3.mjs";
|
|
4
4
|
import { t as page } from "./page-7KWSGxyC.mjs";
|
|
5
5
|
//#region src/inspect/handler.ts
|
|
6
6
|
/**
|
|
@@ -124,6 +124,15 @@ const schedulerSendFailureState = (error) => {
|
|
|
124
124
|
});
|
|
125
125
|
return marker;
|
|
126
126
|
};
|
|
127
|
+
/**
|
|
128
|
+
* Classify an adapter error before throwing it. Unclassified adapter failures
|
|
129
|
+
* are retryable because the caller cannot know whether a remote send landed.
|
|
130
|
+
*/
|
|
131
|
+
function classifySchedulerSendFailure(error, disposition) {
|
|
132
|
+
const classified = schedulerFailureObject(error);
|
|
133
|
+
schedulerSendFailureState(classified).pending.push(disposition);
|
|
134
|
+
return classified;
|
|
135
|
+
}
|
|
127
136
|
/** Consume a pending adapter classification and count this rejected send. */
|
|
128
137
|
function markSchedulerSendFailure(error) {
|
|
129
138
|
const marked = schedulerFailureObject(error);
|
|
@@ -131,6 +140,25 @@ function markSchedulerSendFailure(error) {
|
|
|
131
140
|
marker.active.push(marker.pending.pop() ?? "retryable");
|
|
132
141
|
return marked;
|
|
133
142
|
}
|
|
143
|
+
const isDrainableServer = (value) => {
|
|
144
|
+
if (value === null || typeof value !== "object") return false;
|
|
145
|
+
const contract = Reflect.get(value, "contract");
|
|
146
|
+
return contract !== null && typeof contract === "object" && typeof Reflect.get(contract, "name") === "string" && typeof Reflect.get(value, "drain") === "function";
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Validate the server list captured by a scheduler route at construction time.
|
|
150
|
+
* The seam stays structural so custom scheduler integrations can supply their
|
|
151
|
+
* own drainable targets.
|
|
152
|
+
*/
|
|
153
|
+
function assertSchedulerTargets(servers) {
|
|
154
|
+
const contracts = /* @__PURE__ */ new Set();
|
|
155
|
+
for (const target of servers) {
|
|
156
|
+
if (!isDrainableServer(target)) throw new TypeError("a2 scheduler: expected a server from createServer()");
|
|
157
|
+
const name = target.contract.name;
|
|
158
|
+
if (contracts.has(name)) throw new TypeError(`a2 scheduler: duplicate server contract '${name}' in one handler`);
|
|
159
|
+
contracts.add(name);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
134
162
|
/**
|
|
135
163
|
* Drain timing knobs. Mutable only as a white-box test seam. Claim
|
|
136
164
|
* heartbeats run on real timers, so tests shrink these to keep suites
|
|
@@ -169,6 +197,20 @@ const POLL_TIMINGS = {
|
|
|
169
197
|
idleCeilingMs: 2e3
|
|
170
198
|
};
|
|
171
199
|
/**
|
|
200
|
+
* Timings for the notify-driven redis live stream. A parked feed re-reads
|
|
201
|
+
* the store every `safetyReadMs` even without a pub/sub wake-up, so a lost
|
|
202
|
+
* notification (subscriber reconnect gap, dropped PUBLISH) costs latency,
|
|
203
|
+
* never an event. Writers publish after their scripts, so wake-ups from
|
|
204
|
+
* concurrent writers can arrive out of order: a feed holds a gap for
|
|
205
|
+
* `reorderMs` before catching up with a read, and a write waits at most
|
|
206
|
+
* `publishMs` for its PUBLISH. Mutable only as a white-box test seam.
|
|
207
|
+
*/
|
|
208
|
+
const NOTIFY_TIMINGS = {
|
|
209
|
+
safetyReadMs: 1e4,
|
|
210
|
+
reorderMs: 50,
|
|
211
|
+
publishMs: 1e3
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
172
214
|
* Bounds for each server instance's in-memory reducer-state cache. Sizes are
|
|
173
215
|
* encoded JSON lengths, re-measured every `measureEvery` folded events, so
|
|
174
216
|
* the byte budget is approximate. Mutable only as a white-box test seam.
|
|
@@ -220,4 +262,4 @@ const PRESENCE_TIMINGS = {
|
|
|
220
262
|
tombstoneMs: 6e4
|
|
221
263
|
};
|
|
222
264
|
//#endregion
|
|
223
|
-
export {
|
|
265
|
+
export { duplicateBatchError as C, supersededAttemptError as D, sessionClearedError as E, asStoreUnavailable as S, lastIndexMismatchError as T, serverInternals as _, RESERVED_PARTICIPANT_IDS as a, CLEAR_EVENT_TYPE as b, STREAM_TIMINGS as c, drainSettledHooks as d, failedPreviousAttempt as f, runtimeConsumers as g, runtimeConsumerFactory as h, PRESENCE_TIMINGS as i, assertSchedulerTargets as l, nullProtoRecord as m, NOTIFY_TIMINGS as n, SOCKET_TIMINGS as o, markSchedulerSendFailure as p, POLL_TIMINGS as r, STATE_CACHE as s, DRAIN_TIMINGS as t, classifySchedulerSendFailure as u, stateTailReaders as v, isSessionCleared as w, NonRetriableError as x, A2Error as y };
|