@maincode-ai/matilda-code 0.22.2 → 0.22.3-nightly.20261110.cb1234773
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/README.md +1 -1
- package/chunks/agent-7LLN72GU.js +3 -0
- package/chunks/agent-headless-APBRBFN3.js +3 -0
- package/chunks/{askUserQuestion-DHYKAZWH.js → askUserQuestion-76LPP5ST.js} +1 -1
- package/chunks/{chunk-MZ73LBEY.js → chunk-3EQIOCSJ.js} +1 -1
- package/chunks/chunk-4SDFTVQW.js +62 -0
- package/chunks/chunk-B7BF33U4.js +31 -0
- package/chunks/chunk-BEP4F3GO.js +2556 -0
- package/chunks/chunk-DERMLVT6.js +68 -0
- package/chunks/{chunk-OWEBLTAN.js → chunk-EEPSTT7K.js} +1 -1
- package/chunks/{chunk-OF7ORAN6.js → chunk-GDRS4OWI.js} +71 -67
- package/chunks/chunk-HK3QQSM7.js +18 -0
- package/chunks/{chunk-PFXCFIHY.js → chunk-J6NYCXUR.js} +1 -1
- package/chunks/chunk-JVQHQDDE.js +10 -0
- package/chunks/chunk-JZMGEGR6.js +12 -0
- package/chunks/{chunk-HJK3NKAR.js → chunk-M5ABGGE7.js} +1 -1
- package/chunks/chunk-N3AQRPV5.js +207 -0
- package/chunks/{chunk-DZKI2CAC.js → chunk-NO6BFSGG.js} +1 -1
- package/chunks/chunk-QKAKC34Q.js +8 -0
- package/chunks/{chunk-VWM3GUBH.js → chunk-QUITDDTB.js} +1 -1
- package/chunks/{chunk-ZUQRP3N6.js → chunk-R373GBK6.js} +1 -1
- package/chunks/{chunk-BS7Q7KA6.js → chunk-T6MRYRLI.js} +1 -1
- package/chunks/{chunk-REUZDMLM.js → chunk-TVNM3PQ7.js} +25 -25
- package/chunks/chunk-VBZS7ARJ.js +8 -0
- package/chunks/{chunk-FY3LL4OC.js → chunk-VNSW4TSX.js} +1 -1
- package/chunks/{chunk-HRD7WD3P.js → chunk-WAZCC4SE.js} +1 -1
- package/chunks/chunk-YUCEPXGG.js +12 -0
- package/chunks/{computer-use-5T3ZH24D.js → computer-use-RIDTFLYZ.js} +5 -17
- package/chunks/cron-create-T5QOBRRU.js +38 -0
- package/chunks/cron-delete-JXDOHSJF.js +3 -0
- package/chunks/cron-list-ZQ76A2FW.js +5 -0
- package/chunks/{edit-Y7YSDGLT.js → edit-LDTYXEVU.js} +1 -1
- package/chunks/en-SCZAH2YB.js +23 -0
- package/chunks/{enter-worktree-5ZGIYDUE.js → enter-worktree-FOFQXTPW.js} +1 -1
- package/chunks/enterPlanMode-2GHHILQY.js +18 -0
- package/chunks/{exit-worktree-3F5UY76U.js → exit-worktree-OK7AD7DC.js} +1 -1
- package/chunks/{exitPlanMode-HWK5EUVS.js → exitPlanMode-EANVOWTX.js} +30 -27
- package/chunks/{glob-H7DNNPJ4.js → glob-VZD7TOML.js} +1 -1
- package/chunks/{goal-tools-CJINJJ3Y.js → goal-tools-REBEAKVP.js} +1 -1
- package/chunks/{grep-5MCMGW6A.js → grep-JPEHWEM3.js} +1 -1
- package/chunks/ls-EP4ZVFNW.js +15 -0
- package/chunks/{lsp-Y46R5DO5.js → lsp-ULZTGWC4.js} +1 -1
- package/chunks/monitor-5WDGSYNZ.js +33 -0
- package/chunks/notebook-edit-W42S562V.js +17 -0
- package/chunks/openaiContentGenerator-QLDLWN4P.js +52 -0
- package/chunks/read-file-4M76GCWT.js +3 -0
- package/chunks/ripGrep-LF2E2V6N.js +3 -0
- package/chunks/scheduler-G4LEIBL4.js +8 -0
- package/chunks/send-message-TDOMZHNJ.js +8 -0
- package/chunks/shell-NUMSSUOV.js +3 -0
- package/chunks/{skill-5EMGSWRM.js → skill-IVESDHGG.js} +1 -1
- package/chunks/symbol-search-BLJAKP7C.js +19 -0
- package/chunks/syntheticOutput-5SCRQCXN.js +3 -0
- package/chunks/task-create-T4DIVG5X.js +3 -0
- package/chunks/task-detach-ES3IMGJ4.js +9 -0
- package/chunks/task-list-LYK4TOBS.js +9 -0
- package/chunks/{task-stop-OEAEE5R7.js → task-stop-FETAYKFU.js} +1 -1
- package/chunks/{task-update-4ANRU74G.js → task-update-I6PVT46S.js} +1 -1
- package/chunks/{team-create-G4N2NCFN.js → team-create-QQD472XN.js} +1 -1
- package/chunks/team-delete-P5F32IYK.js +8 -0
- package/chunks/todoWrite-ADAGHJLI.js +3 -0
- package/chunks/tool-call-W6PAJOF6.js +3 -0
- package/chunks/tool-search-LGTQYGTC.js +26 -0
- package/chunks/{web-fetch-VA2BZ4VR.js → web-fetch-5X37JMDH.js} +1 -1
- package/chunks/{web-search-OVFXJQDS.js → web-search-62YZTP3D.js} +1 -1
- package/chunks/{workflow-6VMVM5BG.js → workflow-OT4I6TMY.js} +2 -2
- package/chunks/write-file-GMIHG7AP.js +15 -0
- package/cli.js +472 -486
- package/locales/en.js +45 -113
- package/npm-postinstall.js +2 -2
- package/package.json +2 -2
- package/chunks/agent-IJOGVY62.js +0 -3
- package/chunks/agent-headless-FZGKJCVK.js +0 -3
- package/chunks/ca-HHQCT6S2.js +0 -23
- package/chunks/chunk-225CZWD7.js +0 -89
- package/chunks/chunk-3BT7ZYAM.js +0 -121
- package/chunks/chunk-3IG6LNQ3.js +0 -2581
- package/chunks/chunk-46FFWNRO.js +0 -12
- package/chunks/chunk-55YW6EUC.js +0 -8
- package/chunks/chunk-BQDEPKIG.js +0 -46
- package/chunks/chunk-E2KMVG7F.js +0 -8
- package/chunks/chunk-FPGKJJJY.js +0 -13
- package/chunks/chunk-L2FKLLEC.js +0 -12
- package/chunks/chunk-N2BE647T.js +0 -10
- package/chunks/chunk-P24OL22U.js +0 -31
- package/chunks/chunk-VWE5BSHV.js +0 -56
- package/chunks/chunk-WL27X35X.js +0 -44
- package/chunks/cron-create-5RRFCP36.js +0 -38
- package/chunks/cron-delete-7DTRWCSV.js +0 -3
- package/chunks/cron-list-HY6XJD7D.js +0 -5
- package/chunks/de-MJBGC47E.js +0 -23
- package/chunks/en-JITX7JKV.js +0 -23
- package/chunks/enterPlanMode-TWD4MXCW.js +0 -18
- package/chunks/fr-WT3R2JCR.js +0 -23
- package/chunks/ja-OEXP6Z3S.js +0 -23
- package/chunks/keychain-token-storage-BCODB632.js +0 -3
- package/chunks/ls-JORGCXES.js +0 -15
- package/chunks/mcp-client-54J5M542.js +0 -3
- package/chunks/monitor-BRJR6PR3.js +0 -32
- package/chunks/notebook-edit-UCCVQ4JP.js +0 -17
- package/chunks/openaiContentGenerator-H6JOS3XU.js +0 -52
- package/chunks/pt-PCVIFK7H.js +0 -23
- package/chunks/read-file-LVMBCRCT.js +0 -3
- package/chunks/ripGrep-F6AJSDKU.js +0 -3
- package/chunks/ru-CB5SIZZM.js +0 -23
- package/chunks/scheduler-XAOD6LG6.js +0 -8
- package/chunks/send-message-VY4DP63A.js +0 -8
- package/chunks/shell-QUDC6MJK.js +0 -3
- package/chunks/symbol-search-YNGX4Z5T.js +0 -19
- package/chunks/syntheticOutput-4JANVS4D.js +0 -3
- package/chunks/task-create-NRBVXURQ.js +0 -3
- package/chunks/task-detach-VHDDAO2K.js +0 -9
- package/chunks/task-list-T2IET466.js +0 -9
- package/chunks/team-delete-M4ORNSTT.js +0 -8
- package/chunks/todoWrite-RN2OP46T.js +0 -3
- package/chunks/tool-search-WEUURHFZ.js +0 -28
- package/chunks/write-file-5ZAZVXBB.js +0 -15
- package/locales/ca.js +0 -1895
- package/locales/de.js +0 -1935
- package/locales/fr.js +0 -1936
- package/locales/ja.js +0 -1698
- package/locales/pt.js +0 -1921
- package/locales/ru.js +0 -1911
package/chunks/chunk-E2KMVG7F.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import{l as i}from"./chunk-HJK3NKAR.js";import{b as o}from"./chunk-GZPNIYVZ.js";o();import l from"node:path";function d(t,n){if(t.getApprovalMode()!=="bogan")return null;let r=l.resolve(n),s=t.getProjectRoot?.()??t.getTargetDir();if(i(r,s))return null;let e=t.getWorkspaceContext?.();if(!e||(typeof e.isPathWithinWorkspaceFresh=="function"?e.isPathWithinWorkspaceFresh(r):e.isPathWithinWorkspace(r)))return null;let a=e.getDirectories?.()??[t.getTargetDir()],p=t.getChannel?.()==="desktop"?"Approve the folder from Matilda Desktop, then retry the write.":"Use --include-directories to add extra roots, or a non-BOGAN approval mode for intentional external writes.";return`Refusing out-of-workspace write in BOGAN mode: ${r}. Workspace root(s): ${a.join(", ")}. This blocks path typos (e.g. writing under $HOME when the project is elsewhere). `+p}export{d as a};
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright 2025 Matilda Team
|
|
7
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
-
*/
|
package/chunks/chunk-FPGKJJJY.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import{b as n}from"./chunk-GZPNIYVZ.js";n();n();var x="MATILDA_API_KEY";var d="matilda-code-1.0",l="Matilda",O="https://matilda.maincode.com/api/v1/code",g={id:"matilda",label:"Matilda",description:"Connect to the Matilda Core code API endpoint",protocol:"openai",baseUrl:O,envKey:x,models:[{id:d,displayName:l,contextWindowSize:1048576,description:"Matilda Code model",generationConfig:{openAIRequestProfile:"matilda-code",timeout:6e5,samplingParams:{max_tokens:65536,chat_template_kwargs:{enable_thinking:!0}},schemaCompliance:"openapi_30",splitToolMedia:!0,customHeaders:{"User-Agent":"MatildaCode/0.1"}}}],documentationUrl:"https://help.maincode.com/products/matilda/v1/en/authentication/manage-api-keys"};var b=d,v="text-embedding-v4";n();import{AsyncLocalStorage as D}from"node:async_hooks";import{randomUUID as f}from"node:crypto";n();import{AsyncLocalStorage as P}from"node:async_hooks";var m=new P;var A="x-matilda-reported-operation-id",E="x-matilda-reported-attempt-purpose",y=[A,E],I=new Set(y),C=["answer","tool_followup","continuation","retry","compaction","unknown"],M=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,L=new Set(C),c=new D,_=new WeakSet;function T(){return f()}function a(t,e){let o=Object.freeze({operationId:t,attemptPurpose:e});return _.add(o),o}function q(t){return I.has(t.toLowerCase())}function s(){let t=c.getStore();return t&&_.has(t)?t:void 0}var R=class{activeOperationId;begin(e){return this.activeOperationId=T(),a(this.activeOperationId,e)}continue(e){let o=s()?.operationId??this.activeOperationId??T();return this.activeOperationId=o,a(o,e)}};function p(t,e){return c.run(t,e)}function z(t){c.enterWith(t)}function B(t,e){let o=s();return o?p(a(o.operationId,t),e):e()}function h(t,e){let o={next:(...r)=>p(t,()=>e.next(...r)),return:r=>p(t,()=>e.return(r)),throw:r=>p(t,()=>e.throw(r)),[Symbol.asyncIterator]:()=>o},i=Symbol.asyncDispose,u=i&&e[i];return i&&typeof u=="function"&&(o[i]=()=>p(t,()=>u.call(e))),o}function F(t,e){let o=s();return o?h(a(o.operationId,t),e):e}function V(){let t=s();if(!t||!M.test(t.operationId))return{};let e=m.getStore()?.attempt,o=e!==void 0&&e>1?"retry":t.attemptPurpose;return L.has(o)?{[A]:t.operationId,[E]:o}:{}}export{m as a,A as b,E as c,y as d,q as e,s as f,R as g,p as h,z as i,B as j,h as k,F as l,V as m,x as n,d as o,l as p,O as q,g as r,b as s,v as t};
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright 2026 Matilda Team
|
|
7
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2025 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
13
|
-
*/
|
package/chunks/chunk-L2FKLLEC.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import{j as i,s as c}from"./chunk-FPGKJJJY.js";import{d as l}from"./chunk-P24OL22U.js";import{b as g}from"./chunk-GZPNIYVZ.js";g();import{readFile as y}from"node:fs/promises";function S(t){return t?`side-query:${t}`:"side-query"}function T(t,e){return e??t.getFastModel?.()??t.getModel()??c}function x(t){let e=t?.thinkingConfig;return{...t??{},thinkingConfig:e?{includeThoughts:!1,...e}:{includeThoughts:!1}}}async function h(t){let e=t.getOutputLanguageFilePath?.();if(e)try{let n=(await y(e,"utf8")).trim();return n?["Follow the user-visible output language preference below for this side query.",n].join(`
|
|
4
|
-
|
|
5
|
-
`):void 0}catch{return}}function C(t,e){return e?t===void 0?e:typeof t=="string"?`${t}
|
|
6
|
-
|
|
7
|
-
${e}`:Array.isArray(t)?[...t,{text:e}]:typeof t=="object"&&"parts"in t&&Array.isArray(t.parts)?{...t,parts:[...t.parts,{text:e}]}:[t,{text:e}]:t}function R(t){return t.schema!==void 0&&t.schema!==null}async function A(t,e){let n=T(t,e.model),o=e.promptId??S(e.purpose),s=x(e.config),a=C(e.systemInstruction,await h(t)),u=e.purpose==="chat-compression"?"compaction":"unknown";if(R(e)){let r=await i(u,()=>t.getBaseLlmClient().generateJson({contents:e.contents,schema:e.schema,abortSignal:e.abortSignal,model:n,systemInstruction:a,promptId:o,config:s,...e.maxAttempts!==void 0&&{maxAttempts:e.maxAttempts}})),f=l.validate(e.schema,r);if(f)throw new Error(`Invalid side query response: ${f}`);let m=e.validate?.(r);if(m)throw new Error(m);return r}let p=await i(u,()=>t.getBaseLlmClient().generateText({contents:e.contents,model:n,systemInstruction:a,abortSignal:e.abortSignal,promptId:o,config:s,...e.maxAttempts!==void 0&&{maxAttempts:e.maxAttempts},...e.stream&&{stream:!0}})),d=e.validate?.(p.text);if(d)throw new Error(d);return p}export{A as a};
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright 2025 Google LLC
|
|
11
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
*/
|
package/chunks/chunk-N2BE647T.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import{a as c}from"./chunk-V6UPUMP3.js";import{m as u}from"./chunk-P24OL22U.js";import{b as m}from"./chunk-GZPNIYVZ.js";m();import{AsyncLocalStorage as k}from"node:async_hooks";var a=new k,r=new WeakMap,p={turns:"max_turn_requests",session_turns:"max_turn_requests",loop_detected:"max_turn_requests",continuations:"max_turn_requests",session_tokens:"max_tokens"},h=class{jobs=new Map;joinsJobs;wake;closed=!1;keepsFinished=!1;revision=0;task;lastResponse;stop;ended;finished;constructor(e={}){this.joinsJobs=e.joinsJobs??!0}begin(e,t,s=e){this.task||(this.task={startUuid:e,rootUuid:s,recorder:t},this.ended&&this.finish(this.ended).catch(()=>{}))}get taskStartUuid(){return this.task?.startUuid}get taskRef(){return this.task?{startUuid:this.task.startUuid,rootUuid:this.task.rootUuid}:void 0}noteResponse(e){this.lastResponse=e}noteStop(e){this.stop=e}finish(e){let t=this.task;return t?(this.finished??=this.recordOutcome(t,e),this.finished):(this.ended??=e,Promise.resolve(void 0))}async recordOutcome(e,t){let s=this.stop&&(t.outcome==="completed"||t.outcome==="error")?p[this.stop]:t.outcome,i=s==="completed"&&this.lastResponse?.finalAnswer?this.lastResponse:void 0,n=t.limitKind??(s==="max_tokens"||s==="max_turn_requests"?this.stop:void 0);return await e.recorder.recordTaskOutcome({taskStartUuid:e.startUuid,outcome:s,...n?{limitKind:n}:{},...s==="completed"?{finalAnswerUuid:i?i.recordId??i.id:null}:{}}),{outcome:s,...i&&{finalAnswerId:i.id}}}static get current(){return a.getStore()}run(e){return a.run(this,e)}static detached(e){return a.run(void 0,e)}static register(e,t,s){let i=a.getStore();e.originTask??=s?.originTask??i?.taskRef;let n=s?.status==="running"?r.get(s):void 0,o=n??(i?.joinsJobs?i:void 0);if(o){if(n&&s&&n.consume(s),e.completion==="detached"||!n&&e.status!=="running"){o.changed();return}if(r.set(e,o),o.closed){t();return}o.jobs.set(e,t),o.changed()}}static changed(e){e&&r.get(e)?.changed()}static abandoned(e){return r.get(e)?.closed===!0}static detach(e){let t=r.get(e);return!t||t.closed||!t.owns(e)||e.status!=="running"?!1:(e.completion="detached",t.consume(e),t.changed(),!0)}owns(e){return this.jobs.has(e)}consume(e){r.delete(e),this.jobs.delete(e)}get pending(){return this.jobs.size>0}get position(){return this.revision}get paused(){return[...this.jobs.keys()].some(e=>e.status==="paused")}get running(){return[...this.jobs.keys()].filter(e=>e.status==="running")}changed(){this.revision++,this.wake?.()}async wait(e,t,s){this.closed||t.aborted||e!==this.revision||await new Promise(i=>{let n,o=()=>{clearTimeout(n),t.removeEventListener("abort",o),this.wake=void 0,i()};this.wake=o,t.addEventListener("abort",o,{once:!0}),s!==void 0&&(n=setTimeout(o,s))})}keepFinishedJobs(){this.keepsFinished=!0}close(){this.closed=!0;for(let[e,t]of this.jobs)e.status==="running"?t():this.keepsFinished&&e.status!=="paused"&&this.consume(e);this.changed()}};function g(d,e){let t=s=>{let i=s.description.replace(/[\p{Cc}\s]+/gu," ").trim(),n=Math.max(1,Math.round((e-s.startTime)/6e4));return`background ${s.kind} "${i.length>80?`${i.slice(0,77)}...`:i}" (running ${n} min)`};return{displayText:`Still waiting on ${d.map(t).join(", ")}.`,modelText:d.map(s=>["<task-notification>",`<task-id>${c(s.id)}</task-id>`,`<kind>${s.kind}</kind>`,"<status>running</status>",`<summary>${c(`The ${t(s)} is still running, and this request cannot finish until it does. If the request needs its result, keep waiting. If it should keep running after the request, such as a server or watcher, call ${u.TASK_DETACH}. If it is no longer needed, call ${u.TASK_STOP}.`)}</summary>`,"</task-notification>"].join(`
|
|
4
|
-
`)).join(`
|
|
5
|
-
`)}}export{h as a,g as b};
|
|
6
|
-
/**
|
|
7
|
-
* @license
|
|
8
|
-
* Copyright 2026 Matilda
|
|
9
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
-
*/
|