kafox-cli 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -12,7 +12,7 @@ npm install -g kafox-cli
12
12
  O comando instalado e `kafox`. Alternativa sem npm:
13
13
 
14
14
  ```bash
15
- npm install -g https://kafox.pypag.com/static/downloads/kafox-cli-0.2.0.tgz
15
+ npm install -g https://kafox.pypag.com/static/downloads/kafox-cli-0.2.1.tgz
16
16
  ```
17
17
 
18
18
  Requisito: Node.js 22.5+.
package/bin/kafox.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  const { Command } = require("commander");
3
+ const { version } = require("../package.json");
3
4
  const { runREPL, compact, clearContext, showStatus } = require("../src/cli");
4
5
  const { login, logout, whoami, createKey } = require("../src/auth");
5
6
  const { listModels, showBalance, showPricing } = require("../src/models");
@@ -10,8 +11,8 @@ const program = new Command();
10
11
 
11
12
  program
12
13
  .name("kafox")
13
- .description("Kafox CLI in opencode style: REPL, account login, models, balance, themes")
14
- .version("0.1.0");
14
+ .description("Kafox CLI in opencode style: terminal UI, account login, models, balance, themes")
15
+ .version(version);
15
16
 
16
17
  program.command("login").description("Login with your Kafox account (device code SSO)").action(login);
17
18
  program.command("logout").description("End the CLI session").action(logout);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kafox-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Kafox CLI in opencode style: full-screen terminal UI, device login, models, balance, themes",
5
5
  "bin": {
6
6
  "kafox": "bin/kafox.js"
package/src/cli.js CHANGED
@@ -8,7 +8,7 @@ const { runTUI } = require("./tui");
8
8
  const { runTheme, setContentBackground, paint } = require("./theme");
9
9
  const { mascot } = require("./mascot");
10
10
 
11
- const VERSION = "0.2.0";
11
+ const { version: VERSION } = require("../package.json");
12
12
 
13
13
  const COMMANDS = {
14
14
  "/help": "show this help",
package/src/tui.js CHANGED
@@ -76,7 +76,7 @@ function initialState() {
76
76
  model: cfg.model || null,
77
77
  theme: cfg.theme || "default",
78
78
  suspended: false,
79
- version: "0.2.0",
79
+ version: require("../package.json").version,
80
80
  };
81
81
  }
82
82