@maincode-ai/matilda-code 0.21.11 → 0.21.13-nightly.20261026.e0eae1d8c
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/SKILL.md +0 -2
- package/bundled/mainy/docs/_meta.ts +0 -2
- package/bundled/mainy/docs/configuration/auth.md +5 -10
- package/bundled/mainy/docs/configuration/model-providers.md +31 -217
- package/bundled/mainy/docs/configuration/settings.md +48 -9
- package/bundled/mainy/docs/configuration/trusted-folders.md +12 -6
- package/bundled/mainy/docs/features/auto-mode.md +1 -1
- package/bundled/mainy/docs/features/channels/_meta.ts +0 -3
- package/bundled/mainy/docs/features/channels/overview.md +8 -16
- package/bundled/mainy/docs/features/commands.md +4 -4
- package/bundled/mainy/docs/features/hooks.md +9 -7
- package/bundled/mainy/docs/features/language.md +2 -29
- package/bundled/mainy/docs/features/sub-agents.md +1 -1
- package/bundled/mainy/docs/features/worktree.md +3 -5
- package/bundled/mainy/docs/integration-github-action.md +3 -3
- package/bundled/mainy/docs/matilda-serve.md +1 -1
- package/bundled/mainy/docs/quickstart.md +2 -2
- package/bundled/mainy/docs/support/troubleshooting.md +3 -10
- package/chunks/agent-4FTU3WN6.js +3 -0
- package/chunks/agent-headless-QJUVHPFC.js +3 -0
- package/chunks/{askUserQuestion-XWHJY3DM.js → askUserQuestion-QKX4NEFX.js} +1 -1
- package/chunks/{ca-EUJBUYX5.js → ca-C2V7I65K.js} +6 -6
- package/chunks/{chunk-T4P4KEDW.js → chunk-2ONZZ46N.js} +2 -2
- package/chunks/chunk-36K4HBVM.js +7 -0
- package/chunks/{chunk-EQGA7LH7.js → chunk-3B2HABK7.js} +1 -1
- package/chunks/{chunk-5427BPR2.js → chunk-5NMK4Y7C.js} +1 -1
- package/chunks/chunk-5YT4GCK7.js +14 -0
- package/chunks/{chunk-MH2P4YXC.js → chunk-62AFAL4I.js} +10 -10
- package/chunks/chunk-75KP2FVD.js +81 -0
- package/chunks/chunk-7ZODGQO6.js +4 -0
- package/chunks/chunk-BZB7HYRC.js +37 -0
- package/chunks/{chunk-WHG6N5X2.js → chunk-EXNHJQCD.js} +1 -1
- package/chunks/chunk-FCGYRGV4.js +9 -0
- package/chunks/chunk-G4YMVWG4.js +8 -0
- package/chunks/{chunk-4FVBPNTZ.js → chunk-HDARIAVM.js} +1 -1
- package/chunks/{chunk-4YVN5HXG.js → chunk-HM5LCKDB.js} +2 -2
- package/chunks/chunk-IIQ5YERM.js +120 -0
- package/chunks/chunk-JGJ7BVZN.js +101 -0
- package/chunks/{chunk-FFFZ2QMG.js → chunk-JIKQI4MZ.js} +1 -1
- package/chunks/{chunk-SPW5DXX4.js → chunk-LHDCAN7Z.js} +1 -1
- package/chunks/chunk-LZDHANXA.js +89 -0
- package/chunks/{chunk-ELH4YHJR.js → chunk-NOE4UNQN.js} +1 -1
- package/chunks/chunk-OEZS5R3S.js +207 -0
- package/chunks/{chunk-OOEH6ZSV.js → chunk-PTMCLADZ.js} +1 -1
- package/chunks/{chunk-NYEWHSBL.js → chunk-PYZNGIIR.js} +1 -1
- package/chunks/chunk-QJJTUDDA.js +56 -0
- package/chunks/{chunk-GO2GA2GY.js → chunk-R34HYLL4.js} +1 -1
- package/chunks/{chunk-Q55AVE2N.js → chunk-RK4LPGBV.js} +11 -11
- package/chunks/{chunk-JXUDKX6D.js → chunk-RYHMPK5G.js} +1 -1
- package/chunks/chunk-SR7ARGUY.js +13 -0
- package/chunks/chunk-SY6JRCN3.js +2612 -0
- package/chunks/chunk-TUKNB5CQ.js +33 -0
- package/chunks/{chunk-YMIF2DMT.js → chunk-TZ4FRU6B.js} +1 -1
- package/chunks/chunk-U7V7APDV.js +9 -0
- package/chunks/{chunk-SNLH42QJ.js → chunk-UVWZ44ZW.js} +1 -1
- package/chunks/{chunk-HYVP4472.js → chunk-V6UPUMP3.js} +1 -1
- package/chunks/{chunk-4CSSDBOS.js → chunk-VLDZBRTL.js} +10 -10
- package/chunks/{computer-use-SXP25RZQ.js → computer-use-OXAMR75N.js} +1 -1
- package/chunks/contextCommand-ERLW5VWL.js +3 -0
- package/chunks/{cron-create-2UI4AT4Q.js → cron-create-AUDQ6STP.js} +1 -1
- package/chunks/{cron-delete-ZB6BOTFF.js → cron-delete-P5HE3PDD.js} +1 -1
- package/chunks/{cron-list-YYAXNHB6.js → cron-list-NR5FZBK2.js} +1 -1
- package/chunks/{de-DNEPG7S7.js → de-KOUI2CEW.js} +6 -6
- package/chunks/{devtools-5JRKK3E7.js → devtools-G5DWLP2N.js} +1 -1
- package/chunks/dist-XXTQNTKQ.js +42 -0
- package/chunks/dist-ZFZZLIQU.js +3 -0
- package/chunks/edit-REFR5ROS.js +43 -0
- package/chunks/{en-NOD6KQNM.js → en-RMYRLXC2.js} +4 -4
- package/chunks/{enter-worktree-X47BSJLE.js → enter-worktree-WO3DT2G7.js} +1 -1
- package/chunks/{enterPlanMode-F22ZNTYJ.js → enterPlanMode-PLRHEU5A.js} +1 -1
- package/chunks/{exit-worktree-XY5UMDHX.js → exit-worktree-J5PW6DCV.js} +1 -1
- package/chunks/exitPlanMode-KXUPNLCJ.js +120 -0
- package/chunks/{fr-2OE5WLJ4.js → fr-R3QF3LA2.js} +5 -5
- package/chunks/glob-ZVTVRDQO.js +22 -0
- package/chunks/{goal-tools-6QTC3UI7.js → goal-tools-XVKQJL5I.js} +1 -1
- package/chunks/{grep-6TTPZ524.js → grep-R7CWUNNE.js} +1 -1
- package/chunks/{ja-3B6V5KS7.js → ja-A5OQLXUZ.js} +6 -6
- package/chunks/{keychain-token-storage-54BNK6VH.js → keychain-token-storage-IM4UB4P4.js} +1 -1
- package/chunks/{ls-YWZU3FYL.js → ls-DEAFYDVV.js} +1 -1
- package/chunks/{lsp-4CJDKEEC.js → lsp-DL7W47VY.js} +1 -1
- package/chunks/matildaAgentContentGenerator-57EIU5XE.js +8 -0
- package/chunks/mcp-client-X7LEGSP3.js +3 -0
- package/chunks/monitor-KPWTMH3V.js +32 -0
- package/chunks/{multipart-parser-JI75T2O5.js → multipart-parser-FKHYAVGR.js} +1 -1
- package/chunks/notebook-edit-3ZH5M2TC.js +17 -0
- package/chunks/openaiContentGenerator-6PXSD3T7.js +37 -0
- package/chunks/{pt-KP2JCPUY.js → pt-RG3S3KA7.js} +6 -6
- package/chunks/read-file-JNS7WRUP.js +3 -0
- package/chunks/ripGrep-ICJDGIIV.js +3 -0
- package/chunks/{ru-K7IQQKHC.js → ru-5S5HLRT7.js} +5 -5
- package/chunks/scheduler-QC2PPMFP.js +8 -0
- package/chunks/{send-message-OO2HAKCC.js → send-message-V2WYLN5X.js} +1 -1
- package/chunks/{serve-ZQX2WBLF.js → serve-NUVQULZJ.js} +59 -48
- package/chunks/shell-5LNI7URE.js +3 -0
- package/chunks/{skill-KDM3UUML.js → skill-QFATRHQW.js} +1 -1
- package/chunks/src-6UPZ7TVB.js +3 -0
- package/chunks/src-LZEU4AYF.js +5 -0
- package/chunks/{symbol-search-ALYOX5JN.js → symbol-search-WL6ZHUUN.js} +1 -1
- package/chunks/{syntheticOutput-UASKABJH.js → syntheticOutput-3KW6SQAF.js} +1 -1
- package/chunks/task-create-PNW5SN27.js +3 -0
- package/chunks/{task-detach-I67ZE5MX.js → task-detach-B7PDPFBA.js} +1 -1
- package/chunks/task-list-GGZATGK5.js +9 -0
- package/chunks/{task-stop-ERI5X4AO.js → task-stop-UKBBE2KG.js} +1 -1
- package/chunks/{task-update-CD3W556L.js → task-update-4RHVUBUV.js} +1 -1
- package/chunks/{team-create-F4KQRGMB.js → team-create-2TJC3X57.js} +1 -1
- package/chunks/team-delete-4UJ7SU65.js +8 -0
- package/chunks/todoWrite-NEBVKOSG.js +3 -0
- package/chunks/{tool-search-JFCD5W5M.js → tool-search-R5GS64YR.js} +1 -1
- package/chunks/tree-sitter-bash-2SWKO5B7.js +3 -0
- package/chunks/{web-fetch-REWGIRWQ.js → web-fetch-H3XJMAEF.js} +17 -17
- package/chunks/{web-search-OX2DPEVN.js → web-search-Q6RWPEIB.js} +1 -1
- package/chunks/{workflow-SEFYGBED.js → workflow-3A7KN3E3.js} +2 -2
- package/chunks/write-file-O7Q6SKZC.js +15 -0
- package/cli.js +509 -495
- package/locales/ca.js +2 -28
- package/locales/de.js +2 -28
- package/locales/en.js +2 -30
- package/locales/fr.js +2 -30
- package/locales/ja.js +2 -28
- package/locales/pt.js +2 -28
- package/locales/ru.js +2 -28
- package/package.json +2 -2
- package/sandbox-macos-permissive-closed.sb +0 -1
- package/sandbox-macos-permissive-open.sb +0 -1
- package/sandbox-macos-permissive-proxied.sb +0 -1
- package/sandbox-macos-restrictive-closed.sb +3 -1
- package/sandbox-macos-restrictive-open.sb +3 -1
- package/sandbox-macos-restrictive-proxied.sb +3 -1
- package/bundled/mainy/docs/features/channels/dingtalk.md +0 -134
- package/bundled/mainy/docs/features/channels/feishu.md +0 -186
- package/bundled/mainy/docs/features/channels/weixin.md +0 -106
- package/bundled/mainy/docs/integration-jetbrains.md +0 -81
- package/bundled/mainy/docs/integration-zed.md +0 -72
- package/chunks/agent-ZFZ4HJQC.js +0 -3
- package/chunks/agent-headless-KH2BKLP7.js +0 -3
- package/chunks/anthropicContentGenerator-IYZILRDW.js +0 -39
- package/chunks/chunk-25NCTG5H.js +0 -184
- package/chunks/chunk-2HQMJ2IU.js +0 -8
- package/chunks/chunk-3YLXGE6T.js +0 -8
- package/chunks/chunk-4F4DA5UI.js +0 -8
- package/chunks/chunk-4J6DC24J.js +0 -59
- package/chunks/chunk-4Q2SNBUH.js +0 -18
- package/chunks/chunk-6GBNB5Z2.js +0 -3
- package/chunks/chunk-G7R2XEEF.js +0 -7
- package/chunks/chunk-GHBKFIHC.js +0 -35
- package/chunks/chunk-GUFIMKF5.js +0 -65
- package/chunks/chunk-HWOQNYAO.js +0 -27
- package/chunks/chunk-LJR4RZZ2.js +0 -3
- package/chunks/chunk-NIQK6NX3.js +0 -37
- package/chunks/chunk-NVM7W7TG.js +0 -101
- package/chunks/chunk-O44XK65C.js +0 -8
- package/chunks/chunk-OA56BXPD.js +0 -3
- package/chunks/chunk-ODZOYHIC.js +0 -8
- package/chunks/chunk-PA6532AY.js +0 -6
- package/chunks/chunk-QFNFLE2I.js +0 -2625
- package/chunks/chunk-QH7736R5.js +0 -8
- package/chunks/chunk-QN6WSWMM.js +0 -9
- package/chunks/chunk-QN6Y6NPA.js +0 -3
- package/chunks/chunk-RK2AKQAX.js +0 -39
- package/chunks/chunk-SDTWBD62.js +0 -8
- package/chunks/chunk-SUH3UUWZ.js +0 -25
- package/chunks/chunk-U347OO7S.js +0 -9
- package/chunks/chunk-UIRBHC5X.js +0 -3
- package/chunks/chunk-VI74YQQO.js +0 -8
- package/chunks/chunk-VYZOOSMP.js +0 -30
- package/chunks/chunk-W5CGKUM4.js +0 -15
- package/chunks/chunk-WRQLIPXW.js +0 -113
- package/chunks/chunk-WVY2P6WH.js +0 -26
- package/chunks/chunk-WZ75OGYY.js +0 -14
- package/chunks/chunk-XCFLI3OC.js +0 -9
- package/chunks/chunk-XMZIY7XX.js +0 -13
- package/chunks/contextCommand-3GN5CAOK.js +0 -3
- package/chunks/dist-7UYRLSLE.js +0 -3
- package/chunks/dist-ME6647DQ.js +0 -195
- package/chunks/dist-P6SLWL5V.js +0 -42
- package/chunks/dist-VG3ZDJ2A.js +0 -28
- package/chunks/dist-YTCHM57U.js +0 -23
- package/chunks/edit-KX6V4PH3.js +0 -39
- package/chunks/exitPlanMode-G3QLIWJ4.js +0 -90
- package/chunks/fileFromPath-7UCWPD4W.js +0 -3
- package/chunks/geminiContentGenerator-EQEGOXOV.js +0 -8
- package/chunks/glob-KSBEWI3E.js +0 -22
- package/chunks/matildaAgentContentGenerator-OV4U6DJD.js +0 -8
- package/chunks/matildaContentGenerator-ETIAWE22.js +0 -8
- package/chunks/matildaOAuth2-WOY7ZS43.js +0 -3
- package/chunks/monitor-F4K5HOZX.js +0 -32
- package/chunks/notebook-edit-TL7CI5EA.js +0 -17
- package/chunks/openaiContentGenerator-MGASUFQL.js +0 -3
- package/chunks/read-file-6EAPS2KG.js +0 -3
- package/chunks/ripGrep-K6SFFUIE.js +0 -3
- package/chunks/scheduler-TKWPD4LP.js +0 -8
- package/chunks/shell-AZRK5GIO.js +0 -3
- package/chunks/src-SGI6VLOS.js +0 -3
- package/chunks/src-WZTRMETQ.js +0 -5
- package/chunks/task-create-EBJD55TB.js +0 -3
- package/chunks/task-list-5BGX4G5N.js +0 -9
- package/chunks/team-delete-5U3GBFKJ.js +0 -8
- package/chunks/todoWrite-YGG6AZ3A.js +0 -3
- package/chunks/tree-sitter-bash-XNCMPQBK.js +0 -3
- package/chunks/write-file-UAGVBZMC.js +0 -15
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{Af as c,Bf as d,Cf as e,Df as f,Ef as g,yf as a,zf as b}from"./chunk-SY6JRCN3.js";import"./chunk-M53RP3YP.js";import"./chunk-FCGYRGV4.js";import"./chunk-G4YMVWG4.js";import"./chunk-5YT4GCK7.js";import"./chunk-MTMU7JYZ.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-PYZNGIIR.js";import"./chunk-QJJTUDDA.js";import"./chunk-5NMK4Y7C.js";import"./chunk-47XR7IMP.js";import"./chunk-UVWZ44ZW.js";import"./chunk-QKYGQLWC.js";import"./chunk-LHDCAN7Z.js";import"./chunk-V6UPUMP3.js";import"./chunk-RNKDFE2S.js";import"./chunk-VLDZBRTL.js";import"./chunk-RYHMPK5G.js";import"./chunk-JIKQI4MZ.js";import"./chunk-RK4LPGBV.js";import"./chunk-75KP2FVD.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-IIQ5YERM.js";import"./chunk-DC7LAFZZ.js";import"./chunk-LZDHANXA.js";import"./chunk-U7V7APDV.js";import"./chunk-SR7ARGUY.js";import"./chunk-OEZS5R3S.js";import"./chunk-NOE4UNQN.js";import"./chunk-R34HYLL4.js";import"./chunk-EXNHJQCD.js";import"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.js";import"./chunk-36K4HBVM.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-LHDCAN7Z.js";import"./chunk-V6UPUMP3.js";import"./chunk-RYHMPK5G.js";import"./chunk-IIQ5YERM.js";import"./chunk-DC7LAFZZ.js";import"./chunk-LZDHANXA.js";import"./chunk-U7V7APDV.js";import"./chunk-SR7ARGUY.js";import{mc as o,pd as a}from"./chunk-OEZS5R3S.js";import"./chunk-NOE4UNQN.js";import"./chunk-R34HYLL4.js";import"./chunk-EXNHJQCD.js";import{g as S,i as v,p as y,q as b}from"./chunk-2ONZZ46N.js";import{ba as f}from"./chunk-62AFAL4I.js";import"./chunk-36K4HBVM.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 Lh,$a as nk,$b as nl,$c as rm,$d as rn,$e as ko,$f as Xo,$g as cr,$h as es,$i as _s,$j as Yt,$k as Yu,A as Ae,Aa as Pj,Ab as Ok,Ac as Sl,Ad as Tm,Ae as Qn,Ag as Gp,Ah as Dr,Ai as Es,Aj as zt,Ak as xu,Al as wv,B as Be,Ba as Qj,Bb as Pk,Bc as Tl,Bd as Um,Be as Rn,Bg as Hp,Bh as Er,Bi as Fs,Bj as At,Bk as yu,Bl as xv,C as Ce,Ca as Rj,Cb as Qk,Cc as Ul,Cd as Vm,Ce as Sn,Cg as Ip,Ch as Fr,Cj as Bt,Ck as zu,Cl as yv,D as De,Da as Sj,Db as Rk,Dc as Vl,De as Tn,Dg as Jp,Dh as Gr,Dj as Ct,Dk as Au,Dl as zv,E as Ee,Ea as Tj,Eb as Sk,Ec as Wl,Ee as Un,Eg as Kp,Eh as Hr,Ei as Gs,Ek as Bu,El as Av,F as Fe,Fa as Uj,Fb as Tk,Fc as Xl,Fd as Wm,Fe as Vn,Ff as Bo,Fh as Ir,Fi as Hs,Fk as Cu,Fl as Bv,G as Ge,Ga as Vj,Gb as Uk,Gc as Yl,Gd as Xm,Ge as Wn,Gf as Co,Gh as Jr,Gi as Is,Gk as Du,Gl as Cv,H as He,Ha as Wj,Hb as Vk,Hc as Zl,Hd as Ym,He as Xn,Hf as Do,Hh as Kr,Hi as Js,Hk as Eu,Hl as Dv,I as Ie,Ia as Xj,Ib as Wk,Ic as _l,Id as Zm,Ie as Yn,If as Eo,Ih as Lr,Ii as Ks,Ik as Fu,Il as Ev,J as Je,Ja as Yj,Jb as Xk,Jc as $l,Jd as _m,Je as Zn,Jf as Fo,Jh as Mr,Ji as Ls,Jj as Dt,Jk as Gu,Jl as Fv,K as Ke,Kb as Yk,Kc as am,Kd as $m,Ke as _n,Kf as Go,Kh as Nr,Ki as Ms,Kj as Et,Kk as Hu,Kl as Gv,L as Le,La as Zj,Lb as Zk,Lc as bm,Ld as an,Le as $n,Lf as Ho,Lg as Lp,Lh as Or,Li as Ns,Lj as Ft,Lk as Iu,Ll as Hv,M as Me,Ma as _j,Mb as _k,Mc as cm,Md as bn,Me as ao,Mf as Io,Mg as Mp,Mh as Pr,Mi as Os,Mj as Gt,Mk as Ju,Ml as Iv,N as Ne,Na as $j,Nb as $k,Nc as dm,Nd as cn,Ne as bo,Nf as Jo,Ng as Np,Nh as Qr,Ni as Ps,Nj as Ht,Nk as Ku,Nl as Jv,O as Oe,Oa as ak,Ob as al,Oc as em,Od as dn,Oe as co,Of as Ko,Og as Op,Oh as Rr,Oi as Qs,Oj as It,Ok as Lu,Ol as Kv,P as Pe,Pa as bk,Pb as bl,Pc as fm,Pd as en,Pe as eo,Pf as Lo,Pg as Pp,Ph as Sr,Pi as Rs,Pj as Jt,Pk as Mu,Pl as Lv,Q as Qe,Qa as ck,Qb as cl,Qc as gm,Qd as fn,Qe as fo,Qf as Mo,Qg as Qp,Qh as Tr,Qi as Ss,Qj as Kt,Qk as Nu,Ql as Mv,R as Re,Ra as dk,Rb as dl,Rc as hm,Rd as gn,Rf as No,Rg as Rp,Rh as Ur,Rj as Lt,Rk as Ou,Rl as Nv,S as Se,Sa as ek,Sb as el,Sc as im,Sd as hn,Sf as Oo,Sg as Sp,Sh as Vr,Si as Ts,Sj as Mt,Sk as Pu,Sl as Ov,T as Te,Ta as fk,Tb as fl,Tc as jm,Td as jn,Te as go,Tf as Po,Tg as Tp,Th as Wr,Ti as Us,Tj as Nt,Tk as Qu,Tl as Pv,U as Ue,Ua as gk,Ub as gl,Uc as km,Ud as kn,Ue as ho,Uf as Qo,Ug as Up,Uh as Xr,Ui as Vs,Uj as Rt,Uk as Ru,Ul as Qv,V as Ve,Va as hk,Vb as hl,Vd as ln,Vf as Ro,Vg as Vp,Vh as Yr,Vi as Ws,Vj as St,Vk as Su,Vl as Rv,W as We,Wa as ik,Wb as il,Wc as mm,Wd as mn,Wf as So,Wg as Wp,Wh as Zr,Wi as Xs,Wj as Tt,Wk as Tu,X as Xe,Xa as jk,Xb as jl,Xc as nm,Xd as nn,Xf as To,Xg as Xp,Xh as _r,Xi as Ys,Xj as Ut,Xk as Uu,Y as Ye,Ya as kk,Yb as kl,Yc as om,Yd as on,Yf as Uo,Yg as dq,Yh as $r,Yi as Zs,Yj as Vt,Yk as Vu,Z as Jh,Za as lk,Zb as ll,Zc as pm,Zd as pn,Ze as io,Zf as Vo,Zg as eq,Zh as as,Zj as Wt,Zk as Wu,_ as Kh,_a as mk,_b as ml,_c as qm,_d as qn,_e as jo,_f as Wo,_g as br,_h as ds,_j as Xt,_k as Xu,a as Za,aa as Mh,ab as ok,ac as ol,ad as sm,ae as sn,ag as Yo,ah as dr,ai as fs,aj as $s,ak as Zt,al as Zu,b as _a,ba as Nh,bb as pk,bc as pl,bd as tm,be as tn,bf as lo,bg as Zo,bh as er,bi as gs,bj as at,bk as _t,bl as _u,c as $a,ca as Oh,cb as qk,cc as ql,cd as um,ce as un,cf as mo,cg as _o,ch as fr,ci as hs,cj as bt,ck as $t,cl as $u,d as ab,da as Ph,db as rk,dc as rl,de as vn,df as no,dg as $o,dh as gr,di as is,dj as ct,dk as au,dl as av,e as bb,ea as Qh,eb as sk,ec as sl,ed as xm,ee as wn,ef as oo,eg as ap,eh as hr,ei as js,ej as dt,ek as bu,el as bv,f as cb,fa as Rh,fb as tk,fc as tl,fd as ym,fe as xn,ff as po,fg as bp,fh as ir,fi as ks,fj as et,fk as cu,fl as cv,g as db,ga as Sh,gb as uk,gc as ul,gd as zm,ge as yn,gf as qo,gg as mp,gh as jr,gj as ft,gk as du,gl as dv,h as eb,ha as Th,hb as vk,hc as vl,hd as Am,he as zn,hg as np,hh as kr,hi as ls,hj as gt,hk as eu,hl as ev,i as fb,ia as Uh,ib as wk,ic as wl,id as Bm,ie as An,if as ro,ig as op,ih as lr,ii as ms,ij as ht,ik as fu,il as fv,ja as Vh,jb as xk,jc as xl,jd as Cm,jf as so,jg as pp,jh as mr,ji as ns,jj as it,jk as gu,jl as gv,ka as Wh,kb as yk,kc as yl,kd as Dm,kf as to,kg as qp,kh as nr,ki as os,kj as jt,kk as hu,kl as hv,la as Xh,lb as zk,lc as zl,ld as Em,le as Bn,lg as rp,lh as or,li as ps,lj as kt,lk as iu,ll as iv,ma as Yh,mb as Ak,mc as Al,md as Fm,me as Cn,mg as sp,mh as pr,mi as qs,mj as lt,mk as ju,ml as jv,na as Zh,nb as Bk,nc as Bl,nd as Gm,ne as Dn,ng as tp,nh as qr,ni as rs,nj as mt,nk as ku,nl as kv,o as le,oa as _h,ob as Ck,oc as Cl,od as Hm,oe as En,og as up,oh as rr,oi as ss,oj as nt,ok as lu,ol as lv,p as oe,pa as ci,pb as Dk,pc as Dl,pd as Im,pe as Fn,pg as vp,ph as sr,pi as ts,pj as ot,pk as mu,pl as mv,q as pe,qa as di,qb as Ek,qc as El,qd as Jm,qe as Gn,qf as uo,qg as wp,qh as tr,qi as us,qj as pt,qk as nu,ql as nv,r as re,ra as ei,rb as Fk,rc as Fl,rd as Km,re as Hn,rf as vo,rg as xp,rh as ur,ri as vs,rj as qt,rk as ou,rl as ov,s as se,sa as Hj,sb as Gk,sc as Il,sd as Lm,se as In,sf as wo,sg as yp,sh as vr,si as ws,sj as rt,sk as pu,sl as pv,t as te,ta as Ij,tb as Hk,tc as Ll,td as Mm,te as Jn,tf as xo,tg as zp,th as wr,ti as xs,tj as st,tk as qu,tl as qv,u as ue,ua as Jj,ub as Ik,uc as Ml,ud as Nm,ue as Kn,uf as yo,ug as Ap,uh as xr,ui as ys,uj as tt,uk as ru,ul as rv,v as ve,va as Kj,vb as Jk,vc as Nl,vd as Om,ve as Ln,vf as zo,vg as Bp,vh as yr,vi as zs,vj as ut,vk as su,vl as sv,w as we,wa as Lj,wb as Kk,wc as Ol,wd as Pm,we as Mn,wf as Ao,wg as Cp,wh as zr,wi as As,wj as vt,wk as tu,wl as tv,x as xe,xa as Mj,xb as Lk,xc as Pl,xd as Qm,xe as Nn,xg as Dp,xh as Ar,xi as Bs,xj as wt,xk as uu,xl as uv,y as ye,ya as Nj,yb as Mk,yc as Ql,yd as Rm,ye as On,yg as Ep,yh as Br,yi as Cs,yj as xt,yk as vu,yl as vv,z as ze,za as Oj,zb as Nk,zc as Rl,zd as Sm,ze as Pn,zg as Fp,zh as Cr,zi as Ds,zj as yt,zk as wu}from"./chunk-SY6JRCN3.js";import"./chunk-M53RP3YP.js";import{a as fq,b as gq,c as hq,d as iq,e as jq,f as Eq,g as Fq,h as Gq,i as Hq,j as Iq,k as Jq,l as Kq,m as Lq}from"./chunk-FCGYRGV4.js";import{a as Mq,b as Nq,c as Oq,d as Pq,e as Qq,f as Rq,g as Sq,h as Tq,i as Uq,j as Vq,k as Wq,l as Xq,m as Yq,n as Zq,o as _q,p as $q,q as ar}from"./chunk-G4YMVWG4.js";import{a as lm,b as kq,c as lq,d as mq,e as nq,f as oq,g as pq,h as qq,i as rq,j as sq,k as tq,l as uq,m as vq,n as wq,o as xq,p as yq,q as zq,r as Aq,s as Bq,t as Cq,u as Dq}from"./chunk-5YT4GCK7.js";import{c as Ot,e as Pt,f as Qt}from"./chunk-MTMU7JYZ.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-PYZNGIIR.js";import{$ as Mi,A as mi,B as ni,C as oi,D as pi,E as qi,F as ri,G as si,H as ti,I as ui,J as vi,K as wi,L as xi,M as yi,N as zi,O as Ai,P as Bi,Q as Ci,R as Di,S as Ei,T as Fi,U as Gi,V as Hi,W as Ii,X as Ji,Y as Ki,Z as Li,a as $h,aa as Ni,b as ai,ba as Oi,c as bi,da as Qi,ea as Ri,fa as Si,ga as Ti,ha as Ui,ia as Vi,ja as Wi,ka as uj,la as vj,ma as wj,na as xj,pa as yj,qa as zj,t as fi,ta as Cj,u as gi,ua as Dj,v as hi,va as Ej,w as ii,wa as Fj,x as ji,xa as Gj,y as ki,z as li}from"./chunk-QJJTUDDA.js";import{a as Pi}from"./chunk-5NMK4Y7C.js";import{a as bs,b as cs}from"./chunk-47XR7IMP.js";import{a as vm,b as wm}from"./chunk-UVWZ44ZW.js";import{a as cp,b as dp,c as ep,d as fp,e as gp,f as hp,g as ip,h as jp,i as kp,j as lp,k as Yp,l as Zp,m as _p,n as $p,o as aq,p as bq,q as cq}from"./chunk-QKYGQLWC.js";import{a as Jl,d as Kl}from"./chunk-LHDCAN7Z.js";import{b as Aj,c as Bj}from"./chunk-V6UPUMP3.js";import{a as Gl,b as Hl}from"./chunk-RNKDFE2S.js";import"./chunk-VLDZBRTL.js";import{a as Xi,b as Yi,c as Zi,d as _i,e as $i,f as aj,g as bj,h as cj,i as dj,j as ej,k as fj,l as gj,m as hj,n as ij,o as jj,p as kj,q as lj,r as mj,s as nj,t as oj,u as pj,v as qj,w as rj,x as sj,y as tj}from"./chunk-RYHMPK5G.js";import{b as qe}from"./chunk-JIKQI4MZ.js";import"./chunk-RK4LPGBV.js";import{B as wh,D as xh,E as yh,K as zh,L as Ah,M as Bh,N as Ch,O as Dh,a as pa,b as qa,c as ra,d as sa,e as ta,f as ua,g as va,h as wa,i as xa,j as ya,k as za,l as Aa,q as Ba,r as Ca,s as Da,t as Ea,u as Fa,v as Ga}from"./chunk-75KP2FVD.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import{$a as uh,A as cg,Aa as Zg,B as dg,Ba as _g,C as eg,D as fg,E as gg,Ea as $g,F as hg,Fa as ah,G as ig,Ga as bh,H as jg,Ha as ch,I as kg,Ia as dh,J as lg,Ja as eh,K as mg,Ka as fh,L as ng,La as gh,M as og,Ma as hh,N as pg,Na as ih,O as qg,Oa as jh,P as rg,Pa as kh,Q as sg,Qa as lh,R as tg,Ra as mh,S as ug,Sa as nh,Va as oh,Wa as ph,Xa as qh,Y as vg,Ya as rh,Z as wg,Za as sh,_a as th,a as me,aa as xg,ab as vh,b as ne,ba as yg,bb as Eh,ca as zg,cb as Fh,da as Ag,db as Gh,e as Lf,eb as Hh,f as Mf,fb as Ih,g as Nf,h as Of,ha as Fg,ia as Gg,ja as Hg,ka as Ig,l as Pf,la as Jg,m as Qf,ma as Kg,n as Rf,na as Lg,o as Sf,oa as Mg,p as Tf,pa as Ng,q as Uf,qa as Og,r as Vf,s as Wf,sa as Tg,t as Xf,ta as Ug,u as Yf,ua as Vg,v as Zf,va as Wg,w as _f,wa as Xg,x as $f,y as ag,z as bg,za as Yg}from"./chunk-IIQ5YERM.js";import{a as Pg,e as Qg,f as Rg,g as Sg}from"./chunk-DC7LAFZZ.js";import"./chunk-LZDHANXA.js";import"./chunk-U7V7APDV.js";import{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 Bg,p as Cg,q as Dg,r as Eg}from"./chunk-SR7ARGUY.js";import{$ as Mb,$a as Fc,$b as yd,$c as sf,A as yb,Aa as kc,Ab as ad,B as zb,Ba as lc,Bb as bd,C as Ab,Ca as mc,Cb as cd,D as Bb,Da as nc,Db as dd,E as Cb,Ea as oc,Eb as ed,F as Db,Fa as pc,Fb as fd,Fc as Ze,G as Eb,Ga as qc,Gb as gd,Gc as _e,H as Fb,Ha as rc,Hb as hd,Hc as $e,I as Gb,Ia as sc,Ib as id,Ic as af,Ja as tc,Jb as jd,Jc as bf,Ka as uc,Kb as kd,Kc as cf,La as vc,Lb as ld,Lc as df,Ma as wc,Mb as md,Mc as ef,Na as xc,Nb as nd,Nc as ff,Oa as yc,Oc as gf,Pb as od,Pc as hf,Qb as pd,Qc as jf,Ra as zc,Rb as qd,Rc as kf,Sb as rd,Sc as lf,Tb as sd,Tc as mf,Ua as Ac,W as Hb,Wb as td,Wc as nf,X as Ib,Xa as Bc,Xb as ud,Xc as of,Y as Jb,Ya as Cc,Yb as vd,Yc as pf,Z as Kb,Za as Dc,Zb as wd,Zc as qf,_ as Lb,_a as Ec,_b as xd,_c as rf,aa as Nb,ab as Gc,ad as tf,b as Ha,ba as Ob,bb as Hc,bd as uf,c as Ia,ca as Pb,d as Ja,da as Qb,db as Ic,e as Wa,ea as Rb,eb as Jc,ec as zd,fa as Sb,fb as Kc,g as Xa,ga as Tb,gb as Lc,gc as Ad,gd as vf,h as Ya,ha as Ub,hb as Mc,hc as Bd,hd as wf,ia as Vb,ib as Nc,ic as Cd,id as xf,ja as Wb,jb as Oc,jc as Dd,ka as Xb,kb as Pc,kc as Ed,kd as yf,la as Yb,lb as Qc,lc as Fd,ld as zf,ma as Zb,mb as Rc,mc as Gd,n as lb,na as _b,nb as Sc,nc as Hd,nd as Af,o as mb,ob as Tc,oc as Id,p as nb,pa as $b,pb as Uc,pc as Jd,pd as Bf,q as ob,qa as ac,qb as Vc,qc as Kd,qd as Cf,r as pb,ra as bc,rb as Wc,rc as Ld,rd as Df,s as qb,sa as cc,sb as Xc,sc as Md,sd as Ef,t as rb,ta as dc,tb as Yc,tc as Nd,td as Ff,u as sb,ua as ec,ub as Zc,uc as Od,ud as Gf,v as tb,va as fc,vb as _c,vd as Hf,w as ub,wa as gc,wd as If,x as vb,xa as hc,xc as ke,xd as Jf,y as wb,ya as ic,yd as Kf,z as xb,za as jc,zb as $c}from"./chunk-OEZS5R3S.js";import{a as Pd,b as Qd,c as Rd,d as Sd,e as Td,f as Ud,g as Vd,h as Wd,i as Xd,j as Yd,k as Zd,l as _d,m as $d,n as ae,o as be,p as ce,q as de,r as ee,s as fe,t as ge,u as he,v as ie,w as je}from"./chunk-NOE4UNQN.js";import{a as ka,b as la,c as ma,d as na,e as oa}from"./chunk-R34HYLL4.js";import"./chunk-EXNHJQCD.js";import{a as Ka,e as La,f as Ma,g as Na,h as Oa,i as Pa,j as Qa,k as Ra,l as Sa,m as Ta,n as Ua,o as Va,p as gb,q as hb,r as ib,s as jb,t as kb}from"./chunk-2ONZZ46N.js";import{$ as ha,A as M,B as N,C as O,D as P,E as Q,F as R,G as S,H as T,I as U,J as V,K as W,L as X,M as Y,N as Z,O as _,Q as $,R as aa,V as da,W as ea,Z as fa,_ as ga,aa as ia,b as n,ba as ja,c as o,d as p,e as q,f as r,g as s,h as t,i as u,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J,y as K,z as L}from"./chunk-62AFAL4I.js";import"./chunk-36K4HBVM.js";import{c as ba,g as ca}from"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{mb as AGENT_CONTEXT_FILENAME,Bp as AGENT_WORKTREE_HEX_LENGTH,Ap as AGENT_WORKTREE_PREFIX,Cp as AGENT_WORKTREE_SLUG_PATTERN,Tk as ALL_PROVIDERS,St as APPROVAL_MODES,Ut as APPROVAL_MODE_INFO,Za as ARENA_MAX_AGENTS,Td as AUTO_MEMORY_CONSOLIDATION_LOCK_FILENAME,Pd as AUTO_MEMORY_DIRNAME,Sd as AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,Qd as AUTO_MEMORY_INDEX_FILENAME,Rd as AUTO_MEMORY_METADATA_FILENAME,nm as AUTO_MEMORY_SCHEMA_VERSION,mm as AUTO_MEMORY_TYPES,Bn as AUTO_MODE_DENIAL_LIMITS,vr as AUTO_SKILL_THRESHOLD,wv as AbortError,E as AccountRestrictedError,pp as AgentCore,_o as AgentEventEmitter,Zo as AgentEventType,bp as AgentHeadless,Pp as AgentInteractive,Ma as AgentStatistics,bb as AgentStatus,ab as AgentTerminateMode,sj as AgentType,jf as ApiCancelEvent,hf as ApiErrorEvent,gf as ApiRequestEvent,_b as ApiRequestPhase,kf as ApiResponseEvent,Rt as ApprovalMode,fb as ArenaAgentClient,Tp as ArenaEventEmitter,Sp as ArenaEventType,Xp as ArenaManager,_a as ArenaSessionStatus,Op as AsyncMessageQueue,Af as AuthEvent,au as AuthProviderType,Eh as AuthType,er as BACKGROUND_AGENT_CONCURRENCY_ENV,yp as BASELINE_COMMIT_MESSAGE,Bb as BINARY_EXTENSIONS,tb as BINARY_FILE_PATTERNS,Gv as BTW_MAX_INPUT_LENGTH,Ir as BUNDLE_CHUNK_DIR,lr as BackgroundAgentResumeService,ts as BackgroundShellRegistry,jr as BackgroundTaskRegistry,D as BadRequestError,Pa as BaseDeclarativeTool,Na as BaseToolInvocation,Yr as BudgetExhaustedError,Kp as BuiltinAgentRegistry,Hg as CAPPED_DEFAULT_MAX_TOKENS,_u as CODE_ACTION_KIND_LABELS,Lm as COMMAND_SUBSTITUTION_WARNING,vb as COMMON_DIRECTORY_EXCLUDES,sb as COMMON_IGNORE_PATTERNS,Va as CONCURRENCY_SAFE_KINDS,jl as ChatRecordingService,Qo as CloseDiffRequestSchema,Ea as CodeCreditJournal,mo as ColorMode,Fl as CompactionLifecycle,nl as CompressionStatus,rt as ConditionalRulesRegistry,bu as Config,G as ContentBlockedError,$o as ContextState,tf as ConversationFinishedEvent,Yo as CoreToolScheduler,Fr as CronScheduler,Zf as DAEMON_TRACEPARENT_META_KEY,_f as DAEMON_TRACESTATE_META_KEY,wr as DEFAULT_AUTO_DREAM_MIN_HOURS,xr as DEFAULT_AUTO_DREAM_MIN_SESSIONS,kr as DEFAULT_BACKGROUND_AGENT_CONTINUATION_MESSAGE,Jp as DEFAULT_BUILTIN_SUBAGENT_TYPE,lb as DEFAULT_CONTEXT_FILENAME,Hb as DEFAULT_ENCODING,yb as DEFAULT_FILE_EXCLUDES,Hl as DEFAULT_FILE_FILTERING_OPTIONS,Su as DEFAULT_LSP_COMMAND_CHECK_TIMEOUT_MS,Ru as DEFAULT_LSP_DOCUMENT_OPEN_DELAY_MS,Uu as DEFAULT_LSP_DOCUMENT_RETRY_DELAY_MS,Vu as DEFAULT_LSP_MAX_RESTARTS,Pu as DEFAULT_LSP_REQUEST_TIMEOUT_MS,Xu as DEFAULT_LSP_SOCKET_MAX_RETRY_DELAY_MS,Wu as DEFAULT_LSP_SOCKET_RETRY_DELAY_MS,Ou as DEFAULT_LSP_STARTUP_TIMEOUT_MS,Qu as DEFAULT_LSP_WARMUP_DELAY_MS,Tu as DEFAULT_LSP_WORKSPACE_SYMBOL_WARMUP_DELAY_MS,Dg as DEFAULT_MATILDA_EMBEDDING_MODEL,Cg as DEFAULT_MATILDA_FLASH_MODEL,Bg as DEFAULT_MATILDA_MODEL,dr as DEFAULT_MAX_CONCURRENT_BACKGROUND_AGENTS,eu as DEFAULT_MAX_INLINE_MEDIA_BYTES,Gl as DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,zg as DEFAULT_OTLP_ENDPOINT,Gg as DEFAULT_OUTPUT_TOKEN_LIMIT,Vt as DEFAULT_PR_ATTRIBUTION_MESSAGE,Lj as DEFAULT_STOP_HOOK_BLOCK_CAP,yg as DEFAULT_TELEMETRY_TARGET,Fg as DEFAULT_TOKEN_LIMIT,Yt as DEFAULT_TOOL_OUTPUT_BATCH_BUDGET,ei as DEFAULT_TOOL_RESULTS_TOTAL_CHARS_THRESHOLD,Xt as DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,Wt as DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,Zu as DIAGNOSTIC_SEVERITY_LABELS,Lp as DISPLAY_MODE,tr as DREAM_TASK_TYPE,Oa as DeclarativeTool,ej as DefaultHookOutput,$e as DiscoveredMCPTool,$r as DiscoveredTool,Ig as ESCALATED_MAX_TOKENS,Ia as EVENT_API_ERROR,Ja as EVENT_API_RESPONSE,Ha as EVENT_TOOL_CALL,mp as EXCLUDED_TOOLS_FOR_SUBAGENTS,ys as EXTENSIONS_CONFIG_FILENAME,xs as EXTENSIONS_DIRECTORY_NAME,As as EXTENSION_SETTINGS_FILENAME,np as EXTERNAL_MESSAGE_PREFIX,sr as EXTRACT_TASK_TYPE,cf as EndSessionEvent,Ff as ExtensionDisableEvent,yf as ExtensionEnableEvent,vf as ExtensionInstallEvent,gt as ExtensionManager,_s as ExtensionSettingScope,xf as ExtensionUninstallEvent,ft as ExtensionUpdateState,jk as FILE_HISTORY_DIR,sp as FORK_SUBAGENT_TYPE,t as FatalAuthenticationError,z as FatalBudgetExceededError,A as FatalCancellationError,w as FatalConfigError,s as FatalError,u as FatalInputError,v as FatalSandboxError,y as FatalToolExecutionError,x as FatalTurnLimitedError,Gp as FileDiscoveryService,uo as FileEncoding,zb as FileExclusions,mk as FileHistoryService,Wb as FileOperation,ws as FileReadCache,Jo as FileSchema,yv as FileSearchFactory,B as ForbiddenError,ji as GOAL_DEFAULT_TOKEN_BUDGET,ki as GOAL_DEFAULT_TURN_BUDGET,xi as GOAL_INFEASIBLE_NEXT_STEP,ii as GOAL_NO_PROGRESS_TURN_LIMIT,Ci as GOAL_PAUSE_REASON_COMMAND,Ei as GOAL_PAUSE_REASON_HEADLESS_RUN_ENDED,zi as GOAL_PAUSE_REASON_MAX_CHARACTERS,Qi as GOAL_PAUSE_REASON_MIGRATED,Gi as GOAL_PAUSE_REASON_NO_PROGRESS,Fi as GOAL_PAUSE_REASON_REWOUND,Di as GOAL_PAUSE_REASON_SESSION_TOKEN_LIMIT,Ri as GOAL_PAUSE_REASON_UNREADABLE_STATE,Bi as GOAL_PAUSE_REASON_USER_INTERRUPT,hi as GOAL_PROPOSAL_REASON_MAX_BYTES,gi as GOAL_PROPOSAL_REASON_MAX_CHARACTERS,Dj as GOAL_RUNTIME_DISPOSED_MESSAGE,fi as GOAL_STATE_VERSION,J as GOOGLE_ACCOUNTS_FILENAME,im as GeminiChat,Er as GeminiClient,ml as GeminiEventType,Fp as GitIgnoreParser,Ep as GitWorktreeService,Ni as GoalConflictError,Oi as GoalInvalidTransitionError,Fj as GoalPersistenceUnavailableError,_i as HOOKS_CONFIG_FIELDS,Yi as HookEventName,Zi as HookPhase,lt as HookRegistry,nt as HookSystem,$i as HookType,Xi as HooksConfigSource,Ro as IDEConnectionStatus,Bo as IDE_DEFINITIONS,Eo as IDE_MAX_OPEN_FILES,Fo as IDE_MAX_SELECTED_TEXT_LENGTH,Go as IDE_REQUEST_TIMEOUT_MS,rv as IDLE_SPECULATION,bq as INBOXES_DIR,iv as INITIAL_FOLLOWUP_STATE,zs as INSTALL_METADATA_FILENAME,Np as ITermBackend,So as IdeClient,sf as IdeConnectionEvent,rf as IdeConnectionType,Lo as IdeContextNotificationSchema,Ko as IdeContextSchema,Ho as IdeContextStore,Mo as IdeDiffAcceptedNotificationSchema,Oo as IdeDiffClosedNotificationSchema,No as IdeDiffRejectedNotificationSchema,Qt as Ignore,Qp as InProcessBackend,bs as InputFormat,Vr as InvalidMcpConfigError,Ak as InvalidSessionListCursorError,gm as InvalidStreamError,Cl as JOINED_WAIT_SLEEP_REASON,cu as JsonFormatter,qe as KeychainTokenStorage,Ta as Kind,uf as KittySequenceOverflowEvent,Zp as LEADER_NAME,op as LIMIT_WRAP_UP_TIMEOUT_MS,rk as LITE_READ_BUF_SIZE,nb as LOCAL_CONTEXT_FILENAME,qu as Logger,mf as LoopType,$u as LspConfigLoader,av as LspConnectionFactory,bv as LspResponseNormalizer,cv as LspServerManager,Eg as MAINLINE_CODER_MODEL,Wa as MAIN_SOURCE,Pg as MATILDA_API_KEY_ENV_KEY,Do as MATILDA_CODE_COMPANION_EXTENSION_NAME,Iu as MATILDA_CODE_SIMPLE_ENV_VAR,I as MATILDA_DIR,ad as MATILDA_SESSION_ID_HASH_ATTR,$c as MATILDA_USER_ID_HASH_ATTR,gr as MAX_CONCURRENT_BACKGROUND_AGENTS,ns as MAX_CONCURRENT_MONITORS,_j as MAX_DIFF_SIZE_BYTES,Zj as MAX_FILES,ak as MAX_FILES_FOR_DETAILS,$j as MAX_LINES_PER_FILE,rs as MAX_NOTIFICATION_OUTPUT_TAIL_BYTES,hr as MAX_RETAINED_TERMINAL_AGENTS,os as MAX_RETAINED_TERMINAL_MONITORS,ss as MAX_RETAINED_TERMINAL_SHELLS,us as MAX_RETAINED_TERMINAL_WORKFLOWS,ik as MAX_SNAPSHOTS,Yp as MAX_TEAMMATES,zn as MAX_TRANSCRIPT_MESSAGES,Ar as MAX_TURNS,bj as MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,Be as MCPDiscoveryState,ve as MCPOAuthProvider,re as MCPOAuthTokenStorage,_t as MCPServerConfig,Ae as MCPServerStatus,Xr as MCP_BUDGET_REARM_FRACTION,Wr as MCP_BUDGET_WARN_FRACTION,ye as MCP_DEFAULT_TIMEOUT_MSEC,Ze as MCP_RESULT_DEFAULT_CHARS,_e as MCP_RESULT_MAX_CHARS,ub as MEDIA_FILE_PATTERNS,ob as MEMORY_SECTION_HEADER,Mv as MOCK_TOOL_GET_CONFIRMATION_DETAILS,Lv as MOCK_TOOL_GET_DEFAULT_PERMISSION,Xg as MODEL_GENERATION_CONFIG_FIELDS,Ua as MUTATOR_KINDS,Tr as McpBudgetWouldExceedError,Ce as McpClient,_r as McpClientManager,Ur as McpServerSpawnFailedError,su as McpTransportPool,Jf as MemoryDreamEvent,If as MemoryExtractEvent,yr as MemoryManager,Yb as MemoryMetricType,Kf as MemoryRecallEvent,pt as MessageBus,Wi as MessageBusType,nu as MessageSenderType,Ov as MockModifiableTool,Nv as MockModifiableToolInvocation,Kv as MockTool,Wg as ModelRegistry,zf as ModelSlashCommandEvent,Yg as ModelsConfig,qs as MonitorRegistry,so as NON_INTERACTIVE_ENV,dv as NativeLspClient,ev as NativeLspService,nf as NextSpeakerCheckEvent,mj as NotificationType,ue as OAUTH_AUTH_URL_EVENT,te as OAUTH_DISPLAY_MESSAGE_EVENT,se as OAuthUtils,Jg as OUTPUT_TOKEN_SAFETY_MARGIN,Qf as OpenAILogger,Po as OpenDiffRequestSchema,cs as OutputFormat,ov as OverlayFs,M as PATH_ARG_KEYS,si as PAUSED_GOAL_SYSTEM_REMINDER,Qr as POOLED_TRANSPORTS_DEFAULT,Mk as PROVIDER_METADATA_NS,wb as PYTHON_EXCLUDES,Xb as PerformanceMetricType,ks as PermissionManager,oj as PermissionMode,lj as PermissionRequestHookOutput,rj as PostCompactTrigger,jj as PostToolBatchHookOutput,hj as PostToolUseFailureHookOutput,gj as PostToolUseHookOutput,qj as PreCompactTrigger,fj as PreToolUseHookOutput,Gf as PromptSuggestionEvent,Yk as ProviderInstallError,Mq as RECIPROCAL_CALLER,Gs as REDACTED_URL_CREDENTIAL,d as REPORTED_ATTEMPT_PURPOSES,b as REPORTED_ATTEMPT_PURPOSE_HEADER,c as REPORTED_OPERATION_HEADER_NAMES,a as REPORTED_OPERATION_ID_HEADER,Tg as RUNTIME_SNAPSHOT_PREFIX,nk as RUNTIME_STATUS_SCHEMA_VERSION,ke as ReadFileTool,g as ReportedOperationTracker,Et as RipGrepTool,lf as RipgrepFallbackEvent,Tf as RuntimeDiagnosticsCollector,Mn as SAFE_TOOL_ALLOWLIST,zk as SESSION_TITLE_MAX_LENGTH,L as SHELL_SPECIAL_CHARS,Ym as SHELL_TOOL_NAMES,ur as SKILL_REVIEW_TASK_TYPE,Ej as STALE_GOAL_TURN_MESSAGE,Mj as STOP_HOOK_BLOCK_CAP_ENV,hl as STREAM_RECOVERY_PARTIAL_DISPOSITION,gl as STREAM_RECOVERY_SNAPSHOT_DISPOSITION,kv as SUGGESTION_PROMPT,Ah as SUPPORTED_IMAGE_MIME_TYPES,Yu as SYMBOL_KIND_LABELS,Gt as SYSTEMONE_MODEL_VERSION_HEADER,Ft as SYSTEMONE_PUBLIC_MODEL,xb as SYSTEM_FILE_EXCLUDES,Ml as SYSTEM_REMINDER_CLOSE,Ll as SYSTEM_REMINDER_OPEN,La as SchemaValidator,le as SdkControlClientTransport,zc as SemanticAttributes,Br as SendMessageType,pj as SessionEndReason,Bk as SessionService,nj as SessionStartSource,bl as SessionTranscriptRetiredError,al as SessionTranscriptStaleError,et as SettingScope,to as ShellExecutionService,is as SkillActivationRegistry,fs as SkillError,Bf as SkillLaunchEvent,js as SkillManager,pf as SlashCommandStatus,Al as SleepInhibitor,ca as SpanStatusCode,Hf as SpeculationEvent,Ao as StandardFileSystemService,bf as StartSessionEvent,kj as StopHookOutput,$ as Storage,cm as StreamEventType,qp as SubagentError,rp as SubagentErrorCode,ms as SubagentManager,ls as SubagentValidator,It as SystemOneError,$p as TASKS_DIR,cq as TEAMMATE_COLORS,_p as TEAMS_DIR,aq as TEAM_CONFIG_FILENAME,Wj as TERMINAL_CSI_REGEX,Vj as TERMINAL_OSC_REGEX,Xj as TERMINAL_SHIFT_DCS_REGEX,Uk as THIRD_PARTY_PROVIDERS,el as THOUGHT_ONLY_DISPOSITION,Xm as TOOL_NAME_ALIASES,wu as TOOL_USE_SUMMARY_SYSTEM_PROMPT,vm as TaskCompletionScope,Tq as TaskOwnershipError,eq as TeamEventEmitter,dq as TeamEventType,cr as TeamManager,xg as TelemetryTarget,zh as TextTokenizer,Mp as TmuxBackend,ff as ToolCallEvent,Sa as ToolConfirmationOutcome,hb as ToolDisplayNames,kb as ToolDisplayNamesMigration,Ka as ToolErrorType,Zb as ToolExecutionPhase,gb as ToolNames,ib as ToolNamesMigration,wf as ToolOutputTruncatedEvent,as as ToolRegistry,Tt as TrustGateError,pl as Turn,Ud as USER_AUTO_MEMORY_DIRNAME,Xa as UiTelemetryService,C as UnauthorizedError,df as UserPromptEvent,ij as UserPromptExpansionHookOutput,ef as UserRetryEvent,ba as ValueType,zp as WORKTREES_DIR,tp as WORKTREE_BRANCH_PREFIX,vp as WORKTREE_SESSION_FILE,vs as WorkflowRunRegistry,Hp as WorkspaceContext,tu as WorkspaceMcpBudget,Mu as WorkspaceMemoryFileTooLargeError,Ku as WorkspaceMemoryWriteTimeoutError,pa as _recoverObjectsFromLine,To as _resetCachedIdeServerHost,ua as _resetEnsuredDirsCacheForTest,Dt as _resetRipGrepCachesForTest,K as _resetValidatePathCacheForTest,uv as abortSpeculation,tv as acceptSpeculation,Dl as acquireSleepInhibitor,eg as addDaemonRequestAttribute,Ee as addMCPStatusChangeListener,Fc as addModelOutputAttributes,Dc as addSystemPromptAttributes,Gc as addToolInputAttributes,Hc as addToolResultAttributes,Ec as addToolSchemaAttributes,Cc as addUserPromptAttributes,Hu as aggregateUsage,bo as allowEditorTypeInSandbox,Mi as ambientGoalToolResultProvenance,wa as appendLine,Rh as appendToLastTextPart,Rn as applyAutoModeDecision,Zk as applyProviderInstallPlan,Kl as applySkillAllowedTools,gu as approxBase64Bytes,Nq as assertValidTaskId,sq as assignTeammateColor,la as atomicWriteFile,oa as atomicWriteFileSync,ma as atomicWriteJSON,Yq as blockTask,Rl as buildAddedMcpToolsReminder,Ul as buildAddedSkillsReminder,Ck as buildApiHistoryFromConversation,Tl as buildAvailableSkillsReminder,ir as buildBackgroundEntryLabel,Iv as buildBtwCacheSafeParams,Hv as buildBtwPrompt,Ql as buildDeferredToolsReminder,Vp as buildFallbackApproachSummary,Vi as buildGoalContinuationParts,en as buildHumanReadableRuleLabel,Nk as buildInstallPlan,Sl as buildMcpServerInstructionsReminder,Gr as buildMissedCronNotification,Kh as buildModelIdContext,pn as buildPermissionCheckContext,dn as buildPermissionRules,Sk as buildProviderTemplate,m as buildReportedOperationHeaders,Nm as buildShellExecWarnings,Jl as buildSkillLlmContent,Vl as buildStartupContextReminder,br as buildTeammatePromptAddendum,Or as canUseRipgrep,jb as canonicalToolName,hg as captureDaemonTelemetryContext,Um as checkArgumentSafety,Om as checkCommandPermissions,Ps as checkForExtensionUpdate,ao as checkHasEditorType,Ms as checkNpmUpdate,we as childProcessEnv,Zq as claimTask,iu as clampInlineMediaPart,Kg as clampOutputToContextWindow,th as classifyRetryError,xq as classifyShutdownResponse,zu as cleanSummary,Qv as cleanupTmpDir,Kq as clearAllInboxes,Xd as clearAutoMemoryRootCache,or as clearCacheSafeParams,Jq as clearInbox,dd as clearMatildaCorrelationHashes,ah as clearMatildaCredentials,qk as clearRuntimeStatus,tq as clearTeammateColors,Cv as clearWelcomeBackState,Mt as clearWorktreeSession,vt as cliSource,Ns as cloneFromGit,Ca as codeCreditAccount,Da as codeCreditJournalPath,Ba as codeCreditOrigin,Hr as collectMemoryDiagnostics,_l as collectToolCallIdsFromHistory,Xn as commandExists,em as compactPendingUserContentToBudget,dm as compactTextMiddle,El as compactionFailureText,Jk as compactionUpdateFromRecord,Ok as computeModelListVersion,zl as computeThresholds,Gk as computeUniqueBranchTitle,zt as computedSource,Qe as connectAndDiscover,We as connectToMcpServer,Rr as connectionIdOf,Iq as consumeUnread,Vs as convertClaudeAgentConfig,Xs as convertClaudePluginPackage,Ws as convertClaudeToMatildaConfig,oo as convertColorToHex,Wo as convertToFunctionResponse,Ts as convertTomlToMarkdown,ht as copyExtension,Mb as countFileLines,za as countLines,Ot as crawlCache,Ih as createContentGenerator,Hh as createContentGeneratorConfig,lg as createDaemonBridgeTelemetry,ja as createDebugLogger,pm as createDefaultAutoMemoryExtractCursor,qm as createDefaultAutoMemoryIndex,om as createDefaultAutoMemoryMetadata,Cn as createDenialState,jv as createFollowupController,pr as createForkedChat,Gj as createGoalRuntime,dj as createHookOutput,ot as createInstructionsLoadedCallback,ze as createStreamableHttpCompatibilityFetch,Rq as createTask,Aq as createTeamFile,Pv as createTmpDir,vu as createToolUseSummaryMessage,Xe as createTransport,Jb as decodeBufferWithEncodingInfo,pu as decodeTagName,am as dedupeToolCallsById,yt as defaultSource,Vq as deleteTask,Cq as deleteTeamDirs,lk as deserializeSnapshots,Ib as detectBOM,Rp as detectBackend,Km as detectCommandSubstitution,Gb as detectEncodingFromBuffer,Ob as detectFileEncoding,Tb as detectFileType,Co as detectIdeFromEnv,yo as detectLineEnding,wh as detectRuntime,tj as detectTodoChanges,Oe as discoverMcpTools,Te as discoverPrompts,Re as discoverTools,Eq as disposeInboxLocks,ym as doesToolInvocationMatch,Qs as downloadFromGitHubRelease,Ls as downloadFromNpmRegistry,Yn as editorCommands,gg as emitDaemonLog,ui as emptyGoalSnapshot,lu as encodeInsightErrorMessage,ju as encodeInsightProgressMessage,ku as encodeInsightReadyMessage,ou as encodeTagName,zo as encodeTextFileContent,Wc as endHookSpan,Kc as endInteractionSpan,Nc as endLLMRequestSpan,Zc as endSubagentSpan,Uc as endToolBlockedOnUserSpan,Sc as endToolExecutionSpan,Qc as endToolSpan,rm as ensureAutoMemoryScaffold,xo as ensureCrlfLineEndings,Nr as ensureMacBinarySigned,Mr as ensureRipgrepHealthy,vv as ensureToolResultPairing,ta as ensureTrailingNewlineSync,tm as ensureUserAutoMemoryScaffold,i as enterReportedOperationContext,At as envLayer,Ui as escapeJsonTagCharacters,R as escapePath,Bm as escapeShellArg,Aj as escapeSystemReminderTags,Bj as escapeSystemReminderTagsInContent,Lf as estimateTokensFromChars,Vn as evaluateAutoMode,tn as evaluatePermissionFlow,qn as evaluatePermissionRules,Jt as evaluateSystemOne,pv as evaluateToolCall,Pm as execCommand,ru as executeToolCall,Aa as exists,O as expandHomeDir,kg as extractDaemonTraceContext,Ab as extractExtensionsFromPatterns,Ss as extractFile,uk as extractJsonStringField,wk as extractLastJsonStringField,vk as extractLastJsonStringFields,An as extractShellOperations,Vo as extractToolFilePaths,bk as fetchGitDiff,ck as fetchGitDiffHunks,Vb as fileExists,xv as filter,Sj as findGitRoot,Th as findInContents,vq as findMemberById,wq as findMemberByName,Wk as findProviderByCredentials,Vk as findProviderById,Rs as findReleaseAsset,yj as fireNotificationHook,zj as firePermissionRequestHook,xj as firePostToolUseFailureHook,wj as firePostToolUseHook,vj as firePreToolUseHook,Qh as flatMapTextParts,id as forceFlushMetrics,qq as formatAgentId,Un as formatClassifierBlockMessage,Nl as formatDateForContext,Dn as formatDenialStateLog,wm as formatJoinedWaitNotice,Wp as formatLineStats,Ti as formatMemoryUsage,Pj as formatStopHookBlockingCapWarning,ea as formatTraceparent,iq as forwardApproval,Dp as generateAgentWorktreeSlug,lv as generatePromptSuggestion,uu as generateSessionRecap,uj as generateToolUseId,xu as generateToolUseSummary,rq as generateUniqueTeammateName,af as generateValidName,Mf as generatedOutputTokens,_c as getActiveInteractionSpan,fp as getAgentName,ar as getAgentStatuses,rb as getAllGeminiMdFilenames,Ke as getAllMCPServerStatuses,Xk as getAllProviderBaseUrls,xl as getArenaSystemReminder,be as getAutoMemoryConsolidationLockPath,ae as getAutoMemoryExtractCursorPath,ee as getAutoMemoryFilePath,_d as getAutoMemoryIndexPath,$d as getAutoMemoryMetadataPath,Yd as getAutoMemoryProjectStateDir,Wd as getAutoMemoryRoot,ce as getAutoMemoryTopicFilename,de as getAutoMemoryTopicPath,Tn as getAutoModePermissionDeniedReason,Kr as getBuiltinRipgrep,nr as getCacheSafeParams,Db as getCachedEncodingForBuffer,Dm as getCommandRoot,Em as getCommandRoots,tl as getCompressionPrompt,ul as getCompressionUpdatePrompt,sl as getCoreSystemPrompt,qb as getCurrentGeminiMdFilename,rl as getCustomSystemPrompt,Qk as getDefaultModelIds,eo as getDiffCommand,Ol as getDirectoryContextString,Zn as getEditorExecutable,vn as getEffectivePermissionForConfirmation,ct as getEnvContents,Pl as getEnvironmentContext,p as getErrorMessage,q as getErrorStatus,r as getErrorType,it as getExtensionId,$n as getExternalEditorCommand,mv as getFilterReason,Il as getFolderStructure,Vh as getFunctionCalls,Xh as getFunctionCallsAsJson,Wh as getFunctionCallsFromParts,Yh as getFunctionCallsFromPartsAsJson,Tj as getGitBranch,Uj as getGitRepoName,aj as getHookKey,Nu as getIdeInstaller,Uo as getIdeServerHost,Fq as getInboxPath,nq as getInboxesDir,Wl as getInitialChatHistory,yl as getInsightPrompt,gq as getLeader,Le as getMCPDiscoveryState,hv as getMCPServerPrompts,Ie as getMCPServerStatus,Je as getMCPServerStderrTail,Rg as getMatildaAuthBaseUrl,bh as getMatildaAuthStatus,cd as getMatildaCorrelationHashes,Zg as getMatildaCredentialsPath,fu as getMaxInlineMediaBytes,Vd as getMemoryBaseDir,ps as getMonitorOutputPath,xh as getOrCreateSharedDispatcher,wl as getPlanModeSystemReminder,T as getProjectHash,Dv as getProjectSummaryInfo,vl as getProjectSummaryPrompt,qh as getProviderErrorCode,rh as getRateLimitErrorDetails,sh as getRateLimitRetryDelayMs,f as getReportedOperationContext,Ph as getResponseText,Uh as getResponseTextFromParts,Ek as getResumePromptTokenCount,Fk as getResumeTokenCounts,cn as getRuleDisplayName,bt as getScopedEnvContents,ro as getShellAbortReasonKind,fn as getShellCommandRuleTargets,zm as getShellConfiguration,Pb as getSpecificMimeType,_m as getSpecifierKind,Xl as getStartupContextLength,Zh as getStructuredResponse,_h as getStructuredResponseFromParts,Ch as getSupportedImageFormatsString,Eb as getSystemEncoding,Sq as getTask,Oq as getTaskPath,oq as getTasksDir,lq as getTeamDir,mq as getTeamFilePath,gp as getTeamName,kp as getTeammateColor,dp as getTeammateContext,kq as getTeamsRootDir,ll as getThoughtText,Gu as getTimeRangeBounds,da as getTraceContext,Dh as getUnsupportedImageFormatWarning,ge as getUserAutoMemoryIndexPath,fe as getUserAutoMemoryRoot,he as getUserAutoMemoryTopicPath,dh as getValidMatildaAccessToken,Av as getWelcomeBackState,zr as globalMemoryManager,pi as goalActiveTimeBudgetReason,Hi as goalPauseReasonForFailure,Ki as goalPauseReasonForHeadlessFailure,Ji as goalPauseReasonForRepeatedGaps,Li as goalPauseReasonForRunBudget,Ii as goalPauseReasonForVerifierFailure,vi as goalRequiresExactPermit,Hj as goalRuntimeOf,ai as goalSpendContext,Ij as goalTaskEnd,li as goalTokenBudgetReason,ni as goalTurnBudgetReason,$h as goalTurnContext,Ne as handleAutomaticOAuth,Ra as hasCycleInSchema,Mg as hasExplicitOutputLimit,Ve as hasNetworkTransport,Hm as hasNonFinalTopLevelBackgroundOperator,Mm as hasShellSubstitution,Jm as hasUnsafeMonitorBackgroundOperator,$f as hashDaemonWorkspace,fv as hashMcpServerConfig,jt as hashValue,mt as hookEventSupportsMatcher,Cs as hydrateString,Io as ideContextStore,mg as initializeDaemonMetrics,fd as initializeTelemetry,jg as injectDaemonTraceContext,rn as injectPermissionRulesIfMissing,Ue as invokeMcpPrompt,o as isAbortError,F as isAccountInactiveError,je as isAnyAutoMemPath,kh as isApiError,xn as isApprovalWaivedInPlanMode,Kn as isApproveOutcome,yn as isAutoEditApproved,Zd as isAutoMemPath,Ju as isBareMode,jo as isBinary,Rb as isBinaryFile,me as isBrowserCommandBlocked,Zs as isClaudePluginConfig,Sm as isCommandAllowed,Rm as isCommandAvailable,Tm as isCommandNeedsPermission,ol as isCompressionFailureStatus,fa as isDebugLoggingDegraded,En as isDenialFallbackReason,co as isEditorAvailable,Ye as isEnabled,fl as isExcludedFromModelReplay,il as isFinalAnswerResponse,Zt as isGatedMcpScope,nh as isGenericQuotaExceededError,Rj as isGitRepository,qi as isGoalActiveTimeBudgetSpent,ti as isGoalEvidenceProofKind,ri as isGoalLimitKind,mi as isGoalTokenBudgetSpent,oi as isGoalTurnBudgetSpent,ep as isInProcessTeammate,Nn as isInSafeToolAllowlist,km as isInvalidArgumentError,go as isModifiableDeclarativeTool,n as isNodeError,Ip as isPathWithinRoot,sc as isPerformanceMonitoringActive,wn as isPlanModeBlocked,mh as isProQuotaExceededError,lm as isProcessAlive,ph as isQuotaExhaustedError,oh as isRateLimitError,Xo as isRemoteContentTool,wi as isRepeatedBlockerProposal,e as isReportedOperationHeaderName,uh as isRetryableServerError,vh as isRetryableUpstreamError,Sf as isRuntimeDiagnosticsEnabled,jm as isSchemaDepthError,Js as isScopedNpmPackage,$t as isSdkMcpServerConfig,Z as isSessionTranscript,eb as isSettledStatus,lh as isStructuredError,V as isSubpath,W as isSubpaths,db as isSuccessStatus,Bh as isSupportedImageMimeType,Ht as isSystemOneOrigin,Yl as isSystemReminderContent,jp as isTeamLead,ip as isTeammate,ed as isTelemetrySdkInitialized,_n as isTerminalEditor,cb as isTerminalStatus,Us as isTomlFormat,Qa as isTool,xm as isToolEnabled,Lh as isTransientCapacityError,Mh as isUnattendedMode,dl as isUserAuthoredPromptRecord,ie as isUserAutoMemPath,Wn as isValidEditorType,fm as isValidNonThoughtTextPart,Am as isWindows,Qb as isWithinRoot,Ng as knownTokenLimit,Bt as layer,Se as listMcpPrompts,Wq as listTasks,Dq as listTeamNames,Pt as loadIgnoreRules,st as loadServerHierarchicalMemory,Fu as loadUsageHistory,rd as logApiCancel,qd as logApiError,od as logApiRequest,sd as logApiResponse,Id as logArenaAgentCompleted,Jd as logArenaSessionEnded,Hd as logArenaSessionStarted,Fd as logAuth,xd as logChatCompression,wd as logConversationFinishedEvent,Ed as logExtensionDisable,Dd as logExtensionEnable,Ad as logExtensionInstallEvent,Bd as logExtensionUninstall,Cd as logExtensionUpdateEvent,vd as logIdeConnection,yd as logKittySequenceOverflow,Nd as logMemoryDream,Md as logMemoryExtract,Od as logMemoryRecall,zd as logModelSlashCommand,td as logNextSpeakerCheck,Kd as logPromptSuggestion,pd as logRipgrepFallback,Gd as logSkillLaunch,ud as logSlashCommand,Ld as logSpeculation,jd as logStartSession,md as logToolCall,nd as logToolOutputTruncated,kd as logUserPrompt,ld as logUserRetry,Sg as loginToMatilda,gh as loginToMatildaWithBrowser,hh as loginToMatildaWithDevice,ch as logoutMatilda,Df as makeArenaAgentCompletedEvent,Ef as makeArenaSessionEndedEvent,Cf as makeArenaSessionStartedEvent,qf as makeChatCompressionEvent,Jv as makeFakeConfig,Q as makeRelative,of as makeSlashCommandEvent,jn as matchesCommandPattern,mn as matchesDomainPattern,nn as matchesMcpPattern,ln as matchesPathPattern,on as matchesRule,Qg as matildaProvider,$s as maybePromptForSettings,xe as mcpServerProcessEnv,De as mcpServerRequiresOAuth,Zr as mcpTransportOf,Ys as mergeClaudeConfigs,Bu as metricsToUsageRecord,xt as modelProvidersSource,Vg as modelRegistryKey,ho as modifyWithEditor,un as needsConfirmation,vo as needsUtf8Bom,Lg as normalize,Ga as normalizeCodeCreditLimit,Ag as normalizeCodeOrganizationId,ko as normalizeContent,$l as normalizeModelToolCallIds,Im as normalizeMonitorCommand,qt as normalizeProxyUrl,gs as normalizeSkillPriority,Nj as normalizeStopHookBlockingCap,Of as normalizeStoredModelUsage,Cu as normalizeUsageRecord,Qq as notifyTasksUpdated,Pq as onTasksUpdated,oe as openBrowserSecurely,fo as openDiff,Rf as openaiLogger,hu as oversizedMediaPlaceholder,ds as parse,Qj as parseAndFormatApiError,Wf as parseBooleanEnvFlag,Sr as parseConnectionId,gk as parseDeletedFromNameStatus,ek as parseGitDiff,Os as parseGitHubRepoForReleases,dk as parseGitNumstat,mu as parseInsightMessage,gv as parseInstallSource,qa as parseLineTolerant,Is as parseNpmPackageSource,an as parseRule,bn as parseRules,hn as parseShellCommandSegments,fk as parseShortstat,Xf as parseTelemetryTargetValue,kl as parseThought,du as partListUnionToString,Oh as partToString,Qn as passesAcceptEditsFastPath,Fs as performVariableReplacement,sn as persistPermissionOutcome,Au as persistSessionUsage,Pe as populateMcpServerCommand,Sh as prependToFirstTextPart,Ub as processSingleFileContent,Rv as projectGoalCard,at as promptForSetting,po as promptIdContext,Rk as providerMatchesCredentials,sa as read,sm as readAutoMemoryIndex,Lb as readFileWithEncoding,Kb as readFileWithEncodingInfo,Nb as readFileWithLineAndLimit,Gq as readInbox,sk as readLastConversationTimestampSync,xk as readLastJsonStringFieldSync,yk as readLastJsonStringFieldsSync,ra as readLines,Ev as readManyFiles,_g as readMatildaCredentials,zv as readPathFromWorkspace,pk as readRuntimeStatus,yq as readTeamFile,um as readUserAutoMemoryIndex,Kt as readWorktreeSession,xp as readWorktreeSessionMarker,Fn as recordAllow,cc as recordApiErrorMetrics,oc as recordApiRequestBreakdown,bc as recordApiResponseMetrics,hc as recordApiRetry,uc as recordArenaAgentCompletedMetrics,vc as recordArenaSessionEndedMetrics,tc as recordArenaSessionStartedMetrics,rc as recordBaselineComparison,Gn as recordBlock,fc as recordContentRetry,gc as recordContentRetryFailure,kc as recordCpuUsage,tg as recordDaemonBridgeError,ug as recordDaemonCancel,qg as recordDaemonChannelLifecycle,fg as recordDaemonError,og as recordDaemonHttpRequest,dg as recordDaemonHttpResponse,sg as recordDaemonPromptDuration,rg as recordDaemonPromptQueueWait,pg as recordDaemonSessionLifecycle,Jn as recordFallbackApprove,dc as recordFileOperationMetric,ec as recordInvalidChunk,xc as recordMemoryDreamMetrics,wc as recordMemoryExtractMetrics,yc as recordMemoryRecallMetrics,jc as recordMemoryUsage,qc as recordPerformanceRegression,pc as recordPerformanceScore,di as recordStartupEvent,ic as recordStartupPerformance,nc as recordTokenEfficiency,ac as recordTokenUsageMetrics,$b as recordToolCallMetrics,mc as recordToolExecutionBreakdown,lc as recordToolQueueDepth,Hn as recordUnavailable,Fa as recoverCodeCredit,Si as recoverGoalFromRecords,Ds as recursivelyHydrateStrings,yh as redactProxyCredentials,bm as redactStructuredOutputArgsForRecording,Hs as redactUrlCredentials,Du as reestimateUsageFromAssistantRecord,eh as refreshMatildaCredentials,gd as refreshSessionContext,ng as registerDaemonGaugeCallbacks,fq as registerLeader,_q as releaseOwnedTask,Jj as releaseUnstartedGoalTurn,Kj as releaseWithdrawnGoalTurn,He as removeMCPServerStatus,Fe as removeMCPStatusChangeListener,ka as renameWithRetry,na as renameWithRetrySync,hm as repairOrphanedToolUseTurns,Dk as replayUiTelemetryFromConversation,wg as reportCliAuthFunnelEvent,vg as reportCliClientEvent,Cr as reportedAttemptPurposeForSendMessageType,ih as requestMatildaDeviceCode,jh as requestMatildaDeviceToken,ga as resetDebugLoggingState,Ln as resetDenialState,Cb as resetEncodingCache,Xq as resetTaskList,wo as resetUtf8BomCache,hp as resolveActiveTeamName,_ as resolveAndValidatePath,Pk as resolveBaseUrl,Jr as resolveBundleDir,Qm as resolveCommandPath,Fh as resolveContentGeneratorConfigWithSources,tt as resolveField,hk as resolveGitDir,_k as resolveLocalHistoryAccountScopeId,$k as resolveLocalHistoryAccountScopeIdForCredentials,fr as resolveMaxConcurrentBackgroundAgents,Lk as resolveMetadataKey,Ct as resolveModelConfig,Jh as resolveModelId,Ks as resolveNpmRegistry,Pf as resolveOpenAILogDir,ut as resolveOptionalField,Kk as resolveOwnsModel,X as resolvePath,ql as resolvePathFromEnv,kn as resolvePathPattern,Lr as resolveRipgrep,Oj as resolveStopHookBlockingCap,Yf as resolveTelemetrySettings,Zm as resolveToolName,Nt as restoreWorktreeContext,Nh as retryWithBackoff,qv as rewritePathArgs,Eu as rewriteUsageHistoryFromChats,k as runAsyncGeneratorWithReportedOperationContext,rr as runForkedAgent,bi as runInGoalTurn,Yc as runInSubagentSpanContext,Pc as runInToolSpanContext,Pr as runRipgrep,Pi as runSideQuery,ig as runWithDaemonTelemetryContext,ia as runWithDebugLogSession,qr as runWithForkedChatModel,j as runWithReportedAttemptPurpose,h as runWithReportedOperationContext,lp as runWithTeammateIdentity,Uf as runtimeDiagnostics,$a as safeAgentId,io as safeLiteralReplace,U as sanitizeCwd,Ac as sanitizeHookName,pq as sanitizeName,Ik as sanitizeTitle,cl as sanitizeToolCallResultForRecording,cj as sanitizeUserPromptExpansionAdditionalContext,mr as saveCacheSafeParams,Bv as saveWelcomeBackRestartChoice,Lq as sendStructuredMessage,kk as serializeSnapshot,no as serializeTerminalToObject,lo as serializeTerminalToText,qo as sessionIdContext,ha as setDebugLogSession,pb as setGeminiMdFilename,Me as setMCPDiscoveryState,bd as setMatildaCorrelationHashes,uq as setMemberActive,ci as setStartupEventSink,wt as settingsSource,P as shortenPath,ne as shouldAttemptBrowserLaunch,Vm as shouldDefaultToNodePty,In as shouldFallback,nv as shouldFilterSuggestion,Sn as shouldFirePermissionDeniedForAutoMode,Pn as shouldForceAutoModeReviewForAllow,pe as shouldLaunchBrowser,On as shouldRunAutoModeForCall,hd as shutdownTelemetry,Bl as sleepInhibitor,Sb as sniffImageMimeType,Cm as splitCommands,gn as splitCompoundCommand,hs as splitConditionalSkills,Vc as startHookSpan,Jc as startInteractionSpan,Mc as startLLMRequestSpan,sv as startSpeculation,Xc as startSubagentSpan,Tc as startToolBlockedOnUserSpan,Rc as startToolExecutionSpan,Oc as startToolSpan,Dr as startsReportedOperation,es as stringify,Ug as stripRuntimeSnapshotPrefix,Fm as stripShellWrapper,Zl as stripStartupContext,Yj as stripTerminalControlSequences,Gm as stripTrailingBackgroundAmp,Fv as subagentGenerator,Es as substituteHookVariables,Vf as summarizeOpenAIWireRequest,Up as summarizeUnifiedDiff,cp as teammateIdentityStore,ap as templateString,N as tildeifyPath,H as toFriendlyError,Wm as toPosixPath,Og as tokenLimit,$m as toolMatchesRuleToolName,Nf as totalTokensFromBuckets,Bc as truncateContent,yu as truncateJson,Ic as truncateSpanError,Hk as tryGenerateSessionTitle,Bq as tryReclaimStaleTeam,Ya as uiTelemetryService,$q as unassignTeammateTasks,tk as unescapeJsonString,S as unescapePath,hq as unregisterLeader,Ge as updateMCPServerStatus,dt as updateSetting,aa as updateSymlink,Uq as updateTask,Ai as validateGoalPauseReason,yi as validateGoalProposalReason,Gh as validateModelConfig,kt as validateName,Y as validatePath,Bs as validateVariables,fh as willOpenMatildaAuthBrowser,Fb as windowsCodePageToEncoding,cg as withDaemonBridgeSpan,bg as withDaemonRequestSpan,ag as withDaemonSpan,Cj as withGoalProgressNotice,Lc as withInteractionSpan,l as withReportedAttemptPurpose,up as worktreeBranchForSlug,jq as wrapConfirmWithBadge,ya as write,va as writeLine,xa as writeLineSync,$g as writeMatildaCredentials,Hq as writeMessage,ok as writeRuntimeStatus,zq as writeTeamFile,Lu as writeWorkspaceContextFile,Lt as writeWorktreeSession,wp as writeWorktreeSessionMarker};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{a as q,b as ze,c as Ne,d as z,e as fe,f as ce,g as De,h as Me,i as We,j as Ve,k as Ge}from"./chunk-TUKNB5CQ.js";import{b as l}from"./chunk-GZPNIYVZ.js";import{c as g}from"./chunk-OWGSC52X.js";function Ke(r){if(!/^data:/i.test(r))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');r=r.replace(/\r?\n/g,"");let e=r.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let t=r.substring(5,e).split(";"),n="",o=!1,s=t[0]||"text/plain",i=s;for(let x=1;x<t.length;x++)t[x]==="base64"?o=!0:t[x]&&(i+=`;${t[x]}`,t[x].indexOf("charset=")===0&&(n=t[x].substring(8)));!t[0]&&!n.length&&(i+=";charset=US-ASCII",n="US-ASCII");let c=o?"base64":"ascii",u=unescape(r.substring(e+1)),a=Buffer.from(u,c);return a.type=s,a.typeFull=i,a.charset=n,a}var le,ue=g(()=>{l();le=Ke});var v,W=g(()=>{l();v=class extends Error{constructor(e,t){super(e),Error.captureStackTrace(this,this.constructor),this.type=t}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}});var m,ee=g(()=>{l();W();m=class extends v{constructor(e,t,n){super(e,t),n&&(this.code=this.errno=n.code,this.erroredSysCall=n.syscall)}}});var V,re,N,he,de,pe,G=g(()=>{l();V=Symbol.toStringTag,re=r=>typeof r=="object"&&typeof r.append=="function"&&typeof r.delete=="function"&&typeof r.get=="function"&&typeof r.getAll=="function"&&typeof r.has=="function"&&typeof r.set=="function"&&typeof r.sort=="function"&&r[V]==="URLSearchParams",N=r=>r&&typeof r=="object"&&typeof r.arrayBuffer=="function"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.constructor=="function"&&/^(Blob|File)$/.test(r[V]),he=r=>typeof r=="object"&&(r[V]==="AbortSignal"||r[V]==="EventTarget"),de=(r,e)=>{let t=new URL(e).hostname,n=new URL(r).hostname;return t===n||t.endsWith(`.${n}`)},pe=(r,e)=>{let t=new URL(e).protocol,n=new URL(r).protocol;return t===n}});import B,{PassThrough as me}from"node:stream";import{types as ye,deprecate as oe,promisify as Ye}from"node:util";import{Buffer as S}from"node:buffer";async function te(r){if(r[y].disturbed)throw new TypeError(`body used already for: ${r.url}`);if(r[y].disturbed=!0,r[y].error)throw r[y].error;let{body:e}=r;if(e===null)return S.alloc(0);if(!(e instanceof B))return S.alloc(0);let t=[],n=0;try{for await(let o of e){if(r.size>0&&n+o.length>r.size){let s=new m(`content size at ${r.url} over limit: ${r.size}`,"max-size");throw e.destroy(s),s}n+=o.length,t.push(o)}}catch(o){throw o instanceof v?o:new m(`Invalid response body while trying to fetch ${r.url}: ${o.message}`,"system",o)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return t.every(o=>typeof o=="string")?S.from(t.join("")):S.concat(t,n)}catch(o){throw new m(`Could not create Buffer from response body for ${r.url}: ${o.message}`,"system",o)}else throw new m(`Premature close of server response while trying to fetch ${r.url}`)}var Je,y,P,k,_e,K,ge,we,Y=g(()=>{l();ze();ce();ee();W();G();Je=Ye(B.pipeline),y=Symbol("Body internals"),P=class{constructor(e,{size:t=0}={}){let n=null;e===null?e=null:re(e)?e=S.from(e.toString()):N(e)||S.isBuffer(e)||(ye.isAnyArrayBuffer(e)?e=S.from(e):ArrayBuffer.isView(e)?e=S.from(e.buffer,e.byteOffset,e.byteLength):e instanceof B||(e instanceof z?(e=fe(e),n=e.type.split("=")[1]):e=S.from(String(e))));let o=e;S.isBuffer(e)?o=B.Readable.from(e):N(e)&&(o=B.Readable.from(e.stream())),this[y]={body:e,stream:o,boundary:n,disturbed:!1,error:null},this.size=t,e instanceof B&&e.on("error",s=>{let i=s instanceof v?s:new m(`Invalid response body while trying to fetch ${this.url}: ${s.message}`,"system",s);this[y].error=i})}get body(){return this[y].stream}get bodyUsed(){return this[y].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:t,byteLength:n}=await te(this);return e.slice(t,t+n)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let n=new z,o=new URLSearchParams(await this.text());for(let[s,i]of o)n.append(s,i);return n}let{toFormData:t}=await import("./multipart-parser-FKHYAVGR.js");return t(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[y].body&&this[y].body.type||"",t=await this.arrayBuffer();return new q([t],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await te(this);return new TextDecoder().decode(e)}buffer(){return te(this)}};P.prototype.buffer=oe(P.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(P.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:oe(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});k=(r,e)=>{let t,n,{body:o}=r[y];if(r.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof B&&typeof o.getBoundary!="function"&&(t=new me({highWaterMark:e}),n=new me({highWaterMark:e}),o.pipe(t),o.pipe(n),r[y].stream=t,o=n),o},_e=oe(r=>r.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),K=(r,e)=>r===null?null:typeof r=="string"?"text/plain;charset=UTF-8":re(r)?"application/x-www-form-urlencoded;charset=UTF-8":N(r)?r.type||null:S.isBuffer(r)||ye.isAnyArrayBuffer(r)||ArrayBuffer.isView(r)?null:r instanceof z?`multipart/form-data; boundary=${e[y].boundary}`:r&&typeof r.getBoundary=="function"?`multipart/form-data;boundary=${_e(r)}`:r instanceof B?null:"text/plain;charset=UTF-8",ge=r=>{let{body:e}=r[y];return e===null?0:N(e)?e.size:S.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},we=async(r,{body:e})=>{e===null?r.end():await Je(e,r)}});import{types as be}from"node:util";import _ from"node:http";function Se(r=[]){return new w(r.reduce((e,t,n,o)=>(n%2===0&&e.push(o.slice(n,n+2)),e),[]).filter(([e,t])=>{try{return J(e),ne(e,String(t)),!0}catch{return!1}}))}var J,ne,w,Z=g(()=>{l();J=typeof _.validateHeaderName=="function"?_.validateHeaderName:r=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(r)){let e=new TypeError(`Header name must be a valid HTTP token [${r}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},ne=typeof _.validateHeaderValue=="function"?_.validateHeaderValue:(r,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let t=new TypeError(`Invalid character in header content ["${r}"]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_CHAR"}),t}},w=class r extends URLSearchParams{constructor(e){let t=[];if(e instanceof r){let n=e.raw();for(let[o,s]of Object.entries(n))t.push(...s.map(i=>[o,i]))}else if(e!=null)if(typeof e=="object"&&!be.isBoxedPrimitive(e)){let n=e[Symbol.iterator];if(n==null)t.push(...Object.entries(e));else{if(typeof n!="function")throw new TypeError("Header pairs must be iterable");t=[...e].map(o=>{if(typeof o!="object"||be.isBoxedPrimitive(o))throw new TypeError("Each header pair must be an iterable object");return[...o]}).map(o=>{if(o.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...o]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return t=t.length>0?t.map(([n,o])=>(J(n),ne(n,String(o)),[String(n).toLowerCase(),String(o)])):void 0,super(t),new Proxy(this,{get(n,o,s){switch(o){case"append":case"set":return(i,c)=>(J(i),ne(i,String(c)),URLSearchParams.prototype[o].call(n,String(i).toLowerCase(),String(c)));case"delete":case"has":case"getAll":return i=>(J(i),URLSearchParams.prototype[o].call(n,String(i).toLowerCase()));case"keys":return()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,o,s)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let t=this.getAll(e);if(t.length===0)return null;let n=t.join(", ");return/^content-encoding$/i.test(e)&&(n=n.toLowerCase()),n}forEach(e,t=void 0){for(let n of this.keys())Reflect.apply(e,t,[this.get(n),n,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,t)=>(e[t]=this.getAll(t),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,t)=>{let n=this.getAll(t);return t==="host"?e[t]=n[0]:e[t]=n.length>1?n:n[0],e},{})}};Object.defineProperties(w.prototype,["get","entries","forEach","values"].reduce((r,e)=>(r[e]={enumerable:!0},r),{}))});var Ze,Q,se=g(()=>{l();Ze=new Set([301,302,303,307,308]),Q=r=>Ze.has(r)});var R,T,Te=g(()=>{l();Z();Y();se();R=Symbol("Response internals"),T=class r extends P{constructor(e=null,t={}){super(e,t);let n=t.status!=null?t.status:200,o=new w(t.headers);if(e!==null&&!o.has("Content-Type")){let s=K(e,this);s&&o.append("Content-Type",s)}this[R]={type:"default",url:t.url,status:n,statusText:t.statusText||"",headers:o,counter:t.counter,highWaterMark:t.highWaterMark}}get type(){return this[R].type}get url(){return this[R].url||""}get status(){return this[R].status}get ok(){return this[R].status>=200&&this[R].status<300}get redirected(){return this[R].counter>0}get statusText(){return this[R].statusText}get headers(){return this[R].headers}get highWaterMark(){return this[R].highWaterMark}clone(){return new r(k(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,t=302){if(!Q(t))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new r(null,{headers:{location:new URL(e).toString()},status:t})}static error(){let e=new r(null,{status:0,statusText:""});return e[R].type="error",e}static json(e=void 0,t={}){let n=JSON.stringify(e);if(n===void 0)throw new TypeError("data is not JSON serializable");let o=new w(t&&t.headers);return o.has("content-type")||o.set("content-type","application/json"),new r(n,{...t,headers:o})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(T.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}})});var Re,xe=g(()=>{l();Re=r=>{if(r.search)return r.search;let e=r.href.length-1,t=r.hash||(r.href[e]==="#"?"#":"");return r.href[e-t.length]==="?"?"?":""}});import{isIP as Qe}from"node:net";function Ee(r,e=!1){return r==null||(r=new URL(r),/^(about|blob|data):$/.test(r.protocol))?"no-referrer":(r.username="",r.password="",r.hash="",e&&(r.pathname="",r.search=""),r)}function Ue(r){if(!Pe.has(r))throw new TypeError(`Invalid referrerPolicy: ${r}`);return r}function Xe(r){if(/^(http|ws)s:$/.test(r.protocol))return!0;let e=r.host.replace(/(^\[)|(]$)/g,""),t=Qe(e);return t===4&&/^127\./.test(e)||t===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:r.host==="localhost"||r.host.endsWith(".localhost")?!1:r.protocol==="file:"}function O(r){return/^about:(blank|srcdoc)$/.test(r)||r.protocol==="data:"||/^(blob|filesystem):$/.test(r.protocol)?!0:Xe(r)}function ve(r,{referrerURLCallback:e,referrerOriginCallback:t}={}){if(r.referrer==="no-referrer"||r.referrerPolicy==="")return null;let n=r.referrerPolicy;if(r.referrer==="about:client")return"no-referrer";let o=r.referrer,s=Ee(o),i=Ee(o,!0);s.toString().length>4096&&(s=i),e&&(s=e(s)),t&&(i=t(i));let c=new URL(r.url);switch(n){case"no-referrer":return"no-referrer";case"origin":return i;case"unsafe-url":return s;case"strict-origin":return O(s)&&!O(c)?"no-referrer":i.toString();case"strict-origin-when-cross-origin":return s.origin===c.origin?s:O(s)&&!O(c)?"no-referrer":i;case"same-origin":return s.origin===c.origin?s:"no-referrer";case"origin-when-cross-origin":return s.origin===c.origin?s:i;case"no-referrer-when-downgrade":return O(s)&&!O(c)?"no-referrer":s;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}function Be(r){let e=(r.get("referrer-policy")||"").split(/[,\s]+/),t="";for(let n of e)n&&Pe.has(n)&&(t=n);return t}var Pe,Le,ie=g(()=>{l();Pe=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),Le="strict-origin-when-cross-origin"});import{format as je}from"node:url";import{deprecate as qe}from"node:util";var h,D,er,$,Ae,Ce=g(()=>{l();Z();Y();G();xe();ie();h=Symbol("Request internals"),D=r=>typeof r=="object"&&typeof r[h]=="object",er=qe(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),$=class r extends P{constructor(e,t={}){let n;if(D(e)?n=new URL(e.url):(n=new URL(e),e={}),n.username!==""||n.password!=="")throw new TypeError(`${n} is an url with embedded credentials.`);let o=t.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(o)&&(o=o.toUpperCase()),!D(t)&&"data"in t&&er(),(t.body!=null||D(e)&&e.body!==null)&&(o==="GET"||o==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let s=t.body?t.body:D(e)&&e.body!==null?k(e):null;super(s,{size:t.size||e.size||0});let i=new w(t.headers||e.headers||{});if(s!==null&&!i.has("Content-Type")){let a=K(s,this);a&&i.set("Content-Type",a)}let c=D(e)?e.signal:null;if("signal"in t&&(c=t.signal),c!=null&&!he(c))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let u=t.referrer==null?e.referrer:t.referrer;if(u==="")u="no-referrer";else if(u){let a=new URL(u);u=/^about:(\/\/)?client$/.test(a)?"client":a}else u=void 0;this[h]={method:o,redirect:t.redirect||e.redirect||"follow",headers:i,parsedURL:n,signal:c,referrer:u},this.follow=t.follow===void 0?e.follow===void 0?20:e.follow:t.follow,this.compress=t.compress===void 0?e.compress===void 0?!0:e.compress:t.compress,this.counter=t.counter||e.counter||0,this.agent=t.agent||e.agent,this.highWaterMark=t.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=t.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=t.referrerPolicy||e.referrerPolicy||""}get method(){return this[h].method}get url(){return je(this[h].parsedURL)}get headers(){return this[h].headers}get redirect(){return this[h].redirect}get signal(){return this[h].signal}get referrer(){if(this[h].referrer==="no-referrer")return"";if(this[h].referrer==="client")return"about:client";if(this[h].referrer)return this[h].referrer.toString()}get referrerPolicy(){return this[h].referrerPolicy}set referrerPolicy(e){this[h].referrerPolicy=Ue(e)}clone(){return new r(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties($.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});Ae=r=>{let{parsedURL:e}=r[h],t=new w(r[h].headers);t.has("Accept")||t.set("Accept","*/*");let n=null;if(r.body===null&&/^(post|put)$/i.test(r.method)&&(n="0"),r.body!==null){let c=ge(r);typeof c=="number"&&!Number.isNaN(c)&&(n=String(c))}n&&t.set("Content-Length",n),r.referrerPolicy===""&&(r.referrerPolicy=Le),r.referrer&&r.referrer!=="no-referrer"?r[h].referrer=ve(r):r[h].referrer="no-referrer",r[h].referrer instanceof URL&&t.set("Referer",r.referrer),t.has("User-Agent")||t.set("User-Agent","node-fetch"),r.compress&&!t.has("Accept-Encoding")&&t.set("Accept-Encoding","gzip, deflate, br");let{agent:o}=r;typeof o=="function"&&(o=o(e));let s=Re(e),i={path:e.pathname+s,method:r.method,headers:t[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:r.insecureHTTPParser,agent:o};return{parsedURL:e,options:i}}});var X,$e=g(()=>{l();W();X=class extends v{constructor(e,t="aborted"){super(e,t)}}});import rr from"node:http";import tr from"node:https";import H from"node:zlib";import Fe,{PassThrough as ke,pipeline as I}from"node:stream";import{Buffer as j}from"node:buffer";async function Oe(r,e){return new Promise((t,n)=>{let o=new $(r,e),{parsedURL:s,options:i}=Ae(o);if(!or.has(s.protocol))throw new TypeError(`node-fetch cannot load ${r}. URL scheme "${s.protocol.replace(/:$/,"")}" is not supported.`);if(s.protocol==="data:"){let f=le(o.url),L=new T(f,{headers:{"Content-Type":f.typeFull}});t(L);return}let c=(s.protocol==="https:"?tr:rr).request,{signal:u}=o,a=null,x=()=>{let f=new X("The operation was aborted.");n(f),o.body&&o.body instanceof Fe.Readable&&o.body.destroy(f),!(!a||!a.body)&&a.body.emit("error",f)};if(u&&u.aborted){x();return}let M=()=>{x(),C()},A=c(s.toString(),i);u&&u.addEventListener("abort",M);let C=()=>{A.abort(),u&&u.removeEventListener("abort",M)};A.on("error",f=>{n(new m(`request to ${o.url} failed, reason: ${f.message}`,"system",f)),C()}),nr(A,f=>{a&&a.body&&a.body.destroy(f)}),process.version<"v14"&&A.on("socket",f=>{let L;f.prependListener("end",()=>{L=f._eventsCount}),f.prependListener("close",d=>{if(a&&L<f._eventsCount&&!d){let U=new Error("Premature close");U.code="ERR_STREAM_PREMATURE_CLOSE",a.body.emit("error",U)}})}),A.on("response",f=>{A.setTimeout(0);let L=Se(f.rawHeaders);if(Q(f.statusCode)){let p=L.get("Location"),E=null;try{E=p===null?null:new URL(p,o.url)}catch{if(o.redirect!=="manual"){n(new m(`uri requested responds with an invalid redirect URL: ${p}`,"invalid-redirect")),C();return}}switch(o.redirect){case"error":n(new m(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),C();return;case"manual":break;case"follow":{if(E===null)break;if(o.counter>=o.follow){n(new m(`maximum redirect reached at: ${o.url}`,"max-redirect")),C();return}let b={headers:new w(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:k(o),signal:o.signal,size:o.size,referrer:o.referrer,referrerPolicy:o.referrerPolicy};if(!de(o.url,E)||!pe(o.url,E))for(let Ie of["authorization","www-authenticate","cookie","cookie2"])b.headers.delete(Ie);if(f.statusCode!==303&&o.body&&e.body instanceof Fe.Readable){n(new m("Cannot follow redirect with body being a readable stream","unsupported-redirect")),C();return}(f.statusCode===303||(f.statusCode===301||f.statusCode===302)&&o.method==="POST")&&(b.method="GET",b.body=void 0,b.headers.delete("content-length"));let ae=Be(L);ae&&(b.referrerPolicy=ae),t(Oe(new $(E,b))),C();return}default:return n(new TypeError(`Redirect option '${o.redirect}' is not a valid value of RequestRedirect`))}}u&&f.once("end",()=>{u.removeEventListener("abort",M)});let d=I(f,new ke,p=>{p&&n(p)});process.version<"v12.10"&&f.on("aborted",M);let U={url:o.url,status:f.statusCode,statusText:f.statusMessage,headers:L,size:o.size,counter:o.counter,highWaterMark:o.highWaterMark},F=L.get("Content-Encoding");if(!o.compress||o.method==="HEAD"||F===null||f.statusCode===204||f.statusCode===304){a=new T(d,U),t(a);return}let He={flush:H.Z_SYNC_FLUSH,finishFlush:H.Z_SYNC_FLUSH};if(F==="gzip"||F==="x-gzip"){d=I(d,H.createGunzip(He),p=>{p&&n(p)}),a=new T(d,U),t(a);return}if(F==="deflate"||F==="x-deflate"){let p=I(f,new ke,E=>{E&&n(E)});p.once("data",E=>{(E[0]&15)===8?d=I(d,H.createInflate(),b=>{b&&n(b)}):d=I(d,H.createInflateRaw(),b=>{b&&n(b)}),a=new T(d,U),t(a)}),p.once("end",()=>{a||(a=new T(d,U),t(a))});return}if(F==="br"){d=I(d,H.createBrotliDecompress(),p=>{p&&n(p)}),a=new T(d,U),t(a);return}a=new T(d,U),t(a)}),we(A,o).catch(n)})}function nr(r,e){let t=j.from(`0\r
|
|
4
|
+
\r
|
|
5
|
+
`),n=!1,o=!1,s;r.on("response",i=>{let{headers:c}=i;n=c["transfer-encoding"]==="chunked"&&!c["content-length"]}),r.on("socket",i=>{let c=()=>{if(n&&!o){let a=new Error("Premature close");a.code="ERR_STREAM_PREMATURE_CLOSE",e(a)}},u=a=>{o=j.compare(a.slice(-5),t)===0,!o&&s&&(o=j.compare(s.slice(-3),t.slice(0,3))===0&&j.compare(a.slice(-2),t.slice(3))===0),s=a};i.prependListener("close",c),i.on("data",u),r.on("close",()=>{i.removeListener("close",c),i.removeListener("data",u)})})}var or,sr=g(()=>{l();ue();Y();Te();Z();Ce();ee();$e();se();ce();G();ie();Ge();or=new Set(["data:","http:","https:"])});sr();export{X as AbortError,q as Blob,m as FetchError,Ne as File,z as FormData,w as Headers,$ as Request,T as Response,Me as blobFrom,De as blobFromSync,Oe as default,We as fileFrom,Ve as fileFromSync,Q as isRedirect};
|
|
@@ -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-2ONZZ46N.js";import{ba as g}from"./chunk-62AFAL4I.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-EXNHJQCD.js";import"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.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-TZ4FRU6B.js";import"./chunk-G4YMVWG4.js";import"./chunk-5YT4GCK7.js";import"./chunk-QKYGQLWC.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-R34HYLL4.js";import"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.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-UVWZ44ZW.js";import"./chunk-V6UPUMP3.js";import{g as i,i as c,p as n,q as u}from"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.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
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{k as d}from"./chunk-G4YMVWG4.js";import"./chunk-5YT4GCK7.js";import{e as u,f as g}from"./chunk-QKYGQLWC.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-R34HYLL4.js";import{g as l,i as m,p,q as c}from"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.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
|
+
`),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
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2025 Matilda
|
|
8
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
9
|
+
*/
|
|
@@ -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-2ONZZ46N.js";import"./chunk-62AFAL4I.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-TZ4FRU6B.js";import{a as h,b as f,g as $,h as y,i as g,j as v,k as I}from"./chunk-G4YMVWG4.js";import"./chunk-5YT4GCK7.js";import{d as k,f as j,g as P}from"./chunk-QKYGQLWC.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-R34HYLL4.js";import{g as T,i as C,p as b,q as D}from"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.js";import"./chunk-FWDMPRKU.js";import{b as w}from"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";w();async function A(u,n,e,s){let i=await I(u),d=new Map,l=(t,r)=>{let a=d.get(t);a||(a=new Set,d.set(t,a)),a.add(r)};for(let t of i){for(let r of t.blocks)l(t.id,r);for(let r of t.blockedBy)l(r,t.id)}for(let t of e)l(n,t);for(let t of s)l(t,n);let o=[],c=new Set,p=t=>{o.push(t);for(let r of d.get(t)??[]){if(r===n)return[...o,n];if(c.has(r))continue;c.add(r);let a=p(r);if(a)return a}return o.pop(),null};return c.add(n),p(n)}var B=class extends T{constructor(e,s){super(s);this.config=e}getDescription(){let e=[`Task #${this.params.taskId}`];return this.params.status&&e.push(`\u2192 ${this.params.status}`),this.params.owner&&e.push(`owner: ${this.params.owner}`),e.join(" ")}async getDefaultPermission(){return"ask"}getConfirmationDetails(e){let s=[this.getDescription()];this.params.subject!==void 0&&s.push(`subject: ${this.params.subject}`),this.params.addBlocks?.length&&s.push(`blocks: ${this.params.addBlocks.join(", ")}`),this.params.addBlockedBy?.length&&s.push(`blocked by: ${this.params.addBlockedBy.join(", ")}`),this.params.description!==void 0&&s.push("",N(this.params.description));let i={type:"info",title:"Confirm TaskUpdate",prompt:s.join(`
|
|
4
4
|
`),onConfirm:async()=>{}};return Promise.resolve(i)}async execute(){let e=j(this.config.getTeamContext()?.teamName);if(!e){let t="No active team. Create a team first.";return{llmContent:t,returnDisplay:t,error:{message:t}}}let{taskId:s}=this.params;try{f(s);for(let t of this.params.addBlocks??[])f(t);for(let t of this.params.addBlockedBy??[])f(t)}catch(t){let r=t instanceof Error?t.message:String(t);return{llmContent:r,returnDisplay:r,error:{message:r}}}let i=P()?k():void 0;if(this.params.status==="deleted"){let t;try{t=await v(e,s,i!==void 0?{callerName:i}:void 0)}catch(a){if(a instanceof y)return{llmContent:a.message,returnDisplay:a.message,error:{message:a.message}};throw a}if(!t){let a=`Task #${s} not found.`;return{llmContent:a,returnDisplay:a,error:{message:a}}}let r=`Task #${s} deleted.`;return{llmContent:r,returnDisplay:r}}if(this.params.addBlocks?.includes(s)||this.params.addBlockedBy?.includes(s)){let t=`Cannot update task #${s}: a task cannot block or be blocked by itself.`;return{llmContent:t,returnDisplay:t,error:{message:t}}}let d=new Set;for(let t of this.params.addBlocks??[])t!==s&&d.add(t);for(let t of this.params.addBlockedBy??[])t!==s&&d.add(t);if(d.size>0){let t=[];if(await Promise.all(Array.from(d).map(async a=>{await $(e,a)||t.push(a)})),t.length>0){let a=t.sort().map(U=>`#${U}`).join(", "),m=`Cannot update task #${s}: referenced task${t.length===1?"":"s"} ${a} not found.`;return{llmContent:m,returnDisplay:m,error:{message:m}}}let r=await A(e,s,this.params.addBlocks??[],this.params.addBlockedBy??[]);if(r){let a=`Cannot update task #${s}: this would create a dependency cycle (${r.map(m=>`#${m}`).join(" \u2192 ")}).`;return{llmContent:a,returnDisplay:a,error:{message:a}}}}let l=this.params.status==="in_progress"&&this.params.owner===void 0?k():void 0;if(this.params.status==="in_progress"&&!this.params.owner&&!l){let t=`Cannot move task #${s} to in_progress without an owner. Specify the "owner" parameter.`;return{llmContent:t,returnDisplay:t,error:{message:t}}}let o;try{o=await g(e,s,{status:this.params.status,owner:this.params.owner??l,subject:this.params.subject,description:this.params.description,activeForm:this.params.activeForm,metadata:this.params.metadata,addBlocks:this.params.addBlocks,addBlockedBy:this.params.addBlockedBy},i!==void 0?{callerName:i}:void 0)}catch(t){if(t instanceof y)return{llmContent:t.message,returnDisplay:t.message,error:{message:t.message}};throw t}if(!o){let t=`Task #${s} not found.`;return{llmContent:t,returnDisplay:t,error:{message:t}}}let c=[];if(this.params.addBlocks?.length&&this.params.status!=="completed")for(let t of this.params.addBlocks)t!==s&&c.push(g(e,t,{addBlockedBy:[s]},{callerName:h}));if(this.params.addBlockedBy?.length)for(let t of this.params.addBlockedBy)t!==s&&c.push(g(e,t,{addBlocks:[s]},{callerName:h}));c.length>0&&await Promise.all(c);let p=`Task #${s} updated (status: ${o.status}`+(o.owner?`, owner: ${o.owner}`:"")+").";return{llmContent:p,returnDisplay:p}}},S=class u extends C{constructor(e){super(u.Name,D.TASK_UPDATE,'Update an existing task. Can change status, owner, subject, description, and blocking relationships. Set status to "deleted" to remove a task. Setting status to "in_progress" auto-assigns you as owner if no owner is set.',"other",{type:"object",properties:{taskId:{type:"string",description:"ID of the task to update."},status:{type:"string",enum:["pending","in_progress","completed","deleted"],description:"New task status."},owner:{type:"string",description:"New owner agent name. Set to empty string to unassign."},subject:{type:"string",maxLength:200,description:"Updated task title."},description:{type:"string",maxLength:1e4,description:"Updated task description."},activeForm:{type:"string",maxLength:200,description:"Present tense label for UI."},metadata:{type:"object",description:"Metadata to merge. Set a key to null to delete it."},addBlocks:{type:"array",items:{type:"string"},description:"Task IDs that this task blocks."},addBlockedBy:{type:"array",items:{type:"string"},description:"Task IDs that block this task."}},required:["taskId"],additionalProperties:!1});this.config=e}static Name=b.TASK_UPDATE;createInvocation(e){return new B(this.config,e)}toAutoClassifierInput(e){return{taskId:e.taskId,status:e.status,owner:e.owner,subject:e.subject,description:e.description,addBlocks:e.addBlocks,addBlockedBy:e.addBlockedBy}}};export{S as TaskUpdateTool};
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{
|
|
3
|
+
import{$g as D,Qg as u}from"./chunk-SY6JRCN3.js";import"./chunk-M53RP3YP.js";import{l as A}from"./chunk-FCGYRGV4.js";import{l as C}from"./chunk-G4YMVWG4.js";import{c as w,f as T,g as k,h as b,r as o,s as v}from"./chunk-5YT4GCK7.js";import"./chunk-MTMU7JYZ.js";import"./chunk-TXMXCR7D.js";import"./chunk-YULUB745.js";import"./chunk-PYZNGIIR.js";import"./chunk-QJJTUDDA.js";import"./chunk-5NMK4Y7C.js";import"./chunk-47XR7IMP.js";import"./chunk-UVWZ44ZW.js";import{k as f,l as y}from"./chunk-QKYGQLWC.js";import"./chunk-LHDCAN7Z.js";import"./chunk-V6UPUMP3.js";import"./chunk-RNKDFE2S.js";import"./chunk-VLDZBRTL.js";import"./chunk-RYHMPK5G.js";import"./chunk-JIKQI4MZ.js";import"./chunk-RK4LPGBV.js";import"./chunk-75KP2FVD.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-IIQ5YERM.js";import"./chunk-DC7LAFZZ.js";import"./chunk-LZDHANXA.js";import"./chunk-U7V7APDV.js";import"./chunk-SR7ARGUY.js";import"./chunk-OEZS5R3S.js";import"./chunk-NOE4UNQN.js";import"./chunk-R34HYLL4.js";import"./chunk-EXNHJQCD.js";import{g as c,i as g,p as h,q as p}from"./chunk-2ONZZ46N.js";import{b as d}from"./chunk-62AFAL4I.js";import"./chunk-36K4HBVM.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
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{c as T,f}from"./chunk-FCGYRGV4.js";import{t as o}from"./chunk-5YT4GCK7.js";import{g}from"./chunk-QKYGQLWC.js";import"./chunk-7ZODGQO6.js";import"./chunk-TISQNFB5.js";import"./chunk-R34HYLL4.js";import{g as l,i as c,p,q as u}from"./chunk-2ONZZ46N.js";import{ba as i}from"./chunk-62AFAL4I.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
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2025 Matilda
|
|
7
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import{a,b,c}from"./chunk-VLDZBRTL.js";import"./chunk-RYHMPK5G.js";import"./chunk-R34HYLL4.js";import"./chunk-2ONZZ46N.js";import"./chunk-62AFAL4I.js";import"./chunk-FWDMPRKU.js";import"./chunk-GZPNIYVZ.js";import"./chunk-OWGSC52X.js";export{c as TodoWriteTool,b as listTodoSessions,a as readTodosForSession};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{
|
|
3
|
+
import{Hc as N}from"./chunk-OEZS5R3S.js";import"./chunk-NOE4UNQN.js";import"./chunk-R34HYLL4.js";import"./chunk-EXNHJQCD.js";import{g as v,i as R,p as E,q as L}from"./chunk-2ONZZ46N.js";import{ba as S}from"./chunk-62AFAL4I.js";import"./chunk-36K4HBVM.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
|
|