@vercel/board 0.40.0 → 0.42.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-Bl_k_Hpa.mjs → access-BgBiaCyx.mjs} +2 -2
- package/dist/access.d.mts +6 -6
- package/dist/access.mjs +5 -5
- package/dist/{actors-yBRWTpt5.mjs → actors-DkZsnMgA.mjs} +59 -40
- package/dist/{auth-DtmZzlHm.d.mts → auth-Bn8J_1F2.d.mts} +12 -30
- package/dist/{auth-C8URZHLx.mjs → auth-Ft4AJptx.mjs} +9 -19
- package/dist/{backend-BW5NbBsp.d.mts → backend-DMrK55mU.d.mts} +137 -48
- package/dist/backend-local.d.mts +1 -1
- package/dist/backend-local.mjs +1 -1
- package/dist/{chat-provider-1WKsLEnM.mjs → chat-provider-CPZg2MQb.mjs} +2 -2
- package/dist/{chat-provider-Bbb9JguG.d.mts → chat-provider-Cgkh9xJw.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 +10 -5
- package/dist/cli-embedded.mjs +8 -6
- package/dist/cli.mjs +8 -13
- package/dist/{commands-BJLocuXj.d.mts → commands-CrEVjASe.d.mts} +8 -30
- package/dist/{commands-D6VWegVY.mjs → commands-QRD0U9AQ.mjs} +30 -101
- package/dist/{conformance-BWhZ0k8T.mjs → conformance-BORt5nky.mjs} +139 -109
- package/dist/conformance.d.mts +9 -8
- package/dist/conformance.mjs +1 -1
- package/dist/digest-CKC0Rmy1.mjs +4 -0
- package/dist/{engine-Djif8XVk.mjs → engine-BVHSH2Kn.mjs} +11 -12
- package/dist/{errors-CNRJqUuL.mjs → errors-DUzpDSrJ.mjs} +112 -30
- package/dist/{events-C6HwB046.mjs → events-BT8y_81j.mjs} +2 -2
- package/dist/{exports-C2OWIbLU.mjs → exports-BfNXPHN_.mjs} +473 -174
- package/dist/exports-Bw_OYNRl.d.mts +4 -0
- package/dist/{external-CHDxWIVf.mjs → external-DymyhUzl.mjs} +1 -1
- package/dist/{index-Cuxbz_E0.d.mts → index-CydxnBND.d.mts} +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +6 -5
- package/dist/index.node.d.mts +6 -6
- package/dist/index.node.mjs +3 -3
- package/dist/inspect/app.js +41 -41
- package/dist/inspect/engine.js +2 -2
- package/dist/{inspect-cGcP8ZO9.mjs → inspect-CniRRiJ2.mjs} +6 -6
- package/dist/inspect-HlHh7OXa.mjs +2 -0
- package/dist/{local-CsleYuyM.mjs → local-CWLPYoiY.mjs} +130 -359
- package/dist/{main-D97xuqWZ.mjs → main-aVEEoc60.mjs} +429 -139
- package/dist/{memory-BvVoglGv.mjs → memory-DhduVbUu.mjs} +2 -2
- package/dist/{mentions-CT2bN5eP.mjs → mentions-DfZGp3B-.mjs} +1 -1
- package/dist/{middleware-BF9vnPPS.mjs → middleware-0DUFrav-.mjs} +2 -2
- package/dist/{origin-DLCmrwmE.mjs → origin-DAyYeDuW.mjs} +7 -36
- package/dist/{page-6BTCZWGY.mjs → page-BD6ygU49.mjs} +2 -2
- package/dist/page-BiJVe-7R.mjs +2 -0
- package/dist/{provider-YqkF1E2k.d.mts → provider-dY54GFNz.d.mts} +1 -25
- package/dist/{routes-CAjd5ARa.d.mts → routes-By9lmvUD.d.mts} +1 -63
- package/dist/{schemas-AZkxk06N.mjs → schemas-DAzSsgWk.mjs} +8 -3
- package/dist/{serve-Cs-e0Jke.mjs → serve-BnBqi0sw.mjs} +5 -5
- package/dist/{server-CIfMdIt3.mjs → server-Bcpkt6TS.mjs} +79 -131
- package/dist/{serving-B4l0nLng.mjs → serving-hcxzaCCO.mjs} +1 -1
- package/dist/{sql-Bv-RQu8n.mjs → sql-P9g-rLIF.mjs} +3 -3
- package/dist/{sqlite-D4mkYihG.mjs → sqlite-B3rCcIof.mjs} +2 -2
- package/dist/{sqlite-db-BraLvHtf.mjs → sqlite-db-D0Fyju-4.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/{tokens-CrrXAVGz.mjs → tokens-BSMpTPEe.mjs} +4 -4
- package/docs/01-board/01-mounting.md +12 -17
- package/docs/01-board/03-identity.md +45 -39
- package/docs/01-board/04-messages.md +3 -1
- package/docs/01-board/05-reading.md +8 -2
- package/docs/01-board/06-watchers.md +15 -10
- package/docs/01-board/07-schedules.md +6 -2
- package/docs/01-board/09-access.md +59 -111
- package/docs/02-sync/01-overview.md +5 -2
- package/docs/02-sync/03-slack.md +12 -12
- package/docs/03-guides/01-coding-agents.md +18 -22
- package/docs/03-guides/02-inspector.md +4 -5
- package/docs/03-guides/03-ci.md +7 -26
- package/docs/03-guides/04-triage.md +2 -2
- package/docs/03-guides/05-agent-factory.md +7 -9
- package/docs/03-guides/06-sandboxed-agents.md +149 -0
- package/docs/04-reference/01-cli.md +59 -90
- package/docs/04-reference/02-board.md +53 -37
- package/docs/04-reference/03-http.md +32 -53
- package/docs/04-reference/05-conformance.md +37 -18
- package/docs/index.md +4 -4
- package/package.json +1 -1
- package/dist/digest-D32GV_mX.mjs +0 -4
- package/dist/exports-FyRBIAMs.d.mts +0 -4
- package/dist/inspect-CLy6FrOZ.mjs +0 -2
- package/dist/page-BnY8FhPn.mjs +0 -2
|
@@ -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 { cn as ExternalFile, ct as SourceJoin, dt as SourceRead, en as Actor, ln as ExternalLink, on as ExternalAuthor } from "./routes-By9lmvUD.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-dY54GFNz.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-CrEVjASe.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-QRD0U9AQ.mjs";
|
|
2
2
|
export { commands, filters, globalOptions, groups, option, options, usage };
|
package/dist/cli-embedded.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { f as Board } from "./backend-DMrK55mU.mjs";
|
|
2
|
+
import "./index-CydxnBND.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
|
|
@@ -101,7 +101,11 @@ export type VbOptions = {
|
|
|
101
101
|
writeFile?: (path: string, data: Uint8Array) => Promise<void> | PromiseLike<void>;
|
|
102
102
|
/** The text `-` reads, as stdin would hold it. */
|
|
103
103
|
stdin?: string;
|
|
104
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Ends the command and its requests: `tail` and `wait` as Ctrl-C does (0), any other with a
|
|
106
|
+
* failure, 1 when it's `AbortSignal.timeout()`'s and 130 otherwise. A write it stopped may have
|
|
107
|
+
* landed. Every request ends, whether or not the backend heeds it, on a handle `board()` made.
|
|
108
|
+
*/
|
|
105
109
|
signal?: AbortSignal;
|
|
106
110
|
/** Commands this caller doesn't run, which answer 2: `['tail', 'wait']` for an agent's tool. */
|
|
107
111
|
refuse?: string[];
|
|
@@ -115,9 +119,10 @@ export type VbResult = {
|
|
|
115
119
|
/**
|
|
116
120
|
* Runs the vb command `argv` (`['read', '42']`, `['reply', '42', 'on it']`) on `board`, in this
|
|
117
121
|
* process, and returns what the CLI would print. `board` already says which board and who, so
|
|
118
|
-
* `--url`
|
|
122
|
+
* `--url` doesn't apply, and the commands about your machine (`whoami`, `identity`,
|
|
119
123
|
* `hooks`, `serve`, `inspect`) answer 2. Calls run one at a time, in order, so
|
|
120
|
-
* `tail` and `wait`, which hold the rest until they end, need `options.signal
|
|
124
|
+
* `tail` and `wait`, which hold the rest until they end, need `options.signal`; it bounds any
|
|
125
|
+
* other call too: `{ signal: AbortSignal.timeout(30_000) }`.
|
|
121
126
|
*/
|
|
122
127
|
export declare function vb(board: Board, argv: string[], options?: VbOptions): Promise<VbResult>;
|
|
123
128
|
//#endregion
|
package/dist/cli-embedded.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { h as VERSION } from "./origin-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { h as VERSION } from "./origin-DAyYeDuW.mjs";
|
|
2
|
+
import { r as stoppedBy } from "./exports-BfNXPHN_.mjs";
|
|
3
|
+
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-aVEEoc60.mjs";
|
|
4
|
+
import { t as PAGE_SHA256 } from "./digest-CKC0Rmy1.mjs";
|
|
4
5
|
//#region src/cli/embedded.ts
|
|
5
6
|
/**
|
|
6
7
|
* The inspector's page as this version of board's npm package has it, for an app that bundles
|
|
@@ -65,9 +66,10 @@ let queue = Promise.resolve();
|
|
|
65
66
|
/**
|
|
66
67
|
* Runs the vb command `argv` (`['read', '42']`, `['reply', '42', 'on it']`) on `board`, in this
|
|
67
68
|
* process, and returns what the CLI would print. `board` already says which board and who, so
|
|
68
|
-
* `--url`
|
|
69
|
+
* `--url` doesn't apply, and the commands about your machine (`whoami`, `identity`,
|
|
69
70
|
* `hooks`, `serve`, `inspect`) answer 2. Calls run one at a time, in order, so
|
|
70
|
-
* `tail` and `wait`, which hold the rest until they end, need `options.signal
|
|
71
|
+
* `tail` and `wait`, which hold the rest until they end, need `options.signal`; it bounds any
|
|
72
|
+
* other call too: `{ signal: AbortSignal.timeout(30_000) }`.
|
|
71
73
|
*/
|
|
72
74
|
function vb(board, argv, options = {}) {
|
|
73
75
|
const word = commandWord(argv);
|
|
@@ -90,7 +92,7 @@ function vb(board, argv, options = {}) {
|
|
|
90
92
|
name: "board",
|
|
91
93
|
commands: {}
|
|
92
94
|
}, {
|
|
93
|
-
board,
|
|
95
|
+
board: options.signal && stoppedBy(board, options.signal) || board,
|
|
94
96
|
write: (chunk) => void (stdout += typeof chunk === "string" ? chunk : decoder.decode(chunk, { stream: true })),
|
|
95
97
|
error: (chunk) => void (stderr += chunk),
|
|
96
98
|
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 { f as projectDir } from "./server-
|
|
4
|
-
import { r as main } from "./main-
|
|
5
|
-
import { n as stopped, r as startInspector } from "./inspect-
|
|
2
|
+
import { a as option } from "./commands-QRD0U9AQ.mjs";
|
|
3
|
+
import { f as projectDir } from "./server-Bcpkt6TS.mjs";
|
|
4
|
+
import { r as main } from "./main-aVEEoc60.mjs";
|
|
5
|
+
import { n as stopped, r as startInspector } from "./inspect-CniRRiJ2.mjs";
|
|
6
6
|
import { appendFile, readFile } from "node:fs/promises";
|
|
7
7
|
import { join } from "node:path";
|
|
8
8
|
//#region src/cli/local.ts
|
|
@@ -19,7 +19,7 @@ async function ignoreLog(root) {
|
|
|
19
19
|
const local = { serve: {
|
|
20
20
|
spec: {
|
|
21
21
|
name: "serve",
|
|
22
|
-
description: "run a board on this machine (127.0.0.1:4100, no sync) and open the inspector: other commands reach it with --url or BOARD_URL. Its log lives in .board/, and you're local:user:<your OS user>
|
|
22
|
+
description: "run a board on this machine (127.0.0.1:4100, no sync) and open the inspector: other commands reach it with --url or BOARD_URL. Its log lives in .board/, and you're local:user:<your OS user>",
|
|
23
23
|
arguments: [],
|
|
24
24
|
options: [
|
|
25
25
|
option("port", "the port to listen on (default: 4100)"),
|
|
@@ -36,12 +36,10 @@ const local = { serve: {
|
|
|
36
36
|
if (args.length > 0) throw usage("serve takes no arguments: pass its port with --port, and its directory with --dir.");
|
|
37
37
|
const port = portFlag();
|
|
38
38
|
const root = projectDir();
|
|
39
|
-
const {
|
|
40
|
-
const handle = flags.handle ?? process.env.BOARD_HANDLE;
|
|
39
|
+
const { serveLocal } = await import("./serve-BnBqi0sw.mjs");
|
|
41
40
|
const local = await serveLocal({
|
|
42
41
|
dir: flags.dir ?? join(root, ".board"),
|
|
43
|
-
...port !== void 0 ? { port } : {}
|
|
44
|
-
...handle ? { handle: localHandle(handle) } : {}
|
|
42
|
+
...port !== void 0 ? { port } : {}
|
|
45
43
|
});
|
|
46
44
|
let inspector = null;
|
|
47
45
|
try {
|
|
@@ -49,10 +47,7 @@ const local = { serve: {
|
|
|
49
47
|
out(`serving a local board at ${local.url} as ${local.principal}, its log in ${local.dir} (Ctrl-C to stop)`);
|
|
50
48
|
out(`reach it with --url ${local.url}, or BOARD_URL=${local.url}`);
|
|
51
49
|
if (!flags["no-inspect"]) {
|
|
52
|
-
const { board } = connection(local.url, {
|
|
53
|
-
token: local.token,
|
|
54
|
-
handle: local.handle
|
|
55
|
-
});
|
|
50
|
+
const { board } = connection(local.url, { token: local.token });
|
|
56
51
|
inspector = await startInspector({ client: board.as(null) });
|
|
57
52
|
out(`inspector at ${inspector.url}`);
|
|
58
53
|
if (!flags["no-open"]) openBrowser(inspector.url);
|
|
@@ -31,6 +31,8 @@ type CliCommand = {
|
|
|
31
31
|
/** Other names it runs by: `rm` for `delete`. */
|
|
32
32
|
readonly aliases?: readonly string[];
|
|
33
33
|
readonly description: string;
|
|
34
|
+
/** The options most runs of it take, written after its usage in the list of commands: what a reader of that list alone would otherwise not know it has. */
|
|
35
|
+
readonly brief?: string;
|
|
34
36
|
readonly arguments: readonly CliArgument[];
|
|
35
37
|
/** Its own options: the filters (with `filters`) and the global options apply too. */
|
|
36
38
|
readonly options: readonly CliOption[];
|
|
@@ -79,12 +81,12 @@ declare const options: {
|
|
|
79
81
|
readonly text: {
|
|
80
82
|
readonly type: 'string';
|
|
81
83
|
readonly value: 'words';
|
|
82
|
-
readonly description: 'containing
|
|
84
|
+
readonly description: 'containing this text, as one phrase (a substring, not word search)';
|
|
83
85
|
};
|
|
84
86
|
readonly after: {
|
|
85
87
|
readonly type: 'string';
|
|
86
88
|
readonly value: 'id';
|
|
87
|
-
readonly description: 'after a message or a cursor';
|
|
89
|
+
readonly description: 'only what came after a message or a cursor (read and wait print one)';
|
|
88
90
|
};
|
|
89
91
|
readonly url: {
|
|
90
92
|
readonly type: 'string';
|
|
@@ -121,15 +123,6 @@ declare const options: {
|
|
|
121
123
|
readonly value: 'url';
|
|
122
124
|
readonly description: "the profile's avatar, with --as";
|
|
123
125
|
};
|
|
124
|
-
readonly human: {
|
|
125
|
-
readonly type: 'boolean';
|
|
126
|
-
readonly description: 'write as yourself, with no profile or session';
|
|
127
|
-
};
|
|
128
|
-
readonly handle: {
|
|
129
|
-
readonly type: 'string';
|
|
130
|
-
readonly value: 'h';
|
|
131
|
-
readonly description: 'your handle (default: your Vercel username)';
|
|
132
|
-
};
|
|
133
126
|
readonly json: {
|
|
134
127
|
readonly type: 'boolean';
|
|
135
128
|
readonly description: 'JSON, for programs';
|
|
@@ -216,7 +209,7 @@ declare const options: {
|
|
|
216
209
|
readonly timeout: {
|
|
217
210
|
readonly type: 'string';
|
|
218
211
|
readonly value: 'duration';
|
|
219
|
-
readonly description: 'how long to wait (default: 30m)';
|
|
212
|
+
readonly description: 'how long to wait: 30s, 10m, or a bare number of seconds (default: 30m)';
|
|
220
213
|
};
|
|
221
214
|
readonly 'no-open': {
|
|
222
215
|
readonly type: 'boolean';
|
|
@@ -225,7 +218,7 @@ declare const options: {
|
|
|
225
218
|
readonly in: {
|
|
226
219
|
readonly type: 'string';
|
|
227
220
|
readonly value: 'duration';
|
|
228
|
-
readonly description: 'once, this long from now, e.g. 1d';
|
|
221
|
+
readonly description: 'once, this long from now, e.g. 90s, 5m, 1d';
|
|
229
222
|
};
|
|
230
223
|
readonly at: {
|
|
231
224
|
readonly type: 'string';
|
|
@@ -256,8 +249,8 @@ declare const options: {
|
|
|
256
249
|
readonly can: {
|
|
257
250
|
readonly type: 'string';
|
|
258
251
|
readonly multiple: true;
|
|
259
|
-
readonly value: '
|
|
260
|
-
readonly description: 'what
|
|
252
|
+
readonly value: 'pattern=perms';
|
|
253
|
+
readonly description: 'what they may do, repeated: perms, all, or none';
|
|
261
254
|
};
|
|
262
255
|
readonly user: {
|
|
263
256
|
readonly type: 'string';
|
|
@@ -433,21 +426,6 @@ declare const options: {
|
|
|
433
426
|
readonly type: 'boolean';
|
|
434
427
|
readonly description: 'closed to everyone but you, in the same write';
|
|
435
428
|
};
|
|
436
|
-
readonly profile: {
|
|
437
|
-
readonly type: 'string';
|
|
438
|
-
readonly value: 'name';
|
|
439
|
-
readonly description: 'the profile every request with it writes as';
|
|
440
|
-
};
|
|
441
|
-
readonly session: {
|
|
442
|
-
readonly type: 'string';
|
|
443
|
-
readonly value: 'id';
|
|
444
|
-
readonly description: 'the session every request with it writes from';
|
|
445
|
-
};
|
|
446
|
-
readonly expires: {
|
|
447
|
-
readonly type: 'string';
|
|
448
|
-
readonly value: 'duration';
|
|
449
|
-
readonly description: 'how long it lives (default: 30d, at most 90d; 1d and 7d on Vercel\'s board)';
|
|
450
|
-
};
|
|
451
429
|
readonly schema: {
|
|
452
430
|
readonly type: 'string';
|
|
453
431
|
readonly value: 'json|@file';
|
|
@@ -31,12 +31,12 @@ const options = {
|
|
|
31
31
|
text: {
|
|
32
32
|
type: "string",
|
|
33
33
|
value: "words",
|
|
34
|
-
description: "containing
|
|
34
|
+
description: "containing this text, as one phrase (a substring, not word search)"
|
|
35
35
|
},
|
|
36
36
|
after: {
|
|
37
37
|
type: "string",
|
|
38
38
|
value: "id",
|
|
39
|
-
description: "after a message or a cursor"
|
|
39
|
+
description: "only what came after a message or a cursor (read and wait print one)"
|
|
40
40
|
},
|
|
41
41
|
url: {
|
|
42
42
|
type: "string",
|
|
@@ -73,15 +73,6 @@ const options = {
|
|
|
73
73
|
value: "url",
|
|
74
74
|
description: "the profile's avatar, with --as"
|
|
75
75
|
},
|
|
76
|
-
human: {
|
|
77
|
-
type: "boolean",
|
|
78
|
-
description: "write as yourself, with no profile or session"
|
|
79
|
-
},
|
|
80
|
-
handle: {
|
|
81
|
-
type: "string",
|
|
82
|
-
value: "h",
|
|
83
|
-
description: "your handle (default: your Vercel username)"
|
|
84
|
-
},
|
|
85
76
|
json: {
|
|
86
77
|
type: "boolean",
|
|
87
78
|
description: "JSON, for programs"
|
|
@@ -168,7 +159,7 @@ const options = {
|
|
|
168
159
|
timeout: {
|
|
169
160
|
type: "string",
|
|
170
161
|
value: "duration",
|
|
171
|
-
description: "how long to wait (default: 30m)"
|
|
162
|
+
description: "how long to wait: 30s, 10m, or a bare number of seconds (default: 30m)"
|
|
172
163
|
},
|
|
173
164
|
"no-open": {
|
|
174
165
|
type: "boolean",
|
|
@@ -177,7 +168,7 @@ const options = {
|
|
|
177
168
|
in: {
|
|
178
169
|
type: "string",
|
|
179
170
|
value: "duration",
|
|
180
|
-
description: "once, this long from now, e.g. 1d"
|
|
171
|
+
description: "once, this long from now, e.g. 90s, 5m, 1d"
|
|
181
172
|
},
|
|
182
173
|
at: {
|
|
183
174
|
type: "string",
|
|
@@ -208,8 +199,8 @@ const options = {
|
|
|
208
199
|
can: {
|
|
209
200
|
type: "string",
|
|
210
201
|
multiple: true,
|
|
211
|
-
value: "
|
|
212
|
-
description: "what
|
|
202
|
+
value: "pattern=perms",
|
|
203
|
+
description: "what they may do, repeated: perms, all, or none"
|
|
213
204
|
},
|
|
214
205
|
user: {
|
|
215
206
|
type: "string",
|
|
@@ -385,21 +376,6 @@ const options = {
|
|
|
385
376
|
type: "boolean",
|
|
386
377
|
description: "closed to everyone but you, in the same write"
|
|
387
378
|
},
|
|
388
|
-
profile: {
|
|
389
|
-
type: "string",
|
|
390
|
-
value: "name",
|
|
391
|
-
description: "the profile every request with it writes as"
|
|
392
|
-
},
|
|
393
|
-
session: {
|
|
394
|
-
type: "string",
|
|
395
|
-
value: "id",
|
|
396
|
-
description: "the session every request with it writes from"
|
|
397
|
-
},
|
|
398
|
-
expires: {
|
|
399
|
-
type: "string",
|
|
400
|
-
value: "duration",
|
|
401
|
-
description: "how long it lives (default: 30d, at most 90d; 1d and 7d on Vercel's board)"
|
|
402
|
-
},
|
|
403
379
|
schema: {
|
|
404
380
|
type: "string",
|
|
405
381
|
value: "json|@file",
|
|
@@ -457,8 +433,6 @@ const globalOptions = [
|
|
|
457
433
|
"team",
|
|
458
434
|
"as",
|
|
459
435
|
"avatar",
|
|
460
|
-
"human",
|
|
461
|
-
"handle",
|
|
462
436
|
"json",
|
|
463
437
|
"help",
|
|
464
438
|
"version"
|
|
@@ -488,7 +462,7 @@ const commands = [
|
|
|
488
462
|
{
|
|
489
463
|
group: "you",
|
|
490
464
|
name: "whoami",
|
|
491
|
-
description: "who am I, on which board, with which
|
|
465
|
+
description: "who am I, on which board, with which credential, and what I can do",
|
|
492
466
|
arguments: [],
|
|
493
467
|
options: [],
|
|
494
468
|
examples: [{
|
|
@@ -496,67 +470,6 @@ const commands = [
|
|
|
496
470
|
value: "whoami"
|
|
497
471
|
}]
|
|
498
472
|
},
|
|
499
|
-
{
|
|
500
|
-
group: "you",
|
|
501
|
-
name: "tokens",
|
|
502
|
-
description: "tokens that act as you, narrowed, for a widget, a sandbox, or a script",
|
|
503
|
-
arguments: [],
|
|
504
|
-
options: [],
|
|
505
|
-
runsWithoutSubcommand: true,
|
|
506
|
-
examples: [{
|
|
507
|
-
name: "list your tokens",
|
|
508
|
-
value: "tokens"
|
|
509
|
-
}],
|
|
510
|
-
subcommands: [
|
|
511
|
-
{
|
|
512
|
-
name: "list",
|
|
513
|
-
default: true,
|
|
514
|
-
description: "your live tokens, or with manage, everyone's",
|
|
515
|
-
arguments: [],
|
|
516
|
-
options: [],
|
|
517
|
-
examples: [{
|
|
518
|
-
name: "list your tokens",
|
|
519
|
-
value: "tokens list"
|
|
520
|
-
}]
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
name: "create",
|
|
524
|
-
description: "mint one, and print its secret once",
|
|
525
|
-
arguments: [{
|
|
526
|
-
name: "name",
|
|
527
|
-
required: true,
|
|
528
|
-
description: "what it is for, e.g. feedback-widget"
|
|
529
|
-
}],
|
|
530
|
-
options: [
|
|
531
|
-
option("can"),
|
|
532
|
-
option("profile"),
|
|
533
|
-
option("session"),
|
|
534
|
-
option("expires")
|
|
535
|
-
],
|
|
536
|
-
examples: [{
|
|
537
|
-
name: "a token that only posts feedback",
|
|
538
|
-
value: "tokens create feedback-widget --can feedback/=post"
|
|
539
|
-
}, {
|
|
540
|
-
name: "a week's token for a sandbox agent",
|
|
541
|
-
value: "tokens create sandbox-7 --can dev/=read,post,react --profile lemur --expires 7d"
|
|
542
|
-
}]
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
name: "revoke",
|
|
546
|
-
description: "stop one, and every token minted with it",
|
|
547
|
-
arguments: [{
|
|
548
|
-
name: "token",
|
|
549
|
-
required: true,
|
|
550
|
-
description: "its ID, as tokens shows it (t12)"
|
|
551
|
-
}],
|
|
552
|
-
options: [],
|
|
553
|
-
examples: [{
|
|
554
|
-
name: "revoke a token",
|
|
555
|
-
value: "tokens revoke t12"
|
|
556
|
-
}]
|
|
557
|
-
}
|
|
558
|
-
]
|
|
559
|
-
},
|
|
560
473
|
{
|
|
561
474
|
group: "the board",
|
|
562
475
|
name: "grants",
|
|
@@ -842,12 +755,21 @@ const commands = [
|
|
|
842
755
|
{
|
|
843
756
|
name: "list the open bugs",
|
|
844
757
|
value: "read dev --label kind=bug --label state=open"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
name: "only what's new since the cursor an earlier read printed",
|
|
761
|
+
value: "read dev --after 1042"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
name: "search every channel for a phrase",
|
|
765
|
+
value: "read --text \"times out\""
|
|
845
766
|
}
|
|
846
767
|
]
|
|
847
768
|
},
|
|
848
769
|
{
|
|
849
770
|
group: "messages",
|
|
850
771
|
name: "post",
|
|
772
|
+
brief: "[--label k=v]... [--attach file]...",
|
|
851
773
|
description: "a new thread in a channel, or with an ID, a reply in its thread",
|
|
852
774
|
arguments: [{
|
|
853
775
|
name: "channel|id",
|
|
@@ -911,6 +833,7 @@ const commands = [
|
|
|
911
833
|
{
|
|
912
834
|
group: "messages",
|
|
913
835
|
name: "schedule",
|
|
836
|
+
brief: "(--in 5m | --at time | --every 30m)",
|
|
914
837
|
description: "post later, as you: once (--in or --at), or repeating (--every) until a stop or until canceled",
|
|
915
838
|
arguments: [{
|
|
916
839
|
name: "channel|id",
|
|
@@ -956,11 +879,12 @@ const commands = [
|
|
|
956
879
|
{
|
|
957
880
|
group: "messages",
|
|
958
881
|
name: "schedules",
|
|
959
|
-
|
|
882
|
+
brief: "[--by handle] [--all]",
|
|
883
|
+
description: "pending schedules, a thread's with a message ID, or one by its own ID",
|
|
960
884
|
arguments: [{
|
|
961
885
|
name: "id",
|
|
962
886
|
required: false,
|
|
963
|
-
description: "a message in the thread"
|
|
887
|
+
description: "a message in the thread, or a schedule (s12): sent, canceled, or pending"
|
|
964
888
|
}],
|
|
965
889
|
options: [
|
|
966
890
|
option("by", "scheduled by a handle"),
|
|
@@ -1024,6 +948,7 @@ const commands = [
|
|
|
1024
948
|
{
|
|
1025
949
|
group: "messages",
|
|
1026
950
|
name: "label",
|
|
951
|
+
brief: "[--if-unset k] [--unset k]",
|
|
1027
952
|
description: "set labels on a message, or remove them",
|
|
1028
953
|
arguments: [id(), {
|
|
1029
954
|
name: "k=v",
|
|
@@ -1155,9 +1080,9 @@ const commands = [
|
|
|
1155
1080
|
name: "download",
|
|
1156
1081
|
description: "save an attachment (its name, here, by default; - for stdout)",
|
|
1157
1082
|
arguments: [{
|
|
1158
|
-
name: "attachment",
|
|
1083
|
+
name: "attachment-id",
|
|
1159
1084
|
required: true,
|
|
1160
|
-
description: "the ID
|
|
1085
|
+
description: "the ID at the end of a file line when you read its thread, not the file's name"
|
|
1161
1086
|
}, {
|
|
1162
1087
|
name: "path",
|
|
1163
1088
|
required: false,
|
|
@@ -1235,17 +1160,21 @@ const commands = [
|
|
|
1235
1160
|
{
|
|
1236
1161
|
group: "live",
|
|
1237
1162
|
name: "wait",
|
|
1163
|
+
brief: "[--after id] [--timeout 10m]",
|
|
1238
1164
|
description: "block for the next match and print it",
|
|
1239
1165
|
arguments: [{
|
|
1240
|
-
name: "channel",
|
|
1166
|
+
name: "channel|id",
|
|
1241
1167
|
required: false,
|
|
1242
|
-
description: "a channel,
|
|
1168
|
+
description: "a channel, a path prefix (dev/), or a message's ID: what comes after it in its thread"
|
|
1243
1169
|
}],
|
|
1244
1170
|
options: [option("timeout")],
|
|
1245
1171
|
filters: true,
|
|
1246
1172
|
examples: [{
|
|
1247
|
-
name: "wait for a mention",
|
|
1173
|
+
name: "wait for a mention: when none comes in time it says \"Nothing matched\" and exits 1",
|
|
1248
1174
|
value: "wait dev --mentions --timeout 10m"
|
|
1175
|
+
}, {
|
|
1176
|
+
name: "wait for a reply in a thread, from the last message you read so none is missed",
|
|
1177
|
+
value: "wait --re 812 --after 815 --timeout 10m"
|
|
1249
1178
|
}]
|
|
1250
1179
|
},
|
|
1251
1180
|
{
|