openhome-cli 0.1.9 → 0.1.11

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.js CHANGED
@@ -291,8 +291,17 @@ function openBrowser(url) {
291
291
  }
292
292
  async function loginCommand() {
293
293
  p.intro("\u{1F511} OpenHome Login");
294
+ p.note(
295
+ [
296
+ "Your API key is a private password that lets this CLI talk to your",
297
+ "OpenHome account. You can find it on your settings page.",
298
+ "",
299
+ `Press Enter and we'll open it for you \u2014 click the ${chalk2.bold("API Keys")} tab.`
300
+ ].join("\n"),
301
+ "Step 1 of 2 \u2014 Connect your account"
302
+ );
294
303
  const openSettings = await p.confirm({
295
- message: `Press Enter to open your browser and navigate to the ${chalk2.bold("API Keys")} tab`,
304
+ message: "Ready? Press Enter to open your browser",
296
305
  initialValue: true,
297
306
  active: "Open browser",
298
307
  inactive: "Skip"
@@ -358,7 +367,7 @@ async function loginCommand() {
358
367
  "",
359
368
  `${chalk2.bold("4.")} Paste this command and press Enter:`,
360
369
  "",
361
- ` ${chalk2.green("copy(localStorage.getItem('token'))")}`,
370
+ ` ${chalk2.green("copy(localStorage.getItem('access_token'))")}`,
362
371
  "",
363
372
  `${chalk2.bold("5.")} Your token is copied to clipboard \u2014 paste it back here.`
364
373
  ].join("\n"),
@@ -3171,7 +3180,7 @@ async function setJwtCommand(token) {
3171
3180
  "",
3172
3181
  `${chalk13.bold("4.")} Paste this command and press Enter:`,
3173
3182
  "",
3174
- ` ${chalk13.green("copy(localStorage.getItem('token'))")}`,
3183
+ ` ${chalk13.green("copy(localStorage.getItem('access_token'))")}`,
3175
3184
  "",
3176
3185
  `${chalk13.bold("5.")} Your token is copied to clipboard \u2014 paste it back here.`
3177
3186
  ].join("\n"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openhome-cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "CLI for managing OpenHome voice AI abilities",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,8 +26,18 @@ export async function loginCommand(): Promise<void> {
26
26
  p.intro("🔑 OpenHome Login");
27
27
 
28
28
  // Step 1: API key
29
+ p.note(
30
+ [
31
+ "Your API key is a private password that lets this CLI talk to your",
32
+ "OpenHome account. You can find it on your settings page.",
33
+ "",
34
+ `Press Enter and we'll open it for you — click the ${chalk.bold("API Keys")} tab.`,
35
+ ].join("\n"),
36
+ "Step 1 of 2 — Connect your account",
37
+ );
38
+
29
39
  const openSettings = await p.confirm({
30
- message: `Press Enter to open your browser and navigate to the ${chalk.bold("API Keys")} tab`,
40
+ message: "Ready? Press Enter to open your browser",
31
41
  initialValue: true,
32
42
  active: "Open browser",
33
43
  inactive: "Skip",
@@ -105,7 +115,7 @@ export async function loginCommand(): Promise<void> {
105
115
  "",
106
116
  `${chalk.bold("4.")} Paste this command and press Enter:`,
107
117
  "",
108
- ` ${chalk.green("copy(localStorage.getItem('token'))")}`,
118
+ ` ${chalk.green("copy(localStorage.getItem('access_token'))")}`,
109
119
  "",
110
120
  `${chalk.bold("5.")} Your token is copied to clipboard — paste it back here.`,
111
121
  ].join("\n"),
@@ -42,7 +42,7 @@ export async function setJwtCommand(token?: string): Promise<void> {
42
42
  "",
43
43
  `${chalk.bold("4.")} Paste this command and press Enter:`,
44
44
  "",
45
- ` ${chalk.green("copy(localStorage.getItem('token'))")}`,
45
+ ` ${chalk.green("copy(localStorage.getItem('access_token'))")}`,
46
46
  "",
47
47
  `${chalk.bold("5.")} Your token is copied to clipboard — paste it back here.`,
48
48
  ].join("\n"),