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 +1 -1
- package/bin/kafox.js +3 -2
- package/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/tui.js +1 -1
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.
|
|
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:
|
|
14
|
-
.version(
|
|
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
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 = "
|
|
11
|
+
const { version: VERSION } = require("../package.json");
|
|
12
12
|
|
|
13
13
|
const COMMANDS = {
|
|
14
14
|
"/help": "show this help",
|