@somewhere-cloud/cli 0.38.130 → 0.38.132

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.38.132
2
+
3
+ - `somewhere open --dashboard` opens the dashboard at https://somewhere.cloud/app, and the sign-up link the CLI prints is https://somewhere.cloud/app/sign-in?intent=signup.
4
+
5
+ ## 0.38.131
6
+
7
+ - The claim link is called a claim link everywhere the CLI prints it (`somewhere claim` prints `Claim link:`). New claim links read `https://somewhere.cloud/claim/<code>`.
8
+
1
9
  ## 0.38.130
2
10
 
3
11
  - Signed out, a command that needs an account also says that `somewhere deploy` puts a folder live without one, with a claim link. `somewhere deploy --help` says the same under "No project yet?".
package/README.md CHANGED
@@ -19,7 +19,7 @@ npx @somewhere-cloud/cli deploy
19
19
  ```
20
20
 
21
21
  From a project folder, that single command deploys anonymously when no account
22
- is configured and prints the live URL, claim URL, and expiry.
22
+ is configured and prints the live URL, claim link, and expiry.
23
23
 
24
24
  The package installs the `somewhere` command and the short alias `sw`. It also
25
25
  installs `cli`, the name `npx @somewhere-cloud/cli` resolves to; use
@@ -8467,7 +8467,7 @@ function loadConfig() {
8467
8467
  try {
8468
8468
  return JSON.parse(body);
8469
8469
  } catch {
8470
- error(`${CONFIG_PATH} is not valid JSON, so this computer's Somewhere sign-in cannot be read. Nothing was sent. Run \`${cliInvocation()} login\` to replace it (a temporary project it held stays reachable through its claim URL).`);
8470
+ error(`${CONFIG_PATH} is not valid JSON, so this computer's Somewhere sign-in cannot be read. Nothing was sent. Run \`${cliInvocation()} login\` to replace it (a temporary project it held stays reachable through its claim link).`);
8471
8471
  process.exit(1);
8472
8472
  }
8473
8473
  }
@@ -37601,7 +37601,7 @@ var init_auth2 = __esm({
37601
37601
  __name(readAuthToken, "readAuthToken");
37602
37602
  __name(readPasswordExportCode, "readPasswordExportCode");
37603
37603
  __name(createProtectedOutput, "createProtectedOutput");
37604
- SIGNUP_URL = "https://somewhere.cloud/auth?intent=signup";
37604
+ SIGNUP_URL = "https://somewhere.cloud/app/sign-in?intent=signup";
37605
37605
  SIGNUP_HINT = `New here? Create an account: ${SIGNUP_URL}`;
37606
37606
  __name(describeScope, "describeScope");
37607
37607
  __name(loginIntroLines, "loginIntroLines");
@@ -76582,7 +76582,7 @@ async function mintTempAccount(client = new ApiClient(null), onChallenge) {
76582
76582
  scopes: data2.scopes ?? [],
76583
76583
  expires_at: data2.expires_at,
76584
76584
  ttl_seconds: data2.ttl_seconds,
76585
- claim_token: data2.claim_token,
76585
+ claim_code: data2.claim_code,
76586
76586
  claim_url: data2.claim_url
76587
76587
  };
76588
76588
  }
@@ -82737,7 +82737,7 @@ Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cl
82737
82737
  return runDeployTests({ client, root: deployStateEntry?.dir ?? targetDir, projectId: result.project_id ?? projectId ?? void 0, json: Boolean(opts.json), release: release2 ?? void 0, renderPending: postLive.kind === "timeout", prepared: prepareDeployTests(() => prepareRunner(deployStateEntry?.dir ?? targetDir)) });
82738
82738
  }, "runReleaseTests");
82739
82739
  const verificationNextSteps = besideRealLogin ? [
82740
- "Inspect the live URL; keep this project and its claim URL.",
82740
+ "Inspect the live URL; keep this project and its claim link.",
82741
82741
  `After claiming and connecting this project, run: ${cliInvocation()} verify --project <PROJECT>`
82742
82742
  ] : [
82743
82743
  `Read the live release: ${cliInvocation()} status --project <PROJECT>`,
@@ -87272,8 +87272,8 @@ var init_status = __esm({
87272
87272
  function registerOpen(program2) {
87273
87273
  program2.command("open [project]").description("Open the project URL in your browser").option("--project <ref>", "Project ID, name, slug, or subdomain \u2014 the same flag every other command takes. The positional form still works.").option("--dashboard", "Open the dashboard instead").action(async (project, opts) => {
87274
87274
  if (opts.dashboard) {
87275
- info(`Opening ${dim("https://somewhere.cloud/dashboard")}...`);
87276
- await open("https://somewhere.cloud/dashboard");
87275
+ info(`Opening ${dim("https://somewhere.cloud/app")}...`);
87276
+ await open("https://somewhere.cloud/app");
87277
87277
  return;
87278
87278
  }
87279
87279
  const token = getToken();
@@ -87320,7 +87320,7 @@ var init_open2 = __esm({
87320
87320
 
87321
87321
  // dist/commands/claim.js
87322
87322
  function registerClaim(program2) {
87323
- program2.command("claim").description("Print the claim URL for this computer's temporary apps").option("--json", "Print { claim_url, expires_at } as JSON").action((opts) => {
87323
+ program2.command("claim").description("Print the claim link for this computer's temporary apps").option("--json", "Print { claim_url, expires_at } as JSON").action((opts) => {
87324
87324
  const config2 = loadConfig();
87325
87325
  if (!config2?.temporary || !config2.claim_url) {
87326
87326
  const message3 = config2?.token ? `This terminal has no temporary workspace to claim. Run \`${cliInvocation()} projects\` to see the apps it can access.` : `This terminal has no temporary workspace. If you deployed signed out from another terminal, run \`${cliInvocation()} claim\` there. Run \`${cliInvocation()} deploy\` here to start one.`;
@@ -87341,7 +87341,7 @@ function registerClaim(program2) {
87341
87341
  error(`This computer's temporary workspace expired at ${config2.temp_expires_at}. Unclaimed apps are gone. Run \`${cliInvocation()} deploy\` to start a new one.`);
87342
87342
  process.exit(1);
87343
87343
  }
87344
- info(`Claim URL: ${teal(config2.claim_url)}`);
87344
+ info(`Claim link: ${teal(config2.claim_url)}`);
87345
87345
  if (config2.temp_expires_at)
87346
87346
  info(`Expires at: ${config2.temp_expires_at} (UTC)`);
87347
87347
  info("Open it in a browser and sign in or create an account to keep these apps.");