monoban 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,9 +8,10 @@ monoban whoami
8
8
  monoban logout
9
9
  ```
10
10
 
11
- Signing in opens monoban.dev and asks you to authorize this computer. Over SSH, or anywhere without a
12
- browser, `monoban login --device` shows a code to approve at monoban.dev/device on any device. The
13
- sign-in is kept in your system keychain, and you can sign CLIs out in monoban.dev → Devices & tokens.
11
+ Signing in opens monoban.dev/panel and asks you to authorize this computer. Over SSH, or anywhere
12
+ without a browser, `monoban login --device` shows a code to approve at monoban.dev/panel/device on any
13
+ device. The sign-in is kept in your system keychain, and you can sign CLIs out in monoban.dev/panel →
14
+ Devices & tokens.
14
15
 
15
16
  ```sh
16
17
  monoban projects # your projects and their keys
package/dist/index.mjs CHANGED
@@ -22,14 +22,14 @@ function apiUrl(env = process.env) {
22
22
  return trimSlash(env.MONOBAN_API_URL || "https://api.monoban.dev");
23
23
  }
24
24
  /**
25
- * The web app, where you approve a sign-in: $MONOBAN_WEB_URL, else the API's host without "api."
26
- * (https://api.monoban.dev → https://monoban.dev).
25
+ * The web app, where you approve a sign-in: $MONOBAN_WEB_URL, else /panel on the API's host without
26
+ * "api." (https://api.monoban.dev → https://monoban.dev/panel; monoban.dev is the landing page).
27
27
  */
28
28
  function webUrl(env = process.env) {
29
29
  if (env.MONOBAN_WEB_URL) return trimSlash(env.MONOBAN_WEB_URL);
30
30
  const url = new URL(apiUrl(env));
31
31
  url.hostname = url.hostname.replace(/^api\./, "");
32
- return trimSlash(url.origin);
32
+ return `${url.origin}/panel`;
33
33
  }
34
34
  /** What Devices & tokens calls this computer: its hostname, as printable ASCII ("mbp", not "mbp.local"). */
35
35
  function deviceName(name = hostname()) {
@@ -6638,7 +6638,7 @@ function matchColumn(columns, query) {
6638
6638
  //#endregion
6639
6639
  //#region src/version.ts
6640
6640
  /** This CLI's version, from package.json (set at build time by tsdown, and by vitest in tests). */
6641
- const VERSION = "0.1.0";
6641
+ const VERSION = "1.0.0";
6642
6642
  /** Sent as X-Monoban-Client, and shown in Devices & tokens. */
6643
6643
  const CLIENT = `cli/${VERSION}`;
6644
6644
  //#endregion
@@ -10190,7 +10190,7 @@ function page(res, title, text) {
10190
10190
  //#region src/login/device.ts
10191
10191
  /**
10192
10192
  * Device sign-in (RFC 8628): for a terminal without a browser (SSH, a container). The CLI shows a
10193
- * code; you approve it on any signed-in device at monoban.dev/device while the CLI polls.
10193
+ * code; you approve it on any signed-in device at monoban.dev/panel/device while the CLI polls.
10194
10194
  */
10195
10195
  async function deviceLogin({ api, device, show, sleep = wait, now = Date.now }) {
10196
10196
  const start = await unwrap(api.POST("/v1/auth/device", { body: {
@@ -10657,7 +10657,7 @@ async function open$1(ctx, ref, options) {
10657
10657
  url = boardUrl(ctx, await resolveProject(ctx, apis(ctx).signedIn, options.project));
10658
10658
  } catch (err) {
10659
10659
  if (!(err instanceof CliError) || err.exitCode !== EXIT.usage || options.project) throw err;
10660
- url = `${ctx.webUrl}/`;
10660
+ url = ctx.webUrl;
10661
10661
  }
10662
10662
  ctx.out(url);
10663
10663
  if (ctx.env.MONOBAN_NO_OPEN !== "1" && canOpenBrowser(ctx.env)) ctx.openUrl(url);
@@ -10966,7 +10966,7 @@ async function latestVersion(ctx) {
10966
10966
  async function upgrade(ctx, options, kind = thisInstall()) {
10967
10967
  const latest = await latestVersion(ctx);
10968
10968
  const { how, command } = UPGRADE[kind];
10969
- const outdated = latest !== null && newer(latest, "0.1.0");
10969
+ const outdated = latest !== null && newer(latest, "1.0.0");
10970
10970
  if (options.json) {
10971
10971
  ctx.out(JSON.stringify({
10972
10972
  version: VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monoban",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "A keyboard-first kanban board in your terminal: list, add and move tasks on monoban.dev.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://monoban.dev",