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/MultiSelect-DZAUJ6V8.mjs +651 -0
- package/dist/app-C0lXPfzi.mjs +10027 -0
- package/dist/{checkpoint-1sAx_j1E-DbNzRw_n.mjs → checkpoint-1sAx_j1E-CeuO6wLL.mjs} +2 -1
- package/dist/{checkpoint-DxiUsHMy-BVWm3y9_.mjs → checkpoint-DxiUsHMy-D5StF4Dg.mjs} +4 -3
- package/dist/cli.mjs +33 -0
- package/dist/{devtools-BxIzBVXg.mjs → devtools-DpL9Fl6d.mjs} +658 -649
- package/dist/{app-CdJSgzzZ.mjs → graph-aTwGGPhX.mjs} +26957 -35867
- package/dist/{id-Bh5iJfyi.mjs → id-D-r9rdKn.mjs} +1 -1
- package/dist/{index-tkCYsAxh.mjs → index-DgogF6Ub.mjs} +5 -4
- package/dist/index-DpsJ-2by.mjs +23 -0
- package/dist/nonInteractive.mjs +45 -0
- package/dist/{queue-BSCnCent-DK-siJDC.mjs → queue-D6tEGCGs-CEAj3iiS.mjs} +21 -15
- package/dist/{shallow-Buk4Nzc4.mjs → shallow-Cg7nKycD.mjs} +5 -4
- package/dist/{use-input-CQELhJxU.mjs → use-input-1eSjZocJ.mjs} +751 -748
- package/dist/zen-code.mjs +2 -2
- package/dist/zen-init.mjs +5 -4
- package/dist/zen-keyboard.mjs +1 -1
- package/package.json +15 -17
- package/cli.js +0 -10
- package/dist/MultiSelect-C_hSPGpl.mjs +0 -655
- package/dist/index-DXn61qXM.mjs +0 -767
- package/dist/memory-BmHqUV4v.mjs +0 -93
package/dist/zen-code.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./use-input-
|
|
1
|
+
import "./use-input-1eSjZocJ.mjs";
|
|
2
2
|
import "chalk";
|
|
3
|
-
import "./app-
|
|
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-
|
|
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,
|
|
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:
|
|
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
|
|
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([]);
|
package/dist/zen-keyboard.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zen-code",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "cli.
|
|
6
|
-
"bin": "cli.
|
|
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.
|
|
17
|
-
"@langchain/core": "^1",
|
|
18
|
-
"@langchain/langgraph": "^1.0
|
|
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.
|
|
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
|
|
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.
|
|
31
|
-
"openai": "^6.
|
|
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.
|
|
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.
|
|
59
|
-
"vite": "^7.3.
|
|
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