@somewhere-cloud/cli 0.38.129 → 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 +8 -0
- package/README.md +1 -1
- package/dist/lib/bundle.js +8 -7
- 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,11 @@
|
|
|
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
|
+
|
|
5
|
+
## 0.38.130
|
|
6
|
+
|
|
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?".
|
|
8
|
+
|
|
1
9
|
## 0.38.129
|
|
2
10
|
|
|
3
11
|
- `somewhere test` runs the starter's full check on an unclaimed app: sign-up, sign-in and the privacy check.
|
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
|
}
|
|
@@ -8642,7 +8642,7 @@ function getToken() {
|
|
|
8642
8642
|
process.exit(1);
|
|
8643
8643
|
}
|
|
8644
8644
|
if (!config2?.token) {
|
|
8645
|
-
error(`Not logged in.
|
|
8645
|
+
error(`Not logged in. To put a folder live without an account, run ${cliInvocation()} deploy there: it creates a temporary app and prints its live URL and claim link. To sign in, run ${cliInvocation()} login (it prints a code to approve in any browser). If you deployed signed out from another terminal on this computer, run this command there: its temporary credential is in that terminal's ~/.somewhere.`);
|
|
8646
8646
|
process.exit(1);
|
|
8647
8647
|
}
|
|
8648
8648
|
return config2.token;
|
|
@@ -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
|
}
|
|
@@ -82168,7 +82168,8 @@ Functions missing from the directory: a full \`${cliInvocation()} deploy\` REMOV
|
|
|
82168
82168
|
are not in this directory (each one is named in the output). \`--scope functions\` keeps them unless
|
|
82169
82169
|
--replace-functions. \`${cliInvocation()} promote\` is the opposite: it keeps them unless --prune.
|
|
82170
82170
|
|
|
82171
|
-
No project yet? Signed
|
|
82171
|
+
No project yet? Signed out, deploy creates a temporary app and prints its claim link; no other step.
|
|
82172
|
+
Signed in, deploy never creates one on its own:
|
|
82172
82173
|
${cliInvocation()} init --bare --name <name> create a project in your account and link this folder
|
|
82173
82174
|
${cliInvocation()} deploy then deploy it
|
|
82174
82175
|
Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cliInvocation()} projects\`), or \`--project <ref>\` here.
|
|
@@ -82736,7 +82737,7 @@ Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cl
|
|
|
82736
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)) });
|
|
82737
82738
|
}, "runReleaseTests");
|
|
82738
82739
|
const verificationNextSteps = besideRealLogin ? [
|
|
82739
|
-
"Inspect the live URL; keep this project and its claim
|
|
82740
|
+
"Inspect the live URL; keep this project and its claim link.",
|
|
82740
82741
|
`After claiming and connecting this project, run: ${cliInvocation()} verify --project <PROJECT>`
|
|
82741
82742
|
] : [
|
|
82742
82743
|
`Read the live release: ${cliInvocation()} status --project <PROJECT>`,
|
|
@@ -87319,7 +87320,7 @@ var init_open2 = __esm({
|
|
|
87319
87320
|
|
|
87320
87321
|
// dist/commands/claim.js
|
|
87321
87322
|
function registerClaim(program2) {
|
|
87322
|
-
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) => {
|
|
87323
87324
|
const config2 = loadConfig();
|
|
87324
87325
|
if (!config2?.temporary || !config2.claim_url) {
|
|
87325
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.`;
|
|
@@ -87340,7 +87341,7 @@ function registerClaim(program2) {
|
|
|
87340
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.`);
|
|
87341
87342
|
process.exit(1);
|
|
87342
87343
|
}
|
|
87343
|
-
info(`Claim
|
|
87344
|
+
info(`Claim link: ${teal(config2.claim_url)}`);
|
|
87344
87345
|
if (config2.temp_expires_at)
|
|
87345
87346
|
info(`Expires at: ${config2.temp_expires_at} (UTC)`);
|
|
87346
87347
|
info("Open it in a browser and sign in or create an account to keep these apps.");
|