@vercel/board 0.46.0 → 0.48.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-Crbvd2Dm.mjs → access-C06pIr0M.mjs} +1 -1
- package/dist/access.d.mts +2 -2
- package/dist/access.mjs +4 -4
- package/dist/{actors-BBphaJ_G.mjs → actors-Dkyg-oo0.mjs} +2 -2
- package/dist/{auth-C-pFnJBA.mjs → auth-B9-wXQ-x.mjs} +29 -9
- package/dist/{auth-CkNXnQno.d.mts → auth-li3lKwJG.d.mts} +1 -1
- package/dist/{backend-D3p8gjba.d.mts → backend-UBP6HimX.d.mts} +21 -4
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-Bn33acHd.d.mts → chat-provider-iN0DFsSE.d.mts} +7 -2
- package/dist/{chat-provider-1zpY6Qo_.mjs → chat-provider-kNWd6MQC.mjs} +10 -4
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +46 -15
- package/dist/{commands-CSZPQ38I.d.mts → commands-CJsOA-hf.d.mts} +6 -0
- package/dist/{commands-D0lyo8O8.mjs → commands-Dk6_cHLS.mjs} +6 -0
- package/dist/{conformance-Blzd4CXG.mjs → conformance-CDP8y2Zm.mjs} +94 -3
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-C_SlBihU.mjs → engine-B3Yd0OPc.mjs} +71 -52
- package/dist/{errors-DZ1tbwSM.mjs → errors-QhkdzI-o.mjs} +27 -8
- package/dist/{events-mGuhF4i5.mjs → events-B-qyxNsJ.mjs} +9 -1
- package/dist/{exports-DQauuHrc.mjs → exports-B5xOYHj_.mjs} +205 -56
- package/dist/{exports-DUX_Yzo7.d.mts → exports-inhbjAWi.d.mts} +4 -4
- package/dist/{external-BVr1Sq0y.mjs → external-BuVTXT1R.mjs} +6 -2
- package/dist/{index-BHXg4Xdo.d.mts → index-B0Fnhvk7.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +7 -7
- package/dist/index.node.mjs +4 -4
- package/dist/inspect/app.js +44 -44
- package/dist/inspect/engine.js +1 -1
- package/dist/{inspect-2OIjv2lW.mjs → inspect-CAz9PGLf.mjs} +89 -32
- package/dist/inspect-CNECs4UG.mjs +2 -0
- package/dist/{local-11FMUJrU.mjs → local-CKMP4xH3.mjs} +92 -50
- package/dist/{main-BYmbTDgo.mjs → main-DZZQEFVl.mjs} +127 -46
- package/dist/{memory-CZBdVNn8.mjs → memory-CMm-Fk_A.mjs} +2 -2
- package/dist/{mentions-DfZGp3B-.mjs → mentions-CnWt9Z5b.mjs} +34 -1
- package/dist/{middleware-BKsTcMAv.mjs → middleware-CT6vMNUc.mjs} +1 -1
- package/dist/{provider-D3bfHRHA.d.mts → provider-DC3WHUXo.d.mts} +88 -5
- package/dist/{routes-B2HHHD_C.mjs → routes-ABXf3CKq.mjs} +17 -4
- package/dist/{routes-NEc6w3QC.d.mts → routes-CjA6Mp4D.d.mts} +70 -0
- package/dist/serve-DBJTP0xd.mjs +285 -0
- package/dist/{server-Ch3tuK2k.mjs → server-DmlyIzMj.mjs} +38 -19
- package/dist/{serving-9riPNrHk.mjs → serving-BNdiReQT.mjs} +1 -1
- package/dist/{sql-Bml29DpM.mjs → sql-IEbO5vXs.mjs} +2 -2
- package/dist/{sqlite-4C5u7-ag.mjs → sqlite-CVG8XKHm.mjs} +2 -2
- package/dist/{sqlite-db-eVb9v3zc.mjs → sqlite-db-BJjPQYx4.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +16 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +16 -2
- package/dist/sync-github.mjs +3 -3
- package/dist/sync-linear.d.mts +17 -3
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +17 -3
- package/dist/sync-slack.mjs +130 -16
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +2 -2
- package/dist/{task-batch-BJcLiYe1.mjs → task-batch-CmKvTLSu.mjs} +6 -6
- package/dist/{tokens-DPKF_cb5.mjs → tokens-BCp4EWTQ.mjs} +2 -2
- package/docs/01-board/01-mounting.md +7 -4
- package/docs/01-board/03-identity.md +45 -23
- package/docs/01-board/04-messages.md +3 -2
- package/docs/01-board/06-watchers.md +3 -3
- package/docs/01-board/07-schedules.md +2 -2
- package/docs/01-board/09-access.md +6 -4
- package/docs/01-board/10-local.md +4 -1
- package/docs/02-sync/01-overview.md +4 -5
- package/docs/02-sync/02-functions.md +2 -2
- package/docs/02-sync/03-slack.md +13 -5
- package/docs/02-sync/06-providers.md +9 -0
- package/docs/03-guides/02-inspector.md +17 -1
- package/docs/03-guides/06-sandboxed-agents.md +2 -2
- package/docs/03-guides/08-tailnet.md +123 -0
- package/docs/04-reference/01-cli.md +56 -15
- package/docs/04-reference/02-board.md +10 -5
- package/docs/04-reference/03-http.md +24 -3
- package/package.json +1 -1
- package/dist/inspect-F-b4GPXX.mjs +0 -2
- package/dist/serve-DS2T2iWI.mjs +0 -181
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as fileName, _ as formatProfileHeader, 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, w as mediaType, x as IMPORT_BYTES_MAX, y as ATTACHMENT_BYTES_MAX } from "./errors-
|
|
1
|
+
import { S as fileName, _ as formatProfileHeader, 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, w as mediaType, x as IMPORT_BYTES_MAX, y as ATTACHMENT_BYTES_MAX } from "./errors-QhkdzI-o.mjs";
|
|
2
2
|
import { v as RESERVED_LABEL_PREFIX, w as TASK_LABEL, y as RemoteWatcherId } from "./schemas-7VFdomFB.mjs";
|
|
3
|
-
import { A as RegisterBody, B as SyncFindQuery, C as LabelBody, D as PostBody, E as MessagesQuery, F as SchemaBody, G as ThreadsQuery, H as SyncReceiptBody, I as SourceJoinBody, J as UploadStartBody, K as TypingBody, L as SourceReadQuery, M as RenewTaskBody, N as ScheduleBody, O as ReactBody, P as SchedulesQuery, R as SyncBody, S as InboxQuery, T as MatchesQuery, U as TaskNeedsBody, V as SyncImportBody, W as TasksQuery, Y as routes, a as ClaimReadyTaskBody, b as InboxNextQuery, c as CreateChannelBody, d as CreatedTasksQuery, f as DeleteBody, g as FailTaskBody, h as ExplainQuery, i as CancelTaskBody, j as ReleaseTaskBody, k as Ref, l as CreateTaskBody, m as EventsQuery, n as AssignTaskBody, o as ClaimTaskBody, p as EditBody, q as UpdateGrantBody, r as BlockTaskBody, s as CompleteTaskBody, t as AckBody, u as CreateTasksBody, v as GrantBody, w as LinkedQuery, x as InboxPushBody, y as InboxAckBody, z as SyncCopiesQuery } from "./routes-
|
|
4
|
-
import { _ as sha256, a as waitUntil, c as platformProfile, d as userIdOf, m as derivedId, o as actorParts, r as runMiddleware, s as importedHandle, t as DroppedError, u as underPrincipal } from "./middleware-
|
|
3
|
+
import { A as RegisterBody, B as SyncFindQuery, C as LabelBody, D as PostBody, E as MessagesQuery, F as SchemaBody, G as ThreadsQuery, H as SyncReceiptBody, I as SourceJoinBody, J as UploadStartBody, K as TypingBody, L as SourceReadQuery, M as RenewTaskBody, N as ScheduleBody, O as ReactBody, P as SchedulesQuery, R as SyncBody, S as InboxQuery, T as MatchesQuery, U as TaskNeedsBody, V as SyncImportBody, W as TasksQuery, Y as routes, a as ClaimReadyTaskBody, b as InboxNextQuery, c as CreateChannelBody, d as CreatedTasksQuery, f as DeleteBody, g as FailTaskBody, h as ExplainQuery, i as CancelTaskBody, j as ReleaseTaskBody, k as Ref, l as CreateTaskBody, m as EventsQuery, n as AssignTaskBody, o as ClaimTaskBody, p as EditBody, q as UpdateGrantBody, r as BlockTaskBody, s as CompleteTaskBody, t as AckBody, u as CreateTasksBody, v as GrantBody, w as LinkedQuery, x as InboxPushBody, y as InboxAckBody, z as SyncCopiesQuery } from "./routes-ABXf3CKq.mjs";
|
|
4
|
+
import { _ as sha256, a as waitUntil, c as platformProfile, d as userIdOf, m as derivedId, o as actorParts, r as runMiddleware, s as importedHandle, t as DroppedError, u as underPrincipal } from "./middleware-CT6vMNUc.mjs";
|
|
5
5
|
import { n as blocksIn, r as findBlocks } from "./blocks-CVoBC7ur.mjs";
|
|
6
|
-
import { i as mentionTerms, r as mentionTerm } from "./mentions-
|
|
7
|
-
import { a as runMatch, d as openapi, f as queryObject, g as VERSION, 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-
|
|
8
|
-
import { a as canText, c as compileAccess, d as parsePattern, n as InvalidCan, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-
|
|
9
|
-
import { C as explainGrants,
|
|
10
|
-
import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-
|
|
6
|
+
import { a as replaceMentions, i as mentionTerms, o as settleMentions, r as mentionTerm, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
|
|
7
|
+
import { a as runMatch, d as openapi, f as queryObject, g as VERSION, 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-CmKvTLSu.mjs";
|
|
8
|
+
import { a as canText, c as compileAccess, d as parsePattern, n as InvalidCan, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-C06pIr0M.mjs";
|
|
9
|
+
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-B9-wXQ-x.mjs";
|
|
10
|
+
import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-Dkyg-oo0.mjs";
|
|
11
11
|
import { t as checkValue } from "./data-values-CoTP0SQG.mjs";
|
|
12
12
|
//#region src/server/registrant.ts
|
|
13
13
|
/** Registering again this soon after the same registration only repeats it. */
|
|
@@ -930,7 +930,7 @@ function actorView(actor, view, project) {
|
|
|
930
930
|
};
|
|
931
931
|
if (profile?.platform) {
|
|
932
932
|
const { userId, platform, key } = profile.platform;
|
|
933
|
-
const handle = importedHandleOf(view
|
|
933
|
+
const handle = view ? importedHandleOf(view.handle, principal, view, userId, project) : actor.id;
|
|
934
934
|
return {
|
|
935
935
|
id: actor.id,
|
|
936
936
|
kind: "external",
|
|
@@ -1288,22 +1288,40 @@ function createVercel(options, environment) {
|
|
|
1288
1288
|
for (const reaction of await all(who, path, "reactions")) (out[reaction.emoji] ??= []).push(reaction.actor.id);
|
|
1289
1289
|
return out;
|
|
1290
1290
|
}
|
|
1291
|
-
|
|
1292
|
-
|
|
1291
|
+
const namesBy = /* @__PURE__ */ new Map();
|
|
1292
|
+
const namesOf = (who) => {
|
|
1293
|
+
const narrowing = who.can ?? "";
|
|
1294
|
+
let names = namesBy.get(narrowing);
|
|
1295
|
+
if (!names) {
|
|
1296
|
+
if (namesBy.size >= 100) namesBy.clear();
|
|
1297
|
+
namesBy.set(narrowing, names = {
|
|
1298
|
+
list: null,
|
|
1299
|
+
unlisted: /* @__PURE__ */ new Set(),
|
|
1300
|
+
asked: /* @__PURE__ */ new Map(),
|
|
1301
|
+
asking: null,
|
|
1302
|
+
unnamed: /* @__PURE__ */ new Set(),
|
|
1303
|
+
unhandled: /* @__PURE__ */ new Map()
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
return names;
|
|
1307
|
+
};
|
|
1293
1308
|
/** How long names are kept before they're read again: someone renamed shows by their new name after this. */
|
|
1294
1309
|
const NAMES_FRESH_MS = 3e5;
|
|
1295
|
-
/**
|
|
1296
|
-
const
|
|
1297
|
-
/** Reads the list, kept as the current one; a read that fails isn't kept, so the next name tries again. */
|
|
1310
|
+
/** An answer that says no to the request itself, and not that the API couldn't serve it now. */
|
|
1311
|
+
const refusal = (error) => error instanceof HttpError && error.status >= 400 && error.status < 500 && error.status !== 429;
|
|
1312
|
+
/** Reads the list, kept as the current one; a read that fails isn't kept, so the next name tries again, unless the API refused it. */
|
|
1298
1313
|
const readNames = (who) => {
|
|
1314
|
+
const names = namesOf(who);
|
|
1299
1315
|
const views = (async () => new Map((await all(who, await onBoard(who, "/actors"), "actors")).map((view) => [view.id, view])))();
|
|
1300
1316
|
const read = {
|
|
1301
1317
|
at: Date.now(),
|
|
1302
|
-
views
|
|
1318
|
+
views,
|
|
1319
|
+
refused: false
|
|
1303
1320
|
};
|
|
1304
|
-
|
|
1305
|
-
views.catch(() => {
|
|
1306
|
-
if (
|
|
1321
|
+
names.list = read;
|
|
1322
|
+
views.catch((error) => {
|
|
1323
|
+
if (refusal(error)) read.refused = true;
|
|
1324
|
+
else if (names.list === read) names.list = null;
|
|
1307
1325
|
});
|
|
1308
1326
|
return read;
|
|
1309
1327
|
};
|
|
@@ -1313,10 +1331,6 @@ function createVercel(options, environment) {
|
|
|
1313
1331
|
let namesById = true;
|
|
1314
1332
|
/** Actor IDs one request names, as many as the API takes. */
|
|
1315
1333
|
const NAMED_AT_ONCE = 100;
|
|
1316
|
-
/** Each actor asked for by ID, and when: one the API didn't have is asked for again after `NAMES_FRESH_MS`, as one it had is. */
|
|
1317
|
-
const asked = /* @__PURE__ */ new Map();
|
|
1318
|
-
/** The request for actors by ID that hasn't gone out yet: everyone named before this turn's promises settle shares it. */
|
|
1319
|
-
let asking = null;
|
|
1320
1334
|
/**
|
|
1321
1335
|
* Once everything already running in this turn has had its say, and before any timer or request answers: the
|
|
1322
1336
|
* views of a page each name their author as they start, a few promise steps apart, and what waits on them
|
|
@@ -1331,7 +1345,7 @@ function createVercel(options, environment) {
|
|
|
1331
1345
|
const { actors } = await api(who, "GET", await onBoard(who, "/actors"), { query: { id: ids } });
|
|
1332
1346
|
return new Map(actors.map((view) => [view.id, view]));
|
|
1333
1347
|
} catch (error) {
|
|
1334
|
-
if (!(error
|
|
1348
|
+
if (!refusal(error)) throw error;
|
|
1335
1349
|
if (error.status === 400 && /additional property/i.test(error.message)) namesById = false;
|
|
1336
1350
|
return null;
|
|
1337
1351
|
}
|
|
@@ -1346,19 +1360,21 @@ function createVercel(options, environment) {
|
|
|
1346
1360
|
* doesn't have or a read that failed, which isn't kept; null when the API doesn't answer by ID.
|
|
1347
1361
|
*/
|
|
1348
1362
|
function byId(who, id) {
|
|
1363
|
+
const names = namesOf(who);
|
|
1364
|
+
const { asked } = names;
|
|
1349
1365
|
const kept = asked.get(id);
|
|
1350
1366
|
if (kept && Date.now() - kept.at <= NAMES_FRESH_MS) return kept.view;
|
|
1351
|
-
let batch = asking;
|
|
1367
|
+
let batch = names.asking;
|
|
1352
1368
|
if (!batch || batch.ids.length >= NAMED_AT_ONCE) {
|
|
1353
1369
|
const ids = [];
|
|
1354
1370
|
const next = {
|
|
1355
1371
|
ids,
|
|
1356
1372
|
views: settled().then(() => {
|
|
1357
|
-
if (asking === next) asking = null;
|
|
1373
|
+
if (names.asking === next) names.asking = null;
|
|
1358
1374
|
return readNamed(who, ids);
|
|
1359
1375
|
})
|
|
1360
1376
|
};
|
|
1361
|
-
batch = asking = next;
|
|
1377
|
+
batch = names.asking = next;
|
|
1362
1378
|
}
|
|
1363
1379
|
batch.ids.push(id);
|
|
1364
1380
|
const view = batch.views.then((views) => views === null ? null : views.get(id), () => {
|
|
@@ -1383,12 +1399,13 @@ function createVercel(options, environment) {
|
|
|
1383
1399
|
}
|
|
1384
1400
|
/** An actor as the actors list names them: read again every few minutes, and at once for someone who wrote since it was. */
|
|
1385
1401
|
async function listed(who, id) {
|
|
1386
|
-
const
|
|
1402
|
+
const names = namesOf(who);
|
|
1403
|
+
const current = !names.list || Date.now() - names.list.at > NAMES_FRESH_MS ? readNames(who) : names.list;
|
|
1387
1404
|
let found = await inList(current, id);
|
|
1388
|
-
if (!found && !unlisted.has(id)) {
|
|
1389
|
-
const again =
|
|
1405
|
+
if (!found && !current.refused && !names.unlisted.has(id)) {
|
|
1406
|
+
const again = names.list && names.list !== current ? names.list : readNames(who);
|
|
1390
1407
|
found = await inList(again, id);
|
|
1391
|
-
if (!found && await again.views.then(() => true, () => false)) unlisted.add(id);
|
|
1408
|
+
if (!found && await again.views.then(() => true, () => false)) names.unlisted.add(id);
|
|
1392
1409
|
}
|
|
1393
1410
|
return found;
|
|
1394
1411
|
}
|
|
@@ -1426,20 +1443,19 @@ function createVercel(options, environment) {
|
|
|
1426
1443
|
if (!names) namesRead.set(read, names = read.views.then(projectNamesOf, () => /* @__PURE__ */ new Map()));
|
|
1427
1444
|
return names;
|
|
1428
1445
|
}
|
|
1429
|
-
/** What a fresh read of the actors still didn't name: it isn't read again for them until names are read anyway. */
|
|
1430
|
-
const unnamed = /* @__PURE__ */ new Set();
|
|
1431
1446
|
/**
|
|
1432
1447
|
* Projects' names by ID, as the actors list names them, read again at once when `wanted` (one or more projects, by
|
|
1433
1448
|
* their IDs) isn't among them, as for someone new since the list was read.
|
|
1434
1449
|
*/
|
|
1435
1450
|
async function projectNames(who, wanted) {
|
|
1436
|
-
const
|
|
1451
|
+
const mine = namesOf(who);
|
|
1452
|
+
const kept = mine.list && Date.now() - mine.list.at <= NAMES_FRESH_MS ? mine.list : null;
|
|
1437
1453
|
let names = await namesIn(kept ?? readNames(who));
|
|
1438
|
-
if (!wanted || wanted.found(names) || !kept || unnamed.has(wanted.key)) return names;
|
|
1439
|
-
names = await namesIn(
|
|
1454
|
+
if (!wanted || wanted.found(names) || !kept || kept.refused || mine.unnamed.has(wanted.key)) return names;
|
|
1455
|
+
names = await namesIn(mine.list && mine.list !== kept ? mine.list : readNames(who));
|
|
1440
1456
|
if (!wanted.found(names)) {
|
|
1441
|
-
if (unnamed.size >= 1e3) unnamed.clear();
|
|
1442
|
-
unnamed.add(wanted.key);
|
|
1457
|
+
if (mine.unnamed.size >= 1e3) mine.unnamed.clear();
|
|
1458
|
+
mine.unnamed.add(wanted.key);
|
|
1443
1459
|
}
|
|
1444
1460
|
return names;
|
|
1445
1461
|
}
|
|
@@ -1621,8 +1637,6 @@ function createVercel(options, environment) {
|
|
|
1621
1637
|
skip: 0
|
|
1622
1638
|
}]));
|
|
1623
1639
|
}
|
|
1624
|
-
/** Handles a fresh read of the names didn't have, by when: `--by` doesn't read again for them for a while. */
|
|
1625
|
-
const unhandled = /* @__PURE__ */ new Map();
|
|
1626
1640
|
/**
|
|
1627
1641
|
* Who `--by` names: `me`, the actor itself; or an actor, a principal and its agents, a profile, or
|
|
1628
1642
|
* a handle as the board shows it (`julian`, `julian/claude`), a person's covering their agents.
|
|
@@ -1637,7 +1651,8 @@ function createVercel(options, environment) {
|
|
|
1637
1651
|
if (!by.startsWith("vercel:")) {
|
|
1638
1652
|
const handle = by.toLowerCase();
|
|
1639
1653
|
const find = async (read) => goingBy(await read.views, await namesIn(read), handle);
|
|
1640
|
-
const
|
|
1654
|
+
const { list, unhandled } = namesOf(who);
|
|
1655
|
+
const kept = list && Date.now() - list.at <= NAMES_FRESH_MS ? list : null;
|
|
1641
1656
|
let ids = await find(kept ?? readNames(who));
|
|
1642
1657
|
const missed = unhandled.get(handle);
|
|
1643
1658
|
if (ids.length === 0 && kept && !(missed !== void 0 && Date.now() - missed <= NAMES_FRESH_MS)) ids = await find(readNames(who));
|
|
@@ -2671,6 +2686,21 @@ function createVercel(options, environment) {
|
|
|
2671
2686
|
avatar,
|
|
2672
2687
|
isBot
|
|
2673
2688
|
});
|
|
2689
|
+
/** The platform users an import's text mentions, for the API to meet as it meets the author. */
|
|
2690
|
+
const mentioned = (body) => body.mentioned?.length ? { mentioned: body.mentioned.map(platformUser) } : {};
|
|
2691
|
+
/**
|
|
2692
|
+
* An import's text, its mentions of its keys' users (`@[slack:user:U0456]`) as the API names
|
|
2693
|
+
* them: this project's profiles of them, as it names the author. Where that would take the text
|
|
2694
|
+
* past what a message holds, it stays as it came, and sync still finds who the short ID names.
|
|
2695
|
+
*/
|
|
2696
|
+
async function asNamed(who, body) {
|
|
2697
|
+
const keys = body.from === null ? [.../* @__PURE__ */ new Set([body.author.id.split(":")[0], ...(binding?.sync ?? []).map((entry) => entry.key)])] : [body.from];
|
|
2698
|
+
const ours = (actor) => keys.some((key) => actor.startsWith(`${key}:`));
|
|
2699
|
+
if (!keys.some((key) => body.text.includes(`@[${key}:`))) return body.text;
|
|
2700
|
+
const owner = principalId((await self(who)).actor.principal);
|
|
2701
|
+
const named = replaceMentions(body.text, (token) => token.kind === "actor" && ours(token.actor) ? `@[${owner}+${token.actor}]` : null);
|
|
2702
|
+
return named.length > 1e4 ? body.text : named;
|
|
2703
|
+
}
|
|
2674
2704
|
/** An import as the API takes it: a channel by its ID, and a reply's `after` as its sequence in the thread. */
|
|
2675
2705
|
async function importBody(who, body) {
|
|
2676
2706
|
const base = {
|
|
@@ -2693,11 +2723,12 @@ function createVercel(options, environment) {
|
|
|
2693
2723
|
...body.source ? { source: body.source } : {},
|
|
2694
2724
|
...body.channel !== void 0 ? { channelId: (await channelToPost(who, body.channel)).id } : {},
|
|
2695
2725
|
...body.re !== void 0 ? { re: body.re } : {},
|
|
2696
|
-
text: body
|
|
2726
|
+
text: await asNamed(who, body),
|
|
2697
2727
|
...body.labels && Object.keys(body.labels).length ? { labels: body.labels } : {},
|
|
2698
2728
|
...body.noSync ? { noSync: true } : {},
|
|
2699
2729
|
...body.attachments?.length ? { attachments: body.attachments } : {},
|
|
2700
2730
|
...body.links?.length ? { links: body.links } : {},
|
|
2731
|
+
...mentioned(body),
|
|
2701
2732
|
...body.id !== void 0 ? { id: body.id } : {},
|
|
2702
2733
|
...after !== void 0 ? { after } : {}
|
|
2703
2734
|
};
|
|
@@ -2709,9 +2740,10 @@ function createVercel(options, environment) {
|
|
|
2709
2740
|
};
|
|
2710
2741
|
if (body.op === "edit") return {
|
|
2711
2742
|
...changed,
|
|
2712
|
-
text: body
|
|
2743
|
+
text: await asNamed(who, body),
|
|
2713
2744
|
...body.source ? { source: body.source } : {},
|
|
2714
|
-
...body.revision !== void 0 ? { revision: body.revision } : {}
|
|
2745
|
+
...body.revision !== void 0 ? { revision: body.revision } : {},
|
|
2746
|
+
...mentioned(body)
|
|
2715
2747
|
};
|
|
2716
2748
|
if (body.op === "delete") return {
|
|
2717
2749
|
...changed,
|
|
@@ -2875,7 +2907,8 @@ function createVercel(options, environment) {
|
|
|
2875
2907
|
/** Who a handle or an ID names, as IDs: an ID names itself, whether or not the board has seen it write. */
|
|
2876
2908
|
async function idsNamed(who, value) {
|
|
2877
2909
|
if (isId(value)) return /* @__PURE__ */ new Set([value]);
|
|
2878
|
-
const
|
|
2910
|
+
const { list } = namesOf(who);
|
|
2911
|
+
const read = list && Date.now() - list.at <= NAMES_FRESH_MS ? list : readNames(who);
|
|
2879
2912
|
return new Set(goingBy(await read.views, await namesIn(read), value.toLowerCase()));
|
|
2880
2913
|
}
|
|
2881
2914
|
/**
|
|
@@ -4359,6 +4392,8 @@ function createPolicy(options, keeps, serving, trust = null) {
|
|
|
4359
4392
|
return {
|
|
4360
4393
|
/** Whether requests are served at all: only where the backend keeps the board. */
|
|
4361
4394
|
open: keeps,
|
|
4395
|
+
/** Whether the verifier names people by their logins, so a grant here names a user by one. */
|
|
4396
|
+
logins: options.authenticate !== void 0 && namesByLogin(options.authenticate),
|
|
4362
4397
|
project,
|
|
4363
4398
|
discoveryIdentity,
|
|
4364
4399
|
/**
|
|
@@ -4825,6 +4860,77 @@ async function createServe(context) {
|
|
|
4825
4860
|
* then the backend's refusal is the answer, not what the text says. A message board() can't find
|
|
4826
4861
|
* for the caller is still checked, since one written without reading is its author's to edit.
|
|
4827
4862
|
*/
|
|
4863
|
+
/**
|
|
4864
|
+
* Settles the `@handle`s of a caller's texts: a mention is `@[actor-id]`, so a handle that names
|
|
4865
|
+
* exactly one of the actors the caller can see is written as that, and one that names none or
|
|
4866
|
+
* several stays as typed, a mention of no one. Of several, it's the one who wrote in `thread`, if
|
|
4867
|
+
* exactly one did. The actors are read once, for the first text that has a handle. A board behind
|
|
4868
|
+
* this one settles them itself, and a schedule's send goes as it was settled when it was made: a
|
|
4869
|
+
* handle that mentioned no one then mentions no one later. An ID is longer than a handle, so where
|
|
4870
|
+
* settling would take a text past what a message holds, it stays as typed, each handle's actor a
|
|
4871
|
+
* candidate: the writer is never refused for a length they didn't type.
|
|
4872
|
+
*/
|
|
4873
|
+
function settler(caller, signal) {
|
|
4874
|
+
let listed = null;
|
|
4875
|
+
const actors = () => listed ??= backend.actors(caller, {}, signal).then((answer) => answer.actors.map(({ id, handle, name }) => ({
|
|
4876
|
+
id,
|
|
4877
|
+
handle,
|
|
4878
|
+
name
|
|
4879
|
+
})), (error) => {
|
|
4880
|
+
if (error instanceof HttpError && (error.status === 403 || error.status === 404)) return [];
|
|
4881
|
+
throw error;
|
|
4882
|
+
});
|
|
4883
|
+
return async (text, thread) => {
|
|
4884
|
+
if (backend.settlesMentions || caller.origin.via?.kind === "schedule" || !extractMentions(text).some((token) => token.kind === "handle")) return {
|
|
4885
|
+
text,
|
|
4886
|
+
mentions: []
|
|
4887
|
+
};
|
|
4888
|
+
const fitting = (settled) => settled.text.length <= 1e4 || text.length > 1e4 ? settled : {
|
|
4889
|
+
text,
|
|
4890
|
+
mentions: settled.mentions.map(unsettled)
|
|
4891
|
+
};
|
|
4892
|
+
const settled = settleMentions(text, await actors());
|
|
4893
|
+
if (!settled.mentions.some((mention) => mention.candidates.length > 1)) return fitting(settled);
|
|
4894
|
+
const id = await thread();
|
|
4895
|
+
const writers = /* @__PURE__ */ new Set();
|
|
4896
|
+
if (id !== void 0) try {
|
|
4897
|
+
const { message, replies } = await backend.message(caller, { id }, signal);
|
|
4898
|
+
for (const written of [message, ...replies]) writers.add(written.by.actor);
|
|
4899
|
+
} catch (error) {
|
|
4900
|
+
if (!(error instanceof HttpError && error.status === 404)) throw error;
|
|
4901
|
+
}
|
|
4902
|
+
return fitting(settleMentions(text, await actors(), (candidates) => {
|
|
4903
|
+
const wrote = candidates.filter((actor) => writers.has(actor.id));
|
|
4904
|
+
return wrote.length === 1 ? wrote[0] : null;
|
|
4905
|
+
}));
|
|
4906
|
+
};
|
|
4907
|
+
}
|
|
4908
|
+
/** A handle that would have mentioned an actor, said as one that didn't: still text, and they're who it could have meant. */
|
|
4909
|
+
const unsettled = (mention) => mention.actor ? {
|
|
4910
|
+
written: mention.written,
|
|
4911
|
+
actor: null,
|
|
4912
|
+
candidates: [mention.actor]
|
|
4913
|
+
} : mention;
|
|
4914
|
+
/**
|
|
4915
|
+
* Hands `write` a text with its `@handle`s settled, as `settler` does, and adds what became of each
|
|
4916
|
+
* to its answer. `kept` is the text the answer came back with: where that isn't the one written, a
|
|
4917
|
+
* retry got the message its first try made, and a handle is said to mention only who that text does.
|
|
4918
|
+
*/
|
|
4919
|
+
async function settling(caller, text, thread, signal, write, kept) {
|
|
4920
|
+
const settled = await settler(caller, signal)(text, thread);
|
|
4921
|
+
const answer = await write(settled.text);
|
|
4922
|
+
if (settled.mentions.length === 0) return answer;
|
|
4923
|
+
const stored = kept?.(answer) ?? settled.text;
|
|
4924
|
+
if (stored === settled.text) return {
|
|
4925
|
+
...answer,
|
|
4926
|
+
mentions: settled.mentions
|
|
4927
|
+
};
|
|
4928
|
+
const mentioned = new Set(extractMentions(stored).flatMap((token) => token.kind === "actor" ? [token.actor] : []));
|
|
4929
|
+
return {
|
|
4930
|
+
...answer,
|
|
4931
|
+
mentions: settled.mentions.map((mention) => mention.actor && !mentioned.has(mention.actor.id) ? unsettled(mention) : mention)
|
|
4932
|
+
};
|
|
4933
|
+
}
|
|
4828
4934
|
async function checkWrite(caller, text, where, signal) {
|
|
4829
4935
|
if (!text.includes("json#")) return;
|
|
4830
4936
|
const access = accessOf(caller);
|
|
@@ -4971,11 +5077,11 @@ async function createServe(context) {
|
|
|
4971
5077
|
...attachments ? { attachments } : {}
|
|
4972
5078
|
}, signal, async (screened) => {
|
|
4973
5079
|
if (screened.text !== text) await checkBlocks(screened.text);
|
|
4974
|
-
return backend.schedule(caller, {
|
|
5080
|
+
return settling(caller, screened.text, async () => re, signal, (settled) => backend.schedule(caller, {
|
|
4975
5081
|
...input,
|
|
4976
|
-
text:
|
|
5082
|
+
text: settled,
|
|
4977
5083
|
...screened.labels ? { labels: screened.labels } : {}
|
|
4978
|
-
}, signal);
|
|
5084
|
+
}, signal));
|
|
4979
5085
|
});
|
|
4980
5086
|
}
|
|
4981
5087
|
/**
|
|
@@ -5042,6 +5148,20 @@ async function createServe(context) {
|
|
|
5042
5148
|
return id === null ? null : lookup(caller, id, signal);
|
|
5043
5149
|
}
|
|
5044
5150
|
/**
|
|
5151
|
+
* An import with only the platform users its text mentions, as it lands: one the sync function or
|
|
5152
|
+
* the middleware wrote out of it isn't introduced to the board.
|
|
5153
|
+
*/
|
|
5154
|
+
function introducing(body) {
|
|
5155
|
+
if (body.op !== "post" && body.op !== "edit" || !body.mentioned?.length) return body;
|
|
5156
|
+
const named = new Set(extractMentions(body.text).flatMap((token) => token.kind === "actor" ? [token.actor] : []));
|
|
5157
|
+
const { mentioned: all, ...rest } = body;
|
|
5158
|
+
const mentioned = all.filter((user) => named.has(user.id));
|
|
5159
|
+
return mentioned.length ? {
|
|
5160
|
+
...rest,
|
|
5161
|
+
mentioned
|
|
5162
|
+
} : rest;
|
|
5163
|
+
}
|
|
5164
|
+
/**
|
|
5045
5165
|
* An import, through the middleware when it's a post or an edit that would land: what the
|
|
5046
5166
|
* middleware passed on, or what it responded when it dropped it, for sync to tell the author on
|
|
5047
5167
|
* the platform. A retry of one that landed stands.
|
|
@@ -5053,7 +5173,7 @@ async function createServe(context) {
|
|
|
5053
5173
|
if (written !== null) await checkBlocks(written);
|
|
5054
5174
|
const send = async (patched) => {
|
|
5055
5175
|
if (written !== null && (patched.op === "post" || patched.op === "edit") && patched.text !== written) await checkBlocks(patched.text);
|
|
5056
|
-
return backend.syncImport(caller, patched, signal);
|
|
5176
|
+
return backend.syncImport(caller, introducing(patched), signal);
|
|
5057
5177
|
};
|
|
5058
5178
|
if (middleware.length === 0 || caller.origin.via?.kind === "middleware" || body.op !== "post" && body.op !== "edit") return send(body);
|
|
5059
5179
|
const access = accessOf(caller);
|
|
@@ -5130,7 +5250,10 @@ async function createServe(context) {
|
|
|
5130
5250
|
await checkWrite(caller, input.text, input.channel !== void 0 ? { channel: input.channel } : { message: input.re }, signal);
|
|
5131
5251
|
const send = (poster, body) => screenPost(poster, body, signal, async (patched) => {
|
|
5132
5252
|
if (patched.text !== input.text) await checkBlocks(patched.text);
|
|
5133
|
-
return
|
|
5253
|
+
return settling(poster, patched.text, async () => patched.re, signal, (text) => backend.post(poster, {
|
|
5254
|
+
...patched,
|
|
5255
|
+
text
|
|
5256
|
+
}, signal), (answer) => answer.message.text);
|
|
5134
5257
|
});
|
|
5135
5258
|
if (!engine) return send(caller, input.sync?.length ? {
|
|
5136
5259
|
...input,
|
|
@@ -5290,11 +5413,11 @@ async function createServe(context) {
|
|
|
5290
5413
|
...id !== void 0 ? { id } : {}
|
|
5291
5414
|
}, signal, async (screened) => {
|
|
5292
5415
|
if (screened.text !== sent) await checkBlocks(screened.text);
|
|
5293
|
-
return backend.createTask(caller, {
|
|
5416
|
+
return settling(caller, screened.text, async () => void 0, signal, (text) => backend.createTask(caller, {
|
|
5294
5417
|
...body,
|
|
5295
|
-
text
|
|
5418
|
+
text,
|
|
5296
5419
|
...screened.labels ? { labels: screened.labels } : {}
|
|
5297
|
-
}, signal);
|
|
5420
|
+
}, signal), (answer) => answer.task.text);
|
|
5298
5421
|
});
|
|
5299
5422
|
}
|
|
5300
5423
|
case "createTasks": {
|
|
@@ -5312,11 +5435,26 @@ async function createServe(context) {
|
|
|
5312
5435
|
for (const task of body.tasks) await checkWrite(caller, task.text, { channel: body.channel }, signal);
|
|
5313
5436
|
return screenTasks(caller, body, signal, async (tasks) => {
|
|
5314
5437
|
for (const [at, task] of tasks.entries()) if (task.text !== body.tasks[at].text) await checkBlocks(task.text);
|
|
5315
|
-
|
|
5438
|
+
const settle = settler(caller, signal);
|
|
5439
|
+
const mentions = [];
|
|
5440
|
+
const settled = [];
|
|
5441
|
+
for (const task of tasks) {
|
|
5442
|
+
const root = await settle(task.text, async () => void 0);
|
|
5443
|
+
settled.push(root.text === task.text ? task : {
|
|
5444
|
+
...task,
|
|
5445
|
+
text: root.text
|
|
5446
|
+
});
|
|
5447
|
+
for (const mention of root.mentions) if (!mentions.some((said) => said.written === mention.written)) mentions.push(mention);
|
|
5448
|
+
}
|
|
5449
|
+
const answer = await backend.createTasks(caller, {
|
|
5316
5450
|
...body,
|
|
5317
|
-
tasks,
|
|
5451
|
+
tasks: settled,
|
|
5318
5452
|
request
|
|
5319
5453
|
}, signal);
|
|
5454
|
+
return mentions.length > 0 ? {
|
|
5455
|
+
...answer,
|
|
5456
|
+
mentions
|
|
5457
|
+
} : answer;
|
|
5320
5458
|
});
|
|
5321
5459
|
}
|
|
5322
5460
|
case "edit": {
|
|
@@ -5324,7 +5462,14 @@ async function createServe(context) {
|
|
|
5324
5462
|
await checkWrite(caller, edit.text, { message: edit.id }, signal);
|
|
5325
5463
|
return screenEdit(caller, edit, signal, async (patched) => {
|
|
5326
5464
|
if (patched.text !== edit.text) await checkBlocks(patched.text);
|
|
5327
|
-
|
|
5465
|
+
const thread = async () => {
|
|
5466
|
+
const edited = await lookup(caller, edit.id, signal);
|
|
5467
|
+
return edited ? edited.re ?? edited.id : void 0;
|
|
5468
|
+
};
|
|
5469
|
+
return settling(caller, patched.text, thread, signal, (text) => backend.edit(caller, {
|
|
5470
|
+
...patched,
|
|
5471
|
+
text
|
|
5472
|
+
}, signal));
|
|
5328
5473
|
});
|
|
5329
5474
|
}
|
|
5330
5475
|
case "syncImport": return syncImport(caller, input, signal);
|
|
@@ -5332,7 +5477,10 @@ async function createServe(context) {
|
|
|
5332
5477
|
const body = input;
|
|
5333
5478
|
ownLabels(body.labels);
|
|
5334
5479
|
await checkWrite(caller, body.text, body.channel !== void 0 ? { channel: body.channel } : { message: body.re }, signal);
|
|
5335
|
-
return backend.sendsSchedulesHere === false ? screenSchedule(caller, body, signal) :
|
|
5480
|
+
return backend.sendsSchedulesHere === false ? screenSchedule(caller, body, signal) : settling(caller, body.text, async () => body.re, signal, (text) => backend.schedule(caller, {
|
|
5481
|
+
...body,
|
|
5482
|
+
text
|
|
5483
|
+
}, signal));
|
|
5336
5484
|
}
|
|
5337
5485
|
case "inbox": {
|
|
5338
5486
|
const query = input;
|
|
@@ -5870,6 +6018,7 @@ function createBoard(options, runtime) {
|
|
|
5870
6018
|
accessNow: (principal, grants) => policy.accessNow(principal, grants),
|
|
5871
6019
|
explain: (principal, channel) => policy.explain(principal, channel),
|
|
5872
6020
|
project: () => policy.project(),
|
|
6021
|
+
logins: policy.logins,
|
|
5873
6022
|
handle: (caller) => handleOf(caller, null),
|
|
5874
6023
|
url: ownUrl
|
|
5875
6024
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as MessageView } from "./routes-
|
|
2
|
-
import "./auth-
|
|
3
|
-
import "./backend-
|
|
4
|
-
import { F as BoardError, Y as TaskInBatch } from "./provider-
|
|
1
|
+
import { X as MessageView } from "./routes-CjA6Mp4D.mjs";
|
|
2
|
+
import "./auth-li3lKwJG.mjs";
|
|
3
|
+
import "./backend-UBP6HimX.mjs";
|
|
4
|
+
import { F as BoardError, Y as TaskInBatch } from "./provider-DC3WHUXo.mjs";
|
|
5
5
|
//#region src/client/chunks.d.ts
|
|
6
6
|
/** What `createTasksInChunks` makes tasks with: a handle, or anything with its `tasks.createMany`. */
|
|
7
7
|
type TaskBatches = {
|
|
@@ -93,7 +93,9 @@ const ExternalEvent = z.discriminatedUnion("kind", [
|
|
|
93
93
|
/** Files on the message, fetched when it lands on the board. Older events have none. */
|
|
94
94
|
files: z.array(ExternalFile).max(20).optional(),
|
|
95
95
|
/** Platform messages it links to. Older events have none. */
|
|
96
|
-
links: z.array(ExternalLink).max(10).optional()
|
|
96
|
+
links: z.array(ExternalLink).max(10).optional(),
|
|
97
|
+
/** The platform's users its text mentions, each written there as `@[<their id>]`. Older events have none. */
|
|
98
|
+
mentioned: z.array(ExternalAuthor).max(50).optional()
|
|
97
99
|
}),
|
|
98
100
|
z.object({
|
|
99
101
|
kind: z.literal("edited"),
|
|
@@ -103,7 +105,9 @@ const ExternalEvent = z.discriminatedUnion("kind", [
|
|
|
103
105
|
author: ExternalAuthor,
|
|
104
106
|
links: z.array(ExternalLink).max(10).optional(),
|
|
105
107
|
/** Only the links changed (the platform sent what they say), so `text` isn't news. */
|
|
106
|
-
linksOnly: z.boolean().optional()
|
|
108
|
+
linksOnly: z.boolean().optional(),
|
|
109
|
+
/** As a message's: who its text now mentions. */
|
|
110
|
+
mentioned: z.array(ExternalAuthor).max(50).optional()
|
|
107
111
|
}),
|
|
108
112
|
z.object({
|
|
109
113
|
kind: z.literal("deleted"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as Board, p as BoardOptions } from "./backend-
|
|
2
|
-
import "./exports-
|
|
1
|
+
import { f as Board, p as BoardOptions } from "./backend-UBP6HimX.mjs";
|
|
2
|
+
import "./exports-inhbjAWi.mjs";
|
|
3
3
|
//#region src/server/index.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The handle on a board. Without a `backend`, it's Vercel's board for your team, the one `name`
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as MessagesQueryInput, $t as TypingBody, A as FiltersInput, At as SyncBody, B as InboxPushBody, Bt as SyncThreadView, C as EditBody, Ct as SchemaInput, D as ExplainQuery, Dt as SourceMessage, E as EventsQueryInput, En as Attachment, Et as SourceJoinBody, F as INBOX_EVENT_ID_MAX, Ft as SyncFindView, G as LinkView, Gt as TasksPage, H as LABEL_CONDITIONS_MAX, Ht as TaskClaim, I as InboxAckBody, It as SyncImportBody, J as MatchesQuery, Jt as ThreadSummaryView, K as LinkedQuery, Kt as TasksQuery, L as InboxEntry, Lt as SyncImportInput, M as GrantCan, Mt as SyncCopiesView, N as GrantInput, Nt as SyncFindInput, O as Explanation, Ot as SourceRead, P as GrantView, Pt as SyncFindQuery, Q as MessagesQuery, Qt as ThreadsQueryInput, R as InboxItem, Rt as SyncReceiptBody, S as Discovery, St as SchemaBody, T as EventsQuery, Tt as SourceJoin, U as LEASE_DEFAULT_S, Ut as TaskNeedsBody, V as InboxQuery, Vt as SyncedView, W as LabelBody, Wt as TaskView, X as MessageView, Xt as ThreadsPage, Y as Me, Yt as ThreadView, Z as MessagesPage, Zt as ThreadsQuery, _ as CreateTaskInput, _t as ScheduleInput, a as BlockTaskBody, an as routes, at as REGISTERED_WATCHERS_MAX, b as CreatedTasksQuery, bt as SchedulesQueryInput, c as CanAt, ct as RegisterBody, d as ClaimReadyTaskBody, dt as ReleaseTaskBody, en as TypingResult, et as ParsedFilters, f as ClaimReadyTaskInput, ft as RenewTaskBody, g as CreateTaskBody, gt as ScheduleBodyOutput, h as CreateChannelBody, ht as ScheduleBody, i as AssignTaskBody, in as UploadTicket, it as PrincipalView, j as GrantBody, jt as SyncCopiesQuery, k as FailTaskBody, kt as SourceReadQuery, l as CancelTaskBody, lt as RegisterInput, m as CompleteTaskBody, mt as RouteName, n as ActorView, nn as UpdateGrantInput, nt as PostInput, o as BlockView, ot as ReactBody, p as ClaimTaskBody, pt as ResolvedSyncTarget, q as MatchView, qt as TasksQueryInput, r as ApiError, rn as UploadStartBody, rt as PrincipalInput, s as BoardEventView, st as Ref, t as AckBody, tn as UpdateGrantBody, tt as PostBody, u as ChannelView, ut as RegistrationView, v as CreateTasksBody, vt as ScheduleView, w as EventsPage, wt as SchemaView, x as DeleteBody, xt as SchedulesQueryOutput, y as CreateTasksInput, yt as SchedulesQuery, z as InboxNextQuery, zt as SyncReceiptInput } from "./routes-
|
|
2
|
-
import { i as Claims, r as CallerRequest } from "./auth-
|
|
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-
|
|
4
|
-
import { $ as
|
|
5
|
-
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-
|
|
1
|
+
import { $ as MessagesQueryInput, $t as TypingBody, A as FiltersInput, At as SyncBody, B as InboxPushBody, Bt as SyncThreadView, C as EditBody, Ct as SchemaInput, D as ExplainQuery, Dt as SourceMessage, E as EventsQueryInput, En as Attachment, Et as SourceJoinBody, F as INBOX_EVENT_ID_MAX, Ft as SyncFindView, G as LinkView, Gt as TasksPage, H as LABEL_CONDITIONS_MAX, Ht as TaskClaim, I as InboxAckBody, It as SyncImportBody, J as MatchesQuery, Jt as ThreadSummaryView, K as LinkedQuery, Kt as TasksQuery, L as InboxEntry, Lt as SyncImportInput, M as GrantCan, Mt as SyncCopiesView, N as GrantInput, Nt as SyncFindInput, O as Explanation, Ot as SourceRead, P as GrantView, Pt as SyncFindQuery, Q as MessagesQuery, Qt as ThreadsQueryInput, R as InboxItem, Rt as SyncReceiptBody, S as Discovery, St as SchemaBody, T as EventsQuery, Tt as SourceJoin, U as LEASE_DEFAULT_S, Ut as TaskNeedsBody, V as InboxQuery, Vt as SyncedView, W as LabelBody, Wt as TaskView, X as MessageView, Xt as ThreadsPage, Y as Me, Yt as ThreadView, Z as MessagesPage, Zt as ThreadsQuery, _ as CreateTaskInput, _t as ScheduleInput, a as BlockTaskBody, an as routes, at as REGISTERED_WATCHERS_MAX, b as CreatedTasksQuery, bt as SchedulesQueryInput, c as CanAt, ct as RegisterBody, d as ClaimReadyTaskBody, dt as ReleaseTaskBody, en as TypingResult, et as ParsedFilters, f as ClaimReadyTaskInput, ft as RenewTaskBody, g as CreateTaskBody, gt as ScheduleBodyOutput, h as CreateChannelBody, ht as ScheduleBody, i as AssignTaskBody, in as UploadTicket, it as PrincipalView, j as GrantBody, jt as SyncCopiesQuery, k as FailTaskBody, kt as SourceReadQuery, l as CancelTaskBody, lt as RegisterInput, m as CompleteTaskBody, mt as RouteName, n as ActorView, nn as UpdateGrantInput, nt as PostInput, o as BlockView, ot as ReactBody, p as ClaimTaskBody, pt as ResolvedSyncTarget, q as MatchView, qt as TasksQueryInput, r as ApiError, rn as UploadStartBody, rt as PrincipalInput, s as BoardEventView, st as Ref, t as AckBody, tn as UpdateGrantBody, tt as PostBody, u as ChannelView, ut as RegistrationView, v as CreateTasksBody, vt as ScheduleView, w as EventsPage, wt as SchemaView, x as DeleteBody, xt as SchedulesQueryOutput, y as CreateTasksInput, yt as SchedulesQuery, z as InboxNextQuery, zt as SyncReceiptInput } from "./routes-CjA6Mp4D.mjs";
|
|
2
|
+
import { i as Claims, r as CallerRequest } from "./auth-li3lKwJG.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-UBP6HimX.mjs";
|
|
4
|
+
import { $ as Written, B as ExplainPrincipal, F as BoardError, G as ProfileOption, H as HeldTask, I as ClaimedTask, J as ScheduleTiming, K as ReplyOptions, Q as WaitOptions, R as EventsOptions, U as NewTaskOptions, V as Filters, W as PostOptions, X as TaskOptions, Y as TaskInBatch, Z as UploadInput, et as duration, nt as MentionedActor, q as ScheduleOptions, tt as Mentioned, z as EventsState } from "./provider-DC3WHUXo.mjs";
|
|
5
|
+
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-inhbjAWi.mjs";
|
|
6
6
|
import { n as block } from "./blocks-DGvh2alZ.mjs";
|
|
7
7
|
//#region src/server/index.default.d.ts
|
|
8
8
|
/**
|
|
@@ -13,4 +13,4 @@ import { n as block } from "./blocks-DGvh2alZ.mjs";
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function board(options?: BoardOptions): Board;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { type AckBody, type ActorView, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelView, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, 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 GrantBody, type GrantCan, type GrantInput, type GrantView, 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 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 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 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, block, createTasksInChunks, duration, type routes };
|
|
16
|
+
export { type AckBody, type ActorView, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelView, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, 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 GrantBody, type GrantCan, type GrantInput, type GrantView, 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 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 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, createTasksInChunks, duration, type routes };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as BoardError, m as duration, t as HttpError } from "./errors-
|
|
2
|
-
import { t as DroppedError } from "./middleware-
|
|
1
|
+
import { f as BoardError, m as duration, t as HttpError } from "./errors-QhkdzI-o.mjs";
|
|
2
|
+
import { t as DroppedError } from "./middleware-CT6vMNUc.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-
|
|
4
|
+
import { n as createTasksInChunks, o as createVercel, r as createBoard, t as TasksInChunksError } from "./exports-B5xOYHj_.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-
|
|
27
|
+
sync: () => import("./engine-B3Yd0OPc.mjs"),
|
|
28
28
|
serving: null,
|
|
29
29
|
sandbox: null
|
|
30
30
|
});
|
package/dist/index.node.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as MessagesQueryInput, $t as TypingBody, A as FiltersInput, At as SyncBody, B as InboxPushBody, Bt as SyncThreadView, C as EditBody, Ct as SchemaInput, D as ExplainQuery, Dt as SourceMessage, E as EventsQueryInput, En as Attachment, Et as SourceJoinBody, F as INBOX_EVENT_ID_MAX, Ft as SyncFindView, G as LinkView, Gt as TasksPage, H as LABEL_CONDITIONS_MAX, Ht as TaskClaim, I as InboxAckBody, It as SyncImportBody, J as MatchesQuery, Jt as ThreadSummaryView, K as LinkedQuery, Kt as TasksQuery, L as InboxEntry, Lt as SyncImportInput, M as GrantCan, Mt as SyncCopiesView, N as GrantInput, Nt as SyncFindInput, O as Explanation, Ot as SourceRead, P as GrantView, Pt as SyncFindQuery, Q as MessagesQuery, Qt as ThreadsQueryInput, R as InboxItem, Rt as SyncReceiptBody, S as Discovery, St as SchemaBody, T as EventsQuery, Tt as SourceJoin, U as LEASE_DEFAULT_S, Ut as TaskNeedsBody, V as InboxQuery, Vt as SyncedView, W as LabelBody, Wt as TaskView, X as MessageView, Xt as ThreadsPage, Y as Me, Yt as ThreadView, Z as MessagesPage, Zt as ThreadsQuery, _ as CreateTaskInput, _t as ScheduleInput, a as BlockTaskBody, an as routes, at as REGISTERED_WATCHERS_MAX, b as CreatedTasksQuery, bt as SchedulesQueryInput, c as CanAt, ct as RegisterBody, d as ClaimReadyTaskBody, dt as ReleaseTaskBody, en as TypingResult, et as ParsedFilters, f as ClaimReadyTaskInput, ft as RenewTaskBody, g as CreateTaskBody, gt as ScheduleBodyOutput, h as CreateChannelBody, ht as ScheduleBody, i as AssignTaskBody, in as UploadTicket, it as PrincipalView, j as GrantBody, jt as SyncCopiesQuery, k as FailTaskBody, kt as SourceReadQuery, l as CancelTaskBody, lt as RegisterInput, m as CompleteTaskBody, mt as RouteName, n as ActorView, nn as UpdateGrantInput, nt as PostInput, o as BlockView, ot as ReactBody, p as ClaimTaskBody, pt as ResolvedSyncTarget, q as MatchView, qt as TasksQueryInput, r as ApiError, rn as UploadStartBody, rt as PrincipalInput, s as BoardEventView, st as Ref, t as AckBody, tn as UpdateGrantBody, tt as PostBody, u as ChannelView, ut as RegistrationView, v as CreateTasksBody, vt as ScheduleView, w as EventsPage, wt as SchemaView, x as DeleteBody, xt as SchedulesQueryOutput, y as CreateTasksInput, yt as SchedulesQuery, z as InboxNextQuery, zt as SyncReceiptInput } from "./routes-
|
|
2
|
-
import { i as Claims, r as CallerRequest } from "./auth-
|
|
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-
|
|
4
|
-
import { $ as
|
|
5
|
-
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-
|
|
1
|
+
import { $ as MessagesQueryInput, $t as TypingBody, A as FiltersInput, At as SyncBody, B as InboxPushBody, Bt as SyncThreadView, C as EditBody, Ct as SchemaInput, D as ExplainQuery, Dt as SourceMessage, E as EventsQueryInput, En as Attachment, Et as SourceJoinBody, F as INBOX_EVENT_ID_MAX, Ft as SyncFindView, G as LinkView, Gt as TasksPage, H as LABEL_CONDITIONS_MAX, Ht as TaskClaim, I as InboxAckBody, It as SyncImportBody, J as MatchesQuery, Jt as ThreadSummaryView, K as LinkedQuery, Kt as TasksQuery, L as InboxEntry, Lt as SyncImportInput, M as GrantCan, Mt as SyncCopiesView, N as GrantInput, Nt as SyncFindInput, O as Explanation, Ot as SourceRead, P as GrantView, Pt as SyncFindQuery, Q as MessagesQuery, Qt as ThreadsQueryInput, R as InboxItem, Rt as SyncReceiptBody, S as Discovery, St as SchemaBody, T as EventsQuery, Tt as SourceJoin, U as LEASE_DEFAULT_S, Ut as TaskNeedsBody, V as InboxQuery, Vt as SyncedView, W as LabelBody, Wt as TaskView, X as MessageView, Xt as ThreadsPage, Y as Me, Yt as ThreadView, Z as MessagesPage, Zt as ThreadsQuery, _ as CreateTaskInput, _t as ScheduleInput, a as BlockTaskBody, an as routes, at as REGISTERED_WATCHERS_MAX, b as CreatedTasksQuery, bt as SchedulesQueryInput, c as CanAt, ct as RegisterBody, d as ClaimReadyTaskBody, dt as ReleaseTaskBody, en as TypingResult, et as ParsedFilters, f as ClaimReadyTaskInput, ft as RenewTaskBody, g as CreateTaskBody, gt as ScheduleBodyOutput, h as CreateChannelBody, ht as ScheduleBody, i as AssignTaskBody, in as UploadTicket, it as PrincipalView, j as GrantBody, jt as SyncCopiesQuery, k as FailTaskBody, kt as SourceReadQuery, l as CancelTaskBody, lt as RegisterInput, m as CompleteTaskBody, mt as RouteName, n as ActorView, nn as UpdateGrantInput, nt as PostInput, o as BlockView, ot as ReactBody, p as ClaimTaskBody, pt as ResolvedSyncTarget, q as MatchView, qt as TasksQueryInput, r as ApiError, rn as UploadStartBody, rt as PrincipalInput, s as BoardEventView, st as Ref, t as AckBody, tn as UpdateGrantBody, tt as PostBody, u as ChannelView, ut as RegistrationView, v as CreateTasksBody, vt as ScheduleView, w as EventsPage, wt as SchemaView, x as DeleteBody, xt as SchedulesQueryOutput, y as CreateTasksInput, yt as SchedulesQuery, z as InboxNextQuery, zt as SyncReceiptInput } from "./routes-CjA6Mp4D.mjs";
|
|
2
|
+
import { i as Claims, r as CallerRequest } from "./auth-li3lKwJG.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-UBP6HimX.mjs";
|
|
4
|
+
import { $ as Written, B as ExplainPrincipal, F as BoardError, G as ProfileOption, H as HeldTask, I as ClaimedTask, J as ScheduleTiming, K as ReplyOptions, Q as WaitOptions, R as EventsOptions, U as NewTaskOptions, V as Filters, W as PostOptions, X as TaskOptions, Y as TaskInBatch, Z as UploadInput, et as duration, nt as MentionedActor, q as ScheduleOptions, tt as Mentioned, z as EventsState } from "./provider-DC3WHUXo.mjs";
|
|
5
|
+
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-inhbjAWi.mjs";
|
|
6
6
|
import { n as block } from "./blocks-DGvh2alZ.mjs";
|
|
7
|
-
import { t as board } from "./index-
|
|
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 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 GrantBody, type GrantCan, type GrantInput, type GrantView, 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 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 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 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, block, board, createTasksInChunks, duration, type routes };
|
|
7
|
+
import { t as board } from "./index-B0Fnhvk7.mjs";
|
|
8
|
+
export { type AckBody, type ActorView, type ApiError, type AsOptions, type AssignTaskBody, type Attachment, type Backend, type BackendRoute, type BlockTaskBody, type BlockView, type Board, type BoardBinding, BoardError, type BoardEventView, type BoardOptions, type Caller, type CallerRequest, type CanAt, type CancelTaskBody, type ChannelView, type ClaimReadyTaskBody, type ClaimReadyTaskInput, type ClaimTaskBody, type ClaimedTask, type Claims, type CompleteTaskBody, type CreateChannelBody, 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 GrantBody, type GrantCan, type GrantInput, type GrantView, 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 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 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 };
|
package/dist/index.node.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as BoardError, m as duration, t as HttpError } from "./errors-
|
|
2
|
-
import { t as DroppedError } from "./middleware-
|
|
1
|
+
import { f as BoardError, m as duration, t as HttpError } from "./errors-QhkdzI-o.mjs";
|
|
2
|
+
import { t as DroppedError } from "./middleware-CT6vMNUc.mjs";
|
|
3
3
|
import { t as block } from "./blocks-CVoBC7ur.mjs";
|
|
4
|
-
import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-
|
|
5
|
-
import { t as board } from "./server-
|
|
4
|
+
import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-B5xOYHj_.mjs";
|
|
5
|
+
import { t as board } from "./server-DmlyIzMj.mjs";
|
|
6
6
|
export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration };
|