zen-code 2.2.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-DSomQ6O6.mjs";
3
+ import "./app-C0lXPfzi.mjs";
package/dist/zen-init.mjs CHANGED
@@ -1,7 +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, g as K } from "./MultiSelect-DPUY1M3X.mjs";
4
- import { d as M, u as v, i as L } from "./index-B5v_6qaq.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";
5
5
  const N = ({ onNext: l, onExit: i }) => {
6
6
  A((c, d) => {
7
7
  d.return ? l() : d.ctrl && c === "c" && i();
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-code",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "main": "./dist/cli.mjs",
6
6
  "bin": "./dist/cli.mjs",
@@ -12,28 +12,28 @@
12
12
  "license": "Apache-2.0",
13
13
  "dependencies": {
14
14
  "@anthropic-ai/sdk": "^0.71.2",
15
- "@langchain/anthropic": "1.1.3",
16
- "@langchain/core": "^1",
17
- "@langchain/langgraph": "^1.0.7",
15
+ "@langchain/anthropic": "1.3.10",
16
+ "@langchain/core": "^1.1.15",
17
+ "@langchain/langgraph": "^1.1.0",
18
18
  "@langchain/openai": "1.1.3",
19
19
  "@langgraph-js/pure-graph": "^2.10.0",
20
20
  "chalk": "^5.6.2",
21
- "execa": "^9.6.0",
21
+ "execa": "^9.6.1",
22
22
  "extract-zip": "^2.0.1",
23
23
  "fs-extra": "^11.3.3",
24
24
  "langchain": "1.1.1",
25
25
  "lowdb": "^7.0.1",
26
- "marked": "^16.2.1",
26
+ "marked": "^16.4.2",
27
27
  "marked-terminal": "^7.3.0",
28
28
  "node-notifier": "^10.0.1",
29
- "node-sqlite3-wasm": "^0.8.52",
30
- "openai": "^6.15.0",
29
+ "node-sqlite3-wasm": "^0.8.53",
30
+ "openai": "^6.16.0",
31
31
  "path-exists": "^5.0.0",
32
32
  "string-width": "^8.1.0",
33
33
  "tempy": "^3.1.0",
34
34
  "xdg-basedir": "^5.1.0",
35
35
  "yaml": "^2.8.2",
36
- "zod": "^4"
36
+ "zod": "^4.3.5"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@inkjs/ui": "^2.0.0",
@@ -44,7 +44,7 @@
44
44
  "@types/fs-extra": "^11.0.4",
45
45
  "@types/marked-terminal": "^6.1.1",
46
46
  "@types/node-notifier": "^8.0.5",
47
- "@types/react": "^19.1.12",
47
+ "@types/react": "^19.2.8",
48
48
  "@vitejs/plugin-react": "^5.1.2",
49
49
  "comlink": "^4.4.2",
50
50
  "diff-match-patch": "^1.0.5",
@@ -53,8 +53,8 @@
53
53
  "ink-spinner": "^5.0.0",
54
54
  "ink-syntax-highlight": "^2.0.2",
55
55
  "ink-text-input": "^6.0.0",
56
- "react": "^19.1.1",
57
- "vite": "^7.3.0",
56
+ "react": "^19.2.3",
57
+ "vite": "^7.3.1",
58
58
  "vite-bundle-analyzer": "^1.3.2",
59
59
  "vite-plugin-static-copy": "^3.1.4"
60
60
  },
@@ -1,22 +0,0 @@
1
- import { Low as e } from "lowdb";
2
- import { JSONFile as t } from "lowdb/node";
3
- import c from "node:os";
4
- import r from "node:path";
5
- const o = {
6
- config: {
7
- main_model: "claude-sonnet-4-5",
8
- model_provider: "openai"
9
- }
10
- }, s = c.homedir(), d = r.join(s, ".code-graph.json"), _ = new t(d), a = new e(_, o), l = async () => {
11
- await a.read(), (!a.data || !a.data.config) && (a.data = o, await a.write()), i();
12
- }, u = () => a.data.config, i = () => {
13
- a.data.config.model_provider && (process.env.MODEL_PROVIDER = a.data.config.model_provider), a.data.config.openai_api_key && (process.env.OPENAI_API_KEY = a.data.config.openai_api_key), a.data.config.openai_base_url && (process.env.OPENAI_BASE_URL = a.data.config.openai_base_url), a.data.config.anthropic_api_key && (process.env.ANTHROPIC_API_KEY = a.data.config.anthropic_api_key), a.data.config.anthropic_base_url && (process.env.ANTHROPIC_BASE_URL = a.data.config.anthropic_base_url);
14
- }, v = async (n) => {
15
- Object.assign(a.data.config, n), await a.write(), i();
16
- };
17
- export {
18
- d,
19
- u as g,
20
- l as i,
21
- v as u
22
- };