@vercel/board 0.45.1 → 0.46.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-3udXjJAg.mjs → access-Crbvd2Dm.mjs} +2 -2
- package/dist/access.d.mts +2 -2
- package/dist/access.mjs +5 -5
- package/dist/{actors-DasGZnfb.mjs → actors-BBphaJ_G.mjs} +3 -3
- package/dist/{auth-aiOVE82-.mjs → auth-C-pFnJBA.mjs} +2 -2
- package/dist/{auth-BG_whr9_.d.mts → auth-CkNXnQno.d.mts} +1 -1
- package/dist/{backend-D6yTo8Un.d.mts → backend-D3p8gjba.d.mts} +126 -4
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-BvNqOQFL.mjs → chat-provider-1zpY6Qo_.mjs} +2 -2
- package/dist/{chat-provider-V2jnjVLq.d.mts → chat-provider-Bn33acHd.d.mts} +2 -2
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +3 -2
- package/dist/cli.mjs +6 -6
- package/dist/{commands-DewS14_P.d.mts → commands-CSZPQ38I.d.mts} +54 -0
- package/dist/{commands-CqdnjUkm.mjs → commands-D0lyo8O8.mjs} +319 -0
- package/dist/{conformance-BInS4_6b.mjs → conformance-Blzd4CXG.mjs} +972 -6
- package/dist/conformance.d.mts +6 -5
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-XVBt02Bl.mjs → engine-C_SlBihU.mjs} +15 -7
- package/dist/{errors-ZazTZh-s.mjs → errors-DZ1tbwSM.mjs} +151 -3
- package/dist/{events-D17RndlV.mjs → events-mGuhF4i5.mjs} +2 -2
- package/dist/{exports-DCxecX15.mjs → exports-DQauuHrc.mjs} +1226 -42
- package/dist/exports-DUX_Yzo7.d.mts +44 -0
- package/dist/{external-DfhN7lKK.mjs → external-BVr1Sq0y.mjs} +1 -1
- package/dist/{index-Djmr4GzQ.d.mts → index-BHXg4Xdo.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +5 -5
- package/dist/index.node.d.mts +7 -6
- package/dist/index.node.mjs +5 -4
- package/dist/inspect/app.js +215 -115
- package/dist/inspect/engine.js +5 -5
- package/dist/{inspect-CHsgnf_5.mjs → inspect-2OIjv2lW.mjs} +242 -20
- package/dist/inspect-F-b4GPXX.mjs +2 -0
- package/dist/{local-DE9vmanM.mjs → local-11FMUJrU.mjs} +1593 -60
- package/dist/{main-CF1Me3jg.mjs → main-BYmbTDgo.mjs} +1167 -24
- package/dist/{memory-DyEL0fvN.mjs → memory-CZBdVNn8.mjs} +2 -2
- package/dist/{middleware-BHHKHA9q.mjs → middleware-BKsTcMAv.mjs} +2 -2
- package/dist/{provider-BC9mPYVh.d.mts → provider-D3bfHRHA.d.mts} +119 -3
- package/dist/{routes-CkUetTO2.mjs → routes-B2HHHD_C.mjs} +246 -6
- package/dist/{routes-zm4TXKCC.d.mts → routes-NEc6w3QC.d.mts} +540 -6
- package/dist/{schemas-BhZaystC.mjs → schemas-7VFdomFB.mjs} +34 -1
- package/dist/{serve-CEMvl0EH.mjs → serve-DS2T2iWI.mjs} +4 -4
- package/dist/{server-Bmz0zqYM.mjs → server-Ch3tuK2k.mjs} +10 -10
- package/dist/{serving-BLVRrJ7P.mjs → serving-9riPNrHk.mjs} +1 -1
- package/dist/{sql-CyVcjw8x.mjs → sql-Bml29DpM.mjs} +174 -9
- package/dist/{sqlite-Con-8duk.mjs → sqlite-4C5u7-ag.mjs} +2 -2
- package/dist/{sqlite-db-BdzxtUOV.mjs → sqlite-db-eVb9v3zc.mjs} +1 -1
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-github.mjs +2 -2
- package/dist/sync-linear.d.mts +3 -3
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync-slack.mjs +4 -4
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +2 -2
- package/dist/{origin-BbwhnKrg.mjs → task-batch-BJcLiYe1.mjs} +83 -8
- package/dist/{tokens-BErYXuHZ.mjs → tokens-DPKF_cb5.mjs} +2 -2
- package/docs/01-board/01-mounting.md +1 -1
- package/docs/01-board/08-middleware.md +7 -0
- package/docs/01-board/11-tasks.md +348 -0
- package/docs/03-guides/02-inspector.md +66 -9
- package/docs/03-guides/06-sandboxed-agents.md +5 -3
- package/docs/03-guides/07-build-a-ui.md +210 -0
- package/docs/04-reference/01-cli.md +216 -8
- package/docs/04-reference/02-board.md +277 -2
- package/docs/04-reference/03-http.md +184 -10
- package/docs/04-reference/05-conformance.md +10 -7
- package/package.json +1 -1
- package/dist/exports-Gspe1eEq.d.mts +0 -4
- package/dist/inspect-C8U3A4jQ.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as CAN_MAX, s as ChannelPath } from "./schemas-
|
|
1
|
+
import { o as forbidden } from "./errors-DZ1tbwSM.mjs";
|
|
2
|
+
import { a as CAN_MAX, s as ChannelPath } from "./schemas-7VFdomFB.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 {
|
|
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, y as explainGrants } from "./auth-
|
|
1
|
+
import { Cn as union, Dn as Author, On as CAN_MAX, Sn as parseCan, _n as PERMISSIONS, bn as checkGrantChange, cn as Can, dn as Grant, fn as GrantChange, hn as InvalidCan, ln as ChannelPattern, mn as GrantShape, on as Access, pn as GrantChangeRefusal, sn as AccessSummary, un as FULL_ACCESS, vn as Permission, wn as Actor, xn as compileAccess } from "./routes-NEc6w3QC.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, y as explainGrants } from "./auth-CkNXnQno.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
|
-
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 { C as explainGrants, t as DEFAULT_CAN, w as grantAccess } from "./auth-
|
|
4
|
-
import { a as resolveActor } from "./actors-
|
|
5
|
-
import { t as oidcTokens } from "./tokens-
|
|
1
|
+
import { a as CAN_MAX } from "./schemas-7VFdomFB.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-Crbvd2Dm.mjs";
|
|
3
|
+
import { C as explainGrants, t as DEFAULT_CAN, w as grantAccess } from "./auth-C-pFnJBA.mjs";
|
|
4
|
+
import { a as resolveActor } from "./actors-BBphaJ_G.mjs";
|
|
5
|
+
import { t as oidcTokens } from "./tokens-DPKF_cb5.mjs";
|
|
6
6
|
export { CAN_MAX, DEFAULT_CAN, FULL_ACCESS, InvalidCan, PERMISSIONS, checkGrantChange, compileAccess, explainGrants, grantAccess, oidcTokens, parseCan, resolveActor, union };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { u as parseCan } from "./access-
|
|
1
|
+
import { r as badRequest, v as parseProfileHeader } from "./errors-DZ1tbwSM.mjs";
|
|
2
|
+
import { N as toStorable } from "./schemas-7VFdomFB.mjs";
|
|
3
|
+
import { u as parseCan } from "./access-Crbvd2Dm.mjs";
|
|
4
4
|
import { t as own } from "./own-OwgPWdmh.mjs";
|
|
5
5
|
//#region src/server/actors.ts
|
|
6
6
|
/** Agents whose marks the board serves at `/avatars/<name>`, for a caller to pass as an avatar. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-DZ1tbwSM.mjs";
|
|
2
|
+
import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-Crbvd2Dm.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 { cn as Can, gn as Level, on as Access, vn as Permission, yn as WrittenCan } from "./routes-NEc6w3QC.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,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-
|
|
3
|
-
import {
|
|
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-NEc6w3QC.mjs";
|
|
2
|
+
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-CkNXnQno.mjs";
|
|
3
|
+
import { G as ProfileOption, L as ErrorOrigin, P as BoardClient, m as SyncProvider } from "./provider-D3bfHRHA.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. */
|
|
@@ -74,13 +74,18 @@ type SandboxRoute = {
|
|
|
74
74
|
/**
|
|
75
75
|
* How a sandbox reaches a board, from a backend: its URL, the headers its requests carry, the routes
|
|
76
76
|
* under the board's path that carry them, every one by method and shape (the protocol's, or another
|
|
77
|
-
* API's), and what else they ask
|
|
77
|
+
* API's), and what else they ask: `GET`s outside the board's path (`reads`), and routes the same
|
|
78
|
+
* board has under another path of its host (`under`), as an API that versions some of its routes does.
|
|
78
79
|
*/
|
|
79
80
|
type SandboxReach = {
|
|
80
81
|
url: string;
|
|
81
82
|
headers: Record<string, string>;
|
|
82
83
|
routes: readonly SandboxRoute[];
|
|
83
84
|
reads?: readonly string[];
|
|
85
|
+
under?: readonly {
|
|
86
|
+
path: string;
|
|
87
|
+
routes: readonly SandboxRoute[];
|
|
88
|
+
}[];
|
|
84
89
|
};
|
|
85
90
|
/** What a backend gets to say how a sandbox reaches its board. */
|
|
86
91
|
type SandboxInput = {
|
|
@@ -205,6 +210,123 @@ type Protocol = {
|
|
|
205
210
|
canceled: boolean;
|
|
206
211
|
};
|
|
207
212
|
};
|
|
213
|
+
/** Tasks, oldest first, each as its thread's summary. 501 `no_tasks` where the board keeps none, as every task method answers there. */
|
|
214
|
+
tasks: {
|
|
215
|
+
input: Input<typeof TasksQuery>;
|
|
216
|
+
output: TasksPage;
|
|
217
|
+
};
|
|
218
|
+
/** `task` is the task's root. `claim` comes with a task made with `claim`; a retry of one that landed gets the task without it. */
|
|
219
|
+
createTask: {
|
|
220
|
+
input: Input<typeof CreateTaskBody>;
|
|
221
|
+
output: {
|
|
222
|
+
task: MessageView;
|
|
223
|
+
claim?: TaskClaim;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* `tasks` are the tasks' roots, in the body's order. 400 `invalid_needs` for a `key` two tasks go by, one no task has,
|
|
228
|
+
* or tasks that wait for each other; 400 `batch_too_large` for more than a board holds in one write. Nothing is made
|
|
229
|
+
* then, and a retry with the same `id` answers the tasks the first made.
|
|
230
|
+
*/
|
|
231
|
+
createTasks: {
|
|
232
|
+
input: Input<typeof CreateTasksBody>;
|
|
233
|
+
output: {
|
|
234
|
+
tasks: MessageView[];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* The caller's own batch made under `id`, its tasks' roots as they are now, in order: 404 `batch_not_found` when
|
|
239
|
+
* there's none. With `request`, 409 `duplicate_id` when the batch was made for another one.
|
|
240
|
+
*/
|
|
241
|
+
createdTasks: {
|
|
242
|
+
input: Id & Input<typeof CreatedTasksQuery>;
|
|
243
|
+
output: {
|
|
244
|
+
tasks: MessageView[];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
/** The oldest ready task there, claimed, or `{ task: null }` when there's none, after waiting up to `wait` seconds. */
|
|
248
|
+
claimReadyTask: {
|
|
249
|
+
input: Input<typeof ClaimReadyTaskBody>;
|
|
250
|
+
output: {
|
|
251
|
+
task: MessageView;
|
|
252
|
+
claim: TaskClaim;
|
|
253
|
+
} | {
|
|
254
|
+
task: null;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
/** 409 `task_claimed` while someone holds it, and of claims that race, for all but one. */
|
|
258
|
+
claimTask: {
|
|
259
|
+
input: Id & Input<typeof ClaimTaskBody>;
|
|
260
|
+
output: {
|
|
261
|
+
task: MessageView;
|
|
262
|
+
claim: TaskClaim;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
/** `until` is the lease's new end. */
|
|
266
|
+
renewTask: {
|
|
267
|
+
input: Id & Input<typeof RenewTaskBody>;
|
|
268
|
+
output: {
|
|
269
|
+
task: MessageView;
|
|
270
|
+
until: string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
releaseTask: {
|
|
274
|
+
input: Id & Input<typeof ReleaseTaskBody>;
|
|
275
|
+
output: {
|
|
276
|
+
task: MessageView;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
completeTask: {
|
|
280
|
+
input: Id & Input<typeof CompleteTaskBody>;
|
|
281
|
+
output: {
|
|
282
|
+
task: MessageView;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
failTask: {
|
|
286
|
+
input: Id & Input<typeof FailTaskBody>;
|
|
287
|
+
output: {
|
|
288
|
+
task: MessageView;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
blockTask: {
|
|
292
|
+
input: Id & Input<typeof BlockTaskBody>;
|
|
293
|
+
output: {
|
|
294
|
+
task: MessageView;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
/** A task that isn't blocked is left as it is. */
|
|
298
|
+
unblockTask: {
|
|
299
|
+
input: Id;
|
|
300
|
+
output: {
|
|
301
|
+
task: MessageView;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
/** A failed task is ready again; one that's open is left as it is. */
|
|
305
|
+
reopenTask: {
|
|
306
|
+
input: Id;
|
|
307
|
+
output: {
|
|
308
|
+
task: MessageView;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
assignTask: {
|
|
312
|
+
input: Id & Input<typeof AssignTaskBody>;
|
|
313
|
+
output: {
|
|
314
|
+
task: MessageView;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
/** 400 `invalid_needs` for a prerequisite that isn't one, or that would make the task wait for itself. The same set is left as it is. */
|
|
318
|
+
setTaskNeeds: {
|
|
319
|
+
input: Id & Input<typeof TaskNeedsBody>;
|
|
320
|
+
output: {
|
|
321
|
+
task: MessageView;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
cancelTask: {
|
|
325
|
+
input: Id & Input<typeof CancelTaskBody>;
|
|
326
|
+
output: {
|
|
327
|
+
task: MessageView;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
208
330
|
/** The board's grants: needs `manage` at `*`, or a team owner. 501 `no_grants` where the board keeps none. */
|
|
209
331
|
grants: {
|
|
210
332
|
input: Nothing;
|
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-11FMUJrU.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-BVr1Sq0y.mjs";
|
|
2
|
+
import { c as SyncProvider, s as ResolvedTarget } from "./events-mGuhF4i5.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { Chat, stringifyMarkdown } from "chat";
|
|
@@ -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 { An as ExternalAuthor, Mn as ExternalFile, Nn as ExternalLink, Ot as SourceRead, Tt as SourceJoin, wn as Actor } from "./routes-NEc6w3QC.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-D3bfHRHA.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-CSZPQ38I.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-D0lyo8O8.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-D3p8gjba.mjs";
|
|
2
|
+
import "./index-BHXg4Xdo.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 {
|
|
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-DQauuHrc.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-BYmbTDgo.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
|
|
@@ -75,6 +75,7 @@ function vb(board, argv, options = {}) {
|
|
|
75
75
|
commands: {}
|
|
76
76
|
}, {
|
|
77
77
|
board: options.signal && stoppedBy(board, options.signal) || board,
|
|
78
|
+
claimsOf: board,
|
|
78
79
|
write: (chunk) => void (stdout += typeof chunk === "string" ? chunk : decoder.decode(chunk, { stream: true })),
|
|
79
80
|
error: (chunk) => void (stderr += chunk),
|
|
80
81
|
readFile: options.readFile ? async (path) => options.readFile(path) : lacking("--attach and --text-file can't read files", "readFile"),
|
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 { n as stopped, r as startInspector } from "./inspect-
|
|
2
|
+
import { a as option } from "./commands-D0lyo8O8.mjs";
|
|
3
|
+
import { m as projectDir } from "./server-Ch3tuK2k.mjs";
|
|
4
|
+
import { r as main } from "./main-BYmbTDgo.mjs";
|
|
5
|
+
import { n as stopped, r as startInspector } from "./inspect-2OIjv2lW.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-F-b4GPXX.mjs")).inspect(context);
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
serve: {
|
|
@@ -60,7 +60,7 @@ const local = {
|
|
|
60
60
|
if (args.length > 0) throw usage("serve takes no arguments: pass its port with --port, and its directory with --dir.");
|
|
61
61
|
const port = portFlag();
|
|
62
62
|
const root = projectDir();
|
|
63
|
-
const { serveLocal } = await import("./serve-
|
|
63
|
+
const { serveLocal } = await import("./serve-DS2T2iWI.mjs");
|
|
64
64
|
const local = await serveLocal({
|
|
65
65
|
dir: flags.dir ?? join(root, ".board"),
|
|
66
66
|
...port !== void 0 ? { port } : {}
|
|
@@ -169,6 +169,11 @@ declare const options: {
|
|
|
169
169
|
readonly value: 'path';
|
|
170
170
|
readonly description: 'the text, from a file: - reads stdin';
|
|
171
171
|
};
|
|
172
|
+
readonly 'tasks-file': {
|
|
173
|
+
readonly type: 'string';
|
|
174
|
+
readonly value: 'path';
|
|
175
|
+
readonly description: 'several tasks, from a JSON file: - reads stdin';
|
|
176
|
+
};
|
|
172
177
|
readonly unset: {
|
|
173
178
|
readonly type: 'string';
|
|
174
179
|
readonly multiple: true;
|
|
@@ -456,6 +461,55 @@ declare const options: {
|
|
|
456
461
|
readonly type: 'boolean';
|
|
457
462
|
readonly description: "don't start the inspector";
|
|
458
463
|
};
|
|
464
|
+
readonly state: {
|
|
465
|
+
readonly type: 'string';
|
|
466
|
+
readonly value: 'state';
|
|
467
|
+
readonly description: 'in a state: waiting, ready, claimed, blocked, completed, failed, canceled, open, or all (default: open)';
|
|
468
|
+
};
|
|
469
|
+
readonly needs: {
|
|
470
|
+
readonly type: 'string';
|
|
471
|
+
readonly multiple: true;
|
|
472
|
+
readonly value: 'id';
|
|
473
|
+
readonly description: 'wait for a task to complete first';
|
|
474
|
+
};
|
|
475
|
+
readonly ready: {
|
|
476
|
+
readonly type: 'boolean';
|
|
477
|
+
readonly description: 'the oldest ready task in a channel, or under a prefix (work/)';
|
|
478
|
+
};
|
|
479
|
+
readonly from: {
|
|
480
|
+
readonly type: 'string';
|
|
481
|
+
readonly multiple: true;
|
|
482
|
+
readonly value: 'id';
|
|
483
|
+
readonly description: "with --ready: take this owner's tasks too, by their ID";
|
|
484
|
+
};
|
|
485
|
+
readonly wait: {
|
|
486
|
+
readonly type: 'string';
|
|
487
|
+
readonly value: 'duration';
|
|
488
|
+
readonly description: 'with --ready: how long to wait for one, e.g. 10m';
|
|
489
|
+
};
|
|
490
|
+
readonly lease: {
|
|
491
|
+
readonly type: 'string';
|
|
492
|
+
readonly value: 'duration';
|
|
493
|
+
readonly description: 'how long to hold it: 30s to 1h (default: 15m, or what the board gives)';
|
|
494
|
+
};
|
|
495
|
+
readonly result: {
|
|
496
|
+
readonly type: 'string';
|
|
497
|
+
readonly value: 'text';
|
|
498
|
+
readonly description: 'what it came to, when the command exits 0';
|
|
499
|
+
};
|
|
500
|
+
readonly kind: {
|
|
501
|
+
readonly type: 'string';
|
|
502
|
+
readonly value: 'kind';
|
|
503
|
+
readonly description: 'what the hold is for: needs_input, awaiting_approval';
|
|
504
|
+
};
|
|
505
|
+
readonly pool: {
|
|
506
|
+
readonly type: 'boolean';
|
|
507
|
+
readonly description: 'back to anyone who may claim it';
|
|
508
|
+
};
|
|
509
|
+
readonly none: {
|
|
510
|
+
readonly type: 'boolean';
|
|
511
|
+
readonly description: 'wait for nothing';
|
|
512
|
+
};
|
|
459
513
|
readonly agent: {
|
|
460
514
|
readonly type: 'string';
|
|
461
515
|
readonly value: 'name';
|