@vercel/board 0.54.1 → 0.56.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.
@@ -1,2 +1,2 @@
1
- import { t as local } from "./local-BtzF9fRs.mjs";
1
+ import { t as local } from "./local-B5aZcAwj.mjs";
2
2
  export { local };
@@ -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-D8HctFGJ.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-7FY_8p92.mjs";
2
2
  export { commands, filters, globalOptions, groups, option, options, usage };
@@ -1,5 +1,5 @@
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";
1
+ import { o as stoppedBy } from "./exports-DSX-CI5c.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-DSlpMoBN.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-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";
2
+ import { a as option } from "./commands-7FY_8p92.mjs";
3
+ import { g as projectDir } from "./server-55vryxAl.mjs";
4
+ import { r as main } from "./main-DSlpMoBN.mjs";
5
+ import { i as createInspector, r as stopped, t as allowedHosts } from "./inspect-C-vDnB_n.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-DeY883DA.mjs")).inspect(context);
40
+ return (await import("./inspect-CJ8osLQ-.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-BMOtQEiQ.mjs");
84
+ const { serveLocal } = await import("./serve-CI3kvpx_.mjs");
85
85
  const local = await serveLocal({
86
86
  dir: flags.dir ?? join(root, ".board"),
87
87
  hosts,
@@ -728,6 +728,21 @@ const commands = [
728
728
  }
729
729
  ]
730
730
  },
731
+ {
732
+ group: "the board",
733
+ name: "list",
734
+ aliases: ["ls"],
735
+ description: "the team's boards you can use, in Vercel's API: the names --name takes",
736
+ arguments: [],
737
+ options: [],
738
+ examples: [{
739
+ name: "list the team's boards",
740
+ value: "list"
741
+ }, {
742
+ name: "another team's",
743
+ value: "ls --scope acme"
744
+ }]
745
+ },
731
746
  {
732
747
  group: "the board",
733
748
  name: "channels",
@@ -4,9 +4,9 @@ import { $ as SchedulesQuery, A as CreatedTasksQuery, B as InboxPushBody, C as C
4
4
  import { _ as sha256, a as waitUntil, c as platformProfile, d as userIdOf, m as derivedId, o as actorParts, r as runMiddleware, s as importedHandle, t as DroppedError, u as underPrincipal } from "./middleware-BY4qqIh3.mjs";
5
5
  import { n as blocksIn, r as findBlocks } from "./blocks-CVoBC7ur.mjs";
6
6
  import { a as replaceMentions, i as mentionTerms, o as settleMentions, r as mentionTerm, t as extractMentions } from "./mentions-CnWt9Z5b.mjs";
7
- import { t as VERSION } from "./version-1isUFDyU.mjs";
7
+ import { t as VERSION } from "./version-gbihG3ui.mjs";
8
8
  import { a as canText, c as compileAccess, d as parsePattern, n as InvalidCan, r as PERMISSIONS, t as FULL_ACCESS, u as parseCan } from "./access-HzqFpgL_.mjs";
9
- import { _ as SYNC, a as runMatch, d as openapi, f as queryObject, g as uploadName, h as carried, i as canonicalWatchers, l as METHODS, m as readJson, n as SYNC_ACTOR, o as compileWatcher, p as readCapped, r as syncTarget, t as batchPlan, u as createRouter } from "./task-batch-BviIruES.mjs";
9
+ import { _ as uploadName, a as runMatch, d as createRouter, f as openapi, g as carried, h as readJson, i as canonicalWatchers, m as readCapped, n as SYNC_ACTOR, o as compileWatcher, p as queryObject, r as syncTarget, t as batchPlan, u as METHODS, v as SYNC } from "./task-batch-iecHMssy.mjs";
10
10
  import { C as verifiedIssuers, D as explainGrants, d as createAuthority, f as fromTokens, m as hostPrincipal, o as VERCEL_ISSUER, p as grantIssuers, t as DEFAULT_CAN$1, v as namesByLogin, w as verifiesTokens } from "./auth-D9ycDQK0.mjs";
11
11
  import { a as resolveActor, o as viaOf, r as claimsOf, t as KNOWN_AGENTS } from "./actors-D-u6bitG.mjs";
12
12
  import { t as checkValue } from "./data-values-CoTP0SQG.mjs";
@@ -4837,6 +4837,26 @@ function createVercel(options, environment) {
4837
4837
  }]
4838
4838
  };
4839
4839
  },
4840
+ /**
4841
+ * The team's boards this backend's credentials may use, every page of them, and the ID of the
4842
+ * team's default board where it has one the caller may use: `GET /boards`, as `vb boards` lists them.
4843
+ */
4844
+ async boards() {
4845
+ const who = { profile: null };
4846
+ const boards = [];
4847
+ let defaultBoardId = null;
4848
+ let cursor;
4849
+ do {
4850
+ const page = await api(who, "GET", "/boards", { query: { cursor } });
4851
+ boards.push(...page.boards);
4852
+ defaultBoardId ??= page.defaultBoardId ?? null;
4853
+ cursor = page.cursor ?? void 0;
4854
+ } while (cursor);
4855
+ return {
4856
+ boards,
4857
+ defaultBoardId
4858
+ };
4859
+ },
4840
4860
  sendsSchedulesHere: false,
4841
4861
  syncedHere: holds,
4842
4862
  bind(next) {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { f as BoardError, m as duration, t as HttpError } from "./errors-DDfXnZ2b.mjs";
2
2
  import { t as DroppedError } from "./middleware-BY4qqIh3.mjs";
3
3
  import { t as block } from "./blocks-CVoBC7ur.mjs";
4
- import { c as createVercel, n as createTasksInChunks, r as createBoard, t as TasksInChunksError } from "./exports-D6Q99t_O.mjs";
4
+ import { c as createVercel, n as createTasksInChunks, r as createBoard, t as TasksInChunksError } from "./exports-DSX-CI5c.mjs";
5
5
  //#region src/backend-vercel/index.default.ts
6
6
  /**
7
7
  * Your team's board, in Vercel's API. Outside Node there's no environment to find credentials or
@@ -1,6 +1,6 @@
1
1
  import { f as BoardError, m as duration, t as HttpError } from "./errors-DDfXnZ2b.mjs";
2
2
  import { t as DroppedError } from "./middleware-BY4qqIh3.mjs";
3
3
  import { t as block } from "./blocks-CVoBC7ur.mjs";
4
- import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-D6Q99t_O.mjs";
5
- import { t as board } from "./server--J1DfQjI.mjs";
4
+ import { n as createTasksInChunks, t as TasksInChunksError } from "./exports-DSX-CI5c.mjs";
5
+ import { t as board } from "./server-55vryxAl.mjs";
6
6
  export { BoardError, DroppedError, HttpError, TasksInChunksError, block, board, createTasksInChunks, duration };