@vercel/board 0.43.0 → 0.43.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.
@@ -0,0 +1,2 @@
1
+ import { t as inspect } from "./inspect-ZGkTJl3f.mjs";
2
+ export { inspect };
@@ -1,6 +1,6 @@
1
1
  import { h as ATTACHMENT_BYTES_MAX } from "./errors-DUzpDSrJ.mjs";
2
2
  import "./schemas-DAzSsgWk.mjs";
3
- import { t as Failed, u as who } from "./main-CM0_uZ7w.mjs";
3
+ import { t as Failed, u as who } from "./main-DjEJPCgo.mjs";
4
4
  import { t as page } from "./page-D-OzDOAX.mjs";
5
5
  import { randomBytes, timingSafeEqual } from "node:crypto";
6
6
  import { createServer } from "node:http";
@@ -2,7 +2,7 @@ import { _ as IMPORT_BYTES_MAX, a as forbidden$1, b as mediaType, c as toErrorRe
2
2
  import { _ as actorKind, a as CAN_MAX, b as storable, c as Handle, d as Labels, g as SeenActorKind, h as RemoteWatcherId, i as Author, l as LabelKey, m as MessageText, n as Attachment, o as ChannelPath, p as MessageId, s as Emoji, t as ActorId, v as authorView, y as platformAvatar } from "./schemas-DAzSsgWk.mjs";
3
3
  import { a as Link, i as ExternalTarget, n as ExternalEvent, o as Origin } from "./external-DymyhUzl.mjs";
4
4
  import { a as SCHEMA_DESCRIPTION_MAX, c as canonical, d as parseSchemaId, f as schemaId, i as BUILT_IN_SCHEMAS, l as checkDefinition, n as blocksIn, o as SCHEMA_NAME, s as SCHEMA_VERSION_MAX, u as isBuiltInName } from "./blocks-CVoBC7ur.mjs";
5
- import { a as compileWatcher, c as METHODS, h as VERSION, i as runMatch, m as SYNC, n as syncTarget, o as hasCriteria, r as canonicalWatchers, t as SYNC_ACTOR } from "./origin-DoRR9yql.mjs";
5
+ import { a as compileWatcher, c as METHODS, h as VERSION, i as runMatch, m as SYNC, n as syncTarget, o as hasCriteria, r as canonicalWatchers, t as SYNC_ACTOR } from "./origin-9Ch-Zonv.mjs";
6
6
  import { a as waitUntil, c as platformProfile, d as userIdOf, h as isKeyIdOf, l as shownName, m as derivedId, n as MIDDLEWARE_ACTOR, o as actorParts, s as importedHandle, t as DroppedError } from "./middleware-0DUFrav-.mjs";
7
7
  import { c as compileAccess, i as authorize, o as checkGrantChange, t as FULL_ACCESS, u as parseCan } from "./access-BgBiaCyx.mjs";
8
8
  import { S as wroteAs, _ as removes, a as authenticates, c as checkPrincipal, d as grantIssuers, m as joined, n as GITHUB_ISSUER, o as checkCan, p as issuerName, s as checkGrant, x as workflowPath } from "./auth-Ft4AJptx.mjs";
@@ -1,13 +1,13 @@
1
1
  import { g as DIRECT_UPLOAD_BYTES_MAX, u as BoardError, y as fileSize } from "./errors-DUzpDSrJ.mjs";
2
2
  import { f as MESSAGE_TEXT_MAX, r as AttachmentId } from "./schemas-DAzSsgWk.mjs";
3
3
  import { d as parseSchemaId, r as findBlocks, t as block } from "./blocks-CVoBC7ur.mjs";
4
- import { h as VERSION, s as withMentions } from "./origin-DoRR9yql.mjs";
4
+ import { h as VERSION, s as withMentions } from "./origin-9Ch-Zonv.mjs";
5
5
  import { n as displayEmoji, r as normalizeEmoji } from "./emoji-CTLpvH-A.mjs";
6
6
  import { l as shownName } from "./middleware-0DUFrav-.mjs";
7
7
  import { r as PERMISSIONS } from "./access-BgBiaCyx.mjs";
8
- import { a as isApiMessageId, n as isBoardName } from "./exports-S2AJNE_O.mjs";
8
+ import { a as isApiMessageId, n as isBoardName } from "./exports-BVgUNVsP.mjs";
9
9
  import { i as groups, n as filters$1, o as options, r as globalOptions, s as usage$1, t as commands } from "./commands-C4fR0md0.mjs";
10
- import { a as vercel, c as connect, i as handTeam, l as handFetch, n as credentialSource, o as http, p as vercelProjectFile, r as credentialed, s as boardUrl, t as board, u as handLogin } from "./server-CD7qe_Pl.mjs";
10
+ import { a as vercel, c as connect, i as handTeam, l as handFetch, n as credentialSource, o as http, p as vercelProjectFile, r as credentialed, s as boardUrl, t as board, u as handLogin } from "./server-BHpUqip5.mjs";
11
11
  import { t as conformance } from "./conformance-BORt5nky.mjs";
12
12
  import { t as displayText } from "./bots-CGkO76qH.mjs";
13
13
  import { spawn } from "node:child_process";
@@ -2895,8 +2895,6 @@ async function runOnce(argv, options) {
2895
2895
  else out(VERSION);
2896
2896
  return 0;
2897
2897
  }
2898
- const elsewhere = standalone(canonical(positionals[0]));
2899
- if (elsewhere) throw elsewhere;
2900
2898
  if (flags.help) {
2901
2899
  out(help(positionals));
2902
2900
  return 0;
@@ -2954,34 +2952,6 @@ function stopped(reason) {
2954
2952
  ...writes ? { next: [{ instruction: "It may have happened anyway: read before you run it again." }] } : {}
2955
2953
  });
2956
2954
  }
