careervivid 1.1.9 → 1.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/api.js CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { getApiKey, getApiUrl } from "./config.js";
8
8
  // ── Helpers ───────────────────────────────────────────────────────────────────
9
- const CLI_VERSION = "1.1.7";
9
+ const CLI_VERSION = "1.1.11";
10
10
  function requireApiKey() {
11
11
  const key = getApiKey();
12
12
  if (!key) {
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8J3D"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAiK3D"}
@@ -38,11 +38,14 @@ export function registerLoginCommand(program) {
38
38
  return;
39
39
  }
40
40
  const token = url.searchParams.get("token");
41
- serverRes.writeHead(200, { "Content-Type": "text/html" });
41
+ serverRes.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
42
42
  serverRes.end(`
43
43
  <!DOCTYPE html>
44
44
  <html>
45
- <head><title>CareerVivid CLI</title></head>
45
+ <head>
46
+ <meta charset="utf-8">
47
+ <title>CareerVivid CLI</title>
48
+ </head>
46
49
  <body style="font-family:sans-serif;text-align:center;padding:60px;background:#0f172a;color:#e2e8f0;">
47
50
  <h1 style="color:#3b82f6">✅ CLI Authorized!</h1>
48
51
  <p>You can close this tab and return to your terminal.</p>
@@ -61,7 +64,7 @@ export function registerLoginCommand(program) {
61
64
  }
62
65
  });
63
66
  await new Promise((resolve) => {
64
- server.listen(0, "127.0.0.1", () => resolve());
67
+ server.listen(0, "0.0.0.0", () => resolve());
65
68
  });
66
69
  const address = server.address();
67
70
  const callbackPort = typeof address === "object" && address ? address.port : 9876;
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4C5D"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8C5D"}
@@ -16,9 +16,11 @@ export function registerUpdateCommand(program) {
16
16
  console.log(getHelpHeader());
17
17
  const spinner = ora("Upgrading CareerVivid CLI to latest...").start();
18
18
  // Run npm install -g careervivid@latest
19
- const npm = spawn("npm", ["install", "-g", "careervivid@latest"], {
20
- shell: true,
19
+ const isWin = process.platform === "win32";
20
+ const npmCmd = isWin ? "npm.cmd" : "npm";
21
+ const npm = spawn(npmCmd, ["install", "-g", "careervivid@latest"], {
21
22
  stdio: "pipe",
23
+ shell: isWin,
22
24
  });
23
25
  let output = "";
24
26
  let errorOutput = "";
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ const program = new Command();
34
34
  program
35
35
  .name("cv")
36
36
  .description("CareerVivid CLI — publish articles, diagrams, and portfolio updates from your terminal or AI agent")
37
- .version("1.1.8", "-v, --version", "Print CLI version")
37
+ .version("1.1.11", "-v, --version", "Print CLI version")
38
38
  .addHelpText("before", getHelpHeader())
39
39
  .helpOption("-h, --help", "Show help");
40
40
  registerAuthCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "careervivid",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Official CLI for CareerVivid — publish articles, diagrams, and portfolio updates from your terminal or AI agent",
5
5
  "type": "module",
6
6
  "bin": {