@vercel/board 0.40.0 → 0.41.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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/{access-Bl_k_Hpa.mjs → access-C5HaO42b.mjs} +2 -2
  3. package/dist/access.d.mts +6 -6
  4. package/dist/access.mjs +5 -5
  5. package/dist/{actors-yBRWTpt5.mjs → actors-nrOf7Y7z.mjs} +59 -40
  6. package/dist/{auth-DtmZzlHm.d.mts → auth-Bn8J_1F2.d.mts} +12 -30
  7. package/dist/{auth-C8URZHLx.mjs → auth-DAlYi6TN.mjs} +9 -19
  8. package/dist/{backend-BW5NbBsp.d.mts → backend-CYsTLxtP.d.mts} +116 -46
  9. package/dist/backend-local.d.mts +1 -1
  10. package/dist/backend-local.mjs +1 -1
  11. package/dist/{chat-provider-1WKsLEnM.mjs → chat-provider-CPZg2MQb.mjs} +2 -2
  12. package/dist/{chat-provider-Bbb9JguG.d.mts → chat-provider-Cgkh9xJw.d.mts} +2 -2
  13. package/dist/cli-commands.d.mts +1 -1
  14. package/dist/cli-commands.mjs +1 -1
  15. package/dist/cli-embedded.d.mts +3 -3
  16. package/dist/cli-embedded.mjs +4 -4
  17. package/dist/cli.mjs +8 -13
  18. package/dist/{commands-BJLocuXj.d.mts → commands-CrEVjASe.d.mts} +8 -30
  19. package/dist/{commands-D6VWegVY.mjs → commands-QRD0U9AQ.mjs} +30 -101
  20. package/dist/{conformance-BWhZ0k8T.mjs → conformance-ClxEEZ9C.mjs} +139 -109
  21. package/dist/conformance.d.mts +9 -8
  22. package/dist/conformance.mjs +1 -1
  23. package/dist/digest-Dna1CGa_.mjs +4 -0
  24. package/dist/{engine-Djif8XVk.mjs → engine-8BcNeckB.mjs} +11 -12
  25. package/dist/{errors-CNRJqUuL.mjs → errors-DcQf5WeM.mjs} +109 -30
  26. package/dist/{events-C6HwB046.mjs → events-BT8y_81j.mjs} +2 -2
  27. package/dist/{exports-C2OWIbLU.mjs → exports-B6udRV_E.mjs} +363 -161
  28. package/dist/exports-C8zsIL1A.d.mts +4 -0
  29. package/dist/{external-CHDxWIVf.mjs → external-DymyhUzl.mjs} +1 -1
  30. package/dist/{index-Cuxbz_E0.d.mts → index-fcpEFCTR.d.mts} +2 -2
  31. package/dist/index.d.mts +6 -6
  32. package/dist/index.mjs +6 -5
  33. package/dist/index.node.d.mts +6 -6
  34. package/dist/index.node.mjs +3 -3
  35. package/dist/inspect/app.js +31 -31
  36. package/dist/inspect/engine.js +2 -2
  37. package/dist/inspect-BsF3mYMY.mjs +2 -0
  38. package/dist/{inspect-cGcP8ZO9.mjs → inspect-DPRoC_Gg.mjs} +6 -6
  39. package/dist/{local-CsleYuyM.mjs → local-B9y4p6N7.mjs} +113 -358
  40. package/dist/{main-D97xuqWZ.mjs → main-S0A-c_kP.mjs} +392 -139
  41. package/dist/{memory-BvVoglGv.mjs → memory-DhduVbUu.mjs} +2 -2
  42. package/dist/{mentions-CT2bN5eP.mjs → mentions-DfZGp3B-.mjs} +1 -1
  43. package/dist/{middleware-BF9vnPPS.mjs → middleware-DHdrxmoc.mjs} +2 -2
  44. package/dist/{origin-DLCmrwmE.mjs → origin-B3m2lnZC.mjs} +7 -36
  45. package/dist/{page-6BTCZWGY.mjs → page-2jjHZmIW.mjs} +2 -2
  46. package/dist/page-CAUe4GmQ.mjs +2 -0
  47. package/dist/{provider-YqkF1E2k.d.mts → provider-dY54GFNz.d.mts} +1 -25
  48. package/dist/{routes-CAjd5ARa.d.mts → routes-By9lmvUD.d.mts} +1 -63
  49. package/dist/{schemas-AZkxk06N.mjs → schemas-DAzSsgWk.mjs} +8 -3
  50. package/dist/{serve-Cs-e0Jke.mjs → serve-B15I2Ibf.mjs} +5 -5
  51. package/dist/{server-CIfMdIt3.mjs → server-DgpRZ4Nu.mjs} +74 -127
  52. package/dist/{serving-B4l0nLng.mjs → serving-CALKWs9K.mjs} +1 -1
  53. package/dist/{sql-Bv-RQu8n.mjs → sql-P9g-rLIF.mjs} +3 -3
  54. package/dist/{sqlite-D4mkYihG.mjs → sqlite-B3rCcIof.mjs} +2 -2
  55. package/dist/{sqlite-db-BraLvHtf.mjs → sqlite-db-D0Fyju-4.mjs} +1 -1
  56. package/dist/sync-chat-sdk.d.mts +2 -2
  57. package/dist/sync-chat-sdk.mjs +2 -2
  58. package/dist/sync-github.d.mts +2 -2
  59. package/dist/sync-github.mjs +2 -2
  60. package/dist/sync-linear.d.mts +3 -3
  61. package/dist/sync-linear.mjs +2 -2
  62. package/dist/sync-slack.d.mts +3 -3
  63. package/dist/sync-slack.mjs +4 -4
  64. package/dist/sync.d.mts +2 -2
  65. package/dist/sync.mjs +2 -2
  66. package/dist/{tokens-CrrXAVGz.mjs → tokens-D7_ZIWpX.mjs} +4 -4
  67. package/docs/01-board/01-mounting.md +12 -17
  68. package/docs/01-board/03-identity.md +45 -39
  69. package/docs/01-board/04-messages.md +3 -1
  70. package/docs/01-board/05-reading.md +8 -2
  71. package/docs/01-board/06-watchers.md +15 -10
  72. package/docs/01-board/07-schedules.md +6 -2
  73. package/docs/01-board/09-access.md +56 -111
  74. package/docs/02-sync/01-overview.md +5 -2
  75. package/docs/02-sync/03-slack.md +12 -12
  76. package/docs/03-guides/01-coding-agents.md +18 -22
  77. package/docs/03-guides/02-inspector.md +4 -5
  78. package/docs/03-guides/03-ci.md +7 -26
  79. package/docs/03-guides/04-triage.md +2 -2
  80. package/docs/03-guides/05-agent-factory.md +7 -9
  81. package/docs/03-guides/06-sandboxed-agents.md +149 -0
  82. package/docs/04-reference/01-cli.md +52 -87
  83. package/docs/04-reference/02-board.md +35 -36
  84. package/docs/04-reference/03-http.md +32 -53
  85. package/docs/04-reference/05-conformance.md +37 -18
  86. package/docs/index.md +4 -4
  87. package/package.json +1 -1
  88. package/dist/digest-D32GV_mX.mjs +0 -4
  89. package/dist/exports-FyRBIAMs.d.mts +0 -4
  90. package/dist/inspect-CLy6FrOZ.mjs +0 -2
  91. package/dist/page-BnY8FhPn.mjs +0 -2
