@maincode-ai/matilda-code 0.21.0 → 0.21.2
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-B4THN25M.js +3 -0
- package/chunks/agent-headless-CR55Q5QA.js +3 -0
- package/chunks/{anthropicContentGenerator-I3ANKUSE.js → anthropicContentGenerator-GW3P6NLQ.js} +11 -11
- package/chunks/{chunk-3ANXLJCZ.js → chunk-JEDNTIM3.js} +1 -1
- package/chunks/chunk-KFULPF66.js +107 -0
- package/chunks/{chunk-4TPGNHQA.js → chunk-M3G4PG2T.js} +20 -20
- package/chunks/{chunk-UHD4X7RU.js → chunk-MAQJCFZU.js} +423 -422
- package/chunks/chunk-NUJ63BIE.js +22 -0
- package/chunks/{chunk-DQJ3VI2G.js → chunk-QEUJHX22.js} +16 -16
- package/chunks/chunk-QLEJOI4X.js +25 -0
- package/chunks/{computer-use-FT3IXC3W.js → computer-use-STZBQBFP.js} +1 -1
- package/chunks/contextCommand-LB5MHXJY.js +3 -0
- package/chunks/{edit-HHWOLKWO.js → edit-EP7HIW5W.js} +1 -1
- package/chunks/{enter-worktree-5MK2DIQM.js → enter-worktree-V6TA7IPP.js} +1 -1
- package/chunks/{enterPlanMode-3UHEGNQ6.js → enterPlanMode-KQCLOC2K.js} +1 -1
- package/chunks/{exit-worktree-7R4JPTL2.js → exit-worktree-B3SWF6PM.js} +1 -1
- package/chunks/{exitPlanMode-CML6BAGH.js → exitPlanMode-7OHF37SX.js} +1 -1
- package/chunks/{geminiContentGenerator-ZQQSIRNW.js → geminiContentGenerator-6VRAJ3BI.js} +1 -1
- package/chunks/{glob-4QHENQIW.js → glob-ZAZPTZD5.js} +1 -1
- package/chunks/{grep-M5SOSBIW.js → grep-DNYRXQWA.js} +1 -1
- package/chunks/matildaAgentContentGenerator-S26H4H3W.js +32 -0
- package/chunks/matildaContentGenerator-UFATU4UK.js +8 -0
- package/chunks/{monitor-HGVAACHM.js → monitor-HQXCJQ3M.js} +1 -1
- package/chunks/notebook-edit-S63FQCCF.js +17 -0
- package/chunks/openaiContentGenerator-XAPZXISY.js +3 -0
- package/chunks/ripGrep-BNBRX7HQ.js +3 -0
- package/chunks/scheduler-3K7OROFK.js +8 -0
- package/chunks/{serve-NAHOXXTZ.js → serve-MBVRWSOA.js} +1 -1
- package/chunks/shell-3YF6VEDO.js +3 -0
- package/chunks/{skill-HOXYLSX3.js → skill-4GKPLUND.js} +1 -1
- package/chunks/src-4XJIGVTS.js +3 -0
- package/chunks/{team-create-YZP2OD7U.js → team-create-2LLJKRSY.js} +1 -1
- package/chunks/{workflow-CPUZRYXY.js → workflow-EIZTKOPX.js} +2 -2
- package/chunks/write-file-YT7UT6TX.js +15 -0
- package/cli.js +401 -401
- package/package.json +2 -2
- package/chunks/agent-LUXCJ7NA.js +0 -3
- package/chunks/agent-headless-GHOHNDBO.js +0 -3
- package/chunks/chunk-7VBRP4XQ.js +0 -18
- package/chunks/chunk-7VE3KGS4.js +0 -8
- package/chunks/chunk-B4GPJM2R.js +0 -101
- package/chunks/chunk-G7AJTQ56.js +0 -22
- package/chunks/chunk-XYA3SFGC.js +0 -25
- package/chunks/contextCommand-6MUHW4I3.js +0 -3
- package/chunks/matildaAgentContentGenerator-ON6GCAVM.js +0 -32
- package/chunks/matildaContentGenerator-B6AI7SAJ.js +0 -8
- package/chunks/notebook-edit-W5A5ZFCS.js +0 -17
- package/chunks/openaiContentGenerator-U5OSOHY5.js +0 -3
- package/chunks/ripGrep-XSUPU4OD.js +0 -3
- package/chunks/scheduler-Z3KK7VT6.js +0 -8
- package/chunks/shell-KCHSF727.js +0 -3
- package/chunks/src-DTIIPH7M.js +0 -3
- package/chunks/write-file-T7BXLEV4.js +0 -15
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{ch as T}from"./chunk-MAQJCFZU.js";import{L as b}from"./chunk-QWBNNEV2.js";import{b as o}from"./chunk-GZPNIYVZ.js";import{b as w}from"./chunk-OWGSC52X.js";o();var B=e=>{process.stdout.write(e.endsWith(`
|
|
4
|
+
`)?e:`${e}
|
|
5
|
+
`)},m=e=>{process.stderr.write(e.endsWith(`
|
|
6
|
+
`)?e:`${e}
|
|
7
|
+
`)},W=()=>{console.clear()};o();import*as u from"node:fs";import*as f from"node:path";import{pathToFileURL as N}from"node:url";o();var p=[{code:"en",id:"en-AU",fullName:"Australian English",nativeName:"English (AU)"},{code:"ru",id:"ru-RU",fullName:"Russian",nativeName:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{code:"de",id:"de-DE",fullName:"German",nativeName:"Deutsch"},{code:"ja",id:"ja-JP",fullName:"Japanese",nativeName:"\u65E5\u672C\u8A9E"},{code:"pt",id:"pt-BR",fullName:"Portuguese",nativeName:"Portugu\xEAs"},{code:"fr",id:"fr-FR",fullName:"French",nativeName:"Fran\xE7ais"},{code:"ca",id:"ca-ES",fullName:"Catalan",nativeName:"Catal\xE0"}];function A(e){return e.trim().replace(/_/g,"-").toLowerCase()}var M=new Set(["zh","zh-cn","zh-hans","zh-sg","zh-tw","zh-hk","zh-mo","zh-hant","chinese","traditional chinese","simplified chinese","\u4E2D\u6587","\u7B80\u4F53\u4E2D\u6587","\u7E41\u9AD4\u4E2D\u6587","\u7E41\u4F53\u4E2D\u6587"]);function E(e){let t=A(e);return t?M.has(t)?!0:t.startsWith("zh-")||t.startsWith("zh.")||t.startsWith("zh@"):!1}function k(e,t){return e===t||e.startsWith(`${t}-`)||e.startsWith(`${t}.`)||e.startsWith(`${t}@`)}function z(e,t){let n=t.code.toLowerCase(),r=t.id.toLowerCase();if(k(e,r))return r.length;if(k(e,n))return n.length}function l(e){let t=A(e);if(!t)return;if(t==="english"||t==="australian"||t==="australian-english")return"en";let n;for(let r of p){if(t===r.fullName.toLowerCase()||r.nativeName&&t===r.nativeName.toLowerCase())return r.code;let a=z(t,r);a!==void 0&&(!n||a>n.tokenLength)&&(n={code:r.code,tokenLength:a})}return n?.code}function C(e){let t=l(e);return(t?p.find(r=>r.code===t):void 0)?.fullName||"English"}function q(){return[{value:"auto",label:"Auto (detect from system)"},...p.map(e=>({value:e.code,label:e.nativeName?`${e.nativeName} (${e.fullName})`:`${e.fullName} (${e.id})`}))]}o();function h(e){return Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0}o();var I=w({"./locales/ca.js":()=>import("./ca-UW3G7H5I.js"),"./locales/de.js":()=>import("./de-QSFN3SRK.js"),"./locales/en.js":()=>import("./en-2BILXSUL.js"),"./locales/fr.js":()=>import("./fr-FKTJ4COX.js"),"./locales/ja.js":()=>import("./ja-GKS4GLZP.js"),"./locales/pt.js":()=>import("./pt-VIW62ZAE.js"),"./locales/ru.js":()=>import("./ru-FSSACF4A.js")});var y="en",v={},i={},S={},R=()=>f.join(T(import.meta.url),"locales"),U=()=>f.join(b.getGlobalMatildaDir(),"locales");var D=(e,t=!1)=>{let n=t?U():R();return f.join(n,`${e}.js`)};function O(){let e=process.env.MATILDA_CODE_LANG||process.env.LANG;if(e){let t=l(e);if(t)return t}try{let t=Intl.DateTimeFormat().resolvedOptions().locale,n=l(t);if(n)return n}catch{}return"en"}async function P(e){try{let t=await import(e),n=h(t);return L(n)?{translations:n}:{error:new Error("Module loaded but result is empty or invalid")}}catch(t){return{error:t instanceof Error?t:new Error(String(t))}}}async function $(e){try{let t=await I(`./locales/${e}.js`),n=h(t);return L(n)?{translations:n}:{error:new Error("Module loaded but result is empty or invalid")}}catch(t){return{error:t instanceof Error?t:new Error(String(t))}}}async function j(e){if(i[e])return i[e];let t=S[e];if(t)return t;let n=(async()=>{let r=D(e,!0);if(u.existsSync(U())&&u.existsSync(r)){let s=await P(N(r).href);if(s.translations)return i[e]=s.translations,s.translations;m(`Failed to load translations from user directory for ${e}: ${s.error.message}`)}let a=D(e,!1),x=[];u.existsSync(R())&&u.existsSync(a)&&x.push(N(a).href);let c;for(let s of x){let g=await P(s);if(g.translations)return i[e]=g.translations,g.translations;c=g.error}let d=await $(e);return d.translations?(i[e]=d.translations,d.translations):(c=d.error,c&&m(`Failed to load JS translations for ${e}: ${c.message}`),i[e]={},{})})();return S[e]=n,n.finally(()=>{delete S[e]}),n}function _(e,t){return t?e.replace(/\{\{(\w+)\}\}/g,(n,r)=>t[r]??n):e}function F(e){return e==="auto"?O():E(e)?"en":l(e)??e}async function G(e){y=F(e),v=await j(y)}function le(){return y}function ue(e,t){let n=v[e]??e;return Array.isArray(n)?e:_(n,t)}function ce(e){let t=v[e];return Array.isArray(t)?t:[]}async function de(e){await G(e??"auto")}export{B as a,m as b,W as c,p as d,E as e,l as f,C as g,q as h,O as i,G as j,le as k,ue as l,ce as m,de as n};
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2025 Matilda Team
|
|
11
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2025 Matilda team
|
|
16
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2026 Matilda Team
|
|
21
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
22
|
+
*/
|