@vercel/board 0.49.0 → 0.50.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-B8DnrnHa.mjs → access-BbgmsAFF.mjs} +2 -2
- package/dist/access.mjs +5 -5
- package/dist/{actors-DewJKyqy.mjs → actors-CX2D22hL.mjs} +3 -3
- package/dist/{auth-CEU06Nyp.mjs → auth-DJDTfgAL.mjs} +2 -2
- package/dist/{backend-BzCXxVZ-.d.mts → backend-CcaaS9Xl.d.mts} +12 -3
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-BS_fr61g.mjs → chat-provider-HJ7y_ipp.mjs} +2 -2
- package/dist/cli-embedded.d.mts +8 -2
- package/dist/cli-embedded.mjs +9 -3
- package/dist/cli.mjs +5 -5
- package/dist/{conformance-0xONNKcB.mjs → conformance-Cr-umDl0.mjs} +3 -3
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-BH_nfJ3N.mjs → engine-DJZ8Xy_g.mjs} +9 -7
- package/dist/{errors-DwV7I0g4.mjs → errors-DYF4hhIc.mjs} +1 -1
- package/dist/{events-B76-4bNp.mjs → events-BdOCmnZh.mjs} +3 -3
- package/dist/{exports-DLzyKwEp.mjs → exports-CuD-Mxkw.mjs} +62 -45
- package/dist/{exports-CKEK1fxf.d.mts → exports-lmr6UHHc.d.mts} +1 -1
- package/dist/{external-BLI4W_-V.mjs → external-D2jq_DEQ.mjs} +1 -1
- package/dist/{index-DxqSw8yd.d.mts → index-_KxJu15n.d.mts} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +3 -3
- package/dist/index.node.mjs +4 -4
- package/dist/inspect/app.js +35 -35
- package/dist/inspect/engine.js +3 -3
- package/dist/{inspect-B2ImmOvw.mjs → inspect-CZeoSm7E.mjs} +3 -3
- package/dist/inspect-UCcPViyA.mjs +2 -0
- package/dist/inspect.mjs +2 -2
- package/dist/{local-DPpSEq2_.mjs → local-BVSFSSYf.mjs} +46 -24
- package/dist/{main-CqX7JqzE.mjs → main-B016auoG.mjs} +23 -13
- package/dist/{memory-DzqkXIB-.mjs → memory-C2lzMV_t.mjs} +2 -2
- package/dist/{middleware-ysFm2S4v.mjs → middleware-DUKIITFZ.mjs} +3 -3
- package/dist/{routes-qS92xz8U.mjs → routes-BE0y6wCk.mjs} +9 -9
- package/dist/{schemas-TeVe4Udh.mjs → schemas-CUSTEFIy.mjs} +7 -1
- package/dist/{serve-CYr4RwRM.mjs → serve-B10e7QaY.mjs} +5 -5
- package/dist/{server-V7qyVUiJ.mjs → server-ViWNvg5q.mjs} +58 -28
- package/dist/{serving-BzNxlnDV.mjs → serving-SbqeWqlA.mjs} +1 -1
- package/dist/{shell-BLHZoP-x.mjs → shell-DmpmgOPC.mjs} +1 -1
- package/dist/{sql-DIKQd5Me.mjs → sql-iABdyCiz.mjs} +18 -5
- package/dist/{sqlite-BF9kBDh1.mjs → sqlite-28EMrmk7.mjs} +2 -2
- package/dist/{sqlite-db-CSYwiZ4E.mjs → sqlite-db-Ckd-ceNe.mjs} +1 -1
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.mjs +3 -3
- package/dist/sync-linear.mjs +3 -3
- package/dist/sync-slack.mjs +4 -4
- package/dist/sync.mjs +2 -2
- package/dist/{tags-BpFo6q0_.mjs → tags-D0qra0Qy.mjs} +1 -1
- package/dist/{task-batch-CujTLmTB.mjs → task-batch-9lVDG3d-.mjs} +6 -6
- package/dist/{tokens-BmCDAT4N.mjs → tokens-C-iK0Cku.mjs} +2 -2
- package/dist/{version-BCoWGLEW.mjs → version-C70RLVEK.mjs} +1 -1
- package/docs/01-board/03-identity.md +3 -2
- package/docs/02-sync/01-overview.md +2 -1
- package/docs/03-guides/06-sandboxed-agents.md +22 -21
- package/docs/04-reference/01-cli.md +10 -1
- package/docs/04-reference/02-board.md +6 -4
- package/docs/04-reference/03-http.md +4 -3
- package/package.json +1 -1
- package/dist/inspect-DnRQUmP8.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CAN_MAX, s as ChannelPath } from "./schemas-
|
|
2
|
-
import { o as forbidden } from "./errors-
|
|
1
|
+
import { a as CAN_MAX, s as ChannelPath } from "./schemas-CUSTEFIy.mjs";
|
|
2
|
+
import { o as forbidden } from "./errors-DYF4hhIc.mjs";
|
|
3
3
|
//#region src/server/access.ts
|
|
4
4
|
/**
|
|
5
5
|
* What a principal may do in a channel. `read` covers messages, threads,
|
package/dist/access.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as CAN_MAX } from "./schemas-
|
|
2
|
-
import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-
|
|
3
|
-
import { D as grantAccess, E as explainGrants, t as DEFAULT_CAN } from "./auth-
|
|
4
|
-
import { a as resolveActor } from "./actors-
|
|
5
|
-
import { t as oidcTokens } from "./tokens-
|
|
1
|
+
import { a as CAN_MAX } from "./schemas-CUSTEFIy.mjs";
|
|
2
|
+
import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-BbgmsAFF.mjs";
|
|
3
|
+
import { D as grantAccess, E as explainGrants, t as DEFAULT_CAN } from "./auth-DJDTfgAL.mjs";
|
|
4
|
+
import { a as resolveActor } from "./actors-CX2D22hL.mjs";
|
|
5
|
+
import { t as oidcTokens } from "./tokens-C-iK0Cku.mjs";
|
|
6
6
|
export { CAN_MAX, DEFAULT_CAN, FULL_ACCESS, InvalidCan, PERMISSIONS, checkGrantChange, compileAccess, explainGrants, grantAccess, oidcTokens, parseCan, resolveActor, union };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as parseProfileHeader } from "./profile-header-Cj0Cb1cf.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { r as badRequest } from "./errors-
|
|
4
|
-
import { u as parseCan } from "./access-
|
|
2
|
+
import { P as toStorable } from "./schemas-CUSTEFIy.mjs";
|
|
3
|
+
import { r as badRequest } from "./errors-DYF4hhIc.mjs";
|
|
4
|
+
import { u as parseCan } from "./access-BbgmsAFF.mjs";
|
|
5
5
|
import { t as own } from "./own-OwgPWdmh.mjs";
|
|
6
6
|
//#region src/server/actors.ts
|
|
7
7
|
/** Agents whose marks the board serves at `/avatars/<name>`, for a caller to pass as an avatar. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as unauthorized, o as forbidden, r as badRequest, t as HttpError } from "./errors-
|
|
2
|
-
import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-
|
|
1
|
+
import { d as unauthorized, o as forbidden, r as badRequest, t as HttpError } from "./errors-DYF4hhIc.mjs";
|
|
2
|
+
import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-BbgmsAFF.mjs";
|
|
3
3
|
//#region src/server/grants.ts
|
|
4
4
|
/**
|
|
5
5
|
* How close `principal` is to the caller, or null when it doesn't name it: `principal` for its own
|
|
@@ -38,12 +38,21 @@ type SandboxRule = {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* `
|
|
41
|
+
* What a sandbox needs to reach the board: `allow`, its network policy's hosts as `@vercel/sandbox`'s
|
|
42
|
+
* `NetworkPolicy` has them, each with its rules, and `env`, the environment `vb` in it runs with. A
|
|
43
|
+
* host `allow` doesn't name is blocked, so a caller adds its own beside the board's:
|
|
44
|
+
* `Sandbox.create({ networkPolicy: { allow: { ...allow, 'registry.npmjs.org': [] } }, env })`.
|
|
44
45
|
*/
|
|
45
46
|
type SandboxPolicy = {
|
|
46
47
|
allow: Record<string, SandboxRule[]>;
|
|
48
|
+
/**
|
|
49
|
+
* `BOARD_URL`, the board's URL, and `BOARD_TOKEN`, a placeholder: `vb` sends a credential, and the
|
|
50
|
+
* policy replaces it with the real one on the way out, so none enters the sandbox.
|
|
51
|
+
*/
|
|
52
|
+
env: {
|
|
53
|
+
BOARD_URL: string;
|
|
54
|
+
BOARD_TOKEN: string;
|
|
55
|
+
};
|
|
47
56
|
};
|
|
48
57
|
/** What `sandboxPolicy()` takes: who the agent writes as, what it may do, and the credential, all left in the policy. */
|
|
49
58
|
type SandboxPolicyOptions = {
|
package/dist/backend-local.d.mts
CHANGED
package/dist/backend-local.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as local } from "./local-
|
|
1
|
+
import { t as local } from "./local-BVSFSSYf.mjs";
|
|
2
2
|
export { local };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./external-
|
|
2
|
-
import { c as SyncProvider, s as ResolvedTarget } from "./events-
|
|
1
|
+
import "./external-D2jq_DEQ.mjs";
|
|
2
|
+
import { c as SyncProvider, s as ResolvedTarget } from "./events-BdOCmnZh.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { Chat, stringifyMarkdown } from "chat";
|
package/dist/cli-embedded.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as Board } from "./backend-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { f as Board } from "./backend-CcaaS9Xl.mjs";
|
|
2
|
+
import "./index-_KxJu15n.mjs";
|
|
3
3
|
//#region src/cli/failure.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What kind of failure it is, which fixes the exit code: 2 for `usage` and `missing_input`, 130
|
|
@@ -64,6 +64,11 @@ export declare function commandWord(argv: string[]): string | undefined;
|
|
|
64
64
|
* (`--scope` still wins): board asks for each only when a request needs it, so help, a typo, or
|
|
65
65
|
* misuse never refreshes a login or looks a team up. With `fetch`, board's requests to Vercel's API
|
|
66
66
|
* with that login go through the app's own, which adds its credentials (a DPoP proof, say).
|
|
67
|
+
*
|
|
68
|
+
* `token` is a Vercel token someone passed the app for this run, as `vercel board --token` takes
|
|
69
|
+
* one: the login to use, in place of `login` and ahead of everything the environment holds, a
|
|
70
|
+
* deployment's own token and `BOARD_TOKEN` included. A variable never goes ahead of those. Board
|
|
71
|
+
* sends it itself, as a Bearer token, never through `fetch`, which would add the app's own login's.
|
|
67
72
|
*/
|
|
68
73
|
export declare function createApp(options: {
|
|
69
74
|
appName: string;
|
|
@@ -72,6 +77,7 @@ export declare function createApp(options: {
|
|
|
72
77
|
}) => void;
|
|
73
78
|
onWarning?: (warning: Warning) => void;
|
|
74
79
|
login?: () => Promise<string>;
|
|
80
|
+
token?: string;
|
|
75
81
|
team?: () => Promise<string | null>;
|
|
76
82
|
fetch?: typeof globalThis.fetch;
|
|
77
83
|
}): {
|
package/dist/cli-embedded.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as stoppedBy } from "./exports-
|
|
2
|
-
import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure, n as commandWord, o as exitCode, r as main, s as failureDocument, t as Failed } from "./main-
|
|
1
|
+
import { a as stoppedBy } from "./exports-CuD-Mxkw.mjs";
|
|
2
|
+
import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure, n as commandWord, o as exitCode, r as main, s as failureDocument, t as Failed } from "./main-B016auoG.mjs";
|
|
3
3
|
//#region src/cli/embedded.ts
|
|
4
4
|
/**
|
|
5
5
|
* Board's CLI as `appName` names it in help, usage, and errors (`vercel board`). With no board
|
|
@@ -14,9 +14,14 @@ import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure,
|
|
|
14
14
|
* (`--scope` still wins): board asks for each only when a request needs it, so help, a typo, or
|
|
15
15
|
* misuse never refreshes a login or looks a team up. With `fetch`, board's requests to Vercel's API
|
|
16
16
|
* with that login go through the app's own, which adds its credentials (a DPoP proof, say).
|
|
17
|
+
*
|
|
18
|
+
* `token` is a Vercel token someone passed the app for this run, as `vercel board --token` takes
|
|
19
|
+
* one: the login to use, in place of `login` and ahead of everything the environment holds, a
|
|
20
|
+
* deployment's own token and `BOARD_TOKEN` included. A variable never goes ahead of those. Board
|
|
21
|
+
* sends it itself, as a Bearer token, never through `fetch`, which would add the app's own login's.
|
|
17
22
|
*/
|
|
18
23
|
function createApp(options) {
|
|
19
|
-
const { appName, onError, onWarning, login, team, fetch } = options;
|
|
24
|
+
const { appName, onError, onWarning, login, token, team, fetch } = options;
|
|
20
25
|
return { run: (args) => main(args, {
|
|
21
26
|
name: appName,
|
|
22
27
|
commands: {},
|
|
@@ -24,6 +29,7 @@ function createApp(options) {
|
|
|
24
29
|
...onError ? { onError } : {},
|
|
25
30
|
...onWarning ? { onWarning } : {},
|
|
26
31
|
...login ? { login } : {},
|
|
32
|
+
...token ? { token } : {},
|
|
27
33
|
...team ? { team } : {},
|
|
28
34
|
...fetch ? { fetch } : {}
|
|
29
35
|
}) };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as option } from "./commands-nN8WpvCe.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { r as main } from "./main-
|
|
5
|
-
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-
|
|
3
|
+
import { g as projectDir } from "./server-ViWNvg5q.mjs";
|
|
4
|
+
import { r as main } from "./main-B016auoG.mjs";
|
|
5
|
+
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-CZeoSm7E.mjs";
|
|
6
6
|
import { appendFile, readFile } from "node:fs/promises";
|
|
7
7
|
import { join } from "node:path";
|
|
8
8
|
//#region src/cli/local.ts
|
|
@@ -37,7 +37,7 @@ const local = {
|
|
|
37
37
|
},
|
|
38
38
|
async run(args, context) {
|
|
39
39
|
if (args.length > 0) throw context.usage("inspect takes no arguments: pass its port with --port.");
|
|
40
|
-
return (await import("./inspect-
|
|
40
|
+
return (await import("./inspect-UCcPViyA.mjs")).inspect(context);
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
serve: {
|
|
@@ -81,7 +81,7 @@ const local = {
|
|
|
81
81
|
}, "tailscale");
|
|
82
82
|
if (tailscale.length > 0 && hosts.length > 0) throw usage("--tailscale takes Tailscale's word for who's calling, which another proxy in front could forge: it doesn't go with --allow-host.");
|
|
83
83
|
const root = projectDir();
|
|
84
|
-
const { serveLocal } = await import("./serve-
|
|
84
|
+
const { serveLocal } = await import("./serve-B10e7QaY.mjs");
|
|
85
85
|
const local = await serveLocal({
|
|
86
86
|
dir: flags.dir ?? join(root, ".board"),
|
|
87
87
|
hosts,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./routes-
|
|
2
|
-
import { f as BoardError } from "./errors-
|
|
1
|
+
import "./routes-BE0y6wCk.mjs";
|
|
2
|
+
import { f as BoardError } from "./errors-DYF4hhIc.mjs";
|
|
3
3
|
import { c as canonical, t as block } from "./blocks-CVoBC7ur.mjs";
|
|
4
|
-
import { a as canText, c as compileAccess } from "./access-
|
|
4
|
+
import { a as canText, c as compileAccess } from "./access-BbgmsAFF.mjs";
|
|
5
5
|
//#region src/conformance/index.ts
|
|
6
6
|
var Mismatch = class extends Error {};
|
|
7
7
|
const show = (value) => JSON.stringify(value) ?? String(value);
|
package/dist/conformance.d.mts
CHANGED
package/dist/conformance.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as conformance } from "./conformance-
|
|
1
|
+
import { t as conformance } from "./conformance-Cr-umDl0.mjs";
|
|
2
2
|
export { conformance };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as fileSize, i as ATTACHMENT_BYTES_MAX, o as IMPORT_BYTES_MAX, u as typeOf } from "./profile-header-Cj0Cb1cf.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { l as isThreadTarget, s as channelOf } from "./external-
|
|
2
|
+
import { P as toStorable, m as MESSAGE_TEXT_MAX, s as ChannelPath } from "./schemas-CUSTEFIy.mjs";
|
|
3
|
+
import { l as isThreadTarget, s as channelOf } from "./external-D2jq_DEQ.mjs";
|
|
4
4
|
import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
|
|
5
|
-
import { c as notFound, r as badRequest, t as HttpError } from "./errors-
|
|
6
|
-
import { a as waitUntil, c as platformProfile, f as viaText, i as afterRetry, l as shownName, m as derivedId, o as actorParts, t as DroppedError } from "./middleware-
|
|
5
|
+
import { c as notFound, r as badRequest, t as HttpError } from "./errors-DYF4hhIc.mjs";
|
|
6
|
+
import { a as waitUntil, c as platformProfile, f as viaText, i as afterRetry, l as shownName, m as derivedId, o as actorParts, t as DroppedError } from "./middleware-DUKIITFZ.mjs";
|
|
7
7
|
import { a as replaceMentions, n as isEmail, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
|
|
8
|
-
import { a as immutable, d as opensBlock, f as routesFor, l as UnreadableError, n as SyncOverrides, o as ReceivedEvent, s as ResolvedTarget, u as channelMissing } from "./events-
|
|
8
|
+
import { a as immutable, d as opensBlock, f as routesFor, l as UnreadableError, n as SyncOverrides, o as ReceivedEvent, s as ResolvedTarget, u as channelMissing } from "./events-BdOCmnZh.mjs";
|
|
9
9
|
import { i as vercelDeployments, n as displayText, t as byVercelBot } from "./bots-CqPYxkqK.mjs";
|
|
10
10
|
//#region src/sync/engine.ts
|
|
11
11
|
/** `files`: a message with files may have no text. */
|
|
@@ -1232,7 +1232,7 @@ function createSyncEngine(entries) {
|
|
|
1232
1232
|
const synced = await syncOf(thread);
|
|
1233
1233
|
if (!synced?.targets.includes(target)) return;
|
|
1234
1234
|
const [root, ...replies] = await threadOf(synced.root);
|
|
1235
|
-
if (!root || root.id !== synced.root || root.deleted) return;
|
|
1235
|
+
if (!root || root.id !== synced.root || root.deleted || root.noSync) return;
|
|
1236
1236
|
const failures = [];
|
|
1237
1237
|
try {
|
|
1238
1238
|
await offer(keyOf(target), event, root, target, (renderer) => backfill(synced, root, replies, target, failures, renderer));
|
|
@@ -1324,7 +1324,9 @@ function createSyncEngine(entries) {
|
|
|
1324
1324
|
if (event.payload.noSync) return;
|
|
1325
1325
|
const synced = await syncOf(event.payload.thread);
|
|
1326
1326
|
if (!synced || synced.targets.length === 0) return;
|
|
1327
|
-
const
|
|
1327
|
+
const thread = await threadOf(synced.root);
|
|
1328
|
+
if (thread[0]?.id !== synced.root || thread[0].noSync) return;
|
|
1329
|
+
const message = thread.find((found) => found.id === event.message.id);
|
|
1328
1330
|
if (!message || message.deleted) return;
|
|
1329
1331
|
const actors = await actorsNow();
|
|
1330
1332
|
const failures = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as DIRECT_UPLOAD_BYTES_MAX, i as ATTACHMENT_BYTES_MAX, n as formatProfileHeader, u as typeOf } from "./profile-header-Cj0Cb1cf.mjs";
|
|
2
|
-
import { m as MESSAGE_TEXT_MAX } from "./schemas-
|
|
2
|
+
import { m as MESSAGE_TEXT_MAX } from "./schemas-CUSTEFIy.mjs";
|
|
3
3
|
import { r as normalizeEmoji } from "./emoji-CTLpvH-A.mjs";
|
|
4
4
|
import { ZodError } from "zod";
|
|
5
5
|
//#region src/client/sse.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ExternalEvent, r as ExternalLocation } from "./external-
|
|
1
|
+
import { _ as NewLabels, d as LabelKey } from "./schemas-CUSTEFIy.mjs";
|
|
2
|
+
import { n as ExternalEvent, r as ExternalLocation } from "./external-D2jq_DEQ.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/sync/fn.ts
|
|
5
5
|
const ROUTES = Symbol.for("board.syncRoutes");
|
|
@@ -298,7 +298,7 @@ function eventSchema(platform, messageType) {
|
|
|
298
298
|
const SyncOverrides = z.object({
|
|
299
299
|
root: z.custom((value) => typeof value === "function").optional(),
|
|
300
300
|
text: z.string().optional(),
|
|
301
|
-
labels:
|
|
301
|
+
labels: NewLabels.optional(),
|
|
302
302
|
unset: z.array(LabelKey).optional(),
|
|
303
303
|
noSync: z.boolean().optional()
|
|
304
304
|
}).strict();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { i as ATTACHMENT_BYTES_MAX, l as mediaType, n as formatProfileHeader, o as IMPORT_BYTES_MAX, s as fileName } from "./profile-header-Cj0Cb1cf.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { A as Ref, B as SyncBody, C as InboxQuery, D as MessagesQuery, E as MatchesQuery, F as ScheduleBody, G as TaskNeedsBody, H as SyncFindQuery, I as SchedulesQuery, J as TypingBody, K as TasksQuery, L as SchemaBody, M as ReleaseTaskBody, N as RenewTaskBody, O as PostBody, P as RevokeGrantBody, R as SourceJoinBody, S as InboxPushBody, T as LinkedQuery, U as SyncImportBody, V as SyncCopiesQuery, W as SyncReceiptBody, X as UploadStartBody, Y as UpdateGrantBody, Z as routes, _ as FailTaskBody, a as ClaimReadyTaskBody, b as InboxAckBody, c as CreateChannelBody, d as CreateTasksBody, f as CreatedTasksQuery, g as ExplainQuery, h as EventsQuery, i as CancelTaskBody, j as RegisterBody, k as ReactBody, l as CreateGrantsBody, m as EditBody, n as AssignTaskBody, o as ClaimTaskBody, p as DeleteBody, q as ThreadsQuery, r as BlockTaskBody, s as CompleteTaskBody, t as AckBody, u as CreateTaskBody, w as LabelBody, x as InboxNextQuery, y as GrantBody, z as SourceReadQuery } from "./routes-
|
|
4
|
-
import { 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 } from "./errors-
|
|
5
|
-
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-
|
|
2
|
+
import { T as TASK_LABEL, b as RemoteWatcherId, y as RESERVED_LABEL_PREFIX } from "./schemas-CUSTEFIy.mjs";
|
|
3
|
+
import { A as Ref, B as SyncBody, C as InboxQuery, D as MessagesQuery, E as MatchesQuery, F as ScheduleBody, G as TaskNeedsBody, H as SyncFindQuery, I as SchedulesQuery, J as TypingBody, K as TasksQuery, L as SchemaBody, M as ReleaseTaskBody, N as RenewTaskBody, O as PostBody, P as RevokeGrantBody, R as SourceJoinBody, S as InboxPushBody, T as LinkedQuery, U as SyncImportBody, V as SyncCopiesQuery, W as SyncReceiptBody, X as UploadStartBody, Y as UpdateGrantBody, Z as routes, _ as FailTaskBody, a as ClaimReadyTaskBody, b as InboxAckBody, c as CreateChannelBody, d as CreateTasksBody, f as CreatedTasksQuery, g as ExplainQuery, h as EventsQuery, i as CancelTaskBody, j as RegisterBody, k as ReactBody, l as CreateGrantsBody, m as EditBody, n as AssignTaskBody, o as ClaimTaskBody, p as DeleteBody, q as ThreadsQuery, r as BlockTaskBody, s as CompleteTaskBody, t as AckBody, u as CreateTaskBody, w as LabelBody, x as InboxNextQuery, y as GrantBody, z as SourceReadQuery } from "./routes-BE0y6wCk.mjs";
|
|
4
|
+
import { 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 } from "./errors-DYF4hhIc.mjs";
|
|
5
|
+
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-DUKIITFZ.mjs";
|
|
6
6
|
import { n as blocksIn, r as findBlocks } from "./blocks-CVoBC7ur.mjs";
|
|
7
7
|
import { a as replaceMentions, i as mentionTerms, o as settleMentions, r as mentionTerm, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
|
|
8
|
-
import { t as VERSION } from "./version-
|
|
9
|
-
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-
|
|
10
|
-
import { a as runMatch, d as openapi, f as queryObject, 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-
|
|
11
|
-
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-
|
|
12
|
-
import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-
|
|
8
|
+
import { t as VERSION } from "./version-C70RLVEK.mjs";
|
|
9
|
+
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-BbgmsAFF.mjs";
|
|
10
|
+
import { a as runMatch, d as openapi, f as queryObject, 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-9lVDG3d-.mjs";
|
|
11
|
+
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-DJDTfgAL.mjs";
|
|
12
|
+
import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-CX2D22hL.mjs";
|
|
13
13
|
import { t as checkValue } from "./data-values-CoTP0SQG.mjs";
|
|
14
14
|
//#region src/server/registrant.ts
|
|
15
15
|
/** Registering again this soon after the same registration only repeats it. */
|
|
@@ -311,6 +311,8 @@ const sleep = (ms, signal) => new Promise((resolve) => {
|
|
|
311
311
|
});
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/server/sandbox.ts
|
|
314
|
+
/** What `vb` in a sandbox sends as its credential, for the policy's proxy to replace. */
|
|
315
|
+
const SANDBOX_TOKEN = "set-by-the-network-policy";
|
|
314
316
|
/** Outside Node there's no deployment credential to find: a sandbox's policy needs the one it's given. */
|
|
315
317
|
const withoutToken = (url) => {
|
|
316
318
|
throw new HttpError(400, "no_token", `There's no credential here to hand a sandbox for ${url}: pass one, sandboxPolicy({ token }).`, { origin: "handle" });
|
|
@@ -384,6 +386,7 @@ const refused = (why) => ({ response: {
|
|
|
384
386
|
* The policy that hands the board `reach` names to a sandbox: its host, and on it only the board's
|
|
385
387
|
* own routes, under its URL's path and with its query (`teamId`), each request carrying `reach`'s
|
|
386
388
|
* headers. Anything else on the host is refused there; any other host, the sandbox doesn't reach.
|
|
389
|
+
* Its `env` points `vb` in the sandbox at the board.
|
|
387
390
|
*/
|
|
388
391
|
function boardPolicy(reach) {
|
|
389
392
|
const url = new URL(reach.url);
|
|
@@ -397,34 +400,40 @@ function boardPolicy(reach) {
|
|
|
397
400
|
queryString: query
|
|
398
401
|
} : match;
|
|
399
402
|
const transform = [{ headers: { ...reach.headers } }];
|
|
400
|
-
return {
|
|
401
|
-
{
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
403
|
+
return {
|
|
404
|
+
allow: { [url.host]: [
|
|
405
|
+
{
|
|
406
|
+
match: { path: { regex: "(?:^|/)\\.\\.?(?:/|$)|%2[eEfF]|%5[cC]|\\\\" } },
|
|
407
|
+
...refused("not a board route")
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
match: { queryString: [{ key: { regex: `^${caseless("x-vercel-set-bypass-cookie")}$` } }] },
|
|
411
|
+
...refused("not a board route")
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
match: { headers: [{ key: { exact: "x-vercel-set-bypass-cookie" } }] },
|
|
415
|
+
...refused("not a board route")
|
|
416
|
+
},
|
|
417
|
+
...routeRules(prefix, reach.routes, scoped, transform),
|
|
418
|
+
...(reach.under ?? []).flatMap(({ path, routes }) => routeRules(escaped(path.replace(/\/+$/, "")), routes, scoped, transform)),
|
|
419
|
+
...(reach.reads ?? []).map((path) => ({
|
|
420
|
+
match: scoped({
|
|
421
|
+
path: { exact: path },
|
|
422
|
+
method: ["GET"]
|
|
423
|
+
}),
|
|
424
|
+
transform
|
|
425
|
+
})),
|
|
426
|
+
{
|
|
427
|
+
match: { path: { regex: `^${prefix}/(?:${WITHHELD.map(caseless).join("|")})(?:/|$)` } },
|
|
428
|
+
...refused("not a route this sandbox's policy hands it")
|
|
429
|
+
},
|
|
430
|
+
refused("not this board's")
|
|
431
|
+
] },
|
|
432
|
+
env: {
|
|
433
|
+
BOARD_URL: reach.url,
|
|
434
|
+
BOARD_TOKEN: SANDBOX_TOKEN
|
|
435
|
+
}
|
|
436
|
+
};
|
|
428
437
|
}
|
|
429
438
|
//#endregion
|
|
430
439
|
//#region src/server/backend-vercel.ts
|
|
@@ -5117,8 +5126,9 @@ async function createServe(context) {
|
|
|
5117
5126
|
/**
|
|
5118
5127
|
* Settles the `@handle`s of a caller's texts: a mention is `@[actor-id]`, so a handle that names
|
|
5119
5128
|
* exactly one of the actors the caller can see is written as that, and one that names none or
|
|
5120
|
-
* several stays as typed, a mention of no one. Of several,
|
|
5121
|
-
*
|
|
5129
|
+
* several stays as typed, a mention of no one. Of several, one on the board wins over platform
|
|
5130
|
+
* users (a synced user's handle is their display name, theirs to set), and else it's the one who
|
|
5131
|
+
* wrote in `thread`, if exactly one did. The actors are read once, for the first text that has a handle. A board behind
|
|
5122
5132
|
* this one settles them itself, and a schedule's send goes as it was settled when it was made: a
|
|
5123
5133
|
* handle that mentioned no one then mentions no one later. An ID is longer than a handle, so where
|
|
5124
5134
|
* settling would take a text past what a message holds, it stays as typed, each handle's actor a
|
|
@@ -5126,11 +5136,15 @@ async function createServe(context) {
|
|
|
5126
5136
|
*/
|
|
5127
5137
|
function settler(caller, signal) {
|
|
5128
5138
|
let listed = null;
|
|
5129
|
-
const
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5139
|
+
const external = /* @__PURE__ */ new Set();
|
|
5140
|
+
const actors = () => listed ??= backend.actors(caller, {}, signal).then((answer) => answer.actors.map(({ id, handle, name, kind }) => {
|
|
5141
|
+
if (kind === "external") external.add(id);
|
|
5142
|
+
return {
|
|
5143
|
+
id,
|
|
5144
|
+
handle,
|
|
5145
|
+
name
|
|
5146
|
+
};
|
|
5147
|
+
}), (error) => {
|
|
5134
5148
|
if (error instanceof HttpError && (error.status === 403 || error.status === 404)) return [];
|
|
5135
5149
|
throw error;
|
|
5136
5150
|
});
|
|
@@ -5154,7 +5168,10 @@ async function createServe(context) {
|
|
|
5154
5168
|
if (!(error instanceof HttpError && error.status === 404)) throw error;
|
|
5155
5169
|
}
|
|
5156
5170
|
return fitting(settleMentions(text, await actors(), (candidates) => {
|
|
5157
|
-
const
|
|
5171
|
+
const board = candidates.filter((actor) => !external.has(actor.id));
|
|
5172
|
+
const among = board.length > 0 ? board : candidates;
|
|
5173
|
+
if (among.length === 1) return among[0];
|
|
5174
|
+
const wrote = among.filter((actor) => writers.has(actor.id));
|
|
5158
5175
|
return wrote.length === 1 ? wrote[0] : null;
|
|
5159
5176
|
}));
|
|
5160
5177
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as MessageView } from "./routes-B6SEA9yw.mjs";
|
|
2
2
|
import "./auth-Z9-Khvvw.mjs";
|
|
3
|
-
import "./backend-
|
|
3
|
+
import "./backend-CcaaS9Xl.mjs";
|
|
4
4
|
import { g as TaskInBatch, n as BoardError } from "./client-C2T4eaXd.mjs";
|
|
5
5
|
//#region src/client/chunks.d.ts
|
|
6
6
|
/** What `createTasksInChunks` makes tasks with: a handle, or anything with its `tasks.createMany`. */
|
|
@@ -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-CcaaS9Xl.mjs";
|
|
2
|
+
import "./exports-lmr6UHHc.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
1
|
import { $ as MessageView, $t as TasksQueryInput, A as FailTaskBody, At as SourceJoinBody, B as InboxEntry, Bt as SyncImportBody, C as Discovery, Ct as SchedulesQuery, D as EventsQueryInput, Dt as SchemaInput, E as EventsQuery, Et as SchemaBody, F as GrantInput, Ft as SyncCopiesQuery, G as LABEL_CONDITIONS_MAX, Gt as SyncedView, H as InboxNextQuery, Ht as SyncReceiptBody, I as GrantView, It as SyncCopiesView, J as LinkView, Jt as TaskClaim, K as LEASE_DEFAULT_S, Kt as THREADS_LIMIT_DEFAULT, L as GrantWriteOptions, Lt as SyncFindInput, M as GRANT_BATCH_MAX, Mn as Attachment, Mt as SourceRead, N as GrantBody, Nt as SourceReadQuery, O as ExplainQuery, Ot as SchemaView, P as GrantCan, Pt as SyncBody, Q as Me, Qt as TasksQuery, R as INBOX_EVENT_ID_MAX, Rt as SyncFindQuery, S as DeleteBody, St as ScheduleView, T as EventsPage, Tt as SchedulesQueryOutput, U as InboxPushBody, Ut as SyncReceiptInput, V as InboxItem, Vt as SyncImportInput, W as InboxQuery, Wt as SyncThreadView, X as MatchView, Xt as TaskView, Y as LinkedQuery, Yt as TaskNeedsBody, Z as MatchesQuery, Zt as TasksPage, _ as CreateTaskBody, _t as RevokeGrantBody, a as BlockTaskBody, an as TypingBody, at as PostInput, b as CreateTasksInput, bt as ScheduleBodyOutput, c as CanAt, cn as UpdateGrantInput, ct as REGISTERED_WATCHERS_MAX, d as ClaimReadyTaskBody, dn as routes, dt as RegisterBody, en as ThreadSummaryView, et as MessagesPage, f as ClaimReadyTaskInput, ft as RegisterInput, g as CreateGrantsBody, gt as ResolvedSyncTarget, h as CreateChannelBody, ht as RenewTaskBody, i as AssignTaskBody, in as ThreadsQueryInput, it as PostBody, j as FiltersInput, jt as SourceMessage, k as Explanation, kt as SourceJoin, l as CancelTaskBody, ln as UploadStartBody, lt as ReactBody, m as CompleteTaskBody, mt as ReleaseTaskBody, n as ActorView, nn as ThreadsPage, nt as MessagesQueryInput, o as BlockView, on as TypingResult, ot as PrincipalInput, p as ClaimTaskBody, pt as RegistrationView, q as LabelBody, qt as THREADS_LIMIT_MAX, r as ApiError, rn as ThreadsQuery, rt as ParsedFilters, s as BoardEventView, sn as UpdateGrantBody, st as PrincipalView, t as AckBody, tn as ThreadView, tt as MessagesQuery, u as ChannelView, un as UploadTicket, ut as Ref, v as CreateTaskInput, vt as RouteName, w as EditBody, wt as SchedulesQueryInput, x as CreatedTasksQuery, xt as ScheduleInput, y as CreateTasksBody, yt as ScheduleBody, z as InboxAckBody, zt as SyncFindView } from "./routes-B6SEA9yw.mjs";
|
|
2
2
|
import { i as Claims, r as CallerRequest } from "./auth-Z9-Khvvw.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-
|
|
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-CcaaS9Xl.mjs";
|
|
4
4
|
import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-C2T4eaXd.mjs";
|
|
5
|
-
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-
|
|
5
|
+
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-lmr6UHHc.mjs";
|
|
6
6
|
import { n as block } from "./blocks-DGvh2alZ.mjs";
|
|
7
7
|
//#region src/server/index.default.d.ts
|
|
8
8
|
/**
|
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-DYF4hhIc.mjs";
|
|
2
|
+
import { t as DroppedError } from "./middleware-DUKIITFZ.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-CuD-Mxkw.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-DJZ8Xy_g.mjs"),
|
|
28
28
|
serving: null,
|
|
29
29
|
sandbox: null
|
|
30
30
|
});
|
package/dist/index.node.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $ as MessageView, $t as TasksQueryInput, A as FailTaskBody, At as SourceJoinBody, B as InboxEntry, Bt as SyncImportBody, C as Discovery, Ct as SchedulesQuery, D as EventsQueryInput, Dt as SchemaInput, E as EventsQuery, Et as SchemaBody, F as GrantInput, Ft as SyncCopiesQuery, G as LABEL_CONDITIONS_MAX, Gt as SyncedView, H as InboxNextQuery, Ht as SyncReceiptBody, I as GrantView, It as SyncCopiesView, J as LinkView, Jt as TaskClaim, K as LEASE_DEFAULT_S, Kt as THREADS_LIMIT_DEFAULT, L as GrantWriteOptions, Lt as SyncFindInput, M as GRANT_BATCH_MAX, Mn as Attachment, Mt as SourceRead, N as GrantBody, Nt as SourceReadQuery, O as ExplainQuery, Ot as SchemaView, P as GrantCan, Pt as SyncBody, Q as Me, Qt as TasksQuery, R as INBOX_EVENT_ID_MAX, Rt as SyncFindQuery, S as DeleteBody, St as ScheduleView, T as EventsPage, Tt as SchedulesQueryOutput, U as InboxPushBody, Ut as SyncReceiptInput, V as InboxItem, Vt as SyncImportInput, W as InboxQuery, Wt as SyncThreadView, X as MatchView, Xt as TaskView, Y as LinkedQuery, Yt as TaskNeedsBody, Z as MatchesQuery, Zt as TasksPage, _ as CreateTaskBody, _t as RevokeGrantBody, a as BlockTaskBody, an as TypingBody, at as PostInput, b as CreateTasksInput, bt as ScheduleBodyOutput, c as CanAt, cn as UpdateGrantInput, ct as REGISTERED_WATCHERS_MAX, d as ClaimReadyTaskBody, dn as routes, dt as RegisterBody, en as ThreadSummaryView, et as MessagesPage, f as ClaimReadyTaskInput, ft as RegisterInput, g as CreateGrantsBody, gt as ResolvedSyncTarget, h as CreateChannelBody, ht as RenewTaskBody, i as AssignTaskBody, in as ThreadsQueryInput, it as PostBody, j as FiltersInput, jt as SourceMessage, k as Explanation, kt as SourceJoin, l as CancelTaskBody, ln as UploadStartBody, lt as ReactBody, m as CompleteTaskBody, mt as ReleaseTaskBody, n as ActorView, nn as ThreadsPage, nt as MessagesQueryInput, o as BlockView, on as TypingResult, ot as PrincipalInput, p as ClaimTaskBody, pt as RegistrationView, q as LabelBody, qt as THREADS_LIMIT_MAX, r as ApiError, rn as ThreadsQuery, rt as ParsedFilters, s as BoardEventView, sn as UpdateGrantBody, st as PrincipalView, t as AckBody, tn as ThreadView, tt as MessagesQuery, u as ChannelView, un as UploadTicket, ut as Ref, v as CreateTaskInput, vt as RouteName, w as EditBody, wt as SchedulesQueryInput, x as CreatedTasksQuery, xt as ScheduleInput, y as CreateTasksBody, yt as ScheduleBody, z as InboxAckBody, zt as SyncFindView } from "./routes-B6SEA9yw.mjs";
|
|
2
2
|
import { i as Claims, r as CallerRequest } from "./auth-Z9-Khvvw.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-
|
|
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-CcaaS9Xl.mjs";
|
|
4
4
|
import { C as MentionedActor, S as Mentioned, _ as TaskOptions, a as EventsOptions, b as Written, c as Filters, d as PostOptions, f as ProfileOption, g as TaskInBatch, h as ScheduleTiming, l as HeldTask, m as ScheduleOptions, n as BoardError, o as EventsState, p as ReplyOptions, r as ClaimedTask, s as ExplainPrincipal, u as NewTaskOptions, v as UploadInput, x as duration, y as WaitOptions } from "./client-C2T4eaXd.mjs";
|
|
5
|
-
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-
|
|
5
|
+
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-lmr6UHHc.mjs";
|
|
6
6
|
import { n as block } from "./blocks-DGvh2alZ.mjs";
|
|
7
|
-
import { t as board } from "./index-
|
|
7
|
+
import { t as board } from "./index-_KxJu15n.mjs";
|
|
8
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 CreateGrantsBody, 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 GRANT_BATCH_MAX, type GrantBody, type GrantCan, type GrantInput, type GrantView, type GrantWriteOptions, 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 RevokeGrantBody, 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 THREADS_LIMIT_DEFAULT, type THREADS_LIMIT_MAX, 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-DYF4hhIc.mjs";
|
|
2
|
+
import { t as DroppedError } from "./middleware-DUKIITFZ.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-CuD-Mxkw.mjs";
|
|
5
|
+
import { t as board } from "./server-ViWNvg5q.mjs";
|
|
6
6
|
export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration };
|