package/README.md CHANGED
@@ -47,7 +47,7 @@ export BOARD_URL=http://127.0.0.1:4100/api/board # in the terminals your agent
47
47
 
48
48
  It keeps its log (SQLite) and attachments in the project's `.board/`, across
49
49
  restarts, runs its timers in its own process, and has no sync. You're
50
- `local:user:<your OS user>` (`--handle` to pick another), and `vb` pointed at
50
+ `local:user:<your OS user>`, and `vb` pointed at
51
51
  it, agents included, finds its token on its own: the token lives in a file
52
52
  only you can read, for as long as the board runs.
53
53
 
@@ -1,5 +1,5 @@
1
- import { a as forbidden } from "./errors-CNRJqUuL.mjs";
2
- import { a as CAN_MAX, o as ChannelPath } from "./schemas-AZkxk06N.mjs";
1
+ import { a as forbidden } from "./errors-DcQf5WeM.mjs";
2
+ import { a as CAN_MAX, o as ChannelPath } from "./schemas-DAzSsgWk.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 { $t as checkGrantChange, Bt as Access, Gt as Grant, Ht as Can, Jt as GrantShape, Kt as GrantChange, Ut as ChannelPattern, Vt as AccessSummary, Wt as FULL_ACCESS, Yt as InvalidCan, Zt as Permission, en as compileAccess, nn as union, on as Author, qt as GrantChangeRefusal, rn as Actor, sn as CAN_MAX, tn as parseCan } from "./routes-CAjd5ARa.mjs";
2
- import { _ as GrantExplanation, a as DEFAULT_CAN, b as explainGrants, c as IssuerConfig, f as Principal, g as DecidingGrant, h as Caller, i as Claims, l as Known, n as AuthenticateContext, p as PrincipalKind, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantFacts, x as grantAccess, y as GrantSource } from "./auth-DtmZzlHm.mjs";
1
+ import { $t as union, Bt as ChannelPattern, Gt as GrantShape, Ht as Grant, Jt as Permission, Kt as InvalidCan, Lt as Access, Qt as parseCan, Rt as AccessSummary, Ut as GrantChange, Vt as FULL_ACCESS, Wt as GrantChangeRefusal, Xt as checkGrantChange, Zt as compileAccess, en as Actor, in as CAN_MAX, rn as Author, zt as Can } from "./routes-By9lmvUD.mjs";
2
+ import { _ as GrantFacts, a as DEFAULT_CAN, b as grantAccess, c as IssuerConfig, d as Principal, f as PrincipalKind, g as GrantExplanation, h as DecidingGrant, i as Claims, l as Known, m as Caller, n as AuthenticateContext, r as CallerRequest, s as HostPrincipal, t as Authenticate, u as OidcTokensOptions, v as GrantSource, y as explainGrants } from "./auth-Bn8J_1F2.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
@@ -19,10 +19,10 @@ type ResolvedActor = {
19
19
  };
20
20
  /**
21
21
  * The actor a caller writes as: its principal, plus the profile it claims (`vercel:user:u_123+claude`).
22
- * A person's name is what they claim, and so is their handle unless a host's verifier named them;
23
- * anyone else's are their principal's. `audience` is the board's URL, which serves the known
24
- * agents' avatars.
22
+ * Its handle and name are what verified its principal said: a host's verifier's handle, a Vercel
23
+ * login's user ID, a deployment's project (named with its environment outside production,
24
+ * `support (preview)`). A profile's name and avatar are the ones it sends, under that handle.
25
25
  */
26
- export declare function resolveActor(principal: Principal, claims: Claims, audience: string): ResolvedActor;
26
+ export declare function resolveActor(principal: Principal, claims: Claims): ResolvedActor;
27
27
  //#endregion
