@vercel/board 0.57.0 → 0.58.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 +1 -1
- package/dist/{access-CIj7v_Dr.mjs → access-D1AHzFSP.mjs} +1 -1
- package/dist/access.d.mts +2 -2
- package/dist/access.mjs +4 -4
- package/dist/{actors-DVDTqjm7.mjs → actors-CCth21rU.mjs} +2 -2
- package/dist/{auth-BDWGvFWl.mjs → auth-Cc5_pdi7.mjs} +2 -2
- package/dist/{auth-C0Mla9OU.d.mts → auth-DcWTzrHz.d.mts} +1 -1
- package/dist/{backend-BuqwQbb4.d.mts → backend-9H57DlQt.d.mts} +23 -5
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/backend-postgres/blob-vercel.d.mts +1 -1
- package/dist/backend-postgres.d.mts +3 -3
- package/dist/backend-postgres.mjs +3 -3
- package/dist/{blob-DjS53D1A.d.mts → blob-CdLCZEPM.d.mts} +2 -2
- package/dist/{chat-provider-CpYdXEpI.d.mts → chat-provider-BiJ8G6KY.d.mts} +2 -2
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/{client-B0DGOt7P.d.mts → client-BUPyzzFt.d.mts} +13 -1
- package/dist/{commands-DLPIX7Jw.d.mts → commands-DryDbyWr.d.mts} +8 -3
- package/dist/{commands-7FY_8p92.mjs → commands-totPnoCC.mjs} +81 -23
- package/dist/{conformance-FiQ68adg.mjs → conformance-D9XutDay.mjs} +2 -2
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-B_CjnE3G.mjs → engine-DVWbcEIB.mjs} +2 -2
- package/dist/{errors-BfMR39F0.mjs → errors-Ce_-E3_C.mjs} +210 -2
- package/dist/{errors-DBZtbfph.d.mts → errors-CwObkpSn.d.mts} +1 -1
- package/dist/{exports-BvJTIorX.d.mts → exports-Bh09j6Bd.d.mts} +5 -5
- package/dist/{exports-x-ioAfbp.mjs → exports-WtqjdQwb.mjs} +256 -57
- package/dist/{index-DuibwQf9.d.mts → index-mgNwCwJ4.d.mts} +2 -2
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +4 -4
- package/dist/index.node.d.mts +8 -8
- package/dist/index.node.mjs +4 -4
- package/dist/inspect/app.js +126 -146
- package/dist/inspect/engine.js +3 -3
- package/dist/inspect/sheet-presentation.js +1 -0
- package/dist/{inspect-BFnDSdsq.mjs → inspect-CtPZz0WG.mjs} +2 -2
- package/dist/inspect-wkA_8iyU.mjs +2 -0
- package/dist/inspect.d.mts +1 -1
- package/dist/inspect.mjs +1 -1
- package/dist/{local-Bt1-jA9A.mjs → local-B7Yp-B2z.mjs} +30 -8
- package/dist/{local-Gp8pqHSu.mjs → local-BPiDCkA4.mjs} +5 -5
- package/dist/{main-Du-mKQZn.mjs → main-BvkLqpUX.mjs} +223 -52
- package/dist/{memory-74hyK6eH.mjs → memory-BmsyKyHu.mjs} +1 -1
- package/dist/{middleware-bIABV895.mjs → middleware-DVBOEd8G.mjs} +2 -32
- package/dist/{provider-BNVyVKtH.d.mts → provider-BnK0Bif7.d.mts} +2 -2
- package/dist/{routes-CSnxZyyb.d.mts → routes-D5FtKOP_.d.mts} +87 -1
- package/dist/{serve-xOoxwq7T.mjs → serve-ChlJ955x.mjs} +6 -6
- package/dist/{server-BSexF7Bk.mjs → server-CRdVLqny.mjs} +25 -10
- package/dist/{serving-ByD4TOOU.mjs → serving-BVtrFzK4.mjs} +1 -1
- package/dist/{shell-0nWQEqh3.mjs → shell-hTUuAc6A.mjs} +11 -7
- package/dist/{sqlite-DtfrT_EP.mjs → sqlite-B9ZLSDUT.mjs} +1 -1
- package/dist/{sqlite-db-DSVlzQjv.mjs → sqlite-db-DawFxCk6.mjs} +20 -5
- 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-DgyfK9qx.mjs → task-batch-CnRhVsh6.mjs} +7 -4
- package/dist/{tokens-_1X8JNLT.mjs → tokens-XagdeYrv.mjs} +2 -2
- package/dist/{version-CZT5WmZs.mjs → version-rlZkE9nc.mjs} +1 -1
- package/docs/01-board/01-mounting.md +9 -0
- package/docs/01-board/05-reading.md +2 -1
- package/docs/01-board/09-access.md +8 -4
- package/docs/01-board/11-tasks.md +7 -2
- package/docs/01-board/12-postgres.md +3 -3
- package/docs/02-sync/01-overview.md +4 -0
- package/docs/02-sync/05-managed.md +117 -0
- package/docs/03-guides/02-inspector.md +1 -1
- package/docs/04-reference/01-cli.md +44 -2
- package/docs/04-reference/03-http.md +5 -0
- package/package.json +2 -2
- package/dist/inspect-BuNsu2z6.mjs +0 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ threads, a live tail, watchers, and two-way sync with Slack, GitHub, and Linear.
|
|
|
6
6
|
accounts: people are who their `vercel login` says they are, and deployments and CI runs are
|
|
7
7
|
who their platform's OIDC token says.
|
|
8
8
|
|
|
9
|
-
**[Docs](https://vercel.com/docs/board)** · **[Getting started prompt](https://vercel.com/
|
|
9
|
+
**[Docs](https://vercel.com/docs/board)** · **[Getting started prompt](https://vercel.com/board-getting-started.md)**, to hand your coding agent
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
npm i @vercel/board
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as CAN_MAX, s as ChannelPath } from "./schemas-CUSTEFIy.mjs";
|
|
2
|
-
import { o as forbidden } from "./errors-
|
|
2
|
+
import { o as forbidden } from "./errors-Ce_-E3_C.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.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { An as
|
|
2
|
-
import { _ as GrantFacts, a as DEFAULT_CAN, b as grantAccess, c as IssuerConfig, d as Principal, f as PrincipalKind, g as GrantExplanation, h as DecidingGrant, i as Claims, l as Known, m as Caller, n as AuthenticateContext, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantSource, x as subPrefix, y as explainGrants } from "./auth-
|
|
1
|
+
import { An as AccessSummary, Bn as PERMISSIONS, Fn as GrantChange, Gn as parseCan, In as GrantChangeRefusal, Kn as union, Ln as GrantShape, Mn as ChannelPattern, Nn as FULL_ACCESS, Pn as Grant, Rn as InvalidCan, Un as checkGrantChange, Vn as Permission, Wn as compileAccess, Xn as Author, Zn as CAN_MAX, jn as Can, kn as Access, qn as Actor } from "./routes-D5FtKOP_.mjs";
|
|
2
|
+
import { _ as GrantFacts, a as DEFAULT_CAN, b as grantAccess, c as IssuerConfig, d as Principal, f as PrincipalKind, g as GrantExplanation, h as DecidingGrant, i as Claims, l as Known, m as Caller, n as AuthenticateContext, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantSource, x as subPrefix, y as explainGrants } from "./auth-DcWTzrHz.mjs";
|
|
3
3
|
//#region src/server/tokens.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The OIDC tokens made out to this board: a request's bearer token, from Vercel (people and
|
package/dist/access.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { D as explainGrants, O as grantAccess, k as subPrefix, t as DEFAULT_CAN } from "./auth-
|
|
4
|
-
import { a as resolveActor } from "./actors-
|
|
5
|
-
import { t as oidcTokens } from "./tokens-
|
|
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-D1AHzFSP.mjs";
|
|
3
|
+
import { D as explainGrants, O as grantAccess, k as subPrefix, t as DEFAULT_CAN } from "./auth-Cc5_pdi7.mjs";
|
|
4
|
+
import { a as resolveActor } from "./actors-CCth21rU.mjs";
|
|
5
|
+
import { t as oidcTokens } from "./tokens-XagdeYrv.mjs";
|
|
6
6
|
export { CAN_MAX, DEFAULT_CAN, FULL_ACCESS, InvalidCan, PERMISSIONS, checkGrantChange, compileAccess, explainGrants, grantAccess, oidcTokens, parseCan, resolveActor, subPrefix, union };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as parseProfileHeader } from "./profile-header-O8wC8yk8.mjs";
|
|
2
2
|
import { P as toStorable } from "./schemas-CUSTEFIy.mjs";
|
|
3
|
-
import { r as badRequest } from "./errors-
|
|
4
|
-
import { u as parseCan } from "./access-
|
|
3
|
+
import { r as badRequest } from "./errors-Ce_-E3_C.mjs";
|
|
4
|
+
import { u as parseCan } from "./access-D1AHzFSP.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-Ce_-E3_C.mjs";
|
|
2
|
+
import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-D1AHzFSP.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Hn as WrittenCan, Vn as Permission, jn as Can, kn as Access, zn as Level } from "./routes-D5FtKOP_.mjs";
|
|
2
2
|
import { JWTVerifyGetKey } from "jose";
|
|
3
3
|
//#region src/server/grants.d.ts
|
|
4
4
|
/** Who asks, as a verified token says, in the terms grants name them by. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as InboxNextQuery, $t as
|
|
2
|
-
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-
|
|
3
|
-
import { S as Mentioned, f as ProfileOption, t as BoardClient } from "./client-
|
|
4
|
-
import { t as HttpError } from "./errors-
|
|
5
|
-
import { m as SyncProvider } from "./provider-
|
|
1
|
+
import { $ as InboxNextQuery, $t as SyncFindQuery, At as RenewTaskBody, B as Explanation, C as ClaimTaskBody, D as CreateTaskBody, Dn as UploadTicket, E as CreateGrantsBody, En as UploadStartBody, Et as RegisterBody, F as EditBody, Gt as SourceJoinBody, I as EventsPage, Jt as SourceReadQuery, L as EventsQuery, Lt as ScheduleView, M as DeleteBody, Mt as RevokeGrantBody, N as Discovery, Ot as RegistrationView, Pt as ScheduleBody, Q as InboxItem, Qn as Labels, Rt as SchedulesQuery, Sn as TypingBody, T as CreateChannelBody, Ut as SchemaView, V as FailTaskBody, Vn as Permission, Vt as SchemaBody, W as GrantBody, Wt as SourceJoin, X as InboxAckBody, Xn as Author, Xt as SyncCopiesQuery, Yn as Attachment, Z as InboxEntry, Zt as SyncCopiesView, _ as ChannelView, _t as MessagesPage, an as SyncThreadView, bn as ThreadsQuery, c as BlockTaskBody, ct as ManagedSyncBody, dt as ManagedSyncsQuery, en as SyncFindView, er as ExternalEvent, et as InboxPushBody, fn as TasksPage, gt as MessageView, h as ChannelMessagesQuery, hn as ThreadQuery, ht as Me, i as ActorsQuery, it as LabelBody, j as CreatedTasksQuery, jn as Can, k as CreateTasksBody, kn as Access, kt as ReleaseTaskBody, ln as TaskClaim, m as CancelTaskBody, mt as MatchesQuery, n as AckBody, on as SyncedView, ot as LinkedQuery, pn as TasksQuery, pt as MatchView, q as GrantView, qn as Actor, qt as SourceRead, r as ActorView, rn as SyncReceiptBody, s as AssignTaskBody, tn as SyncImportBody, tt as InboxQuery, u as BoardEventView, un as TaskNeedsBody, ut as ManagedSyncView, v as ChannelsPage, vn as ThreadView, w as CompleteTaskBody, wn as UpdateGrantBody, wt as ReactBody, x as ClaimReadyTaskBody, y as ChannelsQuery, yn as ThreadsPage, yt as PostBody, z as ExplainQuery, zn as Level } from "./routes-D5FtKOP_.mjs";
|
|
2
|
+
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-DcWTzrHz.mjs";
|
|
3
|
+
import { S as Mentioned, f as ProfileOption, t as BoardClient } from "./client-BUPyzzFt.mjs";
|
|
4
|
+
import { t as HttpError } from "./errors-CwObkpSn.mjs";
|
|
5
|
+
import { m as SyncProvider } from "./provider-BnK0Bif7.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/server/sandbox.d.ts
|
|
8
8
|
/** How a rule matches a value: a regular expression (RE2), or the value exactly. */
|
|
@@ -224,6 +224,24 @@ type Protocol = {
|
|
|
224
224
|
canceled: boolean;
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
+
createSync: {
|
|
228
|
+
input: Input<typeof ManagedSyncBody>;
|
|
229
|
+
output: {
|
|
230
|
+
sync: ManagedSyncView;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
syncs: {
|
|
234
|
+
input: Input<typeof ManagedSyncsQuery>;
|
|
235
|
+
output: {
|
|
236
|
+
syncs: ManagedSyncView[];
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
removeSync: {
|
|
240
|
+
input: Id;
|
|
241
|
+
output: {
|
|
242
|
+
sync: ManagedSyncView;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
227
245
|
/** Tasks, oldest first, each as its thread's summary. 501 `no_tasks` where the board keeps none, as every task method answers there. */
|
|
228
246
|
tasks: {
|
|
229
247
|
input: Input<typeof TasksQuery>;
|
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-BPiDCkA4.mjs";
|
|
2
2
|
export { local };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./routes-
|
|
2
|
-
import { t as Backend } from "./backend-
|
|
3
|
-
import { t as BlobStore } from "./blob-
|
|
1
|
+
import "./routes-D5FtKOP_.mjs";
|
|
2
|
+
import { t as Backend } from "./backend-9H57DlQt.mjs";
|
|
3
|
+
import { t as BlobStore } from "./blob-CdLCZEPM.mjs";
|
|
4
4
|
import { t as Scheduler } from "./vercel-B5FM4uS8.mjs";
|
|
5
5
|
//#region src/store/postgres-db.d.ts
|
|
6
6
|
/** What the tables need of a `pg` Pool, or of anything shaped like one. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as HttpError } from "./errors-
|
|
2
|
-
import { u as METHODS } from "./task-batch-
|
|
1
|
+
import { t as HttpError } from "./errors-Ce_-E3_C.mjs";
|
|
2
|
+
import { u as METHODS } from "./task-batch-CnRhVsh6.mjs";
|
|
3
3
|
import { C as duplicateBatchError, D as supersededAttemptError, E as sessionClearedError, T as lastIndexMismatchError, b as CLEAR_EVENT_TYPE, m as nullProtoRecord, n as NOTIFY_TIMINGS, r as POLL_TIMINGS, y as A2Error } from "./internal-CvsrprnU-DhZF6sZK.mjs";
|
|
4
4
|
import { a as retryableLazy, o as platformWaitUntil } from "./server-DX7mM6nm-Cq1xPyqJ.mjs";
|
|
5
|
-
import { n as a2, t as localScheduler } from "./local-
|
|
5
|
+
import { n as a2, t as localScheduler } from "./local-B7Yp-B2z.mjs";
|
|
6
6
|
import { n as defaultSleep, r as pollingStream } from "./store-polling-BZt2Rf3D-nlZUQLz2.mjs";
|
|
7
7
|
import { r as sqlTables } from "./sql-CvBbb5Ui.mjs";
|
|
8
8
|
import { n as SYSTEM_CLOCK, t as RANDOM_IDS } from "./store-N8PXxDAS-DWWgv-Vz.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
1
|
+
import { $n as ExternalAuthor, Wt as SourceJoin, nr as ExternalLink, qn as Actor, qt as SourceRead, tr as ExternalFile } from "./routes-D5FtKOP_.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-BnK0Bif7.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 = {
|
package/dist/cli-commands.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OptionName, c as globalOptions, d as options, f as usage, i as CliOption, l as groups, n as CliCommand, o as commands, r as CliExample, s as filters, t as CliArgument, u as option } from "./commands-
|
|
1
|
+
import { a as OptionName, c as globalOptions, d as options, f as usage, i as CliOption, l as groups, n as CliCommand, o as commands, r as CliExample, s as filters, t as CliArgument, u as option } from "./commands-DryDbyWr.mjs";
|
|
2
2
|
export { CliArgument, CliCommand, CliExample, CliOption, OptionName, commands, filters, globalOptions, groups, option, options, usage };
|
package/dist/cli-commands.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as option, i as groups, n as filters, o as options, r as globalOptions, s as usage, t as commands } from "./commands-
|
|
1
|
+
import { a as option, i as groups, n as filters, o as options, r as globalOptions, s as usage, t as commands } from "./commands-totPnoCC.mjs";
|
|
2
2
|
export { commands, filters, globalOptions, groups, option, options, usage };
|
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-9H57DlQt.mjs";
|
|
2
|
+
import "./index-mgNwCwJ4.mjs";
|
|
3
3
|
//#region src/cli/claims.d.ts
|
|
4
4
|
/** A claim as the CLI keeps it: what its writes carry, and when its lease ends. */
|
|
5
5
|
type HeldClaim = {
|
package/dist/cli-embedded.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o 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 { o as stoppedBy } from "./exports-WtqjdQwb.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-BvkLqpUX.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
|
-
import { a as option } from "./commands-
|
|
3
|
-
import {
|
|
4
|
-
import { r as main } from "./main-
|
|
5
|
-
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-
|
|
2
|
+
import { a as option } from "./commands-totPnoCC.mjs";
|
|
3
|
+
import { _ as projectDir } from "./server-CRdVLqny.mjs";
|
|
4
|
+
import { r as main } from "./main-BvkLqpUX.mjs";
|
|
5
|
+
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-CtPZz0WG.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-wkA_8iyU.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-ChlJ955x.mjs");
|
|
85
85
|
const local = await serveLocal({
|
|
86
86
|
dir: flags.dir ?? join(root, ".board"),
|
|
87
87
|
hosts,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as Explanation, Dt as RegisterInput, H as FiltersInput, Ht as SchemaInput, I as EventsPage, J as GrantWriteOptions, Jn as ExternalCopy, K as GrantInput, Lt as ScheduleView, N as Discovery, Ot as RegistrationView, Q as InboxItem, Qt as SyncFindInput, Tn as UpdateGrantInput, Ut as SchemaView, Wt as SourceJoin, Yn as Attachment, Z as InboxEntry, _ as ChannelView, _t as MessagesPage, an as SyncThreadView, b as ChannelsQueryInput, en as SyncFindView, fn as TasksPage, ft as ManagedSyncsQueryInput, g as ChannelMessagesQueryInput, gn as ThreadQueryInput, gt as MessageView, ht as Me, in as SyncReceiptInput, ln as TaskClaim, lt as ManagedSyncInput, mn as TasksQueryInput, nn as SyncImportInput, on as SyncedView, pt as MatchView, q as GrantView, qn as Actor, qt as SourceRead, r as ActorView, u as BoardEventView, ut as ManagedSyncView, vn as ThreadView, xn as ThreadsQueryInput, yn as ThreadsPage, zt as SchedulesQueryInput } from "./routes-D5FtKOP_.mjs";
|
|
2
2
|
//#region src/contract/mentions.d.ts
|
|
3
3
|
/** An actor as a write's answer names them. */
|
|
4
4
|
type MentionedActor = {
|
|
@@ -297,6 +297,18 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
297
297
|
schedule: ScheduleView;
|
|
298
298
|
canceled: boolean;
|
|
299
299
|
}>;
|
|
300
|
+
/**
|
|
301
|
+
* Has the board itself sync a channel with a source, with no deployment of yours. A Slack
|
|
302
|
+
* channel, both ways, through Vercel's Slack app: `{ channel: 'alerts', source: 'slack', slack:
|
|
303
|
+
* { app: 'slack/vercel', channel: '#alerts' } }`, whose `state` is `pending` until someone in
|
|
304
|
+
* that channel agrees.
|
|
305
|
+
* Only Vercel's board runs one.
|
|
306
|
+
*/
|
|
307
|
+
createSync: (input: ManagedSyncInput) => Promise<ManagedSyncView>;
|
|
308
|
+
/** The syncs the board runs itself, oldest first: every channel's, or one's. Each says its `state`, and one that isn't `active` its `reason`. */
|
|
309
|
+
syncs: (query?: ManagedSyncsQueryInput) => Promise<ManagedSyncView[]>;
|
|
310
|
+
/** Removes a sync the board runs, and what its source kept for it. What it brought in stays. */
|
|
311
|
+
removeSync: (id: string) => Promise<ManagedSyncView>;
|
|
300
312
|
/**
|
|
301
313
|
* Tasks: threads someone's agents are to do, with a state the board keeps. A task's ID is its
|
|
302
314
|
* root's, and its root's `task` says its state, whose it is, what it waits for, and who holds
|
|
@@ -254,6 +254,11 @@ declare const options: {
|
|
|
254
254
|
readonly value: 'time';
|
|
255
255
|
readonly description: 'at a time: once, or with --every, the first';
|
|
256
256
|
};
|
|
257
|
+
readonly workspace: {
|
|
258
|
+
readonly type: 'string';
|
|
259
|
+
readonly value: 'domain|id';
|
|
260
|
+
readonly description: 'a Slack workspace, for a team with more than one';
|
|
261
|
+
};
|
|
257
262
|
readonly every: {
|
|
258
263
|
readonly type: 'string';
|
|
259
264
|
readonly value: 'duration';
|
|
@@ -301,7 +306,7 @@ declare const options: {
|
|
|
301
306
|
readonly github: {
|
|
302
307
|
readonly type: 'string';
|
|
303
308
|
readonly multiple: true;
|
|
304
|
-
readonly value: 'owner/repo';
|
|
309
|
+
readonly value: 'owner/repo|id';
|
|
305
310
|
readonly description: "GitHub Actions' runs in a repository";
|
|
306
311
|
};
|
|
307
312
|
readonly oidc: {
|
|
@@ -378,7 +383,7 @@ declare const options: {
|
|
|
378
383
|
readonly 'add-github': {
|
|
379
384
|
readonly type: 'string';
|
|
380
385
|
readonly multiple: true;
|
|
381
|
-
readonly value: 'owner/repo';
|
|
386
|
+
readonly value: 'owner/repo|id';
|
|
382
387
|
readonly description: "add a repository's runs";
|
|
383
388
|
};
|
|
384
389
|
readonly 'add-oidc': {
|
|
@@ -424,7 +429,7 @@ declare const options: {
|
|
|
424
429
|
readonly 'remove-github': {
|
|
425
430
|
readonly type: 'string';
|
|
426
431
|
readonly multiple: true;
|
|
427
|
-
readonly value: 'owner/repo';
|
|
432
|
+
readonly value: 'owner/repo|id';
|
|
428
433
|
readonly description: "remove a repository's runs";
|
|
429
434
|
};
|
|
430
435
|
readonly 'remove-oidc': {
|
|
@@ -202,6 +202,11 @@ const options = {
|
|
|
202
202
|
value: "time",
|
|
203
203
|
description: "at a time: once, or with --every, the first"
|
|
204
204
|
},
|
|
205
|
+
workspace: {
|
|
206
|
+
type: "string",
|
|
207
|
+
value: "domain|id",
|
|
208
|
+
description: "a Slack workspace, for a team with more than one"
|
|
209
|
+
},
|
|
205
210
|
every: {
|
|
206
211
|
type: "string",
|
|
207
212
|
value: "duration",
|
|
@@ -249,7 +254,7 @@ const options = {
|
|
|
249
254
|
github: {
|
|
250
255
|
type: "string",
|
|
251
256
|
multiple: true,
|
|
252
|
-
value: "owner/repo",
|
|
257
|
+
value: "owner/repo|id",
|
|
253
258
|
description: "GitHub Actions' runs in a repository"
|
|
254
259
|
},
|
|
255
260
|
oidc: {
|
|
@@ -326,7 +331,7 @@ const options = {
|
|
|
326
331
|
"add-github": {
|
|
327
332
|
type: "string",
|
|
328
333
|
multiple: true,
|
|
329
|
-
value: "owner/repo",
|
|
334
|
+
value: "owner/repo|id",
|
|
330
335
|
description: "add a repository's runs"
|
|
331
336
|
},
|
|
332
337
|
"add-oidc": {
|
|
@@ -372,7 +377,7 @@ const options = {
|
|
|
372
377
|
"remove-github": {
|
|
373
378
|
type: "string",
|
|
374
379
|
multiple: true,
|
|
375
|
-
value: "owner/repo",
|
|
380
|
+
value: "owner/repo|id",
|
|
376
381
|
description: "remove a repository's runs"
|
|
377
382
|
},
|
|
378
383
|
"remove-oidc": {
|
|
@@ -746,7 +751,7 @@ const commands = [
|
|
|
746
751
|
{
|
|
747
752
|
group: "the board",
|
|
748
753
|
name: "channels",
|
|
749
|
-
description: "channels, a page at a time, grouped by path prefix: a first post makes one, and so does create",
|
|
754
|
+
description: "channels, a page at a time, grouped by path prefix: a first post makes one, and so does channels create",
|
|
750
755
|
arguments: [{
|
|
751
756
|
name: "prefix",
|
|
752
757
|
required: false,
|
|
@@ -1134,19 +1139,60 @@ const commands = [
|
|
|
1134
1139
|
{
|
|
1135
1140
|
group: "messages",
|
|
1136
1141
|
name: "sync",
|
|
1137
|
-
description: "where
|
|
1138
|
-
arguments: [
|
|
1139
|
-
name: "
|
|
1142
|
+
description: "where a thread is synced, or with a target, attach it there (backfilling it); with a channel and a source, have the board sync the channel with it",
|
|
1143
|
+
arguments: [{
|
|
1144
|
+
name: "id|channel",
|
|
1145
|
+
required: true,
|
|
1146
|
+
description: "a message in the thread; or with a source, a channel"
|
|
1147
|
+
}, {
|
|
1148
|
+
name: "target|source",
|
|
1149
|
+
required: false,
|
|
1150
|
+
description: "where to sync the thread (slack:#incidents), or what the board syncs the channel with: slack/vercel:#channel, a Slack channel through Vercel's Slack app (on Vercel's board)"
|
|
1151
|
+
}],
|
|
1152
|
+
options: [option("workspace")],
|
|
1153
|
+
examples: [
|
|
1154
|
+
{
|
|
1155
|
+
name: "list where a thread is synced",
|
|
1156
|
+
value: "sync 812"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
name: "sync a thread to a Slack channel",
|
|
1160
|
+
value: "sync 812 slack:#incidents"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
name: "mirror a Slack channel both ways, once someone there agrees",
|
|
1164
|
+
value: "sync alerts slack/vercel:#alerts"
|
|
1165
|
+
}
|
|
1166
|
+
],
|
|
1167
|
+
runsWithoutSubcommand: true,
|
|
1168
|
+
subcommands: [{
|
|
1169
|
+
name: "remove",
|
|
1170
|
+
description: "stop a sync the board runs (with sync where its events land): what it brought in stays",
|
|
1171
|
+
arguments: [{
|
|
1172
|
+
name: "sync",
|
|
1173
|
+
required: true,
|
|
1174
|
+
description: "its ID, as syncs shows it"
|
|
1175
|
+
}],
|
|
1176
|
+
options: [],
|
|
1177
|
+
examples: [{
|
|
1178
|
+
name: "remove a sync",
|
|
1179
|
+
value: "sync remove syn_4f9a2c"
|
|
1180
|
+
}]
|
|
1181
|
+
}]
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
group: "messages",
|
|
1185
|
+
name: "syncs",
|
|
1186
|
+
description: "the syncs the board runs itself, with no deployment: every channel's, or one's, and why one isn't running",
|
|
1187
|
+
arguments: [{
|
|
1188
|
+
name: "channel",
|
|
1140
1189
|
required: false,
|
|
1141
|
-
description: "
|
|
1190
|
+
description: "a channel"
|
|
1142
1191
|
}],
|
|
1143
1192
|
options: [],
|
|
1144
1193
|
examples: [{
|
|
1145
|
-
name: "list
|
|
1146
|
-
value: "
|
|
1147
|
-
}, {
|
|
1148
|
-
name: "sync a thread to a Slack channel",
|
|
1149
|
-
value: "sync 812 slack:#incidents"
|
|
1194
|
+
name: "list the board's syncs",
|
|
1195
|
+
value: "syncs"
|
|
1150
1196
|
}]
|
|
1151
1197
|
},
|
|
1152
1198
|
{
|
|
@@ -1263,13 +1309,20 @@ const commands = [
|
|
|
1263
1309
|
option("limit", "tasks to list (default: 50)")
|
|
1264
1310
|
],
|
|
1265
1311
|
runsWithoutSubcommand: true,
|
|
1266
|
-
examples: [
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1312
|
+
examples: [
|
|
1313
|
+
{
|
|
1314
|
+
name: "list every channel's open tasks",
|
|
1315
|
+
value: "tasks"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
name: "list a queue's open tasks",
|
|
1319
|
+
value: "tasks work/"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
name: "list what is ready to fix",
|
|
1323
|
+
value: "tasks work/ --state ready --label step=fix"
|
|
1324
|
+
}
|
|
1325
|
+
],
|
|
1273
1326
|
subcommands: [
|
|
1274
1327
|
{
|
|
1275
1328
|
name: "create",
|
|
@@ -1284,14 +1337,15 @@ const commands = [
|
|
|
1284
1337
|
description: "what to do, for a new thread: - reads it from stdin, and --file takes its place"
|
|
1285
1338
|
}],
|
|
1286
1339
|
options: [
|
|
1287
|
-
option("label", "label it, to route it", "k=v"),
|
|
1340
|
+
option("label", "for a new thread: label it, to route it", "k=v"),
|
|
1288
1341
|
option("needs"),
|
|
1289
1342
|
option("for", "only this profile of yours claims it", "profile"),
|
|
1290
1343
|
claimNow,
|
|
1291
1344
|
option("lease", "with --claim: how long to hold it"),
|
|
1345
|
+
option("attach", "for a new thread: attach a file, up to 10, each up to 100 MB (4 MB on some boards)"),
|
|
1292
1346
|
option("file", "a plan, from a JSON file (- reads stdin): an array of tasks, each { key?, text, labels?, needs?, for?, noSync?, attachments? }, all made, in as many writes as it takes. needs takes a key of the plan (\"fix\" or {\"key\": \"fix\"}) or a task that's there by its ID (\"812\" or {\"id\": \"812\"})"),
|
|
1293
|
-
option("no-sync"),
|
|
1294
|
-
option("idempotency-key", "sending the same one again makes it once")
|
|
1347
|
+
option("no-sync", "for a new thread, not one that is there: keep it on the board, sync it nowhere. With --file, each task that sets no noSync of its own"),
|
|
1348
|
+
option("idempotency-key", "for a new thread or a plan, not a thread that is there: sending the same one again makes it once")
|
|
1295
1349
|
],
|
|
1296
1350
|
examples: [
|
|
1297
1351
|
{
|
|
@@ -1302,6 +1356,10 @@ const commands = [
|
|
|
1302
1356
|
name: "a review that waits for it",
|
|
1303
1357
|
value: "tasks create work \"review the fix for CVE-123\" --label step=review --needs 812"
|
|
1304
1358
|
},
|
|
1359
|
+
{
|
|
1360
|
+
name: "hand over a job with its file",
|
|
1361
|
+
value: "tasks create work \"build it\" --attach job.json"
|
|
1362
|
+
},
|
|
1305
1363
|
{
|
|
1306
1364
|
name: "make a task of a thread that is there",
|
|
1307
1365
|
value: "tasks create 812"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as BoardError } from "./errors-
|
|
1
|
+
import { f as BoardError } from "./errors-Ce_-E3_C.mjs";
|
|
2
2
|
import { c as canonical, t as block } from "./blocks-CVoBC7ur.mjs";
|
|
3
|
-
import { a as canText, c as compileAccess } from "./access-
|
|
3
|
+
import { a as canText, c as compileAccess } from "./access-D1AHzFSP.mjs";
|
|
4
4
|
//#region src/client/channels.ts
|
|
5
5
|
/** Every channel of a board, or every one whose path starts with `prefix`, a page at a time: for what needs them all. */
|
|
6
6
|
async function everyChannel(board, prefix) {
|
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-D9XutDay.mjs";
|
|
2
2
|
export { conformance };
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
+
import { c as notFound, r as badRequest, t as HttpError, v as derivedId } from "./errors-Ce_-E3_C.mjs";
|
|
5
5
|
import { t as canonicalEmoji } from "./emoji-CTLpvH-A.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-bIABV895.mjs";
|
|
7
6
|
import { n as isEmail, s as replaceMentions, t as extractMentions } from "./mentions-DBGmqkr2.mjs";
|
|
7
|
+
import { a as waitUntil, c as platformProfile, f as viaText, i as afterRetry, l as shownName, o as actorParts, t as DroppedError } from "./middleware-DVBOEd8G.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";
|
|
10
10
|
//#region src/sync/engine.ts
|