@vercel/board 0.37.0 → 0.38.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-BsP0hvcC.mjs → access-CVkjSfxj.mjs} +12 -12
- package/dist/access.d.mts +3 -3
- package/dist/access.mjs +6 -5
- package/dist/{actors-uoD62kiN.mjs → actors-kfMejhaw.mjs} +5 -4
- package/dist/{auth-CrjXLgOb.mjs → auth-B3bBYOqf.mjs} +2 -2
- package/dist/{auth-BHXgi696.d.mts → auth-BXLCkeB0.d.mts} +3 -3
- package/dist/{backend-BIvl2z1z.d.mts → backend-BkQlF1LQ.d.mts} +3 -3
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-C0WUS3-G.mjs → chat-provider-1WKsLEnM.mjs} +2 -2
- package/dist/{chat-provider-DFYEReZL.d.mts → chat-provider-DyNy5xdC.d.mts} +2 -2
- 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 +3 -3
- package/dist/cli.mjs +5 -5
- package/dist/{commands-DGID-4Z2.d.mts → commands-B5d-lmNN.d.mts} +1 -1
- package/dist/{commands-D2pFCMSh.mjs → commands-BLS7erNu.mjs} +1 -1
- package/dist/{conformance-rCrc_mwi.mjs → conformance-qJF96jZI.mjs} +162 -20
- package/dist/conformance.d.mts +10 -2
- package/dist/conformance.mjs +1 -1
- package/dist/digest-DAxy9Ula.mjs +4 -0
- package/dist/{engine-COa73McY.mjs → engine-eUgO5jTM.mjs} +4 -4
- package/dist/{events-v8f7pF9f.mjs → events-C6HwB046.mjs} +2 -2
- package/dist/exports-BJ3wmEMY.d.mts +4 -0
- package/dist/{exports-DTezg4xR.mjs → exports-BsfcChdp.mjs} +80 -25
- package/dist/{external-BA2aCC_3.mjs → external-CHDxWIVf.mjs} +1 -1
- package/dist/{index-B1TZrMMu.d.mts → index-DpVyZa9b.d.mts} +2 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +3 -3
- package/dist/index.node.d.mts +5 -5
- package/dist/index.node.mjs +2 -2
- package/dist/inspect/app.js +21 -21
- package/dist/inspect-5mkjJYMS.mjs +2 -0
- package/dist/{inspect-CoFk2Xj7.mjs → inspect-DtCbBtOW.mjs} +4 -4
- package/dist/{local-Cm7a7_Q0.mjs → local-Bo3XzEKB.mjs} +22 -22
- package/dist/{main-DoZ8IFPb.mjs → main-0nvLgajF.mjs} +42 -36
- package/dist/{memory-DqwXlyK4.mjs → memory-DkoqhxIH.mjs} +2 -2
- package/dist/{middleware-k_XKQ6f7.mjs → middleware-CPqAuRtp.mjs} +1 -1
- package/dist/page-R0RoE_gM.mjs +2 -0
- package/dist/{page-LysMGAl3.mjs → page-UsfvSIWc.mjs} +2 -2
- package/dist/{provider-7pOnK8Jw.d.mts → provider-D5yVFisj.d.mts} +1 -1
- package/dist/{routes-BtsZzal-.d.mts → routes-BffuaoTX.d.mts} +11 -1
- package/dist/{schemas-BG205xds.mjs → schemas-AZkxk06N.mjs} +3 -3
- package/dist/{serve-2U_JPJtS.mjs → serve-D7I3KisQ.mjs} +3 -3
- package/dist/{server-Drul_uwj.mjs → server-Cc3nYq3H.mjs} +9 -7
- package/dist/{serving-6_bhBNAW.mjs → serving-DJMcG0dT.mjs} +1 -1
- package/dist/{sql-aetuEBZC.mjs → sql-l3ysn4O5.mjs} +2 -2
- package/dist/{sqlite-DvsB8ENQ.mjs → sqlite-CAwNHbQD.mjs} +2 -2
- package/dist/{sqlite-db-BPwRoDI7.mjs → sqlite-db-cm5yhrD-.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-github.mjs +2 -2
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync-slack.mjs +4 -4
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +2 -2
- package/dist/{targets-B0D4tJDY.mjs → targets-B4Uikw0J.mjs} +6 -6
- package/dist/{tokens-Dn4cPZIr.mjs → tokens-DA9ipsZ-.mjs} +1 -1
- package/docs/01-board/01-mounting.md +1 -1
- package/docs/01-board/09-access.md +10 -5
- package/docs/03-guides/03-ci.md +10 -4
- package/docs/04-reference/01-cli.md +23 -9
- package/docs/04-reference/02-board.md +2 -1
- package/docs/04-reference/03-http.md +3 -3
- package/docs/04-reference/05-conformance.md +9 -2
- package/package.json +1 -1
- package/dist/digest-CLGw7653.mjs +0 -4
- package/dist/exports-Bb0m03fT.d.mts +0 -4
- package/dist/inspect-B8c0Wh5Z.mjs +0 -2
- package/dist/page-BAQpb-s-.mjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as ATTACHMENT_BYTES_MAX } from "./errors-rYDxZEuN.mjs";
|
|
2
|
-
import "./schemas-
|
|
3
|
-
import { t as Failed, u as who } from "./main-
|
|
4
|
-
import { t as page } from "./page-
|
|
2
|
+
import "./schemas-AZkxk06N.mjs";
|
|
3
|
+
import { t as Failed, u as who } from "./main-0nvLgajF.mjs";
|
|
4
|
+
import { t as page } from "./page-UsfvSIWc.mjs";
|
|
5
5
|
import { randomBytes, timingSafeEqual } from "node:crypto";
|
|
6
6
|
import { createServer } from "node:http";
|
|
7
7
|
//#region src/inspect/style.ts
|
|
@@ -420,7 +420,7 @@ button.file:hover { background: var(--shade-hover); color: var(--bright); }
|
|
|
420
420
|
.toast { max-width: 420px; padding: 8px 12px; border: 1px solid var(--dim); background: var(--bg); color: var(--bright); }
|
|
421
421
|
`;
|
|
422
422
|
/** The prebuilt UI where board is installed, read only when an inspector starts without one. */
|
|
423
|
-
const bundle = async () => (await import("./page-
|
|
423
|
+
const bundle = async () => (await import("./page-R0RoE_gM.mjs")).page();
|
|
424
424
|
const shell = (token) => `<!doctype html>
|
|
425
425
|
<html lang="en">
|
|
426
426
|
<head>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { a as forbidden$1, c as toErrorResponse, f as duration, g as fileName, h as IMPORT_BYTES_MAX, i as duplicateId, l as unauthorized, m as DIRECT_UPLOAD_BYTES_MAX, p as ATTACHMENT_BYTES_MAX, r as badRequest, s as notFound, t as HttpError, u as BoardError, v as mediaType } from "./errors-rYDxZEuN.mjs";
|
|
2
|
-
import { _ as actorKind, a as
|
|
3
|
-
import { a as Link, i as ExternalTarget, n as ExternalEvent, o as Origin } from "./external-
|
|
4
|
-
import { a as runMatch, g as VERSION, h as SYNC, i as canonicalWatchers, l as METHODS, n as syncTarget, o as compileWatcher, r as withEmailMentions, s as hasCriteria } from "./targets-
|
|
5
|
-
import { a as waitUntil, c as isKeyIdOf, n as MIDDLEWARE_ACTOR, s as derivedId, t as DroppedError } from "./middleware-
|
|
6
|
-
import { a as
|
|
7
|
-
import { C as workflowPath, c as checkGrant, f as grantIssuers, h as joined, l as checkPrincipal, m as issuerName, n as DEFAULT_CAN, o as authenticates, r as GITHUB_ISSUER, s as checkCan, t as BOARD_TOKEN_PREFIX, v as removes, w as wroteAs, y as tokenHash } from "./auth-
|
|
2
|
+
import { _ as actorKind, a as CAN_MAX, c as Handle, d as Labels, g as SeenActorKind, h as RemoteWatcherId, i as Author, l as LabelKey, m as MessageText, n as Attachment, o as ChannelPath, p as MessageId, s as Emoji, t as ActorId, v as platformAvatar, y as storable } from "./schemas-AZkxk06N.mjs";
|
|
3
|
+
import { a as Link, i as ExternalTarget, n as ExternalEvent, o as Origin } from "./external-CHDxWIVf.mjs";
|
|
4
|
+
import { a as runMatch, g as VERSION, h as SYNC, i as canonicalWatchers, l as METHODS, n as syncTarget, o as compileWatcher, r as withEmailMentions, s as hasCriteria } from "./targets-B4Uikw0J.mjs";
|
|
5
|
+
import { a as waitUntil, c as isKeyIdOf, n as MIDDLEWARE_ACTOR, s as derivedId, t as DroppedError } from "./middleware-CPqAuRtp.mjs";
|
|
6
|
+
import { a as canText, c as compileAccess, i as authorize, o as checkGrantChange, t as FULL_ACCESS, u as parseCan } from "./access-CVkjSfxj.mjs";
|
|
7
|
+
import { C as workflowPath, c as checkGrant, f as grantIssuers, h as joined, l as checkPrincipal, m as issuerName, n as DEFAULT_CAN, o as authenticates, r as GITHUB_ISSUER, s as checkCan, t as BOARD_TOKEN_PREFIX, v as removes, w as wroteAs, y as tokenHash } from "./auth-B3bBYOqf.mjs";
|
|
8
8
|
import { n as setOwn, t as own } from "./own-OwgPWdmh.mjs";
|
|
9
9
|
import { n as replaceMentions } from "./mentions-CB6ShY4R.mjs";
|
|
10
|
-
import { a as resolveMentions, n as actorSeen } from "./actors-
|
|
10
|
+
import { a as resolveMentions, n as actorSeen } from "./actors-kfMejhaw.mjs";
|
|
11
11
|
import { C as sessionClearedError, a as SOCKET_TIMINGS, c as drainSettledHooks, d as nullProtoRecord, f as runtimeConsumerFactory, g as A2Error, h as stateTailReaders, i as RESERVED_PARTICIPANT_IDS, l as failedPreviousAttempt, m as serverInternals, n as POLL_TIMINGS, o as STATE_CACHE, p as runtimeConsumers, r as PRESENCE_TIMINGS, s as STREAM_TIMINGS, t as DRAIN_TIMINGS, u as markSchedulerSendFailure, v as NonRetriableError, x as isSessionCleared, y as asStoreUnavailable } from "./internal-CvsrprnU-CEPOUpAv.mjs";
|
|
12
12
|
import { i as streamActivities, n as defaultSleep, t as createStreamActivity } from "./store-polling-BZt2Rf3D-oh3aU_An.mjs";
|
|
13
|
-
import { a as foldActors, i as concernedMessageId, o as foldMessages, s as iso, t as TABLES_CONSUMER } from "./sql-
|
|
13
|
+
import { a as foldActors, i as concernedMessageId, o as foldMessages, s as iso, t as TABLES_CONSUMER } from "./sql-l3ysn4O5.mjs";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { createHash, randomBytes } from "node:crypto";
|
|
16
16
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -4109,7 +4109,7 @@ const StoredPrincipal = z.object({
|
|
|
4109
4109
|
/** The board's own Vercel team, as the board knew it when it verified the token. */
|
|
4110
4110
|
team: z.string().max(200).optional()
|
|
4111
4111
|
}).optional(),
|
|
4112
|
-
scope: z.string().max(
|
|
4112
|
+
scope: z.string().max(CAN_MAX).optional(),
|
|
4113
4113
|
/** The board token it came with: what it stores stops when the token does. */
|
|
4114
4114
|
token: z.string().min(1).max(64).optional()
|
|
4115
4115
|
});
|
|
@@ -5692,7 +5692,7 @@ const isOwner = (principal) => principal.kind === "person" && principal.id.start
|
|
|
5692
5692
|
/** Whether `identity` may list the grants: `manage` at `*`, or the owner, as far as its token's scope allows. */
|
|
5693
5693
|
function lists({ principal }) {
|
|
5694
5694
|
if (principal.access.at("manage", "*")) return true;
|
|
5695
|
-
return isOwner(principal) && (principal.scope === void 0 || compileAccess(
|
|
5695
|
+
return isOwner(principal) && (principal.scope === void 0 || compileAccess(parseCan(principal.scope)).at("manage", "*"));
|
|
5696
5696
|
}
|
|
5697
5697
|
/** A 403 unless `identity` may list the grants. */
|
|
5698
5698
|
function mayList(identity, what) {
|
|
@@ -5713,7 +5713,7 @@ const withoutEveryone = (grants) => grants.flatMap((grant) => {
|
|
|
5713
5713
|
async function changerAccess({ principal }, grants, accessIn) {
|
|
5714
5714
|
if (isOwner(principal)) {
|
|
5715
5715
|
if (principal.scope === void 0) return null;
|
|
5716
|
-
const scoped = compileAccess(
|
|
5716
|
+
const scoped = compileAccess(parseCan(principal.scope));
|
|
5717
5717
|
return {
|
|
5718
5718
|
caller: scoped,
|
|
5719
5719
|
own: scoped
|
|
@@ -5829,7 +5829,7 @@ function createTrust(options) {
|
|
|
5829
5829
|
let access = minters.get(key);
|
|
5830
5830
|
if (!access) minters.set(key, access = options.accessNow(minter));
|
|
5831
5831
|
const now = await access;
|
|
5832
|
-
return tokenView(row, now === null || scope === void 0 ? now : now.narrow(
|
|
5832
|
+
return tokenView(row, now === null || scope === void 0 ? now : now.narrow(parseCan(scope)));
|
|
5833
5833
|
}));
|
|
5834
5834
|
}
|
|
5835
5835
|
/** Whether token `id` and every token it was minted with are live now. */
|
|
@@ -6000,8 +6000,8 @@ function createTrust(options) {
|
|
|
6000
6000
|
} catch (error) {
|
|
6001
6001
|
throw badRequest(error.message, "invalid_scope");
|
|
6002
6002
|
}
|
|
6003
|
-
const scope =
|
|
6004
|
-
if (scope.length > 4e3) throw badRequest(`a token's can is ${
|
|
6003
|
+
const scope = canText((principal.scope === void 0 ? FULL_ACCESS : compileAccess(parseCan(principal.scope))).narrow(can));
|
|
6004
|
+
if (scope.length > 4e3) throw badRequest(`a token's can is ${CAN_MAX} characters at most as a scope: name fewer channels`, "invalid_scope");
|
|
6005
6005
|
const minter = {
|
|
6006
6006
|
id: principal.id,
|
|
6007
6007
|
kind: principal.kind,
|
|
@@ -6547,7 +6547,7 @@ function nextSend(schedule, n, at, now) {
|
|
|
6547
6547
|
/**
|
|
6548
6548
|
* Whether `principal` is the schedule's creator, as far as seeing and canceling
|
|
6549
6549
|
* it goes. A principal ID is coarser than access (a repo's workflows share one,
|
|
6550
|
-
* and so do the proxies narrowing one token with `x-board-
|
|
6550
|
+
* and so do the proxies narrowing one token with `x-board-can`), so it also
|
|
6551
6551
|
* needs `post` there now, as it would to create it. Where it can't read, the
|
|
6552
6552
|
* schedule is its own only if it was created without reading too, so a
|
|
6553
6553
|
* principal ID shared with a caller that reads doesn't reach that caller's.
|
|
@@ -8807,12 +8807,12 @@ function build(options, binding) {
|
|
|
8807
8807
|
});
|
|
8808
8808
|
}
|
|
8809
8809
|
/**
|
|
8810
|
-
* Refuses a caller narrowed with `x-board-
|
|
8810
|
+
* Refuses a caller narrowed with `x-board-can` (a sandboxed agent, say): its principal's
|
|
8811
8811
|
* watchers are one registration, which its project registers and runs with the token it
|
|
8812
8812
|
* narrowed. A narrowed pull would take matches from it, and a narrowed register replace it.
|
|
8813
8813
|
*/
|
|
8814
8814
|
function ownWatchers(principal) {
|
|
8815
|
-
if (principal.scope !== void 0) throw forbidden$1("this token is narrowed with x-board-
|
|
8815
|
+
if (principal.scope !== void 0) throw forbidden$1("this token is narrowed with x-board-can: registering and running watchers is its project's job");
|
|
8816
8816
|
}
|
|
8817
8817
|
/**
|
|
8818
8818
|
* Whether a sync's writes keep the board's record of the platform users they're by (name and
|
|
@@ -8825,7 +8825,7 @@ function build(options, binding) {
|
|
|
8825
8825
|
/**
|
|
8826
8826
|
* The caller, when it may sync somewhere: what every sync route needs. `records`: what it does
|
|
8827
8827
|
* keeps sync's records (imports, receipts, its inbox, links), which only an integration does,
|
|
8828
|
-
* never a caller narrowed with `x-board-
|
|
8828
|
+
* never a caller narrowed with `x-board-can`.
|
|
8829
8829
|
*/
|
|
8830
8830
|
async function needSync(caller, what, records = false) {
|
|
8831
8831
|
const identity = await identityOf(caller);
|
|
@@ -8834,12 +8834,12 @@ function build(options, binding) {
|
|
|
8834
8834
|
return identity;
|
|
8835
8835
|
}
|
|
8836
8836
|
/**
|
|
8837
|
-
* Refuses a caller narrowed with `x-board-
|
|
8837
|
+
* Refuses a caller narrowed with `x-board-can` what its principal's sync does: a platform
|
|
8838
8838
|
* thread or message it claimed for a channel in its scope would bring that sync's later events
|
|
8839
8839
|
* there, from wherever on the platform they are.
|
|
8840
8840
|
*/
|
|
8841
8841
|
function unnarrowed(principal, what) {
|
|
8842
|
-
if (principal.scope !== void 0) throw forbidden$1(`this token is narrowed with x-board-
|
|
8842
|
+
if (principal.scope !== void 0) throw forbidden$1(`this token is narrowed with x-board-can, so it can't ${what}: that's its project's sync's job`);
|
|
8843
8843
|
}
|
|
8844
8844
|
/**
|
|
8845
8845
|
* Refuses a platform origin an import can't have. Sync's records map each platform thread and
|
|
@@ -9113,10 +9113,10 @@ function local(options = {}) {
|
|
|
9113
9113
|
opening ??= (async () => {
|
|
9114
9114
|
const file = localFile(bound.name);
|
|
9115
9115
|
let store;
|
|
9116
|
-
if (options.memory) store = (await import("./memory-
|
|
9116
|
+
if (options.memory) store = (await import("./memory-DkoqhxIH.mjs")).memory();
|
|
9117
9117
|
else {
|
|
9118
9118
|
const { mkdir } = await import("node:fs/promises");
|
|
9119
|
-
const { sqlite } = await import("./sqlite-
|
|
9119
|
+
const { sqlite } = await import("./sqlite-CAwNHbQD.mjs");
|
|
9120
9120
|
const path = join(dir, `${file}.db`);
|
|
9121
9121
|
try {
|
|
9122
9122
|
await mkdir(dir, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as fileSize, m as DIRECT_UPLOAD_BYTES_MAX, u as BoardError } from "./errors-rYDxZEuN.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { c as withMentions, g as VERSION } from "./targets-
|
|
2
|
+
import { f as MESSAGE_TEXT_MAX, r as AttachmentId } from "./schemas-AZkxk06N.mjs";
|
|
3
|
+
import { c as withMentions, g as VERSION } from "./targets-B4Uikw0J.mjs";
|
|
4
4
|
import { n as displayEmoji, r as normalizeEmoji } from "./emoji-CTLpvH-A.mjs";
|
|
5
|
-
import { r as PERMISSIONS, u as
|
|
6
|
-
import { i as isApiMessageId, n as isBoardName } from "./exports-
|
|
7
|
-
import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-
|
|
8
|
-
import { a as
|
|
9
|
-
import { t as conformance } from "./conformance-
|
|
5
|
+
import { r as PERMISSIONS, u as parseCan } from "./access-CVkjSfxj.mjs";
|
|
6
|
+
import { i as isApiMessageId, n as isBoardName } from "./exports-BsfcChdp.mjs";
|
|
7
|
+
import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-BLS7erNu.mjs";
|
|
8
|
+
import { a as vercel, c as connect, i as handTeam, l as handFetch, n as credentialSource, o as http, p as vercelProjectFile, r as credentialed, s as boardUrl, t as board, u as handLogin } from "./server-Cc3nYq3H.mjs";
|
|
9
|
+
import { t as conformance } from "./conformance-qJF96jZI.mjs";
|
|
10
10
|
import { t as displayText } from "./bots-CGkO76qH.mjs";
|
|
11
11
|
import { spawn } from "node:child_process";
|
|
12
12
|
import { readFile, stat, writeFile } from "node:fs/promises";
|
|
@@ -1293,7 +1293,7 @@ function trustId(what, value) {
|
|
|
1293
1293
|
return value;
|
|
1294
1294
|
}
|
|
1295
1295
|
/**
|
|
1296
|
-
* A token's `--can`, as `x-board-
|
|
1296
|
+
* A token's `--can`, as `x-board-can` writes it (`dev/=read,post;ci/=read`), repeated or
|
|
1297
1297
|
* `;`-joined, with `none` for no permissions, as `all` is every one: `*=all;security/=none` closes a
|
|
1298
1298
|
* subtree. `security/=` means the same. The board takes an empty list, so `none` never leaves the CLI.
|
|
1299
1299
|
*/
|
|
@@ -1306,9 +1306,9 @@ function canFlag(values) {
|
|
|
1306
1306
|
return permissions[0] === "none" ? entry.slice(0, at + 1) : entry;
|
|
1307
1307
|
}).join(";");
|
|
1308
1308
|
try {
|
|
1309
|
-
return
|
|
1309
|
+
return parseCan(scope, "--can");
|
|
1310
1310
|
} catch (error) {
|
|
1311
|
-
throw usage(`${error.message.replace(
|
|
1311
|
+
throw usage(`${error.message.replace(/, or all$/, ", all, or none")}.`);
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
1314
|
/** What a grant's flags say, or the misuse in them. */
|
|
@@ -1493,6 +1493,7 @@ function failureOf(error) {
|
|
|
1493
1493
|
case "board_name_taken": return own("conflict", "board_name_taken");
|
|
1494
1494
|
case "board_not_granted": return own("permission", "board_not_granted");
|
|
1495
1495
|
case "watchers_need_project": return own("permission", "watchers_need_project");
|
|
1496
|
+
case "unsupported_principal": return own(status === 403 ? "permission" : "usage", "unsupported_principal");
|
|
1496
1497
|
case "board_token_scope": return own("permission", "board_token_scope");
|
|
1497
1498
|
case "invalid_board_name": return own("usage", "invalid_arguments", [helpRecovery()]);
|
|
1498
1499
|
case "too_many_redirects": return own("network", "network_error");
|
|
@@ -1649,7 +1650,7 @@ function connection(url = flags.url, options = {}) {
|
|
|
1649
1650
|
const board$1 = board({
|
|
1650
1651
|
backend: vercel({
|
|
1651
1652
|
...team !== void 0 ? { team } : {},
|
|
1652
|
-
...sending(options.token)
|
|
1653
|
+
...sending(options.token, options.can)
|
|
1653
1654
|
}),
|
|
1654
1655
|
...name !== void 0 ? {
|
|
1655
1656
|
name,
|
|
@@ -1668,7 +1669,7 @@ function connection(url = flags.url, options = {}) {
|
|
|
1668
1669
|
if (onVercel) {
|
|
1669
1670
|
const board$3 = board({ backend: vercel({
|
|
1670
1671
|
...onVercel,
|
|
1671
|
-
...sending(options.token)
|
|
1672
|
+
...sending(options.token, options.can)
|
|
1672
1673
|
}) });
|
|
1673
1674
|
return {
|
|
1674
1675
|
url: at,
|
|
@@ -1679,7 +1680,8 @@ function connection(url = flags.url, options = {}) {
|
|
|
1679
1680
|
const handle = options.handle ?? flags.handle;
|
|
1680
1681
|
const transport = connect(at, {
|
|
1681
1682
|
...options.token !== void 0 ? { token: options.token } : {},
|
|
1682
|
-
...handle ? { handle } : {}
|
|
1683
|
+
...handle ? { handle } : {},
|
|
1684
|
+
...options.can !== void 0 ? { fetch: narrowing(options.can) } : {}
|
|
1683
1685
|
});
|
|
1684
1686
|
const board$2 = board({ backend: http(at, { fetch: transport.fetch }) });
|
|
1685
1687
|
return {
|
|
@@ -1719,14 +1721,26 @@ function boardNameFlag(url, team) {
|
|
|
1719
1721
|
if (!isBoardName(given)) throw usage(`${from} ${given} isn't a board's name: one is 1 to 64 characters.`);
|
|
1720
1722
|
return given;
|
|
1721
1723
|
}
|
|
1722
|
-
/** For Vercel's API, `token` in place of your own credentials
|
|
1723
|
-
function sending(token) {
|
|
1724
|
-
if (token === void 0) return {};
|
|
1725
|
-
return { fetch: (input, init) => {
|
|
1724
|
+
/** For Vercel's API, `token` in place of your own credentials (a board token's secret), and `can` narrowing them. */
|
|
1725
|
+
function sending(token, can) {
|
|
1726
|
+
if (token === void 0 && can === void 0) return {};
|
|
1727
|
+
return { fetch: (input, init = {}) => {
|
|
1728
|
+
const headers = new Headers(init.headers ?? (input instanceof Request ? input.headers : void 0));
|
|
1729
|
+
if (token !== void 0) headers.set("authorization", `Bearer ${token}`);
|
|
1730
|
+
if (can !== void 0) headers.set("x-board-can", can);
|
|
1731
|
+
return (token === void 0 ? credentialed() : globalThis.fetch)(input, {
|
|
1732
|
+
...init,
|
|
1733
|
+
headers
|
|
1734
|
+
});
|
|
1735
|
+
} };
|
|
1736
|
+
}
|
|
1737
|
+
/** A fetch that narrows what a board on HTTP lets its credentials do to `can`, as a proxy holding them would. */
|
|
1738
|
+
function narrowing(can) {
|
|
1739
|
+
return (input, init) => {
|
|
1726
1740
|
const request = new Request(input, init);
|
|
1727
|
-
request.headers.set("
|
|
1741
|
+
request.headers.set("x-board-can", can);
|
|
1728
1742
|
return globalThis.fetch(request);
|
|
1729
|
-
}
|
|
1743
|
+
};
|
|
1730
1744
|
}
|
|
1731
1745
|
/** A handle on the board this command talks to: `vb()`'s, as `--as` says, or the one `connection()` finds. */
|
|
1732
1746
|
function client() {
|
|
@@ -1860,9 +1874,11 @@ async function run(command, args) {
|
|
|
1860
1874
|
});
|
|
1861
1875
|
const tokenUrl = io.board ? void 0 : connection().url === null ? (await client().discovery()).url : flags.url;
|
|
1862
1876
|
const withToken = io.board ? {} : { withToken: (secret) => connection(tokenUrl, { token: secret }).board };
|
|
1877
|
+
const withCan = io.board ? {} : { withCan: (can) => connection(void 0, { can }).board };
|
|
1863
1878
|
const report = await conformance(client(), {
|
|
1864
1879
|
...flags.channel ? { channel: flags.channel } : {},
|
|
1865
|
-
...withToken
|
|
1880
|
+
...withToken,
|
|
1881
|
+
...withCan
|
|
1866
1882
|
});
|
|
1867
1883
|
if (flags.json) result(report);
|
|
1868
1884
|
else out(formatConformance(report));
|
|
@@ -2078,21 +2094,11 @@ async function run(command, args) {
|
|
|
2078
2094
|
principals,
|
|
2079
2095
|
can
|
|
2080
2096
|
});
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
message: note
|
|
2087
|
-
});
|
|
2088
|
-
result({
|
|
2089
|
-
grant,
|
|
2090
|
-
outcome: "created"
|
|
2091
|
-
});
|
|
2092
|
-
} else {
|
|
2093
|
-
out(`created ${grantRow(grant)}`);
|
|
2094
|
-
if (unsigned) out(`note ${note}`);
|
|
2095
|
-
}
|
|
2097
|
+
if (flags.json) result({
|
|
2098
|
+
grant,
|
|
2099
|
+
outcome: "created"
|
|
2100
|
+
});
|
|
2101
|
+
else out(`created ${grantRow(grant)}`);
|
|
2096
2102
|
return 0;
|
|
2097
2103
|
}
|
|
2098
2104
|
if (verb === "update") {
|
|
@@ -2404,7 +2410,7 @@ async function run(command, args) {
|
|
|
2404
2410
|
else out(formatEvent(event));
|
|
2405
2411
|
return 0;
|
|
2406
2412
|
}
|
|
2407
|
-
case "inspect": return (await import("./inspect-
|
|
2413
|
+
case "inspect": return (await import("./inspect-5mkjJYMS.mjs")).inspect(context());
|
|
2408
2414
|
default: {
|
|
2409
2415
|
const own = app.commands[command];
|
|
2410
2416
|
if (own) return own.run(args, context());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as sqlTables } from "./sql-
|
|
1
|
+
import { r as sqlTables } from "./sql-l3ysn4O5.mjs";
|
|
2
2
|
import { t as memory$1 } from "./store-memory-CKQVEzXN.mjs";
|
|
3
|
-
import { t as sqliteDb } from "./sqlite-db-
|
|
3
|
+
import { t as sqliteDb } from "./sqlite-db-cm5yhrD-.mjs";
|
|
4
4
|
//#region src/store/memory.ts
|
|
5
5
|
/**
|
|
6
6
|
* A board that lives in memory, for tests: its log in A2's memory store, its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as HttpError } from "./errors-rYDxZEuN.mjs";
|
|
2
|
-
import { d as
|
|
2
|
+
import { d as Labels, f as MESSAGE_TEXT_MAX } from "./schemas-AZkxk06N.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/client/ids.ts
|
|
5
5
|
const hex = (bytes) => Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./digest-
|
|
1
|
+
import "./digest-DAxy9Ula.mjs";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
//#region src/inspect/page.ts
|
|
@@ -22,7 +22,7 @@ function files() {
|
|
|
22
22
|
async function page() {
|
|
23
23
|
for (const file of files()) {
|
|
24
24
|
const script = await readFile(file, "utf8").catch(() => null);
|
|
25
|
-
if (script !== null && createHash("sha256").update(script).digest("hex") === "
|
|
25
|
+
if (script !== null && createHash("sha256").update(script).digest("hex") === "474e5b11011a75d090694373a67a3bc8e7c9ec162c44786ed0f44c9fc90261b4") return script;
|
|
26
26
|
}
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as
|
|
1
|
+
import { $t as Actor, C as InboxItem, Ct as ThreadsPage, Dt as TokenInput, F as MessagesPage, J as RegistrationView, L as MessagesQueryInput, Mt as UpdateGrantInput, N as Me, Ot as TokenView, P as MessageView, S as InboxEntry, St as ThreadView, Tt as ThreadsQueryInput, an as ExternalAuthor, b as GrantView, bt as SyncedView, cn as ExternalLink, d as EventsPage, en as ExternalCopy, et as ScheduleView, ft as SyncFindInput, g as FiltersInput, gt as SyncImportInput, h as Explanation, i as BoardEventView, it as SourceJoin, j as MatchView, l as Discovery, ln as Link, mt as SyncFindView, nt as SchedulesQueryInput, o as ChannelView, on as ExternalEvent, q as RegisterInput, sn as ExternalFile, st as SourceRead, tn as Attachment, vt as SyncReceiptInput, y as GrantInput, yt as SyncThreadView } from "./routes-BffuaoTX.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/client/client.d.ts
|
|
4
4
|
/**
|
|
@@ -420,6 +420,8 @@ type BoardEvent<K extends keyof BoardEvents & string = keyof BoardEvents & strin
|
|
|
420
420
|
}; }[K];
|
|
421
421
|
//#endregion
|
|
422
422
|
//#region src/contract/schemas.d.ts
|
|
423
|
+
/** The longest `x-board-can` header the board reads; a schedule keeps its creator's. */
|
|
424
|
+
declare const CAN_MAX = 4000;
|
|
423
425
|
declare const Labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
424
426
|
/** What an actor is: a `person`, an `agent` acting for a principal (`--as claude`), a deployment, a workflow, or a platform user (`external`). */
|
|
425
427
|
declare const ActorKind: z.ZodEnum<{
|
|
@@ -571,6 +573,14 @@ type WrittenCan = Readonly<Record<ChannelPattern, 'all' | readonly Permission[]>
|
|
|
571
573
|
*/
|
|
572
574
|
declare const LEVELS: readonly ['principal', 'group', 'everyone'];
|
|
573
575
|
type Level = (typeof LEVELS)[number];
|
|
576
|
+
/**
|
|
577
|
+
* `x-board-can`: `dev/=read,post,react,label;ci/=read`. Each entry is a
|
|
578
|
+
* pattern and its permissions (or `all`). It's meant for a proxy that holds the
|
|
579
|
+
* credential, like Pi's sandbox: the board intersects it with the principal's
|
|
580
|
+
* access, so it can only narrow, and a caller holding its own token gains
|
|
581
|
+
* nothing by sending it. `name` is what its errors call it: the CLI's `--can` writes the same.
|
|
582
|
+
*/
|
|
583
|
+
declare function parseCan(header: string, name?: string): Can;
|
|
574
584
|
/** A grant as `checkGrantChange` reads it: whom it names, by kind, and what it gives where. */
|
|
575
585
|
type GrantShape = {
|
|
576
586
|
readonly principals: readonly {
|
|
@@ -2646,4 +2656,4 @@ declare const routes: {
|
|
|
2646
2656
|
};
|
|
2647
2657
|
type RouteName = keyof typeof routes;
|
|
2648
2658
|
//#endregion
|
|
2649
|
-
export { ScheduleInput as $,
|
|
2659
|
+
export { ScheduleInput as $, Actor as $t, LinkedQuery as A, TypingResult as At, PostInput as B, FULL_ACCESS as Bt, InboxItem as C, ThreadsPage as Ct, LABEL_CONDITIONS_MAX as D, TokenInput as Dt, InboxQuery as E, TokenBody as Et, MessagesPage as F, routes as Ft, Ref as G, InvalidCan as Gt, PrincipalView as H, GrantChange as Ht, MessagesQuery as I, Access as It, RegistrationView as J, WrittenCan as Jt, RegisterBody as K, Level as Kt, MessagesQueryInput as L, AccessSummary as Lt, MatchesQuery as M, UpdateGrantInput as Mt, Me as N, UploadStartBody as Nt, LabelBody as O, TokenView as Ot, MessageView as P, UploadTicket as Pt, ScheduleBodyOutput as Q, union as Qt, ParsedFilters as R, Can as Rt, InboxEntry as S, ThreadView as St, InboxPushBody as T, ThreadsQueryInput as Tt, REGISTERED_WATCHERS_MAX as U, GrantChangeRefusal as Ut, PrincipalInput as V, Grant as Vt, ReactBody as W, GrantShape as Wt, RouteName as X, compileAccess as Xt, ResolvedSyncTarget as Y, checkGrantChange as Yt, ScheduleBody as Z, parseCan as Zt, GrantBody as _, SyncReceiptBody as _t, CanAt as a, ExternalAuthor as an, SourceJoinBody as at, GrantView as b, SyncedView as bt, DeleteBody as c, ExternalLink as cn, SourceReadQuery as ct, EventsPage as d, SyncCopiesView as dt, ExternalCopy as en, ScheduleView as et, EventsQuery as f, SyncFindInput as ft, FiltersInput as g, SyncImportInput as gt, Explanation as h, SyncImportBody as ht, BoardEventView as i, Labels as in, SourceJoin as it, MatchView as j, UpdateGrantBody as jt, LinkView as k, TypingBody as kt, Discovery as l, Link as ln, SyncBody as lt, ExplainQuery as m, SyncFindView as mt, ActorView as n, Author as nn, SchedulesQueryInput as nt, ChannelView as o, ExternalEvent as on, SourceMessage as ot, EventsQueryInput as p, SyncFindQuery as pt, RegisterInput as q, Permission as qt, ApiError as r, CAN_MAX as rn, SchedulesQueryOutput as rt, CreateChannelBody as s, ExternalFile as sn, SourceRead as st, AckBody as t, Attachment as tn, SchedulesQuery as tt, EditBody as u, SyncCopiesQuery as ut, GrantCan as v, SyncReceiptInput as vt, InboxNextQuery as w, ThreadsQuery as wt, InboxAckBody as x, ThreadSummaryView as xt, GrantInput as y, SyncThreadView as yt, PostBody as z, ChannelPattern as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
const MESSAGE_TEXT_MAX = 1e4;
|
|
3
|
-
/** The longest `x-board-
|
|
4
|
-
const
|
|
3
|
+
/** The longest `x-board-can` header the board reads; a schedule keeps its creator's. */
|
|
4
|
+
const CAN_MAX = 4e3;
|
|
5
5
|
const segment = "[a-z0-9][a-z0-9_-]*";
|
|
6
6
|
/** `errors-www`, `www/production`: lowercase segments joined by `/`. */
|
|
7
7
|
const ChannelPath = z.string().max(80).regex(new RegExp(`^${segment}(?:/${segment})*$`), "invalid channel path");
|
|
@@ -69,4 +69,4 @@ const Attachment = z.object({
|
|
|
69
69
|
/** A registered watcher's ID: a profile name, since its writes are by that profile. */
|
|
70
70
|
const RemoteWatcherId = z.string().regex(/^[A-Za-z][A-Za-z0-9-]{0,31}$/, "ids start with a letter and use up to 32 letters, numbers, and hyphens");
|
|
71
71
|
//#endregion
|
|
72
|
-
export { actorKind as _,
|
|
72
|
+
export { actorKind as _, CAN_MAX as a, toStorable as b, Handle as c, Labels as d, MESSAGE_TEXT_MAX as f, SeenActorKind as g, RemoteWatcherId as h, Author as i, LabelKey as l, MessageText as m, Attachment as n, ChannelPath as o, MessageId as p, AttachmentId as r, Emoji as s, ActorId as t, LabelValue as u, platformAvatar as v, storable as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as BoardError } from "./errors-rYDxZEuN.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as oidcTokens } from "./tokens-
|
|
4
|
-
import { t as local } from "./local-
|
|
2
|
+
import { d as localTokenFile, t as board } from "./server-Cc3nYq3H.mjs";
|
|
3
|
+
import { t as oidcTokens } from "./tokens-DA9ipsZ-.mjs";
|
|
4
|
+
import { t as local } from "./local-Bo3XzEKB.mjs";
|
|
5
5
|
import { mkdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
6
6
|
import { userInfo } from "node:os";
|
|
7
7
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as createBoardClient, o as json, t as HttpError, u as BoardError } from "./errors-rYDxZEuN.mjs";
|
|
2
|
-
import "./schemas-
|
|
3
|
-
import { F as RegisterBody, X as routes, i as canonicalWatchers, l as METHODS, o as compileWatcher } from "./targets-
|
|
4
|
-
import { l as keyId, o as DERIVED_ID, u as sha256 } from "./middleware-
|
|
5
|
-
import { a as registrant, o as wakePath, r as createVercel, t as createBoard } from "./exports-
|
|
2
|
+
import "./schemas-AZkxk06N.mjs";
|
|
3
|
+
import { F as RegisterBody, X as routes, i as canonicalWatchers, l as METHODS, o as compileWatcher } from "./targets-B4Uikw0J.mjs";
|
|
4
|
+
import { l as keyId, o as DERIVED_ID, u as sha256 } from "./middleware-CPqAuRtp.mjs";
|
|
5
|
+
import { a as registrant, o as wakePath, r as createVercel, t as createBoard } from "./exports-BsfcChdp.mjs";
|
|
6
6
|
import { execFile } from "node:child_process";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { mkdir, readFile, readdir, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -1077,6 +1077,8 @@ const environment = {
|
|
|
1077
1077
|
profile: environmentProfile,
|
|
1078
1078
|
boardToken: () => boardToken() !== null
|
|
1079
1079
|
};
|
|
1080
|
+
/** The fetch `vercel()` sends by default, with the credentials it finds: for the CLI to add a header of its own to. */
|
|
1081
|
+
const credentialed = () => environment.fetch();
|
|
1080
1082
|
/**
|
|
1081
1083
|
* Your team's board, in Vercel's API: this board keeps nothing, and reads and writes that one as
|
|
1082
1084
|
* this deployment's project, or as you. Without `board`, the team's board; without `fetch`, it
|
|
@@ -1095,9 +1097,9 @@ function vercel(options = {}) {
|
|
|
1095
1097
|
function board(options = {}) {
|
|
1096
1098
|
return createBoard(options, {
|
|
1097
1099
|
backend: (fetch) => process.env.BOARD_URL?.trim() ? http() : vercel(fetch ? { fetch } : {}),
|
|
1098
|
-
sync: () => import("./engine-
|
|
1099
|
-
serving: () => import("./serving-
|
|
1100
|
+
sync: () => import("./engine-eUgO5jTM.mjs"),
|
|
1101
|
+
serving: () => import("./serving-DJMcG0dT.mjs")
|
|
1100
1102
|
});
|
|
1101
1103
|
}
|
|
1102
1104
|
//#endregion
|
|
1103
|
-
export {
|
|
1105
|
+
export { vercel as a, connect as c, localTokenFile as d, projectDir as f, handTeam as i, handFetch as l, credentialSource as n, http as o, vercelProjectFile as p, credentialed as r, boardUrl as s, board as t, handLogin as u };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-
|
|
1
|
+
import { i as ownTeamId, n as discoveryIdentity, r as ownProjectId, t as oidcTokens } from "./tokens-DA9ipsZ-.mjs";
|
|
2
2
|
export { discoveryIdentity, oidcTokens, ownProjectId, ownTeamId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as actorKind } from "./schemas-
|
|
2
|
-
import { c as externalMessageKey, l as isThreadTarget } from "./external-
|
|
1
|
+
import { _ as actorKind } from "./schemas-AZkxk06N.mjs";
|
|
2
|
+
import { c as externalMessageKey, l as isThreadTarget } from "./external-CHDxWIVf.mjs";
|
|
3
3
|
import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
|
|
4
4
|
import { n as setOwn, t as own } from "./own-OwgPWdmh.mjs";
|
|
5
5
|
//#region src/contract/folds.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as sqlTables } from "./sql-
|
|
1
|
+
import { r as sqlTables } from "./sql-l3ysn4O5.mjs";
|
|
2
2
|
import { t as sqlite$1 } from "./store-sqlite-D6fIszST.mjs";
|
|
3
|
-
import { t as sqliteDb } from "./sqlite-db-
|
|
3
|
+
import { t as sqliteDb } from "./sqlite-db-cm5yhrD-.mjs";
|
|
4
4
|
//#region src/store/sqlite.ts
|
|
5
5
|
/**
|
|
6
6
|
* A local board in one SQLite file, its log and board's tables side by side. It
|
package/dist/sync-chat-sdk.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as channels, g as SyncFn, p as SyncProvider } from "./provider-
|
|
2
|
-
import { r as ChatTransport, t as ChatInput } from "./chat-provider-
|
|
1
|
+
import { b as channels, g as SyncFn, p as SyncProvider } from "./provider-D5yVFisj.mjs";
|
|
2
|
+
import { r as ChatTransport, t as ChatInput } from "./chat-provider-DyNy5xdC.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { ReactionEvent } from "chat";
|
|
5
5
|
//#region src/sync/chat-sdk.d.ts
|
package/dist/sync-chat-sdk.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as channels, i as eventSchema, r as envelope } from "./events-
|
|
2
|
-
import { t as ChatSyncProvider } from "./chat-provider-
|
|
1
|
+
import { f as channels, i as eventSchema, r as envelope } from "./events-C6HwB046.mjs";
|
|
2
|
+
import { t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
//#region src/sync/chat-sdk.ts
|
|
5
5
|
const schemaOf = (platform) => eventSchema(platform, "message");
|
package/dist/sync-github.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as SyncContext, g as SyncFn, y as SyncUnit } from "./provider-
|
|
2
|
-
import { n as ChatSyncProvider } from "./chat-provider-
|
|
1
|
+
import { f as SyncContext, g as SyncFn, y as SyncUnit } from "./provider-D5yVFisj.mjs";
|
|
2
|
+
import { n as ChatSyncProvider } from "./chat-provider-DyNy5xdC.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { Adapter } from "chat";
|
|
5
5
|
//#region src/sync/github.d.ts
|
package/dist/sync-github.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as withRoutes, i as eventSchema, p as into, r as envelope } from "./events-
|
|
2
|
-
import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-
|
|
1
|
+
import { g as withRoutes, i as eventSchema, p as into, r as envelope } from "./events-C6HwB046.mjs";
|
|
2
|
+
import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
|
|
3
3
|
import { n as tagOf } from "./tags-BpFo6q0_.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { connectGitHubAdapter } from "@vercel/connect/chat";
|
package/dist/sync-linear.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { st as SourceRead } from "./routes-
|
|
2
|
-
import { c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery, y as SyncUnit } from "./provider-
|
|
3
|
-
import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-
|
|
1
|
+
import { st as SourceRead } from "./routes-BffuaoTX.mjs";
|
|
2
|
+
import { c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery, y as SyncUnit } from "./provider-D5yVFisj.mjs";
|
|
3
|
+
import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-DyNy5xdC.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { Adapter } from "chat";
|
|
6
6
|
//#region src/sync/linear.d.ts
|
package/dist/sync-linear.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-
|
|
2
|
-
import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-
|
|
1
|
+
import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-C6HwB046.mjs";
|
|
2
|
+
import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
|
|
3
3
|
import { n as tagOf, t as slug } from "./tags-BpFo6q0_.mjs";
|
|
4
4
|
import "zod";
|
|
5
5
|
import { connectLinearAdapter } from "@vercel/connect/chat";
|
package/dist/sync-slack.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as channels, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery } from "./provider-
|
|
3
|
-
import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-
|
|
1
|
+
import { cn as ExternalLink } from "./routes-BffuaoTX.mjs";
|
|
2
|
+
import { b as channels, d as ResolvedTarget, f as SyncContext, g as SyncFn, o as ProviderPost, r as ProviderDelivery } from "./provider-D5yVFisj.mjs";
|
|
3
|
+
import { n as ChatSyncProvider, t as ChatInput } from "./chat-provider-DyNy5xdC.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { Adapter } from "chat";
|
|
6
6
|
//#region src/sync/slack.d.ts
|
package/dist/sync-slack.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./external-
|
|
3
|
-
import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-
|
|
4
|
-
import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-
|
|
1
|
+
import { f as MESSAGE_TEXT_MAX } from "./schemas-AZkxk06N.mjs";
|
|
2
|
+
import "./external-CHDxWIVf.mjs";
|
|
3
|
+
import { f as channels, i as eventSchema, l as UnreadableError, r as envelope } from "./events-C6HwB046.mjs";
|
|
4
|
+
import { n as markdownOf, t as ChatSyncProvider } from "./chat-provider-1WKsLEnM.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { stringifyMarkdown } from "chat";
|
|
7
7
|
import { createSlackAdapter } from "@chat-adapter/slack";
|
package/dist/sync.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { an as
|
|
2
|
-
import { A as envelope, C as render, D as SyncOverrides, E as RootOverride, O as SyncResult, S as mirror, T as ProviderEvent, _ as SyncIn, a as ProviderOptions, b as channels, c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, h as Sync, i as ProviderFile, j as eventSchema, k as SyncRoot, l as RenderInput, m as UnreadableError, n as FileDelivery, o as ProviderPost, p as SyncProvider, r as ProviderDelivery, s as Receive, u as Renderer, v as SyncOut, w as EventBase, x as into, y as SyncUnit } from "./provider-
|
|
1
|
+
import { an as ExternalAuthor, on as ExternalEvent, sn as ExternalFile } from "./routes-BffuaoTX.mjs";
|
|
2
|
+
import { A as envelope, C as render, D as SyncOverrides, E as RootOverride, O as SyncResult, S as mirror, T as ProviderEvent, _ as SyncIn, a as ProviderOptions, b as channels, c as ReceivedEvent, d as ResolvedTarget, f as SyncContext, g as SyncFn, h as Sync, i as ProviderFile, j as eventSchema, k as SyncRoot, l as RenderInput, m as UnreadableError, n as FileDelivery, o as ProviderPost, p as SyncProvider, r as ProviderDelivery, s as Receive, u as Renderer, v as SyncOut, w as EventBase, x as into, y as SyncUnit } from "./provider-D5yVFisj.mjs";
|
|
3
3
|
export { EventBase, type ExternalAuthor, ExternalEvent, type ExternalFile, type FileDelivery, type ProviderDelivery, type ProviderEvent, type ProviderFile, type ProviderOptions, type ProviderPost, type Receive, ReceivedEvent, type RenderInput, type Renderer, ResolvedTarget, type RootOverride, type Sync, type SyncContext, type SyncFn, type SyncIn, type SyncOut, SyncOverrides, SyncProvider, type SyncResult, type SyncRoot, type SyncUnit, UnreadableError, channels, envelope, eventSchema, into, mirror, render };
|
package/dist/sync.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as ExternalEvent } from "./external-
|
|
2
|
-
import { c as SyncProvider, f as channels, h as render, i as eventSchema, l as UnreadableError, m as mirror, n as SyncOverrides, o as ReceivedEvent, p as into, r as envelope, s as ResolvedTarget, t as EventBase } from "./events-
|
|
1
|
+
import { n as ExternalEvent } from "./external-CHDxWIVf.mjs";
|
|
2
|
+
import { c as SyncProvider, f as channels, h as render, i as eventSchema, l as UnreadableError, m as mirror, n as SyncOverrides, o as ReceivedEvent, p as into, r as envelope, s as ResolvedTarget, t as EventBase } from "./events-C6HwB046.mjs";
|
|
3
3
|
export { EventBase, ExternalEvent, ReceivedEvent, ResolvedTarget, SyncOverrides, SyncProvider, UnreadableError, channels, envelope, eventSchema, into, mirror, render };
|