@maincode-ai/matilda-code 0.21.10-preview.1 → 0.21.11

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 (75) hide show
  1. package/bundled/mainy/docs/configuration/settings.md +1 -1
  2. package/bundled/mainy/docs/matilda-serve.md +6 -6
  3. package/chunks/{agent-XXSEYARS.js → agent-ZFZ4HJQC.js} +1 -1
  4. package/chunks/{agent-headless-YBWTAFUH.js → agent-headless-KH2BKLP7.js} +1 -1
  5. package/chunks/{ca-H4HPSGTI.js → ca-EUJBUYX5.js} +1 -1
  6. package/chunks/{chunk-FRRBNNEB.js → chunk-25NCTG5H.js} +63 -54
  7. package/chunks/{chunk-WJO3QSBJ.js → chunk-4YVN5HXG.js} +2 -2
  8. package/chunks/{chunk-MKFQMX37.js → chunk-5427BPR2.js} +2 -2
  9. package/chunks/{chunk-GC2F575A.js → chunk-6GBNB5Z2.js} +1 -1
  10. package/chunks/{chunk-3HUM74NZ.js → chunk-EQGA7LH7.js} +2 -2
  11. package/chunks/{chunk-TO3ID3JW.js → chunk-GHBKFIHC.js} +2 -2
  12. package/chunks/{chunk-S4UT3QLV.js → chunk-HWOQNYAO.js} +1 -1
  13. package/chunks/chunk-M53RP3YP.js +31 -0
  14. package/chunks/{chunk-HOCFKXNJ.js → chunk-NIQK6NX3.js} +1 -1
  15. package/chunks/{chunk-4TQ7ABLG.js → chunk-NVM7W7TG.js} +17 -17
  16. package/chunks/{chunk-66NIIU2R.js → chunk-Q55AVE2N.js} +1 -1
  17. package/chunks/chunk-QFNFLE2I.js +2625 -0
  18. package/chunks/chunk-RK2AKQAX.js +39 -0
  19. package/chunks/chunk-T2T2UEPY.js +4 -0
  20. package/chunks/chunk-VI74YQQO.js +8 -0
  21. package/chunks/{chunk-YSIECQIZ.js → chunk-WRQLIPXW.js} +3 -3
  22. package/chunks/{computer-use-HX2LYMYD.js → computer-use-SXP25RZQ.js} +1 -1
  23. package/chunks/{contextCommand-W7DBC37U.js → contextCommand-3GN5CAOK.js} +1 -1
  24. package/chunks/{de-S7F37S4F.js → de-DNEPG7S7.js} +1 -1
  25. package/chunks/{dist-ZOFMYY3D.js → dist-ME6647DQ.js} +1 -1
  26. package/chunks/{dist-SCXU6QWY.js → dist-P6SLWL5V.js} +1 -1
  27. package/chunks/{dist-PVENOVGI.js → dist-VG3ZDJ2A.js} +1 -1
  28. package/chunks/{dist-N66KF4KX.js → dist-YTCHM57U.js} +1 -1
  29. package/chunks/{edit-HFUF2RN3.js → edit-KX6V4PH3.js} +1 -1
  30. package/chunks/{en-S6DMCJQZ.js → en-NOD6KQNM.js} +1 -1
  31. package/chunks/{enter-worktree-LFCL64PJ.js → enter-worktree-X47BSJLE.js} +1 -1
  32. package/chunks/{enterPlanMode-TREN7ULJ.js → enterPlanMode-F22ZNTYJ.js} +1 -1
  33. package/chunks/{exit-worktree-MH2J4P42.js → exit-worktree-XY5UMDHX.js} +1 -1
  34. package/chunks/{exitPlanMode-PQO3EFFT.js → exitPlanMode-G3QLIWJ4.js} +1 -1
  35. package/chunks/{fr-RFJP3KVL.js → fr-2OE5WLJ4.js} +1 -1
  36. package/chunks/{geminiContentGenerator-FE5UVAOZ.js → geminiContentGenerator-EQEGOXOV.js} +1 -1
  37. package/chunks/{glob-VZAYMEQA.js → glob-KSBEWI3E.js} +1 -1
  38. package/chunks/{goal-tools-JN27F5BA.js → goal-tools-6QTC3UI7.js} +1 -1
  39. package/chunks/{grep-2VT5TSRU.js → grep-6TTPZ524.js} +1 -1
  40. package/chunks/{ja-UTJHPL3M.js → ja-3B6V5KS7.js} +1 -1
  41. package/chunks/{matildaAgentContentGenerator-EYETUHCZ.js → matildaAgentContentGenerator-OV4U6DJD.js} +1 -1
  42. package/chunks/{matildaContentGenerator-IWKH3YC4.js → matildaContentGenerator-ETIAWE22.js} +1 -1
  43. package/chunks/{matildaOAuth2-GRS5K3D4.js → matildaOAuth2-WOY7ZS43.js} +1 -1
  44. package/chunks/{monitor-AMIVJKDL.js → monitor-F4K5HOZX.js} +1 -1
  45. package/chunks/{notebook-edit-BQUXXNEO.js → notebook-edit-TL7CI5EA.js} +1 -1
  46. package/chunks/{openaiContentGenerator-4M7WBW3G.js → openaiContentGenerator-MGASUFQL.js} +1 -1
  47. package/chunks/{pt-KXMOTADP.js → pt-KP2JCPUY.js} +1 -1
  48. package/chunks/{read-file-FNJZCMIZ.js → read-file-6EAPS2KG.js} +1 -1
  49. package/chunks/{ripGrep-UOEUWYVF.js → ripGrep-K6SFFUIE.js} +1 -1
  50. package/chunks/{ru-EWGWZPQH.js → ru-K7IQQKHC.js} +1 -1
  51. package/chunks/{scheduler-ASQLD6BW.js → scheduler-TKWPD4LP.js} +1 -1
  52. package/chunks/{serve-FIDAAJAB.js → serve-ZQX2WBLF.js} +31 -31
  53. package/chunks/{shell-S732E2W4.js → shell-AZRK5GIO.js} +1 -1
  54. package/chunks/{skill-VXNOQCSI.js → skill-KDM3UUML.js} +1 -1
  55. package/chunks/src-SGI6VLOS.js +3 -0
  56. package/chunks/{team-create-CXY3MRCE.js → team-create-F4KQRGMB.js} +1 -1
  57. package/chunks/{tool-search-AJ57WSJC.js → tool-search-JFCD5W5M.js} +1 -1
  58. package/chunks/{web-fetch-63M6GZQL.js → web-fetch-REWGIRWQ.js} +1 -1
  59. package/chunks/{workflow-55OAJ6XH.js → workflow-SEFYGBED.js} +2 -2
  60. package/chunks/{write-file-2TWXQRDB.js → write-file-UAGVBZMC.js} +1 -1
  61. package/cli.js +494 -489
  62. package/locales/ca.js +8 -2
  63. package/locales/de.js +9 -2
  64. package/locales/en.js +15 -8
  65. package/locales/fr.js +9 -2
  66. package/locales/ja.js +8 -2
  67. package/locales/pt.js +8 -2
  68. package/locales/ru.js +9 -2
  69. package/package.json +2 -2
  70. package/chunks/chunk-2W6MZZHZ.js +0 -39
  71. package/chunks/chunk-ESSYHTAZ.js +0 -8
  72. package/chunks/chunk-JSFA3NEP.js +0 -5
  73. package/chunks/chunk-TZIDSCTF.js +0 -31
  74. package/chunks/chunk-VVIJGBQK.js +0 -2615
  75. package/chunks/src-QZENX46P.js +0 -3