2957
- /** The commands only board's own CLI has (`local.ts`), by name: an app that embeds board's points to it. */
2958
- const STANDALONE = /* @__PURE__ */ new Set(["inspect", "serve"]);
2959
- /**
2960
- * A command only board's own CLI has, typed in an app that embeds board's: the same run there, as
2961
- * typed. The app's team never reaches these arguments (`vercel board` takes `--scope` itself), so
2962
- * `inspect`'s says where one goes, unless a URL names the board, and with it its team. `serve` runs
2963
- * a board of its own, and reads none.
2964
- */
2965
- function standalone(command) {
2966
- if (io.board || command === void 0 || !STANDALONE.has(command) || Object.hasOwn(app.commands, command)) return void 0;
2967
- const at = typed.indexOf("--");
2968
- const before = at === -1 ? typed : typed.slice(0, at);
2969
- const given = flags.url !== void 0 || Boolean(process.env.BOARD_URL?.trim()) || (flags.scope ?? flags.team) !== void 0;
2970
- const team = command === "inspect" && !given ? ["--scope", "<TEAM>"] : [];
2971
- return usage(`${named()} has no ${command}: board's own CLI runs it.`, {
2972
- reason: "unknown_command",
2973
- next: [{
2974
- instruction: "Run board's own CLI",
2975
- argv: [
2976
- "npx",
2977
- "@vercel/board@latest",
2978
- ...before,
2979
- ...team,
2980
- ...at === -1 ? [] : typed.slice(at)
2981
- ]
2982
- }]
2983
- });
2984
- }
2985
2955
  /** The commands about the machine the CLI runs on, not the board: none of them run in-process. */
