zen-code 1.9.0 → 1.9.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.
package/README.md CHANGED
@@ -3,18 +3,8 @@
3
3
  A Cli Coder like Claude Code
4
4
 
5
5
  ```sh
6
- bunx --bun zen-code
7
- ```
8
-
9
- ```sh
10
- # change openai config
11
- /config openai_api_key sk-***
12
- /config openai_base_url https://....
13
-
14
- # change anthropic config
15
- /config anthropic_api_key sk-***
16
- /config anthropic_base_url https://....
17
- /config model_provider anthropic
6
+ bunx --bun zen-code init # setup global model config
7
+ bunx --bun zen-code # start chat
18
8
  ```
19
9
 
20
10
  ```sh
package/cli.js CHANGED
@@ -1,2 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import './dist/zen-code.mjs';
2
+ const args = process.argv.slice(2);
3
+
4
+ if (args[0] === 'init') {
5
+ import('./dist/zen-init.mjs');
6
+ } else {
7
+ import('./dist/zen-code.mjs');
8
+ }
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "zen-code",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "main": "cli.js",
6
- "bin": {
7
- "zen-init": "./zen-init.js"
8
- },
9
6
  "files": [
10
- "dist"
7
+ "dist",
8
+ "cli.js"
11
9
  ],
12
10
  "keywords": [],
13
11
  "author": "KonghaYao",
package/zen-init.js DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import './dist/zen-init.mjs';