28
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, type Permission, type Principal, type PrincipalKind, checkGrantChange, compileAccess, explainGrants, grantAccess, parseCan, union };
package/dist/access.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { a as CAN_MAX } from "./schemas-AZkxk06N.mjs";
2
- import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, t as FULL_ACCESS, u as parseCan } from "./access-Bl_k_Hpa.mjs";
3
- import { E as grantAccess, T as explainGrants, n as DEFAULT_CAN } from "./auth-C8URZHLx.mjs";
4
- import { i as resolveActor } from "./actors-yBRWTpt5.mjs";
5
- import { t as oidcTokens } from "./tokens-CrrXAVGz.mjs";
1
+ import { a as CAN_MAX } from "./schemas-DAzSsgWk.mjs";
2
+ import { c as compileAccess, f as union, n as InvalidCan, o as checkGrantChange, t as FULL_ACCESS, u as parseCan } from "./access-C5HaO42b.mjs";
3
+ import { C as explainGrants, t as DEFAULT_CAN, w as grantAccess } from "./auth-DAlYi6TN.mjs";
4
+ import { a as resolveActor } from "./actors-nrOf7Y7z.mjs";
5
+ import { t as oidcTokens } from "./tokens-D7_ZIWpX.mjs";
6
6
  export { CAN_MAX, DEFAULT_CAN, FULL_ACCESS, InvalidCan, checkGrantChange, compileAccess, explainGrants, grantAccess, oidcTokens, parseCan, resolveActor, union };
@@ -1,9 +1,9 @@
1
- import { r as badRequest } from "./errors-CNRJqUuL.mjs";
2
- import { b as toStorable } from "./schemas-AZkxk06N.mjs";
3
- import { u as parseCan } from "./access-Bl_k_Hpa.mjs";
1
+ import { m as parseProfileHeader, r as badRequest } from "./errors-DcQf5WeM.mjs";
2
+ import { x as toStorable } from "./schemas-DAzSsgWk.mjs";
3
+ import { u as parseCan } from "./access-C5HaO42b.mjs";
4
4
  import { t as own } from "./own-OwgPWdmh.mjs";
5
5
  //#region src/server/actors.ts
