zen-code 2.1.0 → 2.3.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/zen-code.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import "./use-input-CQELhJxU.mjs";
1
+ import "./use-input-1eSjZocJ.mjs";
2
2
  import "chalk";
3
- import "./app-CdJSgzzZ.mjs";
3
+ import "./app-C0lXPfzi.mjs";
package/dist/zen-init.mjs CHANGED
@@ -1,6 +1,7 @@
1
- import { a as t, j as e, B as o, T as r, r as U } from "./use-input-CQELhJxU.mjs";
1
+ import { a as t, j as e, B as o, T as r, r as U } from "./use-input-1eSjZocJ.mjs";
2
2
  import "chalk";
3
- import { u as A, S as O, M as T, a as B, b as R, d as K, g as M, c as v, i as L } from "./MultiSelect-C_hSPGpl.mjs";
3
+ import { u as A, S as O, M as T, a as B, b as R, g as K } from "./MultiSelect-DZAUJ6V8.mjs";
4
+ import { d as M, u as v, i as L } from "./index-DpsJ-2by.mjs";
4
5
  const N = ({ onNext: l, onExit: i }) => {
5
6
  A((c, d) => {
6
7
  d.return ? l() : d.ctrl && c === "c" && i();
@@ -335,7 +336,7 @@ const N = ({ onNext: l, onExit: i }) => {
335
336
  ] }),
336
337
  /* @__PURE__ */ e.jsxs(o, { children: [
337
338
  /* @__PURE__ */ e.jsx(r, { color: "blue", children: "配置路径 ::" }),
338
- /* @__PURE__ */ e.jsx(r, { color: "gray", children: K })
339
+ /* @__PURE__ */ e.jsx(r, { color: "gray", children: M })
339
340
  ] })
340
341
  ] }),
341
342
  /* @__PURE__ */ e.jsxs(o, { marginBottom: 1, flexDirection: "column", gap: 0, children: [
@@ -405,7 +406,7 @@ const N = ({ onNext: l, onExit: i }) => {
405
406
  try {
406
407
  const h = process.env.MODEL_PROVIDER, E = process.env.OPENAI_API_KEY, a = process.env.ANTHROPIC_API_KEY;
407
408
  process.env.MODEL_PROVIDER = n, n === "openai" ? process.env.OPENAI_API_KEY = s || "temp" : process.env.ANTHROPIC_API_KEY = s || "temp";
408
- const _ = (await M()).filter((P) => P.provider === n);
409
+ const _ = (await K()).filter((P) => P.provider === n);
409
410
  p(_), h && (process.env.MODEL_PROVIDER = h), E && (process.env.OPENAI_API_KEY = E), a && (process.env.ANTHROPIC_API_KEY = a);
410
411
  } catch (h) {
411
412
  g(`加载模型失败: ${h instanceof Error ? h.message : String(h)}`), p([]);
@@ -1,4 +1,4 @@
1
- import { r as a, j as n, a as c, u as f, T as x } from "./use-input-CQELhJxU.mjs";
1
+ import { r as a, j as n, a as c, u as f, T as x } from "./use-input-1eSjZocJ.mjs";
2
2
  a(/* @__PURE__ */ n.jsx(l, {}));
3
3
  function l() {
4
4
  const [r, u] = c.useState(`Press any key...
package/package.json CHANGED
@@ -1,40 +1,39 @@
1
1
  {
2
2
  "name": "zen-code",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
- "main": "cli.js",
6
- "bin": "cli.js",
5
+ "main": "./dist/cli.mjs",
6
+ "bin": "./dist/cli.mjs",
7
7
  "files": [
8
- "dist",
9
- "cli.js"
8
+ "dist"
10
9
  ],
11
10
  "keywords": [],
12
11
  "author": "KonghaYao",
13
12
  "license": "Apache-2.0",
14
13
  "dependencies": {
15
14
  "@anthropic-ai/sdk": "^0.71.2",
16
- "@langchain/anthropic": "1.1.3",
17
- "@langchain/core": "^1",
18
- "@langchain/langgraph": "^1.0.7",
15
+ "@langchain/anthropic": "1.3.10",
16
+ "@langchain/core": "^1.1.15",
17
+ "@langchain/langgraph": "^1.1.0",
19
18
  "@langchain/openai": "1.1.3",
20
19
  "@langgraph-js/pure-graph": "^2.10.0",
21
20
  "chalk": "^5.6.2",
22
- "execa": "^9.6.0",
21
+ "execa": "^9.6.1",
23
22
  "extract-zip": "^2.0.1",
24
23
  "fs-extra": "^11.3.3",
25
24
  "langchain": "1.1.1",
26
25
  "lowdb": "^7.0.1",
27
- "marked": "^16.2.1",
26
+ "marked": "^16.4.2",
28
27
  "marked-terminal": "^7.3.0",
29
28
  "node-notifier": "^10.0.1",
30
- "node-sqlite3-wasm": "^0.8.52",
31
- "openai": "^6.15.0",
29
+ "node-sqlite3-wasm": "^0.8.53",
30
+ "openai": "^6.16.0",
32
31
  "path-exists": "^5.0.0",
33
32
  "string-width": "^8.1.0",
34
33
  "tempy": "^3.1.0",
35
34
  "xdg-basedir": "^5.1.0",
36
35
  "yaml": "^2.8.2",
37
- "zod": "^4"
36
+ "zod": "^4.3.5"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@inkjs/ui": "^2.0.0",
@@ -45,18 +44,17 @@
45
44
  "@types/fs-extra": "^11.0.4",
46
45
  "@types/marked-terminal": "^6.1.1",
47
46
  "@types/node-notifier": "^8.0.5",
48
- "@types/react": "^19.1.12",
47
+ "@types/react": "^19.2.8",
49
48
  "@vitejs/plugin-react": "^5.1.2",
50
49
  "comlink": "^4.4.2",
51
50
  "diff-match-patch": "^1.0.5",
52
51
  "ink": "^6.6.0",
53
52
  "ink-markdown": "^1.0.4",
54
- "ink-select-input": "^6.2.0",
55
53
  "ink-spinner": "^5.0.0",
56
54
  "ink-syntax-highlight": "^2.0.2",
57
55
  "ink-text-input": "^6.0.0",
58
- "react": "^19.1.1",
59
- "vite": "^7.3.0",
56
+ "react": "^19.2.3",
57
+ "vite": "^7.3.1",
60
58
  "vite-bundle-analyzer": "^1.3.2",
61
59
  "vite-plugin-static-copy": "^3.1.4"
62
60
  },
package/cli.js DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- const args = process.argv.slice(2);
3
-
4
- if (args[0] === 'init') {
5
- import('./dist/zen-init.mjs');
6
- } else if (args[0] === 'keyboard') {
7
- import('./dist/zen-keyboard.mjs');
8
- } else {
9
- import('./dist/zen-code.mjs');
10
- }