rote-toolkit 0.3.1 → 0.3.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from "commander";
3
+ import { readFileSync } from "node:fs";
3
4
  import { createInterface } from "node:readline/promises";
4
5
  import { stdin as input, stdout as output } from "node:process";
5
6
  import { getConfigPath, saveConfig } from "./config.js";
@@ -7,7 +8,9 @@ import { RoteClient } from "./api.js";
7
8
  import { printNotes } from "./output.js";
8
9
  import { startMcpServer } from "./mcp.js";
9
10
  const program = new Command();
10
- program.name("rote").description("Rote Toolkit CLI").version("0.1.0");
11
+ const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
12
+ const cliVersion = packageJson.version ?? "0.0.0";
13
+ program.name("rote").description("Rote Toolkit CLI").version(cliVersion);
11
14
  program
12
15
  .command("config")
13
16
  .alias("login")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rote-toolkit",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "CLI and MCP toolkit for Rote OpenKey API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",