2986
2956
  const MACHINE = /* @__PURE__ */ new Set([
2987
2957
  "whoami",
@@ -757,7 +757,7 @@ const routes = {
757
757
  };
758
758
  //#endregion
759
759
  //#region src/version.ts
760
- const VERSION = "0.43.0";
760
+ const VERSION = "0.43.1";
761
761
  //#endregion
762
762
  //#region src/server/backend.ts
763
763
  /** The subscription sync's outbound runs on, in `BoardBinding.subscriptions`. No watcher's ID starts with `@`. */
@@ -1,7 +1,7 @@
1
1
  import { u as BoardError } from "./errors-DUzpDSrJ.mjs";
2
- import { d as localTokenFile, t as board } from "./server-CD7qe_Pl.mjs";
2
+ import { d as localTokenFile, t as board } from "./server-BHpUqip5.mjs";
3
3
  import { t as oidcTokens } from "./tokens-BSMpTPEe.mjs";
4
- import { t as local } from "./local-0TVbQkzW.mjs";
4
+ import { t as local } from "./local-yB2DFcRi.mjs";
5
5
  import { mkdir, rename, rm, stat, writeFile } from "node:fs/promises";
6
6
  import { userInfo } from "node:os";
7
7
  import { dirname, join, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { d as createBoardClient, p as formatProfileHeader, t as HttpError, u as BoardError } from "./errors-DUzpDSrJ.mjs";
2
2
  import "./schemas-DAzSsgWk.mjs";
3
- import { Y as routes, a as compileWatcher, c as METHODS } from "./origin-DoRR9yql.mjs";
3
+ import { Y as routes, a as compileWatcher, c as METHODS } from "./origin-9Ch-Zonv.mjs";
4
4
  import { g as keyId, p as DERIVED_ID } from "./middleware-0DUFrav-.mjs";
5
- import { c as tailWatchers, i as createVercel, l as deployedOnVercel, o as PROTOCOL_ROUTES, s as withoutToken, t as createBoard } from "./exports-S2AJNE_O.mjs";
5
+ import { c as tailWatchers, i as createVercel, l as deployedOnVercel, o as PROTOCOL_ROUTES, s as withoutToken, t as createBoard } from "./exports-BVgUNVsP.mjs";
6
6
  import { execFile } from "node:child_process";
7
7
  import { createHash } from "node:crypto";
8
8
  import { mkdir, readFile, readdir, stat, unlink, writeFile } from "node:fs/promises";
@@ -27,7 +27,7 @@ The CLI makes no HTTP calls of its own: every command goes through
27
27
  does. Help, usage, and errors use the name it's given. It has every command but
28
28
  [`inspect`](#inspect) and [`serve`](#serve), which run something on this
29
29
  machine, so an app that bundles it brings neither the inspector nor a local
30
- board. Either one, typed there, points to board's own CLI.
30
+ board.
31
31
 
32
32
  ```ts
33
33
  import { createApp } from '@vercel/board/cli'
@@ -464,9 +464,9 @@ const problem = found.problem ?? checkValue(definition, found.data) // 'id mus
464
464
 
465
465
  Anyone the board lets in reads the schemas, whatever channels they read.
466
466
  Registering needs `manage` at `*`. On Vercel's board, schemas are the team's:
467
- every board on the team shares one registry, people and apps whose team role
468
- is owner, member, or developer register, and a deployment's own credentials
469
- reach none of it yet, reads included (403). It checks a
467
+ every board on the team shares one registry, and people and apps whose team
468
+ role is owner, member, or developer register. A deployment's own credentials
469
+ read them and register none. It checks a
470
470
  definition more strictly: it also refuses a `required` name the schema's
471
471
  `properties` don't declare, and a keyword for one type, such as `minLength`,
472
472
  with no `type` that says it.
@@ -151,8 +151,7 @@ Every board answers all of them: see
151
151
  schedules, grants, schemas, or files, and say so: one that answers
152
152
  one of those groups' checks with a 501 has it skipped, `not kept here`, with
153
153
  what the board said. A board that's meant to keep them and doesn't yet answers
154
- otherwise, and fails: a deployment's own credentials fail the schemas group
155
- on Vercel's boards until its API lets a project read its team's schemas.
154
+ otherwise, and fails.
156
155
  Vercel's API reads who writes as boards did before, so a run there fails two
157
156
  core checks until it reads `x-board-profile` as a structured header and its
158
157
  avatar from there alone: the profile it shows is the whole header, and the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/board",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "description": "A message board you mount in one route: one durable log, verified authors, live tail, and two-way sync.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,2 +0,0 @@
1
- import { t as inspect } from "./inspect-ByIt7CxV.mjs";
2
- export { inspect };