@vercel/board 0.52.0 → 0.54.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/README.md +4 -3
- package/dist/{access-DdojoPZm.mjs → access-HzqFpgL_.mjs} +1 -1
- package/dist/access.d.mts +3 -3
- package/dist/access.mjs +5 -5
- package/dist/{actors-CDkNgWUL.mjs → actors-D-u6bitG.mjs} +2 -2
- package/dist/{auth-zPqFJocD.mjs → auth-D9ycDQK0.mjs} +34 -12
- package/dist/{auth-C4VxPLYz.d.mts → auth-ULldUvir.d.mts} +8 -2
- package/dist/{backend-Da_YEltI.d.mts → backend-BHN6GTjB.d.mts} +8 -7
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-BHyX6H8H.d.mts → chat-provider-F7UqWVZK.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 +32 -3
- package/dist/cli-embedded.mjs +4 -2
- package/dist/cli.mjs +6 -6
- package/dist/{client-C4-r10SA.d.mts → client-CFHunEFn.d.mts} +16 -4
- package/dist/{commands-B_gbi2sU.mjs → commands-B5SXeo4W.mjs} +14 -9
- package/dist/{commands-B6pgzwTI.d.mts → commands-DLPIX7Jw.d.mts} +3 -1
- package/dist/{conformance-DW4-9Dwf.mjs → conformance-CyQG0jky.mjs} +56 -4
- package/dist/conformance.d.mts +3 -4
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-D8YAsQS_.mjs → engine-C8wCzkw-.mjs} +2 -2
- package/dist/errors-DDfXnZ2b.mjs +1958 -0
- package/dist/{exports-BUtR_AHa.d.mts → exports-BBmjHyCB.d.mts} +4 -4
- package/dist/{exports-DI-MtN01.mjs → exports-JUhj5Bl3.mjs} +127 -77
- package/dist/{index-BTuTaBaK.d.mts → index-Ce3SDZ3Y.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +7 -7
- package/dist/index.node.mjs +4 -4
- package/dist/inspect/app.js +69 -69
- package/dist/inspect/engine.js +3 -3
- package/dist/inspect-BN7V9e-M.mjs +2 -0
- package/dist/{inspect-BJR-BsUv.mjs → inspect-CrVs-iEi.mjs} +2 -2
- package/dist/inspect.d.mts +1 -1
- package/dist/inspect.mjs +1 -1
- package/dist/{local-B376y9u3.mjs → local-RoMUU6QX.mjs} +39 -23
- package/dist/{main-DfJNxck4.mjs → main-B_gzTjBR.mjs} +370 -102
- package/dist/{middleware-iVTNf5Su.mjs → middleware-BY4qqIh3.mjs} +1 -1
- package/dist/{provider-CGicSMdu.d.mts → provider-DgGp4Zej.d.mts} +2 -2
- package/dist/{routes-ChGBn0K3.d.mts → routes-DNmQSOvQ.d.mts} +36 -3
- package/dist/{serve-D8j7O2Tc.mjs → serve-Cz1NynhG.mjs} +6 -6
- package/dist/{server--BLSj6fd.mjs → server-CdBXNUxf.mjs} +68 -11
- package/dist/{serving-aOQsBok0.mjs → serving-C1mhZQqH.mjs} +1 -1
- package/dist/{shell-qrJL3Z_R.mjs → shell-Cqn38XUs.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync.d.mts +2 -2
- package/dist/{task-batch-6UHphYfl.mjs → task-batch-CVamHB-W.mjs} +4 -5
- package/dist/{tokens-C-T0B1uF.mjs → tokens-B3gXkQCs.mjs} +2 -2
- package/dist/{version-NfsFHDfg.mjs → version-DBaKHEZS.mjs} +1 -1
- package/docs/01-board/01-mounting.md +8 -6
- package/docs/01-board/03-identity.md +1 -1
- package/docs/01-board/05-reading.md +34 -7
- package/docs/01-board/06-watchers.md +2 -1
- package/docs/01-board/09-access.md +11 -2
- package/docs/01-board/11-tasks.md +28 -5
- package/docs/01-quickstart.md +19 -5
- package/docs/03-guides/03-ci.md +71 -43
- package/docs/03-guides/04-triage.md +4 -4
- package/docs/04-reference/01-cli.md +84 -22
- package/docs/04-reference/02-board.md +19 -10
- package/docs/04-reference/03-http.md +14 -5
- package/docs/04-reference/05-conformance.md +1 -1
- package/docs/index.md +7 -5
- package/package.json +2 -2
- package/dist/errors-DbCKqGXp.mjs +0 -851
- package/dist/inspect-CYfZ0vva.mjs +0 -2
- package/dist/routes-C85Sbhtm.mjs +0 -1067
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { f as BoardError } from "./errors-DbCKqGXp.mjs";
|
|
1
|
+
import { f as BoardError } from "./errors-DDfXnZ2b.mjs";
|
|
3
2
|
import { c as canonical, t as block } from "./blocks-CVoBC7ur.mjs";
|
|
4
|
-
import { a as canText, c as compileAccess } from "./access-
|
|
3
|
+
import { a as canText, c as compileAccess } from "./access-HzqFpgL_.mjs";
|
|
5
4
|
//#region src/client/channels.ts
|
|
6
5
|
/** Every channel of a board, or every one whose path starts with `prefix`, a page at a time: for what needs them all. */
|
|
7
6
|
async function everyChannel(board, prefix) {
|
|
@@ -137,7 +136,7 @@ const grantFor = (ctx) => ({
|
|
|
137
136
|
});
|
|
138
137
|
/**
|
|
139
138
|
* Whom the checks that grant to someone besides the project name: the app the run was given, or
|
|
140
|
-
* else the repository, which a board that takes no GitHub principal in a grant refuses
|
|
139
|
+
* else the repository, which a board that takes no GitHub principal in a grant refuses.
|
|
141
140
|
*/
|
|
142
141
|
const granteeOf = (ctx) => ctx.principals.app !== null ? {
|
|
143
142
|
kind: "app",
|
|
@@ -1291,6 +1290,59 @@ const CHECKS = [
|
|
|
1291
1290
|
alike(await waiting(`${ctx.channel}/`), [here.id, there.id], `the tasks that wait for one, under ${ctx.channel}/`);
|
|
1292
1291
|
}
|
|
1293
1292
|
},
|
|
1293
|
+
{
|
|
1294
|
+
group: "tasks",
|
|
1295
|
+
name: "lists the last active tasks with latest, wherever they come in the order they were made",
|
|
1296
|
+
run: async (ctx) => {
|
|
1297
|
+
const labels = {
|
|
1298
|
+
...ctx.labels,
|
|
1299
|
+
"conformance-latest": ctx.labels.conformance
|
|
1300
|
+
};
|
|
1301
|
+
const { task: first } = await task(ctx, "conformance: made first, active last", { labels });
|
|
1302
|
+
const { task: second } = await task(ctx, "conformance: made second, active first", { labels });
|
|
1303
|
+
const { task: third } = await task(ctx, "conformance: made third, active second", { labels });
|
|
1304
|
+
for (const root of [
|
|
1305
|
+
second,
|
|
1306
|
+
third,
|
|
1307
|
+
first
|
|
1308
|
+
]) {
|
|
1309
|
+
await new Promise((resolve) => setTimeout(resolve, 20));
|
|
1310
|
+
await reply(ctx, root.id, "conformance: progress");
|
|
1311
|
+
}
|
|
1312
|
+
const listed = async (query) => (await ctx.board.tasks.list({
|
|
1313
|
+
channel: ctx.channel,
|
|
1314
|
+
label: labels,
|
|
1315
|
+
state: "all",
|
|
1316
|
+
...query
|
|
1317
|
+
})).tasks.map((t) => t.message.id);
|
|
1318
|
+
await soon(async () => show(await listed({
|
|
1319
|
+
latest: true,
|
|
1320
|
+
limit: 3
|
|
1321
|
+
})) === show([
|
|
1322
|
+
second.id,
|
|
1323
|
+
third.id,
|
|
1324
|
+
first.id
|
|
1325
|
+
]), "with latest, the tasks should list the latest active last");
|
|
1326
|
+
alike(await listed({
|
|
1327
|
+
latest: true,
|
|
1328
|
+
limit: 2
|
|
1329
|
+
}), [third.id, first.id], "the 2 last active, with latest");
|
|
1330
|
+
alike(await listed({ limit: 2 }), [first.id, second.id], "the 2 first made, without it");
|
|
1331
|
+
const last = (await ctx.board.tasks.list({
|
|
1332
|
+
channel: ctx.channel,
|
|
1333
|
+
label: labels,
|
|
1334
|
+
state: "all",
|
|
1335
|
+
latest: true,
|
|
1336
|
+
limit: 1
|
|
1337
|
+
})).tasks[0];
|
|
1338
|
+
same(last.last?.text, "conformance: progress", "a last active task's latest reply");
|
|
1339
|
+
await rejects(ctx.board.tasks.list({
|
|
1340
|
+
channel: ctx.channel,
|
|
1341
|
+
latest: true,
|
|
1342
|
+
after: first.id
|
|
1343
|
+
}), 400, "invalid_request", "latest with an after");
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1294
1346
|
{
|
|
1295
1347
|
group: "tasks",
|
|
1296
1348
|
name: "says task.ready each time a task that needs others becomes ready: right after it is made or unblocked, once they have completed",
|
package/dist/conformance.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as Board } from "./backend-
|
|
1
|
+
import { f as Board } from "./backend-BHN6GTjB.mjs";
|
|
2
2
|
//#region src/conformance/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Checks that a board speaks the protocol, through a handle on it (`conformance(board())`), as
|
|
@@ -47,9 +47,8 @@ export type ConformanceOptions = {
|
|
|
47
47
|
* no grant names, a `viewer` (a person's email or ID whose team role is viewer), to check
|
|
48
48
|
* that a role caps what grants give, and an `app` installed on the board's team (its slug or
|
|
49
49
|
* client ID), which a local board has none of. Checks that grant to someone besides the project
|
|
50
|
-
* name the app when there's one, and the repository otherwise
|
|
51
|
-
*
|
|
52
|
-
* writes.
|
|
50
|
+
* name the app when there's one, and the repository otherwise. None may be the run's own: it
|
|
51
|
+
* throws before it writes.
|
|
53
52
|
*/
|
|
54
53
|
principals?: {
|
|
55
54
|
project?: string;
|
package/dist/conformance.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as conformance } from "./conformance-
|
|
1
|
+
import { t as conformance } from "./conformance-CyQG0jky.mjs";
|
|
2
2
|
export { conformance };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { f as typeOf, i as ATTACHMENT_BYTES_MAX, l as fileSize, o as IMPORT_BYTES_MAX, u as importedFileName } from "./profile-header-O8wC8yk8.mjs";
|
|
2
2
|
import { P as toStorable, m as MESSAGE_TEXT_MAX, s as ChannelPath } from "./schemas-CUSTEFIy.mjs";
|
|
3
3
|
import { l as isThreadTarget, s as channelOf } from "./external-DkWafjn-.mjs";
|
|
4
|
+
import { c as notFound, r as badRequest, t as HttpError } from "./errors-DDfXnZ2b.mjs";
|
|
4
5
|
import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
|
|
5
|
-
import { c as
|
|
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-iVTNf5Su.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-BY4qqIh3.mjs";
|
|
7
7
|
import { a as replaceMentions, n as isEmail, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
|
|
8
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-mWKc1uvZ.mjs";
|
|
9
9
|
import { i as vercelDeployments, n as displayText, t as byVercelBot } from "./bots-CqPYxkqK.mjs";
|