@maincode-ai/matilda-code 0.21.10-preview.0 → 0.21.10-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/mainy/docs/configuration/settings.md +9 -0
- package/chunks/agent-XXSEYARS.js +3 -0
- package/chunks/agent-headless-YBWTAFUH.js +3 -0
- package/chunks/{anthropicContentGenerator-SFJGSZHT.js → anthropicContentGenerator-IYZILRDW.js} +1 -1
- package/chunks/{askUserQuestion-G2H4VCRY.js → askUserQuestion-XWHJY3DM.js} +1 -1
- package/chunks/{chunk-INAZKGGR.js → chunk-2HQMJ2IU.js} +1 -1
- package/chunks/chunk-2W6MZZHZ.js +39 -0
- package/chunks/{todoWrite-3XJNFIBR.js → chunk-4CSSDBOS.js} +2 -2
- package/chunks/{chunk-5PMMY47S.js → chunk-4FVBPNTZ.js} +1 -1
- package/chunks/{chunk-TFWOXSAP.js → chunk-4TQ7ABLG.js} +14 -14
- package/chunks/{chunk-X6BEBYGX.js → chunk-66NIIU2R.js} +9 -9
- package/chunks/{chunk-32PTAACU.js → chunk-ELH4YHJR.js} +1 -1
- package/chunks/{chunk-FWIVFCKF.js → chunk-FFFZ2QMG.js} +1 -1
- package/chunks/{chunk-KSNBNXBC.js → chunk-FRRBNNEB.js} +48 -48
- package/chunks/{chunk-EQEQPZLQ.js → chunk-GO2GA2GY.js} +1 -1
- package/chunks/{chunk-QHA3ZBRO.js → chunk-GUFIMKF5.js} +1 -1
- package/chunks/{chunk-H6WMNUW2.js → chunk-HOCFKXNJ.js} +1 -1
- package/chunks/{chunk-VWWEEU4V.js → chunk-JXUDKX6D.js} +1 -1
- package/chunks/{chunk-VLYRNOD3.js → chunk-MH2P4YXC.js} +10 -10
- package/chunks/{chunk-6Q6PMGBD.js → chunk-MKFQMX37.js} +1 -1
- package/chunks/{chunk-VYTYYCBR.js → chunk-NYEWHSBL.js} +1 -1
- package/chunks/{chunk-LIWYWWOK.js → chunk-ODZOYHIC.js} +1 -1
- package/chunks/{chunk-Q2I3ARPJ.js → chunk-QH7736R5.js} +1 -1
- package/chunks/chunk-QN6WSWMM.js +9 -0
- package/chunks/{chunk-RJX7DK4Y.js → chunk-S4UT3QLV.js} +1 -1
- package/chunks/chunk-SNLH42QJ.js +10 -0
- package/chunks/{chunk-SE3XDSIJ.js → chunk-SPW5DXX4.js} +1 -1
- package/chunks/{chunk-S7G6QPEP.js → chunk-SUH3UUWZ.js} +1 -1
- package/chunks/{chunk-PIFQEMZZ.js → chunk-T4P4KEDW.js} +8 -8
- package/chunks/chunk-TO3ID3JW.js +35 -0
- package/chunks/{chunk-6ZMDAPGZ.js → chunk-VVIJGBQK.js} +566 -545
- package/chunks/{chunk-DCQKJTAX.js → chunk-W5CGKUM4.js} +8 -3
- package/chunks/{chunk-2PPJ3MJT.js → chunk-WHG6N5X2.js} +1 -1
- package/chunks/{chunk-GWGQRU36.js → chunk-WJO3QSBJ.js} +1 -1
- package/chunks/{chunk-XCJYORZX.js → chunk-XCFLI3OC.js} +1 -1
- package/chunks/{chunk-IJUI5A6G.js → chunk-YMIF2DMT.js} +1 -1
- package/chunks/chunk-YSIECQIZ.js +113 -0
- package/chunks/{computer-use-QN46FSNK.js → computer-use-HX2LYMYD.js} +7 -7
- package/chunks/contextCommand-W7DBC37U.js +3 -0
- package/chunks/{cron-create-MILWOYF6.js → cron-create-2UI4AT4Q.js} +1 -1
- package/chunks/{cron-delete-IEOPMRWP.js → cron-delete-ZB6BOTFF.js} +1 -1
- package/chunks/{cron-list-GGBUA7S7.js → cron-list-YYAXNHB6.js} +1 -1
- package/chunks/{edit-7AZARQPL.js → edit-HFUF2RN3.js} +1 -1
- package/chunks/{enter-worktree-GKYG5CD2.js → enter-worktree-LFCL64PJ.js} +1 -1
- package/chunks/{enterPlanMode-ICTG6ULZ.js → enterPlanMode-TREN7ULJ.js} +1 -1
- package/chunks/{exit-worktree-ZWYXIEIC.js → exit-worktree-MH2J4P42.js} +1 -1
- package/chunks/{exitPlanMode-5BQ4MY5I.js → exitPlanMode-PQO3EFFT.js} +1 -1
- package/chunks/{geminiContentGenerator-APSI54U5.js → geminiContentGenerator-FE5UVAOZ.js} +1 -1
- package/chunks/glob-VZAYMEQA.js +22 -0
- package/chunks/goal-tools-JN27F5BA.js +12 -0
- package/chunks/grep-2VT5TSRU.js +22 -0
- package/chunks/{keychain-token-storage-HAFQQIXL.js → keychain-token-storage-54BNK6VH.js} +1 -1
- package/chunks/{ls-FQYKJYAK.js → ls-YWZU3FYL.js} +1 -1
- package/chunks/{lsp-FGMC4KSB.js → lsp-4CJDKEEC.js} +1 -1
- package/chunks/{matildaAgentContentGenerator-HVIGLQJZ.js → matildaAgentContentGenerator-EYETUHCZ.js} +1 -1
- package/chunks/matildaContentGenerator-IWKH3YC4.js +8 -0
- package/chunks/{matildaOAuth2-W2DQO2NK.js → matildaOAuth2-GRS5K3D4.js} +1 -1
- package/chunks/monitor-AMIVJKDL.js +32 -0
- package/chunks/notebook-edit-BQUXXNEO.js +17 -0
- package/chunks/{openaiContentGenerator-X6TFPZGL.js → openaiContentGenerator-4M7WBW3G.js} +1 -1
- package/chunks/read-file-FNJZCMIZ.js +3 -0
- package/chunks/ripGrep-UOEUWYVF.js +3 -0
- package/chunks/scheduler-ASQLD6BW.js +8 -0
- package/chunks/{send-message-5PJPE34J.js → send-message-OO2HAKCC.js} +1 -1
- package/chunks/{serve-24HVCLFM.js → serve-FIDAAJAB.js} +1 -1
- package/chunks/shell-S732E2W4.js +3 -0
- package/chunks/{skill-HWDNN7P7.js → skill-VXNOQCSI.js} +1 -1
- package/chunks/src-QZENX46P.js +3 -0
- package/chunks/{symbol-search-BSE3FWJX.js → symbol-search-ALYOX5JN.js} +1 -1
- package/chunks/{syntheticOutput-DX4NN34N.js → syntheticOutput-UASKABJH.js} +1 -1
- package/chunks/task-create-EBJD55TB.js +3 -0
- package/chunks/{task-detach-TGM25ZIU.js → task-detach-I67ZE5MX.js} +1 -1
- package/chunks/{task-list-AZLBAQVL.js → task-list-5BGX4G5N.js} +1 -1
- package/chunks/{task-stop-B5PTXVMO.js → task-stop-ERI5X4AO.js} +1 -1
- package/chunks/{task-update-ARPBRTC5.js → task-update-CD3W556L.js} +1 -1
- package/chunks/{team-create-D4N2QVBX.js → team-create-CXY3MRCE.js} +1 -1
- package/chunks/{team-delete-AGYMEW6E.js → team-delete-5U3GBFKJ.js} +1 -1
- package/chunks/todoWrite-YGG6AZ3A.js +3 -0
- package/chunks/{tool-search-LRVN3W5W.js → tool-search-AJ57WSJC.js} +1 -1
- package/chunks/{web-fetch-Y64RF72K.js → web-fetch-63M6GZQL.js} +1 -1
- package/chunks/{web-search-I3D4EN5B.js → web-search-OX2DPEVN.js} +1 -1
- package/chunks/{workflow-BSK53DUN.js → workflow-55OAJ6XH.js} +2 -2
- package/chunks/write-file-2TWXQRDB.js +15 -0
- package/cli.js +459 -462
- package/package.json +2 -2
- package/chunks/agent-U43GELHB.js +0 -3
- package/chunks/agent-headless-7STBERN4.js +0 -3
- package/chunks/chunk-2NBII5ND.js +0 -34
- package/chunks/chunk-BN2CPSZ5.js +0 -34
- package/chunks/chunk-HMZOLFRP.js +0 -10
- package/chunks/chunk-ROETRE5J.js +0 -9
- package/chunks/chunk-XJYPRCV7.js +0 -108
- package/chunks/contextCommand-7G5FHBBE.js +0 -3
- package/chunks/glob-NPEYXTA6.js +0 -22
- package/chunks/grep-4NQTKAN6.js +0 -22
- package/chunks/matildaContentGenerator-5VOBYNAJ.js +0 -8
- package/chunks/monitor-RMKMKOUY.js +0 -32
- package/chunks/notebook-edit-H3ZFKBLR.js +0 -17
- package/chunks/read-file-3J3ZMBI2.js +0 -3
- package/chunks/ripGrep-WDYTLRCE.js +0 -3
- package/chunks/scheduler-TKK5QECI.js +0 -8
- package/chunks/shell-YPEMRDRO.js +0 -3
- package/chunks/src-W5VAKS5Y.js +0 -3
- package/chunks/task-create-3PW7T36X.js +0 -3
- package/chunks/update-goal-KLUMJFUA.js +0 -16
- package/chunks/write-file-GDKSQBMU.js +0 -15
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"./chunk-
|
|
3
|
+
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{d as CredentialsClearRequiredError,n as MATILDA_CREDENTIAL_FILE_MODE,j as MatildaOAuth2Client,k as MatildaOAuth2Event,e as MatildaOAuthPollError,o as cacheMatildaCredentials,q as clearCachedCredentialFile,p as clearMatildaCredentials,b as generateCodeChallenge,a as generateCodeVerifier,c as generatePKCEPair,m as getMatildaOAuthClient,f as isDeviceAuthorizationSuccess,h as isDeviceTokenPending,g as isDeviceTokenSuccess,i as isErrorResponse,l as matildaOAuth2Events};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{Ec as tt,Me as st,Ne as at,Pc as ot,Sc as et,Se as L,Tc as A,Te as lt,Yc as C,Zc as nt,bd as it,vi as P,xi as ct,ze as rt}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import"./chunk-QN6WSWMM.js";import"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-SPW5DXX4.js";import"./chunk-RNKDFE2S.js";import"./chunk-TO3ID3JW.js";import"./chunk-MKFQMX37.js";import"./chunk-47XR7IMP.js";import"./chunk-FFFZ2QMG.js";import"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.js";import"./chunk-GUFIMKF5.js";import"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import{g as Z,i as q,p as Y,q as Q}from"./chunk-T4P4KEDW.js";import"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import{K as J,ba as K,d as m}from"./chunk-MH2P4YXC.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
|
+
`)&&o.value.length>R){let h=o.value.trim();h.length>0&&$(h.slice(0,R)+"..."),o.value="";return}let _=o.value.split(`
|
|
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
|
+
id: ${i}
|
|
7
|
+
command: ${a}
|
|
8
|
+
description: ${f}
|
|
9
|
+
max_events: ${M}
|
|
10
|
+
idle_timeout: ${v}ms
|
|
11
|
+
Events will be delivered as notifications. The monitor auto-stops after ${M} events or ${v}ms of silence.
|
|
12
|
+
To inspect: /tasks (text) or the interactive Background tasks dialog (focus the footer Background tasks pill, then Enter \u2014 detail view + live updates).`,returnDisplay:`Monitor started: ${S} (${i})`}}},yt=class l extends q{constructor(t){super(l.Name,Q.MONITOR,`Starts a long-running shell command and streams its stdout/stderr as event notifications back to you.
|
|
13
|
+
|
|
14
|
+
Use this tool for:
|
|
15
|
+
- Watching log files: \`tail -f /var/log/app.log\`
|
|
16
|
+
- Monitoring build output: \`npm run build --watch\`
|
|
17
|
+
- Polling for state changes: \`while true; do curl -s http://localhost:8080/health; sleep 1; done\`
|
|
18
|
+
- Watching file changes: \`fswatch -r ./src\`
|
|
19
|
+
|
|
20
|
+
Each output line from the command becomes a notification event delivered to you. The monitor runs in the background \u2014 you can continue working while it streams events.
|
|
21
|
+
|
|
22
|
+
**Auto-stop:** The monitor automatically stops after max_events (default 1000) events or after idle_timeout_ms (default 5 minutes) of silence. The process is killed when the monitor stops.
|
|
23
|
+
|
|
24
|
+
**Do NOT use this tool for:**
|
|
25
|
+
- One-shot commands (use run_shell_command instead)
|
|
26
|
+
- Commands you need the full output from (use run_shell_command instead)
|
|
27
|
+
- Commands with no output (use run_shell_command with is_background: true instead)`,"execute",{type:"object",properties:{command:{type:"string",description:"Shell command to run and monitor. Each output line (stdout and stderr) becomes an event notification."},description:{type:"string",description:'Brief description of what this monitor watches (e.g., "webpack build output"). Truncated to 80 characters in display.'},max_events:{type:"number",description:"Stop the monitor after this many events. Default 1000. Max 10000."},idle_timeout_ms:{type:"number",description:"Stop the monitor if no output for this many milliseconds. Default 300000 (5 min). Max 600000."},directory:{type:"string",description:"(OPTIONAL) The absolute path of the directory to run the command in. If not provided, the project root directory is used. Must be within the workspace."}},required:["command"],additionalProperties:!1},!0,!1,!0,!1,"monitor watch tail log stream background");this.config=t}static Name=Y.MONITOR;validateToolParamValues(t){if(typeof t.command!="string"||!C(t.command).analysisCommand)return"Command cannot be empty.";if(nt(t.command))return'Monitor commands must not contain non-final top-level background operators. Remove "&" and let the monitor manage process lifetime.';if(t.max_events!==void 0){if(typeof t.max_events!="number"||!Number.isInteger(t.max_events)||t.max_events<=0)return"max_events must be a positive integer.";if(t.max_events>O)return`max_events cannot exceed ${O}.`}if(t.idle_timeout_ms!==void 0){if(typeof t.idle_timeout_ms!="number"||!Number.isInteger(t.idle_timeout_ms)||t.idle_timeout_ms<=0)return"idle_timeout_ms must be a positive integer.";if(t.idle_timeout_ms>N)return`idle_timeout_ms cannot exceed ${N}ms (10 minutes).`}if(t.directory){if(!dt.isAbsolute(t.directory))return"Directory must be an absolute path.";let e=dt.resolve(t.directory),a=this.config.storage.getUserSkillsDirs();if(J(a,e))return"Explicitly running monitor commands from within the user skills directory is not allowed. Please use absolute paths for command parameter instead.";if(!this.config.getWorkspaceContext().isPathWithinWorkspace(t.directory))return`Directory '${t.directory}' is not within any of the registered workspace directories.`}return null}createInvocation(t){return new U(this.config,t)}toAutoClassifierInput(t){let e={command:t.command};return t.directory&&(e.directory=t.directory),e}};export{yt as MonitorTool,ht as sanitizeMonitorLine};
|
|
28
|
+
/**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2025 Matilda
|
|
31
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
32
|
+
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{$e as X,Qe as y,cf as Z,ga as R,se as D,te as Y,uc as Q}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import"./chunk-QN6WSWMM.js";import"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-SPW5DXX4.js";import"./chunk-RNKDFE2S.js";import"./chunk-TO3ID3JW.js";import"./chunk-MKFQMX37.js";import"./chunk-47XR7IMP.js";import"./chunk-FFFZ2QMG.js";import"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.js";import"./chunk-GUFIMKF5.js";import"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.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,Lb as z,M as K,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,_c as H,ca as G}from"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import{g as $,i as L,p as c,q as x}from"./chunk-T4P4KEDW.js";import"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import{D as _,E as N,G as T,ba as F}from"./chunk-MH2P4YXC.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
|
+
`).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
|
+
|
|
6
|
+
Updated source:
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
${B(this.params.new_source??"")}`}`;try{let a=await Z(this.config,this.params.notebook_path);a&&(s+=`
|
|
11
|
+
|
|
12
|
+
${a}`)}catch{}return{llmContent:s,returnDisplay:p,resultFilePaths:[this.params.notebook_path]}}catch(o){let i=o instanceof Error?o.message:String(o);return{llmContent:`Error writing notebook: ${i}`,returnDisplay:`Error writing notebook: ${i}`,error:{message:i,type:"file_write_failure"}}}}},S=class d extends L{constructor(t){super(d.Name,x.NOTEBOOK_EDIT,`Edits a Jupyter notebook (.ipynb) safely at the cell level. Use this instead of ${c.EDIT} or ${c.WRITE_FILE} for notebook cells. Supports replacing, inserting, and deleting cells. Always read the notebook first with ${c.READ_FILE}; then use the cell IDs shown in that output.`,"edit",{properties:{notebook_path:{description:"Absolute path to the Jupyter notebook file to edit. Must end with .ipynb.",type:"string"},cell_id:{description:"Target cell ID from read_file output, or cell-N 0-based fallback. Required for replace and delete. For insert, the new cell is inserted after this cell; if omitted, inserted at the beginning.",type:"string"},new_source:{description:"New source content for replace and insert operations. Not required for delete.",type:"string"},cell_type:{description:"Cell type for inserted cells or type conversion on replace.",type:"string",enum:["code","markdown"]},edit_mode:{description:"Notebook edit operation. Defaults to replace.",type:"string",enum:["replace","insert","delete"]}},required:["notebook_path"],additionalProperties:!1,type:"object"});this.config=t}static Name=c.NOTEBOOK_EDIT;modifyMetadataByParams=new WeakMap;modifyMetadataByKey=new Map;validateToolParamValues(t){if(t.notebook_path=T(t.notebook_path.trim()),!t.notebook_path)return"The 'notebook_path' parameter must be non-empty.";if(!m.isAbsolute(t.notebook_path))return`Notebook path must be absolute: ${t.notebook_path}`;if(m.extname(t.notebook_path).toLowerCase()!==".ipynb")return"File must be a Jupyter notebook (.ipynb). Use the edit tool for other file types.";let e=t.edit_mode??"replace";return["replace","insert","delete"].includes(e)?t.cell_type&&!["code","markdown"].includes(t.cell_type)?"cell_type must be 'code' or 'markdown'.":e!=="insert"&&!t.cell_id?"cell_id is required for replace and delete operations.":e!=="delete"&&typeof t.new_source!="string"?`new_source is required when edit_mode is "${e}".`:this.config.getFileService().shouldMatildaIgnoreFile(t.notebook_path)?`File path '${t.notebook_path}' is ignored by .matildaignore pattern(s).`:null:"edit_mode must be 'replace', 'insert', or 'delete'."}createInvocation(t){return new P(this.config,t,this.consumeModifyMetadata(t))}getModifyMetadataKey(t){return JSON.stringify({notebook_path:T(t.notebook_path.trim()),cell_id:t.cell_id,new_source:t.new_source,cell_type:t.cell_type,edit_mode:t.edit_mode})}rememberModifyMetadata(t,e){this.modifyMetadataByParams.set(t,e);let o=this.getModifyMetadataKey(t),i=this.modifyMetadataByKey.get(o)??[];i.push(e),this.modifyMetadataByKey.set(o,i)}consumeModifyMetadata(t){let e=this.modifyMetadataByParams.get(t);if(e)return this.modifyMetadataByParams.delete(t),this.removeQueuedModifyMetadata(t,e),e;let o=this.getModifyMetadataKey(t),i=this.modifyMetadataByKey.get(o),n=i?.shift();return i&&i.length===0&&this.modifyMetadataByKey.delete(o),n}removeQueuedModifyMetadata(t,e){let o=this.getModifyMetadataKey(t),i=this.modifyMetadataByKey.get(o);if(!i)return;let n=i.indexOf(e);n!==-1&&i.splice(n,1),i.length===0&&this.modifyMetadataByKey.delete(o)}getModifyContext(t){let e=new Map,o=async i=>{let n=e.get(i.notebook_path);if(n!==void 0)return n;let{content:l}=await this.config.getFileSystemService().readTextFile({path:i.notebook_path});return e.set(i.notebook_path,l),l};return{getFilePath:i=>i.notebook_path,getCurrentContent:async i=>o(i),getProposedContent:async i=>{let n=await o(i);return O(n,i).updatedContent},createUpdatedParams:(i,n,l)=>{let p=this.modifyMetadataByParams.get(l)?.aiProposedContent;if(p===void 0)try{p=O(i,l).updatedContent}catch{p=n}let s={...l};return this.rememberModifyMetadata(s,{aiProposedContent:p,modifiedByUser:!0,modifiedNotebookContent:n}),s}}}};export{S as NotebookEditTool,O as applyNotebookEdit};
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2026 Matilda Team
|
|
16
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
*/
|
|
@@ -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-2W6MZZHZ.js";import"./chunk-ODZOYHIC.js";import"./chunk-GUFIMKF5.js";import{g as a}from"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import"./chunk-T4P4KEDW.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import"./chunk-T4P4KEDW.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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{Vj as a,Wj as b}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import"./chunk-QN6WSWMM.js";import"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-SPW5DXX4.js";import"./chunk-RNKDFE2S.js";import"./chunk-TO3ID3JW.js";import"./chunk-MKFQMX37.js";import"./chunk-47XR7IMP.js";import"./chunk-FFFZ2QMG.js";import"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.js";import"./chunk-GUFIMKF5.js";import"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import"./chunk-T4P4KEDW.js";import"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{b as E}from"./chunk-7ZATDBWL.js";import{ta as P}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import"./chunk-QN6WSWMM.js";import"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-SPW5DXX4.js";import"./chunk-RNKDFE2S.js";import"./chunk-TO3ID3JW.js";import"./chunk-MKFQMX37.js";import"./chunk-47XR7IMP.js";import"./chunk-FFFZ2QMG.js";import"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.js";import"./chunk-GUFIMKF5.js";import"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import"./chunk-T4P4KEDW.js";import"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import{Q as l,ba as c}from"./chunk-MH2P4YXC.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
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2025 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
@@ -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-T4P4KEDW.js";import"./chunk-MH2P4YXC.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 Pu}from"./chunk-PA6532AY.js";import{a as Sv}from"./chunk-XMZIY7XX.js";import{$a as Zi,Aa as Tr,B as ns,Ba as Ki,Ca as or,D as ku,Da as an,Ea as ar,Fa as Pr,Ga as mt,Ha as cr,Ia as Mr,Ja as Or,Ka as cn,La as dn,Ma as un,Na as ot,Oa as Ev,Pa as Ji,Qa as ss,Ra as Fu,Sa as ke,Ta as le,Ua as Iv,Va as ln,W as Au,Wa as pn,Xa as Lu,Y as Tt,Ya as Xi,Za as Qi,_a as Yi,ab as xv,bb as eo,cb as Mt,db as Nu,eb as is,fb as $u,ha as Ru,ia as Mu,ja as Pt,jb as Bu,ka as Ou,kb as qu,la as Gi,ma as Qe,na as wt,pa as Du,qa as ie,ra as nn,sa as sn,ta as sr,ua as Rr,va as on,wa as Cr,x as Vi,xa as bt,ya as St,za as ir}from"./chunk-
|
|
3
|
+
import{a as Pu}from"./chunk-PA6532AY.js";import{a as Sv}from"./chunk-XMZIY7XX.js";import{$a as Zi,Aa as Tr,B as ns,Ba as Ki,Ca as or,D as ku,Da as an,Ea as ar,Fa as Pr,Ga as mt,Ha as cr,Ia as Mr,Ja as Or,Ka as cn,La as dn,Ma as un,Na as ot,Oa as Ev,Pa as Ji,Qa as ss,Ra as Fu,Sa as ke,Ta as le,Ua as Iv,Va as ln,W as Au,Wa as pn,Xa as Lu,Y as Tt,Ya as Xi,Za as Qi,_a as Yi,ab as xv,bb as eo,cb as Mt,db as Nu,eb as is,fb as $u,ha as Ru,ia as Mu,ja as Pt,jb as Bu,ka as Ou,kb as qu,la as Gi,ma as Qe,na as wt,pa as Du,qa as ie,ra as nn,sa as sn,ta as sr,ua as Rr,va as on,wa as Cr,x as Vi,xa as bt,ya as St,za as ir}from"./chunk-4TQ7ABLG.js";import{a as xu,b as D,d as _u}from"./chunk-WJO3QSBJ.js";import{a as Cu,b as rn,d as Tu,e as zi}from"./chunk-JSFA3NEP.js";import{$a as lu,$e as Ui,Af as yu,Bf as wu,Cf as bu,Ka as au,La as tn,Pe as hu,Pi as bv,Rl as Ar,Sf as kr,Tf as Ve,Uk as es,Vk as ts,Wa as cu,We as mu,Wk as rs,Xh as Su,Za as du,_a as uu,af as gu,ak as tt,bf as vu,bk as Zn,kg as Yn,mb as Hi,ob as pu,sb as fu,ui as Eu}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import"./chunk-QN6WSWMM.js";import"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import{e as Iu}from"./chunk-MTMU7JYZ.js";import"./chunk-SPW5DXX4.js";import"./chunk-RNKDFE2S.js";import"./chunk-TO3ID3JW.js";import"./chunk-MKFQMX37.js";import"./chunk-47XR7IMP.js";import"./chunk-FFFZ2QMG.js";import"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.js";import{b as Zd,e as eu}from"./chunk-GUFIMKF5.js";import{C as jd,D as Wd,E as Hd,F as Ud,G as Vd,H as zd,I as Gd,J as Kd,K as Jd,L as Xd,U as Qd,V as Yd,n as Nd,o as Bi,p as qi,q as Qn,s as $d,u as Bd,v as qd,w as ji,x as _r}from"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import{b as Td}from"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import{Cb as Dd,Eb as Fd,Fb as Ld,Y as Md,da as xr,ea as Od,j as He,t as Pd}from"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import"./chunk-T4P4KEDW.js";import{f as tu,h as Wi,i as ru,j as nu,k as su,m as iu,r as ou}from"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import{Q as Xn,R as Cd}from"./chunk-MH2P4YXC.js";import{a as ht}from"./chunk-G7R2XEEF.js";import{a as wv}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 yv}from"./chunk-OWGSC52X.js";var fn=L((R_,Uu)=>{w();var _v=se("path").relative;Uu.exports=Tv;var kv=process.cwd();function Wu(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 Av(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 Rv(t){for(var e="",r=0;r<t;r++)e+=", arg"+r;return e.substr(2)}function Cv(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 Tv(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=Mv(t),s._namespace=t,s._traced=Ov(t),s._warned=Object.create(null),s.function=Nv,s.property=$v,s}function Pv(t,e){var r=typeof t.listenerCount!="function"?t.listeners(e).length:t.listenerCount(e);return r>0}function Mv(t){if(process.noDeprecation)return!0;var e=process.env.NO_DEPRECATION||"";return Wu(e,t)}function Ov(t){if(process.traceDeprecation)return!0;var e=process.env.TRACE_DEPRECATION||"";return Wu(e,t)}function os(t,e){var r=Pv(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?ju(o):ju(i)),r){var f=Hu(this._namespace,p,d.slice(a));process.emit("deprecation",f);return}var g=process.stderr.isTTY?Fv:Dv,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 ju(t){var e=t.callSite,r=t.name;r||(r="<anonymous@"+to(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 Dv(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 "+to(e)),s}function Fv(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{df as a,ef as b,ff as c,gf as d,hf as e,if as f,jf as g}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import"./chunk-QN6WSWMM.js";import"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-SPW5DXX4.js";import"./chunk-RNKDFE2S.js";import"./chunk-TO3ID3JW.js";import"./chunk-MKFQMX37.js";import"./chunk-47XR7IMP.js";import"./chunk-FFFZ2QMG.js";import"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.js";import"./chunk-GUFIMKF5.js";import"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import"./chunk-T4P4KEDW.js";import"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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-SPW5DXX4.js";import"./chunk-HYVP4472.js";import"./chunk-JXUDKX6D.js";import"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import{kc as o,ld as a}from"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import{g as S,i as v,p as y,q as b}from"./chunk-T4P4KEDW.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import{ba as f}from"./chunk-MH2P4YXC.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 Fi,$a as Ej,$b as fl,$c as fm,$d as fn,$e as Sn,$f as So,$g as Pq,$h as Qr,$i as Ps,$j as Kt,$k as Ku,$l as Jv,A as ei,Aa as dj,Ab as dk,Ac as Gl,Ad as Gm,Ae as Bn,Ag as lp,Ah as pr,Ai as qs,Aj as lt,Ak as ju,Al as jv,B as fi,Ba as ej,Bb as ek,Bc as Hl,Bd as Hm,Be as Cn,Bg as mp,Bh as qr,Bi as rs,Bj as mt,Bk as ku,Bl as kv,C as gi,Ca as fj,Cb as fk,Cc as Il,Cd as Im,Ce as Dn,Cg as np,Ch as rr,Ci as ss,Cj as nt,Ck as lu,Cl as lv,D as hi,Da as gj,Db as gk,Dc as Jl,Dd as Jm,Df as ko,Dg as op,Dh as sr,Di as ts,Dj as ot,Dk as mu,Dl as mv,E as ii,Ea as hj,Eb as hk,Ed as Km,Ee as En,Ef as lo,Eg as wp,Eh as tr,Ei as us,Ej as pt,Ek as nu,El as nv,F as ji,Fa as ij,Fb as ik,Fc as Ml,Fd as Lm,Fe as Fn,Ff as mo,Fg as xp,Fh as ur,Fi as vs,Fj as qt,Fk as ou,Fl as ov,G as ki,Ga as jj,Gb as jk,Gc as Nl,Gd as Mm,Ge as Gn,Gf as no,Gg as uq,Gh as vr,Gi as ws,Gj as rt,Gk as pu,H as li,Ha as kj,Hb as kk,Hc as Ol,Hd as Nm,He as Hn,Hf as oo,Hg as vq,Hh as wr,Hi as xs,Hj as st,Hk as qu,Hl as pv,I as mi,Ia as lj,Ib as lk,Ic as Pl,Id as Om,Ie as In,If as po,Ig as wq,Ih as xr,Ii as ys,Ij as tt,Ik as ru,Il as qv,J as ni,Ja as mj,Jb as mk,Jc as Ql,Jd as Pm,Je as Jn,Jf as qo,Jg as xq,Jh as yr,Ji as zs,Jj as ut,Jk as su,Jl as rv,K as oi,Ka as nj,Kb as nk,Kc as Rl,Kd as Qm,Ke as Kn,Kf as ro,Kg as yq,Kh as zr,Ki as As,Kj as vt,Kk as tu,Kl as sv,L as pi,La as oj,Lb as ok,Lc as Sl,Ld as Rm,Le as Ln,Lf as so,Lg as zq,Lh as Ar,Li as Bs,Lj as wt,Lk as uu,Ll as tv,M as qi,Ma as pj,Mb as pk,Md as Sm,Mf as to,Mg as Aq,Mh as Br,Mi as Cs,Mj as xt,Mk as vu,Ml as uv,N as ri,Na as qj,Nb as qk,Nc as Tl,Nd as Tm,Nf as uo,Ng as Bq,Nh as Cr,Ni as Ds,Nj as yt,Nk as wu,Nl as vv,O as si,Oa as rj,Ob as rk,Oc as Ul,Od as Um,Oe as Mn,Of as vo,Og as Cq,Oh as Dr,Oj as zt,Ok as xu,Ol as wv,P as ti,Pa as sj,Pb as Rk,Pc as Vl,Pd as Vm,Pe as Nn,Pf as Go,Pg as Dq,Ph as Er,Pj as At,Pk as yu,Pl as xv,Q as ui,Qa as tj,Qb as Sk,Qc as Wl,Qd as Wm,Qf as Ho,Qg as Eq,Qh as Fr,Qi as Es,Qk as zu,Ql as yv,R as vi,Ra as uj,Rb as Tk,Rc as Xl,Rd as Xm,Rf as Io,Rg as Fq,Rh as Gr,Ri as Fs,Rk as Au,Rl as zv,S as wi,Sa as vj,Sb as Uk,Sc as Yl,Sd as Ym,Sf as Jo,Sg as Gq,Sh as Hr,Si as Gs,Sk as Bu,Sl as Av,T as xi,Ta as wj,Tb as Xk,Tc as Zl,Td as Zm,Tf as Ko,Tg as Hq,Th as Ir,Ti as Hs,Tk as Cu,Tl as Bv,U as yi,Ua as xj,Ub as _k,Uc as _l,Ud as _m,Uf as Lo,Ug as Iq,Uh as Jr,Ui as Is,Uk as Du,Ul as Cv,V as zi,Va as yj,Vb as $k,Vc as $l,Vd as $m,Vf as Mo,Vg as Jq,Vh as Kr,Vi as Js,Vj as Bt,Vk as Eu,Vl as Dv,W as Ai,Wa as zj,Wb as al,Wc as am,Wd as an,Wf as No,Wg as Kq,Wh as Lr,Wi as Ks,Wj as Ct,Wk as Fu,Wl as Ev,X as Bi,Xa as Aj,Xb as bl,Xc as bm,Xd as bn,Xe as On,Xf as Oo,Xg as Lq,Xh as Mr,Xi as Ls,Xj as Dt,Xk as Gu,Xl as Fv,Y as Ci,Ya as Bj,Yb as cl,Yc as cm,Yd as cn,Ye as Pn,Yf as Po,Yg as Mq,Yh as Nr,Yi as Ms,Yj as Et,Yk as Hu,Yl as Gv,Z as Di,Za as Cj,Zb as dl,Zc as dm,Zd as dn,Ze as Qn,Zf as Qo,Zg as Nq,Zh as Or,Zi as Ns,Zj as Ft,Zk as Iu,Zl as Hv,_ as Ei,_a as Dj,_b as el,_c as em,_d as en,_e as Rn,_f as Ro,_g as Oq,_h as Pr,_i as Os,_j as Gt,_k as Ju,_l as Iv,a as ua,aa as Gi,ab as Fj,ac as gl,ad as gm,ae as gn,af as Tn,ag as To,ah as Qq,ai as Rr,aj as Qs,ak as Lt,al as Lu,am as Kv,b as va,ba as Hi,bb as Gj,bc as hl,bd as hm,be as hn,bf as Un,bg as Uo,bh as Rq,bi as Sr,bk as Mt,bl as Mu,bm as Lv,c as wa,ca as Ii,cb as Hj,cc as il,cd as im,ce as jn,cg as Vo,ch as Sq,ci as Tr,cj as Rs,ck as Nt,cl as Nu,d as xa,da as Ji,db as Ij,dc as jl,dd as jm,de as kn,dg as Wo,dh as Tq,di as Ur,dj as Ss,dk as Ot,dl as Ou,e as ya,ea as Ki,eb as Jj,ec as kl,ed as km,ee as ln,eg as Xo,eh as Uq,ei as Vr,ej as Ts,ek as Pt,el as Pu,f as za,fa as Li,fb as Kj,fc as ll,fd as lm,fe as mn,fg as Yo,fh as Vq,fi as Wr,fj as Us,fk as Qt,fl as Qu,g as Aa,gb as Lj,gc as ml,gd as mm,ge as nn,gg as Zo,gh as Wq,gi as Xr,gj as Vs,gk as Rt,gl as Ru,h as Ba,ha as Mi,hb as Mj,hc as nl,hd as nm,he as on,hg as _o,hh as Xq,hi as Yr,hj as Ws,hk as St,hl as Su,i as Ca,ia as Ni,ib as Nj,ic as ol,id as om,ie as pn,ig as $o,ih as Yq,ii as Zr,ij as Xs,ik as Tt,il as Tu,j as Xg,ja as Oi,jb as Oj,jc as pl,jd as pm,je as qn,jg as ap,jh as Zq,ji as _r,jk as Ut,jl as Uu,k as Yg,ka as Pi,kb as Pj,kc as ql,kd as qm,ke as rn,kf as Vn,kg as bp,kh as _q,ki as bs,kk as Vt,kl as Vu,l as Zg,la as Qi,lb as Qj,lc as rl,ld as rm,le as sn,lf as Wn,lh as $q,li as cs,lj as Ys,lk as Wt,ll as Wu,m as _g,ma as Ri,mb as Rj,mc as sl,md as sm,me as tn,mf as Xn,mh as br,mi as ds,mj as Zs,mk as Xt,ml as Xu,n as $g,na as Si,nb as Sj,nc as tl,nd as tm,ne as un,nf as Yn,nh as cr,ni as es,nj as _s,nk as Yt,nl as Yu,o as ah,oa as Ti,ob as Tj,oc as ul,od as um,oe as vn,of as Zn,oh as dr,oi as fs,oj as $s,ok as Zt,ol as Zu,p as bh,pa as Ui,pb as Uj,pc as vl,pd as vm,pe as wn,pf as _n,ph as er,pi as gs,pj as at,pk as _t,pl as _u,q as ch,qa as Vi,qb as Vj,qc as wl,qd as wm,qe as xn,qf as $n,qh as fr,qi as hs,qj as bt,qk as $t,ql as $u,r as dh,ra as Wi,rb as Wj,rc as xl,rd as xm,re as yn,rf as ao,rg as cp,rh as gr,ri as is,rj as ct,rk as au,rl as av,s as eh,sa as Xi,sb as Xj,sc as yl,sd as ym,sf as bo,sg as dp,sh as hr,sj as dt,sk as bu,sl as bv,t as fh,ta as Yi,tb as Yj,tc as zl,td as zm,tf as co,tg as ep,th as ir,ti as js,tj as et,tk as cu,tl as cv,u as gh,ua as Zi,ub as Zj,ud as Am,ue as zn,uf as eo,ug as fp,uh as jr,ui as ks,uj as ft,uk as du,ul as dv,v as hh,va as _i,vb as _j,vc as Bl,vd as Bm,ve as An,vf as fo,vg as gp,vh as kr,vi as ls,vj as gt,vk as eu,vl as ev,w as ih,wa as $i,wb as $j,wc as Cl,wd as Cm,wf as go,wg as hp,wh as lr,wi as ms,wj as ht,wk as fu,wl as fv,x as jh,xa as aj,xb as ak,xc as Dl,xd as Dm,xf as ho,xg as ip,xh as mr,xi as ns,xj as it,xk as gu,xl as gv,y as kh,ya as bj,yb as bk,yc as El,yd as Em,yf as io,yg as jp,yh as nr,yi as os,yj as jt,yk as hu,yl as hv,z as lh,za as cj,zb as ck,zc as Fl,zd as Fm,zf as jo,zg as kp,zh as or,zi as ps,zj as kt,zk as iu,zl as iv}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import{a as yp,b as zp,c as Ap,d as Bp,e as Cp,f as Xp,g as Yp,h as Zp,i as _p,j as $p,k as aq,l as bq,m as cq}from"./chunk-QN6WSWMM.js";import{a as dq,b as eq,c as fq,d as gq,e as hq,f as iq,g as jq,h as kq,i as lq,j as mq,k as nq,l as oq,m as pq,n as qq,o as rq,p as sq,q as tq}from"./chunk-2HQMJ2IU.js";import{c as Al,d as Dp,e as Ep,f as Fp,g as Gp,h as Hp,i as Ip,j as Jp,k as Kp,l as Lp,m as Mp,n as Np,o as Op,p as Pp,q as Qp,r as Rp,s as Sp,t as Tp,u as Up,v as Vp,w as Wp}from"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import{c as Ht,e as It,f as Jt}from"./chunk-MTMU7JYZ.js";import{a as Yk,d as Zk}from"./chunk-SPW5DXX4.js";import{a as Vk,b as Wk}from"./chunk-RNKDFE2S.js";import{A as Kh,B as Lh,C as Mh,D as Nh,E as Oh,F as Ph,G as Qh,H as Rh,I as Sh,J as Th,K as Uh,L as Vh,M as Wh,N as Xh,P as Zh,Q as _h,R as $h,S as ai,T as bi,U as ci,V as di,a as mh,d as nh,e as oh,f as ph,g as qh,h as rh,i as sh,j as th,k as uh,l as vh,m as wh,n as xh,o as yh,p as zh,q as Ah,r as Bh,s as Ch,t as Dh,u as Eh,v as Fh,w as Gh,x as Hh,y as Ih,z as Jh}from"./chunk-TO3ID3JW.js";import{a as Yh}from"./chunk-MKFQMX37.js";import{a as $r,b as as}from"./chunk-47XR7IMP.js";import{b as ar}from"./chunk-FFFZ2QMG.js";import{a as Kl,b as Ll}from"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import{a as wo,b as xo,c as yo,d as zo,e as Ao,f as Bo,g as Co,h as Do,i as Eo,j as Fo,k as pp,l as qp,m as rp,n as sp,o as tp,p as up,q as vp}from"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import{a as sk,b as tk,c as uk,d as vk,e as wk,f as xk,g as yk,h as zk,i as Ak,j as Bk,k as Ck,l as Dk,m as Ek,n as Fk,o as Gk,p as Hk,q as Ik,r as Jk,s as Kk,t as Lk,u as Mk,v as Nk,w as Ok,x as Pk,y as Qk}from"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.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-GUFIMKF5.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-YSIECQIZ.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-SUH3UUWZ.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 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,Cc as Jd,D as Ya,Da as Kb,Db as Cc,Dc as Kd,E as Za,Ea as Lb,Eb as Dc,Ec as Ld,F as _a,Fa as Mb,Fb as Ec,Fc as Md,G as $a,Ga as Nb,Gb as Fc,Gc as Nd,H as ab,Ha as Ob,Hb as Gc,Hc as Od,I as bb,Ia as Pb,Ib as Hc,Ic as Pd,Ja as Qb,Jb as Ic,Jc as Qd,Ka as Rb,Kb as Jc,Kc as Rd,La as Sb,Lc as Sd,Ma as Tb,Mb as Kc,Mc as Td,Na as Ub,Nb as Lc,Nc as Ud,Ob as Mc,Oc as Vd,Pb as Nc,Pc as Wd,Qa as Vb,Qb as Oc,Rb as Pc,Sc as Xd,Ta as Wb,Tc as Yd,Ua as Xb,Ub as Qc,Uc as Zd,Va as Yb,Vb as Rc,Vc as _d,W as cb,Wa as Zb,Wb as Sc,Wc as $d,X as db,Xa as _b,Xb as Tc,Xc as ae,Y as eb,Ya as $b,Yb as Uc,Yc as be,Z as fb,Za as ac,Zb as Vc,Zc as ce,_ as gb,_a as bc,aa as ib,ab as cc,b as ca,ba as jb,bb as dc,c as da,ca as kb,cb as ec,cc as Wc,cd as de,d as ea,da as lb,db as fc,dd as ee,e as ra,ea as mb,eb as gc,ec as Xc,ed as fe,fa as nb,fb as hc,fc as Yc,g as sa,ga as ob,gb as ic,gc as Zc,gd as ge,h as ta,ha as pb,hb as jc,hc as _c,hd as he,ia as qb,ib as kc,ic as $c,ja as rb,jb as lc,jc as ad,jd as ie,ka as sb,kb as mc,kc as bd,la as tb,lb as nc,lc as cd,ld as je,ma as ub,mb as oc,mc as dd,md as ke,n as Ia,nb as pc,nc as ed,nd as le,o as Ja,oa as vb,ob as qc,oc as fd,od as me,p as Ka,pa as wb,pb as rc,pc as gd,pd as ne,q as La,qa as xb,qb as sc,qc as hd,qd as oe,r as Ma,ra as yb,rb as tc,rc as id,rd as pe,s as Na,sa as zb,sb as uc,sc as jd,sd as qe,t as Oa,ta as Ab,tc as kd,td as re,u as Pa,ua as Bb,ud as se,v as Qa,va as Cb,vd as te,w as Ra,wa as Db,wb as vc,wc as Id,wd as ue,x as Sa,xa as Eb,xb as wc,y as Ta,ya as Fb,yb as xc,z as Ua,za as Gb,zb as yc}from"./chunk-FRRBNNEB.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-ELH4YHJR.js";import"./chunk-WHG6N5X2.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-T4P4KEDW.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-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.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-GO2GA2GY.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-MH2P4YXC.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,Uo as AGENT_WORKTREE_HEX_LENGTH,To as AGENT_WORKTREE_PREFIX,Vo as AGENT_WORKTREE_SLUG_PATTERN,Rj as ALL_PROVIDERS,Lt as APPROVAL_MODES,Nt 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,Cl as AUTO_MEMORY_SCHEMA_VERSION,Bl as AUTO_MEMORY_TYPES,Um as AUTO_MODE_DENIAL_LIMITS,Oq as AUTO_SKILL_THRESHOLD,pv as AbortError,r as AccountRestrictedError,Io as AgentCore,so as AgentEventEmitter,ro as AgentEventType,vo as AgentHeadless,gp as AgentInteractive,ha as AgentStatistics,ya as AgentStatus,xa as AgentTerminateMode,Pk as AgentType,Sd as ApiCancelEvent,Rd as ApiErrorEvent,Qd as ApiRequestEvent,ub as ApiRequestPhase,Td as ApiResponseEvent,Kt as ApprovalMode,Ca as ArenaAgentClient,kp as ArenaEventEmitter,jp as ArenaEventType,op as ArenaManager,va as ArenaSessionStatus,fp as AsyncMessageQueue,ie as AuthEvent,Vt as AuthProviderType,Sg as AuthType,xq as BACKGROUND_AGENT_CONCURRENCY_ENV,Ro as BASELINE_COMMIT_MESSAGE,Ya as BINARY_EXTENSIONS,Qa as BINARY_FILE_PATTERNS,zv as BTW_MAX_INPUT_LENGTH,Gr as BUNDLE_CHUNK_DIR,Eq as BackgroundAgentResumeService,rs as BackgroundShellRegistry,Cq as BackgroundTaskRegistry,q as BadRequestError,ka as BaseDeclarativeTool,ia as BaseToolInvocation,Wr as BudgetExhaustedError,bp as BuiltinAgentRegistry,Ff as CAPPED_DEFAULT_MAX_TOKENS,Tu as CODE_ACTION_KIND_LABELS,fm as COMMAND_SUBSTITUTION_WARNING,Sa as COMMON_DIRECTORY_EXCLUDES,Pa as COMMON_IGNORE_PATTERNS,qa as CONCURRENCY_SAFE_KINDS,Oj as CUSTOM_API_KEY_ENV_PREFIX,ek as ChatRecordingService,jo as CloseDiffRequestSchema,Fn as ColorMode,ik as CompressionStatus,pt as ConditionalRulesRegistry,Wt as Config,t as ContentBlockedError,to as ContextState,be as ConversationFinishedEvent,qo as CoreToolScheduler,Fg as CredentialsClearRequiredError,Yq as CronScheduler,Ke as DAEMON_TRACEPARENT_META_KEY,Le as DAEMON_TRACESTATE_META_KEY,Pq as DEFAULT_AUTO_DREAM_MIN_HOURS,Qq as DEFAULT_AUTO_DREAM_MIN_SESSIONS,Dq as DEFAULT_BACKGROUND_AGENT_CONTINUATION_MESSAGE,ap as DEFAULT_BUILTIN_SUBAGENT_TYPE,Ia as DEFAULT_CONTEXT_FILENAME,cb as DEFAULT_ENCODING,Va as DEFAULT_FILE_EXCLUDES,Wk as DEFAULT_FILE_FILTERING_OPTIONS,Lu as DEFAULT_LSP_COMMAND_CHECK_TIMEOUT_MS,Ku as DEFAULT_LSP_DOCUMENT_OPEN_DELAY_MS,Nu as DEFAULT_LSP_DOCUMENT_RETRY_DELAY_MS,Ou as DEFAULT_LSP_MAX_RESTARTS,Iu as DEFAULT_LSP_REQUEST_TIMEOUT_MS,Qu as DEFAULT_LSP_SOCKET_MAX_RETRY_DELAY_MS,Pu as DEFAULT_LSP_SOCKET_RETRY_DELAY_MS,Hu as DEFAULT_LSP_STARTUP_TIMEOUT_MS,Ju as DEFAULT_LSP_WARMUP_DELAY_MS,Mu 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,wq as DEFAULT_MAX_CONCURRENT_BACKGROUND_AGENTS,Zt as DEFAULT_MAX_INLINE_MEDIA_BYTES,Vk as DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,yf as DEFAULT_OTLP_ENDPOINT,Ef as DEFAULT_OUTPUT_TOKEN_LIMIT,Ot as DEFAULT_PR_ATTRIBUTION_MESSAGE,li as DEFAULT_STOP_HOOK_BLOCK_CAP,xf as DEFAULT_TELEMETRY_TARGET,Df as DEFAULT_TOKEN_LIMIT,Rt as DEFAULT_TOOL_OUTPUT_BATCH_BUDGET,ki as DEFAULT_TOOL_RESULTS_TOTAL_CHARS_THRESHOLD,Qt as DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,Pt as DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,Su as DIAGNOSTIC_SEVERITY_LABELS,cp as DISPLAY_MODE,Mq as DREAM_TASK_TYPE,ja as DeclarativeTool,Bk as DefaultHookOutput,Jd as DiscoveredMCPTool,Zr as DiscoveredTool,Gf as ESCALATED_MAX_TOKENS,da as EVENT_API_ERROR,ea as EVENT_API_RESPONSE,ca as EVENT_TOOL_CALL,Go as EXCLUDED_TOOLS_FOR_SUBAGENTS,ws as EXTENSIONS_CONFIG_FILENAME,vs as EXTENSIONS_DIRECTORY_NAME,ys as EXTENSION_SETTINGS_FILENAME,Ho as EXTERNAL_MESSAGE_PREFIX,Lq as EXTRACT_TASK_TYPE,Md as EndSessionEvent,pe as ExtensionDisableEvent,ge as ExtensionEnableEvent,de as ExtensionInstallEvent,et as ExtensionManager,Ys as ExtensionSettingScope,fe as ExtensionUninstallEvent,dt as ExtensionUpdateState,Yi as FILE_HISTORY_DIR,Lo 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,Zo as FileDiscoveryService,On as FileEncoding,Wa as FileExclusions,$i as FileHistoryService,qb as FileOperation,us as FileReadCache,bo as FileSchema,rv as FileSearchFactory,Ud as FlashFallbackEvent,o as ForbiddenError,sh as GOAL_DEFAULT_TOKEN_BUDGET,th as GOAL_DEFAULT_TURN_BUDGET,Gh as GOAL_INFEASIBLE_NEXT_STEP,rh as GOAL_NO_PROGRESS_TURN_LIMIT,Lh as GOAL_PAUSE_REASON_COMMAND,Oh as GOAL_PAUSE_REASON_HEADLESS_RUN_ENDED,Ih as GOAL_PAUSE_REASON_MAX_CHARACTERS,Zh as GOAL_PAUSE_REASON_MIGRATED,Qh as GOAL_PAUSE_REASON_NO_PROGRESS,Ph as GOAL_PAUSE_REASON_REWOUND,Nh as GOAL_PAUSE_REASON_SESSION_DISPOSED,Mh as GOAL_PAUSE_REASON_SESSION_TOKEN_LIMIT,_h as GOAL_PAUSE_REASON_UNREADABLE_STATE,Kh as GOAL_PAUSE_REASON_USER_INTERRUPT,qh as GOAL_PROPOSAL_REASON_MAX_BYTES,ph as GOAL_PROPOSAL_REASON_MAX_CHARACTERS,ai as GOAL_RUNTIME_DISPOSED_MESSAGE,oh as GOAL_STATE_VERSION,w as GOOGLE_ACCOUNTS_FILENAME,xl as GeminiChat,Xq as GeminiClient,hk as GeminiEventType,Yo as GitIgnoreParser,Xo as GitWorktreeService,Wh as GoalConflictError,Xh as GoalInvalidTransitionError,ci as GoalPersistenceUnavailableError,vk as HOOKS_CONFIG_FIELDS,tk as HookEventName,uk as HookPhase,jt as HookRegistry,lt as HookSystem,wk as HookType,sk as HooksConfigSource,ko as IDEConnectionStatus,Vn as IDE_DEFINITIONS,Yn as IDE_MAX_OPEN_FILES,Zn as IDE_MAX_SELECTED_TEXT_LENGTH,_n as IDE_REQUEST_TIMEOUT_MS,kv as IDLE_SPECULATION,up as INBOXES_DIR,bv as INITIAL_FOLLOWUP_STATE,xs as INSTALL_METADATA_FILENAME,ep as ITermBackend,lo as IdeClient,ae as IdeConnectionEvent,$d as IdeConnectionType,eo as IdeContextNotificationSchema,co as IdeContextSchema,$n as IdeContextStore,fo as IdeDiffAcceptedNotificationSchema,ho as IdeDiffClosedNotificationSchema,go as IdeDiffRejectedNotificationSchema,Jt as Ignore,hp as InProcessBackend,$r as InputFormat,Tr as InvalidMcpConfigError,nj as InvalidSessionListCursorError,vl as InvalidStreamError,Xt as JsonFormatter,ar as KeychainTokenStorage,oa as Kind,ce as KittySequenceOverflowEvent,qp as LEADER_NAME,ej as LITE_READ_BUF_SIZE,Ka as LOCAL_CONTEXT_FILENAME,ju as Logger,Wd as LoopType,Uu as LspConfigLoader,Vu as LspConnectionFactory,Wu as LspResponseNormalizer,Xu as LspServerManager,Cf as MAINLINE_CODER_MODEL,ra as MAIN_SOURCE,Nf as MATILDA_API_KEY_ENV_KEY,Xn as MATILDA_CODE_COMPANION_EXTENSION_NAME,Bu as MATILDA_CODE_SIMPLE_ENV_VAR,Pg as MATILDA_CREDENTIAL_FILE_MODE,v as MATILDA_DIR,Uf as MATILDA_OAUTH_MODELS,wc as MATILDA_SESSION_ID_HASH_ATTR,vc as MATILDA_USER_ID_HASH_ATTR,zq as MAX_CONCURRENT_BACKGROUND_AGENTS,ls as MAX_CONCURRENT_MONITORS,Ni as MAX_DIFF_SIZE_BYTES,Mi as MAX_FILES,Pi as MAX_FILES_FOR_DETAILS,Oi as MAX_LINES_PER_FILE,ps as MAX_NOTIFICATION_OUTPUT_TAIL_BYTES,Aq as MAX_RETAINED_TERMINAL_AGENTS,ms as MAX_RETAINED_TERMINAL_MONITORS,qs as MAX_RETAINED_TERMINAL_SHELLS,ss as MAX_RETAINED_TERMINAL_WORKFLOWS,Xi as MAX_SNAPSHOTS,pp as MAX_TEAMMATES,Sm as MAX_TRANSCRIPT_MESSAGES,Tq as MAX_TURNS,yk as MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,jr as MCPDiscoveryState,fr as MCPOAuthProvider,br as MCPOAuthTokenStorage,Tt as MCPServerConfig,ir as MCPServerStatus,Vr as MCP_BUDGET_REARM_FRACTION,Ur as MCP_BUDGET_WARN_FRACTION,gr as MCP_DEFAULT_TIMEOUT_MSEC,Ra as MEDIA_FILE_PATTERNS,La as MEMORY_SECTION_HEADER,Fv as MOCK_TOOL_GET_CONFIRMATION_DETAILS,Ev 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,Rr as McpBudgetWouldExceedError,kr as McpClient,Yr as McpClientManager,Sr as McpServerSpawnFailedError,lu as McpTransportPool,te as MemoryDreamEvent,se as MemoryExtractEvent,Rq as MemoryManager,sb as MemoryMetricType,ue as MemoryRecallEvent,nt as MessageBus,Ml as MessageBusType,gu as MessageSenderType,Hv as MockModifiableTool,Gv as MockModifiableToolInvocation,Dv as MockTool,Wf as ModelRegistry,he as ModelSlashCommandEvent,Xf as ModelsConfig,os as MonitorRegistry,Yu as NativeLspClient,Zu as NativeLspService,Xd as NextSpeakerCheckEvent,Jk as NotificationType,er as OAUTH_AUTH_URL_EVENT,dr as OAUTH_DISPLAY_MESSAGE_EVENT,cr as OAuthUtils,Ij as OPENROUTER_BASE_URL,Hj as OPENROUTER_ENV_KEY,Hf as OUTPUT_TOKEN_SAFETY_MARGIN,Ae as OpenAILogger,io as OpenDiffRequestSchema,as as OutputFormat,hv as OverlayFs,z as PATH_ARG_KEYS,Bh as PAUSED_GOAL_SYSTEM_REMINDER,Or as POOLED_TRANSPORTS_DEFAULT,yj as PROVIDER_METADATA_NS,Ta as PYTHON_EXCLUDES,rb as PerformanceMetricType,is as PermissionManager,Lk as PermissionMode,Ik as PermissionRequestHookOutput,Ok as PostCompactTrigger,Gk as PostToolBatchHookOutput,Ek as PostToolUseFailureHookOutput,Dk as PostToolUseHookOutput,Nk as PreCompactTrigger,Ck as PreToolUseHookOutput,qe as PromptSuggestionEvent,Wj as ProviderInstallError,dq as RECIPROCAL_CALLER,Es 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,aj as RUNTIME_STATUS_SCHEMA_VERSION,Id as ReadFileTool,nf as ReportedOperationTracker,Ct as RipGrepTool,Vd as RipgrepFallbackEvent,De as RuntimeDiagnosticsCollector,dn as SAFE_TOOL_ALLOWLIST,mj as SESSION_TITLE_MAX_LENGTH,y as SHELL_SPECIAL_CHARS,sm as SHELL_TOOL_NAMES,Nq as SKILL_REVIEW_TASK_TYPE,bi as STALE_GOAL_TURN_MESSAGE,mi as STOP_HOOK_BLOCK_CAP_ENV,ck as STREAM_RECOVERY_PARTIAL_DISPOSITION,bk as STREAM_RECOVERY_SNAPSHOT_DISPOSITION,dv as SUGGESTION_PROMPT,wg as SUPPORTED_IMAGE_MIME_TYPES,Ru as SYMBOL_KIND_LABELS,Ua as SYSTEM_FILE_EXCLUDES,$k as SYSTEM_REMINDER_CLOSE,_k as SYSTEM_REMINDER_OPEN,ga as SchemaValidator,$q as SdkControlClientTransport,Vb as SemanticAttributes,Uq as SendMessageType,Mk as SessionEndReason,oj as SessionService,Kk as SessionStartSource,ct as SettingScope,Nn as ShellExecutionService,gs as SkillActivationRegistry,ds as SkillError,je as SkillLaunchEvent,hs as SkillManager,Zd as SlashCommandStatus,Sk as SleepInhibitor,R as SpanStatusCode,re as SpeculationEvent,Un as StandardFileSystemService,Ld as StartSessionEvent,Hk as StopHookOutput,O as Storage,rl as StreamEventType,Jo as SubagentError,Ko as SubagentErrorCode,ks as SubagentManager,js as SubagentValidator,sp as TASKS_DIR,vp as TEAMMATE_COLORS,rp as TEAMS_DIR,tp as TEAM_CONFIG_FILENAME,xi as TERMINAL_CSI_REGEX,wi as TERMINAL_OSC_REGEX,yi as TERMINAL_SHIFT_DCS_REGEX,Sj as THIRD_PARTY_PROVIDERS,ak as THOUGHT_ONLY_DISPOSITION,rm as TOOL_NAME_ALIASES,pu as TOOL_USE_SUMMARY_SYSTEM_PROMPT,Kl as TaskCompletionScope,kq as TaskOwnershipError,xp as TeamEventEmitter,wp as TeamEventType,vq as TeamManager,wf as TelemetryTarget,vg as TextTokenizer,dp as TmuxBackend,Pd as ToolCallEvent,na as ToolConfirmationOutcome,Ea as ToolDisplayNames,Ha as ToolDisplayNamesMigration,fa as ToolErrorType,tb as ToolExecutionPhase,Da as ToolNames,Fa as ToolNamesMigration,ee as ToolOutputTruncatedEvent,_r as ToolRegistry,Mt as TrustGateError,jk as Turn,qd as USER_AUTO_MEMORY_DIRNAME,sa as UiTelemetryService,p as UnauthorizedError,le as UserFeedbackEvent,ke as UserFeedbackRating,Nd as UserPromptEvent,Fk as UserPromptExpansionHookOutput,Od as UserRetryEvent,Q as ValueType,So as WORKTREES_DIR,Mo as WORKTREE_BRANCH_PREFIX,Oo as WORKTREE_SESSION_FILE,ts as WorkflowRunRegistry,_o as WorkspaceContext,mu as WorkspaceMcpBudget,Fu as WorkspaceMemoryFileTooLargeError,Du as WorkspaceMemoryWriteTimeoutError,Ai as _recoverObjectsFromLine,mo as _resetCachedIdeServerHost,Fi as _resetEnsuredDirsCacheForTest,Bt as _resetRipGrepCachesForTest,x as _resetValidatePathCacheForTest,nv as abortSpeculation,mv as acceptSpeculation,Uk as acquireSleepInhibitor,Re as addDaemonRequestAttribute,mr as addMCPStatusChangeListener,$b as addModelOutputAttributes,Zb as addSystemPromptAttributes,ac as addToolInputAttributes,bc as addToolResultAttributes,_b as addToolSchemaAttributes,Yb as addUserPromptAttributes,Au as aggregateUsage,vn as allowEditorTypeInSandbox,nh as ambientGoalToolResultProvenance,Hi as appendLine,dh as appendToLastTextPart,jn as applyAutoModeDecision,Xj as applyProviderInstallPlan,Zk as applySkillAllowedTools,$t as approxBase64Bytes,eq as assertValidTaskId,Lp as assignTeammateColor,_ as atomicWriteFile,ba as atomicWriteFileSync,$ as atomicWriteJSON,pq as blockTask,el as buildAddedMcpToolsReminder,hl as buildAddedSkillsReminder,pj as buildApiHistoryFromConversation,gl as buildAvailableSkillsReminder,Bq as buildBackgroundEntryLabel,Bv as buildBtwCacheSafeParams,Av as buildBtwPrompt,dl as buildDeferredToolsReminder,mp as buildFallbackApproachSummary,Kv as buildGoalContinuationParts,Am as buildHumanReadableRuleLabel,zj as buildInstallPlan,fl as buildMcpServerInstructionsReminder,Zq as buildMissedCronNotification,Yg as buildModelIdContext,Im as buildPermissionCheckContext,zm as buildPermissionRules,Gj as buildProviderTemplate,tf as buildReportedOperationHeaders,hm as buildShellExecWarnings,Yk as buildSkillLlmContent,il as buildStartupContextReminder,uq as buildTeammatePromptAddendum,Qg as cacheMatildaCredentials,Mr as canUseRipgrep,Ga as canonicalToolName,Ue as captureDaemonTelemetryContext,om as checkArgumentSafety,im as checkCommandPermissions,Ns as checkForExtensionUpdate,un as checkHasEditorType,Ks as checkNpmUpdate,qq as claimTask,bu as clampInlineMediaPart,If as clampOutputToContextWindow,qg as classifyRetryError,Qp as classifyShutdownResponse,su as cleanSummary,Jv as cleanupTmpDir,bq as clearAllInboxes,td as clearAutoMemoryRootCache,Hq as clearCacheSafeParams,Rg as clearCachedCredentialFile,aq as clearInbox,zc as clearMatildaCorrelationHashes,bg as clearMatildaCredentials,dj as clearRuntimeStatus,Mp as clearTeammateColors,vv as clearWelcomeBackState,Ft as clearWorktreeSession,tt as cliSource,Ls as cloneFromGit,_q as collectMemoryDiagnostics,nl as collectToolCallIdsFromHistory,pn as commandExists,tl as compactPendingUserContentToBudget,sl as compactTextMiddle,Aj as computeModelListVersion,Rk as computeThresholds,tj as computeUniqueBranchTitle,xt as computedSource,xr as connectAndDiscover,Dr as connectToMcpServer,Pr as connectionIdOf,$p as consumeUnread,Ts as convertClaudeAgentConfig,Vs as convertClaudePluginPackage,Us as convertClaudeToMatildaConfig,Hn as convertColorToHex,po as convertToFunctionResponse,Rs as convertTomlToMarkdown,ft as copyExtension,hb as countFileLines,Ki as countLines,Ht as crawlCache,Wg as createContentGenerator,Vg as createContentGeneratorConfig,Ye as createDaemonBridgeTelemetry,Y as createDebugLogger,El as createDefaultAutoMemoryExtractCursor,Fl as createDefaultAutoMemoryIndex,Dl as createDefaultAutoMemoryMetadata,Vm as createDenialState,cv as createFollowupController,Iq as createForkedChat,di as createGoalRuntime,Ak as createHookOutput,mt as createInstructionsLoadedCallback,hr as createStreamableHttpCompatibilityFetch,iq as createTask,Tp as createTeamFile,Iv as createTmpDir,ou as createToolUseSummaryMessage,Er as createTransport,Qj as customProvider,eb as decodeBufferWithEncodingInfo,iu as decodeTagName,pl as dedupeToolCallsById,Kj as deepseekProvider,wt as defaultSource,mq as deleteTask,Vp as deleteTeamDirs,_i as deserializeSnapshots,db as detectBOM,ip as detectBackend,em as detectCommandSubstitution,bb as detectEncodingFromBuffer,jb as detectFileEncoding,nb as detectFileType,Wn as detectIdeFromEnv,Sn as detectLineEnding,sg as detectRuntime,Qk as detectTodoChanges,vr as discoverMcpTools,Ar as discoverPrompts,yr as discoverTools,Xp as disposeInboxLocks,Ul as doesToolInvocationMatch,Os as downloadFromGitHubRelease,Js as downloadFromNpmRegistry,qn as editorCommands,Te as emitDaemonLog,Dh as emptyGoalSnapshot,eu as encodeInsightErrorMessage,cu as encodeInsightProgressMessage,du as encodeInsightReadyMessage,hu as encodeTagName,Tn as encodeTextFileContent,qc as endHookSpan,ec as endInteractionSpan,hc as endLLMRequestSpan,tc as endSubagentSpan,oc as endToolBlockedOnUserSpan,mc as endToolExecutionSpan,kc as endToolSpan,Gl as ensureAutoMemoryScaffold,Rn as ensureCrlfLineEndings,Lr as ensureMacBinarySigned,Kr as ensureRipgrepHealthy,ov as ensureToolResultPairing,Ei as ensureTrailingNewlineSync,Il as ensureUserAutoMemoryScaffold,pf as enterReportedOperationContext,yt as envLayer,Jn as escapeJsonTagCharacters,E as escapePath,Xl as escapeShellArg,ve as estimateTokensFromChars,nn as evaluateAutoMode,Mm as evaluatePermissionFlow,Jm as evaluatePermissionRules,iv as evaluateToolCall,jm as execCommand,ku as executeToolCall,Li as exists,B as expandHomeDir,Xe as extractDaemonTraceContext,Xa as extractExtensionsFromPatterns,Qs as extractFile,hj as extractJsonStringField,jj as extractLastJsonStringField,ij as extractLastJsonStringFields,Tm as extractShellOperations,oo as extractToolFilePaths,Qi as fetchGitDiff,Ri as fetchGitDiffHunks,pb as fileExists,qv as filter,si as findGitRoot,Op as findMemberById,Pp as findMemberByName,Uj as findProviderByCredentials,Tj as findProviderById,Ps as findReleaseAsset,Rl as fireNotificationHook,Sl as firePermissionRequestHook,Ql as firePostToolUseFailureHook,Pl as firePostToolUseHook,Ol as firePreToolUseHook,ch as flatMapTextParts,Ec as forceFlushMetrics,Jp as formatAgentId,mn as formatClassifierBlockMessage,al as formatDateForContext,Wm as formatDenialStateLog,Ll as formatJoinedWaitNotice,np as formatLineStats,In as formatMemoryUsage,pi as formatStopHookBlockingCapWarning,T as formatTraceparent,Bp as forwardApproval,Wo as generateAgentWorktreeSlug,Dg as generateCodeChallenge,Cg as generateCodeVerifier,Pj as generateCustomEnvKey,Eg as generatePKCEPair,ev as generatePromptSuggestion,nu as generateSessionRecap,Nl as generateToolUseId,qu as generateToolUseSummary,Kp as generateUniqueTeammateName,Kd as generateValidName,we as generatedOutputTokens,uc as getActiveInteractionSpan,zo as getAgentName,tq as getAgentStatuses,Oa as getAllGeminiMdFilenames,rr as getAllMCPServerStatuses,Vj as getAllProviderBaseUrls,qk 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,ln as getAutoModePermissionDeniedReason,Ir as getBuiltinRipgrep,Gq as getCacheSafeParams,_a as getCachedEncodingForBuffer,Zl as getCommandRoot,_l as getCommandRoots,nk as getCompressionPrompt,mk as getCoreSystemPrompt,Na as getCurrentGeminiMdFilename,lk as getCustomSystemPrompt,Bj as getDefaultBaseUrlForProtocol,Dj as getDefaultModelIds,xn as getDiffCommand,bl as getDirectoryContextString,rn as getEditorExecutable,Om as getEffectivePermissionForConfirmation,at as getEnvContents,cl as getEnvironmentContext,c as getErrorMessage,d as getErrorStatus,e as getErrorType,gt as getExtensionId,tn as getExternalEditorCommand,fv as getFilterReason,Xk as getFolderStructure,gh as getFunctionCalls,ih as getFunctionCallsAsJson,hh as getFunctionCallsFromParts,jh as getFunctionCallsFromPartsAsJson,ti as getGitBranch,ui as getGitRepoName,xk as getHookKey,Gu as getIdeInstaller,no as getIdeServerHost,Yp as getInboxPath,Gp as getInboxesDir,jl as getInitialChatHistory,rk as getInsightPrompt,zp as getLeader,sr as getMCPDiscoveryState,av as getMCPServerPrompts,qr as getMCPServerStatus,Pf as getMatildaAuthBaseUrl,cg as getMatildaAuthStatus,yc as getMatildaCorrelationHashes,_f as getMatildaCredentialsPath,Og as getMatildaOAuthClient,_t as getMaxInlineMediaBytes,rd as getMemoryBaseDir,ns as getMonitorOutputPath,tg as getOrCreateSharedDispatcher,pk as getPlanModeSystemReminder,G as getProjectHash,wv as getProjectSummaryInfo,ok as getProjectSummaryPrompt,og as getRateLimitErrorDetails,pg as getRateLimitRetryDelayMs,vi as getRecentGitStatus,mf as getReportedOperationContext,bh as getResponseText,fh as getResponseTextFromParts,rj as getResumePromptTokenCount,sj as getResumeTokenCounts,ym as getRuleDisplayName,$s as getScopedEnvContents,Mn as getShellAbortReasonKind,Vl as getShellConfiguration,kb as getSpecificMimeType,um as getSpecifierKind,kl as getStartupContextLength,kh as getStructuredResponse,lh as getStructuredResponseFromParts,yg as getSupportedImageFormatsString,$a as getSystemEncoding,jq as getTask,fq as getTaskPath,Hp as getTasksDir,Ep as getTeamDir,Fp as getTeamFilePath,Ao as getTeamName,Eo as getTeammateColor,xo as getTeammateContext,Dp as getTeamsRootDir,gk as getThoughtText,zu as getTimeRangeBounds,S as getTraceContext,zg as getUnsupportedImageFormatWarning,Ed as getUserAutoMemoryIndexPath,Dd as getUserAutoMemoryRoot,Fd as getUserAutoMemoryTopicPath,eg as getValidMatildaAccessToken,tv as getWelcomeBackState,Sq as globalMemoryManager,yh as goalActiveTimeBudgetReason,Rh as goalPauseReasonForFailure,Uh as goalPauseReasonForHeadlessFailure,Th as goalPauseReasonForRepeatedGaps,Vh as goalPauseReasonForRunBudget,Sh as goalPauseReasonForVerifierFailure,Eh as goalRequiresExactPermit,ei as goalRuntimeOf,fi as goalTaskEnd,uh as goalTokenBudgetReason,wh as goalTurnBudgetReason,mh as goalTurnContext,ur as handleAutomaticOAuth,ma as hasCycleInSchema,Kf as hasExplicitOutputLimit,Cr as hasNetworkTransport,bm as hasNonFinalTopLevelBackgroundOperator,gm as hasShellSubstitution,dm as hasUnsafeMonitorBackgroundOperator,Me as hashDaemonWorkspace,_u as hashMcpServerConfig,ht as hashValue,kt as hookEventSupportsMatcher,As as hydrateString,ao as ideContextStore,Ze as initializeDaemonMetrics,Bc as initializeTelemetry,We as injectDaemonTraceContext,Km as injectPermissionRulesIfMissing,Br as invokeMcpPrompt,b as isAbortError,s as isAccountInactiveError,Hd as isAnyAutoMemPath,ig as isApiError,Qm as isApprovalWaivedInPlanMode,bn as isApproveOutcome,Rm as isAutoEditApproved,vd as isAutoMemPath,Cu as isBareMode,Cn as isBinary,mb as isBinaryFile,Yf as isBrowserCommandBlocked,Xs as isClaudePluginConfig,mm as isCommandAllowed,lm as isCommandAvailable,nm as isCommandNeedsPermission,U as isDebugLoggingDegraded,Xm as isDenialFallbackReason,Hg as isDeviceAuthorizationSuccess,Jg as isDeviceTokenPending,Ig as isDeviceTokenSuccess,wn as isEditorAvailable,Fr as isEnabled,Kg as isErrorResponse,dk as isFinalAnswerResponse,St as isGatedMcpScope,lg as isGenericQuotaExceededError,ri as isGitRepository,zh as isGoalActiveTimeBudgetSpent,Ch as isGoalEvidenceProofKind,Ah as isGoalLimitKind,vh as isGoalTokenBudgetSpent,xh as isGoalTurnBudgetSpent,yo as isInProcessTeammate,en as isInSafeToolAllowlist,zl as isInvalidArgumentError,mg as isMatildaQuotaExceededError,zn as isModifiableDeclarativeTool,a as isNodeError,$o as isPathWithinRoot,Ob as isPerformanceMonitoringActive,Pm as isPlanModeBlocked,kg as isProQuotaExceededError,Al as isProcessAlive,ng as isRateLimitError,Fh as isRepeatedBlockerProposal,lf as isReportedOperationHeaderName,rg as isRetryableUpstreamError,Ce as isRuntimeDiagnosticsEnabled,yl as isSchemaDepthError,Hs as isScopedNpmPackage,Ut as isSdkMcpServerConfig,M as isSessionTranscript,Ba as isSettledStatus,jg as isStructuredError,I as isSubpath,J as isSubpaths,Aa as isSuccessStatus,xg as isSupportedImageMimeType,ll as isSystemReminderContent,Do as isTeamLead,Co as isTeammate,Ac as isTelemetrySdkInitialized,sn as isTerminalEditor,za as isTerminalStatus,Ss as isTomlFormat,la as isTool,Tl as isToolEnabled,Zg as isTransientCapacityError,_g as isUnattendedMode,$j as isUserAuthoredPromptRecord,Gd as isUserAutoMemPath,on as isValidEditorType,ul as isValidNonThoughtTextPart,Wl as isWindows,lb as isWithinRoot,Lf as knownTokenLimit,zt as layer,zr as listMcpPrompts,nq as listTasks,Wp as listTeamNames,It as loadIgnoreRules,qt as loadServerHierarchicalMemory,yu as loadUsageHistory,Oc as logApiCancel,Nc as logApiError,Kc as logApiRequest,Pc as logApiResponse,ed as logArenaAgentCompleted,fd as logArenaSessionEnded,dd as logArenaSessionStarted,ad as logAuth,Uc as logChatCompression,Tc as logConversationFinishedEvent,$c as logExtensionDisable,_c as logExtensionEnable,Xc as logExtensionInstallEvent,Yc as logExtensionUninstall,Zc as logExtensionUpdateEvent,Lc as logFlashFallback,Sc as logIdeConnection,Vc as logKittySequenceOverflow,jd as logMemoryDream,id as logMemoryExtract,kd as logMemoryRecall,Wc as logModelSlashCommand,Qc as logNextSpeakerCheck,gd as logPromptSuggestion,Mc as logRipgrepFallback,bd as logSkillLaunch,Rc as logSlashCommand,hd as logSpeculation,Fc as logStartSession,Ic as logToolCall,Jc as logToolOutputTruncated,cd as logUserFeedback,Gc as logUserPrompt,Hc as logUserRetry,Qf as loginToMatilda,hg as loginToMatildaWithBrowser,dg as logoutMatilda,ne as makeArenaAgentCompletedEvent,oe as makeArenaSessionEndedEvent,me as makeArenaSessionStartedEvent,_d as makeChatCompressionEvent,Cv as makeFakeConfig,D as makeRelative,Yd as makeSlashCommandEvent,Cm as matchesCommandPattern,Fm as matchesDomainPattern,Gm as matchesMcpPattern,Em as matchesPathPattern,Hm as matchesRule,Ng as matildaOAuth2Events,Of as matildaProvider,Zs as maybePromptForSettings,lr as mcpServerRequiresOAuth,Xr as mcpTransportOf,Ws as mergeClaudeConfigs,uu as metricsToUsageRecord,Lj as minimaxProvider,vt as modelProvidersSource,Vf as modelRegistryKey,Nj as modelscopeProvider,An as modifyWithEditor,Nm as needsConfirmation,Pn as needsUtf8Bom,Jf as normalize,Dn as normalizeContent,ol as normalizeModelToolCallIds,cm as normalizeMonitorCommand,ot as normalizeProxyUrl,es as normalizeSkillPriority,ni as normalizeStopHookBlockingCap,ye as normalizeStoredModelUsage,vu as normalizeUsageRecord,hq as notifyTasksUpdated,gq as onTasksUpdated,Ag as openBrowserSecurely,yn as openDiff,Jj as openRouterProvider,Be as openaiLogger,au as oversizedMediaPlaceholder,bs as parse,qi as parseAndFormatApiError,He as parseBooleanEnvFlag,Qr as parseConnectionId,Vi as parseDeletedFromNameStatus,Ti as parseGitDiff,Ms as parseGitHubRepoForReleases,Si as parseGitNumstat,fu as parseInsightMessage,$u as parseInstallSource,Bi as parseLineTolerant,Gs as parseNpmPackageSource,wm as parseRule,xm as parseRules,Ui as parseShortstat,Ie as parseTelemetryTargetValue,fk as parseThought,Yt as partListUnionToString,ah as partToString,hn as passesAcceptEditsFastPath,Ds as performVariableReplacement,Lm as persistPermissionOutcome,tu as persistSessionUsage,wr as populateMcpServerCommand,eh as prependToFirstTextPart,ob as processSingleFileContent,Lv as projectGoalCard,_s as promptForSetting,Kn as promptIdContext,Fj as providerMatchesCredentials,Di as read,Hl as readAutoMemoryIndex,gb as readFileWithEncoding,fb as readFileWithEncodingInfo,ib as readFileWithLineAndLimit,Zp as readInbox,fj as readLastConversationTimestampSync,kj as readLastJsonStringFieldSync,lj as readLastJsonStringFieldsSync,Ci as readLines,xv as readManyFiles,$f as readMatildaCredentials,sv as readPathFromWorkspace,cj as readRuntimeStatus,Rp as readTeamFile,Jl as readUserAutoMemoryIndex,Dt as readWorktreeSession,Qo as readWorktreeSessionMarker,Ym as recordAllow,yb as recordApiErrorMetrics,Kb as recordApiRequestBreakdown,xb as recordApiResponseMetrics,Db as recordApiRetry,Qb as recordArenaAgentCompletedMetrics,Rb as recordArenaSessionEndedMetrics,Pb as recordArenaSessionStartedMetrics,Nb as recordBaselineComparison,Zm as recordBlock,Bb as recordContentRetry,Cb as recordContentRetryFailure,Gb 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,an as recordFallbackApprove,zb as recordFileOperationMetric,Ab as recordInvalidChunk,Tb as recordMemoryDreamMetrics,Sb as recordMemoryExtractMetrics,Ub as recordMemoryRecallMetrics,Fb as recordMemoryUsage,Mb as recordPerformanceRegression,Lb as recordPerformanceScore,ji as recordStartupEvent,Eb as recordStartupPerformance,Jb as recordTokenEfficiency,wb as recordTokenUsageMetrics,vb as recordToolCallMetrics,Ib as recordToolExecutionBreakdown,Hb as recordToolQueueDepth,_m as recordUnavailable,$h as recoverGoalFromRecords,Bs as recursivelyHydrateStrings,ug as redactProxyCredentials,ql as redactStructuredOutputArgsForRecording,Fs as redactUrlCredentials,wu as reestimateUsageFromAssistantRecord,fg as refreshMatildaCredentials,Cc as refreshSessionContext,_e as registerDaemonGaugeCallbacks,yp as registerLeader,rq as releaseOwnedTask,gi as releaseUnstartedGoalTurn,hi as releaseWithdrawnGoalTurn,pr as removeMCPServerStatus,nr as removeMCPStatusChangeListener,Z as renameWithRetry,aa as renameWithRetrySync,wl as repairOrphanedToolUseTurns,qj as replayUiTelemetryFromConversation,vf as reportCliAuthFunnelEvent,uf as reportCliClientEvent,Vq as reportedAttemptPurposeForSendMessageType,V as resetDebugLoggingState,cn as resetDenialState,Za as resetEncodingCache,oq as resetTaskList,Qn as resetUtf8BomCache,Bo as resolveActiveTeamName,N as resolveAndValidatePath,Cj as resolveBaseUrl,Hr as resolveBundleDir,km as resolveCommandPath,Tg as resolveContentGeneratorConfigWithSources,rt as resolveField,Wi as resolveGitDir,Yj as resolveLocalHistoryAccountScopeId,Zj as resolveLocalHistoryAccountScopeIdForCredentials,yq as resolveMaxConcurrentBackgroundAgents,xj as resolveMetadataKey,At as resolveModelConfig,Xg as resolveModelId,Is as resolveNpmRegistry,ze as resolveOpenAILogDir,st as resolveOptionalField,wj as resolveOwnsModel,K as resolvePath,kk as resolvePathFromEnv,Dm as resolvePathPattern,Jr as resolveRipgrep,oi as resolveStopHookBlockingCap,Je as resolveTelemetrySettings,tm as resolveToolName,Gt as restoreWorktreeContext,$g as retryWithBackoff,jv as rewritePathArgs,xu as rewriteUsageHistoryFromChats,rf as runAsyncGeneratorWithReportedOperationContext,Kq as runForkedAgent,sc as runInSubagentSpanContext,jc as runInToolSpanContext,Nr as runRipgrep,Yh as runSideQuery,Ve as runWithDaemonTelemetryContext,X as runWithDebugLogSession,Jq as runWithForkedChatModel,qf as runWithReportedAttemptPurpose,of as runWithReportedOperationContext,Fo as runWithTeammateIdentity,Ee as runtimeDiagnostics,wa as safeAgentId,Bn as safeLiteralReplace,H as sanitizeCwd,Wb as sanitizeHookName,Ip as sanitizeName,vj as sanitizeTitle,_j as sanitizeToolCallResultForRecording,zk as sanitizeUserPromptExpansionAdditionalContext,Fq as saveCacheSafeParams,uv as saveWelcomeBackRestartChoice,cq as sendStructuredMessage,Zi as serializeSnapshot,Gn as serializeTerminalToObject,En as serializeTerminalToText,Ln as sessionIdContext,W as setDebugLogSession,Ma as setGeminiMdFilename,tr as setMCPDiscoveryState,xc as setMatildaCorrelationHashes,Np as setMemberActive,ii as setStartupEventSink,ut as settingsSource,C as shortenPath,Zf as shouldAttemptBrowserLaunch,pm as shouldDefaultToNodePty,$m as shouldFallback,gv as shouldFilterSuggestion,kn as shouldFirePermissionDeniedForAutoMode,gn as shouldForceAutoModeReviewForAllow,Bg as shouldLaunchBrowser,fn as shouldRunAutoModeForCall,Ej as shouldShowStep,Dc as shutdownTelemetry,Tk as sleepInhibitor,Yl as splitCommands,Bm as splitCompoundCommand,fs as splitConditionalSkills,pc as startHookSpan,dc as startInteractionSpan,gc as startLLMRequestSpan,lv as startSpeculation,rc as startSubagentSpan,nc as startToolBlockedOnUserSpan,lc as startToolExecutionSpan,ic as startToolSpan,Wq as startsReportedOperation,cs as stringify,Sf as stripRuntimeSnapshotPrefix,$l as stripShellWrapper,ml as stripStartupContext,zi as stripTerminalControlSequences,am as stripTrailingBackgroundAmp,yv as subagentGenerator,Cs as substituteHookVariables,Ge as summarizeAnthropicWireRequest,Fe as summarizeOpenAIWireRequest,lp as summarizeUnifiedDiff,wo as teammateIdentityStore,uo as templateString,A as tildeifyPath,u as toFriendlyError,qm as toPosixPath,Mf as tokenLimit,vm as toolMatchesRuleToolName,xe as totalTokensFromBuckets,Xb as truncateContent,ru as truncateJson,cc as truncateSpanError,uj as tryGenerateSessionTitle,Up as tryReclaimStaleTeam,ta as uiTelemetryService,sq as unassignTeammateTasks,gj as unescapeJsonString,F as unescapePath,Ap as unregisterLeader,or as updateMCPServerStatus,bt as updateSetting,P as updateSymlink,lq as updateTask,Jh as validateGoalPauseReason,Hh as validateGoalProposalReason,Ug as validateModelConfig,it as validateName,L as validatePath,zs as validateVariables,gg as willOpenMatildaAuthBrowser,ab as windowsCodePageToEncoding,Pe as withDaemonBridgeSpan,Oe as withDaemonRequestSpan,Ne as withDaemonSpan,fc as withInteractionSpan,sf as withReportedAttemptPurpose,No as worktreeBranchForSlug,Cp as wrapConfirmWithBadge,Ji as write,Gi as writeLine,Ii as writeLineSync,ag as writeMatildaCredentials,_p as writeMessage,bj as writeRuntimeStatus,Sp as writeTeamFile,Eu as writeWorkspaceContextFile,Et as writeWorktreeSession,Po as writeWorktreeSessionMarker,Mj 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-T4P4KEDW.js";import{ba as g}from"./chunk-MH2P4YXC.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-WHG6N5X2.js";import"./chunk-T4P4KEDW.js";import"./chunk-MH2P4YXC.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-YMIF2DMT.js";import"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import"./chunk-QKYGQLWC.js";import"./chunk-T4P4KEDW.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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-SNLH42QJ.js";import"./chunk-HYVP4472.js";import{g as i,i as c,p as n,q as u}from"./chunk-T4P4KEDW.js";import"./chunk-MH2P4YXC.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-2HQMJ2IU.js";import"./chunk-W5CGKUM4.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-T4P4KEDW.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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-T4P4KEDW.js";import"./chunk-MH2P4YXC.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-YMIF2DMT.js";import{a as h,b as f,g as $,h as y,i as g,j as v,k as I}from"./chunk-2HQMJ2IU.js";import"./chunk-W5CGKUM4.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-T4P4KEDW.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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{Hg as D,wg as u}from"./chunk-
|
|
3
|
+
import{Hg as D,wg as u}from"./chunk-VVIJGBQK.js";import"./chunk-TZIDSCTF.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-NYEWHSBL.js";import{l as A}from"./chunk-QN6WSWMM.js";import{l as C}from"./chunk-2HQMJ2IU.js";import{e as w,h as T,i as k,j as b,t as o,u as v}from"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import"./chunk-MTMU7JYZ.js";import"./chunk-SPW5DXX4.js";import"./chunk-RNKDFE2S.js";import"./chunk-TO3ID3JW.js";import"./chunk-MKFQMX37.js";import"./chunk-47XR7IMP.js";import"./chunk-FFFZ2QMG.js";import"./chunk-SNLH42QJ.js";import"./chunk-HYVP4472.js";import{k as f,l as y}from"./chunk-QKYGQLWC.js";import"./chunk-QH7736R5.js";import"./chunk-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-66NIIU2R.js";import"./chunk-GUFIMKF5.js";import"./chunk-YSIECQIZ.js";import"./chunk-DC7LAFZZ.js";import"./chunk-4F4DA5UI.js";import"./chunk-SUH3UUWZ.js";import"./chunk-4J6DC24J.js";import"./chunk-LJR4RZZ2.js";import"./chunk-U347OO7S.js";import"./chunk-SDTWBD62.js";import"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import{g as c,i as g,p as h,q as p}from"./chunk-T4P4KEDW.js";import"./chunk-S4UT3QLV.js";import"./chunk-XCFLI3OC.js";import"./chunk-ESSYHTAZ.js";import"./chunk-3YLXGE6T.js";import"./chunk-GO2GA2GY.js";import{b as d}from"./chunk-MH2P4YXC.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-QN6WSWMM.js";import{v as o}from"./chunk-W5CGKUM4.js";import"./chunk-TISQNFB5.js";import{g}from"./chunk-QKYGQLWC.js";import{g as l,i as c,p,q as u}from"./chunk-T4P4KEDW.js";import"./chunk-GO2GA2GY.js";import{ba as i}from"./chunk-MH2P4YXC.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-4CSSDBOS.js";import"./chunk-JXUDKX6D.js";import"./chunk-T4P4KEDW.js";import"./chunk-GO2GA2GY.js";import"./chunk-MH2P4YXC.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{Cc as N}from"./chunk-
|
|
3
|
+
import{Cc as N}from"./chunk-FRRBNNEB.js";import"./chunk-WVY2P6WH.js";import"./chunk-UIRBHC5X.js";import"./chunk-ELH4YHJR.js";import"./chunk-WHG6N5X2.js";import{g as v,i as R,p as E,q as L}from"./chunk-T4P4KEDW.js";import"./chunk-GO2GA2GY.js";import{ba as S}from"./chunk-MH2P4YXC.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
|
|