@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
package/README.md
CHANGED
|
@@ -19,11 +19,12 @@ at `node_modules/@vercel/board/docs`. Start with the [quickstart](./docs/01-quic
|
|
|
19
19
|
## From your terminal
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
+
npm i -g vercel && vercel login # the Vercel CLI and your login, once
|
|
22
23
|
vercel link # the CLI uses your team's board
|
|
23
24
|
id=$(npx vb post errors-www "deploy failed on a1b2c3") # prints the new message's ID
|
|
24
|
-
npx vb reply "$id" "rolled back to d4e5f6"
|
|
25
|
+
last=$(npx vb reply "$id" "rolled back to d4e5f6")
|
|
25
26
|
npx vb read errors-www
|
|
26
|
-
npx vb wait
|
|
27
|
+
npx vb wait "$last" --timeout 30m # blocks until someone answers
|
|
27
28
|
npx vb inspect # the board in your browser, as you
|
|
28
29
|
```
|
|
29
30
|
|
|
@@ -90,7 +91,7 @@ $ vb tasks create work "fix CVE-123 in acme/web" --label step=fix
|
|
|
90
91
|
812
|
|
91
92
|
$ export BOARD_PROFILE=claude
|
|
92
93
|
$ vb tasks claim --ready work/ --label step=fix --wait 10m
|
|
93
|
-
#812 yours for
|
|
94
|
+
#812 yours for 5m fix CVE-123 in acme/web
|
|
94
95
|
$ vb tasks complete 812 "fixed in a1b2c3, tests pass"
|
|
95
96
|
completed 812
|
|
96
97
|
```
|
|
@@ -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-DDfXnZ2b.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 { Cn 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, y as explainGrants } from "./auth-
|
|
1
|
+
import { An as GrantChangeRefusal, Bn as union, Cn as Access, Dn as FULL_ACCESS, En as ChannelPattern, Fn as Permission, Gn as CAN_MAX, Ln as checkGrantChange, Mn as InvalidCan, On as Grant, Pn as PERMISSIONS, Rn as compileAccess, Tn as Can, Vn as Actor, Wn as Author, jn as GrantShape, kn as GrantChange, wn as AccessSummary, zn as parseCan } from "./routes-DNmQSOvQ.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-ULldUvir.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
|
|
@@ -25,4 +25,4 @@ type ResolvedActor = {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare function resolveActor(principal: Principal, claims: Claims): ResolvedActor;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { type Access, type AccessSummary, type Authenticate, type AuthenticateContext, CAN_MAX, type Caller, type CallerRequest, type Can, type ChannelPattern, type Claims, DEFAULT_CAN, type DecidingGrant, FULL_ACCESS, type Grant, type GrantChange, type GrantChangeRefusal, type GrantExplanation, type GrantFacts, type GrantShape, type GrantSource, type HostPrincipal, InvalidCan, type IssuerConfig, type Known, type OidcTokensOptions, PERMISSIONS, type Permission, type Principal, type PrincipalKind, checkGrantChange, compileAccess, explainGrants, grantAccess, parseCan, union };
|
|
28
|
+
export { type Access, type AccessSummary, type Authenticate, type AuthenticateContext, CAN_MAX, type Caller, type CallerRequest, type Can, type ChannelPattern, type Claims, DEFAULT_CAN, type DecidingGrant, FULL_ACCESS, type Grant, type GrantChange, type GrantChangeRefusal, type GrantExplanation, type GrantFacts, type GrantShape, type GrantSource, type HostPrincipal, InvalidCan, type IssuerConfig, type Known, type OidcTokensOptions, PERMISSIONS, type Permission, type Principal, type PrincipalKind, checkGrantChange, compileAccess, explainGrants, grantAccess, parseCan, subPrefix, union };
|
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, t as DEFAULT_CAN } from "./auth-
|
|
4
|
-
import { a as resolveActor } from "./actors-
|
|
5
|
-
import { t as oidcTokens } from "./tokens-
|
|
6
|
-
export { CAN_MAX, DEFAULT_CAN, FULL_ACCESS, InvalidCan, PERMISSIONS, checkGrantChange, compileAccess, explainGrants, grantAccess, oidcTokens, parseCan, resolveActor, union };
|
|
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-HzqFpgL_.mjs";
|
|
3
|
+
import { D as explainGrants, O as grantAccess, k as subPrefix, t as DEFAULT_CAN } from "./auth-D9ycDQK0.mjs";
|
|
4
|
+
import { a as resolveActor } from "./actors-D-u6bitG.mjs";
|
|
5
|
+
import { t as oidcTokens } from "./tokens-B3gXkQCs.mjs";
|
|
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-DDfXnZ2b.mjs";
|
|
4
|
+
import { u as parseCan } from "./access-HzqFpgL_.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-DDfXnZ2b.mjs";
|
|
2
|
+
import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-HzqFpgL_.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
|
|
@@ -27,10 +27,24 @@ function levelOf(principal, facts) {
|
|
|
27
27
|
case "oidc": return caller.kind === "oidc" && caller.issuer === principal.issuer && Object.entries(principal.claims).every(([name, allowed]) => {
|
|
28
28
|
const value = caller.claims[name];
|
|
29
29
|
if (value === void 0) return false;
|
|
30
|
-
|
|
30
|
+
const given = String(value);
|
|
31
|
+
return (typeof allowed === "string" ? [allowed] : allowed).some((one) => {
|
|
32
|
+
const prefix = name === "sub" ? subPrefix(one) : null;
|
|
33
|
+
return prefix === null ? given === one : given.startsWith(prefix);
|
|
34
|
+
});
|
|
31
35
|
}) ? "principal" : null;
|
|
32
36
|
}
|
|
33
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* What a `sub` pattern matches the start of: `project_path:acme/api:` for `project_path:acme/api:*`.
|
|
40
|
+
* Null for any other value, which matches exactly: a `*` only ends a pattern, right after a `:` or
|
|
41
|
+
* a `/`, so no pattern lets `acme-evil` in for `acme`.
|
|
42
|
+
*/
|
|
43
|
+
function subPrefix(value) {
|
|
44
|
+
if (!value.endsWith("*")) return null;
|
|
45
|
+
const prefix = value.slice(0, -1);
|
|
46
|
+
return /.[:/]$/.test(prefix) && !prefix.includes("*") ? prefix : null;
|
|
47
|
+
}
|
|
34
48
|
const RANK = {
|
|
35
49
|
principal: 0,
|
|
36
50
|
group: 1,
|
|
@@ -202,16 +216,23 @@ function checkIssuer(issuer, trusted) {
|
|
|
202
216
|
const other = trusted.find((candidate) => candidate !== issuer && /^https:/.test(candidate) && issuerName(candidate) === name);
|
|
203
217
|
if (other !== void 0) throw invalidGrant(`issuers ${other} and ${issuer} name the same principals, oidc:${name}:<sub>: use ${other}`);
|
|
204
218
|
}
|
|
205
|
-
/**
|
|
206
|
-
|
|
219
|
+
/**
|
|
220
|
+
* An issuer's claims, keys and lists sorted. They name a `sub`, exact or a pattern `subPrefix`
|
|
221
|
+
* takes: an issuer signs tokens for everyone it serves, and only `sub` says whose a token is. A
|
|
222
|
+
* removal is checked for neither, so a principal stored without one can still be taken out.
|
|
223
|
+
*/
|
|
224
|
+
function checkClaims(issuer, given, removal) {
|
|
207
225
|
const entries = typeof given === "object" && given !== null ? Object.entries(given) : [];
|
|
208
|
-
if (entries.
|
|
226
|
+
if (!removal && !entries.some(([name]) => name === "sub")) throw invalidGrant(`name a sub for ${issuer}, like project_path:acme/api:*: it signs tokens for everyone it serves, and only a sub says whose a token is`);
|
|
209
227
|
if (entries.length > GRANT_CLAIMS_MAX) throw invalidGrant(`an oidc principal names at most ${GRANT_CLAIMS_MAX} claims`);
|
|
210
228
|
const claims = {};
|
|
211
229
|
for (const [name, value] of entries.sort(([a], [b]) => a.localeCompare(b))) {
|
|
212
230
|
const values = typeof value === "string" ? [value] : Array.isArray(value) ? [...new Set(value)] : [];
|
|
213
231
|
if (values.length === 0 || values.some((one) => typeof one !== "string" || one === "")) throw invalidGrant(`claim ${name} has no value to match: give a string, or a list of them`);
|
|
214
232
|
if (values.length > GRANT_VALUES_MAX || values.some((one) => one.length > GRANT_VALUE_MAX)) throw invalidGrant(`claim ${name} lists at most ${GRANT_VALUES_MAX} values of up to ${GRANT_VALUE_MAX} characters`);
|
|
233
|
+
const wild = name === "sub" && !removal ? values.find((one) => one.includes("*") && subPrefix(one) === null) : void 0;
|
|
234
|
+
if (wild === "*") throw invalidGrant(`sub * is everyone ${issuer} serves: name a sub, or how one starts, like project_path:acme/api:*`);
|
|
235
|
+
if (wild !== void 0) throw invalidGrant(`a sub's * goes last, right after a : or a /, like project_path:acme/api:*, got ${wild}`);
|
|
215
236
|
const sorted = values.sort();
|
|
216
237
|
claims[name] = sorted.length === 1 ? sorted[0] : sorted;
|
|
217
238
|
}
|
|
@@ -228,10 +249,11 @@ const workflowPath = (workflow) => workflow.includes("/") ? workflow : `.github/
|
|
|
228
249
|
* A principal as a board that verifies tokens itself keeps it, or a 400 `invalid_grant` that says
|
|
229
250
|
* what to write. Such a board has nothing to look a name up with, so it takes IDs: a user's ID, a
|
|
230
251
|
* project's `prj_…`, and a repository's `owner/name`, which it matches on the token's claims.
|
|
231
|
-
* `removal`: one to take out of a grant, which names a project without its environments
|
|
232
|
-
* board's own team, which a project it names is kept
|
|
233
|
-
* another; null where the board doesn't know it, and
|
|
234
|
-
*
|
|
252
|
+
* `removal`: one to take out of a grant, which names a project without its environments, and an
|
|
253
|
+
* issuer's tokens without a `sub`. `team`: the board's own team, which a project it names is kept
|
|
254
|
+
* on, so it no longer matches once it's moved to another; null where the board doesn't know it, and
|
|
255
|
+
* then a project is its ID on any team. `logins`: the board's verifier names people by their
|
|
256
|
+
* logins, so a user's email is its ID, with nothing to look up.
|
|
235
257
|
*/
|
|
236
258
|
function checkPrincipal(input, trusted, removal = false, team = null, logins = false) {
|
|
237
259
|
switch (input.kind) {
|
|
@@ -293,7 +315,7 @@ function checkPrincipal(input, trusted, removal = false, team = null, logins = f
|
|
|
293
315
|
return {
|
|
294
316
|
kind: "oidc",
|
|
295
317
|
issuer: input.issuer,
|
|
296
|
-
claims: checkClaims(input.issuer, input.claims)
|
|
318
|
+
claims: checkClaims(input.issuer, input.claims, removal)
|
|
297
319
|
};
|
|
298
320
|
case "app":
|
|
299
321
|
if (!APP_ID.test(input.app)) throw invalidGrant(`an app is its client ID, letters, numbers, and ._-, got ${input.app}`);
|
|
@@ -613,4 +635,4 @@ function hostPrincipal(value) {
|
|
|
613
635
|
};
|
|
614
636
|
}
|
|
615
637
|
//#endregion
|
|
616
|
-
export { verifiedIssuers as C, explainGrants as D, wroteAs as E, grantAccess as O, trustedIssuers as S, workflowPath as T, markVerified as _, TOKENS as a, removes as b, checkCan as c, createAuthority as d, fromTokens as f, joined as g, issuerName as h, LOGINS as i, checkGrant as l, hostPrincipal as m, GITHUB_ISSUER as n, VERCEL_ISSUER as o, grantIssuers as p, LOGIN as r, authenticates as s, DEFAULT_CAN as t, checkPrincipal as u, namesByLogin as v, verifiesTokens as w, subFits as x, privateHost as y };
|
|
638
|
+
export { verifiedIssuers as C, explainGrants as D, wroteAs as E, grantAccess as O, trustedIssuers as S, workflowPath as T, markVerified as _, TOKENS as a, removes as b, checkCan as c, createAuthority as d, fromTokens as f, joined as g, issuerName as h, LOGINS as i, subPrefix as k, checkGrant as l, hostPrincipal as m, GITHUB_ISSUER as n, VERCEL_ISSUER as o, grantIssuers as p, LOGIN as r, authenticates as s, DEFAULT_CAN as t, checkPrincipal as u, namesByLogin as v, verifiesTokens as w, subFits as x, privateHost as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cn as Access, Fn as Permission, In as WrittenCan, Nn as Level, Tn as Can } from "./routes-DNmQSOvQ.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. */
|
|
@@ -54,6 +54,12 @@ type GrantFacts<G extends DecidingGrant = DecidingGrant> = {
|
|
|
54
54
|
type GrantSource<G extends DecidingGrant = DecidingGrant> = {
|
|
55
55
|
grant: G;
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* What a `sub` pattern matches the start of: `project_path:acme/api:` for `project_path:acme/api:*`.
|
|
59
|
+
* Null for any other value, which matches exactly: a `*` only ends a pattern, right after a `:` or
|
|
60
|
+
* a `/`, so no pattern lets `acme-evil` in for `acme`.
|
|
61
|
+
*/
|
|
62
|
+
declare function subPrefix(value: string): string | null;
|
|
57
63
|
/**
|
|
58
64
|
* What the caller may do by the board's grants: `caller`, all of it, as `GET /me` says, and `own`,
|
|
59
65
|
* the same without `everyone`'s grants, what `checkGrantChange` judges reach by. At each channel the
|
|
@@ -251,4 +257,4 @@ type HostPrincipal = {
|
|
|
251
257
|
expiresAt?: Date | null;
|
|
252
258
|
};
|
|
253
259
|
//#endregion
|
|
254
|
-
export { GrantFacts as _, DEFAULT_CAN as a, grantAccess as b, IssuerConfig as c, Principal as d, PrincipalKind as f, GrantExplanation as g, DecidingGrant as h, Claims as i, Known as l, Caller as m, AuthenticateContext as n, Granted as o, StoredGrant as p, CallerRequest as r, HostPrincipal as s, Authenticate as t, OidcTokensOptions as u, GrantSource as v, explainGrants as y };
|
|
260
|
+
export { GrantFacts as _, DEFAULT_CAN as a, grantAccess as b, IssuerConfig as c, Principal as d, PrincipalKind as f, GrantExplanation as g, DecidingGrant as h, Claims as i, Known as l, Caller as m, AuthenticateContext as n, Granted as o, StoredGrant as p, CallerRequest as r, HostPrincipal as s, Authenticate as t, OidcTokensOptions as u, GrantSource as v, subPrefix as x, explainGrants as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-
|
|
3
|
-
import { S as Mentioned, f as ProfileOption, i as ErrorOrigin, t as BoardClient } from "./client-
|
|
4
|
-
import { m as SyncProvider } from "./provider-
|
|
1
|
+
import { $ as InboxNextQuery, $t as SyncThreadView, B as Explanation, C as ClaimTaskBody, Cn as Access, Ct as ReleaseTaskBody, D as CreateTaskBody, E as CreateGrantsBody, Et as RevokeGrantBody, F as EditBody, Fn as Permission, Ft as SchemaBody, Gt as SyncCopiesView, Ht as SourceReadQuery, I as EventsPage, Jn as ExternalEvent, Jt as SyncFindView, Kn as Labels, L as EventsQuery, Lt as SchemaView, M as DeleteBody, Mt as SchedulesQuery, N as Discovery, Nn as Level, Ot as ScheduleBody, Q as InboxItem, Rt as SourceJoin, St as RegistrationView, T as CreateChannelBody, Tn as Can, Un as Attachment, V as FailTaskBody, Vn as Actor, Vt as SourceRead, W as GrantBody, Wn as Author, Wt as SyncCopiesQuery, X as InboxAckBody, Yt as SyncImportBody, Z as InboxEntry, Zt as SyncReceiptBody, _ as ChannelView, bn as UploadStartBody, bt as RegisterBody, c as BlockTaskBody, ct as MatchesQuery, dt as MessagesPage, en as SyncedView, et as InboxPushBody, fn as ThreadView, gn as TypingBody, h as ChannelMessagesQuery, i as ActorsQuery, in as TaskNeedsBody, it as LabelBody, j as CreatedTasksQuery, jt as ScheduleView, k as CreateTasksBody, ln as ThreadQuery, lt as Me, m as CancelTaskBody, mn as ThreadsQuery, n as AckBody, on as TasksPage, ot as LinkedQuery, pn as ThreadsPage, pt as PostBody, q as GrantView, qt as SyncFindQuery, r as ActorView, rn as TaskClaim, s as AssignTaskBody, sn as TasksQuery, st as MatchView, tt as InboxQuery, u as BoardEventView, ut as MessageView, v as ChannelsPage, vn as UpdateGrantBody, vt as ReactBody, w as CompleteTaskBody, wt as RenewTaskBody, x as ClaimReadyTaskBody, xn as UploadTicket, y as ChannelsQuery, z as ExplainQuery, zt as SourceJoinBody } from "./routes-DNmQSOvQ.mjs";
|
|
2
|
+
import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-ULldUvir.mjs";
|
|
3
|
+
import { S as Mentioned, f as ProfileOption, i as ErrorOrigin, t as BoardClient } from "./client-CFHunEFn.mjs";
|
|
4
|
+
import { m as SyncProvider } from "./provider-DgGp4Zej.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/server/sandbox.d.ts
|
|
7
7
|
/** How a rule matches a value: a regular expression (RE2), or the value exactly. */
|
|
@@ -142,8 +142,9 @@ type Protocol = {
|
|
|
142
142
|
created: boolean;
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
+
/** Everyone, or with `id`, only those: a board that doesn't narrow by ID may answer everyone. */
|
|
145
146
|
actors: {
|
|
146
|
-
input:
|
|
147
|
+
input: Input<typeof ActorsQuery>;
|
|
147
148
|
output: {
|
|
148
149
|
actors: (Actor & Pick<ActorView, 'verified'>)[];
|
|
149
150
|
cursor: string;
|
|
@@ -829,8 +830,8 @@ type DefaultOptions = {
|
|
|
829
830
|
backend?: undefined;
|
|
830
831
|
/**
|
|
831
832
|
* How requests reach Vercel's API, with credentials it takes: a token for the team. In Node it
|
|
832
|
-
* defaults to the deployment's OIDC token, `BOARD_TOKEN`, or your Vercel login,
|
|
833
|
-
* browser say, pass one. A board at `BOARD_URL` gets the credentials `vb` sends it instead.
|
|
833
|
+
* defaults to the deployment's OIDC token, `BOARD_TOKEN`, a GitHub Actions job's OIDC token, or your Vercel login,
|
|
834
|
+
* never `VERCEL_TOKEN`; elsewhere, a browser say, pass one. A board at `BOARD_URL` gets the credentials `vb` sends it instead.
|
|
834
835
|
*/
|
|
835
836
|
fetch?: typeof fetch;
|
|
836
837
|
};
|
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-RoMUU6QX.mjs";
|
|
2
2
|
export { local };
|
|
@@ -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 { Rt as SourceJoin, Vn as Actor, Vt as SourceRead, Xn as ExternalLink, Yn as ExternalFile, qn as ExternalAuthor } from "./routes-DNmQSOvQ.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-DgGp4Zej.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-DLPIX7Jw.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-B5SXeo4W.mjs";
|
|
2
2
|
export { commands, filters, globalOptions, groups, option, options, usage };
|
package/dist/cli-embedded.d.mts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import { f as Board } from "./backend-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { f as Board } from "./backend-BHN6GTjB.mjs";
|
|
2
|
+
import "./index-Ce3SDZ3Y.mjs";
|
|
3
|
+
//#region src/cli/claims.d.ts
|
|
4
|
+
/** A claim as the CLI keeps it: what its writes carry, and when its lease ends. */
|
|
5
|
+
type HeldClaim = {
|
|
6
|
+
epoch: number;
|
|
7
|
+
token: string;
|
|
8
|
+
until: string;
|
|
9
|
+
};
|
|
10
|
+
/** The claims one run holds on one board, as whoever it writes as, by task. */
|
|
11
|
+
type Claims = {
|
|
12
|
+
get(task: string): Promise<HeldClaim | null>;
|
|
13
|
+
put(task: string, claim: HeldClaim): Promise<void>;
|
|
14
|
+
drop(task: string): Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
3
17
|
//#region src/cli/failure.d.ts
|
|
4
18
|
/**
|
|
5
19
|
* What kind of failure it is, which fixes the exit code: 2 for `usage` and `missing_input`, 130
|
|
@@ -107,6 +121,21 @@ export type VbOptions = {
|
|
|
107
121
|
signal?: AbortSignal;
|
|
108
122
|
/** Commands this caller doesn't run, which answer 2: `['tail', 'wait']` for an agent's tool. */
|
|
109
123
|
refuse?: string[];
|
|
124
|
+
/**
|
|
125
|
+
* Where the task claims this call takes and settles are kept, for the profile it writes as (null
|
|
126
|
+
* as the handle's own), in place of the handle's memory: a store in KV or a file, so a claim one
|
|
127
|
+
* call takes is settled by a call on another handle, process, or instance. It holds tokens, so
|
|
128
|
+
* only you read it, and it's one board's: key it by the board too when it holds several.
|
|
129
|
+
*/
|
|
130
|
+
claims?: (profile: string | null) => Claims;
|
|
131
|
+
/**
|
|
132
|
+
* The token the task claims this call takes carry, in place of one the board makes: a secret you
|
|
133
|
+
* can derive again on any instance, as an HMAC of your run's ID, so a call that has it settles
|
|
134
|
+
* the claim with no store, and claiming a task you hold again answers the claim you hold. It
|
|
135
|
+
* never reaches stdout. Anyone who can label in the task's channel and has it writes through
|
|
136
|
+
* the claim, so keep it as secret as a token.
|
|
137
|
+
*/
|
|
138
|
+
claimToken?: string;
|
|
110
139
|
};
|
|
111
140
|
/** What a `vb()` command printed, and its exit code: 0, 1 for an error (a `wait` that timed out included), 2 for misuse. */
|
|
112
141
|
export type VbResult = {
|
|
@@ -124,4 +153,4 @@ export type VbResult = {
|
|
|
124
153
|
*/
|
|
125
154
|
export declare function vb(board: Board, argv: string[], options?: VbOptions): Promise<VbResult>;
|
|
126
155
|
//#endregion
|
|
127
|
-
export type { Failure, FailureClass, Recovery, Warning };
|
|
156
|
+
export type { Claims, Failure, FailureClass, HeldClaim, Recovery, Warning };
|
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-JUhj5Bl3.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-B_gzTjBR.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
|
|
@@ -85,6 +85,8 @@ function vb(board, argv, options = {}) {
|
|
|
85
85
|
}, {
|
|
86
86
|
board: options.signal && stoppedBy(board, options.signal) || board,
|
|
87
87
|
claimsOf: board,
|
|
88
|
+
...options.claims ? { claims: options.claims } : {},
|
|
89
|
+
...options.claimToken !== void 0 ? { claimToken: options.claimToken } : {},
|
|
88
90
|
write: (chunk) => void (stdout += typeof chunk === "string" ? chunk : decoder.decode(chunk, { stream: true })),
|
|
89
91
|
error: (chunk) => void (stderr += chunk),
|
|
90
92
|
readFile: options.readFile ? async (path) => options.readFile(path) : lacking("--attach and --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 { g as projectDir } from "./server
|
|
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-B5SXeo4W.mjs";
|
|
3
|
+
import { g as projectDir } from "./server-CdBXNUxf.mjs";
|
|
4
|
+
import { r as main } from "./main-B_gzTjBR.mjs";
|
|
5
|
+
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-CrVs-iEi.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-BN7V9e-M.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-Cz1NynhG.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 { $t as SyncThreadView, B as Explanation, H as FiltersInput, Hn as ExternalCopy, I as EventsPage, It as SchemaInput, J as GrantWriteOptions, Jt as SyncFindView, K as GrantInput, Kt as SyncFindInput, Lt as SchemaView, N as Discovery, Nt as SchedulesQueryInput, Q as InboxItem, Qt as SyncReceiptInput, Rt as SourceJoin, St as RegistrationView, Un as Attachment, Vn as Actor, Vt as SourceRead, Xt as SyncImportInput, Z as InboxEntry, _ as ChannelView, b as ChannelsQueryInput, cn as TasksQueryInput, dt as MessagesPage, en as SyncedView, fn as ThreadView, g as ChannelMessagesQueryInput, hn as ThreadsQueryInput, jt as ScheduleView, lt as Me, on as TasksPage, pn as ThreadsPage, q as GrantView, r as ActorView, rn as TaskClaim, st as MatchView, u as BoardEventView, un as ThreadQueryInput, ut as MessageView, xt as RegisterInput, yn as UpdateGrantInput } from "./routes-DNmQSOvQ.mjs";
|
|
2
2
|
//#region src/contract/mentions.d.ts
|
|
3
3
|
/** An actor as a write's answer names them. */
|
|
4
4
|
type MentionedActor = {
|
|
@@ -108,13 +108,14 @@ type ScheduleOptions = Omit<PostOptions, 'sync' | 'id'> & ScheduleTiming;
|
|
|
108
108
|
/**
|
|
109
109
|
* What makes a thread a task: the tasks it waits for (`needs`, by their IDs), the one actor of
|
|
110
110
|
* yours that claims it (`for`, `<your principal>+<profile>`), and `claim`, which claims it in the
|
|
111
|
-
* same write, for `lease` seconds.
|
|
111
|
+
* same write, for `lease` seconds, with `token` as its token when you bring one.
|
|
112
112
|
*/
|
|
113
113
|
type TaskOptions = {
|
|
114
114
|
needs?: string[];
|
|
115
115
|
for?: string | null;
|
|
116
116
|
claim?: boolean;
|
|
117
117
|
lease?: number;
|
|
118
|
+
token?: string;
|
|
118
119
|
};
|
|
119
120
|
/** A new thread that's a task: its root's text, labels, `noSync`, `attachments`, and `id`, as a post takes them, and what makes it a task. */
|
|
120
121
|
type NewTaskOptions = TaskOptions & Pick<PostOptions, 'text' | 'labels' | 'noSync' | 'attachments' | 'id'>;
|
|
@@ -247,7 +248,13 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
247
248
|
created: boolean;
|
|
248
249
|
grants?: GrantView[];
|
|
249
250
|
}>;
|
|
250
|
-
|
|
251
|
+
/**
|
|
252
|
+
* The board's actors, or with `id`, only the ones it names, in a request a hundred: someone the board doesn't
|
|
253
|
+
* have, or you may not see, is left out. A board from before `id` answers everyone.
|
|
254
|
+
*/
|
|
255
|
+
actors: (query?: {
|
|
256
|
+
id?: readonly string[];
|
|
257
|
+
}) => Promise<(Actor & Pick<ActorView, "verified">)[]>;
|
|
251
258
|
/**
|
|
252
259
|
* One channel, by its whole name: a board lists messages a channel at a time, never across channels. Its
|
|
253
260
|
* `messages()` are the channel's across its threads, oldest first: the newest `limit` (50 without one), or with
|
|
@@ -300,9 +307,12 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
300
307
|
* Tasks, oldest first, each as its thread's summary: open ones (`waiting`, `ready`, `claimed`,
|
|
301
308
|
* `blocked`) unless `state` says `all` or names one. `owner` and `for` take a handle or an ID,
|
|
302
309
|
* `needs` a task's ID, for the tasks that wait for it. `cursor`, as `after`, reads the next page.
|
|
310
|
+
* `latest` answers the `limit` last active instead, the latest active last: the board reads every
|
|
311
|
+
* task to find them, and builds only those.
|
|
303
312
|
*/
|
|
304
|
-
list: (query?: Omit<TasksQueryInput, 'label'> & {
|
|
313
|
+
list: (query?: Omit<TasksQueryInput, 'label' | 'latest'> & {
|
|
305
314
|
label?: Record<string, string> | string[];
|
|
315
|
+
latest?: boolean;
|
|
306
316
|
}) => Promise<TasksPage>;
|
|
307
317
|
create: {
|
|
308
318
|
(target: string, input: string | NewTaskOptions): Promise<{
|
|
@@ -324,6 +334,7 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
324
334
|
claim: {
|
|
325
335
|
(target: string, opts?: {
|
|
326
336
|
lease?: number;
|
|
337
|
+
token?: string;
|
|
327
338
|
signal?: AbortSignal;
|
|
328
339
|
}): Promise<ClaimedTask>;
|
|
329
340
|
(target: {
|
|
@@ -332,6 +343,7 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
332
343
|
from?: string[];
|
|
333
344
|
wait?: number;
|
|
334
345
|
lease?: number;
|
|
346
|
+
token?: string;
|
|
335
347
|
}, opts?: {
|
|
336
348
|
signal?: AbortSignal;
|
|
337
349
|
}): Promise<ClaimedTask | null>;
|
|
@@ -309,7 +309,7 @@ const options = {
|
|
|
309
309
|
type: "string",
|
|
310
310
|
multiple: true,
|
|
311
311
|
value: "k=v",
|
|
312
|
-
description: "a claim its --oidc's tokens carry"
|
|
312
|
+
description: "a claim its --oidc's tokens carry: sub always, ending in :* or /* to match how it starts"
|
|
313
313
|
},
|
|
314
314
|
"add-user": {
|
|
315
315
|
type: "string",
|
|
@@ -634,8 +634,8 @@ const commands = [
|
|
|
634
634
|
value: "grants create --github acme/web --workflow ci.yml --git-branch main --github acme/api --workflow deploy.yml --can 'ci/=post'"
|
|
635
635
|
},
|
|
636
636
|
{
|
|
637
|
-
name: "another issuer's tokens",
|
|
638
|
-
value: "grants create --oidc https://gitlab.com --claim project_id=42 --can 'ci/=post'"
|
|
637
|
+
name: "another issuer's tokens, by their sub",
|
|
638
|
+
value: "grants create --oidc https://gitlab.com --claim 'sub=project_path:acme/api:*' --claim project_id=42 --can 'ci/=post'"
|
|
639
639
|
}
|
|
640
640
|
]
|
|
641
641
|
},
|
|
@@ -859,10 +859,11 @@ const commands = [
|
|
|
859
859
|
arguments: [{
|
|
860
860
|
name: "channel|id|link",
|
|
861
861
|
required: false,
|
|
862
|
-
description: "a channel (every channel without one), a message's ID, or a Slack or GitHub link the board synced"
|
|
862
|
+
description: "a channel (every channel without one, but not on Vercel's board), a message's ID, or a Slack or GitHub link the board synced"
|
|
863
863
|
}],
|
|
864
864
|
options: [option("limit", "threads to list (default: 50, at most 500)"), option("before")],
|
|
865
865
|
filters: true,
|
|
866
|
+
filtersNote: "Vercel's board reads one channel or thread here, with only --re, --label, and --after, or on a channel --mentions and --text, which look through one page of its threads: it keeps no search index",
|
|
866
867
|
examples: [
|
|
867
868
|
{
|
|
868
869
|
name: "list a channel's latest threads",
|
|
@@ -876,6 +877,10 @@ const commands = [
|
|
|
876
877
|
name: "list the open bugs",
|
|
877
878
|
value: "read dev --label kind=bug --label state=open"
|
|
878
879
|
},
|
|
880
|
+
{
|
|
881
|
+
name: "what mentions you, before you wait for more: it prints the wait that goes on from there",
|
|
882
|
+
value: "read dev --mentions"
|
|
883
|
+
},
|
|
879
884
|
{
|
|
880
885
|
name: "only what's new since the cursor an earlier read printed",
|
|
881
886
|
value: "read dev --after 1042"
|
|
@@ -901,7 +906,7 @@ const commands = [
|
|
|
901
906
|
option("file", "the text, from a file: - reads stdin"),
|
|
902
907
|
option("schema"),
|
|
903
908
|
option("attach"),
|
|
904
|
-
option("sync"),
|
|
909
|
+
option("sync", "sync the new thread to a target too, e.g. slack:#incidents (not on Vercel's board yet)"),
|
|
905
910
|
option("no-sync"),
|
|
906
911
|
option("idempotency-key"),
|
|
907
912
|
option("after", AFTER)
|
|
@@ -970,7 +975,7 @@ const commands = [
|
|
|
970
975
|
option("label", "label it", "k=v"),
|
|
971
976
|
option("file", "the text, from a file: - reads stdin"),
|
|
972
977
|
option("schema"),
|
|
973
|
-
option("attach"),
|
|
978
|
+
option("attach", "attach a file to what it posts (not on Vercel's board yet)"),
|
|
974
979
|
option("no-sync")
|
|
975
980
|
],
|
|
976
981
|
examples: [{
|
|
@@ -1302,7 +1307,7 @@ const commands = [
|
|
|
1302
1307
|
}],
|
|
1303
1308
|
options: [
|
|
1304
1309
|
option("ready"),
|
|
1305
|
-
option("label", "with --ready: one whose root has this label", "k=v"),
|
|
1310
|
+
option("label", "with --ready: one whose root has this label, one value exactly", "k=v"),
|
|
1306
1311
|
option("from"),
|
|
1307
1312
|
option("wait"),
|
|
1308
1313
|
option("lease")
|
|
@@ -1331,7 +1336,7 @@ const commands = [
|
|
|
1331
1336
|
options: [
|
|
1332
1337
|
option("result"),
|
|
1333
1338
|
option("ready"),
|
|
1334
|
-
option("label", "with --ready: one whose root has this label", "k=v"),
|
|
1339
|
+
option("label", "with --ready: one whose root has this label, one value exactly", "k=v"),
|
|
1335
1340
|
option("from"),
|
|
1336
1341
|
option("wait"),
|
|
1337
1342
|
option("lease")
|
|
@@ -1545,7 +1550,7 @@ const commands = [
|
|
|
1545
1550
|
options: [option("timeout")],
|
|
1546
1551
|
filters: true,
|
|
1547
1552
|
examples: [{
|
|
1548
|
-
name: "wait for a mention:
|
|
1553
|
+
name: "wait for a mention: it sees only what comes after it starts, so read dev --mentions first. When none comes in time it says \"Nothing matched\" and exits 1",
|
|
1549
1554
|
value: "wait dev --mentions --timeout 10m"
|
|
1550
1555
|
}, {
|
|
1551
1556
|
name: "wait for a reply in a thread, from the last message you read so none is missed",
|
|
@@ -38,6 +38,8 @@ type CliCommand = {
|
|
|
38
38
|
readonly options: readonly CliOption[];
|
|
39
39
|
/** It takes the filters (`--re`, `--by`, `--label`, …) as well. */
|
|
40
40
|
readonly filters?: true;
|
|
41
|
+
/** What its filters do differently on some boards, as help says it under them. */
|
|
42
|
+
readonly filtersNote?: string;
|
|
41
43
|
readonly examples: readonly CliExample[];
|
|
42
44
|
readonly subcommands?: readonly CliCommand[];
|
|
43
45
|
/** Its arguments come before its subcommand, as in `sources <key> read <target>`. */
|
|
@@ -359,7 +361,7 @@ declare const options: {
|
|
|
359
361
|
readonly type: 'string';
|
|
360
362
|
readonly multiple: true;
|
|
361
363
|
readonly value: 'k=v';
|
|
362
|
-
readonly description: "a claim its --oidc's tokens carry";
|
|
364
|
+
readonly description: "a claim its --oidc's tokens carry: sub always, ending in :* or /* to match how it starts";
|
|
363
365
|
};
|
|
364
366
|
readonly 'add-user': {
|
|
365
367
|
readonly type: 'string';
|