zen-code 4.2.0 → 4.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.
@@ -1,7 +1,7 @@
1
1
  import { K as T } from "./kysely-Bchvsze0.mjs";
2
2
  import { F as r } from "./sql-CJsUpKEQ.mjs";
3
- import { B as f, T as l, c as y, m } from "./app-DWJrZDvr.mjs";
4
- import "./graphBuilder-B3T9KyfH.mjs";
3
+ import { B as f, T as l, c as y, m } from "./app-Dy9hkwWD.mjs";
4
+ import "./graphBuilder-2Ioob7L7.mjs";
5
5
  const g = ["source", "step", "parents"];
6
6
  const E = g;
7
7
  class w extends f {
@@ -1,5 +1,5 @@
1
- import { T as l, B as N, W as k, m as y } from "./app-DWJrZDvr.mjs";
2
- import "./graphBuilder-B3T9KyfH.mjs";
1
+ import { T as l, B as N, W as k, m as y } from "./app-Dy9hkwWD.mjs";
2
+ import "./graphBuilder-2Ioob7L7.mjs";
3
3
  import w from "pg";
4
4
  const S = (h) => [
5
5
  "checkpoints",
@@ -36599,7 +36599,7 @@ async function G9(t) {
36599
36599
  name: "subagents",
36600
36600
  description: "Task delegation to specialized agents",
36601
36601
  execute: async () => {
36602
- const { SubAgentsMiddleware: i } = await import("./subTasks-PsCKmIx0.mjs");
36602
+ const { SubAgentsMiddleware: i } = await import("./subTasks-Cklo326x.mjs");
36603
36603
  return new i(t);
36604
36604
  }
36605
36605
  };
@@ -36610,7 +36610,7 @@ async function G9(t) {
36610
36610
  description: "Knowledge persistence",
36611
36611
  execute: async (i) => {
36612
36612
  i.projectMemoriesDir = i.projectMemoriesDir || "./.claude/memories";
36613
- const { MemoriesMiddleware: a } = await import("./memories-D7PFLLlR.mjs");
36613
+ const { MemoriesMiddleware: a } = await import("./memories-Dqh58QqM.mjs");
36614
36614
  return new a(i);
36615
36615
  }
36616
36616
  };
@@ -36621,7 +36621,7 @@ async function G9(t) {
36621
36621
  description: "Progressive skills disclosure",
36622
36622
  execute: async (i) => {
36623
36623
  i.projectSkillsDir = i.projectSkillsDir || "./.claude/skills";
36624
- const { SkillsMiddleware: a } = await import("./index-B9w1j1Jz.mjs");
36624
+ const { SkillsMiddleware: a } = await import("./index-BtzTnQfe.mjs");
36625
36625
  return new a(i);
36626
36626
  }
36627
36627
  };
@@ -36631,7 +36631,7 @@ async function G9(t) {
36631
36631
  name: "agents_md",
36632
36632
  description: "Inject agent documentation",
36633
36633
  execute: async (i) => {
36634
- const { AgentsMdMiddleware: a } = await import("./index-B9w1j1Jz.mjs");
36634
+ const { AgentsMdMiddleware: a } = await import("./index-BtzTnQfe.mjs");
36635
36635
  return new a({ projectRoot: i?.projectRoot });
36636
36636
  }
36637
36637
  };
@@ -48706,54 +48706,67 @@ function pV() {
48706
48706
  }
48707
48707
  const pZ = pV();
48708
48708
  export {
48709
- yC as A,
48710
- R4 as B,
48711
- kx as C,
48712
- zg as D,
48713
- rs as E,
48714
- ZF as F,
48715
- Ep as G,
48716
- Sx as H,
48717
- sZ as I,
48718
- Ar as J,
48719
- ds as K,
48720
- fZ as L,
48709
+ Ar as $,
48710
+ tf as A,
48711
+ bl as B,
48712
+ Q1 as C,
48713
+ R4 as D,
48714
+ A4 as E,
48715
+ Wb as F,
48716
+ P4 as G,
48717
+ z4 as H,
48718
+ $0 as I,
48719
+ Pp as J,
48720
+ bI as K,
48721
+ Rs as L,
48721
48722
  fC as M,
48722
- j9 as N,
48723
- z9 as O,
48723
+ rZ as N,
48724
+ T1 as O,
48724
48725
  pC as P,
48725
- N9 as Q,
48726
- E9 as R,
48727
- Mn as S,
48728
- mC as T,
48729
- B4 as U,
48730
- wg as V,
48731
- nZ as W,
48726
+ vp as Q,
48727
+ kx as R,
48728
+ sx as S,
48729
+ Jb as T,
48730
+ zg as U,
48731
+ rs as V,
48732
+ ZF as W,
48733
+ Ep as X,
48734
+ Sx as Y,
48732
48735
  Q as Z,
48733
- pZ as a,
48734
- uV as b,
48735
- uC as c,
48736
- E4 as d,
48737
- T4 as e,
48738
- gC as f,
48739
- hx as g,
48740
- k4 as h,
48736
+ sZ as _,
48737
+ ix as a,
48738
+ ds as a0,
48739
+ fZ as a1,
48740
+ j9 as a2,
48741
+ z9 as a3,
48742
+ N9 as a4,
48743
+ E9 as a5,
48744
+ B4 as a6,
48745
+ wg as a7,
48746
+ nZ as a8,
48747
+ ax as b,
48748
+ ex as c,
48749
+ ox as d,
48750
+ cx as e,
48751
+ lx as f,
48752
+ Kb as g,
48753
+ ux as h,
48741
48754
  dx as i,
48742
- C4 as j,
48743
- $4 as k,
48744
- fw as l,
48745
- x4 as m,
48746
- I4 as n,
48747
- O4 as o,
48748
- bl as p,
48749
- A4 as q,
48750
- P4 as r,
48751
- z4 as s,
48752
- $0 as t,
48753
- Pp as u,
48754
- bI as v,
48755
- Rs as w,
48756
- rZ as x,
48757
- T1 as y,
48758
- vp as z
48755
+ hx as j,
48756
+ pZ as k,
48757
+ Mn as l,
48758
+ uC as m,
48759
+ uV as n,
48760
+ mC as o,
48761
+ E4 as p,
48762
+ T4 as q,
48763
+ gC as r,
48764
+ yC as s,
48765
+ k4 as t,
48766
+ C4 as u,
48767
+ $4 as v,
48768
+ fw as w,
48769
+ x4 as x,
48770
+ I4 as y,
48771
+ O4 as z
48759
48772
  };
@@ -1,4 +1,4 @@
1
- import { t as P, u as d, v as _ } from "./graphBuilder-B3T9KyfH.mjs";
1
+ import { I as P, J as d, K as _ } from "./graphBuilder-2Ioob7L7.mjs";
2
2
  var v, m, g = 0, O = 0;
3
3
  function h(r, e, n) {
4
4
  var f = 0, t = e || new Array(16);
@@ -1,7 +1,7 @@
1
- import { S as n } from "./graphBuilder-B3T9KyfH.mjs";
2
- import { p as b, h as j, m as T, A as v, o as R, n as L, B as A, q as x, e as $, k as C, f as _, M as I, P as E, l as U, d as z, j as F, T as W, s as K, r as Y } from "./graphBuilder-B3T9KyfH.mjs";
1
+ import { l as n } from "./graphBuilder-2Ioob7L7.mjs";
2
+ import { B as b, t as j, x as v, s as R, z as T, y as L, D as x, E as A, q as $, v as C, r as _, M as I, P as E, w as z, p as U, u as F, o as W, H as K, G as Y } from "./graphBuilder-2Ioob7L7.mjs";
3
3
  import r from "node:fs/promises";
4
- import { join as p } from "node:path";
4
+ import { join as m } from "node:path";
5
5
  import { l as d } from "./load-Cjl9cJ0o.mjs";
6
6
  const k = `
7
7
 
@@ -32,7 +32,7 @@ class g {
32
32
  async findDocumentationFile() {
33
33
  const s = ["CLAUDE.md", "AGENTS.md"];
34
34
  for (const i of s) {
35
- const l = p(this.projectRoot, i);
35
+ const l = m(this.projectRoot, i);
36
36
  try {
37
37
  return await r.access(l), { content: await r.readFile(l, "utf-8"), filename: i };
38
38
  } catch {
@@ -179,31 +179,31 @@ class P {
179
179
  s.systemPrompt ? o = s.systemPrompt + `
180
180
 
181
181
  ` + a : o = a;
182
- const h = new n(o), m = {
182
+ const h = new n(o), p = {
183
183
  ...s,
184
184
  systemMessage: h
185
185
  };
186
- return await i(m);
186
+ return await i(p);
187
187
  }
188
188
  }
189
189
  export {
190
190
  b as AgentPackage,
191
191
  j as AgentPackageSchema,
192
- T as AgentRepository,
193
- v as AgentSchema,
194
- R as AgentSerializer,
192
+ v as AgentRepository,
193
+ R as AgentSchema,
194
+ T as AgentSerializer,
195
195
  L as AgentValidator,
196
196
  g as AgentsMdMiddleware,
197
- A as BaseStorage,
198
- x as MemoryStorage,
197
+ x as BaseStorage,
198
+ A as MemoryStorage,
199
199
  $ as MiddlewareCustomParamsSchema,
200
200
  C as MiddlewareRegistry,
201
201
  _ as MiddlewareSchema,
202
202
  I as ModelSchema,
203
203
  E as PromptSchema,
204
204
  P as SkillsMiddleware,
205
- U as StandardAgent,
206
- z as ToolCustomParamsSchema,
205
+ z as StandardAgent,
206
+ U as ToolCustomParamsSchema,
207
207
  F as ToolRegistry,
208
208
  W as ToolSchema,
209
209
  K as anthropicPromptCachingMiddleware,
@@ -1,6 +1,6 @@
1
- import { u as C } from "./id-DAEnqc1v.mjs";
2
- import { B as v, c as x, T as $, m as I } from "./app-DWJrZDvr.mjs";
3
- import "./graphBuilder-B3T9KyfH.mjs";
1
+ import { u as C } from "./id-CxmtJIkV.mjs";
2
+ import { B as v, c as x, T as $, m as I } from "./app-Dy9hkwWD.mjs";
3
+ import "./graphBuilder-2Ioob7L7.mjs";
4
4
  import { createClient as O, createCluster as N } from "redis";
5
5
  const W = [
6
6
  {
@@ -0,0 +1,23 @@
1
+ import { A as s, C as m, F as o, e as c, S as i, a as p, d as h, b as k, h as n, f as g, g as T, T as f, c as l } from "./graphBuilder-2Ioob7L7.mjs";
2
+ import { FileSystemSkillStore as y } from "./FileSystemSkillStore-yvEvcRxB.mjs";
3
+ import { FileSystemPluginStore as F } from "./FileSystemPluginStore-ChortK7z.mjs";
4
+ import "lowdb";
5
+ import "lowdb/node";
6
+ import "micromatch";
7
+ export {
8
+ s as AgentTypeSchema,
9
+ m as ConfigManager,
10
+ o as FileSystemConfigStore,
11
+ F as FileSystemPluginStore,
12
+ y as FileSystemSkillStore,
13
+ c as SparkItemSchema,
14
+ i as SparkItemTypeSchema,
15
+ p as SparkPrioritySchema,
16
+ h as SparkSourceSchema,
17
+ k as SparkStatusSchema,
18
+ n as TaskExecutionRecordSchema,
19
+ g as TaskExecutionSchema,
20
+ T as TaskNodeSchema,
21
+ f as TaskStatusSchema,
22
+ l as createFSManager
23
+ };
@@ -1,5 +1,5 @@
1
1
  import { l } from "./load-Bh8eo6qE.mjs";
2
- import { S as h } from "./graphBuilder-B3T9KyfH.mjs";
2
+ import { l as h } from "./graphBuilder-2Ioob7L7.mjs";
3
3
  const M = `## Memory System
4
4
 
5
5
  你可以访问一个包含之前任务和经验知识的记忆库。
@@ -1,5 +1,5 @@
1
1
  import { HumanMessage as c } from "langchain";
2
- import { i as d, g as m, a as p } from "./graphBuilder-B3T9KyfH.mjs";
2
+ import { i as d, j as m, k as p } from "./graphBuilder-2Ioob7L7.mjs";
3
3
  import "@langchain/langgraph";
4
4
  import "zod";
5
5
  import "@langchain/openai";
@@ -1,4 +1,4 @@
1
- import { a as h, C as u } from "./app-DWJrZDvr.mjs";
1
+ import { a as h, C as u } from "./app-Dy9hkwWD.mjs";
2
2
  import { createClient as c } from "redis";
3
3
  class n extends h {
4
4
  constructor(s, e = !0, i = 300) {
@@ -1,6 +1,6 @@
1
- import { u as $ } from "./id-DAEnqc1v.mjs";
2
- import { B as g } from "./app-DWJrZDvr.mjs";
3
- import "./graphBuilder-B3T9KyfH.mjs";
1
+ import { u as $ } from "./id-CxmtJIkV.mjs";
2
+ import { B as g } from "./app-Dy9hkwWD.mjs";
3
+ import "./graphBuilder-2Ioob7L7.mjs";
4
4
  import { createClient as T } from "redis";
5
5
  function k(u) {
6
6
  if (u === null || typeof u != "object") return JSON.stringify(u);
@@ -1,7 +1,7 @@
1
1
  import { tool as p, HumanMessage as d, SystemMessage as m } from "langchain";
2
2
  import { Command as f, Annotation as b } from "@langchain/langgraph";
3
3
  import { z as i } from "zod";
4
- import { c as w, b as y } from "./graphBuilder-B3T9KyfH.mjs";
4
+ import { m as w, n as y } from "./graphBuilder-2Ioob7L7.mjs";
5
5
  import "@langchain/openai";
6
6
  const k = i.object({
7
7
  task_store: i.record(i.string(), i.any()).default({})
package/dist/zen-code.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./MultiLineTextInput-e7hD79Wp.mjs";
2
2
  import "chalk";
3
- import "./app-DWJrZDvr.mjs";
3
+ import "./app-Dy9hkwWD.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-code",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "",
5
5
  "main": "./dist/cli.mjs",
6
6
  "bin": "./dist/cli.mjs",
@@ -38,6 +38,7 @@
38
38
  "@langgraph-js/standard-agent": "1.1.0"
39
39
  },
40
40
  "devDependencies": {
41
+ "@tanstack/react-query": "^5.90.21",
41
42
  "@inkjs/ui": "^2.0.0",
42
43
  "@langchain/mcp-adapters": "^1.1.1",
43
44
  "@langgraph-js/sdk": "^4.4.0",
@@ -65,8 +66,8 @@
65
66
  "vitest": "^4.0.18",
66
67
  "@codegraph/config": "1.0.0",
67
68
  "@codegraph/agent": "1.0.0",
68
- "ink-pro": "1.0.0",
69
- "@codegraph/union-client": "1.0.0"
69
+ "@codegraph/union-client": "1.0.0",
70
+ "ink-pro": "1.0.0"
70
71
  },
71
72
  "babel": {
72
73
  "presets": [