@maincode-ai/matilda-code 0.21.1 → 0.21.2-nightly.20260814.dc3f6fcc3

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.
Files changed (35) hide show
  1. package/chunks/{agent-NKMZBTFX.js → agent-CQNUAULE.js} +1 -1
  2. package/chunks/{agent-headless-QALB2VKF.js → agent-headless-4IXGGWHV.js} +1 -1
  3. package/chunks/{chunk-ASBKKKEC.js → chunk-KQHQ5M6X.js} +8 -8
  4. package/chunks/{chunk-UUTPLLCJ.js → chunk-SHREE4V5.js} +3 -3
  5. package/chunks/{chunk-PPBGETQF.js → chunk-UR364BM4.js} +1 -1
  6. package/chunks/{chunk-UBLZ73EY.js → chunk-WXJNBF56.js} +14 -14
  7. package/chunks/{chunk-G6ZP2JXV.js → chunk-YXBQYSKO.js} +1 -1
  8. package/chunks/chunk-ZTVW5VOA.js +22 -0
  9. package/chunks/{computer-use-D5SWPUWU.js → computer-use-JRUPYITZ.js} +1 -1
  10. package/chunks/{contextCommand-Z577LUBV.js → contextCommand-SQNA3OOB.js} +1 -1
  11. package/chunks/{edit-PSPQYZEV.js → edit-Y2NO7C6B.js} +1 -1
  12. package/chunks/{enter-worktree-HOQPTB4F.js → enter-worktree-KYNVYAOT.js} +1 -1
  13. package/chunks/{enterPlanMode-4KND327M.js → enterPlanMode-Q3PD25J2.js} +1 -1
  14. package/chunks/{exit-worktree-2EUDTVQD.js → exit-worktree-RZ5MZMA3.js} +1 -1
  15. package/chunks/{exitPlanMode-I5NUEMM2.js → exitPlanMode-LIKQ42LH.js} +1 -1
  16. package/chunks/{geminiContentGenerator-KE5W2HAZ.js → geminiContentGenerator-KOYPGWKG.js} +1 -1
  17. package/chunks/{glob-6LD5EXSG.js → glob-CNKKKUJQ.js} +1 -1
  18. package/chunks/{grep-D7F7VOBQ.js → grep-RNYLGJOM.js} +1 -1
  19. package/chunks/{matildaAgentContentGenerator-53Y6ZKNX.js → matildaAgentContentGenerator-DNYGBRWM.js} +1 -1
  20. package/chunks/{matildaContentGenerator-XH7XBFUB.js → matildaContentGenerator-FKUGLUQL.js} +1 -1
  21. package/chunks/{monitor-GH5LJV3O.js → monitor-CP6F3GFH.js} +1 -1
  22. package/chunks/{notebook-edit-VYMSF622.js → notebook-edit-W4T5L4N4.js} +1 -1
  23. package/chunks/{openaiContentGenerator-W7WJAAQ3.js → openaiContentGenerator-WHX6IFTA.js} +1 -1
  24. package/chunks/{ripGrep-AZQNLER7.js → ripGrep-TFPTBR5R.js} +1 -1
  25. package/chunks/{scheduler-2XZK4D6E.js → scheduler-J3G2IRMW.js} +1 -1
  26. package/chunks/{serve-VB2EI7T2.js → serve-WM7MOIEI.js} +1 -1
  27. package/chunks/{shell-QLCMTFUQ.js → shell-TCSGGIEL.js} +1 -1
  28. package/chunks/{skill-EGDTMPHB.js → skill-3ZF3QO3G.js} +1 -1
  29. package/chunks/{src-O4M6KMI4.js → src-GEZC6H3M.js} +1 -1
  30. package/chunks/{team-create-DAPGTPYR.js → team-create-DZQR5RMY.js} +1 -1
  31. package/chunks/{workflow-PI6BBTXZ.js → workflow-Z4H772DO.js} +2 -2
  32. package/chunks/{write-file-4K4VALFS.js → write-file-ML4VC32S.js} +1 -1
  33. package/cli.js +340 -340
  34. package/package.json +2 -2
  35. package/chunks/chunk-BZMRSSEE.js +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maincode-ai/matilda-code",
3
- "version": "0.21.1",
3
+ "version": "0.21.2-nightly.20260814.dc3f6fcc3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "cli.js",
@@ -26,7 +26,7 @@
26
26
  "bundled"
27
27
  ],
28
28
  "config": {
29
- "sandboxImageUri": "ghcr.io/maincode/matilda-code:0.21.1"
29
+ "sandboxImageUri": "ghcr.io/maincode/matilda-code:0.21.2-nightly.20260814.dc3f6fcc3"
30
30
  },
31
31
  "dependencies": {},
32
32
  "optionalDependencies": {
@@ -1,22 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import{ch as T}from"./chunk-UUTPLLCJ.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;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
- */