@vincentt-xr/cli 0.5.0 → 0.5.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/dist/cli/index.js CHANGED
@@ -38,7 +38,9 @@ import { fetchNext, readCursor, writeCursor } from "../lib/feedback.js";
38
38
  import { isHelpInvocation, isVersionInvocation, positionalArgs, refusedFlag, } from "./args.js";
39
39
  // The console origin serves /cli-auth (the browser target for `vincentt login`). VINCENTT_
40
40
  // CONSOLE_URL overrides for dev/dogfood; VINCENTT_EDITOR_URL is honored as a legacy alias.
41
- const DEFAULT_CONSOLE_URL = "https://vincentt.app";
41
+ // This is the prod console; vincentt.app is the published-PROJECT apex, not the console, so a
42
+ // first-run `vincentt login` (no machine config yet) must default here or it opens a dead page.
43
+ const DEFAULT_CONSOLE_URL = "https://console.vincentt.studio";
42
44
  const DEFAULT_API_URL = "https://api.vincentt.studio";
43
45
  // ---- arg helpers ------------------------------------------------------------
44
46
  const argv = process.argv.slice(2);
@@ -95,7 +95,11 @@ export async function runPkceLogin(opts) {
95
95
  const backend = opts.backend ?? httpAuthBackend(opts.apiUrl);
96
96
  const pickPort = opts.pickPort ?? getFreePort;
97
97
  const openBrowser = opts.openBrowser ?? defaultOpenBrowser;
98
- const saveToken = opts.saveToken ?? ((apiUrl, pat) => writeMachineConfig({ apiUrl, pat }));
98
+ // Persist consoleUrl alongside apiUrl + pat so a later `vincentt login` resolves the
99
+ // console origin from config instead of falling back to the DEFAULT_CONSOLE_URL — the
100
+ // resolution the very first login could not use because nothing was stored yet.
101
+ const saveToken = opts.saveToken ??
102
+ ((apiUrl, pat) => writeMachineConfig({ apiUrl, pat, consoleUrl: opts.consoleUrl }));
99
103
  const progress = opts.onProgress ?? (() => { });
100
104
  const material = makePkceMaterial();
101
105
  const port = await pickPort();
@@ -3,7 +3,7 @@
3
3
  //
4
4
  // This is ARGUMENT PARSING. Exit 1, no network call, nothing looked up.
5
5
  import { CONSOLE_ONLY_VERBS, consoleVerb } from "./copy.js";
6
- const DEFAULT_CONSOLE_URL = "https://console.vincentt.app";
6
+ const DEFAULT_CONSOLE_URL = "https://console.vincentt.studio";
7
7
  export function isConsoleOnlyVerb(verb) {
8
8
  return CONSOLE_ONLY_VERBS.includes(verb);
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincentt-xr/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Vincentt CLI — the vincentt command-line dev loop (login, create, publish, preview, diagnostics, feedback, relay)",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",