@maincode-ai/matilda-code 0.21.11 → 0.21.13
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/bundled/mainy/docs/configuration/model-providers.md +0 -82
- package/bundled/mainy/docs/configuration/settings.md +46 -7
- package/bundled/mainy/docs/configuration/trusted-folders.md +12 -6
- package/bundled/mainy/docs/features/auto-mode.md +1 -1
- package/bundled/mainy/docs/features/channels/_meta.ts +0 -3
- package/bundled/mainy/docs/features/channels/overview.md +8 -16
- package/bundled/mainy/docs/features/commands.md +4 -4
- package/bundled/mainy/docs/features/hooks.md +9 -7
- package/bundled/mainy/docs/features/language.md +2 -29
- package/bundled/mainy/docs/features/worktree.md +0 -2
- package/bundled/mainy/docs/integration-github-action.md +3 -3
- package/bundled/mainy/docs/quickstart.md +2 -2
- package/bundled/mainy/docs/support/troubleshooting.md +1 -1
- package/chunks/agent-SRAIVZEE.js +3 -0
- package/chunks/agent-headless-XRDOZESG.js +3 -0
- package/chunks/{anthropicContentGenerator-IYZILRDW.js → anthropicContentGenerator-LLDIKDMQ.js} +3 -3
- package/chunks/{askUserQuestion-XWHJY3DM.js → askUserQuestion-BNSWGD26.js} +1 -1
- package/chunks/{ca-EUJBUYX5.js → ca-NPYL24ME.js} +2 -2
- package/chunks/{chunk-4YVN5HXG.js → chunk-27HUYW23.js} +2 -2
- package/chunks/{chunk-MH2P4YXC.js → chunk-27Q5KW3A.js} +2 -2
- package/chunks/{chunk-NYEWHSBL.js → chunk-2HTPVSGT.js} +1 -1
- package/chunks/{chunk-EQGA7LH7.js → chunk-3B2HABK7.js} +1 -1
- package/chunks/chunk-3MTZTNAU.js +101 -0
- package/chunks/{chunk-WHG6N5X2.js → chunk-5OHGYMKP.js} +1 -1
- package/chunks/{chunk-QH7736R5.js → chunk-6EQMZNIY.js} +1 -1
- package/chunks/chunk-6I6VGTKD.js +8 -0
- package/chunks/{chunk-5427BPR2.js → chunk-6M5G5FBH.js} +1 -1
- package/chunks/{chunk-4FVBPNTZ.js → chunk-6T2GIM76.js} +1 -1
- package/chunks/chunk-7ZODGQO6.js +4 -0
- package/chunks/chunk-AOOZREGV.js +9 -0
- package/chunks/{chunk-JXUDKX6D.js → chunk-DE3HKC2W.js} +1 -1
- package/chunks/chunk-DHDD5YJC.js +207 -0
- package/chunks/{chunk-SPW5DXX4.js → chunk-EZDV7A76.js} +1 -1
- package/chunks/{chunk-ODZOYHIC.js → chunk-GOJCMVJJ.js} +1 -1
- package/chunks/{chunk-FFFZ2QMG.js → chunk-GTVCJCHR.js} +1 -1
- package/chunks/{chunk-Q55AVE2N.js → chunk-IJEGHQ7Z.js} +11 -11
- package/chunks/{chunk-SUH3UUWZ.js → chunk-JCE3JAVC.js} +1 -1
- package/chunks/chunk-KHHJYBR5.js +9 -0
- package/chunks/{chunk-GO2GA2GY.js → chunk-LUNDTQ3G.js} +1 -1
- package/chunks/{chunk-NIQK6NX3.js → chunk-LWARA7JY.js} +1 -1
- package/chunks/{chunk-YMIF2DMT.js → chunk-MEV5XQI2.js} +1 -1
- package/chunks/{chunk-4CSSDBOS.js → chunk-P5TG5CON.js} +10 -10
- package/chunks/chunk-PEKAUGYV.js +2621 -0
- package/chunks/chunk-PGUG43HG.js +24 -0
- package/chunks/{chunk-ELH4YHJR.js → chunk-PGXQZVLX.js} +1 -1
- package/chunks/{chunk-SNLH42QJ.js → chunk-QZI2ZGZY.js} +1 -1
- package/chunks/chunk-RI54U73U.js +56 -0
- package/chunks/chunk-RPFSFS7Z.js +39 -0
- package/chunks/chunk-SOEIVSM5.js +113 -0
- package/chunks/{chunk-4J6DC24J.js → chunk-SVSY6AWS.js} +1 -1
- package/chunks/{chunk-T4P4KEDW.js → chunk-TWJLOEAI.js} +2 -2
- package/chunks/{chunk-HYVP4472.js → chunk-V6UPUMP3.js} +1 -1
- package/chunks/chunk-W4QSMIWO.js +9 -0
- package/chunks/chunk-WC2VTVCE.js +27 -0
- package/chunks/{chunk-GUFIMKF5.js → chunk-YV3PUOBU.js} +1 -1
- package/chunks/chunk-ZX34M2GF.js +14 -0
- package/chunks/{computer-use-SXP25RZQ.js → computer-use-J4GAM4M6.js} +1 -1
- package/chunks/contextCommand-5F5M7NA4.js +3 -0
- package/chunks/{cron-create-2UI4AT4Q.js → cron-create-IDWSZENI.js} +1 -1
- package/chunks/{cron-delete-ZB6BOTFF.js → cron-delete-NQCDZDUI.js} +1 -1
- package/chunks/{cron-list-YYAXNHB6.js → cron-list-Z4XMC3TO.js} +1 -1
- package/chunks/{de-DNEPG7S7.js → de-34YZHGC6.js} +3 -3
- package/chunks/{devtools-5JRKK3E7.js → devtools-XRQ4YJ5S.js} +1 -1
- package/chunks/{dist-P6SLWL5V.js → dist-PH6JW7XD.js} +1 -1
- package/chunks/edit-X2S2ZXRN.js +43 -0
- package/chunks/{en-NOD6KQNM.js → en-QLGMD6OS.js} +3 -3
- package/chunks/{enter-worktree-X47BSJLE.js → enter-worktree-TUCGNCLO.js} +1 -1
- package/chunks/{enterPlanMode-F22ZNTYJ.js → enterPlanMode-SQEZAAIR.js} +1 -1
- package/chunks/{exit-worktree-XY5UMDHX.js → exit-worktree-7FLITFZI.js} +1 -1
- package/chunks/exitPlanMode-O5UUJ3GM.js +120 -0
- package/chunks/{fr-2OE5WLJ4.js → fr-EDNBQACJ.js} +3 -3
- package/chunks/geminiContentGenerator-FIZFLPU3.js +8 -0
- package/chunks/glob-GSFTYAS2.js +22 -0
- package/chunks/{goal-tools-6QTC3UI7.js → goal-tools-YQOA6OKU.js} +1 -1
- package/chunks/{grep-6TTPZ524.js → grep-VAB2VSXM.js} +1 -1
- package/chunks/{ja-3B6V5KS7.js → ja-LV4RLM3M.js} +3 -3
- package/chunks/{keychain-token-storage-54BNK6VH.js → keychain-token-storage-KQK6MNOJ.js} +1 -1
- package/chunks/{ls-YWZU3FYL.js → ls-IZJ3CKZY.js} +1 -1
- package/chunks/{lsp-4CJDKEEC.js → lsp-NGLDRHZU.js} +1 -1
- package/chunks/matildaAgentContentGenerator-QQHPCFJ5.js +8 -0
- package/chunks/matildaContentGenerator-W7Z33ONU.js +8 -0
- package/chunks/{matildaOAuth2-WOY7ZS43.js → matildaOAuth2-7COTQQR2.js} +1 -1
- package/chunks/mcp-client-DXUNIEIB.js +3 -0
- package/chunks/monitor-4PFIGAGG.js +32 -0
- package/chunks/notebook-edit-MWJYAATJ.js +17 -0
- package/chunks/{openaiContentGenerator-MGASUFQL.js → openaiContentGenerator-NDVJL6QL.js} +1 -1
- package/chunks/{pt-KP2JCPUY.js → pt-5SQ4DGL7.js} +3 -3
- package/chunks/read-file-WPZKPXWA.js +3 -0
- package/chunks/ripGrep-7LZDZFTX.js +3 -0
- package/chunks/{ru-K7IQQKHC.js → ru-7K24S53N.js} +3 -3
- package/chunks/scheduler-DK2MVKXX.js +8 -0
- package/chunks/{send-message-OO2HAKCC.js → send-message-TCPX5UDU.js} +1 -1
- package/chunks/{serve-ZQX2WBLF.js → serve-GSZPJI2O.js} +59 -48
- package/chunks/shell-PRS47PDP.js +3 -0
- package/chunks/{skill-KDM3UUML.js → skill-ETQM5NI3.js} +1 -1
- package/chunks/src-UB7DZRYK.js +3 -0
- package/chunks/{symbol-search-ALYOX5JN.js → symbol-search-HARHZ5AH.js} +1 -1
- package/chunks/{syntheticOutput-UASKABJH.js → syntheticOutput-WZDPECYS.js} +1 -1
- package/chunks/task-create-XRNIDT4T.js +3 -0
- package/chunks/{task-detach-I67ZE5MX.js → task-detach-TBAVUOTC.js} +1 -1
- package/chunks/task-list-Z6BDZZID.js +9 -0
- package/chunks/{task-stop-ERI5X4AO.js → task-stop-HDSARSJ6.js} +1 -1
- package/chunks/{task-update-CD3W556L.js → task-update-MW2VT2XV.js} +1 -1
- package/chunks/{team-create-F4KQRGMB.js → team-create-VMYNLZCC.js} +1 -1
- package/chunks/team-delete-F7QDC2TE.js +8 -0
- package/chunks/todoWrite-SCF5M24M.js +3 -0
- package/chunks/{tool-search-JFCD5W5M.js → tool-search-WX6FOE35.js} +1 -1
- package/chunks/tree-sitter-bash-2SWKO5B7.js +3 -0
- package/chunks/{web-fetch-REWGIRWQ.js → web-fetch-CKYBHGLF.js} +13 -13
- package/chunks/{web-search-OX2DPEVN.js → web-search-67DFNS5V.js} +1 -1
- package/chunks/{workflow-SEFYGBED.js → workflow-WBSRQG3N.js} +2 -2
- package/chunks/write-file-S5FAX4JJ.js +15 -0
- package/cli.js +462 -455
- package/locales/ca.js +1 -3
- package/locales/de.js +1 -3
- package/locales/en.js +1 -3
- package/locales/fr.js +1 -3
- package/locales/ja.js +1 -3
- package/locales/pt.js +1 -3
- package/locales/ru.js +1 -3
- package/package.json +2 -2
- package/sandbox-macos-permissive-closed.sb +0 -1
- package/sandbox-macos-permissive-open.sb +0 -1
- package/sandbox-macos-permissive-proxied.sb +0 -1
- package/sandbox-macos-restrictive-closed.sb +3 -1
- package/sandbox-macos-restrictive-open.sb +3 -1
- package/sandbox-macos-restrictive-proxied.sb +3 -1
- package/bundled/mainy/docs/features/channels/dingtalk.md +0 -134
- package/bundled/mainy/docs/features/channels/feishu.md +0 -186
- package/bundled/mainy/docs/features/channels/weixin.md +0 -106
- package/chunks/agent-ZFZ4HJQC.js +0 -3
- package/chunks/agent-headless-KH2BKLP7.js +0 -3
- package/chunks/chunk-25NCTG5H.js +0 -184
- package/chunks/chunk-2HQMJ2IU.js +0 -8
- package/chunks/chunk-6GBNB5Z2.js +0 -3
- package/chunks/chunk-GHBKFIHC.js +0 -35
- package/chunks/chunk-HWOQNYAO.js +0 -27
- package/chunks/chunk-LJR4RZZ2.js +0 -3
- package/chunks/chunk-NVM7W7TG.js +0 -101
- package/chunks/chunk-PA6532AY.js +0 -6
- package/chunks/chunk-QFNFLE2I.js +0 -2625
- package/chunks/chunk-QN6WSWMM.js +0 -9
- package/chunks/chunk-RK2AKQAX.js +0 -39
- package/chunks/chunk-U347OO7S.js +0 -9
- package/chunks/chunk-UIRBHC5X.js +0 -3
- package/chunks/chunk-W5CGKUM4.js +0 -15
- package/chunks/chunk-WRQLIPXW.js +0 -113
- package/chunks/chunk-WVY2P6WH.js +0 -26
- package/chunks/chunk-WZ75OGYY.js +0 -14
- package/chunks/chunk-XCFLI3OC.js +0 -9
- package/chunks/chunk-XMZIY7XX.js +0 -13
- package/chunks/contextCommand-3GN5CAOK.js +0 -3
- package/chunks/dist-ME6647DQ.js +0 -195
- package/chunks/dist-VG3ZDJ2A.js +0 -28
- package/chunks/dist-YTCHM57U.js +0 -23
- package/chunks/edit-KX6V4PH3.js +0 -39
- package/chunks/exitPlanMode-G3QLIWJ4.js +0 -90
- package/chunks/geminiContentGenerator-EQEGOXOV.js +0 -8
- package/chunks/glob-KSBEWI3E.js +0 -22
- package/chunks/matildaAgentContentGenerator-OV4U6DJD.js +0 -8
- package/chunks/matildaContentGenerator-ETIAWE22.js +0 -8
- package/chunks/monitor-F4K5HOZX.js +0 -32
- package/chunks/notebook-edit-TL7CI5EA.js +0 -17
- package/chunks/read-file-6EAPS2KG.js +0 -3
- package/chunks/ripGrep-K6SFFUIE.js +0 -3
- package/chunks/scheduler-TKWPD4LP.js +0 -8
- package/chunks/shell-AZRK5GIO.js +0 -3
- package/chunks/src-SGI6VLOS.js +0 -3
- package/chunks/task-create-EBJD55TB.js +0 -3
- package/chunks/task-list-5BGX4G5N.js +0 -9
- package/chunks/team-delete-5U3GBFKJ.js +0 -8
- package/chunks/todoWrite-YGG6AZ3A.js +0 -3
- package/chunks/tree-sitter-bash-XNCMPQBK.js +0 -3
- package/chunks/write-file-UAGVBZMC.js +0 -15
|
@@ -27,4 +27,4 @@ ${n}`;break}case"followup":break;default:{let l=v;throw new Error(`Unknown dispa
|
|
|
27
27
|
Ask the bot operator to approve you with:
|
|
28
28
|
matilda channel pairing approve ${this.name} ${t}`):await this.sendMessage(e,"Too many pending pairing requests. Please try again later.")}};d();d();import{spawn as V}from"node:child_process";import{Readable as Z,Writable as ee}from"node:stream";import{EventEmitter as te}from"node:events";var q=class extends te{child=null;connection=null;options;_availableCommands=[];constructor(e){super(),this.options=e}get availableCommands(){return this._availableCommands}async start(){let{cliEntryPath:e,cwd:t}=this.options,s=[...process.execArgv.filter(r=>!/^--inspect(-brk)?($|=)/.test(r)),e,"--acp"];if(this.options.model&&s.push("--model",this.options.model),this.child=V(process.execPath,s,{cwd:t,stdio:["pipe","pipe","pipe"],env:{...process.env},shell:!1}),this.child.stderr?.on("data",r=>{let a=r.toString().trim();a&&process.stderr.write(`[AcpBridge] ${a}
|
|
29
29
|
`)}),this.child.on("exit",(r,a)=>{process.stderr.write(`[AcpBridge] Process exited (code=${r}, signal=${a})
|
|
30
|
-
`),this.connection=null,this.child=null,this.emit("disconnected",r,a)}),await new Promise(r=>setTimeout(r,1e3)),!this.child||this.child.killed)throw new Error("ACP process failed to start");let o=Z.toWeb(this.child.stdout),i=ee.toWeb(this.child.stdin),n=D(i,o);this.connection=new U(()=>({sessionUpdate:r=>(this.handleSessionUpdate(r),Promise.resolve()),requestPermission:async r=>{let a=Array.isArray(r.options)?r.options:[];return{outcome:{outcome:"selected",optionId:a.find(v=>v.optionId==="proceed_once")?.optionId||a[0]?.optionId||"proceed_once"}}},extNotification:async()=>{}}),n),await this.connection.initialize({protocolVersion:B,clientCapabilities:{}})}async newSession(e){return(await this.ensureConnection().newSession({cwd:e,mcpServers:[]})).sessionId}async loadSession(e,t){return await this.ensureConnection().loadSession({sessionId:e,cwd:t,mcpServers:[]}),e}async prompt(e,t,s){let o=this.ensureConnection(),i=[],n=(a,f)=>{a===e&&i.push(f)};this.on("textChunk",n);let r=[];s?.imageBase64&&s.imageMimeType&&r.push({type:"image",data:s.imageBase64,mimeType:s.imageMimeType}),r.push({type:"text",text:t});try{await o.prompt({sessionId:e,prompt:r})}finally{this.off("textChunk",n)}return i.join("")}async cancelSession(e){await this.ensureConnection().cancel({sessionId:e})}stop(){this.child&&(this.child.kill(),this.child=null),this.connection=null}get isConnected(){return this.child!==null&&!this.child.killed&&this.child.exitCode===null}handleSessionUpdate(e){let{sessionId:t}=e,s=e.update;if(!s)return;switch(s.sessionUpdate){case"agent_message_chunk":{let i=s.content;i?.type==="text"&&i.text&&this.emit("textChunk",t,i.text);break}case"tool_call":{let i={sessionId:t,toolCallId:s.toolCallId,kind:s.kind||"",title:s.title||"",status:s.status||"pending",rawInput:s.rawInput};this.emit("toolCall",i);break}case"available_commands_update":{Array.isArray(s.availableCommands)&&(this._availableCommands=s.availableCommands);break}default:break}this.emit("sessionUpdate",e)}ensureConnection(){if(!this.connection||!this.isConnected)throw new Error("Not connected to ACP agent");return this.connection}};d();export{O as a,
|
|
30
|
+
`),this.connection=null,this.child=null,this.emit("disconnected",r,a)}),await new Promise(r=>setTimeout(r,1e3)),!this.child||this.child.killed)throw new Error("ACP process failed to start");let o=Z.toWeb(this.child.stdout),i=ee.toWeb(this.child.stdin),n=D(i,o);this.connection=new U(()=>({sessionUpdate:r=>(this.handleSessionUpdate(r),Promise.resolve()),requestPermission:async r=>{let a=Array.isArray(r.options)?r.options:[];return{outcome:{outcome:"selected",optionId:a.find(v=>v.optionId==="proceed_once")?.optionId||a[0]?.optionId||"proceed_once"}}},extNotification:async()=>{}}),n),await this.connection.initialize({protocolVersion:B,clientCapabilities:{}})}async newSession(e){return(await this.ensureConnection().newSession({cwd:e,mcpServers:[]})).sessionId}async loadSession(e,t){return await this.ensureConnection().loadSession({sessionId:e,cwd:t,mcpServers:[]}),e}async prompt(e,t,s){let o=this.ensureConnection(),i=[],n=(a,f)=>{a===e&&i.push(f)};this.on("textChunk",n);let r=[];s?.imageBase64&&s.imageMimeType&&r.push({type:"image",data:s.imageBase64,mimeType:s.imageMimeType}),r.push({type:"text",text:t});try{await o.prompt({sessionId:e,prompt:r})}finally{this.off("textChunk",n)}return i.join("")}async cancelSession(e){await this.ensureConnection().cancel({sessionId:e})}stop(){this.child&&(this.child.kill(),this.child=null),this.connection=null}get isConnected(){return this.child!==null&&!this.child.killed&&this.child.exitCode===null}handleSessionUpdate(e){let{sessionId:t}=e,s=e.update;if(!s)return;switch(s.sessionUpdate){case"agent_message_chunk":{let i=s.content;i?.type==="text"&&i.text&&this.emit("textChunk",t,i.text);break}case"tool_call":{let i={sessionId:t,toolCallId:s.toolCallId,kind:s.kind||"",title:s.title||"",status:s.status||"pending",rawInput:s.rawInput};this.emit("toolCall",i);break}case"available_commands_update":{Array.isArray(s.availableCommands)&&(this._availableCommands=s.availableCommands);break}default:break}this.emit("sessionUpdate",e)}ensureConnection(){if(!this.connection||!this.isConnected)throw new Error("Not connected to ACP agent");return this.connection}};d();export{O as a,q as b,I as c,x as d,A as e};
|