zen-code 4.9.2 → 4.10.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/app.js +94 -128
- package/dist/chunk-075hks9v.js +1 -0
- package/dist/chunk-0fj768k4.js +112 -0
- package/dist/chunk-19mf2aa7.js +1 -0
- package/dist/chunk-1mq2jmfy.js +2 -0
- package/dist/chunk-1v863afn.js +278 -0
- package/dist/chunk-1vn8d8b8.js +1 -0
- package/dist/{chunk-hfypkhky.js → chunk-1w19w1bm.js} +1 -1
- package/dist/chunk-3dnayvgx.js +224 -0
- package/dist/chunk-4hg13vwj.js +1 -0
- package/dist/chunk-4scrkcqv.js +1 -0
- package/dist/chunk-54cdhhqm.js +1 -0
- package/dist/chunk-5m4yb9av.js +91 -0
- package/dist/chunk-5yd4ntp6.js +8 -0
- package/dist/{chunk-dxec2q4t.js → chunk-6scjjkn3.js} +1 -1
- package/dist/{chunk-hmemx3cw.js → chunk-7jatn15w.js} +2 -2
- package/dist/{chunk-0pss3s5r.js → chunk-7w9y11hj.js} +1 -1
- package/dist/chunk-7yzv6385.js +1 -0
- package/dist/{chunk-ce53j63y.js → chunk-875hayaj.js} +3 -3
- package/dist/chunk-8bs8r50r.js +1 -0
- package/dist/{chunk-x552nspp.js → chunk-8waww0j9.js} +2 -2
- package/dist/chunk-8ysg0rga.js +1 -0
- package/dist/chunk-9czhw5k6.js +4 -0
- package/dist/chunk-9tgp14v7.js +16 -0
- package/dist/{chunk-yndex7hs.js → chunk-a239dn0b.js} +1 -1
- package/dist/chunk-arv4h3h1.js +2 -0
- package/dist/chunk-b2551zfb.js +2 -0
- package/dist/chunk-b9emn03n.js +1 -0
- package/dist/chunk-bm7578sn.js +1 -0
- package/dist/{chunk-62zh99t6.js → chunk-bytq4kd1.js} +3 -125
- package/dist/chunk-c2wfgbj6.js +1 -0
- package/dist/{chunk-0zk0m93z.js → chunk-cef4vbtb.js} +1 -1
- package/dist/{chunk-hsev32dg.js → chunk-cnzhxgn5.js} +2 -2
- package/dist/chunk-d2770b2z.js +1 -0
- package/dist/chunk-d72063sm.js +2 -0
- package/dist/{chunk-6nfpdtn6.js → chunk-d988tv30.js} +1 -1
- package/dist/{chunk-55nx49pj.js → chunk-dx9k6sdd.js} +3 -3
- package/dist/chunk-e6ggkg36.js +2 -0
- package/dist/{chunk-x90r4sje.js → chunk-fjqtrakn.js} +1 -1
- package/dist/chunk-gbfpab0j.js +1 -0
- package/dist/chunk-gkvx829z.js +1 -0
- package/dist/{chunk-94jawhw7.js → chunk-gwf8b14k.js} +1 -1
- package/dist/chunk-gz7fz9fg.js +1 -0
- package/dist/{chunk-48vkm1yn.js → chunk-h0q3dvnv.js} +2 -2
- package/dist/chunk-h0qb9jk1.js +1 -0
- package/dist/chunk-h9y136h8.js +1 -0
- package/dist/chunk-hrcxdj3c.js +54 -0
- package/dist/chunk-hz9yw7cs.js +166 -0
- package/dist/{chunk-98wjxsna.js → chunk-j4y5rjne.js} +1 -1
- package/dist/chunk-k12y05c3.js +3 -0
- package/dist/{chunk-fkrydbn4.js → chunk-k6fxqssr.js} +3 -3
- package/dist/{chunk-vfwbx331.js → chunk-kmxdq21k.js} +2 -2
- package/dist/chunk-mcb8rewr.js +213 -0
- package/dist/{chunk-9k64296h.js → chunk-mm9w91rj.js} +1 -1
- package/dist/chunk-mv0xzmq8.js +2 -0
- package/dist/{chunk-rztre6k0.js → chunk-n849zsd3.js} +1 -1
- package/dist/chunk-nm253hhf.js +81 -0
- package/dist/{chunk-gyhxdxb4.js → chunk-prg6489q.js} +1 -1
- package/dist/{chunk-pwrscdkf.js → chunk-pxdgy0vr.js} +1 -1
- package/dist/{chunk-frhhpxxy.js → chunk-qhzm2qw9.js} +2 -2
- package/dist/{chunk-8f2zh5h6.js → chunk-qmxtys9q.js} +2 -2
- package/dist/chunk-r0cfe5c1.js +294 -0
- package/dist/chunk-rtjytfhh.js +1 -0
- package/dist/chunk-s7ttf0pm.js +2 -0
- package/dist/{chunk-k38fjqj7.js → chunk-t01t72t2.js} +2 -2
- package/dist/{chunk-fw3nrwpf.js → chunk-t0f66x64.js} +1 -1
- package/dist/chunk-tn356gwf.js +93 -0
- package/dist/chunk-vd8kwzra.js +41 -0
- package/dist/chunk-vhn13anh.js +233 -0
- package/dist/chunk-vnewbtjy.js +1 -0
- package/dist/{chunk-hfegb4pr.js → chunk-wbm7rn9w.js} +2 -2
- package/dist/chunk-wd3gkd45.js +3 -0
- package/dist/chunk-whdf0vbb.js +1 -0
- package/dist/{chunk-r019959h.js → chunk-ws232ksq.js} +2 -2
- package/dist/{chunk-rt5mpgbg.js → chunk-yerf10k7.js} +2 -2
- package/dist/{chunk-pndhbee8.js → chunk-yzv3n8mw.js} +2 -2
- package/dist/chunk-z3e4c424.js +2 -0
- package/dist/{chunk-jb4yt88g.js → chunk-znw7fpep.js} +2 -2
- package/dist/chunk-zq2g4rfd.js +1 -0
- package/dist/cli.js +1 -1
- package/dist/nonInteractive.js +314 -4
- package/dist/zen-keyboard.js +1 -1
- package/package.json +37 -37
- package/dist/chunk-0sxrk9sx.js +0 -1
- package/dist/chunk-178yjjsx.js +0 -1
- package/dist/chunk-1p9xzvpt.js +0 -3
- package/dist/chunk-2eh0sv3s.js +0 -2
- package/dist/chunk-43xrz4wp.js +0 -2
- package/dist/chunk-48ce2wt0.js +0 -1
- package/dist/chunk-578m1dhj.js +0 -2
- package/dist/chunk-5dsevrtz.js +0 -91
- package/dist/chunk-66890qd3.js +0 -2
- package/dist/chunk-738m8242.js +0 -53
- package/dist/chunk-8ty2zfve.js +0 -3
- package/dist/chunk-9b7nj74j.js +0 -1
- package/dist/chunk-9x562s6p.js +0 -1
- package/dist/chunk-a90fm6gz.js +0 -278
- package/dist/chunk-ac5t2ywn.js +0 -100
- package/dist/chunk-ad2hbq42.js +0 -1
- package/dist/chunk-afhxxkmv.js +0 -16
- package/dist/chunk-b4vvgbav.js +0 -1
- package/dist/chunk-b9pcntkv.js +0 -253
- package/dist/chunk-c7y5efa0.js +0 -1
- package/dist/chunk-cbjnwrt7.js +0 -2
- package/dist/chunk-dcs1r9as.js +0 -2
- package/dist/chunk-dcwnpdtk.js +0 -9
- package/dist/chunk-e3tyc24s.js +0 -310
- package/dist/chunk-e8hp8d68.js +0 -81
- package/dist/chunk-h1enhch1.js +0 -2
- package/dist/chunk-hcnx1j2z.js +0 -1
- package/dist/chunk-hra0748z.js +0 -2
- package/dist/chunk-hyf24r36.js +0 -2
- package/dist/chunk-jjcmm167.js +0 -1
- package/dist/chunk-jrepjpft.js +0 -2
- package/dist/chunk-kym9tb01.js +0 -1
- package/dist/chunk-mt1g6g89.js +0 -1
- package/dist/chunk-p0vzbr7s.js +0 -585
- package/dist/chunk-r10bn684.js +0 -1
- package/dist/chunk-r3pe49q4.js +0 -8
- package/dist/chunk-r4tq44hr.js +0 -1
- package/dist/chunk-rjrnaka2.js +0 -1
- package/dist/chunk-s77qbhtz.js +0 -3
- package/dist/chunk-t7rwtc17.js +0 -1
- package/dist/chunk-v8g52kan.js +0 -1
- package/dist/chunk-vd6c87cm.js +0 -2
- package/dist/chunk-vh9zd1v3.js +0 -5
- package/dist/chunk-w2hbsa9j.js +0 -86
- package/dist/chunk-wabmqprd.js +0 -184
- package/dist/chunk-wpy5r9ma.js +0 -40
- package/dist/chunk-yqwxbcc7.js +0 -31
- package/dist/chunk-z8n7y37k.js +0 -1
- package/dist/chunk-zr7sx9hd.js +0 -1
- package/dist/chunk-zxqmghzf.js +0 -1
package/dist/zen-keyboard.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ce as s,De as i,Ke as p,Le as u,ye as h}from"./chunk-1v863afn.js";import{Fl as n}from"./chunk-z3e4c424.js";var f=n(h(),1);var r=n(u(),1);i(r.jsxDEV(O,{},void 0,!1,void 0,this));function O(){let[m,l]=f.useState(`Press any key...
|
|
2
2
|
`);return p((y,c,g)=>{let t=["\x1B[2J\x1B[H","input:",JSON.stringify(y),"","key:"],o=Object.entries(c).filter(([,e])=>e===!0);for(let[e]of o)t.push(` ${e}: true`);if(o.length===0)t.push(" (no true values)");t.push(JSON.stringify(g,null,2)),l(t.join(`
|
|
3
3
|
`))}),r.jsxDEV(s,{children:m},void 0,!1,void 0,this)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zen-code",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/cli.js",
|
|
6
6
|
"bin": "./dist/cli.js",
|
|
@@ -18,27 +18,50 @@
|
|
|
18
18
|
"keywords": [],
|
|
19
19
|
"author": "KonghaYao",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
|
-
"dependencies": {
|
|
21
|
+
"dependencies": {},
|
|
22
|
+
"devDependencies": {
|
|
22
23
|
"@anthropic-ai/sdk": "^0.71.2",
|
|
24
|
+
"@codegraph/agent": "^1.0.0",
|
|
25
|
+
"@codegraph/config": "^1.0.0",
|
|
26
|
+
"@codegraph/union-client": "^1.0.0",
|
|
23
27
|
"@google/generative-ai": "^0.24.1",
|
|
24
|
-
"@
|
|
25
|
-
"@langchain/
|
|
28
|
+
"@inkjs/ui": "^2.0.0",
|
|
29
|
+
"@langchain/anthropic": "^1.3.22",
|
|
30
|
+
"@langchain/core": "^1.1.31",
|
|
26
31
|
"@langchain/google-genai": "^2.1.18",
|
|
27
|
-
"@langchain/langgraph": "^1.1
|
|
32
|
+
"@langchain/langgraph": "^1.2.1",
|
|
28
33
|
"@langchain/mcp-adapters": "^1.1.1",
|
|
29
|
-
"@langchain/openai": "1.
|
|
34
|
+
"@langchain/openai": "^1.2.12",
|
|
35
|
+
"@langgraph-js/agent-middlewares": "^0.1.0",
|
|
30
36
|
"@langgraph-js/pure-graph": "^3.3.0",
|
|
31
|
-
"@langgraph-js/
|
|
37
|
+
"@langgraph-js/sdk": "^4.6.4",
|
|
38
|
+
"@langgraph-js/standard-agent": "^1.3.1",
|
|
39
|
+
"@nanostores/react": "^1.0.0",
|
|
40
|
+
"@tanstack/react-query": "^5.90.21",
|
|
41
|
+
"@testing-library/react": "^16.3.2",
|
|
42
|
+
"@testing-library/user-event": "^14.6.1",
|
|
43
|
+
"@types/diff-match-patch": "^1.0.36",
|
|
44
|
+
"@types/fs-extra": "^11.0.4",
|
|
45
|
+
"@types/node-notifier": "^8.0.5",
|
|
46
|
+
"@types/react": "^19.2.14",
|
|
47
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
48
|
+
"ansi-escapes": "^7.3.0",
|
|
32
49
|
"chalk": "^5.6.2",
|
|
33
50
|
"diff-match-patch": "^1.0.5",
|
|
34
51
|
"execa": "^9.6.1",
|
|
35
52
|
"extract-zip": "^2.0.1",
|
|
36
53
|
"fs-extra": "^11.3.3",
|
|
37
54
|
"fuzzysort": "^3.1.0",
|
|
55
|
+
"happy-dom": "^20.3.9",
|
|
56
|
+
"ink": "^6.8.0",
|
|
57
|
+
"ink-markdown-es": "^1.4.0",
|
|
58
|
+
"ink-pro": "^1.1.0",
|
|
59
|
+
"ink-spinner": "^5.0.0",
|
|
60
|
+
"ink-syntax-highlight": "^2.0.2",
|
|
38
61
|
"kysely": "^0.28.11",
|
|
39
62
|
"kysely-bun-worker": "^1.2.1",
|
|
40
63
|
"kysely-wasm": "^1.2.1",
|
|
41
|
-
"langchain": "1.
|
|
64
|
+
"langchain": "^1.2.30",
|
|
42
65
|
"lowdb": "^7.0.1",
|
|
43
66
|
"marked": "^17.0.3",
|
|
44
67
|
"micromatch": "^4.0.8",
|
|
@@ -48,41 +71,18 @@
|
|
|
48
71
|
"path-exists": "^5.0.0",
|
|
49
72
|
"pidusage": "^4",
|
|
50
73
|
"proper-lockfile": "^4.1.2",
|
|
51
|
-
"string-width": "^8.1.0",
|
|
52
|
-
"tempy": "^3.1.0",
|
|
53
|
-
"xdg-basedir": "^5.1.0",
|
|
54
|
-
"yaml": "^2.8.2",
|
|
55
|
-
"zod": "^4.3.5"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@langgraph-js/agent-middlewares": "^0.1.0",
|
|
59
|
-
"@codegraph/agent": "^1.0.0",
|
|
60
|
-
"@codegraph/config": "^1.0.0",
|
|
61
|
-
"@codegraph/union-client": "^1.0.0",
|
|
62
|
-
"@inkjs/ui": "^2.0.0",
|
|
63
|
-
"@langgraph-js/sdk": "^4.6.4",
|
|
64
|
-
"@nanostores/react": "^1.0.0",
|
|
65
|
-
"@tanstack/react-query": "^5.90.21",
|
|
66
|
-
"@testing-library/react": "^16.3.2",
|
|
67
|
-
"@testing-library/user-event": "^14.6.1",
|
|
68
|
-
"@types/diff-match-patch": "^1.0.36",
|
|
69
|
-
"@types/fs-extra": "^11.0.4",
|
|
70
|
-
"@types/node-notifier": "^8.0.5",
|
|
71
|
-
"@types/react": "^19.2.8",
|
|
72
|
-
"@vitejs/plugin-react": "^5.1.2",
|
|
73
|
-
"happy-dom": "^20.3.9",
|
|
74
|
-
"ink": "^6.8.0",
|
|
75
|
-
"ink-markdown-es": "^1.4.0",
|
|
76
|
-
"ink-pro": "^1.1.0",
|
|
77
|
-
"ink-spinner": "^5.0.0",
|
|
78
|
-
"ink-syntax-highlight": "^2.0.2",
|
|
79
74
|
"react": "^19.2.3",
|
|
80
75
|
"react-devtools-core": "^7.0.1",
|
|
76
|
+
"string-width": "^8.1.0",
|
|
77
|
+
"tempy": "^3.1.0",
|
|
81
78
|
"usehooks-ts": "^3.1.1",
|
|
82
79
|
"vite": "^7.3.1",
|
|
83
80
|
"vite-bundle-analyzer": "^1.3.2",
|
|
84
81
|
"vite-plugin-static-copy": "^3.1.4",
|
|
85
|
-
"vitest": "^4.0.18"
|
|
82
|
+
"vitest": "^4.0.18",
|
|
83
|
+
"xdg-basedir": "^5.1.0",
|
|
84
|
+
"yaml": "^2.8.2",
|
|
85
|
+
"zod": "^4.3.5"
|
|
86
86
|
},
|
|
87
87
|
"babel": {
|
|
88
88
|
"presets": [
|
package/dist/chunk-0sxrk9sx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$f as c,Ag as D,Bg as E,Cg as F,Dg as G,Eg as H,Fg as I,Gg as J,Hg as K,Zf as a,_f as b,ag as d,bg as e,cg as f,dg as g,eg as h,fg as i,gg as j,hg as k,ig as l,jg as m,kg as n,lg as o,mg as p,ng as q,og as r,pg as s,qg as t,rg as u,sg as v,tg as w,ug as x,vg as y,wg as z,xg as A,yg as B,zg as C}from"./chunk-p0vzbr7s.js";import"./chunk-x552nspp.js";import"./chunk-48vkm1yn.js";import"./chunk-afhxxkmv.js";import"./chunk-43xrz4wp.js";import"./chunk-ac5t2ywn.js";import"./chunk-dcwnpdtk.js";import"./chunk-cbjnwrt7.js";import"./chunk-vh9zd1v3.js";import"./chunk-w2hbsa9j.js";import"./chunk-rztre6k0.js";import"./chunk-wpy5r9ma.js";import"./chunk-frhhpxxy.js";import"./chunk-h1enhch1.js";import"./chunk-hyf24r36.js";import"./chunk-k38fjqj7.js";import"./chunk-dcs1r9as.js";export{u as toStandardTool,x as listSkills,K as humanInTheLoopMiddleware,I as getAgentListFromPackage,t as fromLangChainTool,G as create_task_tool,H as createTaskTool,C as createMCPMiddleware,v as anthropicPromptCachingMiddleware,e as ToolSchema,k as ToolRegistry,f as ToolCustomParamsSchema,F as TaskSchema,J as SubAgentsMiddleware,D as SubAgentStateSchema,E as SubAgentAnnotation,m as StandardAgent,y as SkillsMiddleware,a as ProviderTypeSchema,d as PromptVersionSchema,c as PromptSchema,b as ModelSchema,h as MiddlewareSchema,l as MiddlewareRegistry,g as MiddlewareCustomParamsSchema,s as MemoryStorage,B as MCPMiddleware,z as LoadMcpToolsSchema,A as ExecuteMcpToolSchema,r as BaseStorage,w as AgentsMdMiddleware,o as AgentValidator,p as AgentSerializer,i as AgentSchema,n as AgentRepository,j as AgentPackageSchema,q as AgentPackage};
|
package/dist/chunk-178yjjsx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Se as c}from"./chunk-66890qd3.js";import"./chunk-738m8242.js";import"./chunk-e3tyc24s.js";import"./chunk-ad2hbq42.js";import"./chunk-pwrscdkf.js";import"./chunk-fkrydbn4.js";import{Fg as a,Gg as b}from"./chunk-p0vzbr7s.js";import"./chunk-x552nspp.js";import"./chunk-48vkm1yn.js";import"./chunk-afhxxkmv.js";import"./chunk-43xrz4wp.js";import"./chunk-ac5t2ywn.js";import"./chunk-dcwnpdtk.js";import"./chunk-cbjnwrt7.js";import"./chunk-vh9zd1v3.js";import"./chunk-w2hbsa9j.js";import"./chunk-rztre6k0.js";import"./chunk-wpy5r9ma.js";import"./chunk-frhhpxxy.js";import"./chunk-h1enhch1.js";import"./chunk-hyf24r36.js";import"./chunk-578m1dhj.js";import"./chunk-1p9xzvpt.js";import"./chunk-hra0748z.js";import"./chunk-jb4yt88g.js";import"./chunk-k38fjqj7.js";import"./chunk-dcs1r9as.js";export{a as getAgentListFromPackage,c as createSubAgentsMiddleware,b as SubAgentsMiddleware};
|
package/dist/chunk-1p9xzvpt.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{qq as g,tq as u}from"./chunk-dcs1r9as.js";var e=g((D_,f)=>{var F=u("constants"),j_=process.cwd,m=null,G_=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!m)m=j_.call(process);return m};try{process.cwd()}catch(_){}if(typeof process.chdir==="function"){if(n=process.chdir,process.chdir=function(_){m=null,n.call(process,_)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,n)}var n;f.exports=H_;function H_(_){if(F.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))j(_);if(!_.lutimes)D(_);if(_.chown=V(_.chown),_.fchown=V(_.fchown),_.lchown=V(_.lchown),_.chmod=W(_.chmod),_.fchmod=W(_.fchmod),_.lchmod=W(_.lchmod),_.chownSync=R(_.chownSync),_.fchownSync=R(_.fchownSync),_.lchownSync=R(_.lchownSync),_.chmodSync=U(_.chmodSync),_.fchmodSync=U(_.fchmodSync),_.lchmodSync=U(_.lchmodSync),_.stat=Q(_.stat),_.fstat=Q(_.fstat),_.lstat=Q(_.lstat),_.statSync=T(_.statSync),_.fstatSync=T(_.fstatSync),_.lstatSync=T(_.lstatSync),_.chmod&&!_.lchmod)_.lchmod=function(O,I,E){if(E)process.nextTick(E)},_.lchmodSync=function(){};if(_.chown&&!_.lchown)_.lchown=function(O,I,E,P){if(P)process.nextTick(P)},_.lchownSync=function(){};if(G_==="win32")_.rename=typeof _.rename!=="function"?_.rename:function(O){function I(E,P,z){var M=Date.now(),J=0;O(E,P,function Y(x){if(x&&(x.code==="EACCES"||x.code==="EPERM"||x.code==="EBUSY")&&Date.now()-M<60000){if(setTimeout(function(){_.stat(P,function(y,$){if(y&&y.code==="ENOENT")O(E,P,Y);else z(x)})},J),J<100)J+=10;return}if(z)z(x)})}if(Object.setPrototypeOf)Object.setPrototypeOf(I,O);return I}(_.rename);_.read=typeof _.read!=="function"?_.read:function(O){function I(E,P,z,M,J,Y){var x;if(Y&&typeof Y==="function"){var y=0;x=function($,t,r){if($&&$.code==="EAGAIN"&&y<10)return y++,O.call(_,E,P,z,M,J,x);Y.apply(this,arguments)}}return O.call(_,E,P,z,M,J,x)}if(Object.setPrototypeOf)Object.setPrototypeOf(I,O);return I}(_.read),_.readSync=typeof _.readSync!=="function"?_.readSync:function(O){return function(I,E,P,z,M){var J=0;while(!0)try{return O.call(_,I,E,P,z,M)}catch(Y){if(Y.code==="EAGAIN"&&J<10){J++;continue}throw Y}}}(_.readSync);function j(O){O.lchmod=function(I,E,P){O.open(I,F.O_WRONLY|F.O_SYMLINK,E,function(z,M){if(z){if(P)P(z);return}O.fchmod(M,E,function(J){O.close(M,function(Y){if(P)P(J||Y)})})})},O.lchmodSync=function(I,E){var P=O.openSync(I,F.O_WRONLY|F.O_SYMLINK,E),z=!0,M;try{M=O.fchmodSync(P,E),z=!1}finally{if(z)try{O.closeSync(P)}catch(J){}else O.closeSync(P)}return M}}function D(O){if(F.hasOwnProperty("O_SYMLINK")&&O.futimes)O.lutimes=function(I,E,P,z){O.open(I,F.O_SYMLINK,function(M,J){if(M){if(z)z(M);return}O.futimes(J,E,P,function(Y){O.close(J,function(x){if(z)z(Y||x)})})})},O.lutimesSync=function(I,E,P){var z=O.openSync(I,F.O_SYMLINK),M,J=!0;try{M=O.futimesSync(z,E,P),J=!1}finally{if(J)try{O.closeSync(z)}catch(Y){}else O.closeSync(z)}return M};else if(O.futimes)O.lutimes=function(I,E,P,z){if(z)process.nextTick(z)},O.lutimesSync=function(){}}function W(O){if(!O)return O;return function(I,E,P){return O.call(_,I,E,function(z){if(k(z))z=null;if(P)P.apply(this,arguments)})}}function U(O){if(!O)return O;return function(I,E){try{return O.call(_,I,E)}catch(P){if(!k(P))throw P}}}function V(O){if(!O)return O;return function(I,E,P,z){return O.call(_,I,E,P,function(M){if(k(M))M=null;if(z)z.apply(this,arguments)})}}function R(O){if(!O)return O;return function(I,E,P){try{return O.call(_,I,E,P)}catch(z){if(!k(z))throw z}}}function Q(O){if(!O)return O;return function(I,E,P){if(typeof E==="function")P=E,E=null;function z(M,J){if(J){if(J.uid<0)J.uid+=4294967296;if(J.gid<0)J.gid+=4294967296}if(P)P.apply(this,arguments)}return E?O.call(_,I,E,z):O.call(_,I,z)}}function T(O){if(!O)return O;return function(I,E){var P=E?O.call(_,I,E):O.call(_,I);if(P){if(P.uid<0)P.uid+=4294967296;if(P.gid<0)P.gid+=4294967296}return P}}function k(O){if(!O)return!0;if(O.code==="ENOSYS")return!0;var I=!process.getuid||process.getuid()!==0;if(I){if(O.code==="EINVAL"||O.code==="EPERM")return!0}return!1}}});var O_=g((V_,__)=>{var s=u("stream").Stream;__.exports=J_;function J_(_){return{ReadStream:j,WriteStream:D};function j(W,U){if(!(this instanceof j))return new j(W,U);s.call(this);var V=this;this.path=W,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,U=U||{};var R=Object.keys(U);for(var Q=0,T=R.length;Q<T;Q++){var k=R[Q];this[k]=U[k]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){V._read()});return}_.open(this.path,this.flags,this.mode,function(O,I){if(O){V.emit("error",O),V.readable=!1;return}V.fd=I,V.emit("open",I),V._read()})}function D(W,U){if(!(this instanceof D))return new D(W,U);s.call(this),this.path=W,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,U=U||{};var V=Object.keys(U);for(var R=0,Q=V.length;R<Q;R++){var T=V[R];this[T]=U[T]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=_.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var N_=g((A_,P_)=>{P_.exports=M_;var K_=Object.getPrototypeOf||function(_){return _.__proto__};function M_(_){if(_===null||typeof _!=="object")return _;if(_ instanceof Object)var j={__proto__:K_(_)};else var j=Object.create(null);return Object.getOwnPropertyNames(_).forEach(function(D){Object.defineProperty(j,D,Object.getOwnPropertyDescriptor(_,D))}),j}});var v_=g((L_,a)=>{var v=u("fs"),U_=e(),X_=O_(),Y_=N_(),b=u("util"),w,p;if(typeof Symbol==="function"&&typeof Symbol.for==="function")w=Symbol.for("graceful-fs.queue"),p=Symbol.for("graceful-fs.previous");else w="___graceful-fs.queue",p="___graceful-fs.previous";function Z_(){}function z_(_,j){Object.defineProperty(_,w,{get:function(){return j}})}var h=Z_;if(b.debuglog)h=b.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))h=function(){var _=b.format.apply(b,arguments);_="GFS4: "+_.split(/\n/).join(`
|
|
2
|
-
GFS4: `),console.error(_)};if(!v[w]){if(i=global[w]||[],z_(v,i),v.close=function(_){function j(D,W){return _.call(v,D,function(U){if(!U)E_();if(typeof W==="function")W.apply(this,arguments)})}return Object.defineProperty(j,p,{value:_}),j}(v.close),v.closeSync=function(_){function j(D){_.apply(v,arguments),E_()}return Object.defineProperty(j,p,{value:_}),j}(v.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){h(v[w]),u("assert").equal(v[w].length,0)})}var i;if(!global[w])z_(global,v[w]);a.exports=c(Y_(v));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!v.__patched)a.exports=c(v),v.__patched=!0;function c(_){U_(_),_.gracefulify=c,_.createReadStream=t,_.createWriteStream=r;var j=_.readFile;_.readFile=D;function D(N,H,G){if(typeof H==="function")G=H,H=null;return L(N,H,G);function L(q,A,Z,B){return j(q,A,function(K){if(K&&(K.code==="EMFILE"||K.code==="ENFILE"))S([L,[q,A,Z],K,B||Date.now(),Date.now()]);else if(typeof Z==="function")Z.apply(this,arguments)})}}var W=_.writeFile;_.writeFile=U;function U(N,H,G,L){if(typeof G==="function")L=G,G=null;return q(N,H,G,L);function q(A,Z,B,K,C){return W(A,Z,B,function(X){if(X&&(X.code==="EMFILE"||X.code==="ENFILE"))S([q,[A,Z,B,K],X,C||Date.now(),Date.now()]);else if(typeof K==="function")K.apply(this,arguments)})}}var V=_.appendFile;if(V)_.appendFile=R;function R(N,H,G,L){if(typeof G==="function")L=G,G=null;return q(N,H,G,L);function q(A,Z,B,K,C){return V(A,Z,B,function(X){if(X&&(X.code==="EMFILE"||X.code==="ENFILE"))S([q,[A,Z,B,K],X,C||Date.now(),Date.now()]);else if(typeof K==="function")K.apply(this,arguments)})}}var Q=_.copyFile;if(Q)_.copyFile=T;function T(N,H,G,L){if(typeof G==="function")L=G,G=0;return q(N,H,G,L);function q(A,Z,B,K,C){return Q(A,Z,B,function(X){if(X&&(X.code==="EMFILE"||X.code==="ENFILE"))S([q,[A,Z,B,K],X,C||Date.now(),Date.now()]);else if(typeof K==="function")K.apply(this,arguments)})}}var k=_.readdir;_.readdir=I;var O=/^v[0-5]\./;function I(N,H,G){if(typeof H==="function")G=H,H=null;var L=O.test(process.version)?function(Z,B,K,C){return k(Z,q(Z,B,K,C))}:function(Z,B,K,C){return k(Z,B,q(Z,B,K,C))};return L(N,H,G);function q(A,Z,B,K){return function(C,X){if(C&&(C.code==="EMFILE"||C.code==="ENFILE"))S([L,[A,Z,B],C,K||Date.now(),Date.now()]);else{if(X&&X.sort)X.sort();if(typeof B==="function")B.call(this,C,X)}}}}if(process.version.substr(0,4)==="v0.8"){var E=X_(_);Y=E.ReadStream,y=E.WriteStream}var P=_.ReadStream;if(P)Y.prototype=Object.create(P.prototype),Y.prototype.open=x;var z=_.WriteStream;if(z)y.prototype=Object.create(z.prototype),y.prototype.open=$;Object.defineProperty(_,"ReadStream",{get:function(){return Y},set:function(N){Y=N},enumerable:!0,configurable:!0}),Object.defineProperty(_,"WriteStream",{get:function(){return y},set:function(N){y=N},enumerable:!0,configurable:!0});var M=Y;Object.defineProperty(_,"FileReadStream",{get:function(){return M},set:function(N){M=N},enumerable:!0,configurable:!0});var J=y;Object.defineProperty(_,"FileWriteStream",{get:function(){return J},set:function(N){J=N},enumerable:!0,configurable:!0});function Y(N,H){if(this instanceof Y)return P.apply(this,arguments),this;else return Y.apply(Object.create(Y.prototype),arguments)}function x(){var N=this;l(N.path,N.flags,N.mode,function(H,G){if(H){if(N.autoClose)N.destroy();N.emit("error",H)}else N.fd=G,N.emit("open",G),N.read()})}function y(N,H){if(this instanceof y)return z.apply(this,arguments),this;else return y.apply(Object.create(y.prototype),arguments)}function $(){var N=this;l(N.path,N.flags,N.mode,function(H,G){if(H)N.destroy(),N.emit("error",H);else N.fd=G,N.emit("open",G)})}function t(N,H){return new _.ReadStream(N,H)}function r(N,H){return new _.WriteStream(N,H)}var I_=_.open;_.open=l;function l(N,H,G,L){if(typeof G==="function")L=G,G=null;return q(N,H,G,L);function q(A,Z,B,K,C){return I_(A,Z,B,function(X,B_){if(X&&(X.code==="EMFILE"||X.code==="ENFILE"))S([q,[A,Z,B,K],X,C||Date.now(),Date.now()]);else if(typeof K==="function")K.apply(this,arguments)})}}return _}function S(_){h("ENQUEUE",_[0].name,_[1]),v[w].push(_),o()}var d;function E_(){var _=Date.now();for(var j=0;j<v[w].length;++j)if(v[w][j].length>2)v[w][j][3]=_,v[w][j][4]=_;o()}function o(){if(clearTimeout(d),d=void 0,v[w].length===0)return;var _=v[w].shift(),j=_[0],D=_[1],W=_[2],U=_[3],V=_[4];if(U===void 0)h("RETRY",j.name,D),j.apply(null,D);else if(Date.now()-U>=60000){h("TIMEOUT",j.name,D);var R=D.pop();if(typeof R==="function")R.call(null,W)}else{var Q=Date.now()-V,T=Math.max(V-U,1),k=Math.min(T*1.2,100);if(Q>=k)h("RETRY",j.name,D),j.apply(null,D.concat([U]));else v[w].push(_)}if(d===void 0)d=setTimeout(o,0)}});
|
|
3
|
-
export{v_ as lq};
|
package/dist/chunk-2eh0sv3s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{M as U,O as Y,P as B,Q as W}from"./chunk-55nx49pj.js";import{Ae as T,Be as O,Ke as j,ye as q}from"./chunk-a90fm6gz.js";import{Pf as k}from"./chunk-fkrydbn4.js";import{pq as b}from"./chunk-dcs1r9as.js";var J=b(q(),1);function K({manager:G,enabled:N=!0}){return Y({queryKey:W.config.detail(),queryFn:async()=>{return await G.initialize(),await G.getConfig()},enabled:N,staleTime:300000,gcTime:600000})}function P({manager:G}){let N=U();return B({mutationFn:async(R)=>{return await G.updateConfig(R),await G.getConfig()},onSuccess:(R)=>{N.setQueryData(W.config.detail(),R),N.invalidateQueries({queryKey:W.providers.all}),N.invalidateQueries({queryKey:W.models.all})}})}var X=b(j(),1),H=null,Z=null;async function S(){if(!H){if(!Z)Z=k().then((G)=>{return H=G,Z=null,G});return Z}return Promise.resolve(H)}var I=J.createContext(void 0),E=({manager:G,get_allowed_models:N,children:R})=>{let{data:z,isLoading:V,error:x}=K({manager:G}),$=P({manager:G}),{data:F=[],isLoading:h,error:p}=Y({queryKey:W.models.available(),queryFn:N,staleTime:1800000,retry:1}),A=J.useMemo(()=>{return{provider_id:z?.provider_id||"openai",provider_type:z?.provider_type||"openai",model_id:z?.model_id||F[0]?.id||"default",mcp_config:z?.mcp_config,enable_thinking:z?.enable_thinking??!0,switch_command:z?.switch_command||"",cwd:process.cwd()}},[z?.provider_id,z?.provider_type,z?.model_id,z?.mcp_config,z?.enable_thinking,z?.switch_command,z?.providers,F]),Q=J.useMemo(()=>{return z?.compact_mode??!1},[z?.compact_mode]),w=async()=>{await $.mutateAsync({compact_mode:!Q})},v=J.useMemo(()=>{return z?.show_detailed_info??!1},[z?.show_detailed_info]),L=async()=>{await $.mutateAsync({show_detailed_info:!v})},D=async(_)=>{await $.mutateAsync(_)};if(V||h)return X.jsxDEV(T,{padding:2,children:X.jsxDEV(O,{children:"Loading configuration..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return X.jsxDEV(I.Provider,{value:{config:z||null,updateConfig:D,extraParams:A,AVAILABLE_MODELS:F,manager:G,compactMode:Q,toggleCompactMode:w,showDetailedInfo:v,toggleDetailedInfo:L},children:R},void 0,!1,void 0,this)},s=()=>{let G=J.useContext(I);if(G===void 0)throw Error("useSettings must be used within a SettingsProvider");return G},r=({get_allowed_models:G,children:N})=>{let[R,z]=J.useState(null);if(J.useEffect(()=>{S().then(z)},[]),!R)return X.jsxDEV(T,{padding:2,children:X.jsxDEV(O,{children:"Initializing configuration manager..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return X.jsxDEV(E,{manager:R,get_allowed_models:G,children:N},void 0,!1,void 0,this)};
|
|
2
|
-
export{s as I,r as J};
|
package/dist/chunk-43xrz4wp.js
DELETED
package/dist/chunk-48ce2wt0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Af as o,Bf as p,Cf as q,Df as r,Ef as s,Ff as t,Gf as u,Hf as v,If as w,Jf as x,Kf as y,Lf as z,Mf as A,sf as b,tf as h,uf as i,vf as j,wf as k,xf as l,yf as m,zf as n}from"./chunk-ad2hbq42.js";import{Nf as e}from"./chunk-pwrscdkf.js";import{Of as a,Pf as f,Qf as g}from"./chunk-fkrydbn4.js";import"./chunk-43xrz4wp.js";import"./chunk-cbjnwrt7.js";import"./chunk-wpy5r9ma.js";import{kq as c}from"./chunk-578m1dhj.js";import"./chunk-1p9xzvpt.js";import"./chunk-hra0748z.js";import{nq as d}from"./chunk-jb4yt88g.js";import"./chunk-k38fjqj7.js";import"./chunk-dcs1r9as.js";export{i as createServerWithManager,m as createRemoteManager,f as createFSManager,g as createCustomManager,h as createConfigServer,y as TaskStoreSchema,A as TaskStoreManager,t as TaskStatusSchema,w as TaskNodeSchema,v as TaskExecutionSchema,x as TaskExecutionRecordSchema,s as SparkStoreSchema,z as SparkStoreManager,p as SparkStatusSchema,q as SparkSourceSchema,o as SparkPrioritySchema,n as SparkItemTypeSchema,r as SparkItemSchema,k as RemoteSkillStore,l as RemotePluginStore,j as RemoteConfigStore,d as FileSystemSkillStore,e as FileSystemPluginStore,c as FileSystemConfigStore,b as ConfigServer,a as ConfigManager,u as AgentTypeSchema};
|
package/dist/chunk-578m1dhj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{lq as r}from"./chunk-1p9xzvpt.js";import{mq as Ow}from"./chunk-hra0748z.js";import{pq as iw,qq as B,tq as uw}from"./chunk-dcs1r9as.js";var f=B((PS,m)=>{function M(S,w){if(typeof w==="boolean")w={forever:w};if(this._originalTimeouts=JSON.parse(JSON.stringify(S)),this._timeouts=S,this._options=w||{},this._maxRetryTime=w&&w.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}m.exports=M;M.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};M.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};M.prototype.retry=function(S){if(this._timeout)clearTimeout(this._timeout);if(!S)return!1;var w=new Date().getTime();if(S&&w-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(S);var N=this._timeouts.shift();if(N===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),N=this._timeouts.shift();else return!1;var J=this,x=setTimeout(function(){if(J._attempts++,J._operationTimeoutCb){if(J._timeout=setTimeout(function(){J._operationTimeoutCb(J._attempts)},J._operationTimeout),J._options.unref)J._timeout.unref()}J._fn(J._attempts)},N);if(this._options.unref)x.unref();return!0};M.prototype.attempt=function(S,w){if(this._fn=S,w){if(w.timeout)this._operationTimeout=w.timeout;if(w.cb)this._operationTimeoutCb=w.cb}var N=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){N._operationTimeoutCb()},N._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};M.prototype.try=function(S){console.log("Using RetryOperation.try() is deprecated"),this.attempt(S)};M.prototype.start=function(S){console.log("Using RetryOperation.start() is deprecated"),this.attempt(S)};M.prototype.start=M.prototype.try;M.prototype.errors=function(){return this._errors};M.prototype.attempts=function(){return this._attempts};M.prototype.mainError=function(){if(this._errors.length===0)return null;var S={},w=null,N=0;for(var J=0;J<this._errors.length;J++){var x=this._errors[J],h=x.message,E=(S[h]||0)+1;if(S[h]=E,E>=N)w=x,N=E}return w}});var n=B((Yw)=>{var Xw=f();Yw.operation=function(S){var w=Yw.timeouts(S);return new Xw(w,{forever:S&&S.forever,unref:S&&S.unref,maxRetryTime:S&&S.maxRetryTime})};Yw.timeouts=function(S){if(S instanceof Array)return[].concat(S);var w={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var N in S)w[N]=S[N];if(w.minTimeout>w.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var J=[];for(var x=0;x<w.retries;x++)J.push(this.createTimeout(x,w));if(S&&S.forever&&!J.length)J.push(this.createTimeout(x,w));return J.sort(function(h,E){return h-E}),J};Yw.createTimeout=function(S,w){var N=w.randomize?Math.random()+1:1,J=Math.round(N*w.minTimeout*Math.pow(w.factor,S));return J=Math.min(J,w.maxTimeout),J};Yw.wrap=function(S,w,N){if(w instanceof Array)N=w,w=null;if(!N){N=[];for(var J in S)if(typeof S[J]==="function")N.push(J)}for(var x=0;x<N.length;x++){var h=N[x],E=S[h];S[h]=function(V){var $=Yw.operation(w),z=Array.prototype.slice.call(arguments,1),xw=z.pop();z.push(function(v){if($.retry(v))return;if(v)arguments[0]=$.mainError();xw.apply(this,arguments)}),$.attempt(function(){V.apply(S,z)})}.bind(S,E),S[h].options=w}}});var a=B((_w,u)=>{var c=Symbol();function Uw(S,w,N){let J=w[c];if(J)return w.stat(S,(h,E)=>{if(h)return N(h);N(null,E.mtime,J)});let x=new Date(Math.ceil(Date.now()/1000)*1000+5);w.utimes(S,x,x,(h)=>{if(h)return N(h);w.stat(S,(E,F)=>{if(E)return N(E);let V=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(w,c,{value:V}),N(null,F.mtime,V)})})}function qw(S){let w=Date.now();if(S==="s")w=Math.ceil(w/1000)*1000;return new Date(w)}_w.probe=Uw;_w.getMtime=qw});var i=B((vw,Q)=>{var Cw=uw("path"),P=r(),Pw=n(),Rw=Ow(),p=a(),T={};function K(S,w){return w.lockfilePath||`${S}.lock`}function R(S,w,N){if(!w.realpath)return N(null,Cw.resolve(S));w.fs.realpath(S,N)}function C(S,w,N){let J=K(S,w);w.fs.mkdir(J,(x)=>{if(!x)return p.probe(J,w.fs,(h,E,F)=>{if(h)return w.fs.rmdir(J,()=>{}),N(h);N(null,E,F)});if(x.code!=="EEXIST")return N(x);if(w.stale<=0)return N(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:S}));w.fs.stat(J,(h,E)=>{if(h){if(h.code==="ENOENT")return C(S,{...w,stale:0},N);return N(h)}if(!t(E,w))return N(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:S}));s(S,w,(F)=>{if(F)return N(F);C(S,{...w,stale:0},N)})})})}function t(S,w){return S.mtime.getTime()<Date.now()-w.stale}function s(S,w,N){w.fs.rmdir(K(S,w),(J)=>{if(J&&J.code!=="ENOENT")return N(J);N()})}function Z(S,w){let N=T[S];if(N.updateTimeout)return;if(N.updateDelay=N.updateDelay||w.update,N.updateTimeout=setTimeout(()=>{N.updateTimeout=null,w.fs.stat(N.lockfilePath,(J,x)=>{let h=N.lastUpdate+w.stale<Date.now();if(J){if(J.code==="ENOENT"||h)return O(S,N,Object.assign(J,{code:"ECOMPROMISED"}));return N.updateDelay=1000,Z(S,w)}if(N.mtime.getTime()!==x.mtime.getTime())return O(S,N,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=p.getMtime(N.mtimePrecision);w.fs.utimes(N.lockfilePath,F,F,(V)=>{let $=N.lastUpdate+w.stale<Date.now();if(N.released)return;if(V){if(V.code==="ENOENT"||$)return O(S,N,Object.assign(V,{code:"ECOMPROMISED"}));return N.updateDelay=1000,Z(S,w)}N.mtime=F,N.lastUpdate=Date.now(),N.updateDelay=null,Z(S,w)})})},N.updateDelay),N.updateTimeout.unref)N.updateTimeout.unref()}function O(S,w,N){if(w.released=!0,w.updateTimeout)clearTimeout(w.updateTimeout);if(T[S]===w)delete T[S];w.options.onCompromised(N)}function jw(S,w,N){w={stale:1e4,update:null,realpath:!0,retries:0,fs:P,onCompromised:(J)=>{throw J},...w},w.retries=w.retries||0,w.retries=typeof w.retries==="number"?{retries:w.retries}:w.retries,w.stale=Math.max(w.stale||0,2000),w.update=w.update==null?w.stale/2:w.update||0,w.update=Math.max(Math.min(w.update,w.stale/2),1000),R(S,w,(J,x)=>{if(J)return N(J);let h=Pw.operation(w.retries);h.attempt(()=>{C(x,w,(E,F,V)=>{if(h.retry(E))return;if(E)return N(h.mainError());let $=T[x]={lockfilePath:K(x,w),mtime:F,mtimePrecision:V,options:w,lastUpdate:Date.now()};Z(x,w),N(null,(z)=>{if($.released)return z&&z(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));l(x,{...w,realpath:!1},z)})})})})}function l(S,w,N){w={fs:P,realpath:!0,...w},R(S,w,(J,x)=>{if(J)return N(J);let h=T[x];if(!h)return N(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));h.updateTimeout&&clearTimeout(h.updateTimeout),h.released=!0,delete T[x],s(x,w,N)})}function Lw(S,w,N){w={stale:1e4,realpath:!0,fs:P,...w},w.stale=Math.max(w.stale||0,2000),R(S,w,(J,x)=>{if(J)return N(J);w.fs.stat(K(x,w),(h,E)=>{if(h)return h.code==="ENOENT"?N(null,!1):N(h);return N(null,!t(E,w))})})}function yw(){return T}Rw(()=>{for(let S in T){let w=T[S].options;try{w.fs.rmdirSync(K(S,w))}catch(N){}}});vw.lock=jw;vw.unlock=l;vw.check=Lw;vw.getLocks=yw});var o=B((jS,e)=>{var fw=r();function kw(S){let w=["mkdir","realpath","stat","rmdir","utimes"],N={...S};return w.forEach((J)=>{N[J]=(...x)=>{let h=x.pop(),E;try{E=S[`${J}Sync`](...x)}catch(F){return h(F)}h(null,E)}}),N}function nw(S){return(...w)=>new Promise((N,J)=>{w.push((x,h)=>{if(x)J(x);else N(h)}),S(...w)})}function cw(S){return(...w)=>{let N,J;if(w.push((x,h)=>{N=x,J=h}),S(...w),N)throw N;return J}}function aw(S){if(S={...S},S.fs=kw(S.fs||fw),typeof S.retries==="number"&&S.retries>0||S.retries&&typeof S.retries.retries==="number"&&S.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return S}e.exports={toPromise:nw,toSync:cw,toSyncOptions:aw}});var Sw=B((LS,W)=>{var G=i(),{toPromise:H,toSync:I,toSyncOptions:j}=o();async function ww(S,w){let N=await H(G.lock)(S,w);return H(N)}function rw(S,w){let N=I(G.lock)(S,j(w));return I(N)}function pw(S,w){return H(G.unlock)(S,w)}function tw(S,w){return I(G.unlock)(S,j(w))}function sw(S,w){return H(G.check)(S,w)}function lw(S,w){return I(G.check)(S,j(w))}W.exports=ww;W.exports.lock=ww;W.exports.unlock=pw;W.exports.lockSync=rw;W.exports.unlockSync=tw;W.exports.check=sw;W.exports.checkSync=lw});class d{#w=null;read(){return Promise.resolve(this.#w)}write(S){return this.#w=S,Promise.resolve()}}class g{#w=null;read(){return this.#w||null}write(S){this.#w=S}}function hw(S,w){if(S===void 0)throw Error("lowdb: missing adapter");if(w===void 0)throw Error("lowdb: missing default data")}class X{adapter;data;constructor(S,w){hw(S,w),this.adapter=S,this.data=w}async read(){let S=await this.adapter.read();if(S)this.data=S}async write(){if(this.data)await this.adapter.write(this.data)}async update(S){S(this.data),await this.write()}}import{readFileSync as Bw,renameSync as Gw,writeFileSync as Kw}from"node:fs";import{readFile as Qw}from"node:fs/promises";import q from"node:path";import{rename as Ew,writeFile as Fw}from"node:fs/promises";import{basename as Mw,dirname as Vw,join as Tw}from"node:path";import{fileURLToPath as Ww}from"node:url";function $w(S){let w=S instanceof URL?Ww(S):S.toString();return Tw(Vw(w),`.${Mw(w)}.tmp`)}async function zw(S,w,N){for(let J=0;J<w;J++)try{return await S()}catch(x){if(J<w-1)await new Promise((h)=>setTimeout(h,N));else throw x}}class U{#w;#S;#N=!1;#x=null;#h=null;#E=null;#J=null;#F(S){return this.#J=S,this.#E||=new Promise((w,N)=>{this.#h=[w,N]}),new Promise((w,N)=>{this.#E?.then(w).catch(N)})}async#M(S){this.#N=!0;try{await Fw(this.#S,S,"utf-8"),await zw(async()=>{await Ew(this.#S,this.#w)},10,100),this.#x?.[0]()}catch(w){if(w instanceof Error)this.#x?.[1](w);throw w}finally{if(this.#N=!1,this.#x=this.#h,this.#h=this.#E=null,this.#J!==null){let w=this.#J;this.#J=null,await this.write(w)}}}constructor(S){this.#w=S,this.#S=$w(S)}async write(S){return this.#N?this.#F(S):this.#M(S)}}class _{#w;#S;constructor(S){this.#w=S,this.#S=new U(S)}async read(){let S;try{S=await Qw(this.#w,"utf-8")}catch(w){if(w.code==="ENOENT")return null;throw w}return S}write(S){return this.#S.write(S)}}class A{#w;#S;constructor(S){this.#S=S;let w=S.toString();this.#w=q.join(q.dirname(w),`.${q.basename(w)}.tmp`)}read(){let S;try{S=Bw(this.#S,"utf-8")}catch(w){if(w.code==="ENOENT")return null;throw w}return S}write(S){Kw(this.#w,S),Gw(this.#w,this.#S)}}class D{#w;#S;#N;constructor(S,{parse:w,stringify:N}){this.#w=new _(S),this.#S=w,this.#N=N}async read(){let S=await this.#w.read();if(S===null)return null;else return this.#S(S)}write(S){return this.#w.write(this.#N(S))}}class b{#w;#S;#N;constructor(S,{parse:w,stringify:N}){this.#w=new A(S),this.#S=w,this.#N=N}read(){let S=this.#w.read();if(S===null)return null;else return this.#S(S)}write(S){this.#w.write(this.#N(S))}}class Y extends D{constructor(S){super(S,{parse:JSON.parse,stringify:(w)=>JSON.stringify(w,null,2)})}}var Jw=iw(Sw(),1);import ew from"os";import Nw from"path";import L from"fs";var y={config:{provider_id:"default",provider_type:"openai",model_id:"glm-5",providers:[{id:"default",type:"openai",apiKey:"",baseUrl:"https://api.openai.com/v1"}],compact_mode:!0}};function ow(S){return"main_model"in S&&!("providers"in S)}function wS(S){let w=[];if(S.model_provider==="openai"||S.openai_api_key||S.openai_base_url)w.push({id:"openai",type:"openai",apiKey:S.openai_api_key||"",baseUrl:S.openai_base_url||"https://api.openai.com/v1"});if(S.model_provider==="anthropic"||S.anthropic_api_key||S.anthropic_base_url)w.push({id:"anthropic",type:"anthropic",apiKey:S.anthropic_api_key||"",baseUrl:S.anthropic_base_url||"https://api.anthropic.com"});if(w.length===0)w.push({id:"default",type:"openai",apiKey:"",baseUrl:"https://api.openai.com/v1"});let N=S.model_provider==="anthropic"?"anthropic":"openai",J=w.find((x)=>x.id===N)||w[0];return{provider_id:J.id,provider_type:J.type,model_id:S.main_model,providers:w,mcp_config:S.mcp_config,stream_refresh_interval:S.stream_refresh_interval,enable_thinking:S.enable_thinking,switch_command:S.switch_command,compact_mode:S.compact_mode,permissions:S.permissions}}class SS{db;zenConfigDir;dbPath;getLockfilePath(){return`${this.dbPath}.lock`}lockOptions={stale:5000,retries:{retries:5,minTimeout:100,maxTimeout:1000}};constructor(){let S=ew.homedir();this.zenConfigDir=Nw.join(S,".zen-code");let w=Nw.join(this.zenConfigDir,"settings.json"),N=new Y(w);this.dbPath=w,this.db=new X(N,y)}async withLock(S){if(await L.promises.mkdir(this.zenConfigDir,{recursive:!0}),!L.existsSync(this.dbPath))await L.promises.writeFile(this.dbPath,JSON.stringify(y,null,2),"utf-8");let w=await Jw.default.lock(this.dbPath,{...this.lockOptions,lockfilePath:this.getLockfilePath()});try{return await S()}finally{await w()}}async initialize(){await this.withLock(async()=>{if(await this.db.read(),!this.db.data||!this.db.data.config)this.db.data=y,await this.db.write();else if(ow(this.db.data.config))console.log("Migrating legacy config to new format..."),this.db.data.config=wS(this.db.data.config),await this.db.write(),console.log("Config migration completed.");this.syncEnvFromConfig()})}async getConfig(){return this.withLock(async()=>{return await this.db.read(),this.db.data.config})}async updateConfig(S){await this.withLock(async()=>{await this.db.read(),Object.assign(this.db.data.config,S),await this.db.write(),this.syncEnvFromConfig()})}syncEnvFromConfig(){let S=this.db.data.config,w=S.providers.find((N)=>N.id===S.provider_id);if(w){if(w.type==="openai")process.env.MODEL_PROVIDER="openai",process.env.OPENAI_API_KEY=w.apiKey,process.env.OPENAI_BASE_URL=w.baseUrl;else if(w.type==="anthropic")process.env.MODEL_PROVIDER="anthropic",process.env.ANTHROPIC_API_KEY=w.apiKey,process.env.ANTHROPIC_BASE_URL=w.baseUrl;else if(w.type==="gemini"||w.type==="google")process.env.MODEL_PROVIDER="gemini",process.env.GOOGLE_API_KEY=w.apiKey,process.env.GOOGLE_BASE_URL=w.baseUrl}}getZenConfigDir(){return this.zenConfigDir}}
|
|
2
|
-
export{X as iq,Y as jq,SS as kq};
|
package/dist/chunk-5dsevrtz.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import{Bd as L,Kd as D}from"./chunk-hsev32dg.js";import{dh as z,sh as P,th as K,vh as O}from"./chunk-ac5t2ywn.js";import"./chunk-dcwnpdtk.js";import"./chunk-cbjnwrt7.js";import"./chunk-vh9zd1v3.js";import"./chunk-w2hbsa9j.js";import"./chunk-rztre6k0.js";import"./chunk-wpy5r9ma.js";import"./chunk-h1enhch1.js";import"./chunk-hyf24r36.js";import{pq as R,tq as b}from"./chunk-dcs1r9as.js";var G={maxRetries:3,baseDelayMs:100,nonRetryablePatterns:["database disk image is malformed","database is malformed","cannot rollback","no transaction is active","database or disk is full"],isRetryableError:(H)=>{let J=H?.message?.toLowerCase()||"";for(let V of G.nonRetryablePatterns)if(J.includes(V.toLowerCase()))return!1;return J.includes("sqlite_busy")||J.includes("database is locked")||J==="sqlite_busy"||J==="database is locked"}};async function F(H,J){let V=null;for(let Z=0;Z<G.maxRetries;Z++)try{return await H()}catch($){V=$;let X=$?.message?.toLowerCase()||"";if(!G.isRetryableError($)){if(X.includes("malformed")){let j=Error(`SQLite database is corrupted: ${$.message}
|
|
2
|
-
|
|
3
|
-
Context: ${J||"unknown"}
|
|
4
|
-
|
|
5
|
-
Possible causes:
|
|
6
|
-
1. Database file was manually deleted or modified
|
|
7
|
-
2. Disk I/O errors during write operations
|
|
8
|
-
3. Concurrent access without proper locking
|
|
9
|
-
|
|
10
|
-
Recovery options:
|
|
11
|
-
- Delete the database file to start fresh (data will be lost)
|
|
12
|
-
- Use SQLite recovery tools: sqlite3 <db> ".recover" > recover.sql
|
|
13
|
-
- Switch to PostgreSQL/Redis for production use`);throw j.name="SQLiteCorruptError",j.cause=$,j}throw $}if(Z<G.maxRetries-1){let j=G.baseDelayMs*Math.pow(2,Z);console.warn(`SQLite lock detected${J?` (${J})`:""}, retrying in ${j}ms (attempt ${Z+1}/${G.maxRetries})`),await new Promise((U)=>setTimeout(U,j))}}throw V}var x=["source","step","parents"];function E(H){return H}var T=E(x);class N extends K{db;isSetup;constructor(H,J){super(J);this.db=new L({dialect:H}),this.isSetup=!1}static async fromConnStringAsync(H){let J;if(globalThis.Bun){console.log("LG | Using BunWorkerDialect "+H);let{BunSqliteDialect:V}=await import("./chunk-gyhxdxb4.js");J=new N(new V({url:H}))}else{console.log("LG | Using NodeWasmDialect");let{default:V}=await import("./chunk-x90r4sje.js").then((m)=>R(m.default,1)),{NodeWasmDialect:Z}=await import("./chunk-yndex7hs.js");console.log(H);let $=new Z({database:new V.Database(H)});J=new N($)}return await J.setup(),J}async setup(){if(this.isSetup)return;await D`PRAGMA busy_timeout = 5000`.execute(this.db),await D`PRAGMA journal_mode = WAL`.execute(this.db),await D`PRAGMA synchronous = NORMAL`.execute(this.db),await D`PRAGMA wal_autocheckpoint = 1000`.execute(this.db),await D`
|
|
14
|
-
CREATE TABLE IF NOT EXISTS checkpoints (
|
|
15
|
-
thread_id TEXT NOT NULL,
|
|
16
|
-
checkpoint_ns TEXT NOT NULL DEFAULT '',
|
|
17
|
-
checkpoint_id TEXT NOT NULL,
|
|
18
|
-
parent_checkpoint_id TEXT,
|
|
19
|
-
type TEXT,
|
|
20
|
-
checkpoint BLOB,
|
|
21
|
-
metadata BLOB,
|
|
22
|
-
PRIMARY KEY (thread_id, checkpoint_ns, checkpoint_id)
|
|
23
|
-
)`.execute(this.db),await D`
|
|
24
|
-
CREATE TABLE IF NOT EXISTS writes (
|
|
25
|
-
thread_id TEXT NOT NULL,
|
|
26
|
-
checkpoint_ns TEXT NOT NULL DEFAULT '',
|
|
27
|
-
checkpoint_id TEXT NOT NULL,
|
|
28
|
-
task_id TEXT NOT NULL,
|
|
29
|
-
idx INTEGER NOT NULL,
|
|
30
|
-
channel TEXT NOT NULL,
|
|
31
|
-
type TEXT,
|
|
32
|
-
value BLOB,
|
|
33
|
-
PRIMARY KEY (thread_id, checkpoint_ns, checkpoint_id, task_id, idx)
|
|
34
|
-
)`.execute(this.db),this.isSetup=!0}async getTuple(H){await this.setup();let{thread_id:J,checkpoint_ns:V="",checkpoint_id:Z}=H.configurable??{},$=this.db.selectFrom("checkpoints").select(["thread_id","checkpoint_ns","checkpoint_id","parent_checkpoint_id","type","checkpoint","metadata",D`(
|
|
35
|
-
SELECT json_group_array(
|
|
36
|
-
json_object(
|
|
37
|
-
'task_id', pw.task_id,
|
|
38
|
-
'channel', pw.channel,
|
|
39
|
-
'type', pw.type,
|
|
40
|
-
'value', CAST(pw.value AS TEXT)
|
|
41
|
-
)
|
|
42
|
-
)
|
|
43
|
-
FROM writes as pw
|
|
44
|
-
WHERE pw.thread_id = checkpoints.thread_id
|
|
45
|
-
AND pw.checkpoint_ns = checkpoints.checkpoint_ns
|
|
46
|
-
AND pw.checkpoint_id = checkpoints.checkpoint_id
|
|
47
|
-
)`.as("pending_writes"),D`(
|
|
48
|
-
SELECT json_group_array(
|
|
49
|
-
json_object(
|
|
50
|
-
'type', ps.type,
|
|
51
|
-
'value', CAST(ps.value AS TEXT)
|
|
52
|
-
)
|
|
53
|
-
)
|
|
54
|
-
FROM writes as ps
|
|
55
|
-
WHERE ps.thread_id = checkpoints.thread_id
|
|
56
|
-
AND ps.checkpoint_ns = checkpoints.checkpoint_ns
|
|
57
|
-
AND ps.checkpoint_id = checkpoints.parent_checkpoint_id
|
|
58
|
-
AND ps.channel = ${z}
|
|
59
|
-
ORDER BY ps.idx
|
|
60
|
-
)`.as("pending_sends")]).where("thread_id","=",J).where("checkpoint_ns","=",V);if(Z)$=$.where("checkpoint_id","=",Z);else $=$.orderBy("checkpoint_id","desc").limit(1);let X=await $.executeTakeFirst();if(!X)return;let j=H;if(!Z)j={configurable:{thread_id:X.thread_id,checkpoint_ns:V,checkpoint_id:X.checkpoint_id}};if(j.configurable?.thread_id===void 0||j.configurable?.checkpoint_id===void 0)throw Error("Missing thread_id or checkpoint_id");let U=await Promise.all(JSON.parse(X.pending_writes).map(async(A)=>{return[A.task_id,A.channel,await this.serde.loadsTyped(A.type??"json",A.value??"")]})),W=await this.serde.loadsTyped(X.type??"json",new TextDecoder().decode(X.checkpoint));if(W.v<4&&X.parent_checkpoint_id!=null)await this.migratePendingSends(W,X.thread_id,X.parent_checkpoint_id);return{checkpoint:W,config:j,metadata:await this.serde.loadsTyped(X.type??"json",new TextDecoder().decode(X.metadata)),parentConfig:X.parent_checkpoint_id?{configurable:{thread_id:X.thread_id,checkpoint_ns:V,checkpoint_id:X.parent_checkpoint_id}}:void 0,pendingWrites:U}}async*list(H,J){let{limit:V,before:Z,filter:$}=J??{};await this.setup();let X=H.configurable?.thread_id,j=H.configurable?.checkpoint_ns,U=this.db.selectFrom("checkpoints").select(["thread_id","checkpoint_ns","checkpoint_id","parent_checkpoint_id","type","checkpoint","metadata",D`(
|
|
61
|
-
SELECT json_group_array(
|
|
62
|
-
json_object(
|
|
63
|
-
'task_id', pw.task_id,
|
|
64
|
-
'channel', pw.channel,
|
|
65
|
-
'type', pw.type,
|
|
66
|
-
'value', CAST(pw.value AS TEXT)
|
|
67
|
-
)
|
|
68
|
-
)
|
|
69
|
-
FROM writes as pw
|
|
70
|
-
WHERE pw.thread_id = checkpoints.thread_id
|
|
71
|
-
AND pw.checkpoint_ns = checkpoints.checkpoint_ns
|
|
72
|
-
AND pw.checkpoint_id = checkpoints.checkpoint_id
|
|
73
|
-
)`.as("pending_writes"),D`(
|
|
74
|
-
SELECT json_group_array(
|
|
75
|
-
json_object(
|
|
76
|
-
'type', ps.type,
|
|
77
|
-
'value', CAST(ps.value AS TEXT)
|
|
78
|
-
)
|
|
79
|
-
)
|
|
80
|
-
FROM writes as ps
|
|
81
|
-
WHERE ps.thread_id = checkpoints.thread_id
|
|
82
|
-
AND ps.checkpoint_ns = checkpoints.checkpoint_ns
|
|
83
|
-
AND ps.checkpoint_id = checkpoints.parent_checkpoint_id
|
|
84
|
-
AND ps.channel = ${z}
|
|
85
|
-
ORDER BY ps.idx
|
|
86
|
-
)`.as("pending_sends")]);if(X)U=U.where("thread_id","=",X);if(j!==void 0&&j!==null)U=U.where("checkpoint_ns","=",j);if(Z?.configurable?.checkpoint_id!==void 0)U=U.where("checkpoint_id","<",Z.configurable.checkpoint_id);let W=Object.fromEntries(Object.entries($??{}).filter(([B,M])=>M!==void 0&&T.includes(B)));for(let[B,M]of Object.entries(W))U=U.where(D`json_extract(CAST(metadata AS TEXT), ${D.lit("$."+B)})`,"=",D.lit(JSON.stringify(M)));if(U=U.orderBy("checkpoint_id","desc"),V)U=U.limit(parseInt(V,10));let A=await U.execute();for(let B of A){let M=await Promise.all(JSON.parse(B.pending_writes).map(async(Q)=>{return[Q.task_id,Q.channel,await this.serde.loadsTyped(Q.type??"json",Q.value??"")]})),Y=await this.serde.loadsTyped(B.type??"json",new TextDecoder().decode(B.checkpoint));if(Y.v<4&&B.parent_checkpoint_id!=null)await this.migratePendingSends(Y,B.thread_id,B.parent_checkpoint_id);yield{config:{configurable:{thread_id:B.thread_id,checkpoint_ns:B.checkpoint_ns,checkpoint_id:B.checkpoint_id}},checkpoint:Y,metadata:await this.serde.loadsTyped(B.type??"json",new TextDecoder().decode(B.metadata)),parentConfig:B.parent_checkpoint_id?{configurable:{thread_id:B.thread_id,checkpoint_ns:B.checkpoint_ns,checkpoint_id:B.parent_checkpoint_id}}:void 0,pendingWrites:M}}}async put(H,J,V){if(await this.setup(),!H.configurable)throw Error("Empty configuration supplied.");let Z=H.configurable?.thread_id,$=H.configurable?.checkpoint_ns??"",X=H.configurable?.checkpoint_id;if(!Z)throw Error('Missing "thread_id" field in passed "config.configurable".');let j=P(J),[[U,W],[A,B]]=await Promise.all([this.serde.dumpsTyped(j),this.serde.dumpsTyped(V)]);if(U!==A)throw Error("Failed to serialized checkpoint and metadata to the same type.");return await F(async()=>{await this.db.insertInto("checkpoints").values({thread_id:Z,checkpoint_ns:$,checkpoint_id:J.id,parent_checkpoint_id:X??null,type:U,checkpoint:new Uint8Array(Buffer.from(W)),metadata:new Uint8Array(Buffer.from(B))}).onConflict((M)=>M.columns(["thread_id","checkpoint_ns","checkpoint_id"]).doUpdateSet({parent_checkpoint_id:X??null,type:U,checkpoint:new Uint8Array(Buffer.from(W)),metadata:new Uint8Array(Buffer.from(B))})).execute()},`put(${Z}/${J.id})`),{configurable:{thread_id:Z,checkpoint_ns:$,checkpoint_id:J.id}}}async putWrites(H,J,V){if(await this.setup(),!H.configurable)throw Error("Empty configuration supplied.");if(!H.configurable?.thread_id)throw Error("Missing thread_id field in config.configurable.");if(!H.configurable?.checkpoint_id)throw Error("Missing checkpoint_id field in config.configurable.");let Z=await Promise.all(J.map(async(j,U)=>{let[W,A]=await this.serde.dumpsTyped(j[1]);return{thread_id:H.configurable.thread_id,checkpoint_ns:H.configurable.checkpoint_ns??"",checkpoint_id:H.configurable.checkpoint_id,task_id:V,idx:U,channel:j[0],type:W,value:new Uint8Array(Buffer.from(A))}}));if(Z.length===0)return;let $=H.configurable.thread_id,X=H.configurable.checkpoint_id;await F(async()=>{await this.db.transaction().execute(async(j)=>{await j.deleteFrom("writes").where("thread_id","=",$).where("checkpoint_ns","=",Z[0].checkpoint_ns).where("checkpoint_id","=",X).where("task_id","=",V).execute();for(let U of Z)await j.insertInto("writes").values(U).execute()})},`putWrites(${$}/${X}/${V})`)}async deleteThread(H){await F(async()=>{await this.db.transaction().execute(async(J)=>{await J.deleteFrom("checkpoints").where("thread_id","=",H).execute(),await J.deleteFrom("writes").where("thread_id","=",H).execute()})},`deleteThread(${H})`)}async migratePendingSends(H,J,V){let Z=await this.db.selectFrom("writes as ps").select(["ps.checkpoint_id",D`json_group_array(
|
|
87
|
-
json_object(
|
|
88
|
-
'type', ps.type,
|
|
89
|
-
'value', CAST(ps.value AS TEXT)
|
|
90
|
-
)
|
|
91
|
-
)`.as("pending_sends")]).where("ps.thread_id","=",J).where("ps.checkpoint_id","=",V).where("ps.channel","=",z).orderBy("ps.idx").executeTakeFirst();if(!Z)return;let $=H;$.channel_values??={},$.channel_values[z]=await Promise.all(JSON.parse(Z.pending_sends).map(({type:X,value:j})=>this.serde.loadsTyped(X,j))),$.channel_versions[z]=Object.keys(H.channel_versions).length>0?O(...Object.values(H.channel_versions)):this.getNextVersion(void 0)}}export{N as SqliteSaver};
|
package/dist/chunk-66890qd3.js
DELETED