@letterstory/cli 0.177.219 → 0.177.220
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/lib/cli.mjs +2 -2
- package/lib/commands/auth.mjs +2 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
94
94
|
|
|
95
95
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
96
|
-
export const VERSION = "0.177.
|
|
96
|
+
export const VERSION = "0.177.220";
|
|
97
97
|
|
|
98
98
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
99
99
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -671,7 +671,7 @@ Auth:
|
|
|
671
671
|
login [--url <url>] Sign in via your browser; a link over SSH (default url: https://app.letterstory.com)
|
|
672
672
|
login --device [--url <url>] Sign in with one link, opened in any browser (for agents and remote shells)
|
|
673
673
|
login --key <ls_…> [--url <url>] Save a static API key instead (for CI/automation)
|
|
674
|
-
signup --email <work email> [--agent <name>] [--url <url>]
|
|
674
|
+
signup --email <work email> [--agent <name>] [--site <domain>] [--url <url>]
|
|
675
675
|
Sign someone up with no account yet: Letter emails them a link,
|
|
676
676
|
they confirm in a browser, and this saves the new account's session
|
|
677
677
|
logout Forget saved credentials (revokes an OAuth session, if any)
|
package/lib/commands/auth.mjs
CHANGED
|
@@ -79,6 +79,7 @@ export const ARGS = {
|
|
|
79
79
|
start_signup: {
|
|
80
80
|
email: { flag: "email", required: true },
|
|
81
81
|
agent: "agent",
|
|
82
|
+
site: "site",
|
|
82
83
|
},
|
|
83
84
|
};
|
|
84
85
|
|
|
@@ -91,6 +92,7 @@ export async function cmdSignup(ctx) {
|
|
|
91
92
|
const client = new LetterstoryClient({ url });
|
|
92
93
|
const start = await client.callTool("start_signup", argsFromFlags(ARGS.start_signup, flags), { keyless: true });
|
|
93
94
|
io.log(`Letter emailed ${start.email} a link to create their account.`);
|
|
95
|
+
if (start.site) io.log(`Script tag for ${start.site.domain}, counting page views from now:\n${start.site.tag}`);
|
|
94
96
|
io.log(`Ask them to open it and confirm. Code: ${start.user_code} (the page shows the same one)`);
|
|
95
97
|
io.log(`${start.free_tokens.note} The confirmation page shows what this account gets.`);
|
|
96
98
|
io.log("Waiting for them to confirm…");
|