@maincode-ai/matilda-code 0.22.3 → 0.22.4
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/chunks/agent-MOVDRLTH.js +3 -0
- package/chunks/agent-headless-OIL2DH2J.js +3 -0
- package/chunks/{askUserQuestion-Y66GA5LV.js → askUserQuestion-76LPP5ST.js} +1 -1
- package/chunks/{chunk-RDTF45AP.js → chunk-3EQIOCSJ.js} +1 -1
- package/chunks/{chunk-6SPPO7RK.js → chunk-4SDFTVQW.js} +1 -1
- package/chunks/chunk-5372BQ2X.js +18 -0
- package/chunks/chunk-5MS3VZDH.js +12 -0
- package/chunks/chunk-B7BF33U4.js +31 -0
- package/chunks/{chunk-C2AKSF3S.js → chunk-EC2IF7DG.js} +1 -1
- package/chunks/{chunk-TGRZ364D.js → chunk-EEPSTT7K.js} +1 -1
- package/chunks/{chunk-JRGQUM3K.js → chunk-J6NYCXUR.js} +1 -1
- package/chunks/chunk-J6YVJMKL.js +207 -0
- package/chunks/{chunk-SLKJK36M.js → chunk-JVQHQDDE.js} +1 -1
- package/chunks/chunk-LPPYEBZM.js +2557 -0
- package/chunks/{chunk-DNDA5SY7.js → chunk-LQ3VS2EV.js} +76 -67
- package/chunks/{chunk-SHISTILE.js → chunk-M5ABGGE7.js} +1 -1
- package/chunks/chunk-MUYVUUSO.js +80 -0
- package/chunks/{chunk-YTKDUEUJ.js → chunk-QKAKC34Q.js} +1 -1
- package/chunks/{chunk-I4KER2VG.js → chunk-QUITDDTB.js} +1 -1
- package/chunks/{chunk-YZ33K24S.js → chunk-R373GBK6.js} +1 -1
- package/chunks/chunk-RR3LDVGW.js +8 -0
- package/chunks/chunk-RT2VU2QV.js +68 -0
- package/chunks/{chunk-U6ATDQUV.js → chunk-T6MRYRLI.js} +1 -1
- package/chunks/{chunk-7SPPCSW2.js → chunk-VNSW4TSX.js} +1 -1
- package/chunks/{chunk-GFKFHWDN.js → chunk-WAZCC4SE.js} +1 -1
- package/chunks/{chunk-TVTJEK4V.js → chunk-YUCEPXGG.js} +1 -1
- package/chunks/{computer-use-ISO4RC44.js → computer-use-MBKJPMWZ.js} +4 -4
- package/chunks/{cron-create-4AQ43RPW.js → cron-create-K6DCVCY3.js} +3 -3
- package/chunks/{cron-delete-HB7V5CZ5.js → cron-delete-XNCDKPVV.js} +1 -1
- package/chunks/{cron-list-DIZZQW44.js → cron-list-3IPROBTC.js} +1 -1
- package/chunks/{edit-MHYRQVE6.js → edit-72ASKQO7.js} +17 -17
- package/chunks/en-SCZAH2YB.js +23 -0
- package/chunks/{enter-worktree-BSZTMEDU.js → enter-worktree-YYH4RD3G.js} +1 -1
- package/chunks/enterPlanMode-SKK26RKS.js +18 -0
- package/chunks/{exit-worktree-BI3PAII4.js → exit-worktree-5K5Y2UR4.js} +1 -1
- package/chunks/{exitPlanMode-W5VIX4WC.js → exitPlanMode-XDH6WKKD.js} +30 -27
- package/chunks/{glob-V3O2W6OW.js → glob-3PF3E5R2.js} +1 -1
- package/chunks/{goal-tools-H4HYCQUP.js → goal-tools-4SWS6CGW.js} +1 -1
- package/chunks/{grep-ANJ5PXWU.js → grep-RQLOBTPU.js} +3 -3
- package/chunks/{ls-I6JUFOTE.js → ls-EP4ZVFNW.js} +1 -1
- package/chunks/{lsp-JMVZE3IL.js → lsp-ULZTGWC4.js} +1 -1
- package/chunks/monitor-ZS5E3EAX.js +33 -0
- package/chunks/notebook-edit-JMRHVFA4.js +17 -0
- package/chunks/openaiContentGenerator-PRVYEJIU.js +52 -0
- package/chunks/read-file-GWUQN2ZM.js +3 -0
- package/chunks/ripGrep-CWJYHBK6.js +3 -0
- package/chunks/scheduler-LPJ66QW3.js +8 -0
- package/chunks/{send-message-F2OT25N7.js → send-message-TDOMZHNJ.js} +1 -1
- package/chunks/shell-AXB4E537.js +3 -0
- package/chunks/{skill-2ISAMUAZ.js → skill-7PMKFRET.js} +1 -1
- package/chunks/symbol-search-NHVD4D3O.js +19 -0
- package/chunks/{syntheticOutput-ULZO4GEC.js → syntheticOutput-5SCRQCXN.js} +1 -1
- package/chunks/{task-create-ARA6A3IM.js → task-create-T4DIVG5X.js} +1 -1
- package/chunks/{task-detach-DNYZ6B3V.js → task-detach-ES3IMGJ4.js} +2 -2
- package/chunks/{task-list-MUF5W3YQ.js → task-list-LYK4TOBS.js} +1 -1
- package/chunks/{task-stop-JDLVQ7YB.js → task-stop-FETAYKFU.js} +1 -1
- package/chunks/{task-update-Z6PWEP2K.js → task-update-I6PVT46S.js} +1 -1
- package/chunks/{team-create-5NCGVBX5.js → team-create-3S7UXATW.js} +1 -1
- package/chunks/{team-delete-7YXVWNUC.js → team-delete-P5F32IYK.js} +1 -1
- package/chunks/todoWrite-ADAGHJLI.js +3 -0
- package/chunks/{tool-call-O4FMFOGR.js → tool-call-W6PAJOF6.js} +1 -1
- package/chunks/{tool-search-IRVSMFYZ.js → tool-search-ECQHNTSM.js} +1 -1
- package/chunks/{web-fetch-L3AFPTQ3.js → web-fetch-2BMJPIBC.js} +1 -1
- package/chunks/{web-search-CQZ35NJW.js → web-search-CHJGDUDM.js} +1 -1
- package/chunks/{workflow-Z7BMQ6HQ.js → workflow-H5E25IZN.js} +2 -2
- package/chunks/write-file-UPXM654K.js +15 -0
- package/cli.js +474 -472
- package/locales/en.js +36 -93
- package/package.json +2 -2
- package/chunks/agent-CZV2RVXO.js +0 -3
- package/chunks/agent-headless-ZANXAE75.js +0 -3
- package/chunks/ca-3NRDXS7D.js +0 -23
- package/chunks/chunk-225CZWD7.js +0 -89
- package/chunks/chunk-4OBUTJ5U.js +0 -56
- package/chunks/chunk-ADMI5U2X.js +0 -46
- package/chunks/chunk-BNPG5OZM.js +0 -2582
- package/chunks/chunk-L76BNXJ2.js +0 -13
- package/chunks/chunk-NGIEYIMB.js +0 -80
- package/chunks/chunk-OODGPZRX.js +0 -12
- package/chunks/chunk-QYVSSMHJ.js +0 -121
- package/chunks/chunk-UJWYKBZM.js +0 -8
- package/chunks/de-MINTIKBC.js +0 -23
- package/chunks/en-PBTDLJES.js +0 -23
- package/chunks/enterPlanMode-XUABOR3E.js +0 -18
- package/chunks/fr-XRDTBTRU.js +0 -23
- package/chunks/ja-OYFHC7MP.js +0 -23
- package/chunks/mcp-client-F5W7WEZP.js +0 -3
- package/chunks/monitor-OEMTAZ5B.js +0 -32
- package/chunks/notebook-edit-L3SBV7YM.js +0 -17
- package/chunks/openaiContentGenerator-PBSIX6IL.js +0 -52
- package/chunks/pt-6DJAKXHE.js +0 -23
- package/chunks/read-file-YNB554TW.js +0 -3
- package/chunks/ripGrep-FPRMOSPK.js +0 -3
- package/chunks/ru-4UMYCMY6.js +0 -23
- package/chunks/scheduler-JCQAZK5I.js +0 -8
- package/chunks/shell-JOPPKFDV.js +0 -3
- package/chunks/symbol-search-R7VDY7D2.js +0 -19
- package/chunks/todoWrite-RJABGUPD.js +0 -3
- package/chunks/write-file-I4DCL6AB.js +0 -15
- package/locales/ca.js +0 -1894
- package/locales/de.js +0 -1934
- package/locales/fr.js +0 -1935
- package/locales/ja.js +0 -1697
- package/locales/pt.js +0 -1920
- package/locales/ru.js +0 -1910
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as
|
|
3
|
+
import{a as m}from"./chunk-GT6MSEK4.js";import{b as g}from"./chunk-J6NYCXUR.js";import{H as f,P as d,ea as p}from"./chunk-4SDFTVQW.js";import{b as u}from"./chunk-GZPNIYVZ.js";u();import*as a from"node:fs/promises";import*as s from"node:path";var x=p("CRON_TASKS_FILE"),T="scheduled_tasks.json",L=`~/.matilda/tmp/<project-hash>/${T}`,E=15,w=2e3,b=3e3,P=0,h=new Map;function C(e){let t=h.get(e);return t||(t=new m,h.set(e,t)),t}function c(e){return s.join(d.getGlobalTempDir(),f(e),T)}async function k(e){let t=c(e),i;try{i=await a.readFile(t,"utf-8")}catch(o){if(o.code==="ENOENT")return[];throw o}let r;try{r=JSON.parse(i)}catch{throw new Error(`Malformed JSON in ${t} \u2014 fix or delete the file; refusing to treat it as an empty schedule.`)}if(!Array.isArray(r))throw new Error(`Expected a JSON array in ${t} \u2014 fix or delete the file; refusing to treat it as an empty schedule.`);let n=r.filter(A);return n.length!==r.length&&x.warn(`Dropped ${r.length-n.length} invalid task entr${r.length-n.length===1?"y":"ies"} from ${t}; a later write will persist without ${r.length-n.length===1?"it":"them"}.`),n}async function D(e,t){let i=c(e);await a.mkdir(s.dirname(i),{recursive:!0}),await g(i,t,{noFollow:!0})}async function _(e){let t=`${e}.lock`;await a.mkdir(s.dirname(t),{recursive:!0});let i=Date.now()+b;for(;;){if(Date.now()>i)throw new Error(`Timed out waiting for scheduled-tasks lock (${t})`);try{return await a.writeFile(t,String(process.pid),{flag:"wx"}),async()=>{await a.unlink(t).catch(()=>{})}}catch(r){if(r.code!=="EEXIST")throw r}try{let r=await a.stat(t);if(Date.now()-r.mtimeMs>w){let n=`${t}.stale.${process.pid}.${P++}`;try{await a.rename(t,n)}catch{continue}let o=await a.stat(n).catch(()=>null);o&&Date.now()-o.mtimeMs<=w&&await a.link(n,t).catch(()=>{}),await a.unlink(n).catch(()=>{});continue}}catch{continue}await new Promise(r=>setTimeout(r,E))}}async function y(e,t){let i=c(e);return C(i).runExclusive(async()=>{let r=await _(i);try{let n=await k(e),o=t(n);o!==n&&await D(e,o)}finally{await r()}})}async function F(e,t){await y(e,i=>[...i,t])}async function J(e,t){let i=new Set(t);if(!(await k(e)).some(o=>i.has(o.id)))return 0;let n=0;return await y(e,o=>{let l=o.filter(S=>!i.has(S.id));return n=o.length-l.length,n===0?o:l}),n}function A(e){if(typeof e!="object"||e===null)return!1;let t=e;return typeof t.id=="string"&&typeof t.cron=="string"&&typeof t.prompt=="string"&&typeof t.recurring=="boolean"&&typeof t.createdAt=="number"&&(t.lastFiredAt===null||typeof t.lastFiredAt=="number")}export{L as a,c as b,k as c,y as d,F as e,J as f};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{g as f,h,i as T,j as w,k as x,l as s}from"./chunk-QXSBPCBA.js";import{b as g}from"./chunk-
|
|
3
|
+
import{g as f,h,i as T,j as w,k as x,l as s}from"./chunk-QXSBPCBA.js";import{b as g}from"./chunk-J6NYCXUR.js";import{P as c,c as p}from"./chunk-4SDFTVQW.js";import{b as o}from"./chunk-GZPNIYVZ.js";o();import*as n from"node:fs/promises";import*as i from"node:path";o();function y(e){try{return process.kill(e,0),!0}catch(t){return t.code==="EPERM"}}function M(){return i.join(c.getGlobalMatildaDir(),h)}function d(e){return i.join(M(),e)}function l(e){return i.join(d(e),w)}function I(e){return i.join(d(e),x)}function E(e){return i.join(c.getGlobalMatildaDir(),T,e)}function m(e){return e.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}function j(e,t){return`${m(e)}@${m(t)}`}function R(e,t){let r=m(e);if(!r)throw new Error(`Teammate name "${e}" sanitizes to an empty string. Choose a name with at least one alphanumeric character.`);if(r===f)throw new Error(`"${f}" is reserved for the team leader. Choose a different teammate name.`);let a=new Set(t.map(u=>u.name));if(a.has(r)){let u=[...a].join(", ")||"<none>";throw new Error(`A teammate named "${r}" already exists in this team (existing: ${u}). Choose a different name.`)}return r}function C(e){let t=new Set(e.map(r=>r.color).filter(r=>r!==void 0));for(let r of s)if(!t.has(r))return r;return s[e.length%s.length]}function O(e,t){let r=m(t);return e.find(a=>a.name===r)}function $(e){let t=e.trimStart();if(/^shutdown_approved\b/i.test(t))return"shutdown_approved";if(/^shutdown_rejected\b/i.test(t))return"shutdown_rejected"}async function P(e){let t=l(e);try{let r=await n.readFile(t,"utf-8");return JSON.parse(r)}catch(r){if(p(r)&&r.code==="ENOENT")return;throw r}}async function k(e,t){let r=l(e);await n.mkdir(i.dirname(r),{recursive:!0}),await g(r,t)}async function z(e,t){let r=l(e);await n.mkdir(i.dirname(r),{recursive:!0}),await n.writeFile(r,JSON.stringify(t,null,2)+`
|
|
4
4
|
`,{encoding:"utf-8",flag:"wx"})}async function L(e){let t;try{t=await P(e)}catch{return!1}return t?typeof t.leadPid!="number"||t.leadPid<=0||t.leadPid!==process.pid&&y(t.leadPid)?!1:(await b(e),!0):(await b(e),!0)}async function b(e){let t=d(e),r=E(e);await Promise.allSettled([n.rm(t,{recursive:!0,force:!0}),n.rm(r,{recursive:!0,force:!0})])}export{y as a,d as b,I as c,E as d,m as e,j as f,R as g,C as h,O as i,$ as j,k,z as l,L as m,b as n};
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{c as u,ea as M}from"./chunk-
|
|
3
|
+
import{c as u,ea as M}from"./chunk-4SDFTVQW.js";import{b as I}from"./chunk-GZPNIYVZ.js";I();import*as P from"node:crypto";import*as n from"node:fs";import*as f from"node:fs/promises";import*as O from"node:path";var C=M("ATOMIC_WRITE");async function L(t,o,e,i,w=f.rename){for(let a=0;a<=e;a++)try{await w(t,o);return}catch(c){if(!(u(c)&&(c.code==="EPERM"||c.code==="EACCES"))||a===e)throw c;await new Promise(v=>setTimeout(v,i*2**a))}}async function $(t){let e=t;for(let w=0;w<40;w++){let a;try{a=await f.lstat(e)}catch(l){if(u(l)&&l.code==="ENOENT")return e;throw l}if(!a.isSymbolicLink())return e;let c=await f.readlink(e);if(O.isAbsolute(c))e=c;else{let l=await f.realpath(O.dirname(e));e=O.resolve(l,c)}}let i=new Error(`ELOOP: too many levels of symbolic links, resolve '${t}'`);throw i.code="ELOOP",i}async function B(t,o,e,i){let w=e?.retries??3,a=e?.delayMs??50,c=e?.flush??!0,l=e?.encoding??"utf-8",v=i?.rename??f.rename,F=i?.writeFile??f.writeFile,x=i?.open??f.open,T=i?.chmod??f.chmod,A=i?.fchmod??((d,s)=>d.chmod(s)),b=i?.unlink??f.unlink,r=e?.noFollow?t:await $(t).catch(d=>{throw N(d,t)}),S;try{S=await f.stat(r)}catch(d){if(!u(d)||d.code!=="ENOENT")throw d}let W;(!e?.forceMode||e?.mode===void 0)&&(W=S!==void 0?S.mode&4095:void 0);let y=W??e?.mode,p={};typeof o=="string"&&(p.encoding=l),c&&(p.flush=!0),y!==void 0&&(p.mode=y);let k=async d=>{if(y!==void 0)try{await T(d,y)}catch(s){if(!u(s)||s.code!=="ENOSYS"&&s.code!=="ENOTSUP")throw s}},h=()=>{if(S===void 0||process.platform==="win32")return!1;let d=process.geteuid?.();return d===void 0?!1:S.uid!==d};if(S!==void 0&&S.isFile()&&h()){await f.writeFile(r,o,p),await k(r);return}let m=`${r}.${P.randomBytes(6).toString("hex")}.tmp`;try{await F(m,o,p),await k(m),await L(m,r,w,a,v)}catch(d){try{await b(m)}catch{}if(u(d)&&d.code==="EXDEV")try{if(e?.noFollow){try{await b(r)}catch(g){if(!u(g)||g.code!=="ENOENT")throw g}let s=await x(r,n.constants.O_WRONLY|n.constants.O_CREAT|n.constants.O_EXCL,y??438),E=!1;try{try{if(await s.writeFile(typeof o=="string"?Buffer.from(o,l):o),c&&await s.sync(),y!==void 0)try{await A(s,y)}catch(g){if(!u(g)||g.code!=="ENOSYS"&&g.code!=="ENOTSUP")throw g}E=!0}finally{await s.close()}}catch(g){if(!E)try{await b(r)}catch(R){C.debug(`orphan unlink failed for ${r}:`,R)}throw g}}else await F(r,o,p),await k(r);return}catch(s){throw N(s,r)}throw N(d,r)}}function N(t,o,e="atomicWriteFile"){return t instanceof Error&&!t.message.startsWith(`${e}(`)&&(t.message=`${e}(${JSON.stringify(o)}): ${t.message}`),t}async function X(t,o,e){await B(t,JSON.stringify(o,null,2),{encoding:"utf-8",...e})}function H(t){if(t<=0)return;let o=new SharedArrayBuffer(4),e=new Int32Array(o);Atomics.wait(e,0,0,t)}function Y(t,o,e,i,w=n.renameSync){for(let a=0;a<=e;a++)try{w(t,o);return}catch(c){if(!(u(c)&&(c.code==="EPERM"||c.code==="EACCES"))||a===e)throw c;H(i*2**a)}}function D(t){let e=t;for(let w=0;w<40;w++){let a;try{a=n.lstatSync(e)}catch(l){if(u(l)&&l.code==="ENOENT")return e;throw l}if(!a.isSymbolicLink())return e;let c=n.readlinkSync(e);if(O.isAbsolute(c))e=c;else{let l=n.realpathSync(O.dirname(e));e=O.resolve(l,c)}}let i=new Error(`ELOOP: too many levels of symbolic links, resolve '${t}'`);throw i.code="ELOOP",i}function V(t,o,e,i){let w=e?.retries??3,a=e?.delayMs??50,c=e?.flush??!0,l=e?.encoding??"utf-8",v=i?.rename??n.renameSync,F=i?.writeFile??n.writeFileSync,x=i?.open??n.openSync,T=i?.chmod??n.chmodSync,A=i?.fchmod??n.fchmodSync,b=i?.unlink??n.unlinkSync,r;if(e?.noFollow)r=t;else try{r=D(t)}catch(h){throw N(h,t,"atomicWriteFileSync")}let S=`${r}.${P.randomBytes(6).toString("hex")}.tmp`,W;if(!e?.forceMode||e?.mode===void 0)try{W=n.statSync(r).mode&4095}catch(h){if(!u(h)||h.code!=="ENOENT")throw h}let y=W??e?.mode,p={};typeof o=="string"&&(p.encoding=l),c&&(p.flush=!0),y!==void 0&&(p.mode=y);let k=h=>{if(y!==void 0)try{T(h,y)}catch(m){if(!u(m)||m.code!=="ENOSYS"&&m.code!=="ENOTSUP")throw m}};try{F(S,o,p),k(S),Y(S,r,w,a,v)}catch(h){try{b(S)}catch{}if(u(h)&&h.code==="EXDEV")try{if(e?.noFollow){try{b(r)}catch(s){if(!u(s)||s.code!=="ENOENT")throw s}let m=x(r,n.constants.O_WRONLY|n.constants.O_CREAT|n.constants.O_EXCL,y??438),d=!1;try{try{let s=typeof o=="string"?Buffer.from(o,l):o;if(n.writeFileSync(m,s),c&&n.fsyncSync(m),y!==void 0)try{A(m,y)}catch(E){if(!u(E)||E.code!=="ENOSYS"&&E.code!=="ENOTSUP")throw E}d=!0}finally{n.closeSync(m)}}catch(s){if(!d)try{b(r)}catch(E){C.debug(`orphan unlink failed for ${r}:`,E)}throw s}}else F(r,o,p),k(r);return}catch(m){throw N(m,r,"atomicWriteFileSync")}throw N(h,r,"atomicWriteFileSync")}}export{B as a,X as b,D as c,V as d};
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2025 Matilda Team
|