zen-code 4.6.1 → 4.7.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/README.md +52 -27
- package/dist/FileSystemSkillStore-Dl5briBv.mjs +108 -0
- package/dist/MultiLineTextInput-e7hD79Wp.mjs +24631 -0
- package/dist/app-CcnStH9S.mjs +17015 -0
- package/dist/checkpoint-C5AFBYE--BbnaceZj.mjs +355 -0
- package/dist/checkpoint-DxiUsHMy-Cep4XMTK.mjs +394 -0
- package/dist/cli.mjs +17 -17
- package/dist/devtools-CzaVuYnh.mjs +2667 -0
- package/dist/graphBuilder-skVEY6RJ.mjs +34281 -0
- package/dist/index-BeLj9JYN.mjs +463 -0
- package/dist/{index-DEcMgCTj.mjs → index-D_dnZWV3.mjs} +2 -2
- package/dist/{load-Bh8eo6qE.mjs → load-iYJqYrjn.mjs} +1 -1
- package/dist/{memories-rSGKIPk5.mjs → memories-CSOPZKuJ.mjs} +2 -2
- package/dist/nonInteractive.mjs +28 -25
- package/dist/pg-adapter-BFtir1GE-BbUXBpaX.mjs +60 -0
- package/dist/queue-DySatFkr-DjaRbjhM.mjs +106 -0
- package/dist/remote-threads-CrG03ZS7-C9duTCnB.mjs +157 -0
- package/dist/shallow-CqCGqQDo.mjs +331 -0
- package/dist/shallow-checkpoint-BEhTdp7z-CquyGG0C.mjs +383 -0
- package/dist/sqlite-adapter-oBA95xba-BrBWorSV.mjs +82 -0
- package/dist/subTasks-DEZYN-F3.mjs +18 -0
- package/dist/zen-code.mjs +2 -8654
- package/dist/zen-keyboard.mjs +6 -7
- package/package.json +12 -9
- package/dist/FileSystemSkillStore-yvEvcRxB.mjs +0 -94
- package/dist/MultiLineTextInput-B4NEXnFm.mjs +0 -23343
- package/dist/devtools-BHqoL8a6.mjs +0 -11653
- package/dist/graphBuilder-B3IJ7dB2.mjs +0 -2641
- package/dist/subTasks-5KLIr9iy.mjs +0 -209
package/dist/zen-keyboard.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const [r, u] = l(`Press any key...
|
|
1
|
+
import { r as a, j as n, a as c, u as f, T as x } from "./MultiLineTextInput-e7hD79Wp.mjs";
|
|
2
|
+
a(/* @__PURE__ */ n.jsx(l, {}));
|
|
3
|
+
function l() {
|
|
4
|
+
const [r, u] = c.useState(`Press any key...
|
|
6
5
|
`);
|
|
7
|
-
return
|
|
6
|
+
return f((i, o, p) => {
|
|
8
7
|
const t = ["\x1B[2J\x1B[H", "input:", JSON.stringify(i), "", "key:"], e = Object.entries(o).filter(([, s]) => s === !0);
|
|
9
8
|
for (const [s] of e)
|
|
10
9
|
t.push(` ${s}: true`);
|
|
11
10
|
e.length === 0 && t.push(" (no true values)"), t.push(JSON.stringify(p, null, 2)), u(t.join(`
|
|
12
11
|
`));
|
|
13
|
-
}), /* @__PURE__ */ n.jsx(
|
|
12
|
+
}), /* @__PURE__ */ n.jsx(x, { children: r });
|
|
14
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zen-code",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/cli.mjs",
|
|
6
6
|
"bin": "./dist/cli.mjs",
|
|
@@ -17,12 +17,17 @@
|
|
|
17
17
|
"@langchain/core": "1.1.15",
|
|
18
18
|
"@langchain/google-genai": "^2.1.18",
|
|
19
19
|
"@langchain/langgraph": "^1.1.0",
|
|
20
|
+
"@langchain/mcp-adapters": "^1.1.1",
|
|
20
21
|
"@langchain/openai": "1.1.3",
|
|
21
|
-
"@langgraph-js/pure-graph": "^3.
|
|
22
|
+
"@langgraph-js/pure-graph": "^3.2.0",
|
|
22
23
|
"chalk": "^5.6.2",
|
|
24
|
+
"diff-match-patch": "^1.0.5",
|
|
23
25
|
"execa": "^9.6.1",
|
|
24
26
|
"extract-zip": "^2.0.1",
|
|
25
27
|
"fs-extra": "^11.3.3",
|
|
28
|
+
"kysely": "^0.28.11",
|
|
29
|
+
"kysely-bun-worker": "^1.2.1",
|
|
30
|
+
"kysely-wasm": "^1.2.1",
|
|
26
31
|
"langchain": "1.1.1",
|
|
27
32
|
"lowdb": "^7.0.1",
|
|
28
33
|
"marked": "^16.4.2",
|
|
@@ -37,15 +42,13 @@
|
|
|
37
42
|
"xdg-basedir": "^5.1.0",
|
|
38
43
|
"yaml": "^2.8.2",
|
|
39
44
|
"zod": "^4.3.5",
|
|
40
|
-
"
|
|
41
|
-
"@langchain/mcp-adapters": "^1.1.1",
|
|
42
|
-
"@langgraph-js/standard-agent": "1.1.0"
|
|
45
|
+
"@langgraph-js/standard-agent": "1.2.1"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@
|
|
48
|
+
"@inkjs/ui": "^2.0.0",
|
|
46
49
|
"@langgraph-js/sdk": "^4.6.3",
|
|
47
50
|
"@nanostores/react": "^1.0.0",
|
|
48
|
-
"@
|
|
51
|
+
"@tanstack/react-query": "^5.90.21",
|
|
49
52
|
"@testing-library/react": "^16.3.2",
|
|
50
53
|
"@testing-library/user-event": "^14.6.1",
|
|
51
54
|
"@types/diff-match-patch": "^1.0.36",
|
|
@@ -65,8 +68,8 @@
|
|
|
65
68
|
"vite-plugin-static-copy": "^3.1.4",
|
|
66
69
|
"vitest": "^4.0.18",
|
|
67
70
|
"@codegraph/agent": "1.0.0",
|
|
68
|
-
"@codegraph/union-client": "1.0.0",
|
|
69
71
|
"@codegraph/config": "1.0.0",
|
|
72
|
+
"@codegraph/union-client": "1.0.0",
|
|
70
73
|
"ink-pro": "1.1.0"
|
|
71
74
|
},
|
|
72
75
|
"babel": {
|
|
@@ -75,7 +78,7 @@
|
|
|
75
78
|
]
|
|
76
79
|
},
|
|
77
80
|
"scripts": {
|
|
78
|
-
"dev": "bun run src/
|
|
81
|
+
"dev": "bun run src/cli.ts",
|
|
79
82
|
"build": "vite build",
|
|
80
83
|
"prepublish": "pnpm build",
|
|
81
84
|
"test": "vitest",
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import n from "node:fs/promises";
|
|
2
|
-
import e from "node:path";
|
|
3
|
-
import m from "node:os";
|
|
4
|
-
import o from "yaml";
|
|
5
|
-
class f {
|
|
6
|
-
skillsDir;
|
|
7
|
-
projectSkillsDir;
|
|
8
|
-
constructor() {
|
|
9
|
-
const t = m.homedir();
|
|
10
|
-
this.skillsDir = e.join(t, ".deepagents", "code", "skills"), this.projectSkillsDir = e.join(process.cwd(), ".claude", "skills");
|
|
11
|
-
}
|
|
12
|
-
async listSkills() {
|
|
13
|
-
const t = [], i = await this.listSkillsInDir(this.skillsDir);
|
|
14
|
-
t.push(...i);
|
|
15
|
-
const s = await this.listSkillsInDir(this.projectSkillsDir);
|
|
16
|
-
return t.push(...s), t;
|
|
17
|
-
}
|
|
18
|
-
async listSkillsInDir(t) {
|
|
19
|
-
try {
|
|
20
|
-
const i = await n.readdir(t, { withFileTypes: !0 }), s = [];
|
|
21
|
-
for (const r of i)
|
|
22
|
-
if (r.isDirectory()) {
|
|
23
|
-
const l = e.join(t, r.name, "SKILL.md");
|
|
24
|
-
try {
|
|
25
|
-
const a = await n.readFile(l, "utf-8"), c = this.parseFrontmatter(a);
|
|
26
|
-
s.push({
|
|
27
|
-
name: r.name,
|
|
28
|
-
description: c.description || "",
|
|
29
|
-
path: l
|
|
30
|
-
});
|
|
31
|
-
} catch {
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return s;
|
|
35
|
-
} catch {
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async getSkill(t) {
|
|
40
|
-
const i = e.join(this.projectSkillsDir, t, "SKILL.md");
|
|
41
|
-
try {
|
|
42
|
-
const r = await n.readFile(i, "utf-8");
|
|
43
|
-
return this.parseSkillContent(r);
|
|
44
|
-
} catch {
|
|
45
|
-
}
|
|
46
|
-
const s = e.join(this.skillsDir, t, "SKILL.md");
|
|
47
|
-
try {
|
|
48
|
-
const r = await n.readFile(s, "utf-8");
|
|
49
|
-
return this.parseSkillContent(r);
|
|
50
|
-
} catch {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
async saveSkill(t, i) {
|
|
55
|
-
const s = e.join(this.skillsDir, t);
|
|
56
|
-
await n.mkdir(s, { recursive: !0 });
|
|
57
|
-
const r = this.formatSkillContent(i);
|
|
58
|
-
await n.writeFile(e.join(s, "SKILL.md"), r, "utf-8");
|
|
59
|
-
}
|
|
60
|
-
async deleteSkill(t) {
|
|
61
|
-
const i = e.join(this.skillsDir, t);
|
|
62
|
-
await n.rm(i, { recursive: !0, force: !0 });
|
|
63
|
-
}
|
|
64
|
-
async syncFromRemote(t) {
|
|
65
|
-
const i = await t.listRemoteSkills();
|
|
66
|
-
for (const s of i) {
|
|
67
|
-
const r = await t.fetchSkill(s.name);
|
|
68
|
-
r && await this.saveSkill(s.name, r);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
parseFrontmatter(t) {
|
|
72
|
-
const i = t.match(/^---\n(.+?)\n---/s);
|
|
73
|
-
if (!i) return {};
|
|
74
|
-
try {
|
|
75
|
-
return o.parse(i[1]);
|
|
76
|
-
} catch {
|
|
77
|
-
return {};
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
parseSkillContent(t) {
|
|
81
|
-
const i = this.parseFrontmatter(t), s = t.replace(/^---\n.+?\n---\n*/s, "");
|
|
82
|
-
return { frontmatter: i, markdown: s };
|
|
83
|
-
}
|
|
84
|
-
formatSkillContent(t) {
|
|
85
|
-
return `---
|
|
86
|
-
${o.stringify(t.frontmatter).trim()}
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
${t.markdown}`;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
export {
|
|
93
|
-
f as FileSystemSkillStore
|
|
94
|
-
};
|