@vercel/board 0.53.0 → 0.54.1
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-Pcar1gwx.mjs → access-HzqFpgL_.mjs} +1 -1
- package/dist/access.d.mts +3 -3
- package/dist/access.mjs +5 -5
- package/dist/{actors-XKUrjOfO.mjs → actors-D-u6bitG.mjs} +2 -2
- package/dist/{auth-C2CxMl2p.mjs → auth-D9ycDQK0.mjs} +34 -12
- package/dist/{auth-BoYunD5t.d.mts → auth-ULldUvir.d.mts} +8 -2
- package/dist/{backend-DJobr4nr.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-BSHlV2lw.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 +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/{client-oYThy3CR.d.mts → client-CFHunEFn.d.mts} +8 -2
- package/dist/{commands-B_gbi2sU.mjs → commands-D8HctFGJ.mjs} +15 -10
- package/dist/{commands-B6pgzwTI.d.mts → commands-DLPIX7Jw.d.mts} +3 -1
- package/dist/{conformance-Cz1Elmgj.mjs → conformance-BNiLcKra.mjs} +34 -4
- package/dist/conformance.d.mts +3 -4
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-506f7GEM.mjs → engine-C8wCzkw-.mjs} +2 -2
- package/dist/{routes-GF5ukHYX.mjs → errors-DDfXnZ2b.mjs} +875 -4
- package/dist/{exports-CF_nUsT5.d.mts → exports-BBmjHyCB.d.mts} +4 -4
- package/dist/{exports-CBukc8T3.mjs → exports-D6Q99t_O.mjs} +144 -88
- package/dist/{index-CM2u0wGd.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 +88 -88
- package/dist/inspect/engine.js +3 -3
- package/dist/{inspect-PQsEgXRQ.mjs → inspect-Cb1Sj8QV.mjs} +2 -2
- package/dist/inspect-DeY883DA.mjs +2 -0
- package/dist/inspect.d.mts +1 -1
- package/dist/inspect.mjs +1 -1
- package/dist/{local-CwcmqEoa.mjs → local-BtzF9fRs.mjs} +10 -10
- package/dist/{main-gNAS2WbP.mjs → main-Dicvkp6D.mjs} +360 -100
- package/dist/{middleware-DXiwepsR.mjs → middleware-BY4qqIh3.mjs} +1 -1
- package/dist/{provider-WjdBsRLR.d.mts → provider-DgGp4Zej.d.mts} +2 -2
- package/dist/{routes-BpvyXQwv.d.mts → routes-DNmQSOvQ.d.mts} +16 -1
- package/dist/{serve-Ci5KT11x.mjs → serve-BMOtQEiQ.mjs} +6 -6
- package/dist/{server-XsbC50nY.mjs → server--J1DfQjI.mjs} +68 -11
- package/dist/{serving-C6Ao7i-7.mjs → serving-C1mhZQqH.mjs} +1 -1
- package/dist/{shell-BiCBL1w_.mjs → shell-DsDyOFd1.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-nqYGszDJ.mjs → task-batch-BviIruES.mjs} +4 -5
- package/dist/{tokens-tulRtEWx.mjs → tokens-B3gXkQCs.mjs} +2 -2
- package/dist/{version-CBjh_ogp.mjs → version-1isUFDyU.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/09-access.md +11 -2
- package/docs/01-board/11-tasks.md +5 -3
- 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 +30 -22
- package/docs/04-reference/02-board.md +8 -4
- 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-Cv0TGBt5.mjs +0 -857
- package/dist/inspect-SEaGzhvh.mjs +0 -2
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-BtzF9fRs.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-D8HctFGJ.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-BHN6GTjB.mjs";
|
|
2
|
+
import "./index-Ce3SDZ3Y.mjs";
|
|
3
3
|
//#region src/cli/claims.d.ts
|
|
4
4
|
/** A claim as the CLI keeps it: what its writes carry, and when its lease ends. */
|
|
5
5
|
type HeldClaim = {
|
package/dist/cli-embedded.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as stoppedBy } from "./exports-
|
|
2
|
-
import { a as commandLine, c as failureLines, i as mainWith, l as formatFailure, n as commandWord, o as exitCode, r as main, s as failureDocument, t as Failed } from "./main-
|
|
1
|
+
import { o as stoppedBy } from "./exports-D6Q99t_O.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-Dicvkp6D.mjs";
|
|
3
3
|
//#region src/cli/embedded.ts
|
|
4
4
|
/**
|
|
5
5
|
* Board's CLI as `appName` names it in help, usage, and errors (`vercel board`). With no board
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as option } from "./commands-
|
|
3
|
-
import { 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-D8HctFGJ.mjs";
|
|
3
|
+
import { g as projectDir } from "./server--J1DfQjI.mjs";
|
|
4
|
+
import { r as main } from "./main-Dicvkp6D.mjs";
|
|
5
|
+
import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-Cb1Sj8QV.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-DeY883DA.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-BMOtQEiQ.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 = {
|
|
@@ -248,7 +248,13 @@ declare function createBoardClient(options: ClientOptions): {
|
|
|
248
248
|
created: boolean;
|
|
249
249
|
grants?: GrantView[];
|
|
250
250
|
}>;
|
|
251
|
-
|
|
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">)[]>;
|
|
252
258
|
/**
|
|
253
259
|
* One channel, by its whole name: a board lists messages a channel at a time, never across channels. Its
|
|
254
260
|
* `messages()` are the channel's across its threads, oldest first: the newest `limit` (50 without one), or with
|
|
@@ -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: [{
|
|
@@ -1269,7 +1274,7 @@ const commands = [
|
|
|
1269
1274
|
option("for", "only this profile of yours claims it", "profile"),
|
|
1270
1275
|
claimNow,
|
|
1271
1276
|
option("lease", "with --claim: how long to hold it"),
|
|
1272
|
-
option("file", "a plan, from a JSON file (- reads stdin): an array of tasks, each { key?, text, labels?, needs?, for?, noSync?, attachments? }, all made, in as many writes as it takes"),
|
|
1277
|
+
option("file", "a plan, from a JSON file (- reads stdin): an array of tasks, each { key?, text, labels?, needs?, for?, noSync?, attachments? }, all made, in as many writes as it takes. needs takes a key of the plan (\"fix\" or {\"key\": \"fix\"}) or a task that's there by its ID (\"812\" or {\"id\": \"812\"})"),
|
|
1273
1278
|
option("no-sync"),
|
|
1274
1279
|
option("idempotency-key", "sending the same one again makes it once")
|
|
1275
1280
|
],
|
|
@@ -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';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { f as BoardError } from "./errors-Cv0TGBt5.mjs";
|
|
1
|
+
import { f as BoardError } from "./errors-DDfXnZ2b.mjs";
|
|
3
2
|
import { c as canonical, t as block } from "./blocks-CVoBC7ur.mjs";
|
|
4
|
-
import { a as canText, c as compileAccess } from "./access-
|
|
3
|
+
import { a as canText, c as compileAccess } from "./access-HzqFpgL_.mjs";
|
|
5
4
|
//#region src/client/channels.ts
|
|
6
5
|
/** Every channel of a board, or every one whose path starts with `prefix`, a page at a time: for what needs them all. */
|
|
7
6
|
async function everyChannel(board, prefix) {
|
|
@@ -137,7 +136,7 @@ const grantFor = (ctx) => ({
|
|
|
137
136
|
});
|
|
138
137
|
/**
|
|
139
138
|
* Whom the checks that grant to someone besides the project name: the app the run was given, or
|
|
140
|
-
* else the repository, which a board that takes no GitHub principal in a grant refuses
|
|
139
|
+
* else the repository, which a board that takes no GitHub principal in a grant refuses.
|
|
141
140
|
*/
|
|
142
141
|
const granteeOf = (ctx) => ctx.principals.app !== null ? {
|
|
143
142
|
kind: "app",
|
|
@@ -435,6 +434,37 @@ const CHECKS = [
|
|
|
435
434
|
check((await ctx.board.thread(root.id)).replies.some((m) => m.id === reply.id), `the thread's replies should include ${reply.id}`);
|
|
436
435
|
}
|
|
437
436
|
},
|
|
437
|
+
{
|
|
438
|
+
group: "core",
|
|
439
|
+
name: "posts a reply with its labels, so its message.posted event carries them",
|
|
440
|
+
run: async (ctx) => {
|
|
441
|
+
const root = await post(ctx, "conformance: a thread for a labeled reply");
|
|
442
|
+
const { cursor } = await ctx.board.poll({
|
|
443
|
+
channel: ctx.channel,
|
|
444
|
+
label: ctx.labels
|
|
445
|
+
});
|
|
446
|
+
const labels = {
|
|
447
|
+
...ctx.labels,
|
|
448
|
+
reply: ctx.labels.conformance
|
|
449
|
+
};
|
|
450
|
+
const labeled = await ctx.board.reply(root.id, {
|
|
451
|
+
text: "conformance: a labeled reply",
|
|
452
|
+
labels,
|
|
453
|
+
noSync: true
|
|
454
|
+
});
|
|
455
|
+
ctx.posted.push(labeled.id);
|
|
456
|
+
same(labeled.labels.reply, labels.reply, "the labeled reply's label, as posted");
|
|
457
|
+
const page = await ctx.board.poll({
|
|
458
|
+
channel: ctx.channel,
|
|
459
|
+
after: cursor
|
|
460
|
+
});
|
|
461
|
+
const posted = page.events.find((event) => event.type === "message.posted" && event.message?.id === labeled.id);
|
|
462
|
+
check(posted, `the events should include ${labeled.id} being posted`);
|
|
463
|
+
same(posted.message?.labels.reply, labels.reply, "the label on the labeled reply's message.posted");
|
|
464
|
+
const relabeled = page.events.filter((event) => event.type === "labels.changed" && event.message?.id === labeled.id);
|
|
465
|
+
check(relabeled.length === 0, `a reply's labels should be written with it, not in ${relabeled.length} labels.changed after its message.posted`);
|
|
466
|
+
}
|
|
467
|
+
},
|
|
438
468
|
{
|
|
439
469
|
group: "core",
|
|
440
470
|
name: "replies after a message only while it's the thread's newest, one of any that race",
|
package/dist/conformance.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as Board } from "./backend-
|
|
1
|
+
import { f as Board } from "./backend-BHN6GTjB.mjs";
|
|
2
2
|
//#region src/conformance/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Checks that a board speaks the protocol, through a handle on it (`conformance(board())`), as
|
|
@@ -47,9 +47,8 @@ export type ConformanceOptions = {
|
|
|
47
47
|
* no grant names, a `viewer` (a person's email or ID whose team role is viewer), to check
|
|
48
48
|
* that a role caps what grants give, and an `app` installed on the board's team (its slug or
|
|
49
49
|
* client ID), which a local board has none of. Checks that grant to someone besides the project
|
|
50
|
-
* name the app when there's one, and the repository otherwise
|
|
51
|
-
*
|
|
52
|
-
* writes.
|
|
50
|
+
* name the app when there's one, and the repository otherwise. None may be the run's own: it
|
|
51
|
+
* throws before it writes.
|
|
53
52
|
*/
|
|
54
53
|
principals?: {
|
|
55
54
|
project?: string;
|
package/dist/conformance.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as conformance } from "./conformance-
|
|
1
|
+
import { t as conformance } from "./conformance-BNiLcKra.mjs";
|
|
2
2
|
export { conformance };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { f as typeOf, i as ATTACHMENT_BYTES_MAX, l as fileSize, o as IMPORT_BYTES_MAX, u as importedFileName } from "./profile-header-O8wC8yk8.mjs";
|
|
2
2
|
import { P as toStorable, m as MESSAGE_TEXT_MAX, s as ChannelPath } from "./schemas-CUSTEFIy.mjs";
|
|
3
3
|
import { l as isThreadTarget, s as channelOf } from "./external-DkWafjn-.mjs";
|
|
4
|
+
import { c as notFound, r as badRequest, t as HttpError } from "./errors-DDfXnZ2b.mjs";
|
|
4
5
|
import { t as canonicalEmoji } from "./emoji-CTLpvH-A.mjs";
|
|
5
|
-
import { c as
|
|
6
|
-
import { a as waitUntil, c as platformProfile, f as viaText, i as afterRetry, l as shownName, m as derivedId, o as actorParts, t as DroppedError } from "./middleware-DXiwepsR.mjs";
|
|
6
|
+
import { a as waitUntil, c as platformProfile, f as viaText, i as afterRetry, l as shownName, m as derivedId, o as actorParts, t as DroppedError } from "./middleware-BY4qqIh3.mjs";
|
|
7
7
|
import { a as replaceMentions, n as isEmail, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
|
|
8
8
|
import { a as immutable, d as opensBlock, f as routesFor, l as UnreadableError, n as SyncOverrides, o as ReceivedEvent, s as ResolvedTarget, u as channelMissing } from "./events-mWKc1uvZ.mjs";
|
|
9
9
|
import { i as vercelDeployments, n as displayText, t as byVercelBot } from "./bots-CqPYxkqK.mjs";
|