@vercel/board 0.47.0 → 0.48.1
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/{backend-i_esjwUS.d.mts → backend-UBP6HimX.d.mts} +1 -1
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{bots-CLKKMgYf.mjs → bots-CqPYxkqK.mjs} +15 -8
- package/dist/{chat-provider-BWBGZOZY.d.mts → chat-provider-iN0DFsSE.d.mts} +4 -1
- package/dist/{chat-provider-CD7jskh7.mjs → chat-provider-kNWd6MQC.mjs} +4 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +5 -5
- package/dist/conformance.d.mts +1 -1
- package/dist/{engine-j2VeNuKG.mjs → engine-BQ0hJw2w.mjs} +36 -9
- package/dist/{events-MOcxGpOQ.mjs → events-B-qyxNsJ.mjs} +8 -0
- package/dist/{exports-CEqS-IPP.mjs → exports-BzSG0_wL.mjs} +1 -1
- package/dist/{exports-CF9rKCXd.d.mts → exports-inhbjAWi.d.mts} +2 -2
- package/dist/{index-ttfx1TZ6.d.mts → index-B0Fnhvk7.d.mts} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/index.node.d.mts +4 -4
- package/dist/index.node.mjs +2 -2
- package/dist/inspect/app.js +1 -1
- package/dist/inspect/engine.js +3 -3
- package/dist/inspect-BB-XUPuz.mjs +2 -0
- package/dist/{inspect-vOSrW_g6.mjs → inspect-n9brh-TT.mjs} +8 -1
- package/dist/{local-0ajWOVhN.mjs → local-BdKxz-Dn.mjs} +1 -1
- package/dist/{main-B8Zkd4Pm.mjs → main-BgiViRZ8.mjs} +6 -6
- package/dist/{provider-Bc3xI90K.d.mts → provider-DC3WHUXo.d.mts} +6 -0
- package/dist/{serve-BepKXDH3.mjs → serve-C2Jbr7pR.mjs} +2 -2
- package/dist/{server-4rQL3xuH.mjs → server-EOQC5Gtq.mjs} +3 -3
- 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 +2 -2
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +2 -2
- package/dist/sync-slack.mjs +27 -5
- package/dist/sync.d.mts +1 -1
- package/dist/sync.mjs +1 -1
- package/dist/{task-batch-BZXm6kOE.mjs → task-batch-D4p9N8lN.mjs} +1 -1
- package/docs/01-board/03-identity.md +4 -2
- package/docs/02-sync/03-slack.md +5 -0
- package/docs/02-sync/06-providers.md +1 -0
- package/package.json +1 -1
- package/dist/inspect-8YAhl_h3.mjs +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $t as TypingBody, B as InboxPushBody, Bt as SyncThreadView, C as EditBody, D as ExplainQuery, Dn as Author, En as Attachment, Et as SourceJoinBody, Ft as SyncFindView, Gt as TasksPage, Ht as TaskClaim, I as InboxAckBody, It as SyncImportBody, J as MatchesQuery, K as LinkedQuery, Kt as TasksQuery, L as InboxEntry, Mt as SyncCopiesView, O as Explanation, Ot as SourceRead, P as GrantView, Pt as SyncFindQuery, Q as MessagesQuery, R as InboxItem, Rt as SyncReceiptBody, S as Discovery, St as SchemaBody, T as EventsQuery, Tt as SourceJoin, Ut as TaskNeedsBody, V as InboxQuery, Vt as SyncedView, W as LabelBody, X as MessageView, Xt as ThreadsPage, Y as Me, Yt as ThreadView, Z as MessagesPage, Zt as ThreadsQuery, a as BlockTaskBody, b as CreatedTasksQuery, cn as Can, ct as RegisterBody, d as ClaimReadyTaskBody, dt as ReleaseTaskBody, ft as RenewTaskBody, g as CreateTaskBody, gn as Level, h as CreateChannelBody, ht as ScheduleBody, i as AssignTaskBody, in as UploadTicket, j as GrantBody, jn as ExternalEvent, jt as SyncCopiesQuery, k as FailTaskBody, kn as Labels, kt as SourceReadQuery, l as CancelTaskBody, m as CompleteTaskBody, n as ActorView, on as Access, ot as ReactBody, p as ClaimTaskBody, q as MatchView, rn as UploadStartBody, s as BoardEventView, t as AckBody, tn as UpdateGrantBody, tt as PostBody, u as ChannelView, ut as RegistrationView, v as CreateTasksBody, vn as Permission, vt as ScheduleView, w as EventsPage, wn as Actor, wt as SchemaView, x as DeleteBody, yt as SchedulesQuery, z as InboxNextQuery } from "./routes-CjA6Mp4D.mjs";
|
|
2
2
|
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-li3lKwJG.mjs";
|
|
3
|
-
import { G as ProfileOption, L as ErrorOrigin, P as BoardClient, m as SyncProvider, tt as Mentioned } from "./provider-
|
|
3
|
+
import { G as ProfileOption, L as ErrorOrigin, P as BoardClient, m as SyncProvider, tt as Mentioned } from "./provider-DC3WHUXo.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/server/sandbox.d.ts
|
|
6
6
|
/** How a rule matches a value: a regular expression (RE2), or the value exactly. */
|
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-BdKxz-Dn.mjs";
|
|
2
2
|
export { local };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
//#region src/contract/bots.ts
|
|
2
|
-
/** Vercel for GitHub's bot account (`vercel[bot]`), as the board names it. */
|
|
3
|
-
const VERCEL_BOT = "github:user:35613825";
|
|
4
1
|
const VERCEL_MARKER = /^\[vc\]: #\S*\r?\n/;
|
|
5
2
|
const LINK = /\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)/g;
|
|
6
3
|
const STATUS = /!\[([^\]]+)\]\(https:\/\/vercel\.com\/static\/status\/[^)]+\)\s*(?:\[[^\]]*\]\((https?:\/\/[^)\s]+)\))?/;
|
|
@@ -60,13 +57,23 @@ function formatVercelDeployments(deployments) {
|
|
|
60
57
|
}).join("\n");
|
|
61
58
|
}
|
|
62
59
|
/**
|
|
60
|
+
* Whether Vercel for GitHub's bot wrote it: the bot itself, where its platform ID is its actor, or,
|
|
61
|
+
* on a board where an import is by a profile of the syncing principal
|
|
62
|
+
* (`<principal>+github:user:35613825`), that principal's import of it from GitHub, which the board
|
|
63
|
+
* checked (`verified`). A profile that only carries the bot's name, or one that isn't an import, isn't.
|
|
64
|
+
*/
|
|
65
|
+
function byVercelBot(written, author) {
|
|
66
|
+
if (written.by.actor === "github:user:35613825") return true;
|
|
67
|
+
return written.by.profile === "github:user:35613825" && !!written.from && author?.kind === "external" && author.verified === true && author.platform === "github";
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
63
70
|
* A message's text as people should see it: known bot messages in their
|
|
64
|
-
* readable form, anything else as is. Only the bot itself gets that form
|
|
65
|
-
* no one can hide a message's text behind a look-alike table.
|
|
71
|
+
* readable form, anything else as is. Only the bot itself gets that form
|
|
72
|
+
* (`byVercelBot`), so no one can hide a message's text behind a look-alike table.
|
|
66
73
|
*/
|
|
67
|
-
function displayText(text,
|
|
68
|
-
const deployments =
|
|
74
|
+
function displayText(text, bot) {
|
|
75
|
+
const deployments = bot ? vercelDeployments(text) : null;
|
|
69
76
|
return deployments ? `**▲ Vercel**\n${formatVercelDeployments(deployments)}` : text;
|
|
70
77
|
}
|
|
71
78
|
//#endregion
|
|
72
|
-
export { vercelDeployments as i, displayText as n, formatVercelDeployments as r,
|
|
79
|
+
export { vercelDeployments as i, displayText as n, formatVercelDeployments as r, byVercelBot as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { An as ExternalAuthor, Mn as ExternalFile, Nn as ExternalLink, Ot as SourceRead, Tt as SourceJoin, wn as Actor } from "./routes-CjA6Mp4D.mjs";
|
|
2
|
-
import { A as SyncRoot, E as ProviderEvent, _ as SyncFn, a as ProviderOptions, c as Receive, f as ResolvedTarget, i as ProviderFile, l as ReceivedEvent, m as SyncProvider, n as FileDelivery, o as ProviderPost, r as ProviderDelivery, t as FetchedLink } from "./provider-
|
|
2
|
+
import { A as SyncRoot, E as ProviderEvent, _ as SyncFn, a as ProviderOptions, c as Receive, f as ResolvedTarget, i as ProviderFile, l as ReceivedEvent, m as SyncProvider, n as FileDelivery, o as ProviderPost, r as ProviderDelivery, t as FetchedLink } from "./provider-DC3WHUXo.mjs";
|
|
3
3
|
import { Adapter, Author, FileUpload, Message, ReactionEvent, StateAdapter } from "chat";
|
|
4
4
|
//#region src/sync/chat-provider.d.ts
|
|
5
5
|
type ChatInput = {
|
|
@@ -23,6 +23,8 @@ type ChatTransport = Omit<ProviderOptions, 'uploadsFiles'> & {
|
|
|
23
23
|
state?: StateAdapter;
|
|
24
24
|
findByEmail?(email: string): Promise<ExternalAuthor | null>;
|
|
25
25
|
mention?(actor: Actor): string | null;
|
|
26
|
+
/** As `SyncProvider.mentionById`: a user's mention from their ID alone, where the platform takes one. */
|
|
27
|
+
mentionById?(id: string): string | null;
|
|
26
28
|
/** The platform's users a message's text mentions as `@[<their id>]`, which `markdown` wrote there. */
|
|
27
29
|
mentioned?(text: string): Promise<ExternalAuthor[]>;
|
|
28
30
|
author?(author: Author, raw: unknown): ExternalAuthor;
|
|
@@ -132,6 +134,7 @@ declare abstract class ChatSyncProvider<E extends ProviderEvent = ProviderEvent>
|
|
|
132
134
|
isBot: boolean;
|
|
133
135
|
} | null>;
|
|
134
136
|
mention(actor: Actor): string | null;
|
|
137
|
+
mentionById(id: string): string | null;
|
|
135
138
|
fetchRoot(thread: string): Promise<SyncRoot | null>;
|
|
136
139
|
fetchLink(link: ExternalLink, linker: {
|
|
137
140
|
thread: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./external-BuVTXT1R.mjs";
|
|
2
|
-
import { c as SyncProvider, s as ResolvedTarget } from "./events-
|
|
2
|
+
import { c as SyncProvider, s as ResolvedTarget } from "./events-B-qyxNsJ.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { Chat, stringifyMarkdown } from "chat";
|
|
@@ -363,6 +363,9 @@ var ChatSyncProvider = class extends SyncProvider {
|
|
|
363
363
|
mention(actor) {
|
|
364
364
|
return this.transport.mention?.(actor) ?? null;
|
|
365
365
|
}
|
|
366
|
+
mentionById(id) {
|
|
367
|
+
return this.transport.mentionById?.(id) ?? null;
|
|
368
|
+
}
|
|
366
369
|
async fetchRoot(thread) {
|
|
367
370
|
const root = await this.transport.fetchRoot?.(thread);
|
|
368
371
|
return root ? {
|
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-UBP6HimX.mjs";
|
|
2
|
+
import "./index-B0Fnhvk7.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
|
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-BzSG0_wL.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-BgiViRZ8.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
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as option } from "./commands-Dk6_cHLS.mjs";
|
|
3
|
-
import { m as projectDir } from "./server-
|
|
4
|
-
import { r as main } from "./main-
|
|
5
|
-
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-
|
|
3
|
+
import { m as projectDir } from "./server-EOQC5Gtq.mjs";
|
|
4
|
+
import { r as main } from "./main-BgiViRZ8.mjs";
|
|
5
|
+
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-n9brh-TT.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-BB-XUPuz.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-C2Jbr7pR.mjs");
|
|
85
85
|
const local = await serveLocal({
|
|
86
86
|
dir: flags.dir ?? join(root, ".board"),
|
|
87
87
|
hosts,
|
package/dist/conformance.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ import { l as isThreadTarget, s as channelOf } from "./external-BuVTXT1R.mjs";
|
|
|
4
4
|
import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
|
|
5
5
|
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-CT6vMNUc.mjs";
|
|
6
6
|
import { a as replaceMentions, n as isEmail, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
|
|
7
|
-
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 { i as vercelDeployments, n as displayText } from "./bots-
|
|
7
|
+
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-B-qyxNsJ.mjs";
|
|
8
|
+
import { i as vercelDeployments, n as displayText, t as byVercelBot } from "./bots-CqPYxkqK.mjs";
|
|
9
9
|
//#region src/sync/engine.ts
|
|
10
10
|
/** `files`: a message with files may have no text. */
|
|
11
11
|
const clampText = (raw, files = false) => {
|
|
@@ -88,9 +88,16 @@ function keyedId(key, platform, id) {
|
|
|
88
88
|
return `${key}:${id.startsWith(`${platform}:`) ? id.slice(platform.length + 1) : id}`;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
+
* A platform's text, each of its users it mentions by ID (`@[slack:user:U0456]`, as a provider
|
|
92
|
+
* writes one) named under `key`: a mention by the platform's name would be of another sync's user.
|
|
93
|
+
*/
|
|
94
|
+
function keyedText(key, platform, text) {
|
|
95
|
+
if (key === platform) return text;
|
|
96
|
+
return replaceMentions(text, (token) => token.kind === "actor" && token.actor.startsWith(`${platform}:`) ? `@[${keyedId(key, platform, token.actor)}]` : null);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
91
99
|
* A platform event with its author named under `key`, and every user its text mentions there too:
|
|
92
|
-
* the ones `mentioned` describes, and any it has no room for
|
|
93
|
-
* name would be of another sync's user.
|
|
100
|
+
* the ones `mentioned` describes, and any it has no room for.
|
|
94
101
|
*/
|
|
95
102
|
function keyedEvent(key, platform, event) {
|
|
96
103
|
if (!("author" in event)) return event;
|
|
@@ -109,7 +116,7 @@ function keyedEvent(key, platform, event) {
|
|
|
109
116
|
...user,
|
|
110
117
|
id: keyedId(key, platform, user.id)
|
|
111
118
|
})) } : {},
|
|
112
|
-
text:
|
|
119
|
+
text: keyedText(key, platform, event.text)
|
|
113
120
|
};
|
|
114
121
|
}
|
|
115
122
|
/**
|
|
@@ -950,10 +957,22 @@ function createSyncEngine(entries) {
|
|
|
950
957
|
if (token.kind === "handle") return null;
|
|
951
958
|
if (found.has(token.actor)) return found.get(token.actor) ?? token.actor;
|
|
952
959
|
const actor = actorNamed(token.actor, actors);
|
|
953
|
-
return actor ? nativeMention(key, actor.id, actors) ?? actor.name :
|
|
960
|
+
return actor ? nativeMention(key, actor.id, actors) ?? actor.name : unmetMention(key, token.actor, actors);
|
|
954
961
|
});
|
|
955
962
|
}
|
|
956
963
|
/**
|
|
964
|
+
* How entry `key`'s platform mentions one of its users the board has no actor for, by the ID
|
|
965
|
+
* they'd have (`@[slack:user:U0456]`, or this sync's `<principal>+slack:user:U0456`): where an ID
|
|
966
|
+
* is all the platform needs. Null for anyone else's user, and on a platform whose mention needs
|
|
967
|
+
* more, so the text goes as written.
|
|
968
|
+
*/
|
|
969
|
+
function unmetMention(key, id, actors) {
|
|
970
|
+
const user = userOf(key, id, actors);
|
|
971
|
+
if (user === null) return null;
|
|
972
|
+
const platform = platformOf(key);
|
|
973
|
+
return platform.mentionById(`${platform.platform}:${user}`);
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
957
976
|
* The actor an `@[actor-id]` names: that actor, or, when the board has none by that ID, this
|
|
958
977
|
* sync's own profile of it (`@[slack:user:U0456]` for `<principal>+slack:user:U0456`).
|
|
959
978
|
*/
|
|
@@ -991,10 +1010,11 @@ function createSyncEngine(entries) {
|
|
|
991
1010
|
const name = `${own}${after}`;
|
|
992
1011
|
const attribution = `${environment}${after}`;
|
|
993
1012
|
const platform = platformOf(key);
|
|
1013
|
+
const bot = byVercelBot(message, actor);
|
|
994
1014
|
const body = (renderer ?? ((input) => platform.render(input)))(immutable({
|
|
995
1015
|
message: {
|
|
996
1016
|
...structuredClone(message),
|
|
997
|
-
text: displayText(message.text,
|
|
1017
|
+
text: displayText(message.text, bot)
|
|
998
1018
|
},
|
|
999
1019
|
author: actor ? { ...actor } : null,
|
|
1000
1020
|
mentionOf: (id) => nativeMention(key, id, actors),
|
|
@@ -1004,7 +1024,7 @@ function createSyncEngine(entries) {
|
|
|
1004
1024
|
if (typeof body !== "string") throw badRequest("a provider renderer must return markdown");
|
|
1005
1025
|
const labeled = `**${name}**: `;
|
|
1006
1026
|
const markdown = await textFor(key, actors, body.startsWith(labeled) && opensBlock(body.slice(labeled.length)) ? `**${name}**:\n\n${body.slice(labeled.length)}` : body);
|
|
1007
|
-
const deployments =
|
|
1027
|
+
const deployments = bot ? vercelDeployments(message.text) : null;
|
|
1008
1028
|
return {
|
|
1009
1029
|
markdown,
|
|
1010
1030
|
...actor?.verified ? { as: {
|
|
@@ -1450,10 +1470,17 @@ function createSyncEngine(entries) {
|
|
|
1450
1470
|
async function readSource(key, target, limit, after) {
|
|
1451
1471
|
const platform = platformOf(key);
|
|
1452
1472
|
try {
|
|
1453
|
-
|
|
1473
|
+
const read = await platform.read(target, {
|
|
1454
1474
|
limit,
|
|
1455
1475
|
after
|
|
1456
1476
|
});
|
|
1477
|
+
return {
|
|
1478
|
+
...read,
|
|
1479
|
+
messages: read.messages.map((message) => ({
|
|
1480
|
+
...message,
|
|
1481
|
+
text: keyedText(key, platform.platform, message.text)
|
|
1482
|
+
}))
|
|
1483
|
+
};
|
|
1457
1484
|
} catch (error) {
|
|
1458
1485
|
if (error instanceof UnreadableError) throw new HttpError(unreadableStatus(error.code), error.code, error.message);
|
|
1459
1486
|
throw badRequest(`can't read ${target} from ${key}: ${describe(error)}`, "platform_error");
|
|
@@ -156,6 +156,14 @@ var SyncProvider = class {
|
|
|
156
156
|
mention(_actor) {
|
|
157
157
|
return null;
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* How this platform mentions one of its users by their ID alone (`slack:user:U0456` as
|
|
161
|
+
* `<@U0456>`), for one the board hasn't met. Null where a mention needs more than an ID, as
|
|
162
|
+
* GitHub's needs a login, and for anything that isn't a user's ID.
|
|
163
|
+
*/
|
|
164
|
+
mentionById(_id) {
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
159
167
|
async fetchRoot(_thread) {
|
|
160
168
|
return null;
|
|
161
169
|
}
|
|
@@ -4,7 +4,7 @@ import { A as RegisterBody, B as SyncFindQuery, C as LabelBody, D as PostBody, E
|
|
|
4
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
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-
|
|
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-D4p9N8lN.mjs";
|
|
8
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
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
10
|
import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-Dkyg-oo0.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { X as MessageView } from "./routes-CjA6Mp4D.mjs";
|
|
2
2
|
import "./auth-li3lKwJG.mjs";
|
|
3
|
-
import "./backend-
|
|
4
|
-
import { F as BoardError, Y as TaskInBatch } from "./provider-
|
|
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 = {
|
|
@@ -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
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
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-
|
|
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-
|
|
5
|
-
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-
|
|
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
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as BoardError, m as duration, t as HttpError } from "./errors-QhkdzI-o.mjs";
|
|
2
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-BzSG0_wL.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-BQ0hJw2w.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 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
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-
|
|
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-
|
|
5
|
-
import { n as TasksInChunksError, r as createTasksInChunks, t as TaskBatches } from "./exports-
|
|
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-
|
|
7
|
+
import { t as board } from "./index-B0Fnhvk7.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 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
1
|
import { f as BoardError, m as duration, t as HttpError } from "./errors-QhkdzI-o.mjs";
|
|
2
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-BzSG0_wL.mjs";
|
|
5
|
+
import { t as board } from "./server-EOQC5Gtq.mjs";
|
|
6
6
|
export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration };
|