@@ -1,6 +1,6 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
- import{M as D,N as j,O as L,g as I,ia as W,na as _}from"./chunk-YSIECQIZ.js";import{b as m,e as w}from"./chunk-4J6DC24J.js";import{k as F,n as U}from"./chunk-SDTWBD62.js";import{q as b,s as $,t as x,u as O}from"./chunk-MH2P4YXC.js";import{b as G}from"./chunk-GZPNIYVZ.js";G();var X="2026-06-23",K="auto",z="instant",Y=12e4,h=18e4,Q=5e4,R=16e3,S=class extends Error{code="EMATILDA_STREAM_INCOMPLETE";constructor(){super("Matilda agent stream ended without an authoritative done signal."),this.name="MatildaAgentStreamProtocolError"}},Z=["Treat this as Matilda Code traffic.","Prefer the code specialist path for implementation, debugging, refactoring, tests, repo edits, and code review.","Use the fast instruct path for simple coordination, status, clarification, or non-code conversational replies.","Keep the response concise and action-oriented."].join(" "),q=["You are powering Matilda Code, an interactive terminal coding agent.","Matilda Code owns the local agent loop: codebase reads, edits, shell commands, approvals, memory, subagents, skills, and MCP tools run through the CLI.","Use the conversation context and tool results as facts. Do not claim to have inspected files, run commands, or edited code unless that action appears in the provided context.",`When the user gives a vague starter such as "let's code" without a concrete development task, ask a concise clarifying question instead of inventing an app or dumping code.`].join(" ");function ee(n){let e=(n||"https://matilda.maincode.com/api/v1").trim().replace(/\/+$/,"");return/\/api\/v1$/i.test(e)?e.replace(/\/api\/v1$/i,"/api"):/\/api$/i.test(e)?e:`${e}/api`}function y(n){try{let e=JSON.parse(n);return e&&typeof e=="object"?e:void 0}catch{return}}var te="Your message was blocked by our content safety system.";function ne(n){let e=y(n);if(!e||e.error!=="content_blocked")return;let t=Array.isArray(e.categories)?e.categories.filter(o=>typeof o=="string"):[],s=typeof e.assistant_message=="string"&&e.assistant_message.trim().length>0?e.assistant_message:typeof e.message=="string"?e.message:te;return{categories:t,severity:typeof e.severity=="string"?e.severity:void 0,assistantMessage:s}}function u(n,e){let s=y(n)?.[e];return typeof s=="string"?s:void 0}function B(n){return P(n)}function P(n){return typeof n=="string"?n:Array.isArray(n)?n.map(e=>{if(typeof e=="string")return e;if(!e||typeof e!="object")return"";let t=e;return typeof t.text=="string"?t.text:t.image_url?"[image omitted: Matilda native chat accepts text only]":t.input_audio?"[audio omitted: Matilda native chat accepts text only]":t.file?"[file omitted: Matilda native chat accepts text only]":""}).filter(Boolean).join(`
3
+ import{M as D,N as j,O as L,g as I,ia as W,na as _}from"./chunk-WRQLIPXW.js";import{b as m,e as w}from"./chunk-4J6DC24J.js";import{k as F,n as U}from"./chunk-SDTWBD62.js";import{q as b,s as $,t as x,u as O}from"./chunk-MH2P4YXC.js";import{b as G}from"./chunk-GZPNIYVZ.js";G();var X="2026-06-23",K="auto",z="instant",Y=12e4,h=18e4,Q=5e4,R=16e3,S=class extends Error{code="EMATILDA_STREAM_INCOMPLETE";constructor(){super("Matilda agent stream ended without an authoritative done signal."),this.name="MatildaAgentStreamProtocolError"}},Z=["Treat this as Matilda Code traffic.","Prefer the code specialist path for implementation, debugging, refactoring, tests, repo edits, and code review.","Use the fast instruct path for simple coordination, status, clarification, or non-code conversational replies.","Keep the response concise and action-oriented."].join(" "),q=["You are powering Matilda Code, an interactive terminal coding agent.","Matilda Code owns the local agent loop: codebase reads, edits, shell commands, approvals, memory, subagents, skills, and MCP tools run through the CLI.","Use the conversation context and tool results as facts. Do not claim to have inspected files, run commands, or edited code unless that action appears in the provided context.",`When the user gives a vague starter such as "let's code" without a concrete development task, ask a concise clarifying question instead of inventing an app or dumping code.`].join(" ");function ee(n){let e=(n||"https://matilda.maincode.com/api/v1").trim().replace(/\/+$/,"");return/\/api\/v1$/i.test(e)?e.replace(/\/api\/v1$/i,"/api"):/\/api$/i.test(e)?e:`${e}/api`}function y(n){try{let e=JSON.parse(n);return e&&typeof e=="object"?e:void 0}catch{return}}var te="Your message was blocked by our content safety system.";function ne(n){let e=y(n);if(!e||e.error!=="content_blocked")return;let t=Array.isArray(e.categories)?e.categories.filter(o=>typeof o=="string"):[],s=typeof e.assistant_message=="string"&&e.assistant_message.trim().length>0?e.assistant_message:typeof e.message=="string"?e.message:te;return{categories:t,severity:typeof e.severity=="string"?e.severity:void 0,assistantMessage:s}}function u(n,e){let s=y(n)?.[e];return typeof s=="string"?s:void 0}function B(n){return P(n)}function P(n){return typeof n=="string"?n:Array.isArray(n)?n.map(e=>{if(typeof e=="string")return e;if(!e||typeof e!="object")return"";let t=e;return typeof t.text=="string"?t.text:t.image_url?"[image omitted: Matilda native chat accepts text only]":t.input_audio?"[audio omitted: Matilda native chat accepts text only]":t.file?"[file omitted: Matilda native chat accepts text only]":""}).filter(Boolean).join(`
4
4
  `):""}function f(n,e){if(n.length<=e)return n;let t=`
5
5
  [...omitted to fit Matilda native agent context...]
6
6
  `,s=e-t.length,o=Math.floor(s*.6),i=s-o;return`${n.slice(0,o)}${t}${n.slice(-i)}`}function se(n){return(n.candidates?.[0]?.content?.parts??[]).map(t=>typeof t=="string"?t:"thought"in t&&t.thought?"":"text"in t&&t.text||"").join("")}function oe(n){let e=y(n),t=typeof e?.output_tokens=="number"?e.output_tokens:void 0;if(t!==void 0)return{promptTokenCount:0,candidatesTokenCount:t,totalTokenCount:t,usageIsIncomplete:!0}}function C(n){return JSON.stringify(n).length}function ae(n){if(C(n)<=h)return n;let e=`