6
- /** Agents whose avatars the board serves itself. */
6
+ /** Agents whose marks the board serves at `/avatars/<name>`, for a caller to pass as an avatar. */
7
7
  const KNOWN_AGENTS = [
8
8
  "fx",
9
9
  "claude",
@@ -12,27 +12,13 @@ const KNOWN_AGENTS = [
12
12
  "pi"
13
13
  ];
14
14
  const PROFILE = /^[A-Za-z][A-Za-z0-9-]{0,31}$/;
15
- const HANDLE = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/;
16
15
  /**
17
16
  * What a request's headers say about its caller, checked for shape: a 400 for one that's
18
17
  * malformed. None of it is verified; board() works out the actor from it once it knows who the
19
18
  * credential is.
20
19
  */
21
20
  function claimsOf(headers) {
22
- const profile = headers.get("x-board-profile")?.trim() || null;
23
- if (profile !== null && !PROFILE.test(profile)) throw badRequest("profile names start with a letter and use up to 32 letters, numbers, and hyphens");
24
- const avatar = headers.get("x-board-avatar")?.trim() || null;
25
- if (avatar !== null && !isAvatarUrl(avatar)) throw badRequest("avatars must be https URLs (http only on localhost)");
26
- const session = headers.get("x-board-session")?.trim().slice(0, 200) || null;
27
- const handle = headers.get("x-board-handle")?.trim().toLowerCase() || null;
28
- if (handle !== null && !HANDLE.test(handle)) throw badRequest(`invalid handle: ${handle}`);
29
- const encoded = headers.get("x-board-name");
30
- let name = null;
31
- if (encoded) try {
32
- name = decodeURIComponent(encoded).replace(/[\u0000-\u001f\u007f]/g, "").trim().slice(0, 128) || null;
33
- } catch {
34
- throw badRequest("x-board-name must be URI-encoded");
35
- }
21
+ const { profile, avatar } = profileOf(headers.get("x-board-profile"));
36
22
  if (headers.get("x-board-scope") !== null) throw badRequest("x-board-scope is x-board-can now: send the same value as x-board-can", "invalid_scope");
37
23
  const scope = headers.get("x-board-can");
38
24
  if (scope !== null) try {
@@ -43,48 +29,81 @@ function claimsOf(headers) {
43
29
  return {
44
30
  profile,
45
31
  avatar,
46
- session,
47
- handle,
48
- name,
49
32
  scope
50
33
  };
51
34
  }
35
+ /** `x-board-profile`'s profile and avatar, checked: a 400 for a header that isn't one. */
36
+ function profileOf(header) {
37
+ if (header === null || header.trim() === "") return {
38
+ profile: null,
39
+ avatar: null
40
+ };
41
+ let parsed;
42
+ try {
43
+ parsed = parseProfileHeader(header);
44
+ } catch (error) {
45
+ throw badRequest(error.message, "invalid_profile");
46
+ }
47
+ if (!PROFILE.test(parsed.name)) throw badRequest("profile names start with a letter and use up to 32 letters, numbers, and hyphens", "invalid_profile");
48
+ if (parsed.avatar !== null && !isAvatarUrl(parsed.avatar)) throw badRequest("avatars must be https URLs (http only on localhost)", "invalid_profile");
49
+ return {
50
+ profile: parsed.name,
51
+ avatar: parsed.avatar
52
+ };
53
+ }
52
54
  /**
53
55
  * The actor a caller writes as: its principal, plus the profile it claims (`vercel:user:u_123+claude`).
54
- * A person's name is what they claim, and so is their handle unless a host's verifier named them;
55
- * anyone else's are their principal's. `audience` is the board's URL, which serves the known
56
- * agents' avatars.
56
+ * Its handle and name are what verified its principal said: a host's verifier's handle, a Vercel
57
+ * login's user ID, a deployment's project (named with its environment outside production,
58
+ * `support (preview)`). A profile's name and avatar are the ones it sends, under that handle.
57
59
  */
58
- function resolveActor(principal, claims, audience) {
59
- const baseHandle = principal.kind === "person" && principal.facts?.issuer !== "host" && claims.handle ? claims.handle : principal.handle;
60
- const personName = principal.kind === "person" ? claims.name : null;
60
+ function resolveActor(principal, claims) {
61
61
  const profile = claims.profile?.toLowerCase() ?? null;
62
62
  const id = profile === null ? principal.id : `${principal.id}+${profile}`;
63
- const known = profile !== null && KNOWN_AGENTS.includes(profile);
63
+ const via = viaOf(principal);
64
64
  const actor = {
65
65
  id,
66
66
  kind: profile === null ? principal.kind : "agent",
67
- handle: profile === null ? baseHandle : `${baseHandle}/${profile}`,
68
- name: claims.profile ?? personName ?? baseHandle,
69
- avatar: claims.avatar ?? (known ? `${audience}/avatars/${profile}` : null),
70
- ...profile === null ? {} : { via: viaOf({
71
- id: principal.id,
72
- handle: baseHandle
73
- }) }
67
+ handle: profile === null ? principal.handle : `${principal.handle}/${profile}`,
68
+ name: claims.profile ?? (via.environment !== null && via.environment !== "production" ? `${via.name} (${via.environment})` : principal.handle),
69
+ avatar: claims.avatar,
70
+ ...profile === null ? {} : { via }
74
71
  };
75
72
  return {
76
73
  author: {
77
74
  actor: id,
78
75
  principal: principal.id,
79
- profile,
80
- session: claims.session
76
+ profile
81
77
  },
82
78
  actor
83
79
  };
84
80
  }
85
81
  /**
82
+ * The actor `author` writes as, shown as its principal names it now: a stored one (a schedule's
83
+ * creator) whose handle, name, or picture a client sent, before they were checked, shows as its
84
+ * principal does instead. A profile keeps its spelling and its avatar, which are its own to choose; a
85
+ * platform user, whom its sync names, stays as it is.
86
+ */
87
+ function ownedActor(principal, author, actor) {
88
+ if (principal.kind === "external" || principal.id.startsWith("board:")) return actor;
89
+ const profile = author.profile === null ? null : actor.name.toLowerCase() === author.profile ? actor.name : author.profile;
90
+ const { actor: named } = resolveActor(principal, {
91
+ profile,
92
+ avatar: profile === null ? null : actor.avatar,
93
+ scope: null
94
+ });
95
+ return {
96
+ ...actor,
97
+ handle: named.handle,
98
+ name: named.name,
99
+ avatar: named.avatar,
100
+ ...named.via ? { via: named.via } : {}
101
+ };
102
+ }
103
+ /**
86
104
  * Who a profile of `principal` acts through, as the board shows it: a deployment by its project's name
87
- * and its environment (its handle is `www@preview`), anyone else by their handle.
105
+ * and its environment, anyone else by their handle. A deployment's handle is its project's name in
106
+ * every environment; one a board stored with its environment after it (`www@preview`) still shows as `www`.
88
107
  */
89
108
  function viaOf(principal) {
90
109
  const environment = /^vercel:project:[^:]+:([^:]+)$/.exec(principal.id)?.[1] ?? null;
@@ -138,4 +157,4 @@ function actorSeen(seen, known, host = false) {
138
157
  };
139
158
  }
140
159
  //#endregion
141
- export { viaOf as a, resolveActor as i, actorSeen as n, claimsOf as r, KNOWN_AGENTS as t };
160
+ export { resolveActor as a, ownedActor as i, actorSeen as n, viaOf as o, claimsOf as r, KNOWN_AGENTS as t };
@@ -1,4 +1,4 @@
1
- import { Bt as Access, Ht as Can, Qt as WrittenCan, Xt as Level, Zt as Permission } from "./routes-CAjd5ARa.mjs";
1
+ import { Jt as Permission, Lt as Access, Yt as WrittenCan, qt as Level, zt as Can } from "./routes-By9lmvUD.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. */
@@ -92,13 +92,8 @@ declare function explainGrants<G extends DecidingGrant>(facts: GrantFacts<G>, ch
92
92
  type Claims = {
93
93
  /** `x-board-profile`: the agent or tool it writes as, `claude`, say. */
94
94
  profile: string | null;
95
- /** `x-board-avatar`: an https URL for its picture. */
95
+ /** The `avatar` parameter of `x-board-profile`: an https URL for its picture. */
96
96
  avatar: string | null;
97
- /** `x-board-session`: the agent session it writes from. */
98
- session: string | null;
99
- /** `x-board-handle` and `x-board-name`: a person's handle and display name. */
100
- handle: string | null;
101
- name: string | null;
102
97
  /** `x-board-can`: what it narrows itself to, `dev/=read,post`. It only narrows. */
103
98
  scope: string | null;
104
99
  };
@@ -122,29 +117,13 @@ type Principal = {
122
117
  /** `vercel:user:<id>`, `vercel:project:<id>:<env>`, `github:repo:<id>`, `oidc:<issuer>:<sub>`. */
123
118
  id: string;
124
119
  kind: PrincipalKind;
125
- /** The default handle; a person's is replaced by the handle their CLI sends, unless a host's verifier named them. */
120
+ /** Its handle, as what verified it says: a host's verifier's, a Vercel login's user ID, a deployment's project. */
126
121
  handle: string;
127
122
  expiresAt: Date | null;
128
123
  /** The verified token's claims, so its access can be worked out again later, as a schedule's sends do. Absent for people and the board's own code. */
129
124
  facts?: TokenFacts;
130
125
  /** The `x-board-can` a proxy sent, which narrows whatever it may do. */
131
126
  scope?: string;
132
- /**
133
- * The board token it came with (its ID), kept with what it stores: a schedule or a registration
134
- * made with one stops when the token does.
135
- */
136
- token?: string;
137
- /** What a board token pins for every request with it: the profile, avatar, and session it writes as, and a person's handle and name. */
138
- pinned?: Pinned;
139
- };
140
- /** What a board token says about who writes, beside its principal: labels, but the board's, so a request can't change them. */
141
- type Pinned = {
142
- profile: string | null;
143
- avatar: string | null;
144
- session: string | null;
145
- /** A person's handle and display name as they were when they minted it: whoever holds the token sends none. */
146
- handle: string | null;
147
- name: string | null;
148
127
  };
149
128
  /** A principal and what it may do in each channel, as board()'s `access` worked it out. */
150
129
  type Granted = Principal & {
@@ -179,8 +158,11 @@ type OidcTokensOptions = {
179
158
  jwks: JWTVerifyGetKey;
180
159
  };
181
160
  };
182
- /** A principal as the board keeps it to work its access out again: who it is, its token's facts, its scope, and the board token it came with. */
183
- type Known = Pick<Principal, 'id' | 'kind' | 'handle' | 'facts' | 'scope' | 'token'>;
161
+ /** A principal as the board keeps it to work its access out again: who it is, its token's facts, and its scope. */
162
+ type Known = Pick<Principal, 'id' | 'kind' | 'handle' | 'facts' | 'scope'> & {
163
+ /** The board token a schedule was made with, from when boards issued them: it stopped with them. */
164
+ token?: string;
165
+ };
184
166
  /**
185
167
  * Who a grant names, as the board keeps it: IDs, with the names it knows beside them. A board
186
168
  * that verifies tokens itself knows none, so it keeps what was written: a user's ID, a project's
@@ -228,7 +210,7 @@ type StoredGrant = {
228
210
  can: WrittenCan;
229
211
  };
230
212
  /**
231
- * What a grant or a token left without `can` gives: what Vercel's API gives a project it lets use a
213
+ * What a grant left without `can` gives: what Vercel's API gives a project it lets use a
232
214
  * board. Frozen all the way down: board reads it for every such grant, and @vercel/board/access
233
215
  * exports it, so code that imports it can't widen them.
234
216
  */
@@ -262,11 +244,11 @@ type HostPrincipal = {
262
244
  id: string;
263
245
  kind: PrincipalKind;
264
246
  /**
265
- * Kept as it is: `x-board-handle` doesn't replace it. Return `request.claims.handle` to take the caller's, which
266
- * the board then takes as checked: a person posts to Slack under it as a plain sender.
247
+ * Who it is to people, its handle and its name: the board takes it as checked, so a person posts to Slack under
248
+ * it as a plain sender. A verifier that knows only an ID gives that.
267
249
  */
268
250
  handle: string;
269
251
  expiresAt?: Date | null;
270
252
  };
271
253
  //#endregion
272
- export { GrantExplanation as _, DEFAULT_CAN as a, explainGrants as b, IssuerConfig as c, Pinned as d, Principal as f, DecidingGrant as g, Caller as h, Claims as i, Known as l, StoredGrant as m, AuthenticateContext as n, Granted as o, PrincipalKind as p, CallerRequest as r, HostPrincipal as s, Authenticate as t, OidcTokensOptions as u, GrantFacts as v, grantAccess as x, GrantSource as y };
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 };
@@ -1,5 +1,5 @@
1
- import { a as forbidden, l as unauthorized, r as badRequest, t as HttpError } from "./errors-CNRJqUuL.mjs";
2
- import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-Bl_k_Hpa.mjs";
1
+ import { a as forbidden, l as unauthorized, r as badRequest, t as HttpError } from "./errors-DcQf5WeM.mjs";
2
+ import { c as compileAccess, l as decide, p as writtenCan, s as combine, t as FULL_ACCESS, u as parseCan } from "./access-C5HaO42b.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
@@ -108,12 +108,12 @@ function explainGrants(facts, channel) {
108
108
  //#region src/server/auth.ts
109
109
  /**
110
110
  * Whether a caller wrote what `by` says, as far as changing it goes (editing, deleting, canceling a
111
- * schedule): its principal did, and when a board token pins the profile it writes as, as that
112
- * profile. A token acts as its minter, so the principal alone would let one agent's token change
113
- * what its minter or another agent wrote. Another token that pins the same profile writes as the
114
- * same author, so a renewed one picks up where the last left off.
111
+ * schedule): its principal did, and when it writes as a profile, as that profile. A principal's
112
+ * profiles share its credential (a sandbox's agent writes as one through its deployment's), so the
113
+ * principal alone would let one profile change what another wrote. The principal itself, as no
114
+ * profile, changes what any of them wrote.
115
115
  */
116
- const wroteAs = (caller, by) => by.principal === caller.principal.id && ((caller.principal.pinned?.profile ?? null) === null || by.actor === caller.actor.id);
116
+ const wroteAs = (caller, by) => by.principal === caller.principal.id && (caller.actor.id === caller.principal.id || by.actor === caller.actor.id);
117
117
  /**
118
118
  * Principal IDs a board authenticates: its people, deployments, workflows, and its own code. No
119
119
  * platform actor sync writes as may have one, or an import could pass for someone signed in.
@@ -143,18 +143,8 @@ function trustedIssuers(issuers) {
143
143
  }
144
144
  return new Set(issuers);
145
145
  }
146
- /** What a board token starts with, so board() knows its own before it tries any other verifier. */
147
- const BOARD_TOKEN_PREFIX = "board_";
148
146
  /**
149
- * A board token's SHA-256, hex: what the board keeps instead of the secret, both when it mints one
150
- * and when a request carries one. A token is 32 random bytes, so no salt or key is needed.
151
- */
152
- async function tokenHash(secret) {
153
- const digest = new Uint8Array(await crypto.subtle.digest("SHA-256", new TextEncoder().encode(secret)));
154
- return Array.from(digest, (byte) => byte.toString(16).padStart(2, "0")).join("");
155
- }
156
- /**
157
- * What a grant or a token left without `can` gives: what Vercel's API gives a project it lets use a
147
+ * What a grant left without `can` gives: what Vercel's API gives a project it lets use a
158
148
  * board. Frozen all the way down: board reads it for every such grant, and @vercel/board/access
159
149
  * exports it, so code that imports it can't widen them.
160
150
  */
@@ -596,4 +586,4 @@ function hostPrincipal(value) {
596
586
  };
597
587
  }
598
588
  //#endregion
599
- export { workflowPath as C, grantAccess as E, verifiesTokens as S, explainGrants as T, privateHost as _, VERCEL_ISSUER as a, trustedIssuers as b, checkGrant as c, fromTokens as d, grantIssuers as f, markVerified as g, joined as h, TOKENS as i, checkPrincipal as l, issuerName as m, DEFAULT_CAN as n, authenticates as o, hostPrincipal as p, GITHUB_ISSUER as r, checkCan as s, BOARD_TOKEN_PREFIX as t, createAuthority as u, removes as v, wroteAs as w, verifiedIssuers as x, tokenHash as y };
589
+ export { explainGrants as C, wroteAs as S, removes as _, authenticates as a, verifiesTokens as b, checkPrincipal as c, grantIssuers as d, hostPrincipal as f, privateHost as g, markVerified as h, VERCEL_ISSUER as i, createAuthority as l, joined as m, GITHUB_ISSUER as n, checkCan as o, issuerName as p, TOKENS as r, checkGrant as s, DEFAULT_CAN as t, fromTokens as u, trustedIssuers as v, grantAccess as w, workflowPath as x, verifiedIssuers as y };
@@ -1,7 +1,97 @@
1
- import { At as TokenBody, B as PostBody, Bt as Access, C as InboxEntry, Ct as SyncThreadView, D as InboxQuery, Dt as ThreadsPage, E as InboxPushBody, Et as ThreadView, F as MessageView, Ft as UpdateGrantBody, G as ReactBody, I as MessagesPage, L as MessagesQuery, Lt as UploadStartBody, M as MatchView, Mt as TokenView, N as MatchesQuery, Nt as TypingBody, Ot as ThreadsQuery, P as Me, Q as ScheduleBody, Rt as UploadTicket, S as InboxAckBody, T as InboxNextQuery, Xt as Level, Y as RegistrationView, Zt as Permission, _t as SyncFindQuery, a as BoardEventView, an as Attachment, at as SchemaBody, c as CreateChannelBody, cn as Labels, ct as SourceJoin, d as EditBody, dt as SourceRead, f as EventsPage, ft as SourceReadQuery, g as Explanation, h as ExplainQuery, ht as SyncCopiesView, j as LinkedQuery, k as LabelBody, l as DeleteBody, lt as SourceJoinBody, mt as SyncCopiesQuery, n as ActorView, nt as SchedulesQuery, on as Author, p as EventsQuery, q as RegisterBody, rn as Actor, s as ChannelView, st as SchemaView, t as AckBody, tt as ScheduleView, u as Discovery, un as ExternalEvent, v as GrantBody, vt as SyncFindView, w as InboxItem, wt as SyncedView, x as GrantView, xt as SyncReceiptBody, yt as SyncImportBody } from "./routes-CAjd5ARa.mjs";
2
- import { d as Pinned, l as Known, m as StoredGrant, o as Granted, t as Authenticate } from "./auth-DtmZzlHm.mjs";
3
- import { F as ErrorOrigin, N as BoardClient, R as ProfileOption, m as SyncProvider } from "./provider-YqkF1E2k.mjs";
1
+ import { At as TypingBody, B as PostBody, C as InboxEntry, Ct as SyncThreadView, D as InboxQuery, Dt as ThreadsPage, E as InboxPushBody, Et as ThreadView, F as MessageView, Ft as UploadTicket, G as ReactBody, I as MessagesPage, Jt as Permission, L as MessagesQuery, Lt as Access, M as MatchView, Mt as UpdateGrantBody, N as MatchesQuery, Ot as ThreadsQuery, P as Me, Pt as UploadStartBody, Q as ScheduleBody, S as InboxAckBody, T as InboxNextQuery, Y as RegistrationView, _t as SyncFindQuery, a as BoardEventView, an as Labels, at as SchemaBody, c as CreateChannelBody, ct as SourceJoin, d as EditBody, dt as SourceRead, en as Actor, f as EventsPage, ft as SourceReadQuery, g as Explanation, h as ExplainQuery, ht as SyncCopiesView, j as LinkedQuery, k as LabelBody, l as DeleteBody, lt as SourceJoinBody, mt as SyncCopiesQuery, n as ActorView, nn as Attachment, nt as SchedulesQuery, p as EventsQuery, q as RegisterBody, qt as Level, rn as Author, s as ChannelView, sn as ExternalEvent, st as SchemaView, t as AckBody, tt as ScheduleView, u as Discovery, v as GrantBody, vt as SyncFindView, w as InboxItem, wt as SyncedView, x as GrantView, xt as SyncReceiptBody, yt as SyncImportBody, zt as Can } from "./routes-By9lmvUD.mjs";
2
+ import { l as Known, o as Granted, p as StoredGrant, t as Authenticate } from "./auth-Bn8J_1F2.mjs";
3
+ import { F as ErrorOrigin, N as BoardClient, R as ProfileOption, m as SyncProvider } from "./provider-dY54GFNz.mjs";
4
4
  import { z } from "zod";
5
+ //#region src/server/sandbox.d.ts
6
+ /** How a rule matches a value: a regular expression (RE2), or the value exactly. */
7
+ type SandboxMatcher = {
8
+ regex: string;
9
+ } | {
10
+ exact: string;
11
+ };
12
+ /** The requests a rule handles: every dimension it names must match. */
13
+ type SandboxMatch = {
14
+ path?: SandboxMatcher;
15
+ method?: string[];
16
+ queryString?: {
17
+ key: SandboxMatcher;
18
+ value?: SandboxMatcher;
19
+ }[];
20
+ headers?: {
21
+ key: SandboxMatcher;
22
+ value?: SandboxMatcher;
23
+ }[];
24
+ };
25
+ /** A rule for one host's requests, as Vercel Sandbox runs them: in order, and the first that matches handles a request. */
26
+ type SandboxRule = {
27
+ match?: SandboxMatch;
28
+ transform: {
29
+ headers: Record<string, string>;
30
+ }[];
31
+ } | {
32
+ match?: SandboxMatch;
33
+ response: {
34
+ statusCode: number;
35
+ body?: string;
36
+ contentType?: string;
37
+ };
38
+ };
39
+ /**
40
+ * A network policy, as `@vercel/sandbox`'s `NetworkPolicy` has it: the hosts it allows, each with its
41
+ * rules. A host it doesn't name is blocked, so a caller adds its own beside the board's:
42
+ * `{ allow: { ...board.allow, 'registry.npmjs.org': [] } }`.
43
+ */
44
+ type SandboxPolicy = {
45
+ allow: Record<string, SandboxRule[]>;
46
+ };
47
+ /** What `sandboxPolicy()` takes: who the agent writes as, what it may do, and the credential, all left in the policy. */
48
+ type SandboxPolicyOptions = {
49
+ /**
50
+ * The profile its writes are by, with its avatar: `{ name: 'fixer', avatar: 'https://…' }`. Without one,
51
+ * the handle's own, from `as()`. It needs one: a policy that set none would let the sandbox send its
52
+ * own, and write as any profile of this deployment, its watchers' included.
53
+ */
54
+ profile?: {
55
+ name: string;
56
+ avatar?: string;
57
+ };
58
+ /**
59
+ * What it may do at most, as `x-board-can` narrows it: a `can` (`{ 'dev/': ['read', 'post'] }`) or its
60
+ * header form (`dev/=read,post`). Without one, read, post, react, and label everywhere.
61
+ */
62
+ can?: Can | string;
63
+ /**
64
+ * The credential its requests carry. Without one, this deployment's own Vercel OIDC token, for the
65
+ * board's URL, which dies with the function's own: hand the sandbox a new policy before it does.
66
+ */
67
+ token?: string;
68
+ };
69
+ /** A route a sandbox reaches: its method, and its path after the board's URL's, `:name` standing for a segment (`/messages/:id`). */
70
+ type SandboxRoute = {
71
+ method: string;
72
+ path: string;
73
+ };
74
+ /**
75
+ * How a sandbox reaches a board, from a backend: its URL, the headers its requests carry, the routes
76
+ * under the board's path that carry them, every one by method and shape (the protocol's, or another
77
+ * API's), and what else they ask (`GET`s outside the board's path).
78
+ */
79
+ type SandboxReach = {
80
+ url: string;
81
+ headers: Record<string, string>;
82
+ routes: readonly SandboxRoute[];
83
+ reads?: readonly string[];
84
+ };
85
+ /** What a backend gets to say how a sandbox reaches its board. */
86
+ type SandboxInput = {
87
+ profile: {
88
+ name: string;
89
+ avatar?: string;
90
+ };
91
+ can: string;
92
+ token: string | undefined;
93
+ };
94
+ //#endregion
5
95
  //#region src/api/protocol.d.ts
6
96
  type Input<S extends z.ZodType> = NonNullable<z.output<S>>;
7
97
  type Id = {
@@ -148,28 +238,6 @@ type Protocol = {
148
238
  revoked: boolean;
149
239
  };
150
240
  };
151
- /** The caller's tokens, or every one with `manage` in every channel. 501 `no_tokens` where the board issues none. */
152
- tokens: {
153
- input: Nothing;
154
- output: {
155
- tokens: TokenView[];
156
- };
157
- };
158
- /** A token acting as the caller, narrowed: the only time its secret shows. */
159
- createToken: {
160
- input: Input<typeof TokenBody>;
161
- output: {
162
- token: TokenView;
163
- secret: string;
164
- };
165
- };
166
- /** It and every token minted with it stop. `revoked` is false when it was already gone. */
167
- revokeToken: {
168
- input: Id;
169
- output: {
170
- revoked: boolean;
171
- };
172
- };
173
241
  /** Every schema: the built-ins, then the board's own, by name and version. 501 `no_schemas` where the board keeps none. */
174
242
  schemas: {
175
243
  input: Nothing;
@@ -554,7 +622,7 @@ type BoardOptions = PolicyOptions & (BackendOptions | DefaultOptions) & {
554
622
  /**
555
623
  * The handle on a board: its methods act as the board's caller, through board(), which calls the
556
624
  * backend's methods, and `fetch` serves it. Over `http()` the caller is whoever its `fetch`'s
557
- * credentials say, with the profile `BOARD_AS` or the agent it runs in picks; on a board it keeps
625
+ * credentials say, with the profile `BOARD_PROFILE` names; on a board it keeps
558
626
  * (`local()`), its own code, as `board:client`.
559
627
  */
560
628
  type Board = BoardClient & {
@@ -568,6 +636,16 @@ type Board = BoardClient & {
568
636
  * on `local()`. `null` acts as yourself, outside any agent session.
569
637
  */
570
638
  as(profile: ProfileOption): Board;
639
+ /**
640
+ * A Vercel Sandbox network policy that hands this board, and nothing else, to a sandboxed agent:
641
+ * `Sandbox.create({ networkPolicy })` takes it. The sandbox's proxy adds the credential (this
642
+ * deployment's own OIDC token, or `token`), the profile (`profile`, or this handle's from `as()`),
643
+ * and `x-board-can` (`can`, or read, post, react, and label everywhere) to its requests for the
644
+ * board's own routes, so none of them enters the sandbox; every other host is blocked. Spread
645
+ * `allow` beside your own hosts' rules to merge them. An OIDC token dies with the function that got
646
+ * it: hand the sandbox a new policy (`sandbox.update({ networkPolicy })`) before it expires.
647
+ */
648
+ sandboxPolicy(options?: SandboxPolicyOptions): Promise<SandboxPolicy>;
571
649
  };
572
650
  /** A board on a backend you pass, which says how it reaches the board itself. */
573
651
  type BackendOptions = {
@@ -621,7 +699,7 @@ type SelfCaller = {
621
699
  /**
622
700
  * What `as(profile)` asked for, its avatar included, or null for yourself. Absent on the
623
701
  * handle itself, whose caller is whoever the environment picks: a backend elsewhere sends
624
- * the profile `BOARD_AS` or the agent it runs in names.
702
+ * the profile `BOARD_PROFILE` names.
625
703
  */
626
704
  profile?: ProfileOption;
627
705
  origin: WriteOrigin;
@@ -746,26 +824,12 @@ type BoardBinding = {
746
824
  /** The board's own URL, where a board elsewhere can wake it, once it's known. */
747
825
  url(): string | null;
748
826
  };
749
- /** A token a backend issued, as board() checks a request that carries it. */
750
- type StoredToken = {
751
- id: string;
752
- name: string;
753
- /** Who minted it, as a schedule keeps its creator: what it may do is worked out again on every request, narrowed by its scope. */
754
- minter: Known;
755
- pinned: Pinned;
756
- expiresAt: Date;
757
- };
758
827
  /**
759
- * What a backend that keeps the board keeps of who it trusts: its grants, and the tokens it
760
- * issued. board() reads them on the requests they decide, as they are then, so a revoke takes
761
- * effect on the next request.
828
+ * What a backend that keeps the board keeps of who it trusts: its grants. board() reads them on
829
+ * the requests they decide, as they are then, so a revoke takes effect on the next request.
762
830
  */
763
831
  type Trust = {
764
832
  grants(): Promise<readonly StoredGrant[]>;
765
- /** The token whose secret hashes to `hash`, while it and every token it was minted with are live: null otherwise. */
766
- token(hash: string): Promise<StoredToken | null>;
767
- /** Whether token `id` and every token it was minted with are live: a schedule made with one stops when it doesn't. */
768
- live(id: string): Promise<boolean>;
769
833
  };
770
834
  /**
771
835
  * Where a board lives. board() serves the protocol over HTTP: it routes, validates, verifies each
@@ -777,7 +841,7 @@ interface Backend extends ProtocolMethods {
777
841
  readonly routes: readonly BackendRoute[];
778
842
  /**
779
843
  * Whether the board lives here. One that keeps it (`local()`) serves requests: its people, the
780
- * board's own deployments, and whoever its grants and tokens let in. One that uses another board
844
+ * board's own deployments, and whoever its grants let in. One that uses another board
781
845
  * answers no requests: on Vercel's, only wake-ups and webhooks, and at `BOARD_URL`, nothing.
782
846
  */
783
847
  readonly keeps: boolean;
@@ -793,8 +857,14 @@ interface Backend extends ProtocolMethods {
793
857
  * pulls its inbox, starts threads, and delivers only through the keys it holds. Every key, when left out.
794
858
  */
795
859
  syncedHere?(key: string): Promise<boolean>;
796
- /** Its grants and tokens, for a backend that keeps them (`local()`): board() checks requests against them. */
860
+ /** Its grants, for a backend that keeps them (`local()`): board() checks requests against them. */
797
861
  readonly trust?: Trust;
862
+ /**
863
+ * How a sandbox reaches the board this backend uses, for `sandboxPolicy()`: its URL, and the
864
+ * headers every request of the sandbox's carries. One that keeps the board leaves it out: the
865
+ * board's own URL says, and board() adds its deployment's credential.
866
+ */
867
+ sandbox?(input: SandboxInput): Promise<SandboxReach>;
798
868
  /**
799
869
  * board() calls it once, when it's created, before any request: what background work needs
800
870
  * from the board (its subscriptions, its sync, its policy, a handle through it). It does no I/O.
@@ -802,4 +872,4 @@ interface Backend extends ProtocolMethods {
802
872
  bind(board: BoardBinding): void;
803
873
  }
804
874
  //#endregion
805
- export { Protocol as C, Method as S, MiddlewareContext as _, Identity as a, WriteSource as b, SelfCaller as c, Board as d, BoardOptions as f, Middleware as g, DroppedError as h, Caller as i, Subscription as l, WatcherContext as m, BackendRoute as n, InboxDelivery as o, Watcher as p, BoardBinding as r, ProtocolMethods as s, Backend as t, VerifiedCaller as u, Write as v, HttpError as x, WritePatch as y };
875
+ export { Protocol as C, SandboxPolicyOptions as D, SandboxPolicy as E, SandboxRule as O, Method as S, SandboxMatcher as T, MiddlewareContext as _, Identity as a, WriteSource as b, SelfCaller as c, Board as d, BoardOptions as f, Middleware as g, DroppedError as h, Caller as i, Subscription as l, WatcherContext as m, BackendRoute as n, InboxDelivery as o, Watcher as p, BoardBinding as r, ProtocolMethods as s, Backend as t, VerifiedCaller as u, Write as v, SandboxMatch as w, HttpError as x, WritePatch as y };
@@ -1,4 +1,4 @@
1
- import { t as Backend } from "./backend-BW5NbBsp.mjs";
1
+ import { t as Backend } from "./backend-CYsTLxtP.mjs";
2
2
  //#region src/server/local.d.ts
3
3
  type LocalOptions = {
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { t as local } from "./local-CsleYuyM.mjs";
1
+ import { t as local } from "./local-B9y4p6N7.mjs";
2
2
  export { local };
@@ -1,5 +1,5 @@
1
- import "./external-CHDxWIVf.mjs";
2
- import { c as SyncProvider, s as ResolvedTarget } from "./events-C6HwB046.mjs";
1
+ import "./external-DymyhUzl.mjs";
2
+ import { c as SyncProvider, s as ResolvedTarget } from "./events-BT8y_81j.mjs";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import { Chat, stringifyMarkdown } from "chat";
5
5
  //#region src/sync/chat.ts
@@ -1,5 +1,5 @@
1
- import { ct as SourceJoin, dn as ExternalFile, dt as SourceRead, fn as ExternalLink, ln as ExternalAuthor, rn as Actor } from "./routes-CAjd5ARa.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-YqkF1E2k.mjs";
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 = {
@@ -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-BJLocuXj.mjs";
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 };
@@ -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-D6VWegVY.mjs";
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 };