@maincode-ai/matilda-code 0.21.11-nightly.20261020.022e2cc37 → 0.21.11-preview.0
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-BU623AHW.js +3 -0
- package/chunks/agent-headless-T24DLERB.js +3 -0
- package/chunks/{anthropicContentGenerator-IYZILRDW.js → anthropicContentGenerator-VKFTAIU3.js} +1 -1
- package/chunks/{askUserQuestion-XWHJY3DM.js → askUserQuestion-2QI4NSFJ.js} +1 -1
- package/chunks/{chunk-MH2P4YXC.js → chunk-27Q5KW3A.js} +2 -2
- package/chunks/{chunk-NYEWHSBL.js → chunk-2HTPVSGT.js} +1 -1
- package/chunks/{chunk-2HQMJ2IU.js → chunk-2MOGYHWM.js} +1 -1
- package/chunks/{chunk-7R2762AQ.js → chunk-3WBC3IIX.js} +546 -544
- package/chunks/{chunk-T4P4KEDW.js → chunk-6E766NPX.js} +1 -1
- package/chunks/{chunk-QH7736R5.js → chunk-6EQMZNIY.js} +1 -1
- package/chunks/{chunk-BBFEZFSW.js → chunk-6RCVKDFR.js} +1 -1
- package/chunks/{chunk-4FVBPNTZ.js → chunk-6T2GIM76.js} +1 -1
- package/chunks/{chunk-FMT6S22S.js → chunk-AQQOBDEP.js} +11 -11
- package/chunks/{chunk-SNLH42QJ.js → chunk-CZGZ3KK7.js} +1 -1
- package/chunks/{chunk-JXUDKX6D.js → chunk-DE3HKC2W.js} +1 -1
- package/chunks/{chunk-XCFLI3OC.js → chunk-ET7ZXQ3A.js} +1 -1
- package/chunks/{chunk-QXOH5UM2.js → chunk-F62NM4KX.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-QGU4TQKH.js → chunk-I5H6ZXLS.js} +10 -10
- package/chunks/{chunk-25NCTG5H.js → chunk-JA43M5MZ.js} +53 -51
- package/chunks/{chunk-SUH3UUWZ.js → chunk-JCE3JAVC.js} +1 -1
- package/chunks/{chunk-QYVJEL6C.js → chunk-KLWMEGO4.js} +1 -1
- package/chunks/{chunk-GO2GA2GY.js → chunk-LUNDTQ3G.js} +1 -1
- package/chunks/{chunk-5427BPR2.js → chunk-MCQUPLRE.js} +1 -1
- package/chunks/{chunk-QN6WSWMM.js → chunk-MO2HXJG5.js} +1 -1
- package/chunks/{chunk-MP6D7B5B.js → chunk-P3G4HEXP.js} +2 -2
- package/chunks/{chunk-ELH4YHJR.js → chunk-PGXQZVLX.js} +1 -1
- package/chunks/{chunk-Y7O6DI35.js → chunk-PW3LFA6D.js} +1 -1
- package/chunks/{chunk-W5CGKUM4.js → chunk-S3CWEVTS.js} +1 -1
- package/chunks/{chunk-YMIF2DMT.js → chunk-VTGICC67.js} +1 -1
- package/chunks/{chunk-SPW5DXX4.js → chunk-WV3IUPZS.js} +1 -1
- package/chunks/chunk-WXCEBLRE.js +56 -0
- package/chunks/{chunk-WHG6N5X2.js → chunk-YRQP3SLC.js} +1 -1
- package/chunks/{chunk-GUFIMKF5.js → chunk-YV3PUOBU.js} +1 -1
- package/chunks/chunk-ZYCVL46M.js +27 -0
- package/chunks/{computer-use-HDAHXM46.js → computer-use-2UBC2SKZ.js} +1 -1
- package/chunks/contextCommand-CRHIC6JS.js +3 -0
- package/chunks/{cron-create-2UI4AT4Q.js → cron-create-FMTLQJXE.js} +1 -1
- package/chunks/{cron-delete-ZB6BOTFF.js → cron-delete-LWKY3QSE.js} +1 -1
- package/chunks/{cron-list-YYAXNHB6.js → cron-list-DJTIFK2L.js} +1 -1
- package/chunks/edit-MR52FAWW.js +43 -0
- package/chunks/{enter-worktree-YI7BKDPH.js → enter-worktree-HFTCLHRB.js} +1 -1
- package/chunks/{enterPlanMode-SZ3D3XRT.js → enterPlanMode-R54IR74J.js} +1 -1
- package/chunks/{exit-worktree-L6OTJIBF.js → exit-worktree-NK6IMLGE.js} +1 -1
- package/chunks/{exitPlanMode-PSXDKAXV.js → exitPlanMode-X2M6ZV3X.js} +1 -1
- package/chunks/{geminiContentGenerator-UWXILFM2.js → geminiContentGenerator-KKK5RWAE.js} +1 -1
- package/chunks/{glob-5DANZVAI.js → glob-RKSORKHR.js} +1 -1
- package/chunks/{goal-tools-AIYULJ6L.js → goal-tools-RSICRXWC.js} +1 -1
- package/chunks/{grep-B4KG4R5T.js → grep-7O4QFORW.js} +1 -1
- package/chunks/{keychain-token-storage-54BNK6VH.js → keychain-token-storage-KQK6MNOJ.js} +1 -1
- package/chunks/{ls-YWZU3FYL.js → ls-JYJXFSXN.js} +1 -1
- package/chunks/{lsp-4CJDKEEC.js → lsp-DYDK6XCS.js} +1 -1
- package/chunks/{matildaAgentContentGenerator-EC6EONBZ.js → matildaAgentContentGenerator-JRJ35MC7.js} +1 -1
- package/chunks/{matildaContentGenerator-TGMDURRB.js → matildaContentGenerator-3EXH3FBK.js} +1 -1
- package/chunks/{matildaOAuth2-WOY7ZS43.js → matildaOAuth2-XE7AHBSI.js} +1 -1
- package/chunks/{monitor-D7TU3DUW.js → monitor-7O2YTGFR.js} +1 -1
- package/chunks/{notebook-edit-V5XE473Y.js → notebook-edit-6SCNZBO3.js} +1 -1
- package/chunks/{openaiContentGenerator-PYFTHLLU.js → openaiContentGenerator-5SBB3YKW.js} +1 -1
- package/chunks/read-file-DZTYS4MO.js +3 -0
- package/chunks/ripGrep-LVBZPZPH.js +3 -0
- package/chunks/{scheduler-B54AG3CC.js → scheduler-NPTZJ56A.js} +1 -1
- package/chunks/{send-message-OO2HAKCC.js → send-message-P3SMWNEE.js} +1 -1
- package/chunks/{serve-YRXZONLX.js → serve-3VNHJIGD.js} +1 -1
- package/chunks/shell-SXPNBWTX.js +3 -0
- package/chunks/{skill-6JH5WZFP.js → skill-OQVVXONF.js} +1 -1
- package/chunks/src-PJF3I6FQ.js +3 -0
- package/chunks/{symbol-search-ALYOX5JN.js → symbol-search-EAIZPWN7.js} +1 -1
- package/chunks/{syntheticOutput-UASKABJH.js → syntheticOutput-432LXITX.js} +1 -1
- package/chunks/task-create-Z3QRCMX4.js +3 -0
- package/chunks/{task-detach-I67ZE5MX.js → task-detach-XMSJ3HBM.js} +1 -1
- package/chunks/{task-list-5BGX4G5N.js → task-list-MNHMRJN3.js} +1 -1
- package/chunks/{task-stop-ERI5X4AO.js → task-stop-NTS62FLG.js} +1 -1
- package/chunks/{task-update-CD3W556L.js → task-update-DA5K2V7E.js} +1 -1
- package/chunks/{team-create-RBYPBWMT.js → team-create-AATX26NE.js} +1 -1
- package/chunks/{team-delete-5U3GBFKJ.js → team-delete-RRYZ6KMB.js} +1 -1
- package/chunks/todoWrite-Y6RP55AO.js +3 -0
- package/chunks/{tool-search-JFCD5W5M.js → tool-search-EZAYWDKE.js} +1 -1
- package/chunks/{web-fetch-REWGIRWQ.js → web-fetch-ZTPXSREL.js} +1 -1
- package/chunks/{web-search-OX2DPEVN.js → web-search-XQUIZARL.js} +1 -1
- package/chunks/{workflow-AVVQMK4O.js → workflow-J6YT6B4V.js} +2 -2
- package/chunks/{write-file-CCYKY44V.js → write-file-MO5WWZWG.js} +1 -1
- package/cli.js +396 -390
- package/package.json +2 -2
- package/chunks/agent-5PW6CQEM.js +0 -3
- package/chunks/agent-headless-PMTZCOCR.js +0 -3
- package/chunks/chunk-GV25S54K.js +0 -54
- package/chunks/chunk-HWOQNYAO.js +0 -27
- package/chunks/contextCommand-ZZLLOKVS.js +0 -3
- package/chunks/edit-DOPUXY2Q.js +0 -39
- package/chunks/read-file-6EAPS2KG.js +0 -3
- package/chunks/ripGrep-FOKCJ3KE.js +0 -3
- package/chunks/shell-NG54W6TS.js +0 -3
- package/chunks/src-5ZUUXCSI.js +0 -3
- package/chunks/task-create-EBJD55TB.js +0 -3
- package/chunks/todoWrite-2RIXEZK7.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{
|
|
3
|
+
import{$c as nt,Be as rt,Bi as ct,Me as st,Nc as tt,Ne as at,Rc as ot,Uc as et,Ue as L,Vc as A,Ve as lt,_c as C,dd as it,zi as P}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import"./chunk-MO2HXJG5.js";import"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-WV3IUPZS.js";import"./chunk-RNKDFE2S.js";import"./chunk-WXCEBLRE.js";import"./chunk-MCQUPLRE.js";import"./chunk-47XR7IMP.js";import"./chunk-GTVCJCHR.js";import"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import"./chunk-YV3PUOBU.js";import"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import{g as Z,i as q,p as Y,q as Q}from"./chunk-6E766NPX.js";import"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import{K as J,ba as K,d as m}from"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as H}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";H();import{spawn as mt}from"node:child_process";import dt from"node:path";import{randomUUID as Et}from"node:crypto";var u=K("MONITOR"),St=1e3,O=1e4,kt=3e5,N=6e5,ut=80,R=4096,ft=5,pt=1e3;function gt(l){return l.length>ut?l.slice(0,ut-1)+"\u2026":l}var xt=new Set(["task-notification","task-id","tool-use-id","kind","status","event-count","summary","result"]),Rt=/<(\/?)([a-zA-Z][a-zA-Z0-9-]*)>/g;function ht(l){let y="";for(let t=0;t<l.length;t++){let e=l.charCodeAt(t);if(e===9){y+=l[t];continue}e<32||e>=128&&e<=159||(y+=l[t])}return y=y.replace(Rt,(t,e,a)=>xt.has(String(a).toLowerCase())?e==="/"?`</\u200B${a}>`:`<\u200B${a}>`:t),y}var U=class extends Z{constructor(t,e){super(e);this.config=t}callId;setCallId(t){this.callId=t}getDescription(){let t=this.params.description||C(this.params.command).spawnCommand;return`Monitor: ${gt(t)}`}async getDefaultPermission(){let t=C(this.params.command).safetyCommand;try{if(await L(t))return"allow"}catch(e){u.warn("AST read-only check failed, falling back to ask:",e)}return"ask"}async getConfirmationDetails(t){let e=C(this.params.command),a=et(e.safetyCommand),f=[];for(let s of a){let p=!1;try{p=await L(s)}catch(d){u.warn("AST read-only check failed for monitor sub-command, falling back to ask:",d)}p||f.push(s)}let S=f.length>0?f:a,M=[...new Set(S.map(s=>A(s)).filter(s=>!!s))],v=[];try{let s=[];for(let p of S){let d=await lt(p);s.push(...d)}v=[...new Set(s)].map(p=>`Monitor(${p})`)}catch(s){u.warn("Failed to extract monitor command rules:",s),v=[`Monitor(${e.safetyCommand})`]}let i=it(e.safetyCommand,this.params.command),c={type:"exec",title:"Monitor",command:e.spawnCommand,rootCommand:M.join(", ")||(A(e.safetyCommand)??e.spawnCommand),permissionRules:v,onConfirm:async(s,p)=>{}};return i&&(c.warnings=i),c}async execute(t){if(t.aborted)return{llmContent:"Monitor was cancelled before it could start.",returnDisplay:"Monitor cancelled."};let e=C(this.params.command),a=e.spawnCommand;e.strippedTrailingAmp&&u.warn("Stripped trailing & from monitor command \u2014 monitor lifecycle handles backgrounding");let f=ht(this.params.description||a),S=gt(f),M=Math.min(this.params.max_events??St,O),v=Math.min(this.params.idle_timeout_ms??kt,N),i=`mon_${Et().replace(/-/g,"").slice(0,16)}`,c=this.config.getMonitorRegistry(),s=tt()??void 0;if(c.getRunning().length>=P)return{llmContent:`Cannot start monitor: maximum concurrent monitors (${P}) reached. Stop an existing monitor first.`,returnDisplay:"Monitor rejected: too many concurrent monitors."};let d=new AbortController,g={monitorId:i,command:a,description:f,status:"running",startTime:Date.now(),abortController:d,toolUseId:this.callId,eventCount:0,lastEventTime:0,maxEvents:M,idleTimeoutMs:v,droppedLines:0,outputFile:ct(this.config.storage.getProjectDir(),this.config.getSessionId(),i),...s?{ownerAgentId:s}:{}},{executable:vt,argsPrefix:Tt}=ot(),n;try{n=mt(vt,[...Tt,a],{cwd:this.params.directory||this.config.getTargetDir(),stdio:["ignore","pipe","pipe"],detached:!0,env:{...at(),MATILDA_CODE:"1",TERM:"dumb",PAGER:"cat",...st()}})}catch(o){return{llmContent:`Monitor failed to start: ${m(o)}`,returnDisplay:`Monitor failed: ${m(o)}`}}g.pid=n.pid;let b=!1,w,D=o=>{w??=o};n.on("error",D);let B={value:""},G={value:""},k=ft,I=Date.now(),$=o=>{let r=ht(o);if(r.length===0||r.trim().length===0)return;let T=Date.now(),_=T-I;if(_<0)u.warn(`Monitor ${i}: clock moved backwards by ${-_}ms, resetting refill timestamp`),I=T;else{let h=Math.floor(_/pt);h>0&&(k=Math.min(ft,k+h),I+=h*pt)}k>0?(k--,c.emitEvent(i,r)):g.droppedLines++},j=()=>{for(let o of[B,G]){let r=o.value.trim();r.length>0&&$(r),o.value=""}},_t=()=>{if(!(b||!n.pid))if(process.platform==="win32")mt("taskkill",["/pid",n.pid.toString(),"/f","/t"],{stdio:"ignore"}).on("error",r=>u.warn(`Monitor taskkill failed for pid ${n.pid}: ${m(r)}`));else{try{process.kill(-n.pid,"SIGTERM")}catch(o){u.warn(`Monitor ${i} SIGTERM failed (pid=${n.pid}): ${m(o)}`)}setTimeout(()=>{if(!b&&n.pid)try{process.kill(-n.pid,"SIGKILL")}catch(o){u.warn(`Monitor ${i} SIGKILL escalation failed (pid=${n.pid}): ${m(o)}`)}},200).unref?.()}},E=()=>{j(),_t()};d.signal.addEventListener("abort",E,{once:!0}),d.signal.aborted&&E();try{c.register(g)}catch(o){return E(),d.signal.removeEventListener("abort",E),n.stdout?.destroy?.(),n.stderr?.destroy?.(),n.removeListener("error",D),n.on("error",()=>{}),{llmContent:`Monitor failed to start: ${m(o)}`,returnDisplay:`Monitor failed: ${m(o)}`}}let z=(o,r)=>{if(g.status!=="running")return;let T=rt(r.toString("utf-8"));if(o.value+=T,!o.value.includes(`
|
|
4
4
|
`)&&o.value.length>R){let h=o.value.trim();h.length>0&&$(h.slice(0,R)+"..."),o.value="";return}let _=o.value.split(`
|
|
5
5
|
`);o.value=_.pop()??"";for(let h of _){let x=h.trim();if(x.length===0)continue;let wt=x.length>R?x.slice(0,R)+"...":x;$(wt)}};n.stdout?.on("data",o=>z(B,o)),n.stderr?.on("data",o=>z(G,o));let F=!1,X=()=>{F||(F=!0,j(),d.signal.removeEventListener("abort",E),g.droppedLines>0&&u.info(`Monitor ${i} dropped ${g.droppedLines} lines due to throttling`))},V=null,Ct=(o,r)=>{g.status==="running"&&(d.signal.aborted?c.cancel(i):o!==null&&o!==0?c.fail(i,`Exit code ${o}`):r?c.fail(i,`Killed by signal ${r}`):c.complete(i,o))},Mt=(o,r)=>{b=!0,V={code:o,sig:r}},bt=(o,r)=>{b=!0,X();let T=V??{code:o,sig:r};Ct(T.code,T.sig)},W=o=>{b=!0,X(),g.status==="running"&&c.fail(i,m(o))};return n.on("exit",Mt),n.on("close",bt),n.on("error",W),n.removeListener("error",D),w?(W(w),{llmContent:`Monitor failed to start: ${m(w)}`,returnDisplay:`Monitor failed: ${m(w)}`}):{llmContent:`Monitor started.
|
|
6
6
|
id: ${i}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{
|
|
3
|
+
import{Dc as Q,Se as y,bf as X,ef as Z,ha as R,ue as D,ve as Y}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import"./chunk-MO2HXJG5.js";import"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-WV3IUPZS.js";import"./chunk-RNKDFE2S.js";import"./chunk-WXCEBLRE.js";import"./chunk-MCQUPLRE.js";import"./chunk-47XR7IMP.js";import"./chunk-GTVCJCHR.js";import"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import"./chunk-YV3PUOBU.js";import"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import{J as B,K as k,L as U,M as K,Mb as z,N as q,O as b,P as W,Q as j,R as C,S as J,T as V,U as w,V as M,ca as G,dd as H}from"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import{g as $,i as L,p as c,q as x}from"./chunk-6E766NPX.js";import"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import{D as _,E as N,G as T,ba as F}from"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as v}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";v();import*as E from"node:fs";import*as m from"node:path";var ee=F("NOTEBOOK_EDIT");function g(d,r,t){return ee.debug("prior-read-rejected",{path:d,reason:r,type:t.type,displayMessage:t.displayMessage}),t}var u=class extends Error{constructor(t,e){super(t);this.type=e;this.name="NotebookEditError"}};function te(d,r){if(r==="delete")return"";if(typeof d!="string")throw new u(`new_source is required when edit_mode is "${r}".`,"invalid_tool_params");return d}function I(d,r){return d?q(d,r):`cell-${r}`}function oe(d,r,t){if(!r){if(t==="insert")return-1;throw new u("cell_id is required for replace and delete operations.","invalid_tool_params")}if(W(d,r))throw new u(`Cell ID "${r}" is ambiguous in the rendered notebook. Re-read the notebook and target a stable real cell ID before editing.`,"invalid_tool_params");let e=j(d,r);if(e===-1)throw new u(`Cell with ID "${r}" not found in notebook.`,"notebook_cell_not_found");return e}function ie(d,r,t,e){let o={cell_type:r,metadata:{},source:w(t,e)},i=J(d);return i&&(o.id=i),M(o,r),o}function O(d,r){let t;try{t=k(d)}catch(a){throw new u(a instanceof Error?a.message:String(a),"notebook_invalid_json")}let e=r.edit_mode??"replace",o=te(r.new_source,e),i=b(t),n=oe(t,r.cell_id,e),l=C(t),p=U(d),s=(a,f)=>{let h=e==="insert"||e==="delete";return{...f,updatedContent:K(a,p),requiresReadAfterWrite:h&&!(i&&b(a))}};switch(e){case"insert":{let a=r.cell_type??"code",f=n===-1?0:n+1,h=ie(t,a,o,V(t,f));return t.cells.splice(f,0,h),s(t,{editedCellId:I(h,f),editedCellType:a,language:l,mode:e})}case"delete":{let[a]=t.cells.splice(n,1);return s(t,{editedCellId:I(a,n),editedCellType:a?.cell_type,language:l,mode:e})}case"replace":{let a=t.cells[n];if(!a)throw new u(`Cell index ${n} is out of range.`,"notebook_cell_not_found");let f=r.cell_type??a.cell_type;return a.source=w(o,Array.isArray(a.source)),M(a,f),s(t,{editedCellId:I(a,n),editedCellType:f,language:l,mode:e})}default:throw new u(`Unsupported notebook edit mode: ${e}`,"invalid_tool_params")}}function re(d,r,t){let e,o;try{e=k(r),o=k(d)}catch(i){throw new u(i instanceof Error?i.message:String(i),"notebook_invalid_json")}return{updatedContent:r,editedCellId:t.cell_id??"user-modified-notebook",editedCellType:void 0,language:C(e),mode:t.edit_mode??"replace",requiresReadAfterWrite:!b(o)||!b(e)}}async function A(d,r,t={}){if(d.getFileReadCacheDisabled())return{ok:!0};let e;try{e=await E.promises.stat(r)}catch(i){let n=i?.code;return n==="ENOENT"?t.expectExisting?g(r,"missing-after-read",{ok:!1,type:"file_changed_since_read",rawMessage:`Notebook ${r} disappeared after it was read. Re-read it with the ${c.READ_FILE} tool before editing it.`,displayMessage:`notebook disappeared after last read; re-run ${c.READ_FILE} first.`}):{ok:!0}:g(r,"stat-failed",{ok:!1,type:"prior_read_verification_failed",rawMessage:`Could not stat ${r} to verify prior notebook read (${n??"unknown error"}). Re-read it with the ${c.READ_FILE} tool before editing it.`,displayMessage:`cannot verify prior read of ${r}; re-run ${c.READ_FILE} before editing this notebook.`})}if(e.isDirectory())return g(r,"target-is-directory",{ok:!1,type:"target_is_directory",rawMessage:`${r} is a directory. The NotebookEdit tool only operates on .ipynb files.`,displayMessage:"path is a directory; cannot edit as a notebook."});if(!e.isFile())return g(r,"target-not-regular-file",{ok:!1,type:"target_not_regular_file",rawMessage:`${r} is not a regular file. The NotebookEdit tool only operates on .ipynb files.`,displayMessage:"special file; cannot edit as a notebook."});let o=d.getFileReadCache().check(e);return o.state==="fresh"&&o.entry.lastReadAt!==void 0&&o.entry.lastReadWasFull?{ok:!0}:o.state==="fresh"&&o.entry.lastReadAt!==void 0&&!o.entry.lastReadWasFull?g(r,"truncated-cache-entry",{ok:!1,type:"edit_requires_prior_read",rawMessage:`Notebook ${r} is too large for cell-level editing because its rendered output was truncated when read. Reduce the notebook output size or split the notebook before editing cells.`,displayMessage:"notebook too large for cell-level editing."}):o.state==="stale"?g(r,"stale-cache-entry",{ok:!1,type:"file_changed_since_read",rawMessage:`Notebook ${r} has been modified since you last read it. Re-read it with the ${c.READ_FILE} tool before editing it.`,displayMessage:`notebook changed since last read; re-run ${c.READ_FILE} first.`}):g(r,`cache-${o.state}`,{ok:!1,type:"edit_requires_prior_read",rawMessage:`Notebook ${r} has not been fully read in this session. Use the ${c.READ_FILE} tool first, without offset or limit, before editing cells.`,displayMessage:`${c.READ_FILE} required before editing this notebook.`})}var P=class extends ${constructor(t,e,o){super(e);this.config=t;this.modifyMetadata=o}toolLocations(){return[{path:this.params.notebook_path}]}getDescription(){let t=N(this.params.notebook_path,this.config.getTargetDir()),e=this.params.edit_mode??"replace",o=this.params.cell_id??"beginning";return`${e} notebook cell ${o} in ${_(t)}`}async getDefaultPermission(){return"ask"}async getConfirmationDetails(t){let e=await this.prepareEdit(t),o=m.basename(this.params.notebook_path),i=R(o,e.originalContent,e.updatedContent,"Current","Proposed",D);return{type:"edit",title:`Confirm Notebook Edit: ${_(N(this.params.notebook_path,this.config.getTargetDir()))}`,fileName:o,filePath:this.params.notebook_path,fileDiff:i,originalContent:e.originalContent,newContent:e.updatedContent,onConfirm:async l=>{l==="proceed_always"&&this.config.setApprovalMode("auto-edit")}}}async prepareEdit(t){let e=await A(this.config,this.params.notebook_path);if(!e.ok)throw new y(e.rawMessage,e.type);let o,i=!1,n,l="lf";try{let s=await this.config.getFileSystemService().readTextFile({path:this.params.notebook_path});o=s.content,i=s._meta?.bom??!1,n=s._meta?.encoding,l=s._meta?.lineEnding??X(s.content)}catch(s){throw t.aborted?s:s?.code==="ENOENT"?new y(`Notebook file not found: ${this.params.notebook_path}`,"file_not_found"):new y(`Error reading notebook: ${s instanceof Error?s.message:String(s)}`,"read_content_failure")}let p=await A(this.config,this.params.notebook_path,{expectExisting:!0});if(!p.ok)throw new y(p.rawMessage,p.type);try{return this.modifyMetadata?.modifiedNotebookContent!==void 0?{...re(o,this.modifyMetadata.modifiedNotebookContent,this.params),originalContent:o,bom:i,encoding:n,lineEnding:l}:{...O(o,this.params),originalContent:o,bom:i,encoding:n,lineEnding:l}}catch(s){throw s instanceof u?new y(s.message,s.type):s}}async execute(t){let e;try{e=await this.prepareEdit(t)}catch(o){if(t.aborted)throw o;let i=o instanceof y?o.errorType:"notebook_edit_failure",n=o instanceof Error?o.message:String(o);return{llmContent:n,returnDisplay:`Error: ${n}`,error:{message:n,type:i}}}try{try{await this.config.getFileHistoryService().trackEdit(this.params.notebook_path)}catch{}let o=await A(this.config,this.params.notebook_path,{expectExisting:!0});if(!o.ok)return{llmContent:o.rawMessage,returnDisplay:`Error: ${o.displayMessage}`,error:{message:o.rawMessage,type:o.type}};await this.config.getFileSystemService().writeTextFile({path:this.params.notebook_path,content:e.updatedContent,_meta:{bom:e.bom,encoding:e.encoding,lineEnding:e.lineEnding}}),this.modifyMetadata?.modifiedByUser||Q.getInstance().recordEdit(this.params.notebook_path,e.originalContent,e.updatedContent);try{let a=E.statSync(this.params.notebook_path),f=this.config.getFileReadCache();e.requiresReadAfterWrite?f.invalidate(a):f.recordWrite(this.params.notebook_path,a,{cacheable:!1})}catch(a){ee.warn(`[NotebookEdit] post-write cache update failed for ${this.params.notebook_path}: ${a instanceof Error?a.message:String(a)}`)}let i=m.basename(this.params.notebook_path),n=R(i,e.originalContent,e.updatedContent,"Current","Proposed",D),l=Y(i,e.originalContent,this.modifyMetadata?.aiProposedContent??e.updatedContent,e.updatedContent);z(this.config,new H(S.Name,"update",e.updatedContent.split(`
|
|
4
4
|
`).length,G(this.params.notebook_path),".ipynb",e.language));let p={fileDiff:n,fileName:i,originalContent:e.originalContent,newContent:e.updatedContent,diffStat:l},s=this.modifyMetadata?.modifiedNotebookContent!==void 0?`Notebook ${this.params.notebook_path} has been updated. Notebook content was modified by the user before approval; the final saved notebook may differ from the original ${e.mode} cell ${e.editedCellId} proposal.`:`Notebook ${this.params.notebook_path} has been updated. ${e.mode} cell ${e.editedCellId}.${e.mode==="delete"?"":`
|
|
5
5
|
|
|
6
6
|
Updated source:
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m}from"./chunk-
|
|
3
|
+
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h,h as i,i as j,j as k,k as l,l as m}from"./chunk-F62NM4KX.js";import"./chunk-GOJCMVJJ.js";import"./chunk-YV3PUOBU.js";import{g as a}from"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import"./chunk-6E766NPX.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{h as ContentGenerationPipeline,c as DeepSeekOpenAICompatibleProvider,i as EnhancedErrorHandler,b as MatildaOpenAICompatibleProvider,k as MatildaOpenAIContentGenerator,g as MiMoOpenAICompatibleProvider,e as MiniMaxOpenAICompatibleProvider,f as MistralOpenAICompatibleProvider,a as OpenAIContentConverter,j as OpenAIContentGenerator,d as OpenRouterOpenAICompatibleProvider,l as createOpenAIContentGenerator,m as determineProvider};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{wc as a}from"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import"./chunk-6E766NPX.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{a as ReadFileTool};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{Zj as a,_j as b}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import"./chunk-MO2HXJG5.js";import"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-WV3IUPZS.js";import"./chunk-RNKDFE2S.js";import"./chunk-WXCEBLRE.js";import"./chunk-MCQUPLRE.js";import"./chunk-47XR7IMP.js";import"./chunk-GTVCJCHR.js";import"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import"./chunk-YV3PUOBU.js";import"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import"./chunk-6E766NPX.js";import"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{b as RipGrepTool,a as _resetRipGrepCachesForTest};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{b as E}from"./chunk-7ZATDBWL.js";import{
|
|
3
|
+
import{b as E}from"./chunk-7ZATDBWL.js";import{ua as P}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import"./chunk-MO2HXJG5.js";import"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-WV3IUPZS.js";import"./chunk-RNKDFE2S.js";import"./chunk-WXCEBLRE.js";import"./chunk-MCQUPLRE.js";import"./chunk-47XR7IMP.js";import"./chunk-GTVCJCHR.js";import"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import"./chunk-YV3PUOBU.js";import"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import"./chunk-6E766NPX.js";import"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import{Q as l,ba as c}from"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as s}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";s();import{stat as V}from"node:fs/promises";import{join as p}from"node:path";s();import{readdir as N,stat as H,rm as F,rmdir as A}from"node:fs/promises";import{join as y}from"node:path";var k=c("HOUSEKEEPING"),U=24*60*60*1e3,$=60*60*1e3,_=20;function T(e){let t=e>0?e*U:$;return new Date(Date.now()-t)}async function b(e){let t={removed:0,errors:0},r=y(l.getGlobalMatildaDir(),P),i=e.excludeSessionIds??new Set,o;try{o=await N(r,{withFileTypes:!0})}catch(n){return G(n)||k.error("readdir failed",n),t}let a=o.filter(n=>n.isDirectory()&&!i.has(n.name)).map(n=>y(r,n.name));for(let n=0;n<a.length;n+=_){let v=a.slice(n,n+_);await Promise.all(v.map(async g=>{try{(await H(g)).mtime<e.cutoffDate&&(await F(g,{recursive:!0,force:!0}),t.removed++)}catch(w){t.errors++,k.error(`failed to sweep ${g}`,w)}}))}return await A(r).catch(()=>{}),t}function G(e){return e?.code==="ENOENT"}s();import{mkdir as Y,open as K,stat as I,unlink as D,writeFile as j}from"node:fs/promises";import{dirname as B}from"node:path";var m=c("HOUSEKEEPING"),q=24*60*60*1e3,J=60*60*1e3;async function R(e,t){let r=e.minIntervalMs??q,i=e.staleLockMs??J;if(await Y(B(e.lockPath),{recursive:!0,mode:448}).catch(()=>{}),await C(e.markerPath,r,e.name))return!1;let o=await h(e.lockPath);if(!o){try{let a=await I(e.lockPath);Date.now()-a.mtimeMs>i&&(await D(e.lockPath).catch(()=>{}),o=await h(e.lockPath))}catch{o=await h(e.lockPath)}if(!o)return m.debug(`${e.name}: skipping, lock held`),!1}try{if(await C(e.markerPath,r,e.name))return!1;let a=!1;try{await t(),a=!0}finally{if(a)try{await j(e.markerPath,new Date().toISOString())}catch(n){m.debug(`${e.name}: marker write failed (cleanup succeeded)`,n)}}return a}finally{await D(e.lockPath).catch(()=>{m.debug(`${e.name}: lock unlink failed (harmless)`)})}}async function C(e,t,r){try{let i=await I(e),o=Date.now()-i.mtimeMs;if(o<t)return m.debug(`${r}: skipping, ran ${o}ms ago`),!0}catch{}return!1}async function h(e){try{return await(await K(e,"wx")).close(),!0}catch(t){if(t?.code==="EEXIST")return!1;throw t}}var u=c("HOUSEKEEPING"),O=10*60*1e3,W=24*60*60*1e3,X=60*1e3,z=7*24*60*60*1e3,Q=60*1e3,f=".file-history-cleanup",d=!1;function pe(e,t){d||(d=!0,Z(e,t).catch(r=>{d=!1,u.error("scheduleFirstPass failed; chain will retry on next start",r)}))}async function Z(e,t){let r=p(l.getGlobalMatildaDir(),f),i=await L(r)?Q:O;u.debug(`first pass in ${i/1e3}s`),setTimeout(()=>S(e,t),i).unref()}async function L(e){try{let t=await V(e);return Date.now()-t.mtimeMs>z}catch{return!0}}async function M(e,t){if(E()<X){u.debug("user active, deferring 10 min"),setTimeout(()=>S(e,t),O).unref();return}try{await x(e,t)}catch(r){u.error("housekeeping pass failed; will retry next cycle",r)}setTimeout(()=>S(e,t),W).unref()}function S(e,t){M(e,t).catch(r=>{u.error("runPass rejected unexpectedly",r)})}async function x(e,t){let r=t.merged.general?.cleanupPeriodDays??30,i=T(r),o=e.getSessionId(),a=l.getGlobalMatildaDir();await R({name:"file-history-cleanup",markerPath:p(a,f),lockPath:p(a,f+".lock")},async()=>{let n=await b({cutoffDate:i,excludeSessionIds:new Set([o])});u.debug(`file-history: removed=${n.removed} errors=${n.errors}`)})}function Se(){d=!1}var we=L,Pe=x,Ee=M,ye=f;export{ye as _FILE_HISTORY_MARKER_FOR_TESTING,we as _needsCatchUpForTesting,Se as _resetForTesting,Pe as _runHousekeepingForTesting,Ee as _runPassForTesting,pe as startBackgroundHousekeeping};
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2025 Google LLC
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{d as n,g as h,l as i}from"./chunk-QKYGQLWC.js";import{g,i as p,p as c,q as l}from"./chunk-
|
|
3
|
+
import{d as n,g as h,l as i}from"./chunk-QKYGQLWC.js";import{g,i as p,p as c,q as l}from"./chunk-6E766NPX.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import{b as d}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";d();var m=class extends g{constructor(s,a){super(a);this.config=s}getDescription(){if(this.params.task_id)return`Send message to task ${this.params.task_id}`;let s=this.params.summary??this.params.message.slice(0,50);return`Send to ${this.params.to}: ${s}`}async getDefaultPermission(){return"ask"}async execute(s){if(this.params.task_id){let e=this.config.getBackgroundTaskRegistry(),t=e.get(this.params.task_id);return t?t.status==="paused"?await this.config.resumeBackgroundAgent(this.params.task_id,this.params.message)?{llmContent:`Background task "${this.params.task_id}" resumed with your message as the first continuation instruction.`,returnDisplay:`Resumed ${t.description}`}:{llmContent:`Error: Background task "${this.params.task_id}" could not be resumed.`,returnDisplay:"Task could not be resumed.",error:{message:`Task could not be resumed: ${this.params.task_id}`,type:"send_message_not_running"}}:t.status!=="running"?{llmContent:`Error: Background task "${this.params.task_id}" is not running (status: ${t.status}). Cannot send messages to stopped tasks.`,returnDisplay:`Task not running (${t.status}).`,error:{message:`Task is ${t.status}: ${this.params.task_id}`,type:"send_message_not_running"}}:(e.queueMessage(this.params.task_id,this.params.message),{llmContent:`Message queued for delivery to background task "${this.params.task_id}". The task will receive it at the next tool-round boundary.`,returnDisplay:`Message queued for ${t.description}`}):{llmContent:`Error: No background task found with ID "${this.params.task_id}".`,returnDisplay:"Task not found.",error:{message:`Task not found: ${this.params.task_id}`,type:"send_message_not_found"}}}let a=this.config.getTeamManager();if(!a){let e="No active team and no task_id provided. Either create a team first, or pass `task_id` to message a background task.";return{llmContent:e,returnDisplay:e,error:{message:e}}}let o=this.params.to;if(!o){let e='Recipient "to" is required.';return{llmContent:e,returnDisplay:e,error:{message:e}}}try{if(this.params.type==="shutdown_request"){if(h()){let r="Only the team leader can request shutdowns.";return{llmContent:r,returnDisplay:r,error:{message:r}}}await a.requestShutdown(o);let t=`Shutdown requested for "${o}".`;return{llmContent:t,returnDisplay:t}}if(o==="*"){let t=n()??i;await a.broadcast(this.params.message,t);let r="Message broadcast to all teammates.";return{llmContent:r,returnDisplay:r}}await a.sendMessage(o,this.params.message,n()??i,this.params.summary);let e=`Message sent to "${o}".`;return{llmContent:e,returnDisplay:e}}catch(e){let t=e instanceof Error?e.message:String(e);return{llmContent:`Failed to send message: ${t}`,returnDisplay:`Failed to send message: ${t}`,error:{message:t}}}}},k=class u extends p{constructor(s){super(u.Name,l.SEND_MESSAGE,'Send a message to a teammate (use "to") or to a running background task (use "task_id"). For teams, set "to" to a bare teammate name (no @) or "*" to broadcast. For background tasks, set "task_id" to the id from the launch response or a recovered paused task. Running tasks receive it at the next tool-round boundary; paused recovered tasks are resumed with the message as their first continuation instruction. Your text output is NOT visible to other agents \u2014 use this tool to communicate.',"other",{type:"object",properties:{to:{type:"string",description:'Recipient teammate name, or "*" for broadcast.'},task_id:{type:"string",description:"The ID of the background task (from the launch response or a recovered paused task)."},message:{type:"string",description:"Message text to send.",maxLength:65536},summary:{type:"string",description:"Optional 5-10 word summary for UI display."},type:{type:"string",enum:["shutdown_request"],description:"Structured message type for control flow. When set, routes through the mailbox instead of plain text delivery."}},required:["message"],oneOf:[{required:["to"]},{required:["task_id"]}],additionalProperties:!1},!0,!1,!0,!1,"send message task teammate team communicate notify");this.config=s}static Name=c.SEND_MESSAGE;createInvocation(s){return new m(this.config,s)}toAutoClassifierInput(s){return{to:s.to,task_id:s.task_id,message:s.message,type:s.type}}};export{k as SendMessageTool};
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2025 Matilda
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as Du}from"./chunk-PA6532AY.js";import{a as kv}from"./chunk-XMZIY7XX.js";import{$a as Qi,Aa as ir,Ba as Tr,C as ns,Ca as Ki,Da as or,E as Cu,Ea as an,Fa as ar,Ga as Pr,Ha as mt,Ia as cr,Ja as Mr,Ka as Or,La as cn,Ma as dn,Na as un,Oa as ot,Pa as Av,Qa as Ji,Ra as ss,Sa as $u,Ta as Bu,Ua as ke,Va as le,Wa as Rv,X as Tu,Xa as ln,Ya as pn,Z as Tt,Za as qu,_a as Xi,ab as Yi,bb as Zi,cb as Cv,db as eo,eb as Mt,fb as to,hb as ro,ia as Pu,ja as Fu,jb as ju,ka as Pt,kb as Wu,la as Lu,lb as is,ma as Gi,mb as Hu,na as Qe,oa as wt,qa as Nu,qb as Uu,ra as ie,rb as Vu,sa as nn,ta as sn,ua as sr,va as Rr,wa as on,xa as Cr,y as Vi,ya as bt,za as St}from"./chunk-
|
|
3
|
+
import{a as Du}from"./chunk-PA6532AY.js";import{a as kv}from"./chunk-XMZIY7XX.js";import{$a as Qi,Aa as ir,Ba as Tr,C as ns,Ca as Ki,Da as or,E as Cu,Ea as an,Fa as ar,Ga as Pr,Ha as mt,Ia as cr,Ja as Mr,Ka as Or,La as cn,Ma as dn,Na as un,Oa as ot,Pa as Av,Qa as Ji,Ra as ss,Sa as $u,Ta as Bu,Ua as ke,Va as le,Wa as Rv,X as Tu,Xa as ln,Ya as pn,Z as Tt,Za as qu,_a as Xi,ab as Yi,bb as Zi,cb as Cv,db as eo,eb as Mt,fb as to,hb as ro,ia as Pu,ja as Fu,jb as ju,ka as Pt,kb as Wu,la as Lu,lb as is,ma as Gi,mb as Hu,na as Qe,oa as wt,qa as Nu,qb as Uu,ra as ie,rb as Vu,sa as nn,ta as sn,ua as sr,va as Rr,wa as on,xa as Cr,y as Vi,ya as bt,za as St}from"./chunk-I5H6ZXLS.js";import{a as Au,b as D,d as Ru}from"./chunk-6RCVKDFR.js";import{a as Mu,b as zi,c as rn,e as Ou}from"./chunk-T2T2UEPY.js";import{$a as lu,$h as xu,Df as Su,Ef as Eu,Ff as Iu,La as du,Ma as tn,Oe as gu,Re as vu,Ti as _v,Wf as kr,Xf as Ve,Ya as uu,Ye as yu,_l as Ar,ab as pu,bb as fu,bf as Ui,bl as es,cf as wu,cl as ts,df as bu,dl as rs,jk as tt,kk as Zn,ob as Hi,og as Yn,qb as hu,ub as mu,yi as _u}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import"./chunk-MO2HXJG5.js";import"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import{e as ku}from"./chunk-MTMU7JYZ.js";import"./chunk-WV3IUPZS.js";import"./chunk-RNKDFE2S.js";import"./chunk-WXCEBLRE.js";import"./chunk-MCQUPLRE.js";import"./chunk-47XR7IMP.js";import"./chunk-GTVCJCHR.js";import"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import{b as tu,e as ru}from"./chunk-YV3PUOBU.js";import{C as Hd,D as Ud,E as Vd,F as zd,G as Gd,H as Kd,I as Jd,J as Xd,K as Qd,L as Yd,U as Zd,V as eu,n as Bd,o as Bi,p as qi,q as Qn,s as qd,u as jd,v as Wd,w as ji,x as _r}from"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import{b as Md}from"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import{Db as Ld,Fb as Nd,Gb as $d,Y as Dd,da as xr,ea as Fd,j as He,t as Od}from"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import"./chunk-6E766NPX.js";import{f as nu,h as Wi,i as su,j as iu,k as ou,m as au,r as cu}from"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import{Q as Xn,R as Pd}from"./chunk-27Q5KW3A.js";import{a as ht}from"./chunk-G7R2XEEF.js";import{a as xv}from"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as w}from"./chunk-GZPNIYVZ.js";import{a as se,d as L,f as Iv}from"./chunk-OWGSC52X.js";var fn=L((D_,Ju)=>{w();var Tv=se("path").relative;Ju.exports=Fv;var Pv=process.cwd();function Gu(t,e){for(var r=t.split(/[ ,]+/),n=String(e).toLowerCase(),s=0;s<r.length;s++){var i=r[s];if(i&&(i==="*"||i.toLowerCase()===n))return!0}return!1}function Mv(t,e,r){var n=Object.getOwnPropertyDescriptor(t,e),s=n.value;return n.get=function(){return s},n.writable&&(n.set=function(o){return s=o}),delete n.value,delete n.writable,Object.defineProperty(t,e,n),n}function Ov(t){for(var e="",r=0;r<t;r++)e+=", arg"+r;return e.substr(2)}function Dv(t){var e=this.name+": "+this.namespace;this.message&&(e+=" deprecated "+this.message);for(var r=0;r<t.length;r++)e+=`
|
|
4
4
|
at `+t[r].toString();return e}function Fv(t){if(!t)throw new TypeError("argument namespace is required");var e=as(),r=Dr(e[1]),n=r[0];function s(i){os.call(s,i)}return s._file=n,s._ignored=Nv(t),s._namespace=t,s._traced=$v(t),s._warned=Object.create(null),s.function=Wv,s.property=Hv,s}function Lv(t,e){var r=typeof t.listenerCount!="function"?t.listeners(e).length:t.listenerCount(e);return r>0}function Nv(t){if(process.noDeprecation)return!0;var e=process.env.NO_DEPRECATION||"";return Gu(e,t)}function $v(t){if(process.traceDeprecation)return!0;var e=process.env.TRACE_DEPRECATION||"";return Gu(e,t)}function os(t,e){var r=Lv(process,"deprecation");if(!(!r&&this._ignored)){var n,s,i,o,a=0,c=!1,d=as(),u=this._file;for(e?(o=e,i=Dr(d[1]),i.name=o.name,u=i[0]):(a=2,o=Dr(d[a]),i=o);a<d.length;a++)if(n=Dr(d[a]),s=n[0],s===u)c=!0;else if(s===this._file)u=this._file;else if(c)break;var l=n?o.join(":")+"__"+n.join(":"):void 0;if(!(l!==void 0&&l in this._warned)){this._warned[l]=!0;var p=t;if(p||(p=i===o||!i.name?zu(o):zu(i)),r){var f=Ku(this._namespace,p,d.slice(a));process.emit("deprecation",f);return}var g=process.stderr.isTTY?qv:Bv,v=g.call(this,p,n,d.slice(a));process.stderr.write(v+`
|
|
5
5
|
`,"utf8")}}}function Dr(t){var e=t.getFileName()||"<anonymous>",r=t.getLineNumber(),n=t.getColumnNumber();t.isEval()&&(e=t.getEvalOrigin()+", "+e);var s=[e,r,n];return s.callSite=t,s.name=t.getFunctionName(),s}function zu(t){var e=t.callSite,r=t.name;r||(r="<anonymous@"+no(t)+">");var n=e.getThis(),s=n&&e.getTypeName();return s==="Object"&&(s=void 0),s==="Function"&&(s=n.name||s),s&&e.getMethodName()?s+"."+r:r}function Bv(t,e,r){var n=new Date().toUTCString(),s=n+" "+this._namespace+" deprecated "+t;if(this._traced){for(var i=0;i<r.length;i++)s+=`
|
|
6
6
|
at `+r[i].toString();return s}return e&&(s+=" at "+no(e)),s}function qv(t,e,r){var n="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+t+"\x1B[39m";if(this._traced){for(var s=0;s<r.length;s++)n+=`
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{ff as a,gf as b,hf as c,if as d,jf as e,kf as f,lf as g}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import"./chunk-MO2HXJG5.js";import"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-WV3IUPZS.js";import"./chunk-RNKDFE2S.js";import"./chunk-WXCEBLRE.js";import"./chunk-MCQUPLRE.js";import"./chunk-47XR7IMP.js";import"./chunk-GTVCJCHR.js";import"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import"./chunk-YV3PUOBU.js";import"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import"./chunk-6E766NPX.js";import"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{b as OUTPUT_UPDATE_INTERVAL_MS,g as ShellTool,f as ShellToolInvocation,c as buildLongRunningForegroundHint,d as detectBlockedSleepPattern,a as parseNumstat,e as repairLeakedShellToolArgMarkup};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as p,b as C,d as E,e as I}from"./chunk-
|
|
3
|
+
import{a as p,b as C,d as E,e as I}from"./chunk-WV3IUPZS.js";import"./chunk-HYVP4472.js";import"./chunk-DE3HKC2W.js";import"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import{lc as o,qd as a}from"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import{g as S,i as v,p as y,q as b}from"./chunk-6E766NPX.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import{ba as f}from"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as u}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";u();import L from"path";var r=f("SKILL"),$=`Execute a skill within the main conversation
|
|
4
4
|
|
|
5
5
|
<skills_instructions>
|
|
6
6
|
When users ask you to perform tasks, check if any of the available skills can help complete the task more effectively. Skills provide specialized capabilities and domain knowledge.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{$ as nj,$a as mk,$b as ml,$c as qm,$d as rn,$e as co,$f as bp,$g as _q,$h as $r,$i as _s,$j as St,$k as Vu,$l as Uv,A as mh,Aa as Nj,Ab as Nk,Ac as Rl,Ad as Rm,Af as vo,Ag as wp,Ah as Ar,Ai as Bs,Aj as wt,Ak as uu,Al as uv,B as Pi,Ba as Oj,Bb as Ok,Bc as Sl,Bd as Sm,Bf as wo,Bg as xp,Bh as Br,Bi as Cs,Bj as xt,Bk as vu,Bl as vv,C as Qi,Ca as Pj,Cb as Pk,Cc as Tl,Cd as Tm,Ce as On,Cf as xo,Cg as yp,Ch as Cr,Ci as Ds,Cj as yt,Ck as wu,Cl as wv,D as Ri,Da as Qj,Db as Qk,Dd as Um,De as Pn,Dg as zp,Dh as Dr,Di as Es,Dj as zt,Dk as xu,Dl as xv,E as Si,Ea as Rj,Eb as Rk,Ec as Vl,Ed as Vm,Ee as Qn,Eg as Ap,Eh as Er,Ei as Fs,Ej as At,Ek as yu,El as yv,F as Ti,Fa as Sj,Fb as Sk,Fc as Wl,Fd as Wm,Fg as Bp,Fh as Fr,Fi as Gs,Fj as Bt,Fk as zu,Fl as zv,G as Ui,Ga as Tj,Gb as Tk,Gc as Xl,Gd as Xm,Ge as Rn,Gf as yo,Gg as Cp,Gh as Gr,Gi as Hs,Gj as Ct,Gk as Au,Gl as Av,H as Vi,Ha as Uj,Hb as Uk,Hc as Yl,Hd as Ym,He as Sn,Hf as zo,Hg as Dp,Hh as Hr,Hi as Is,Hj as Dt,Hk as Bu,Hl as Bv,I as Wi,Ia as Vj,Ib as Vk,Ic as Zl,Id as Zm,Ie as Tn,If as Ao,Ig as Lp,Ih as Ir,Ii as Js,Ij as Et,Ik as Cu,Il as Cv,J as Xi,Ja as Wj,Jb as Wk,Jc as _l,Jd as _m,Je as Un,Jf as Bo,Jg as Mp,Jh as Jr,Ji as Ks,Jj as Ft,Jk as Du,Jl as Dv,K as Yi,Ka as Xj,Kb as Xk,Kc as $l,Kd as $m,Ke as Vn,Kf as Co,Kg as Jq,Kh as Kr,Ki as Ls,Kj as Gt,Kk as Eu,Kl as Ev,L as Zi,La as Yj,Lb as Yk,Lc as am,Ld as an,Le as Wn,Lf as Do,Lg as Kq,Lh as Lr,Li as Ms,Lj as Ht,Lk as Fu,Ll as Fv,M as _i,Ma as Zj,Mb as Zk,Mc as bm,Md as bn,Mf as Eo,Mg as Lq,Mh as Mr,Mi as Ns,Mj as It,Mk as Gu,Ml as Gv,N as $i,Na as _j,Nb as _k,Nd as cn,Ne as Xn,Nf as Fo,Ng as Mq,Nh as Nr,Ni as Os,Nj as Jt,Nk as Hu,Nl as Hv,O as aj,Oa as $j,Ob as $k,Od as dn,Oe as Yn,Of as Go,Og as Nq,Oh as Or,Oi as Ps,Oj as Kt,Ok as Iu,Ol as Iv,P as bj,Pa as ak,Pb as al,Pc as em,Pd as en,Pe as Zn,Pf as Ho,Pg as Oq,Ph as Pr,Pi as Qs,Pj as Lt,Pk as Ju,Q as cj,Qa as bk,Qb as bl,Qc as fm,Qd as fn,Qe as _n,Qf as Io,Qg as Pq,Qh as Qr,Qi as Rs,Qj as Mt,Qk as Ku,Ql as Jv,R as dj,Ra as ck,Rb as cl,Rc as gm,Rd as gn,Re as $n,Rf as Jo,Rg as Qq,Rh as Rr,Ri as Ss,Rj as Nt,Rk as Lu,Rl as Kv,S as ej,Sa as dk,Sb as dl,Sc as hm,Sd as hn,Sf as Uo,Sg as Rq,Sh as Sr,Sj as Ot,Sk as Mu,Sl as Lv,T as fj,Ta as ek,Tb as el,Tc as im,Td as jn,Tf as Vo,Tg as Sq,Th as Tr,Tj as Pt,Tk as Nu,Tl as Mv,U as gj,Ua as fk,Ub as fl,Uc as jm,Ud as kn,Uf as Wo,Ug as Tq,Uh as Ur,Ui as Ts,Uk as Ou,Ul as Nv,V as hj,Va as gk,Vb as gl,Vc as km,Vd as ln,Vf as Xo,Vg as Uq,Vh as Vr,Vi as Us,Vk as Pu,Vl as Ov,W as ij,Wa as hk,Wb as hl,Wc as lm,Wd as mn,Wf as Yo,Wg as Vq,Wh as Wr,Wi as Vs,Wk as Qu,Wl as Pv,X as jj,Xa as ik,Xb as il,Xc as mm,Xd as nn,Xf as Zo,Xg as Wq,Xh as Xr,Xi as Ws,Xk as Ru,Xl as Qv,Y as kj,Ya as jk,Yb as jl,Yc as nm,Yd as on,Yf as _o,Yg as Xq,Yh as Yr,Yi as Xs,Yk as Su,Yl as Rv,Z as lj,Za as kk,Zb as kl,Zc as om,Zd as pn,Ze as ao,Zf as $o,Zg as Yq,Zh as Zr,Zi as Ys,Zj as Qt,Zk as Tu,Zl as Sv,_ as mj,_a as lk,_b as ll,_c as pm,_d as qn,_e as bo,_f as ap,_g as Zq,_h as _r,_i as Zs,_j as Rt,_k as Uu,_l as Tv,a as ua,aa as oj,ab as nk,ac as pl,ad as rm,ae as sn,af as eo,ag as cp,ah as $q,ai as as,aj as $s,ak as Tt,al as Wu,am as Vv,b as va,ba as pj,bb as ok,bc as sl,bd as sm,be as tn,bf as fo,bg as dp,bh as ar,bi as bs,bj as at,bk as Ut,bl as Xu,bm as Wv,c as wa,ca as qj,cb as pk,cc as tl,cd as tm,ce as un,cf as go,cg as ep,ch as br,ci as cs,cj as bt,ck as Vt,cl as Yu,cm as Xv,d as xa,da as rj,db as qk,dc as ul,dd as um,de as vn,df as ho,dg as fp,dh as cr,di as ds,dj as ct,dk as Wt,dl as Zu,dm as Yv,e as ya,ea as sj,eb as rk,ec as vl,ed as vm,ee as wn,eg as gp,eh as dr,ei as es,ej as dt,ek as Xt,el as _u,em as Zv,f as za,fa as tj,fb as sk,fc as wl,fd as wm,fe as xn,fg as hp,fh as er,fi as fs,fk as Yt,fl as $u,fm as _v,g as Aa,ga as uj,gb as tk,gc as xl,gd as xm,ge as yn,gg as ip,gh as fr,gi as gs,gj as et,gk as Zt,gl as av,gm as $v,h as Ba,hb as uk,hc as yl,hd as ym,he as zn,hg as jp,hh as gr,hi as hs,hj as ft,hk as _t,hl as bv,hm as aw,i as Ca,ia as vj,ib as vk,ic as zl,id as zm,ie as An,ig as kp,ih as hr,ii as is,ij as gt,ik as cu,il as cv,im as bw,j as Xg,ja as wj,jb as wk,jc as Al,jd as Am,je as Bn,jg as lp,jh as ir,ji as js,jj as ht,jk as du,jl as dv,jm as cw,k as Yg,ka as xj,kb as xk,kc as Bl,kd as Bm,ke as Cn,kg as mp,kh as jr,ki as ks,kj as it,kk as eu,kl as ev,l as Zg,la as yj,lb as yk,lc as Cl,ld as Cm,le as Dn,lg as np,lh as kr,li as ls,lj as jt,lk as fu,ll as fv,m as _g,ma as zj,mb as zk,mc as Dl,md as Dm,me as En,mf as io,mg as op,mh as lr,mi as ms,mj as kt,mk as gu,ml as gv,n as $g,na as Aj,nb as Ak,nc as El,nd as Em,ne as Fn,nf as jo,ng as pp,nh as mr,ni as ns,nk as hu,nl as hv,o as ah,oa as Bj,ob as Bk,oc as Fl,od as Fm,oe as Gn,of as ko,og as qp,oh as nr,oi as qs,ok as iu,ol as iv,p as bh,pa as Cj,pb as Ck,pc as Gl,pd as Gm,pe as Hn,pf as lo,ph as or,pi as rs,pj as lt,pk as ju,pl as jv,q as ch,qa as Dj,qb as Dk,qc as Hl,qd as Hm,qe as In,qf as mo,qh as qr,qi as ss,qj as mt,qk as ku,ql as kv,r as dh,ra as Ej,rb as Ek,rc as Il,rd as Im,re as Jn,rf as no,rh as rr,ri as ts,rj as nt,rk as lu,rl as lv,s as eh,sa as Fj,sb as Fk,sc as Jl,sd as Jm,se as Kn,sf as oo,sh as sr,si as us,sj as ot,sk as mu,sl as mv,t as fh,ta as Gj,tb as Gk,tc as Kl,td as Km,te as Ln,tf as po,th as tr,ti as vs,tj as pt,tk as nu,tl as nv,u as gh,ua as Hj,ub as Hk,uc as Ll,ud as Lm,uh as ur,ui as ws,uj as qt,uk as ou,ul as ov,v as hh,va as Ij,vb as Ik,vc as Ml,vd as Mm,vf as qo,vg as rp,vh as vr,vi as xs,vj as rt,vk as pu,vl as pv,w as ih,wa as Jj,wb as Jk,wc as Nl,wd as Nm,we as Mn,wf as ro,wg as sp,wh as wr,wj as st,wk as qu,wl as qv,x as jh,xa as Kj,xb as Kk,xc as Ol,xd as Om,xe as Nn,xf as so,xg as tp,xh as xr,xi as ys,xj as tt,xk as ru,xl as rv,y as kh,ya as Lj,yb as Lk,yc as Pl,yd as Pm,yf as to,yg as up,yh as yr,yi as zs,yj as ut,yk as su,yl as sv,z as lh,za as Mj,zb as Mk,zc as Ql,zd as Qm,zf as uo,zg as vp,zh as zr,zi as As,zj as vt,zk as tu,zl as tv}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import{a as Np,b as Op,c as Pp,d as Qp,e as Rp,f as kq,g as lq,h as mq,i as nq,j as oq,k as pq,l as qq,m as rq}from"./chunk-MO2HXJG5.js";import{a as sq,b as tq,c as uq,d as vq,e as wq,f as xq,g as yq,h as zq,i as Aq,j as Bq,k as Cq,l as Dq,m as Eq,n as Fq,o as Gq,p as Hq,q as Iq}from"./chunk-2MOGYHWM.js";import{c as Ul,d as Sp,e as Tp,f as Up,g as Vp,h as Wp,i as Xp,j as Yp,k as Zp,l as _p,m as $p,n as aq,o as bq,p as cq,q as dq,r as eq,s as fq,t as gq,u as hq,v as iq,w as jq}from"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import{c as $t,e as au,f as bu}from"./chunk-MTMU7JYZ.js";import{a as ql,d as rl}from"./chunk-WV3IUPZS.js";import{a as nl,b as ol}from"./chunk-RNKDFE2S.js";import{A as Lh,B as Mh,C as Nh,D as Oh,E as Ph,F as Qh,G as Rh,H as Sh,I as Th,J as Uh,K as Vh,L as Wh,M as Xh,N as Yh,a as nh,d as oh,da as _h,e as ph,ea as $h,f as qh,fa as ai,g as rh,ga as bi,h as sh,ha as ci,i as th,ia as di,j as uh,ja as ei,k as vh,ka as Ei,l as wh,la as Fi,m as xh,ma as Gi,n as yh,na as Hi,o as zh,p as Ah,pa as Ii,q as Bh,qa as Ji,r as Ch,s as Dh,t as Eh,ta as Ki,u as Fh,ua as Li,v as Gh,va as Mi,w as Hh,wa as Ni,x as Ih,xa as Oi,y as Jh,z as Kh}from"./chunk-WXCEBLRE.js";import{a as Zh}from"./chunk-MCQUPLRE.js";import{a as os,b as ps}from"./chunk-47XR7IMP.js";import{b as pr}from"./chunk-GTVCJCHR.js";import{a as cm,b as dm}from"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import{a as Ko,b as Lo,c as Mo,d as No,e as Oo,f as Po,g as Qo,h as Ro,i as So,j as To,k as Ep,l as Fp,m as Gp,n as Hp,o as Ip,p as Jp,q as Kp}from"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import{a as fi,b as gi,c as hi,d as ii,e as ji,f as ki,g as li,h as mi,i as ni,j as oi,k as pi,l as qi,m as ri,n as si,o as ti,p as ui,q as vi,r as wi,s as xi,t as yi,u as zi,v as Ai,w as Bi,x as Ci,y as Di}from"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import{b as sg,d as tg,e as ug,g as vg,h as wg,i as xg,j as yg,k as zg}from"./chunk-YV3PUOBU.js";import{A as We,Aa as pg,B as Xe,Ba as qg,C as Ye,Ca as rg,D as Ze,Da as Sg,E as _e,Ea as Tg,F as $e,Fa as Ug,G as af,Ga as Vg,H as bf,Ha as Wg,I as cf,J as df,K as ef,L as ff,P as uf,Q as vf,T as wf,U as xf,V as yf,X as Rf,Y as Sf,Z as Tf,aa as Uf,b as ve,c as we,ca as Vf,d as xe,da as Wf,e as ye,ea as Xf,fa as _f,ga as $f,i as ze,j as Ae,ja as ag,k as Be,ka as bg,l as He,la as cg,m as Ie,ma as dg,n as Je,na as eg,o as Ke,oa as fg,p as Le,pa as gg,q as Me,qa as hg,r as Ne,ra as ig,s as Oe,sa as jg,t as Pe,ta as kg,u as Qe,ua as lg,v as Re,va as mg,w as Se,x as Te,y as Ue,ya as ng,z as Ve,za as og}from"./chunk-P3G4HEXP.js";import{a as Nf,e as Of,f as Pf,g as Qf}from"./chunk-DC7LAFZZ.js";import{a as zf,b as Af,c as Bf,d as Cf}from"./chunk-4F4DA5UI.js";import{e as Ce,f as De,g as Ee,h as Fe,i as Ge,m as Df,n as Ef,o as Ff,p as Gf,q as Hf,r as If,s as Jf,t as Kf,u as Lf,v as Mf}from"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import{b as gf,c as hf,d as jf,e as kf,f as lf,g as mf,h as nf,i as of,j as pf,k as qf,l as rf,m as sf,n as tf}from"./chunk-SDTWBD62.js";import{$ as hb,$a as cc,$c as be,A as Va,Aa as Hb,Ab as zc,B as Wa,Ba as Ib,Bb as Ac,C as Xa,Ca as Jb,Cb as Bc,D as Ya,Da as Kb,Db as Cc,E as Za,Ea as Lb,Eb as Dc,F as _a,Fa as Mb,Fb as Ec,Fc as Jd,G as $a,Ga as Nb,Gb as Fc,Gc as Kd,H as ab,Ha as Ob,Hb as Gc,Hc as Ld,I as bb,Ia as Pb,Ib as Hc,Ic as Md,Ja as Qb,Jb as Ic,Jc as Nd,Ka as Rb,Kb as Jc,Kc as Od,La as Sb,Lb as Kc,Lc as Pd,Ma as Tb,Mc as Qd,Na as Ub,Nb as Lc,Nc as Rd,Oa as Vb,Ob as Mc,Oc as Sd,Pb as Nc,Pc as Td,Qb as Oc,Qc as Ud,Ra as Wb,Rb as Pc,Rc as Vd,Sb as Qc,Sc as Wd,Tc as Xd,Ua as Xb,Uc as Yd,Va as Yb,Vb as Rc,W as cb,Wa as Zb,Wb as Sc,X as db,Xa as _b,Xb as Tc,Xc as Zd,Y as eb,Ya as $b,Yb as Uc,Yc as _d,Z as fb,Za as ac,Zb as Vc,Zc as $d,_ as gb,_a as bc,_b as Wc,_c as ae,aa as ib,ad as ce,b as ca,ba as jb,bb as dc,bd as de,c as da,ca as kb,cb as ec,cd as ee,d as ea,da as lb,db as fc,dc as Xc,e as ra,ea as mb,eb as gc,fa as nb,fb as hc,fc as Yc,g as sa,ga as ob,gb as ic,gc as Zc,h as ta,ha as pb,hb as jc,hc as _c,hd as fe,ia as qb,ib as kc,ic as $c,id as ge,ja as rb,jb as lc,jc as ad,jd as he,ka as sb,kb as mc,kc as bd,la as tb,lb as nc,lc as cd,ld as ie,ma as ub,mb as oc,mc as dd,md as je,n as Ia,na as vb,nb as pc,nc as ed,o as Ja,ob as qc,oc as fd,od as ke,p as Ka,pa as wb,pb as rc,pc as gd,q as La,qa as xb,qb as sc,qc as hd,qd as le,r as Ma,ra as yb,rb as tc,rc as id,rd as me,s as Na,sa as zb,sb as uc,sc as jd,sd as ne,t as Oa,ta as Ab,tb as vc,tc as kd,td as oe,u as Pa,ua as Bb,ud as pe,v as Qa,va as Cb,vd as qe,w as Ra,wa as Db,wc as Id,wd as re,x as Sa,xa as Eb,xb as wc,xd as se,y as Ta,ya as Fb,yb as xc,yd as te,z as Ua,za as Gb,zb as yc,zd as ue}from"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import{a as ld,b as md,c as nd,d as od,e as pd,f as qd,g as rd,h as sd,i as td,j as ud,k as vd,l as wd,m as xd,n as yd,o as zd,p as Ad,q as Bd,r as Cd,s as Dd,t as Ed,u as Fd,v as Gd,w as Hd}from"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import{a as fa,e as ga,f as ha,g as ia,h as ja,i as ka,j as la,k as ma,l as na,m as oa,n as pa,o as qa,p as Da,q as Ea,r as Fa,s as Ga,t as Ha}from"./chunk-6E766NPX.js";import{a as Ag,b as Bg,d as Cg,e as Dg,f as Eg,g as Fg,h as Gg,i as Hg,j as Ig,k as Jg,l as Kg,m as Lg,n as Mg,o as Ng,p as Og,q as Pg,r as Qg,t as Rg}from"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import{a as Yf,b as Zf}from"./chunk-3YLXGE6T.js";import{a as Z,b as _,c as $,d as aa,e as ba}from"./chunk-LUNDTQ3G.js";import{$ as W,A as z,B as A,C as B,D as C,E as D,F as E,G as F,H as G,I as H,J as I,K as J,L as K,M as L,N as M,O as N,Q as O,R as P,V as S,W as T,Z as U,_ as V,aa as X,b as a,ba as Y,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t,v as u,w as v,x as w,y as x,z as y}from"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import{c as Q,g as R}from"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{Ja as AGENT_CONTEXT_FILENAME,hp as AGENT_WORKTREE_HEX_LENGTH,gp as AGENT_WORKTREE_PREFIX,ip as AGENT_WORKTREE_SLUG_PATTERN,Bk as ALL_PROVIDERS,du as APPROVAL_MODES,fu as APPROVAL_MODE_INFO,ua as ARENA_MAX_AGENTS,pd as AUTO_MEMORY_CONSOLIDATION_LOCK_FILENAME,ld as AUTO_MEMORY_DIRNAME,od as AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,md as AUTO_MEMORY_INDEX_FILENAME,nd as AUTO_MEMORY_METADATA_FILENAME,Wl as AUTO_MEMORY_SCHEMA_VERSION,Vl as AUTO_MEMORY_TYPES,fn as AUTO_MODE_DENIAL_LIMITS,br as AUTO_SKILL_THRESHOLD,Jv as AbortError,r as AccountRestrictedError,Xo as AgentCore,Go as AgentEventEmitter,Fo as AgentEventType,Jo as AgentHeadless,vp as AgentInteractive,ha as AgentStatistics,ya as AgentStatus,xa as AgentTerminateMode,Ci as AgentType,Ud as ApiCancelEvent,Td as ApiErrorEvent,Sd as ApiRequestEvent,vb as ApiRequestPhase,Vd as ApiResponseEvent,cu as ApprovalMode,Ca as ArenaAgentClient,zp as ArenaEventEmitter,yp as ArenaEventType,Dp as ArenaManager,va as ArenaSessionStatus,up as AsyncMessageQueue,ke as AuthEvent,nu as AuthProviderType,Sg as AuthType,Mq as BACKGROUND_AGENT_CONCURRENCY_ENV,ep as BASELINE_COMMIT_MESSAGE,Ya as BINARY_EXTENSIONS,Qa as BINARY_FILE_PATTERNS,Tv as BTW_MAX_INPUT_LENGTH,Vr as BUNDLE_CHUNK_DIR,Tq as BackgroundAgentResumeService,Gs as BackgroundShellRegistry,Rq as BackgroundTaskRegistry,q as BadRequestError,ka as BaseDeclarativeTool,ia as BaseToolInvocation,js as BudgetExhaustedError,qp as BuiltinAgentRegistry,Ff as CAPPED_DEFAULT_MAX_TOKENS,lv as CODE_ACTION_KIND_LABELS,sm as COMMAND_SUBSTITUTION_WARNING,Sa as COMMON_DIRECTORY_EXCLUDES,Pa as COMMON_IGNORE_PATTERNS,qa as CONCURRENCY_SAFE_KINDS,yk as CUSTOM_API_KEY_ENV_PREFIX,Tk as ChatRecordingService,xo as CloseDiffRequestSchema,Sn as ColorMode,ml as CompactionLifecycle,Xk as CompressionStatus,Et as ConditionalRulesRegistry,ou as Config,t as ContentBlockedError,Ho as ContextState,de as ConversationFinishedEvent,Eo as CoreToolScheduler,Fg as CredentialsClearRequiredError,lr as CronScheduler,Ke as DAEMON_TRACEPARENT_META_KEY,Le as DAEMON_TRACESTATE_META_KEY,cr as DEFAULT_AUTO_DREAM_MIN_HOURS,dr as DEFAULT_AUTO_DREAM_MIN_SESSIONS,Sq as DEFAULT_BACKGROUND_AGENT_CONTINUATION_MESSAGE,pp as DEFAULT_BUILTIN_SUBAGENT_TYPE,Ia as DEFAULT_CONTEXT_FILENAME,cb as DEFAULT_ENCODING,Va as DEFAULT_FILE_EXCLUDES,ol as DEFAULT_FILE_FILTERING_OPTIONS,dv as DEFAULT_LSP_COMMAND_CHECK_TIMEOUT_MS,cv as DEFAULT_LSP_DOCUMENT_OPEN_DELAY_MS,fv as DEFAULT_LSP_DOCUMENT_RETRY_DELAY_MS,gv as DEFAULT_LSP_MAX_RESTARTS,av as DEFAULT_LSP_REQUEST_TIMEOUT_MS,iv as DEFAULT_LSP_SOCKET_MAX_RETRY_DELAY_MS,hv as DEFAULT_LSP_SOCKET_RETRY_DELAY_MS,$u as DEFAULT_LSP_STARTUP_TIMEOUT_MS,bv as DEFAULT_LSP_WARMUP_DELAY_MS,ev as DEFAULT_LSP_WORKSPACE_SYMBOL_WARMUP_DELAY_MS,Bf as DEFAULT_MATILDA_EMBEDDING_MODEL,Af as DEFAULT_MATILDA_FLASH_MODEL,zf as DEFAULT_MATILDA_MODEL,Lq as DEFAULT_MAX_CONCURRENT_BACKGROUND_AGENTS,ru as DEFAULT_MAX_INLINE_MEDIA_BYTES,nl as DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,yf as DEFAULT_OTLP_ENDPOINT,Ef as DEFAULT_OUTPUT_TOKEN_LIMIT,gu as DEFAULT_PR_ATTRIBUTION_MESSAGE,Wi as DEFAULT_STOP_HOOK_BLOCK_CAP,xf as DEFAULT_TELEMETRY_TARGET,Df as DEFAULT_TOKEN_LIMIT,ju as DEFAULT_TOOL_OUTPUT_BATCH_BUDGET,Vi as DEFAULT_TOOL_RESULTS_TOTAL_CHARS_THRESHOLD,iu as DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,hu as DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,kv as DIAGNOSTIC_SEVERITY_LABELS,rp as DISPLAY_MODE,$q as DREAM_TASK_TYPE,ja as DeclarativeTool,oi as DefaultHookOutput,Ld as DiscoveredMCPTool,ms as DiscoveredTool,Gf as ESCALATED_MAX_TOKENS,da as EVENT_API_ERROR,ea as EVENT_API_RESPONSE,ca as EVENT_TOOL_CALL,Uo as EXCLUDED_TOOLS_FOR_SUBAGENTS,Ls as EXTENSIONS_CONFIG_FILENAME,Ks as EXTENSIONS_DIRECTORY_NAME,Ns as EXTENSION_SETTINGS_FILENAME,Vo as EXTERNAL_MESSAGE_PREFIX,_q as EXTRACT_TASK_TYPE,Od as EndSessionEvent,pe as ExtensionDisableEvent,ie as ExtensionEnableEvent,fe as ExtensionInstallEvent,tt as ExtensionManager,lt as ExtensionSettingScope,he as ExtensionUninstallEvent,st as ExtensionUpdateState,Hj as FILE_HISTORY_DIR,_o as FORK_SUBAGENT_TYPE,g as FatalAuthenticationError,m as FatalBudgetExceededError,n as FatalCancellationError,j as FatalConfigError,f as FatalError,h as FatalInputError,i as FatalSandboxError,l as FatalToolExecutionError,k as FatalTurnLimitedError,mp as FileDiscoveryService,ao as FileEncoding,Wa as FileExclusions,Kj as FileHistoryService,rb as FileOperation,Js as FileReadCache,qo as FileSchema,Lv as FileSearchFactory,Wd as FlashFallbackEvent,o as ForbiddenError,th as GOAL_DEFAULT_TOKEN_BUDGET,uh as GOAL_DEFAULT_TURN_BUDGET,Hh as GOAL_INFEASIBLE_NEXT_STEP,sh as GOAL_NO_PROGRESS_TURN_LIMIT,Mh as GOAL_PAUSE_REASON_COMMAND,Ph as GOAL_PAUSE_REASON_HEADLESS_RUN_ENDED,Jh as GOAL_PAUSE_REASON_MAX_CHARACTERS,_h as GOAL_PAUSE_REASON_MIGRATED,Rh as GOAL_PAUSE_REASON_NO_PROGRESS,Qh as GOAL_PAUSE_REASON_REWOUND,Oh as GOAL_PAUSE_REASON_SESSION_DISPOSED,Nh as GOAL_PAUSE_REASON_SESSION_TOKEN_LIMIT,$h as GOAL_PAUSE_REASON_UNREADABLE_STATE,Lh as GOAL_PAUSE_REASON_USER_INTERRUPT,rh as GOAL_PROPOSAL_REASON_MAX_BYTES,qh as GOAL_PROPOSAL_REASON_MAX_CHARACTERS,Li as GOAL_RUNTIME_DISPOSED_MESSAGE,ph as GOAL_STATE_VERSION,w as GOOGLE_ACCOUNTS_FILENAME,Rl as GeminiChat,kr as GeminiClient,Wk as GeminiEventType,lp as GitIgnoreParser,kp as GitWorktreeService,Xh as GoalConflictError,Yh as GoalInvalidTransitionError,Ni as GoalPersistenceUnavailableError,ii as HOOKS_CONFIG_FIELDS,gi as HookEventName,hi as HookPhase,yt as HookRegistry,At as HookSystem,ji as HookType,fi as HooksConfigSource,yo as IDEConnectionStatus,io as IDE_DEFINITIONS,lo as IDE_MAX_OPEN_FILES,mo as IDE_MAX_SELECTED_TEXT_LENGTH,no as IDE_REQUEST_TIMEOUT_MS,Ev as IDLE_SPECULATION,Jp as INBOXES_DIR,vv as INITIAL_FOLLOWUP_STATE,Ms as INSTALL_METADATA_FILENAME,tp as ITermBackend,zo as IdeClient,ce as IdeConnectionEvent,be as IdeConnectionType,so as IdeContextNotificationSchema,ro as IdeContextSchema,oo as IdeContextStore,to as IdeDiffAcceptedNotificationSchema,vo as IdeDiffClosedNotificationSchema,uo as IdeDiffRejectedNotificationSchema,bu as Ignore,wp as InProcessBackend,os as InputFormat,gs as InvalidMcpConfigError,Yj as InvalidSessionListCursorError,Pl as InvalidStreamError,pu as JsonFormatter,pr as KeychainTokenStorage,oa as Kind,ee as KittySequenceOverflowEvent,Fp as LEADER_NAME,Wo as LIMIT_WRAP_UP_TIMEOUT_MS,Pj as LITE_READ_BUF_SIZE,Ka as LOCAL_CONTEXT_FILENAME,Du as Logger,Yd as LoopType,mv as LspConfigLoader,nv as LspConnectionFactory,ov as LspResponseNormalizer,pv as LspServerManager,Cf as MAINLINE_CODER_MODEL,ra as MAIN_SOURCE,Nf as MATILDA_API_KEY_ENV_KEY,ko as MATILDA_CODE_COMPANION_EXTENSION_NAME,Vu as MATILDA_CODE_SIMPLE_ENV_VAR,Pg as MATILDA_CREDENTIAL_FILE_MODE,v as MATILDA_DIR,Uf as MATILDA_OAUTH_MODELS,xc as MATILDA_SESSION_ID_HASH_ATTR,wc as MATILDA_USER_ID_HASH_ATTR,Oq as MAX_CONCURRENT_BACKGROUND_AGENTS,As as MAX_CONCURRENT_MONITORS,wj as MAX_DIFF_SIZE_BYTES,vj as MAX_FILES,yj as MAX_FILES_FOR_DETAILS,xj as MAX_LINES_PER_FILE,Es as MAX_NOTIFICATION_OUTPUT_TAIL_BYTES,Pq as MAX_RETAINED_TERMINAL_AGENTS,Bs as MAX_RETAINED_TERMINAL_MONITORS,Fs as MAX_RETAINED_TERMINAL_SHELLS,Hs as MAX_RETAINED_TERMINAL_WORKFLOWS,Gj as MAX_SNAPSHOTS,Ep as MAX_TEAMMATES,dn as MAX_TRANSCRIPT_MESSAGES,gr as MAX_TURNS,li as MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,yr as MCPDiscoveryState,ur as MCPOAuthProvider,qr as MCPOAuthTokenStorage,lu as MCPServerConfig,xr as MCPServerStatus,is as MCP_BUDGET_REARM_FRACTION,hs as MCP_BUDGET_WARN_FRACTION,vr as MCP_DEFAULT_TIMEOUT_MSEC,Jd as MCP_RESULT_DEFAULT_CHARS,Kd as MCP_RESULT_MAX_CHARS,Ra as MEDIA_FILE_PATTERNS,La as MEMORY_SECTION_HEADER,Zv as MOCK_TOOL_GET_CONFIRMATION_DETAILS,Yv as MOCK_TOOL_GET_DEFAULT_PERMISSION,Tf as MODEL_GENERATION_CONFIG_FIELDS,pa as MUTATOR_KINDS,Lg as MatildaOAuth2Client,Mg as MatildaOAuth2Event,Gg as MatildaOAuthPollError,es as McpBudgetWouldExceedError,zr as McpClient,ls as McpClientManager,fs as McpServerSpawnFailedError,Fu as McpTransportPool,te as MemoryDreamEvent,se as MemoryExtractEvent,er as MemoryManager,tb as MemoryMetricType,ue as MemoryRecallEvent,Ct as MessageBus,ei as MessageBusType,Au as MessageSenderType,$v as MockModifiableTool,_v as MockModifiableToolInvocation,Xv as MockTool,Wf as ModelRegistry,je as ModelSlashCommandEvent,Xf as ModelsConfig,Ds as MonitorRegistry,_n as NON_INTERACTIVE_ENV,qv as NativeLspClient,rv as NativeLspService,Zd as NextSpeakerCheckEvent,wi as NotificationType,tr as OAUTH_AUTH_URL_EVENT,sr as OAUTH_DISPLAY_MESSAGE_EVENT,rr as OAuthUtils,sk as OPENROUTER_BASE_URL,rk as OPENROUTER_ENV_KEY,Hf as OUTPUT_TOKEN_SAFETY_MARGIN,Ae as OpenAILogger,wo as OpenDiffRequestSchema,ps as OutputFormat,Bv as OverlayFs,z as PATH_ARG_KEYS,Ch as PAUSED_GOAL_SYSTEM_REMINDER,bs as POOLED_TRANSPORTS_DEFAULT,ik as PROVIDER_METADATA_NS,Ta as PYTHON_EXCLUDES,sb as PerformanceMetricType,xs as PermissionManager,yi as PermissionMode,vi as PermissionRequestHookOutput,Bi as PostCompactTrigger,ti as PostToolBatchHookOutput,ri as PostToolUseFailureHookOutput,qi as PostToolUseHookOutput,Ai as PreCompactTrigger,pi as PreToolUseHookOutput,qe as PromptSuggestionEvent,Gk as ProviderInstallError,sq as RECIPROCAL_CALLER,Ts as REDACTED_URL_CREDENTIAL,kf as REPORTED_ATTEMPT_PURPOSES,hf as REPORTED_ATTEMPT_PURPOSE_HEADER,jf as REPORTED_OPERATION_HEADER_NAMES,gf as REPORTED_OPERATION_ID_HEADER,Rf as RUNTIME_SNAPSHOT_PREFIX,Lj as RUNTIME_STATUS_SCHEMA_VERSION,Id as ReadFileTool,nf as ReportedOperationTracker,Rt as RipGrepTool,Xd as RipgrepFallbackEvent,De as RuntimeDiagnosticsCollector,rn as SAFE_TOOL_ALLOWLIST,Xj as SESSION_TITLE_MAX_LENGTH,y as SHELL_SPECIAL_CHARS,Fm as SHELL_TOOL_NAMES,ar as SKILL_REVIEW_TASK_TYPE,Mi as STALE_GOAL_TURN_MESSAGE,Xi as STOP_HOOK_BLOCK_CAP_ENV,Rk as STREAM_RECOVERY_PARTIAL_DISPOSITION,Qk as STREAM_RECOVERY_SNAPSHOT_DISPOSITION,xv as SUGGESTION_PROMPT,wg as SUPPORTED_IMAGE_MIME_TYPES,jv as SYMBOL_KIND_LABELS,Tt as SYSTEMONE_MODEL_VERSION_HEADER,St as SYSTEMONE_PUBLIC_MODEL,Ua as SYSTEM_FILE_EXCLUDES,tl as SYSTEM_REMINDER_CLOSE,sl as SYSTEM_REMINDER_OPEN,ga as SchemaValidator,or as SdkControlClientTransport,Wb as SemanticAttributes,hr as SendMessageType,zi as SessionEndReason,Zj as SessionService,xi as SessionStartSource,Lk as SessionTranscriptRetiredError,Kk as SessionTranscriptStaleError,rt as SettingScope,$n as ShellExecutionService,vs as SkillActivationRegistry,ss as SkillError,le as SkillLaunchEvent,ws as SkillManager,$d as SlashCommandStatus,il as SleepInhibitor,R as SpanStatusCode,re as SpeculationEvent,ho as StandardFileSystemService,Nd as StartSessionEvent,ui as StopHookOutput,O as Storage,Ll as StreamEventType,Yo as SubagentError,Zo as SubagentErrorCode,zs as SubagentManager,ys as SubagentValidator,Vt as SystemOneError,Hp as TASKS_DIR,Kp as TEAMMATE_COLORS,Gp as TEAMS_DIR,Ip as TEAM_CONFIG_FILENAME,gj as TERMINAL_CSI_REGEX,fj as TERMINAL_OSC_REGEX,hj as TERMINAL_SHIFT_DCS_REGEX,Ck as THIRD_PARTY_PROVIDERS,Ok as THOUGHT_ONLY_DISPOSITION,Em as TOOL_NAME_ALIASES,Ju as TOOL_USE_SUMMARY_SYSTEM_PROMPT,cm as TaskCompletionScope,zq as TaskOwnershipError,Mp as TeamEventEmitter,Lp as TeamEventType,Kq as TeamManager,wf as TelemetryTarget,vg as TextTokenizer,sp as TmuxBackend,Rd as ToolCallEvent,na as ToolConfirmationOutcome,Ea as ToolDisplayNames,Ha as ToolDisplayNamesMigration,fa as ToolErrorType,ub as ToolExecutionPhase,Da as ToolNames,Fa as ToolNamesMigration,ge as ToolOutputTruncatedEvent,ns as ToolRegistry,eu as TrustGateError,Zk as Turn,qd as USER_AUTO_MEMORY_DIRNAME,sa as UiTelemetryService,p as UnauthorizedError,Pd as UserPromptEvent,si as UserPromptExpansionHookOutput,Qd as UserRetryEvent,Q as ValueType,fp as WORKTREES_DIR,$o as WORKTREE_BRANCH_PREFIX,bp as WORKTREE_SESSION_FILE,Is as WorkflowRunRegistry,np as WorkspaceContext,Gu as WorkspaceMcpBudget,Zu as WorkspaceMemoryFileTooLargeError,Xu as WorkspaceMemoryWriteTimeoutError,jj as _recoverObjectsFromLine,Ao as _resetCachedIdeServerHost,oj as _resetEnsuredDirsCacheForTest,Qt as _resetRipGrepCachesForTest,x as _resetValidatePathCacheForTest,Hv as abortSpeculation,Gv as acceptSpeculation,kl as acquireSleepInhibitor,Re as addDaemonRequestAttribute,Br as addMCPStatusChangeListener,ac as addModelOutputAttributes,_b as addSystemPromptAttributes,bc as addToolInputAttributes,cc as addToolResultAttributes,$b as addToolSchemaAttributes,Zb as addUserPromptAttributes,Uu as aggregateUsage,In as allowEditorTypeInSandbox,oh as ambientGoalToolResultProvenance,qj as appendLine,dh as appendToLastTextPart,wn as applyAutoModeDecision,Hk as applyProviderInstallPlan,rl as applySkillAllowedTools,tu as approxBase64Bytes,tq as assertValidTaskId,_p as assignTeammateColor,_ as atomicWriteFile,ba as atomicWriteFileSync,$ as atomicWriteJSON,Eq as blockTask,yl as buildAddedMcpToolsReminder,Bl as buildAddedSkillsReminder,_j as buildApiHistoryFromConversation,Al as buildAvailableSkillsReminder,Qq as buildBackgroundEntryLabel,Vv as buildBtwCacheSafeParams,Uv as buildBtwPrompt,xl as buildDeferredToolsReminder,Bp as buildFallbackApproachSummary,di as buildGoalContinuationParts,Nm as buildHumanReadableRuleLabel,jk as buildInstallPlan,zl as buildMcpServerInstructionsReminder,mr as buildMissedCronNotification,Yg as buildModelIdContext,Vm as buildPermissionCheckContext,Mm as buildPermissionRules,qk as buildProviderTemplate,tf as buildReportedOperationHeaders,um as buildShellExecWarnings,ql as buildSkillLlmContent,Cl as buildStartupContextReminder,Jq as buildTeammatePromptAddendum,Qg as cacheMatildaCredentials,$r as canUseRipgrep,Ga as canonicalToolName,Ue as captureDaemonTelemetryContext,Bm as checkArgumentSafety,vm as checkCommandPermissions,at as checkForExtensionUpdate,Hn as checkHasEditorType,Zs as checkNpmUpdate,Xn as childProcessEnv,Fq as claimTask,vu as clampInlineMediaPart,If as clampOutputToContextWindow,qg as classifyRetryError,dq as classifyShutdownResponse,Mu as cleanSummary,bw as cleanupTmpDir,qq as clearAllInboxes,td as clearAutoMemoryRootCache,Wq as clearCacheSafeParams,Rg as clearCachedCredentialFile,pq as clearInbox,Ac as clearMatildaCorrelationHashes,bg as clearMatildaCredentials,Oj as clearRuntimeStatus,$p as clearTeammateColors,Pv as clearWelcomeBackState,Zt as clearWorktreeSession,It as cliSource,_s as cloneFromGit,nr as collectMemoryDiagnostics,Hl as collectToolCallIdsFromHistory,Cn as commandExists,Nl as compactPendingUserContentToBudget,Ml as compactTextMiddle,ll as compactionFailureText,fk as compactionUpdateFromRecord,kk as computeModelListVersion,hl as computeThresholds,ck as computeUniqueBranchTitle,Mt as computedSource,Mr as connectAndDiscover,Sr as connectToMcpServer,cs as connectionIdOf,oq as consumeUnread,gt as convertClaudeAgentConfig,it as convertClaudePluginPackage,ht as convertClaudeToMatildaConfig,Un as convertColorToHex,Do as convertToFunctionResponse,et as convertTomlToMarkdown,ut as copyExtension,hb as countFileLines,tj as countLines,$t as crawlCache,Wg as createContentGenerator,Vg as createContentGeneratorConfig,Ye as createDaemonBridgeTelemetry,Y as createDebugLogger,Yl as createDefaultAutoMemoryExtractCursor,Zl as createDefaultAutoMemoryIndex,Xl as createDefaultAutoMemoryMetadata,gn as createDenialState,wv as createFollowupController,Xq as createForkedChat,Oi as createGoalRuntime,ni as createHookOutput,Bt as createInstructionsLoadedCallback,wr as createStreamableHttpCompatibilityFetch,xq as createTask,gq as createTeamFile,aw as createTmpDir,Iu as createToolUseSummaryMessage,Tr as createTransport,Ak as customProvider,eb as decodeBufferWithEncodingInfo,Cu as decodeTagName,Jl as dedupeToolCallsById,uk as deepseekProvider,Lt as defaultSource,Bq as deleteTask,iq as deleteTeamDirs,Jj as deserializeSnapshots,db as detectBOM,xp as detectBackend,rm as detectCommandSubstitution,bb as detectEncodingFromBuffer,jb as detectFileEncoding,ob as detectFileType,jo as detectIdeFromEnv,fo as detectLineEnding,sg as detectRuntime,Di as detectTodoChanges,Kr as discoverMcpTools,Pr as discoverPrompts,Nr as discoverTools,kq as disposeInboxLocks,fm as doesToolInvocationMatch,bt as downloadFromGitHubRelease,Ys as downloadFromNpmRegistry,Dn as editorCommands,Te as emitDaemonLog,Eh as emptyGoalSnapshot,yu as encodeInsightErrorMessage,wu as encodeInsightProgressMessage,xu as encodeInsightReadyMessage,Bu as encodeTagName,go as encodeTextFileContent,rc as endHookSpan,fc as endInteractionSpan,ic as endLLMRequestSpan,uc as endSubagentSpan,pc as endToolBlockedOnUserSpan,nc as endToolExecutionSpan,lc as endToolSpan,_l as ensureAutoMemoryScaffold,eo as ensureCrlfLineEndings,_r as ensureMacBinarySigned,Zr as ensureRipgrepHealthy,Iv as ensureToolResultPairing,nj as ensureTrailingNewlineSync,am as ensureUserAutoMemoryScaffold,pf as enterReportedOperationContext,Nt as envLayer,ci as escapeJsonTagCharacters,E as escapePath,im as escapeShellArg,ve as estimateTokensFromChars,An as evaluateAutoMode,Zm as evaluatePermissionFlow,Wm as evaluatePermissionRules,Wt as evaluateSystemOne,Cv as evaluateToolCall,wm as execCommand,Eu as executeToolCall,uj as exists,B as expandHomeDir,Xe as extractDaemonTraceContext,Xa as extractExtensionsFromPatterns,dt as extractFile,Sj as extractJsonStringField,Uj as extractLastJsonStringField,Tj as extractLastJsonStringFields,en as extractShellOperations,Co as extractToolFilePaths,zj as fetchGitDiff,Aj as fetchGitDiffHunks,qb as fileExists,Kv as filter,bj as findGitRoot,fh as findInContents,bq as findMemberById,cq as findMemberByName,Ek as findProviderByCredentials,Dk as findProviderById,ct as findReleaseAsset,Ii as fireNotificationHook,Ji as firePermissionRequestHook,Hi as firePostToolUseFailureHook,Gi as firePostToolUseHook,Fi as firePreToolUseHook,ch as flatMapTextParts,Fc as forceFlushMetrics,Yp as formatAgentId,zn as formatClassifierBlockMessage,ul as formatDateForContext,hn as formatDenialStateLog,dm as formatJoinedWaitNotice,Cp as formatLineStats,bi as formatMemoryUsage,_i as formatStopHookBlockingCapWarning,T as formatTraceparent,Qp as forwardApproval,jp as generateAgentWorktreeSlug,Dg as generateCodeChallenge,Cg as generateCodeVerifier,zk as generateCustomEnvKey,Eg as generatePKCEPair,yv as generatePromptSuggestion,Hu as generateSessionRecap,Ei as generateToolUseId,Ku as generateToolUseSummary,Zp as generateUniqueTeammateName,Md as generateValidName,we as generatedOutputTokens,vc as getActiveInteractionSpan,No as getAgentName,Iq as getAgentStatuses,Oa as getAllGeminiMdFilenames,Gr as getAllMCPServerStatuses,Fk as getAllProviderBaseUrls,fl as getArenaSystemReminder,zd as getAutoMemoryConsolidationLockPath,yd as getAutoMemoryExtractCursorPath,Cd as getAutoMemoryFilePath,wd as getAutoMemoryIndexPath,xd as getAutoMemoryMetadataPath,ud as getAutoMemoryProjectStateDir,sd as getAutoMemoryRoot,Ad as getAutoMemoryTopicFilename,Bd as getAutoMemoryTopicPath,yn as getAutoModePermissionDeniedReason,Xr as getBuiltinRipgrep,Vq as getCacheSafeParams,_a as getCachedEncodingForBuffer,km as getCommandRoot,lm as getCommandRoots,bl as getCompressionPrompt,cl as getCompressionUpdatePrompt,al as getCoreSystemPrompt,Na as getCurrentGeminiMdFilename,$k as getCustomSystemPrompt,lk as getDefaultBaseUrlForProtocol,nk as getDefaultModelIds,Kn as getDiffCommand,vl as getDirectoryContextString,En as getEditorExecutable,$m as getEffectivePermissionForConfirmation,pt as getEnvContents,wl as getEnvironmentContext,c as getErrorMessage,d as getErrorStatus,e as getErrorType,vt as getExtensionId,Gn as getExternalEditorCommand,zv as getFilterReason,pl as getFolderStructure,hh as getFunctionCalls,jh as getFunctionCallsAsJson,ih as getFunctionCallsFromParts,kh as getFunctionCallsFromPartsAsJson,cj as getGitBranch,dj as getGitRepoName,ki as getHookKey,_u as getIdeInstaller,Bo as getIdeServerHost,lq as getInboxPath,Vp as getInboxesDir,Dl as getInitialChatHistory,gl as getInsightPrompt,Op as getLeader,Hr as getMCPDiscoveryState,uv as getMCPServerPrompts,Fr as getMCPServerStatus,Pf as getMatildaAuthBaseUrl,cg as getMatildaAuthStatus,zc as getMatildaCorrelationHashes,_f as getMatildaCredentialsPath,Og as getMatildaOAuthClient,su as getMaxInlineMediaBytes,rd as getMemoryBaseDir,Cs as getMonitorOutputPath,tg as getOrCreateSharedDispatcher,el as getPlanModeSystemReminder,G as getProjectHash,Qv as getProjectSummaryInfo,dl as getProjectSummaryPrompt,og as getRateLimitErrorDetails,pg as getRateLimitRetryDelayMs,ej as getRecentGitStatus,mf as getReportedOperationContext,bh as getResponseText,gh as getResponseTextFromParts,ak as getResumePromptTokenCount,bk as getResumeTokenCounts,Lm as getRuleDisplayName,ot as getScopedEnvContents,Zn as getShellAbortReasonKind,gm as getShellConfiguration,kb as getSpecificMimeType,Hm as getSpecifierKind,El as getStartupContextLength,lh as getStructuredResponse,mh as getStructuredResponseFromParts,yg as getSupportedImageFormatsString,$a as getSystemEncoding,yq as getTask,uq as getTaskPath,Wp as getTasksDir,Tp as getTeamDir,Up as getTeamFilePath,Oo as getTeamName,So as getTeammateColor,Lo as getTeammateContext,Sp as getTeamsRootDir,Vk as getThoughtText,Tu as getTimeRangeBounds,S as getTraceContext,zg as getUnsupportedImageFormatWarning,Ed as getUserAutoMemoryIndexPath,Dd as getUserAutoMemoryRoot,Fd as getUserAutoMemoryTopicPath,eg as getValidMatildaAccessToken,Nv as getWelcomeBackState,fr as globalMemoryManager,zh as goalActiveTimeBudgetReason,Sh as goalPauseReasonForFailure,Vh as goalPauseReasonForHeadlessFailure,Uh as goalPauseReasonForRepeatedGaps,Wh as goalPauseReasonForRunBudget,Th as goalPauseReasonForVerifierFailure,Fh as goalRequiresExactPermit,Pi as goalRuntimeOf,Qi as goalTaskEnd,vh as goalTokenBudgetReason,xh as goalTurnBudgetReason,nh as goalTurnContext,Jr as handleAutomaticOAuth,ma as hasCycleInSchema,Kf as hasExplicitOutputLimit,Rr as hasNetworkTransport,om as hasNonFinalTopLevelBackgroundOperator,tm as hasShellSubstitution,qm as hasUnsafeMonitorBackgroundOperator,Me as hashDaemonWorkspace,sv as hashMcpServerConfig,wt as hashValue,zt as hookEventSupportsMatcher,Ps as hydrateString,po as ideContextStore,Ze as initializeDaemonMetrics,Cc as initializeTelemetry,We as injectDaemonTraceContext,Xm as injectPermissionRulesIfMissing,Qr as invokeMcpPrompt,b as isAbortError,s as isAccountInactiveError,Hd as isAnyAutoMemPath,ig as isApiError,bn as isApprovalWaivedInPlanMode,pn as isApproveOutcome,cn as isAutoEditApproved,vd as isAutoMemPath,Wu as isBareMode,Pn as isBinary,mb as isBinaryFile,Yf as isBrowserCommandBlocked,kt as isClaudePluginConfig,zm as isCommandAllowed,ym as isCommandAvailable,Am as isCommandNeedsPermission,Yk as isCompressionFailureStatus,U as isDebugLoggingDegraded,jn as isDenialFallbackReason,Hg as isDeviceAuthorizationSuccess,Jg as isDeviceTokenPending,Ig as isDeviceTokenSuccess,Jn as isEditorAvailable,Ur as isEnabled,Kg as isErrorResponse,Pk as isExcludedFromModelReplay,Sk as isFinalAnswerResponse,ku as isGatedMcpScope,lg as isGenericQuotaExceededError,aj as isGitRepository,Ah as isGoalActiveTimeBudgetSpent,Dh as isGoalEvidenceProofKind,Bh as isGoalLimitKind,wh as isGoalTokenBudgetSpent,yh as isGoalTurnBudgetSpent,Mo as isInProcessTeammate,sn as isInSafeToolAllowlist,Tl as isInvalidArgumentError,mg as isMatildaQuotaExceededError,Mn as isModifiableDeclarativeTool,a as isNodeError,op as isPathWithinRoot,Pb as isPerformanceMonitoringActive,an as isPlanModeBlocked,kg as isProQuotaExceededError,Ul as isProcessAlive,ng as isRateLimitError,Gh as isRepeatedBlockerProposal,lf as isReportedOperationHeaderName,rg as isRetryableUpstreamError,Ce as isRuntimeDiagnosticsEnabled,Sl as isSchemaDepthError,Ws as isScopedNpmPackage,mu as isSdkMcpServerConfig,M as isSessionTranscript,Ba as isSettledStatus,jg as isStructuredError,I as isSubpath,J as isSubpaths,Aa as isSuccessStatus,xg as isSupportedImageMimeType,Ut as isSystemOneOrigin,Fl as isSystemReminderContent,Ro as isTeamLead,Qo as isTeammate,Bc as isTelemetrySdkInitialized,Fn as isTerminalEditor,za as isTerminalStatus,ft as isTomlFormat,la as isTool,em as isToolEnabled,Zg as isTransientCapacityError,_g as isUnattendedMode,Nk as isUserAuthoredPromptRecord,Gd as isUserAutoMemPath,Bn as isValidEditorType,Ol as isValidNonThoughtTextPart,hm as isWindows,lb as isWithinRoot,Lf as knownTokenLimit,Ot as layer,Or as listMcpPrompts,Cq as listTasks,jq as listTeamNames,au as loadIgnoreRules,Ft as loadServerHierarchicalMemory,Su as loadUsageHistory,Pc as logApiCancel,Oc as logApiError,Lc as logApiRequest,Qc as logApiResponse,ed as logArenaAgentCompleted,fd as logArenaSessionEnded,dd as logArenaSessionStarted,bd as logAuth,Vc as logChatCompression,Uc as logConversationFinishedEvent,ad as logExtensionDisable,$c as logExtensionEnable,Yc as logExtensionInstallEvent,Zc as logExtensionUninstall,_c as logExtensionUpdateEvent,Mc as logFlashFallback,Tc as logIdeConnection,Wc as logKittySequenceOverflow,jd as logMemoryDream,id as logMemoryExtract,kd as logMemoryRecall,Xc as logModelSlashCommand,Rc as logNextSpeakerCheck,gd as logPromptSuggestion,Nc as logRipgrepFallback,cd as logSkillLaunch,Sc as logSlashCommand,hd as logSpeculation,Gc as logStartSession,Jc as logToolCall,Kc as logToolOutputTruncated,Hc as logUserPrompt,Ic as logUserRetry,Qf as loginToMatilda,hg as loginToMatildaWithBrowser,dg as logoutMatilda,ne as makeArenaAgentCompletedEvent,oe as makeArenaSessionEndedEvent,me as makeArenaSessionStartedEvent,ae as makeChatCompressionEvent,Wv as makeFakeConfig,D as makeRelative,_d as makeSlashCommandEvent,Pm as matchesCommandPattern,Sm as matchesDomainPattern,Tm as matchesMcpPattern,Rm as matchesPathPattern,Um as matchesRule,Ng as matildaOAuth2Events,Of as matildaProvider,mt as maybePromptForSettings,Yn as mcpServerProcessEnv,Ar as mcpServerRequiresOAuth,ks as mcpTransportOf,jt as mergeClaudeConfigs,Ou as metricsToUsageRecord,vk as minimaxProvider,Kt as modelProvidersSource,Vf as modelRegistryKey,xk as modelscopeProvider,Nn as modifyWithEditor,_m as needsConfirmation,bo as needsUtf8Bom,Jf as normalize,Qn as normalizeContent,Il as normalizeModelToolCallIds,pm as normalizeMonitorCommand,Dt as normalizeProxyUrl,ts as normalizeSkillPriority,Yi as normalizeStopHookBlockingCap,ye as normalizeStoredModelUsage,Pu as normalizeUsageRecord,wq as notifyTasksUpdated,vq as onTasksUpdated,Ag as openBrowserSecurely,Ln as openDiff,tk as openRouterProvider,Be as openaiLogger,uu as oversizedMediaPlaceholder,qs as parse,$i as parseAndFormatApiError,He as parseBooleanEnvFlag,ds as parseConnectionId,Ej as parseDeletedFromNameStatus,Cj as parseGitDiff,$s as parseGitHubRepoForReleases,Bj as parseGitNumstat,zu as parseInsightMessage,tv as parseInstallSource,kj as parseLineTolerant,Vs as parseNpmPackageSource,Jm as parseRule,Km as parseRules,Dj as parseShortstat,Ie as parseTelemetryTargetValue,Uk as parseThought,qu as partListUnionToString,ah as partToString,vn as passesAcceptEditsFastPath,Ss as performVariableReplacement,Ym as persistPermissionOutcome,Nu as persistSessionUsage,Lr as populateMcpServerCommand,eh as prependToFirstTextPart,pb as processSingleFileContent,cw as projectGoalCard,nt as promptForSetting,Vn as promptIdContext,pk as providerMatchesCredentials,mj as read,$l as readAutoMemoryIndex,gb as readFileWithEncoding,fb as readFileWithEncodingInfo,ib as readFileWithLineAndLimit,mq as readInbox,Qj as readLastConversationTimestampSync,Vj as readLastJsonStringFieldSync,Wj as readLastJsonStringFieldsSync,lj as readLines,Rv as readManyFiles,$f as readMatildaCredentials,Mv as readPathFromWorkspace,Nj as readRuntimeStatus,eq as readTeamFile,bm as readUserAutoMemoryIndex,Xt as readWorktreeSession,dp as readWorktreeSessionMarker,kn as recordAllow,zb as recordApiErrorMetrics,Lb as recordApiRequestBreakdown,yb as recordApiResponseMetrics,Eb as recordApiRetry,Rb as recordArenaAgentCompletedMetrics,Sb as recordArenaSessionEndedMetrics,Qb as recordArenaSessionStartedMetrics,Ob as recordBaselineComparison,ln as recordBlock,Cb as recordContentRetry,Db as recordContentRetryFailure,Hb as recordCpuUsage,ef as recordDaemonBridgeError,ff as recordDaemonCancel,bf as recordDaemonChannelLifecycle,Se as recordDaemonError,$e as recordDaemonHttpRequest,Qe as recordDaemonHttpResponse,df as recordDaemonPromptDuration,cf as recordDaemonPromptQueueWait,af as recordDaemonSessionLifecycle,on as recordFallbackApprove,Ab as recordFileOperationMetric,Bb as recordInvalidChunk,Ub as recordMemoryDreamMetrics,Tb as recordMemoryExtractMetrics,Vb as recordMemoryRecallMetrics,Gb as recordMemoryUsage,Nb as recordPerformanceRegression,Mb as recordPerformanceScore,Ui as recordStartupEvent,Fb as recordStartupPerformance,Kb as recordTokenEfficiency,xb as recordTokenUsageMetrics,wb as recordToolCallMetrics,Jb as recordToolExecutionBreakdown,Ib as recordToolQueueDepth,mn as recordUnavailable,ai as recoverGoalFromRecords,Qs as recursivelyHydrateStrings,ug as redactProxyCredentials,Kl as redactStructuredOutputArgsForRecording,Us as redactUrlCredentials,Qu as reestimateUsageFromAssistantRecord,fg as refreshMatildaCredentials,Dc as refreshSessionContext,_e as registerDaemonGaugeCallbacks,Np as registerLeader,Gq as releaseOwnedTask,Ri as releaseUnstartedGoalTurn,Si as releaseWithdrawnGoalTurn,Er as removeMCPServerStatus,Cr as removeMCPStatusChangeListener,Z as renameWithRetry,aa as renameWithRetrySync,Ql as repairOrphanedToolUseTurns,$j as replayUiTelemetryFromConversation,vf as reportCliAuthFunnelEvent,uf as reportCliClientEvent,ir as reportedAttemptPurposeForSendMessageType,V as resetDebugLoggingState,qn as resetDenialState,Za as resetEncodingCache,Dq as resetTaskList,co as resetUtf8BomCache,Po as resolveActiveTeamName,N as resolveAndValidatePath,mk as resolveBaseUrl,Wr as resolveBundleDir,xm as resolveCommandPath,Tg as resolveContentGeneratorConfigWithSources,Gt as resolveField,Fj as resolveGitDir,Ik as resolveLocalHistoryAccountScopeId,Jk as resolveLocalHistoryAccountScopeIdForCredentials,Nq as resolveMaxConcurrentBackgroundAgents,hk as resolveMetadataKey,Pt as resolveModelConfig,Xg as resolveModelId,Xs as resolveNpmRegistry,ze as resolveOpenAILogDir,Ht as resolveOptionalField,gk as resolveOwnsModel,K as resolvePath,_k as resolvePathFromEnv,Qm as resolvePathPattern,Yr as resolveRipgrep,Zi as resolveStopHookBlockingCap,Je as resolveTelemetrySettings,Gm as resolveToolName,_t as restoreWorktreeContext,$g as retryWithBackoff,Dv as rewritePathArgs,Ru as rewriteUsageHistoryFromChats,rf as runAsyncGeneratorWithReportedOperationContext,Zq as runForkedAgent,tc as runInSubagentSpanContext,kc as runInToolSpanContext,as as runRipgrep,Zh as runSideQuery,Ve as runWithDaemonTelemetryContext,X as runWithDebugLogSession,Yq as runWithForkedChatModel,qf as runWithReportedAttemptPurpose,of as runWithReportedOperationContext,To as runWithTeammateIdentity,Ee as runtimeDiagnostics,wa as safeAgentId,On as safeLiteralReplace,H as sanitizeCwd,Xb as sanitizeHookName,Xp as sanitizeName,ek as sanitizeTitle,Mk as sanitizeToolCallResultForRecording,mi as sanitizeUserPromptExpansionAdditionalContext,Uq as saveCacheSafeParams,Ov as saveWelcomeBackRestartChoice,rq as sendStructuredMessage,Ij as serializeSnapshot,Tn as serializeTerminalToObject,Rn as serializeTerminalToText,Wn as sessionIdContext,W as setDebugLogSession,Ma as setGeminiMdFilename,Ir as setMCPDiscoveryState,yc as setMatildaCorrelationHashes,aq as setMemberActive,Ti as setStartupEventSink,Jt as settingsSource,C as shortenPath,Zf as shouldAttemptBrowserLaunch,Cm as shouldDefaultToNodePty,nn as shouldFallback,Av as shouldFilterSuggestion,xn as shouldFirePermissionDeniedForAutoMode,un as shouldForceAutoModeReviewForAllow,Bg as shouldLaunchBrowser,tn as shouldRunAutoModeForCall,ok as shouldShowStep,Ec as shutdownTelemetry,jl as sleepInhibitor,nb as sniffImageMimeType,jm as splitCommands,Om as splitCompoundCommand,us as splitConditionalSkills,qc as startHookSpan,ec as startInteractionSpan,hc as startLLMRequestSpan,Fv as startSpeculation,sc as startSubagentSpan,oc as startToolBlockedOnUserSpan,mc as startToolExecutionSpan,jc as startToolSpan,jr as startsReportedOperation,rs as stringify,Sf as stripRuntimeSnapshotPrefix,mm as stripShellWrapper,Gl as stripStartupContext,ij as stripTerminalControlSequences,nm as stripTrailingBackgroundAmp,Sv as subagentGenerator,Rs as substituteHookVariables,Ge as summarizeAnthropicWireRequest,Fe as summarizeOpenAIWireRequest,Ap as summarizeUnifiedDiff,Ko as teammateIdentityStore,Io as templateString,A as tildeifyPath,u as toFriendlyError,Dm as toPosixPath,Mf as tokenLimit,Im as toolMatchesRuleToolName,xe as totalTokensFromBuckets,Yb as truncateContent,Lu as truncateJson,dc as truncateSpanError,dk as tryGenerateSessionTitle,hq as tryReclaimStaleTeam,ta as uiTelemetryService,Hq as unassignTeammateTasks,Rj as unescapeJsonString,F as unescapePath,Pp as unregisterLeader,Dr as updateMCPServerStatus,qt as updateSetting,P as updateSymlink,Aq as updateTask,Kh as validateGoalPauseReason,Ih as validateGoalProposalReason,Ug as validateModelConfig,xt as validateName,L as validatePath,Os as validateVariables,gg as willOpenMatildaAuthBrowser,ab as windowsCodePageToEncoding,Pe as withDaemonBridgeSpan,Oe as withDaemonRequestSpan,Ne as withDaemonSpan,Ki as withGoalProgressNotice,gc as withInteractionSpan,sf as withReportedAttemptPurpose,ap as worktreeBranchForSlug,Rp as wrapConfirmWithBadge,sj as write,pj as writeLine,rj as writeLineSync,ag as writeMatildaCredentials,nq as writeMessage,Mj as writeRuntimeStatus,fq as writeTeamFile,Yu as writeWorkspaceContextFile,Yt as writeWorktreeSession,cp as writeWorktreeSessionMarker,wk as zaiProvider};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{d as w,e as A}from"./chunk-MTMU7JYZ.js";import{g as h,i as x,p as d,q as S}from"./chunk-
|
|
3
|
+
import{d as w,e as A}from"./chunk-MTMU7JYZ.js";import{g as h,i as x,p as d,q as S}from"./chunk-6E766NPX.js";import{ba as g}from"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import{b as u}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";u();import C from"node:path";u();import k from"node:fs/promises";import f from"node:path";u();var D={".ts":"typescript",".tsx":"typescript",".js":"javascript",".jsx":"javascript",".mjs":"javascript",".cjs":"javascript",".py":"python",".go":"go",".rs":"rust",".java":"java"},T={typescript:[{kind:"interface",re:/^\s*(?:export\s+)?interface\s+([A-Za-z_$][\w$]*)/},{kind:"type",re:/^\s*(?:export\s+)?type\s+([A-Za-z_$][\w$]*)\s*=/},{kind:"enum",re:/^\s*(?:export\s+)?enum\s+([A-Za-z_$][\w$]*)/},{kind:"class",re:/^\s*(?:export\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/},{kind:"function",re:/^\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/},{kind:"const",re:/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:\(|function\b)/},{kind:"method",re:/^\s+(?:public|private|protected|async|static|readonly|\s)*([A-Za-z_$][\w$]*)\s*\([^;]*\)\s*[:{]/}],javascript:[{kind:"class",re:/^\s*(?:export\s+)?class\s+([A-Za-z_$][\w$]*)/},{kind:"function",re:/^\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/},{kind:"const",re:/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:\(|function\b)/}],python:[{kind:"class",re:/^\s*class\s+([A-Za-z_][\w]*)\s*[(:]/},{kind:"function",re:/^\s*(?:async\s+)?def\s+([A-Za-z_][\w]*)\s*\(/}],go:[{kind:"function",re:/^func\s+(?:\([^)]+\)\s+)?([A-Za-z_][\w]*)\s*\(/},{kind:"type",re:/^type\s+([A-Za-z_][\w]*)\s+(?:struct|interface|func|=)/}],rust:[{kind:"function",re:/^\s*(?:pub(?:\([^)]*\))?\s+)?(?:async\s+)?fn\s+([A-Za-z_][\w]*)/},{kind:"class",re:/^\s*(?:pub(?:\([^)]*\))?\s+)?(?:struct|enum|trait)\s+([A-Za-z_][\w]*)/}],java:[{kind:"class",re:/^\s*(?:public|private|protected)?\s*(?:abstract|final)?\s*class\s+([A-Za-z_][\w]*)/},{kind:"interface",re:/^\s*(?:public|private|protected)?\s*interface\s+([A-Za-z_][\w]*)/},{kind:"method",re:/^\s+(?:public|private|protected)\s+(?:static\s+)?[\w<>,\s[\]]+\s+([A-Za-z_][\w]*)\s*\(/}]};function y(m){let i=m.toLowerCase(),t=i.lastIndexOf(".");if(!(t<0))return D[i.slice(t)]}function _(m,i){let t=y(m);if(!t)return[];let o=T[t];if(!o)return[];let a=[],r=i.split(/\r?\n/);for(let e=0;e<r.length;e++){let s=r[e];for(let{kind:c,re:n}of o){let l=n.exec(s);if(l?.[1]&&!(l[1]==="if"||l[1]==="for"||l[1]==="while"||l[1]==="switch")){a.push({name:l[1],kind:c,filePath:m,line:e+1,snippet:s.trim().slice(0,200)});break}}}return a}var z=2e3,E=512*1024,p=class{constructor(i,t,o={}){this.rootDir=i;this.filePaths=t;this.opts=o}symbols=[];built=!1;async build(i){let t=this.opts.maxFiles??z,o=this.opts.maxFileBytes??E,a=[],r=0;for(let e of this.filePaths){if(i?.aborted||r>=t)break;let s=f.isAbsolute(e)?e:f.join(this.rootDir,e);if(!y(s))continue;let c;try{let l=await k.stat(s);if(!l.isFile()||l.size>o)continue;c=await k.readFile(s,"utf8")}catch{continue}let n=f.relative(this.rootDir,s)||s;a.push(..._(n,c)),r+=1}return this.symbols=a,this.built=!0,this.symbols.length}isBuilt(){return this.built}size(){return this.symbols.length}search(i){let t=i.query.trim().toLowerCase();if(!t)return[];let o=i.maxResults??25,a=i.pathPrefix?.replace(/\\/g,"/").toLowerCase(),r=[];for(let e of this.symbols){if(i.kind&&e.kind!==i.kind||a&&!e.filePath.replace(/\\/g,"/").toLowerCase().includes(a))continue;let s=e.name.toLowerCase(),c=0;if(s===t)c=100;else if(s.startsWith(t))c=80;else if(s.includes(t))c=50;else if(e.snippet.toLowerCase().includes(t))c=20;else continue;r.push({s:e,score:c})}return r.sort((e,s)=>s.score-e.score||e.s.filePath.localeCompare(s.s.filePath)),r.slice(0,o).map(e=>e.s)}};var $=g("SYMBOL_SEARCH"),v=new Map,F=6e4,b=class extends h{constructor(t,o){super(o);this.config=t}async getDefaultPermission(){return"allow"}getDescription(){return`Find symbol \`${this.params.query}\``}async execute(t){let o=this.params.query?.trim();if(!o)return{llmContent:"Error: query is required",returnDisplay:"Error: query is required",error:{message:"query is required",type:"invalid_tool_params"}};let a=this.config.getTargetDir();try{let r=await this.getOrBuildIndex(a,t),e=r.search({query:o,pathPrefix:this.params.path,kind:this.params.kind,maxResults:this.params.max_results??25});if(e.length===0)return{llmContent:`No symbols matching "${o}". Try grep_search for textual matches.`,returnDisplay:"No symbols found"};let s=e.map(n=>`${n.kind} ${n.name} \u2014 ${n.filePath}:${n.line}
|
|
4
4
|
${n.snippet}`);return{llmContent:[`Found ${e.length} symbol(s) for "${o}" (index size ${r.size()}):`,...s].join(`
|
|
5
5
|
`),returnDisplay:`Found ${e.length} symbol(s)`}}catch(r){let e=r instanceof Error?r.message:String(r);return $.debug(`symbol_search failed: ${e}`),{llmContent:`symbol_search failed: ${e}`,returnDisplay:"symbol_search failed",error:{message:e,type:"execution_failed"}}}}async getOrBuildIndex(t,o){let a=v.get(t);if(a&&Date.now()-a.builtAt<F&&a.index.isBuilt())return a.index;let r=A({projectRoot:t,useGitignore:!0,useMatildaignore:!0,ignoreDirs:["node_modules","dist",".git","coverage","vendor"]}),e=[];try{e=await w({crawlDirectory:t,cwd:t,ignore:r,useGitignore:!0,maxDepth:12,maxFiles:5e3,cache:!0,cacheTtl:60})}catch(n){$.debug(`crawl failed, indexing empty: ${n instanceof Error?n.message:String(n)}`),e=[]}if(o.aborted)throw new Error("symbol_search aborted");let s=e.map(n=>C.isAbsolute(n)&&C.relative(t,n)||n),c=new p(t,s);return await c.build(o),v.set(t,{index:c,builtAt:Date.now()}),c}},P=class extends x{constructor(t){super(d.SYMBOL_SEARCH,S.SYMBOL_SEARCH,"Search the workspace for code symbols (functions, classes, types, methods) by name. Prefer this over blind grep when looking for definitions. Falls back gracefully when a language is not indexed.","search",{type:"object",properties:{query:{type:"string",description:"Symbol name or substring to find"},path:{type:"string",description:"Optional path prefix to limit the search"},kind:{type:"string",enum:["function","class","method","interface","type","const","enum"],description:"Optional symbol kind filter"},max_results:{type:"number",description:"Maximum results to return (default 25)"}},required:["query"]});this.config=t}static Name=d.SYMBOL_SEARCH;createInvocation(t){return new b(this.config,t)}};export{P as SymbolSearchTool};
|
|
6
6
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a,b}from"./chunk-
|
|
3
|
+
import{a,b}from"./chunk-YRQP3SLC.js";import"./chunk-6E766NPX.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{a as STRUCTURED_OUTPUT_REDACTED_ARGS,b as SyntheticOutputTool};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{a,b}from"./chunk-VTGICC67.js";import"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import"./chunk-QKYGQLWC.js";import"./chunk-6E766NPX.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{b as TaskCreateTool,a as truncateForConfirmation};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as d}from"./chunk-
|
|
3
|
+
import{a as d}from"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import{g as i,i as c,p as n,q as u}from"./chunk-6E766NPX.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import{b as a}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";a();var o=class extends i{constructor(r,e){super(e);this.config=r}getDescription(){return`Detach background task ${this.params.task_id}`}async execute(r){let e=this.params.task_id,t=this.config.getBackgroundTaskRegistry().get(e)??this.config.getBackgroundShellRegistry().get(e)??this.config.getMonitorRegistry().get(e);return t?t.status!=="running"?{llmContent:`Error: Background ${t.kind} "${e}" is not running (status: ${t.status}).`,returnDisplay:`Task not running (${t.status}).`,error:{message:`${t.kind} is ${t.status}: ${e}`,type:"task_detach_not_running"}}:{llmContent:(d.detach(t)?`Detached background ${t.kind} "${e}". It keeps running after the current request ends and reports its completion separately. Stop it with ${n.TASK_STOP} when it is no longer needed.`:`Background ${t.kind} "${e}" is not holding a request open; it keeps running.`)+`
|
|
4
4
|
Description: ${t.description}`,returnDisplay:`Detached: ${t.description}`}:{llmContent:`Error: No background task found with ID "${e}".`,returnDisplay:"Task not found.",error:{message:`Task not found: ${e}`,type:"task_detach_not_found"}}}},l=class s extends c{constructor(r){super(s.Name,u.TASK_DETACH,"Let a running background task keep running after the current request ends. Background tasks join the request that started them by default, and the request cannot finish until they do. Detach servers, watchers and other work that should outlive the request; its completion is reported separately.","other",{type:"object",properties:{task_id:{type:"string",description:"The ID of the background task to detach (from the launch response or notification)."}},required:["task_id"],additionalProperties:!1},!0,!1,!0,!1,"task detach background server watcher keep running");this.config=r}static Name=n.TASK_DETACH;createInvocation(r){return new o(this.config,r)}};export{l as TaskDetachTool};
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{k as d}from"./chunk-
|
|
3
|
+
import{k as d}from"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import{e as u,f as g}from"./chunk-QKYGQLWC.js";import{g as l,i as m,p,q as c}from"./chunk-6E766NPX.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import{b as n}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";n();var r=class extends l{constructor(t,a){super(a);this.config=t}getDescription(){let t=[];return this.params.status&&t.push(`status=${this.params.status}`),this.params.owner&&t.push(`owner=${this.params.owner}`),this.params.blockedBy&&t.push(`blockedBy=${this.params.blockedBy}`),t.length>0?`List tasks (${t.join(", ")})`:"List all tasks"}async execute(){let t=g(this.config.getTeamContext()?.teamName);if(!t){let s="No active team. Create a team first.";return{llmContent:s,returnDisplay:s,error:{message:s}}}let a=await d(t,{status:this.params.status,owner:this.params.owner,blockedBy:this.params.blockedBy});if(a.length===0){let s="No tasks found.";return{llmContent:s,returnDisplay:s}}let e=a.map(s=>`#${s.id} [${s.status}]`+(s.owner?` @${s.owner}`:"")+` \u2014 ${s.subject}`),o=this.config.getTeamManager();if(o&&!u()){try{let s=await o.getLeaderMessages();if(s.length>0){e.push(""),e.push("--- Teammate messages ---");for(let y of o.formatLeaderEnvelope(s))e.push(y)}}catch{}o.hasActiveTeammates()&&(e.push(""),e.push("NOTE: Teammates are still working. Their results will be delivered as messages \u2014 do NOT call task_list again to check. End your turn and wait for teammate messages."))}let h=e.join(`
|
|
4
4
|
`),k={type:"task_list",tasks:a.map(s=>({id:s.id,subject:s.subject,status:s.status,owner:s.owner}))};return{llmContent:h,returnDisplay:k}}},f=class i extends m{constructor(t){super(i.Name,c.TASK_LIST,"List tasks in the team task list. All filter parameters are optional.","read",{type:"object",properties:{status:{type:"string",enum:["pending","in_progress","completed"],description:"Filter by task status."},owner:{type:"string",description:"Filter by owner agent name."},blockedBy:{type:"string",description:"Filter for tasks blocked by this task ID."}},additionalProperties:!1});this.config=t}static Name=p.TASK_LIST;createInvocation(t){return new r(this.config,t)}};export{f as TaskListTool};
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{g as T,i as y,p as h,q as $}from"./chunk-
|
|
3
|
+
import{g as T,i as y,p as h,q as $}from"./chunk-6E766NPX.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import{b as f}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";f();var u=class extends T{constructor(e,t){super(t);this.config=e}getDescription(){return`Stop background task ${this.params.task_id}`}async execute(e){let t=this.params.task_id,d=this.config.getBackgroundTaskRegistry(),a=d.get(t);if(a){if(a.status==="paused"){if(!this.config.abandonBackgroundAgent(t))return{llmContent:`Error: Background agent "${t}" could not be cancelled from paused state.`,returnDisplay:"Task could not be cancelled.",error:{message:`Task could not be cancelled: ${t}`,type:"task_stop_not_running"}};let k=a.description;return{llmContent:`Cancelled paused background agent "${t}".
|
|
4
4
|
Description: ${k}`,returnDisplay:`Cancelled: ${k}`}}if(a.status!=="running")return l("agent",t,a.status);d.cancel(t);let c=a.description;return{llmContent:`Cancellation requested for background agent "${t}". A final task-notification carrying the agent's last result will follow.
|
|
5
5
|
Description: ${c}`,returnDisplay:`Cancelled: ${c}`}}let g=this.config.getBackgroundShellRegistry(),r=g.get(t);if(r)return r.status!=="running"?l("shell",t,r.status):(g.requestCancel(t),{llmContent:`Cancellation requested for background shell "${t}". Final status will be visible via /tasks (text) or the interactive Background tasks dialog (focus the footer Background tasks pill, then Enter) once the process drains; captured output remains at ${r.outputPath}.
|
|
6
6
|
Command: ${r.command}`,returnDisplay:`Cancelled shell: ${r.command}`});let m=this.config.getMonitorRegistry(),s=m.get(t);if(s)return s.status!=="running"?l("monitor",t,s.status):(m.cancel(t),{llmContent:`Monitor "${t}" cancelled. Status is visible via /tasks (text) or the interactive Background tasks dialog (focus the footer Background tasks pill, then Enter).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{a as N}from"./chunk-
|
|
3
|
+
import{a as N}from"./chunk-VTGICC67.js";import{a as h,b as f,g as $,h as y,i as g,j as v,k as I}from"./chunk-2MOGYHWM.js";import"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import{d as k,f as j,g as P}from"./chunk-QKYGQLWC.js";import{g as T,i as C,p as b,q as D}from"./chunk-6E766NPX.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import{b as w}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";w();async function A(u,n,e,s){let i=await I(u),d=new Map,l=(t,r)=>{let a=d.get(t);a||(a=new Set,d.set(t,a)),a.add(r)};for(let t of i){for(let r of t.blocks)l(t.id,r);for(let r of t.blockedBy)l(r,t.id)}for(let t of e)l(n,t);for(let t of s)l(t,n);let o=[],c=new Set,p=t=>{o.push(t);for(let r of d.get(t)??[]){if(r===n)return[...o,n];if(c.has(r))continue;c.add(r);let a=p(r);if(a)return a}return o.pop(),null};return c.add(n),p(n)}var B=class extends T{constructor(e,s){super(s);this.config=e}getDescription(){let e=[`Task #${this.params.taskId}`];return this.params.status&&e.push(`\u2192 ${this.params.status}`),this.params.owner&&e.push(`owner: ${this.params.owner}`),e.join(" ")}async getDefaultPermission(){return"ask"}getConfirmationDetails(e){let s=[this.getDescription()];this.params.subject!==void 0&&s.push(`subject: ${this.params.subject}`),this.params.addBlocks?.length&&s.push(`blocks: ${this.params.addBlocks.join(", ")}`),this.params.addBlockedBy?.length&&s.push(`blocked by: ${this.params.addBlockedBy.join(", ")}`),this.params.description!==void 0&&s.push("",N(this.params.description));let i={type:"info",title:"Confirm TaskUpdate",prompt:s.join(`
|
|
4
4
|
`),onConfirm:async()=>{}};return Promise.resolve(i)}async execute(){let e=j(this.config.getTeamContext()?.teamName);if(!e){let t="No active team. Create a team first.";return{llmContent:t,returnDisplay:t,error:{message:t}}}let{taskId:s}=this.params;try{f(s);for(let t of this.params.addBlocks??[])f(t);for(let t of this.params.addBlockedBy??[])f(t)}catch(t){let r=t instanceof Error?t.message:String(t);return{llmContent:r,returnDisplay:r,error:{message:r}}}let i=P()?k():void 0;if(this.params.status==="deleted"){let t;try{t=await v(e,s,i!==void 0?{callerName:i}:void 0)}catch(a){if(a instanceof y)return{llmContent:a.message,returnDisplay:a.message,error:{message:a.message}};throw a}if(!t){let a=`Task #${s} not found.`;return{llmContent:a,returnDisplay:a,error:{message:a}}}let r=`Task #${s} deleted.`;return{llmContent:r,returnDisplay:r}}if(this.params.addBlocks?.includes(s)||this.params.addBlockedBy?.includes(s)){let t=`Cannot update task #${s}: a task cannot block or be blocked by itself.`;return{llmContent:t,returnDisplay:t,error:{message:t}}}let d=new Set;for(let t of this.params.addBlocks??[])t!==s&&d.add(t);for(let t of this.params.addBlockedBy??[])t!==s&&d.add(t);if(d.size>0){let t=[];if(await Promise.all(Array.from(d).map(async a=>{await $(e,a)||t.push(a)})),t.length>0){let a=t.sort().map(U=>`#${U}`).join(", "),m=`Cannot update task #${s}: referenced task${t.length===1?"":"s"} ${a} not found.`;return{llmContent:m,returnDisplay:m,error:{message:m}}}let r=await A(e,s,this.params.addBlocks??[],this.params.addBlockedBy??[]);if(r){let a=`Cannot update task #${s}: this would create a dependency cycle (${r.map(m=>`#${m}`).join(" \u2192 ")}).`;return{llmContent:a,returnDisplay:a,error:{message:a}}}}let l=this.params.status==="in_progress"&&this.params.owner===void 0?k():void 0;if(this.params.status==="in_progress"&&!this.params.owner&&!l){let t=`Cannot move task #${s} to in_progress without an owner. Specify the "owner" parameter.`;return{llmContent:t,returnDisplay:t,error:{message:t}}}let o;try{o=await g(e,s,{status:this.params.status,owner:this.params.owner??l,subject:this.params.subject,description:this.params.description,activeForm:this.params.activeForm,metadata:this.params.metadata,addBlocks:this.params.addBlocks,addBlockedBy:this.params.addBlockedBy},i!==void 0?{callerName:i}:void 0)}catch(t){if(t instanceof y)return{llmContent:t.message,returnDisplay:t.message,error:{message:t.message}};throw t}if(!o){let t=`Task #${s} not found.`;return{llmContent:t,returnDisplay:t,error:{message:t}}}let c=[];if(this.params.addBlocks?.length&&this.params.status!=="completed")for(let t of this.params.addBlocks)t!==s&&c.push(g(e,t,{addBlockedBy:[s]},{callerName:h}));if(this.params.addBlockedBy?.length)for(let t of this.params.addBlockedBy)t!==s&&c.push(g(e,t,{addBlocks:[s]},{callerName:h}));c.length>0&&await Promise.all(c);let p=`Task #${s} updated (status: ${o.status}`+(o.owner?`, owner: ${o.owner}`:"")+").";return{llmContent:p,returnDisplay:p}}},S=class u extends C{constructor(e){super(u.Name,D.TASK_UPDATE,'Update an existing task. Can change status, owner, subject, description, and blocking relationships. Set status to "deleted" to remove a task. Setting status to "in_progress" auto-assigns you as owner if no owner is set.',"other",{type:"object",properties:{taskId:{type:"string",description:"ID of the task to update."},status:{type:"string",enum:["pending","in_progress","completed","deleted"],description:"New task status."},owner:{type:"string",description:"New owner agent name. Set to empty string to unassign."},subject:{type:"string",maxLength:200,description:"Updated task title."},description:{type:"string",maxLength:1e4,description:"Updated task description."},activeForm:{type:"string",maxLength:200,description:"Present tense label for UI."},metadata:{type:"object",description:"Metadata to merge. Set a key to null to delete it."},addBlocks:{type:"array",items:{type:"string"},description:"Task IDs that this task blocks."},addBlockedBy:{type:"array",items:{type:"string"},description:"Task IDs that block this task."}},required:["taskId"],additionalProperties:!1});this.config=e}static Name=b.TASK_UPDATE;createInvocation(e){return new B(this.config,e)}toAutoClassifierInput(e){return{taskId:e.taskId,status:e.status,owner:e.owner,subject:e.subject,description:e.description,addBlocks:e.addBlocks,addBlockedBy:e.addBlockedBy}}};export{S as TaskUpdateTool};
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{
|
|
3
|
+
import{Ag as u,Lg as D}from"./chunk-3WBC3IIX.js";import"./chunk-M53RP3YP.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-2HTPVSGT.js";import{l as A}from"./chunk-MO2HXJG5.js";import{l as C}from"./chunk-2MOGYHWM.js";import{e as w,h as T,i as k,j as b,t as o,u as v}from"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-WV3IUPZS.js";import"./chunk-RNKDFE2S.js";import"./chunk-WXCEBLRE.js";import"./chunk-MCQUPLRE.js";import"./chunk-47XR7IMP.js";import"./chunk-GTVCJCHR.js";import"./chunk-CZGZ3KK7.js";import"./chunk-HYVP4472.js";import{k as f,l as y}from"./chunk-QKYGQLWC.js";import"./chunk-6EQMZNIY.js";import"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-AQQOBDEP.js";import"./chunk-YV3PUOBU.js";import"./chunk-P3G4HEXP.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-JCE3JAVC.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import{g as c,i as g,p as h,q as p}from"./chunk-6E766NPX.js";import"./chunk-ZYCVL46M.js";import"./chunk-ET7ZXQ3A.js";import"./chunk-VI74YQQO.js";import"./chunk-3YLXGE6T.js";import"./chunk-LUNDTQ3G.js";import{b as d}from"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as l}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";l();var i=class extends c{constructor(e,a){super(a);this.config=e}getDescription(){return`Create team "${this.params.team_name}"`}async execute(){let e=k(this.params.team_name);if(!e){let t="Team name is required.";return{llmContent:t,returnDisplay:t,error:{message:t}}}if(this.config.getArenaManager()){let t="Cannot create a team while an Arena session is active. End the Arena session first.";return{llmContent:t,returnDisplay:t,error:{message:t}}}if(this.config.getTeamManager()){let t="A team is already active. Delete it before creating a new one.";return{llmContent:t,returnDisplay:t,error:{message:t}}}let a=b(y,e),s={name:e,description:this.params.description,createdAt:Date.now(),leadAgentId:a,leadSessionId:this.config.getSessionId(),leadPid:process.pid,members:[]};try{await o(e,s)}catch(t){if(d(t)&&t.code==="EEXIST"){if(!await v(e)){let n=`Team "${e}" already exists and appears to be owned by a live matilda-code session. Pick a different name, or \u2014 if you're sure no other session is using it \u2014 remove the on-disk artifacts manually:
|
|
4
4
|
rm -rf "${w(e)}" "${T(e)}"`;return{llmContent:n,returnDisplay:n,error:{message:n}}}await o(e,s)}else throw t}await C(e),await A(e);let m=new u(this.config);await m.init();let x=new D(m,s,this.config.getSubagentManager(),{maxTeammates:this.config.getAgentsSettings().team?.maxTeammates});this.config.setTeamManager(x);let N={teamName:e,leadAgentId:a,teammates:{}};this.config.setTeamContext(N);let E={type:"team_result",teamName:e,action:"created"};return{llmContent:`Team "${e}" created.`+(this.params.description?` Description: ${this.params.description}`:""),returnDisplay:E}}},I=class r extends g{constructor(e){super(r.Name,p.TEAM_CREATE,`# TeamCreate
|
|
5
5
|
|
|
6
6
|
## When to Use
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{c as T,f}from"./chunk-
|
|
3
|
+
import{c as T,f}from"./chunk-MO2HXJG5.js";import{v as o}from"./chunk-S3CWEVTS.js";import"./chunk-TISQNFB5.js";import{g}from"./chunk-QKYGQLWC.js";import{g as l,i as c,p,q as u}from"./chunk-6E766NPX.js";import"./chunk-LUNDTQ3G.js";import{ba as i}from"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import{b as m}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";m();var E=i("TEAM_DELETE"),r=class extends l{constructor(t,n){super(n);this.config=t}getDescription(){return"Delete current team"}async execute(){if(g()){let e="Only the team leader can delete the team.";return{llmContent:e,returnDisplay:e,error:{message:e}}}let t=this.config.getTeamManager();if(!t){let e="No active team to delete.";return{llmContent:e,returnDisplay:e,error:{message:e}}}let a=t.getTeamFile().name;try{await t.cleanup()}catch(e){E.warn("Team cleanup failed; resetting team state anyway:",e)}await o(a),await new Promise(e=>setTimeout(e,250)),await o(a),f(a),this.config.setTeamManager(null),this.config.setTeamContext(null),T();let y={type:"team_result",teamName:a,action:"deleted"};return{llmContent:`Team "${a}" deleted.`,returnDisplay:y}}},d=class s extends c{constructor(t){super(s.Name,u.TEAM_DELETE,"Delete the current team. Stops all teammates, cleans up team files, tasks, and inboxes. Only the team leader can use this.","delete",{type:"object",properties:{},additionalProperties:!1});this.config=t}static Name=p.TEAM_DELETE;createInvocation(t){return new r(this.config,t)}};export{d as TeamDeleteTool};
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2025 Matilda
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{a,b,c}from"./chunk-PW3LFA6D.js";import"./chunk-DE3HKC2W.js";import"./chunk-6E766NPX.js";import"./chunk-LUNDTQ3G.js";import"./chunk-27Q5KW3A.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{c as TodoWriteTool,b as listTodoSessions,a as readTodosForSession};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{
|
|
3
|
+
import{Hc as N}from"./chunk-JA43M5MZ.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-PGXQZVLX.js";import"./chunk-YRQP3SLC.js";import{g as v,i as R,p as E,q as L}from"./chunk-6E766NPX.js";import"./chunk-LUNDTQ3G.js";import{ba as S}from"./chunk-27Q5KW3A.js";import"./chunk-G7R2XEEF.js";import"./chunk-OA56BXPD.js";import"./chunk-FWDMPRKU.js";import{b as C}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";C();var y=S("TOOL_SEARCH"),D=5,A=20,b=10,x=5,$=4,k=2,q=12,M=6,P=`Fetches function declarations for deferred tools and registers them with the active session so subsequent turns can call them.
|
|
4
4
|
|
|
5
5
|
Deferred tools appear by name in the deferred-tools startup reminder. Until fetched, only the name is known \u2014 there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' function declarations (name + description + parameter schema) inside a <functions> block.
|
|
6
6
|
|