careervivid 1.4.0 → 1.6.0

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.4.0";
9
+ const CLI_VERSION = "1.6.0";
10
10
  function requireApiKey() {
11
11
  const key = getApiKey();
12
12
  if (!key) {
package/dist/index.js CHANGED
@@ -19,8 +19,10 @@
19
19
  * cv --help / cv --version
20
20
  */
21
21
  import { Command } from "commander";
22
+ import { readFileSync, existsSync } from "fs";
22
23
  import chalk from "chalk";
23
- import { existsSync } from "fs";
24
+ import { join, dirname } from "path";
25
+ import { fileURLToPath } from "url";
24
26
  import { CONFIG_FILE } from "./config.js";
25
27
  import { getHelpHeader, printWelcome } from "./branding.js";
26
28
  import { registerAuthCommand } from "./commands/auth.js";
@@ -34,11 +36,13 @@ import { registerPortfolioCommand } from "./commands/portfolio.js";
34
36
  import { registerWorkspaceCommand } from "./commands/workspace.js";
35
37
  import { registerProfileCommand } from "./commands/profile.js";
36
38
  import { registerJobsCommand } from "./commands/jobs.js";
39
+ const __dirname = dirname(fileURLToPath(import.meta.url));
40
+ const pkg = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8"));
37
41
  const program = new Command();
38
42
  program
39
43
  .name("cv")
40
44
  .description("CareerVivid CLI — publish articles, diagrams, and portfolio updates from your terminal or AI agent")
41
- .version("1.3.0", "-v, --version", "Print CLI version")
45
+ .version(pkg.version, "-v, --version", "Print CLI version")
42
46
  .addHelpText("before", getHelpHeader())
43
47
  .helpOption("-h, --help", "Show help");
44
48
  registerAuthCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "careervivid",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
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": {