@somewhere-cloud/cli 0.38.130 → 0.38.131
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 +4 -0
- package/README.md +1 -1
- package/dist/lib/bundle.js +5 -5
- package/dist/lib/bundle.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.38.131
|
|
2
|
+
|
|
3
|
+
- 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>`.
|
|
4
|
+
|
|
1
5
|
## 0.38.130
|
|
2
6
|
|
|
3
7
|
- 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
|
|
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
|
package/dist/lib/bundle.js
CHANGED
|
@@ -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
|
|
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
|
}
|
|
@@ -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
|
-
|
|
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
|
|
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>`,
|
|
@@ -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
|
|
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
|
|
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.");
|