@claudiolabs/claudin 1.1.31 → 1.1.32
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/dist/chunks/App-1.1.32-x0g3m6v6.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.32-8x1yxm2f.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.32-scm9btv0.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.32-wtcy84rn.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.32-y88y88zt.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.32-kzv0tbna.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.32-4cm0cwer.mjs +6 -0
- package/dist/chunks/Doctor-1.1.32-289yb4jj.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.32-5gjqvpvs.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.32-a8pwddd1.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.32-6qdrtdpr.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.32-hwzxtdsd.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.32-yytrpays.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.32-c5yyxz32.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.32-7q71086g.mjs +1 -0
- package/dist/chunks/REPL-1.1.32-yzppvfrk.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.32-rv15raev.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.32-n3bsegx5.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.32-68xgndte.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.32-zb4vkx03.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.32-q3c5nqks.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.32-3whrqawk.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.32-33mkg42t.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.32-9brew90d.mjs +1 -0
- package/dist/chunks/add-dir-1.1.32-8hkh1hcx.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.32-ph49ernt.mjs +1 -0
- package/dist/chunks/agents-1.1.32-6ajrxrdr.mjs +110 -0
- package/dist/chunks/agents-1.1.32-6gc09pk2.mjs +3 -0
- package/dist/chunks/api-1.1.32-8qx9q5eh.mjs +1 -0
- package/dist/chunks/asciicast-1.1.32-4knajfec.mjs +1 -0
- package/dist/chunks/auth-1.1.32-9xrd6x89.mjs +1 -0
- package/dist/chunks/auth-1.1.32-s83fshpf.mjs +1 -0
- package/dist/chunks/autoMode-1.1.32-e680w683.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.32-7m1d4dy7.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.32-hhg3dezv.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.32-8ddhae4q.mjs +1 -0
- package/dist/chunks/branch-1.1.32-xaq3pb3p.mjs +4 -0
- package/dist/chunks/bridge-1.1.32-ec6fc8kh.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.32-bse7ynz2.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.32-84ntyqxd.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.32-d20ebbde.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.32-40jwkts4.mjs +1 -0
- package/dist/chunks/btw-1.1.32-kg0w3tw2.mjs +1 -0
- package/dist/chunks/buddy-1.1.32-c53wp8x4.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.32-a9jc0rn9.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.32-bh9jpngp.mjs +4 -0
- package/dist/chunks/caches-1.1.32-va3h1efn.mjs +1 -0
- package/dist/chunks/cd-1.1.32-yar6t6sg.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.32-xjcschxc.mjs +1 -0
- package/dist/chunks/claudemd-1.1.32-kb9tec8y.mjs +1 -0
- package/dist/chunks/clear-1.1.32-ywfd1kha.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.32-x7tbxm3w.mjs +1 -0
- package/dist/chunks/cli-1.1.32-06xv4rmw.mjs +2 -0
- package/dist/chunks/cli-1.1.32-0pmhmsew.mjs +42 -0
- package/dist/chunks/cli-1.1.32-1913x5jp.mjs +15 -0
- package/dist/chunks/cli-1.1.32-1c9z2mtv.mjs +2 -0
- package/dist/chunks/cli-1.1.32-1cp8vbtp.mjs +9 -0
- package/dist/chunks/cli-1.1.32-1rackf2c.mjs +4 -0
- package/dist/chunks/cli-1.1.32-1rprka6j.mjs +2 -0
- package/dist/chunks/cli-1.1.32-1t75hwdn.mjs +2 -0
- package/dist/chunks/cli-1.1.32-1yrmnphh.mjs +2 -0
- package/dist/chunks/cli-1.1.32-260jjrwt.mjs +6 -0
- package/dist/chunks/cli-1.1.32-26474ywa.mjs +2 -0
- package/dist/chunks/cli-1.1.32-28vx0a5m.mjs +2 -0
- package/dist/chunks/cli-1.1.32-28x0bz68.mjs +2 -0
- package/dist/chunks/cli-1.1.32-2k074m5f.mjs +2 -0
- package/dist/chunks/cli-1.1.32-2kd689v0.mjs +2 -0
- package/dist/chunks/cli-1.1.32-2m68a9w2.mjs +2 -0
- package/dist/chunks/cli-1.1.32-2tyhwqjh.mjs +10 -0
- package/dist/chunks/cli-1.1.32-2wcdy0zp.mjs +17 -0
- package/dist/chunks/cli-1.1.32-2x7x44mg.mjs +2 -0
- package/dist/chunks/cli-1.1.32-336t9pmv.mjs +2 -0
- package/dist/chunks/cli-1.1.32-33jnyekk.mjs +2 -0
- package/dist/chunks/cli-1.1.32-36t0985q.mjs +21 -0
- package/dist/chunks/cli-1.1.32-3gbh5q5w.mjs +2 -0
- package/dist/chunks/cli-1.1.32-3z4a0eqz.mjs +3 -0
- package/dist/chunks/cli-1.1.32-41xx49ta.mjs +2 -0
- package/dist/chunks/cli-1.1.32-46wadmxk.mjs +2 -0
- package/dist/chunks/cli-1.1.32-49sdmvtj.mjs +25 -0
- package/dist/chunks/cli-1.1.32-4ekmdczr.mjs +25 -0
- package/dist/chunks/cli-1.1.32-4ft4m446.mjs +2 -0
- package/dist/chunks/cli-1.1.32-4rsr6phf.mjs +2 -0
- package/dist/chunks/cli-1.1.32-4vdyqkkd.mjs +2 -0
- package/dist/chunks/cli-1.1.32-4yat84kg.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5a158c45.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5c5dcwk6.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5cngr1kn.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5dq711bj.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5j5n166h.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5qjjtpkh.mjs +133 -0
- package/dist/chunks/cli-1.1.32-5qwps3ts.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5v0afeqw.mjs +2 -0
- package/dist/chunks/cli-1.1.32-5xmh2b7j.mjs +2 -0
- package/dist/chunks/cli-1.1.32-60pc6r2s.mjs +2 -0
- package/dist/chunks/cli-1.1.32-6317frxz.mjs +2 -0
- package/dist/chunks/cli-1.1.32-65c5zdmx.mjs +2 -0
- package/dist/chunks/cli-1.1.32-6f9r9qcb.mjs +2 -0
- package/dist/chunks/cli-1.1.32-6jbgafh2.mjs +2 -0
- package/dist/chunks/cli-1.1.32-6jhkp60n.mjs +2 -0
- package/dist/chunks/cli-1.1.32-6jxftegx.mjs +6 -0
- package/dist/chunks/cli-1.1.32-7566j53x.mjs +2 -0
- package/dist/chunks/cli-1.1.32-76wfpwbd.mjs +2 -0
- package/dist/chunks/cli-1.1.32-7zp3b6gq.mjs +2 -0
- package/dist/chunks/cli-1.1.32-8b5ej63w.mjs +2 -0
- package/dist/chunks/cli-1.1.32-8hsb6vgz.mjs +2 -0
- package/dist/chunks/cli-1.1.32-8jkgzjh4.mjs +5 -0
- package/dist/chunks/cli-1.1.32-8t8t42xx.mjs +2 -0
- package/dist/chunks/cli-1.1.32-8yc37yqa.mjs +34 -0
- package/dist/chunks/cli-1.1.32-97e0qadj.mjs +2 -0
- package/dist/chunks/cli-1.1.32-9c0an85r.mjs +2 -0
- package/dist/chunks/cli-1.1.32-9fe7efg9.mjs +2 -0
- package/dist/chunks/cli-1.1.32-9jxkev29.mjs +2 -0
- package/dist/chunks/cli-1.1.32-9wsnkggz.mjs +11 -0
- package/dist/chunks/cli-1.1.32-9yka8m9x.mjs +5490 -0
- package/dist/chunks/cli-1.1.32-a3dfp7ps.mjs +12 -0
- package/dist/chunks/cli-1.1.32-acgh1gj8.mjs +2 -0
- package/dist/chunks/cli-1.1.32-ajhvj43e.mjs +2 -0
- package/dist/chunks/cli-1.1.32-aqfcrtfz.mjs +5 -0
- package/dist/chunks/cli-1.1.32-aysp26sz.mjs +45 -0
- package/dist/chunks/cli-1.1.32-b1bbb8eb.mjs +7 -0
- package/dist/chunks/cli-1.1.32-b3hsysf6.mjs +2 -0
- package/dist/chunks/cli-1.1.32-b4dgaz0a.mjs +2 -0
- package/dist/chunks/cli-1.1.32-bce46tmm.mjs +2 -0
- package/dist/chunks/cli-1.1.32-bnam9df8.mjs +2 -0
- package/dist/chunks/cli-1.1.32-bt4yfsm7.mjs +2 -0
- package/dist/chunks/cli-1.1.32-c4v8081j.mjs +2 -0
- package/dist/chunks/cli-1.1.32-c6n1kre3.mjs +2 -0
- package/dist/chunks/cli-1.1.32-c7ypbb63.mjs +2 -0
- package/dist/chunks/cli-1.1.32-cpzgn83z.mjs +2 -0
- package/dist/chunks/cli-1.1.32-cx7ygksc.mjs +2 -0
- package/dist/chunks/cli-1.1.32-czrfbd3q.mjs +2 -0
- package/dist/chunks/cli-1.1.32-d47cvy98.mjs +2 -0
- package/dist/chunks/cli-1.1.32-dkyyv5mx.mjs +2 -0
- package/dist/chunks/cli-1.1.32-dp2kpscr.mjs +2 -0
- package/dist/chunks/cli-1.1.32-dtd3vpkv.mjs +2 -0
- package/dist/chunks/cli-1.1.32-e1btgk5y.mjs +4 -0
- package/dist/chunks/cli-1.1.32-e96q5k17.mjs +2 -0
- package/dist/chunks/cli-1.1.32-ebg7m8yz.mjs +2 -0
- package/dist/chunks/cli-1.1.32-ehg64cg0.mjs +2 -0
- package/dist/chunks/cli-1.1.32-erw03mnm.mjs +2 -0
- package/dist/chunks/cli-1.1.32-f3895pf8.mjs +2 -0
- package/dist/chunks/cli-1.1.32-fhzs65yw.mjs +2 -0
- package/dist/chunks/cli-1.1.32-fjz81t0j.mjs +2 -0
- package/dist/chunks/cli-1.1.32-fr30sgy9.mjs +2 -0
- package/dist/chunks/cli-1.1.32-fzepmkcj.mjs +2 -0
- package/dist/chunks/cli-1.1.32-g5dzf2w1.mjs +24 -0
- package/dist/chunks/cli-1.1.32-gg7yn5bt.mjs +8 -0
- package/dist/chunks/cli-1.1.32-gpq33yz0.mjs +2 -0
- package/dist/chunks/cli-1.1.32-gqbeasga.mjs +2 -0
- package/dist/chunks/cli-1.1.32-gvv8h6dg.mjs +18 -0
- package/dist/chunks/cli-1.1.32-gwf0a8ej.mjs +2 -0
- package/dist/chunks/cli-1.1.32-h23ch6fy.mjs +2 -0
- package/dist/chunks/cli-1.1.32-h4tpddgz.mjs +4 -0
- package/dist/chunks/cli-1.1.32-h7cb9f8y.mjs +2 -0
- package/dist/chunks/cli-1.1.32-hbwke9cs.mjs +2 -0
- package/dist/chunks/cli-1.1.32-hgjgfp8p.mjs +60 -0
- package/dist/chunks/cli-1.1.32-hhd65der.mjs +2 -0
- package/dist/chunks/cli-1.1.32-hzn2mba8.mjs +3 -0
- package/dist/chunks/cli-1.1.32-j31v1t7y.mjs +15 -0
- package/dist/chunks/cli-1.1.32-jatnsd1n.mjs +2 -0
- package/dist/chunks/cli-1.1.32-jjanec91.mjs +2 -0
- package/dist/chunks/cli-1.1.32-jnrsn4v0.mjs +2 -0
- package/dist/chunks/cli-1.1.32-jqhfcb0t.mjs +2 -0
- package/dist/chunks/cli-1.1.32-jt6w5mqv.mjs +2 -0
- package/dist/chunks/cli-1.1.32-k5d30qej.mjs +3 -0
- package/dist/chunks/cli-1.1.32-k9zkw4st.mjs +2 -0
- package/dist/chunks/cli-1.1.32-kn0zs89y.mjs +63 -0
- package/dist/chunks/cli-1.1.32-kqkbjp3x.mjs +4 -0
- package/dist/chunks/cli-1.1.32-m7dxkbpn.mjs +2 -0
- package/dist/chunks/cli-1.1.32-m9c0pceb.mjs +3 -0
- package/dist/chunks/cli-1.1.32-m9p4pd60.mjs +2 -0
- package/dist/chunks/cli-1.1.32-merqy9t2.mjs +2 -0
- package/dist/chunks/cli-1.1.32-mrftpsrs.mjs +15 -0
- package/dist/chunks/cli-1.1.32-n3smn7a4.mjs +2 -0
- package/dist/chunks/cli-1.1.32-n6rpvpf2.mjs +2 -0
- package/dist/chunks/cli-1.1.32-n7cyeje8.mjs +2 -0
- package/dist/chunks/cli-1.1.32-n9vdkdfk.mjs +2 -0
- package/dist/chunks/cli-1.1.32-nmcy47z7.mjs +4 -0
- package/dist/chunks/cli-1.1.32-nt9eqa35.mjs +2 -0
- package/dist/chunks/cli-1.1.32-p70gsyp3.mjs +2 -0
- package/dist/chunks/cli-1.1.32-pe6kmf9g.mjs +3 -0
- package/dist/chunks/cli-1.1.32-pfhbrjhs.mjs +20 -0
- package/dist/chunks/cli-1.1.32-pfwbgg79.mjs +2 -0
- package/dist/chunks/cli-1.1.32-pm7ctgdf.mjs +7 -0
- package/dist/chunks/cli-1.1.32-pve0ffcp.mjs +203 -0
- package/dist/chunks/cli-1.1.32-pwvfjtva.mjs +2 -0
- package/dist/chunks/cli-1.1.32-px6268dx.mjs +2 -0
- package/dist/chunks/cli-1.1.32-px93hhj4.mjs +3 -0
- package/dist/chunks/cli-1.1.32-qmgvm9rq.mjs +2 -0
- package/dist/chunks/cli-1.1.32-qvx7w9wm.mjs +2 -0
- package/dist/chunks/cli-1.1.32-qzjfn21e.mjs +3 -0
- package/dist/chunks/cli-1.1.32-r5ww85n4.mjs +6 -0
- package/dist/chunks/cli-1.1.32-r6g8b118.mjs +5 -0
- package/dist/chunks/cli-1.1.32-r7020tw8.mjs +4 -0
- package/dist/chunks/cli-1.1.32-rbvnjjkt.mjs +2 -0
- package/dist/chunks/cli-1.1.32-rmz4ezae.mjs +3 -0
- package/dist/chunks/cli-1.1.32-rswqkymv.mjs +133 -0
- package/dist/chunks/cli-1.1.32-s2kkv51h.mjs +2 -0
- package/dist/chunks/cli-1.1.32-s4betse1.mjs +2 -0
- package/dist/chunks/cli-1.1.32-sqsxnqqb.mjs +2 -0
- package/dist/chunks/cli-1.1.32-t1n0b84g.mjs +2 -0
- package/dist/chunks/cli-1.1.32-tgr1e1hd.mjs +2 -0
- package/dist/chunks/cli-1.1.32-th2r4378.mjs +9 -0
- package/dist/chunks/cli-1.1.32-thsw9p6n.mjs +2 -0
- package/dist/chunks/cli-1.1.32-tp4tyjy3.mjs +2 -0
- package/dist/chunks/cli-1.1.32-tq108hv4.mjs +2 -0
- package/dist/chunks/cli-1.1.32-tzn98f6r.mjs +24 -0
- package/dist/chunks/cli-1.1.32-v3cks7qj.mjs +6 -0
- package/dist/chunks/cli-1.1.32-v4chz2b0.mjs +2 -0
- package/dist/chunks/cli-1.1.32-vdezbpdh.mjs +2 -0
- package/dist/chunks/cli-1.1.32-vf3r8a91.mjs +16 -0
- package/dist/chunks/cli-1.1.32-vmr6f229.mjs +2 -0
- package/dist/chunks/cli-1.1.32-vnhzy4jx.mjs +2 -0
- package/dist/chunks/cli-1.1.32-vtzwmjs8.mjs +3 -0
- package/dist/chunks/cli-1.1.32-vy2ngm3p.mjs +2 -0
- package/dist/chunks/cli-1.1.32-w2b0neg3.mjs +4 -0
- package/dist/chunks/cli-1.1.32-wnhqapmf.mjs +24 -0
- package/dist/chunks/cli-1.1.32-wsqyehdw.mjs +2 -0
- package/dist/chunks/cli-1.1.32-wyv15h7a.mjs +6 -0
- package/dist/chunks/cli-1.1.32-x0crp5g9.mjs +2 -0
- package/dist/chunks/cli-1.1.32-x23z7923.mjs +2 -0
- package/dist/chunks/cli-1.1.32-x8j1spnv.mjs +2 -0
- package/dist/chunks/cli-1.1.32-xfhe1m2y.mjs +2 -0
- package/dist/chunks/cli-1.1.32-xj2e8mzf.mjs +2 -0
- package/dist/chunks/cli-1.1.32-xy1pvy12.mjs +2 -0
- package/dist/chunks/cli-1.1.32-y4agg2c2.mjs +17 -0
- package/dist/chunks/cli-1.1.32-ycyg88ky.mjs +2 -0
- package/dist/chunks/cli-1.1.32-ydbtpc9v.mjs +12 -0
- package/dist/chunks/cli-1.1.32-yfs9ppge.mjs +2 -0
- package/dist/chunks/cli-1.1.32-yhftam6y.mjs +50 -0
- package/dist/chunks/cli-1.1.32-yhzhm57s.mjs +2 -0
- package/dist/chunks/cli-1.1.32-yq68bsa5.mjs +2 -0
- package/dist/chunks/cli-1.1.32-yv0wyp2m.mjs +2 -0
- package/dist/chunks/cli-1.1.32-yv9hzzq7.mjs +2 -0
- package/dist/chunks/cli-1.1.32-yw64r19c.mjs +2 -0
- package/dist/chunks/cli-1.1.32-z7x4jfeb.mjs +4 -0
- package/dist/chunks/cli-1.1.32-zegecv6e.mjs +2 -0
- package/dist/chunks/cli-1.1.32-zeyasrw5.mjs +2 -0
- package/dist/chunks/cli-1.1.32-zfyd4kyq.mjs +2 -0
- package/dist/chunks/cli-1.1.32-zfzqc12y.mjs +26 -0
- package/dist/chunks/cli-1.1.32-zkq2v1fz.mjs +2 -0
- package/dist/chunks/cli-1.1.32-zqtqvc9y.mjs +3 -0
- package/dist/chunks/cli-1.1.32-zr4x17ne.mjs +3 -0
- package/dist/chunks/cli-1.1.32-zraeg1n2.mjs +2 -0
- package/dist/chunks/cli-1.1.32-zrxqe296.mjs +7 -0
- package/dist/chunks/cli-1.1.32-zv1p3q66.mjs +2 -0
- package/dist/chunks/cli-1.1.32-zwetcrr2.mjs +39 -0
- package/dist/chunks/client-1.1.32-y4ehgz03.mjs +1 -0
- package/dist/chunks/color-1.1.32-an3gq6pv.mjs +1 -0
- package/dist/chunks/compact-1.1.32-kp67c5pn.mjs +2 -0
- package/dist/chunks/config-1.1.32-9kqd30ca.mjs +1 -0
- package/dist/chunks/config-1.1.32-chryg3ab.mjs +1 -0
- package/dist/chunks/constants-1.1.32-azab2vra.mjs +1 -0
- package/dist/chunks/context-1.1.32-t6yf3tch.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.32-tbes3yx4.mjs +1 -0
- package/dist/chunks/conversation-1.1.32-edtsb1fp.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.32-cxjr3qqd.mjs +1 -0
- package/dist/chunks/copy-1.1.32-2yk1zben.mjs +9 -0
- package/dist/chunks/cost-1.1.32-ykkmca1s.mjs +1 -0
- package/dist/chunks/createSession-1.1.32-pky6wawr.mjs +1 -0
- package/dist/chunks/debug-1.1.32-f8fanjpw.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.32-nf0mf9nq.mjs +1480 -0
- package/dist/chunks/desktop-1.1.32-h4q834kk.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.32-y3wjkn3b.mjs +1 -0
- package/dist/chunks/detection-1.1.32-13rzk2y0.mjs +1 -0
- package/dist/chunks/diff-1.1.32-tsgcxd5v.mjs +1 -0
- package/dist/chunks/doctor-1.1.32-dg4q70ty.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.32-xpjhp8fe.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.32-rzjwc8xb.mjs +1 -0
- package/dist/chunks/effort-1.1.32-76tc9ft4.mjs +13 -0
- package/dist/chunks/engine-1.1.32-qp8px0cr.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.32-mamfyksw.mjs +1 -0
- package/dist/chunks/envUtils-1.1.32-x5ddw5jb.mjs +1 -0
- package/dist/chunks/errors-1.1.32-pw0ngznd.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.32-j9bvstfq.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.32-ah9wga16.mjs +1 -0
- package/dist/chunks/exit-1.1.32-4j8q9ztw.mjs +1 -0
- package/dist/chunks/explorer-1.1.32-dabb8sse.mjs +1 -0
- package/dist/chunks/export-1.1.32-zt3yhqen.mjs +2 -0
- package/dist/chunks/fast-1.1.32-cms216af.mjs +1 -0
- package/dist/chunks/feedback-1.1.32-r94c0y57.mjs +16 -0
- package/dist/chunks/git-1.1.32-9xc0s3ry.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.32-r5xq7s7y.mjs +1 -0
- package/dist/chunks/goal-1.1.32-bkjq4858.mjs +4 -0
- package/dist/chunks/headless-1.1.32-ae4d3qgy.mjs +2 -0
- package/dist/chunks/heapdump-1.1.32-jdrsrqfx.mjs +6 -0
- package/dist/chunks/help-1.1.32-5z54ce4t.mjs +1 -0
- package/dist/chunks/hooks-1.1.32-2mse496x.mjs +1 -0
- package/dist/chunks/hooks-1.1.32-jv66gnpt.mjs +79 -0
- package/dist/chunks/ide-1.1.32-tx45prsy.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.32-bwdr4dza.mjs +1 -0
- package/dist/chunks/import-1.1.32-7w75n01b.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.32-1vfz9rkn.mjs +1 -0
- package/dist/chunks/index-1.1.32-3wzxvtbf.mjs +1 -0
- package/dist/chunks/index-1.1.32-49p9ghn6.mjs +1 -0
- package/dist/chunks/index-1.1.32-7ttnyjb3.mjs +2 -0
- package/dist/chunks/index-1.1.32-aqkr7bx2.mjs +9 -0
- package/dist/chunks/index-1.1.32-az0sxjjn.mjs +5 -0
- package/dist/chunks/index-1.1.32-b4rwnxe8.mjs +1 -0
- package/dist/chunks/index-1.1.32-bpzdp87c.mjs +23 -0
- package/dist/chunks/index-1.1.32-c3gnrfg0.mjs +1 -0
- package/dist/chunks/index-1.1.32-cjq261cn.mjs +9 -0
- package/dist/chunks/index-1.1.32-crx2adff.mjs +1 -0
- package/dist/chunks/index-1.1.32-dn9thxs1.mjs +30 -0
- package/dist/chunks/index-1.1.32-fwm6yqt6.mjs +1 -0
- package/dist/chunks/index-1.1.32-g58gm84f.mjs +1 -0
- package/dist/chunks/index-1.1.32-g9e9ne9q.mjs +1 -0
- package/dist/chunks/index-1.1.32-m694vs1n.mjs +1 -0
- package/dist/chunks/index-1.1.32-rbv0wt7t.mjs +1 -0
- package/dist/chunks/index-1.1.32-revsqy4q.mjs +1 -0
- package/dist/chunks/index-1.1.32-t011v5cn.mjs +1 -0
- package/dist/chunks/index-1.1.32-tv85kbw0.mjs +1 -0
- package/dist/chunks/index-1.1.32-v09n34s4.mjs +1 -0
- package/dist/chunks/index-1.1.32-vaknvmtk.mjs +2 -0
- package/dist/chunks/index-1.1.32-vxn4pvkx.mjs +1 -0
- package/dist/chunks/index-1.1.32-zep1vry1.mjs +1 -0
- package/dist/chunks/init-1.1.32-xac664gq.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.32-d1g5bqts.mjs +1 -0
- package/dist/chunks/ink-1.1.32-brepbf1s.mjs +1 -0
- package/dist/chunks/insights-1.1.32-ccteb3zt.mjs +870 -0
- package/dist/chunks/install-1.1.32-xhcj1s97.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.32-2rb2b8y2.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.32-7e22rmh8.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.32-tw81dggb.mjs +1 -0
- package/dist/chunks/keybindings-1.1.32-bsjftmx2.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.32-ecgj54va.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.32-9c4e13wb.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.32-qb96n0p6.mjs +1 -0
- package/dist/chunks/log-1.1.32-0wdbtf8k.mjs +1 -0
- package/dist/chunks/main-1.1.32-9s7gbk2b.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.32-8aapabn1.mjs +1 -0
- package/dist/chunks/mcp-1.1.32-2ct5ytwv.mjs +1 -0
- package/dist/chunks/mcp-1.1.32-42npdfwc.mjs +17 -0
- package/dist/chunks/mcp-1.1.32-8c3f7gfy.mjs +4 -0
- package/dist/chunks/mcpb-1.1.32-482tejv1.mjs +1 -0
- package/dist/chunks/memory-1.1.32-jrnzabfj.mjs +77 -0
- package/dist/chunks/model-1.1.32-wjtssjq7.mjs +1 -0
- package/dist/chunks/model-1.1.32-z7v5ah7s.mjs +2 -0
- package/dist/chunks/node-1.1.32-bgrnv9d0.mjs +15 -0
- package/dist/chunks/node-1.1.32-pek9xbcv.mjs +1 -0
- package/dist/chunks/oauth-1.1.32-b01rfrnw.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.32-68nafznt.mjs +14 -0
- package/dist/chunks/output-style-1.1.32-se3pq9dn.mjs +1 -0
- package/dist/chunks/package-D2QZMRW7-1.1.32-jykb9rfa.mjs +1 -0
- package/dist/chunks/permissions-1.1.32-r62vjas0.mjs +3 -0
- package/dist/chunks/permissions-1.1.32-v83ds1fq.mjs +1 -0
- package/dist/chunks/plan-1.1.32-remxpgv3.mjs +1 -0
- package/dist/chunks/plist-1.1.32-y2bh274p.mjs +1 -0
- package/dist/chunks/plugin-1.1.32-h9pgs6zn.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.32-vyn1sara.mjs +1 -0
- package/dist/chunks/plugins-1.1.32-wxz7p0xc.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.32-259wvsmh.mjs +2 -0
- package/dist/chunks/print-1.1.32-k37wv4h9.mjs +57 -0
- package/dist/chunks/process-1.1.32-tya6ctch.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.32-hfk6nzmr.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.32-ga3g4qev.mjs +9 -0
- package/dist/chunks/prompt-1.1.32-crsv325t.mjs +1 -0
- package/dist/chunks/prompt-1.1.32-jyfkevpw.mjs +1 -0
- package/dist/chunks/prompts-1.1.32-mythhsq2.mjs +1 -0
- package/dist/chunks/provider-1.1.32-c16c25q6.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.32-gv05d26p.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.32-srfcyanm.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.32-af1r42j6.mjs +26 -0
- package/dist/chunks/registry-1.1.32-nvr3xen5.mjs +1 -0
- package/dist/chunks/release-notes-1.1.32-gtntbc84.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.32-qmx4b0zf.mjs +2 -0
- package/dist/chunks/remote-env-1.1.32-srz0skx2.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.32-17erfh69.mjs +1 -0
- package/dist/chunks/rename-1.1.32-yww8w15q.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.32-carhn5x3.mjs +1 -0
- package/dist/chunks/resume-1.1.32-y7g779fj.mjs +2 -0
- package/dist/chunks/rewind-1.1.32-xktcmbbk.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.32-q7914mqe.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.32-yr1peyj2.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.32-kct2shfd.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.32-wa7kgd6b.mjs +1 -0
- package/dist/chunks/session-1.1.32-07pqmcyz.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.32-1ekf9af3.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.32-vcm53ywe.mjs +1 -0
- package/dist/chunks/settings-1.1.32-kwtz4r22.mjs +1 -0
- package/dist/chunks/setup-1.1.32-695k1eyn.mjs +12 -0
- package/dist/chunks/sinks-1.1.32-3eh8hb97.mjs +1 -0
- package/dist/chunks/skills-1.1.32-ymdek4dt.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.32-sxxmxavv.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.32-25e14c0p.mjs +1 -0
- package/dist/chunks/state-1.1.32-q2y7dv84.mjs +1 -0
- package/dist/chunks/stats-1.1.32-p79st2jy.mjs +1 -0
- package/dist/chunks/status-1.1.32-wsaad3gy.mjs +1 -0
- package/dist/chunks/stickers-1.1.32-erbhpqdc.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.32-29m5mf2s.mjs +1 -0
- package/dist/chunks/tasks-1.1.32-fv2ze8ev.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.32-b2x5nsht.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.32-w65af42z.mjs +1 -0
- package/dist/chunks/teleport-1.1.32-6d4336gw.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.32-t82mfgh5.mjs +1 -0
- package/dist/chunks/theme-1.1.32-7qn5nf2j.mjs +1 -0
- package/dist/chunks/thinkback-1.1.32-awsxj77a.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.32-jz9fjb47.mjs +1 -0
- package/dist/chunks/toolPool-1.1.32-fjydq0km.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.32-y8vfsj9n.mjs +1 -0
- package/dist/chunks/tools-1.1.32-pd8bskwj.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.32-891wyppj.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.32-nsrwegv6.mjs +69 -0
- package/dist/chunks/types-1.1.32-v6b8jgxx.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.32-wkj4mpew.mjs +4 -0
- package/dist/chunks/update-1.1.32-zz1tgpba.mjs +72 -0
- package/dist/chunks/upload-1.1.32-43gcqyx2.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.32-nqwkbma5.mjs +14 -0
- package/dist/chunks/usage-1.1.32-80bkg4qd.mjs +1 -0
- package/dist/chunks/util-1.1.32-c7zmr7sf.mjs +1 -0
- package/dist/chunks/utils-1.1.32-x2mf8n7e.mjs +1 -0
- package/dist/chunks/vim-1.1.32-mz41whem.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.32-yftqp4h6.mjs +13 -0
- package/dist/chunks/watcher-1.1.32-jy13qnvt.mjs +1 -0
- package/dist/chunks/wiki-1.1.32-z6ngme51.mjs +132 -0
- package/dist/chunks/workflows-1.1.32-mpyvb578.mjs +1 -0
- package/dist/chunks/worktree-1.1.32-qxw9fxfk.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.32-w3d8pgmt.mjs +1 -0
- package/dist/chunks/wrapper-1.1.32-5xty3sv5.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.31-6e06310w.mjs +0 -1
- package/dist/chunks/App-1.1.31-bp57fthj.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.31-ptx7r5x2.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.31-0d22j8k7.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.31-v2cfafqt.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.31-a8e8ar2n.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.31-zq76tmk2.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.31-r1mknqwv.mjs +0 -6
- package/dist/chunks/Doctor-1.1.31-t4n9k4nc.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.31-41a3c01z.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.31-y9f8hq45.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.31-xpdggxkf.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.31-0bg1r1g6.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.31-w8fpbc16.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.31-23zjjspn.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.31-504qgqkc.mjs +0 -1
- package/dist/chunks/REPL-1.1.31-nyzbwycm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.31-dqkxr7bz.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.31-htqfbpbp.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.31-27h2np2z.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.31-41nwynfk.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.31-ea5827ce.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.31-jvrhermf.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.31-c0sya3fj.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.31-28w5033t.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.31-dbrkwgfw.mjs +0 -1
- package/dist/chunks/add-dir-1.1.31-r6x72g59.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.31-kb6srdzm.mjs +0 -1
- package/dist/chunks/agents-1.1.31-1jetdejb.mjs +0 -110
- package/dist/chunks/agents-1.1.31-mfr4h93c.mjs +0 -3
- package/dist/chunks/api-1.1.31-hp3y91t9.mjs +0 -1
- package/dist/chunks/asciicast-1.1.31-t0xrwnqn.mjs +0 -1
- package/dist/chunks/auth-1.1.31-76rswxwe.mjs +0 -1
- package/dist/chunks/auth-1.1.31-yhv86kw0.mjs +0 -1
- package/dist/chunks/autoMode-1.1.31-qma18egk.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.31-egrmqsva.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.31-417m125q.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.31-e5emh88x.mjs +0 -1
- package/dist/chunks/branch-1.1.31-bxrg1svq.mjs +0 -4
- package/dist/chunks/bridge-1.1.31-1rsj352r.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.31-r9vnvw71.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.31-d9mxn4g0.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.31-7sf093b0.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.31-n1t53nem.mjs +0 -1
- package/dist/chunks/btw-1.1.31-skw1dhb5.mjs +0 -1
- package/dist/chunks/buddy-1.1.31-wtmggn5p.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.31-pgss169p.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.31-af3nkg2b.mjs +0 -4
- package/dist/chunks/caches-1.1.31-yvqtsfx3.mjs +0 -1
- package/dist/chunks/cd-1.1.31-9t47yj0z.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.31-b7a99nfq.mjs +0 -1
- package/dist/chunks/claudemd-1.1.31-h72v8r12.mjs +0 -1
- package/dist/chunks/clear-1.1.31-ndp0q9t9.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.31-d6d2q7kn.mjs +0 -1
- package/dist/chunks/cli-1.1.31-03xjvk1e.mjs +0 -3
- package/dist/chunks/cli-1.1.31-0fnqd3bq.mjs +0 -25
- package/dist/chunks/cli-1.1.31-0mmyq6jx.mjs +0 -2
- package/dist/chunks/cli-1.1.31-0yagz4xw.mjs +0 -2
- package/dist/chunks/cli-1.1.31-1192t9cm.mjs +0 -2
- package/dist/chunks/cli-1.1.31-13cx7z8n.mjs +0 -60
- package/dist/chunks/cli-1.1.31-1dv9ay7v.mjs +0 -2
- package/dist/chunks/cli-1.1.31-1q4btmra.mjs +0 -2
- package/dist/chunks/cli-1.1.31-1qw0s3a8.mjs +0 -2
- package/dist/chunks/cli-1.1.31-1wxttnqr.mjs +0 -2
- package/dist/chunks/cli-1.1.31-2csxt0x3.mjs +0 -2
- package/dist/chunks/cli-1.1.31-2ffqcy85.mjs +0 -2
- package/dist/chunks/cli-1.1.31-2j93x895.mjs +0 -24
- package/dist/chunks/cli-1.1.31-2mfapzkq.mjs +0 -2
- package/dist/chunks/cli-1.1.31-2pdbmb7w.mjs +0 -3
- package/dist/chunks/cli-1.1.31-2zvm1tgs.mjs +0 -2
- package/dist/chunks/cli-1.1.31-312b3zf6.mjs +0 -2
- package/dist/chunks/cli-1.1.31-32mahfs2.mjs +0 -2
- package/dist/chunks/cli-1.1.31-3dy87m85.mjs +0 -2
- package/dist/chunks/cli-1.1.31-3ehzwm1n.mjs +0 -2
- package/dist/chunks/cli-1.1.31-3jzsv5dy.mjs +0 -2
- package/dist/chunks/cli-1.1.31-3s51hvv0.mjs +0 -2
- package/dist/chunks/cli-1.1.31-3zy5yd1t.mjs +0 -133
- package/dist/chunks/cli-1.1.31-44jshpbd.mjs +0 -2
- package/dist/chunks/cli-1.1.31-4awnya8e.mjs +0 -2
- package/dist/chunks/cli-1.1.31-4cp1xkaj.mjs +0 -2
- package/dist/chunks/cli-1.1.31-4ja5kbt5.mjs +0 -4
- package/dist/chunks/cli-1.1.31-4tneme0y.mjs +0 -2
- package/dist/chunks/cli-1.1.31-528vtf9a.mjs +0 -2
- package/dist/chunks/cli-1.1.31-52wt9w8w.mjs +0 -15
- package/dist/chunks/cli-1.1.31-556xnzb4.mjs +0 -2
- package/dist/chunks/cli-1.1.31-562nqgh7.mjs +0 -2
- package/dist/chunks/cli-1.1.31-58anwssk.mjs +0 -2
- package/dist/chunks/cli-1.1.31-5ab9cpbt.mjs +0 -3
- package/dist/chunks/cli-1.1.31-5kgkq6vm.mjs +0 -2
- package/dist/chunks/cli-1.1.31-5ma2m26d.mjs +0 -2
- package/dist/chunks/cli-1.1.31-5tgfa7xy.mjs +0 -2
- package/dist/chunks/cli-1.1.31-5xd2j6e7.mjs +0 -2
- package/dist/chunks/cli-1.1.31-612bpjx6.mjs +0 -2
- package/dist/chunks/cli-1.1.31-619zan4w.mjs +0 -2
- package/dist/chunks/cli-1.1.31-6m1k9909.mjs +0 -2
- package/dist/chunks/cli-1.1.31-6pxakyvg.mjs +0 -2
- package/dist/chunks/cli-1.1.31-6qm466ss.mjs +0 -2
- package/dist/chunks/cli-1.1.31-706cv7fx.mjs +0 -2
- package/dist/chunks/cli-1.1.31-7692zxpg.mjs +0 -2
- package/dist/chunks/cli-1.1.31-774jqp88.mjs +0 -2
- package/dist/chunks/cli-1.1.31-777381m0.mjs +0 -34
- package/dist/chunks/cli-1.1.31-7hmq6k3a.mjs +0 -26
- package/dist/chunks/cli-1.1.31-7wdp9ve5.mjs +0 -3
- package/dist/chunks/cli-1.1.31-8bcb1d1y.mjs +0 -2
- package/dist/chunks/cli-1.1.31-8esfq0f2.mjs +0 -2
- package/dist/chunks/cli-1.1.31-8h9zps1d.mjs +0 -2
- package/dist/chunks/cli-1.1.31-8sw4prf8.mjs +0 -22
- package/dist/chunks/cli-1.1.31-8syj0cmx.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9493f46x.mjs +0 -9
- package/dist/chunks/cli-1.1.31-978dpg39.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9a1gsrx2.mjs +0 -24
- package/dist/chunks/cli-1.1.31-9adq5rjd.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9d5v98td.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9e4vtbvh.mjs +0 -3
- package/dist/chunks/cli-1.1.31-9efpx64n.mjs +0 -20
- package/dist/chunks/cli-1.1.31-9gf60j86.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9gzbwjb8.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9m6ef5kb.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9m6gmh2w.mjs +0 -2
- package/dist/chunks/cli-1.1.31-9x9gaa7g.mjs +0 -2
- package/dist/chunks/cli-1.1.31-a4vvez04.mjs +0 -2
- package/dist/chunks/cli-1.1.31-a5wav9hq.mjs +0 -2
- package/dist/chunks/cli-1.1.31-a611zwj5.mjs +0 -10
- package/dist/chunks/cli-1.1.31-adnn5x8c.mjs +0 -16
- package/dist/chunks/cli-1.1.31-afzdmcrq.mjs +0 -2
- package/dist/chunks/cli-1.1.31-ahbyaapz.mjs +0 -12
- package/dist/chunks/cli-1.1.31-aqm3wayg.mjs +0 -2
- package/dist/chunks/cli-1.1.31-b2pt6rsc.mjs +0 -2
- package/dist/chunks/cli-1.1.31-b7258j1y.mjs +0 -2
- package/dist/chunks/cli-1.1.31-b8rbgfhm.mjs +0 -2
- package/dist/chunks/cli-1.1.31-bdt0j0zj.mjs +0 -4
- package/dist/chunks/cli-1.1.31-bfsa3dvr.mjs +0 -2
- package/dist/chunks/cli-1.1.31-bx3e5rv6.mjs +0 -3
- package/dist/chunks/cli-1.1.31-c17g88x0.mjs +0 -9
- package/dist/chunks/cli-1.1.31-c9707zjx.mjs +0 -63
- package/dist/chunks/cli-1.1.31-can8wyac.mjs +0 -2
- package/dist/chunks/cli-1.1.31-cpay8r5h.mjs +0 -2
- package/dist/chunks/cli-1.1.31-cpeph4zm.mjs +0 -6
- package/dist/chunks/cli-1.1.31-d930nxk6.mjs +0 -3
- package/dist/chunks/cli-1.1.31-d9sxj86f.mjs +0 -2
- package/dist/chunks/cli-1.1.31-dc4fq4s3.mjs +0 -2
- package/dist/chunks/cli-1.1.31-dctwr6q4.mjs +0 -5
- package/dist/chunks/cli-1.1.31-dcyx3536.mjs +0 -39
- package/dist/chunks/cli-1.1.31-dhecyw04.mjs +0 -3
- package/dist/chunks/cli-1.1.31-dmghye74.mjs +0 -4
- package/dist/chunks/cli-1.1.31-ek449yjc.mjs +0 -6
- package/dist/chunks/cli-1.1.31-emhqeb1g.mjs +0 -2
- package/dist/chunks/cli-1.1.31-eqfmzrxc.mjs +0 -2
- package/dist/chunks/cli-1.1.31-eqvc58gw.mjs +0 -2
- package/dist/chunks/cli-1.1.31-ewhwdszf.mjs +0 -2
- package/dist/chunks/cli-1.1.31-f1zfyp44.mjs +0 -2
- package/dist/chunks/cli-1.1.31-f2abkvxa.mjs +0 -4
- package/dist/chunks/cli-1.1.31-fbdr0297.mjs +0 -2
- package/dist/chunks/cli-1.1.31-fdjs93ba.mjs +0 -2
- package/dist/chunks/cli-1.1.31-fdk7yhs0.mjs +0 -2
- package/dist/chunks/cli-1.1.31-fjdb444f.mjs +0 -7
- package/dist/chunks/cli-1.1.31-fk787pkf.mjs +0 -15
- package/dist/chunks/cli-1.1.31-fpqqpyrw.mjs +0 -3
- package/dist/chunks/cli-1.1.31-fr8t4a7n.mjs +0 -2
- package/dist/chunks/cli-1.1.31-fy2x8k7r.mjs +0 -2
- package/dist/chunks/cli-1.1.31-g41zancj.mjs +0 -3
- package/dist/chunks/cli-1.1.31-g58b1jfa.mjs +0 -5473
- package/dist/chunks/cli-1.1.31-ggtvemxf.mjs +0 -2
- package/dist/chunks/cli-1.1.31-gk7te1jt.mjs +0 -2
- package/dist/chunks/cli-1.1.31-gq54djk0.mjs +0 -2
- package/dist/chunks/cli-1.1.31-h102y1at.mjs +0 -8
- package/dist/chunks/cli-1.1.31-h1sv3apa.mjs +0 -4
- package/dist/chunks/cli-1.1.31-h41m4yrw.mjs +0 -2
- package/dist/chunks/cli-1.1.31-h5a78vp8.mjs +0 -2
- package/dist/chunks/cli-1.1.31-hfdt80w2.mjs +0 -50
- package/dist/chunks/cli-1.1.31-hk88wxhm.mjs +0 -2
- package/dist/chunks/cli-1.1.31-hpxjvh3j.mjs +0 -3
- package/dist/chunks/cli-1.1.31-hvnwvzhh.mjs +0 -58
- package/dist/chunks/cli-1.1.31-j0fbn8aw.mjs +0 -2
- package/dist/chunks/cli-1.1.31-jfj1gvgy.mjs +0 -2
- package/dist/chunks/cli-1.1.31-jh2sb5nk.mjs +0 -42
- package/dist/chunks/cli-1.1.31-jnyr50hq.mjs +0 -2
- package/dist/chunks/cli-1.1.31-jwa8f70w.mjs +0 -2
- package/dist/chunks/cli-1.1.31-jyzz7q1c.mjs +0 -2
- package/dist/chunks/cli-1.1.31-k0zfy1nt.mjs +0 -2
- package/dist/chunks/cli-1.1.31-kfw3q4sp.mjs +0 -133
- package/dist/chunks/cli-1.1.31-kp8hq72m.mjs +0 -2
- package/dist/chunks/cli-1.1.31-kzh4darh.mjs +0 -2
- package/dist/chunks/cli-1.1.31-m5w2d13z.mjs +0 -2
- package/dist/chunks/cli-1.1.31-m9yqg6jg.mjs +0 -2
- package/dist/chunks/cli-1.1.31-mcekc48f.mjs +0 -2
- package/dist/chunks/cli-1.1.31-mtcbc6g3.mjs +0 -4
- package/dist/chunks/cli-1.1.31-n130x03f.mjs +0 -2
- package/dist/chunks/cli-1.1.31-n305h9qd.mjs +0 -25
- package/dist/chunks/cli-1.1.31-n4g6s1bz.mjs +0 -2
- package/dist/chunks/cli-1.1.31-n5vytp0f.mjs +0 -2
- package/dist/chunks/cli-1.1.31-nh2cfavp.mjs +0 -2
- package/dist/chunks/cli-1.1.31-njfyxwfr.mjs +0 -2
- package/dist/chunks/cli-1.1.31-nvecb8c6.mjs +0 -2
- package/dist/chunks/cli-1.1.31-nyvjx813.mjs +0 -24
- package/dist/chunks/cli-1.1.31-nyvz0ev8.mjs +0 -5
- package/dist/chunks/cli-1.1.31-p99fz46k.mjs +0 -206
- package/dist/chunks/cli-1.1.31-pb50hb6v.mjs +0 -12
- package/dist/chunks/cli-1.1.31-pg2ntz9b.mjs +0 -17
- package/dist/chunks/cli-1.1.31-pgde5349.mjs +0 -2
- package/dist/chunks/cli-1.1.31-pp98t7k8.mjs +0 -2
- package/dist/chunks/cli-1.1.31-ptvddvjv.mjs +0 -2
- package/dist/chunks/cli-1.1.31-pzz7j17y.mjs +0 -3
- package/dist/chunks/cli-1.1.31-q67trvk0.mjs +0 -2
- package/dist/chunks/cli-1.1.31-q6k8ems6.mjs +0 -21
- package/dist/chunks/cli-1.1.31-qj8vksz8.mjs +0 -2
- package/dist/chunks/cli-1.1.31-qq0sng13.mjs +0 -2
- package/dist/chunks/cli-1.1.31-qsftejzk.mjs +0 -2
- package/dist/chunks/cli-1.1.31-qv6x2hht.mjs +0 -2
- package/dist/chunks/cli-1.1.31-qyztdyg2.mjs +0 -2
- package/dist/chunks/cli-1.1.31-r5g0ns02.mjs +0 -2
- package/dist/chunks/cli-1.1.31-r7jps0tn.mjs +0 -3
- package/dist/chunks/cli-1.1.31-rqyqyvdn.mjs +0 -2
- package/dist/chunks/cli-1.1.31-rspa4dsq.mjs +0 -6
- package/dist/chunks/cli-1.1.31-rw3xn3tc.mjs +0 -4
- package/dist/chunks/cli-1.1.31-s1a6vw53.mjs +0 -2
- package/dist/chunks/cli-1.1.31-s1vgm3hb.mjs +0 -2
- package/dist/chunks/cli-1.1.31-s246tb6v.mjs +0 -15
- package/dist/chunks/cli-1.1.31-satbt91m.mjs +0 -18
- package/dist/chunks/cli-1.1.31-sc82f8hw.mjs +0 -6
- package/dist/chunks/cli-1.1.31-sn0x975f.mjs +0 -24
- package/dist/chunks/cli-1.1.31-sn2bmgwr.mjs +0 -2
- package/dist/chunks/cli-1.1.31-t2y2tkme.mjs +0 -2
- package/dist/chunks/cli-1.1.31-t6m64e0q.mjs +0 -6
- package/dist/chunks/cli-1.1.31-t96rrv1m.mjs +0 -2
- package/dist/chunks/cli-1.1.31-tc6xppyr.mjs +0 -2
- package/dist/chunks/cli-1.1.31-tctd36c8.mjs +0 -2
- package/dist/chunks/cli-1.1.31-thhdw5e1.mjs +0 -2
- package/dist/chunks/cli-1.1.31-v02fpzs5.mjs +0 -2
- package/dist/chunks/cli-1.1.31-v7nswcm8.mjs +0 -2
- package/dist/chunks/cli-1.1.31-var05xaf.mjs +0 -2
- package/dist/chunks/cli-1.1.31-vbch5rht.mjs +0 -2
- package/dist/chunks/cli-1.1.31-vf004w21.mjs +0 -2
- package/dist/chunks/cli-1.1.31-vhstdnfa.mjs +0 -7
- package/dist/chunks/cli-1.1.31-vphyv007.mjs +0 -2
- package/dist/chunks/cli-1.1.31-vpkbqj90.mjs +0 -4
- package/dist/chunks/cli-1.1.31-vr977n4j.mjs +0 -2
- package/dist/chunks/cli-1.1.31-w0vfcfhs.mjs +0 -2
- package/dist/chunks/cli-1.1.31-w225x38q.mjs +0 -2
- package/dist/chunks/cli-1.1.31-war7w6d7.mjs +0 -2
- package/dist/chunks/cli-1.1.31-wba64b2s.mjs +0 -2
- package/dist/chunks/cli-1.1.31-wfv9e9p4.mjs +0 -2
- package/dist/chunks/cli-1.1.31-wmt8ywr9.mjs +0 -2
- package/dist/chunks/cli-1.1.31-wnpf6e90.mjs +0 -2
- package/dist/chunks/cli-1.1.31-x1wr5k0p.mjs +0 -2
- package/dist/chunks/cli-1.1.31-x96s38b0.mjs +0 -2
- package/dist/chunks/cli-1.1.31-xqdypd2k.mjs +0 -6
- package/dist/chunks/cli-1.1.31-xv09f0k4.mjs +0 -2
- package/dist/chunks/cli-1.1.31-yte5f9f9.mjs +0 -45
- package/dist/chunks/cli-1.1.31-yz72mhbg.mjs +0 -2
- package/dist/chunks/cli-1.1.31-z3s1pnd3.mjs +0 -1
- package/dist/chunks/cli-1.1.31-z6qe8e42.mjs +0 -2
- package/dist/chunks/cli-1.1.31-z7hdz84q.mjs +0 -17
- package/dist/chunks/cli-1.1.31-zsjs5eq0.mjs +0 -2
- package/dist/chunks/cli-1.1.31-zvbpmw2y.mjs +0 -2
- package/dist/chunks/cli-1.1.31-zy7nrvt9.mjs +0 -2
- package/dist/chunks/cli-1.1.31-zzd4cheh.mjs +0 -2
- package/dist/chunks/client-1.1.31-3bn971t2.mjs +0 -1
- package/dist/chunks/color-1.1.31-n3q45hw4.mjs +0 -1
- package/dist/chunks/compact-1.1.31-zkekkcjq.mjs +0 -3
- package/dist/chunks/config-1.1.31-1t6yz96k.mjs +0 -1
- package/dist/chunks/config-1.1.31-enwx50r9.mjs +0 -1
- package/dist/chunks/constants-1.1.31-5peb81d1.mjs +0 -1
- package/dist/chunks/context-1.1.31-9crzemp8.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.31-twqynyp7.mjs +0 -1
- package/dist/chunks/conversation-1.1.31-yw2es9kq.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.31-axfr0ar5.mjs +0 -1
- package/dist/chunks/copy-1.1.31-y97hza01.mjs +0 -9
- package/dist/chunks/cost-1.1.31-wtp1fp62.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.31-tsfe2dea.mjs +0 -1
- package/dist/chunks/createSession-1.1.31-pddv01ds.mjs +0 -1
- package/dist/chunks/debug-1.1.31-5awffxcd.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.31-6a742vb3.mjs +0 -1480
- package/dist/chunks/desktop-1.1.31-zq54hfwy.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.31-s6pe6c1x.mjs +0 -1
- package/dist/chunks/detection-1.1.31-zss1hfbq.mjs +0 -1
- package/dist/chunks/diff-1.1.31-ksj17xmk.mjs +0 -1
- package/dist/chunks/doctor-1.1.31-v4djfk2w.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.31-gs3rsn7y.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.31-s1vpzgtx.mjs +0 -1
- package/dist/chunks/effort-1.1.31-6z9vjdd8.mjs +0 -13
- package/dist/chunks/engine-1.1.31-rv1fs549.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.31-5p5f4zyz.mjs +0 -1
- package/dist/chunks/envUtils-1.1.31-ntcm9cr0.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.31-hh2weytc.mjs +0 -1
- package/dist/chunks/environments-1.1.31-yvgyx900.mjs +0 -1
- package/dist/chunks/errors-1.1.31-n434b94a.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.31-gntd6p22.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.31-s2n0jxqw.mjs +0 -1
- package/dist/chunks/exit-1.1.31-rgrjhztt.mjs +0 -1
- package/dist/chunks/explorer-1.1.31-cyken2c0.mjs +0 -1
- package/dist/chunks/export-1.1.31-nmjy9qp1.mjs +0 -2
- package/dist/chunks/fast-1.1.31-58c4aeze.mjs +0 -1
- package/dist/chunks/feedback-1.1.31-m0vj61dd.mjs +0 -16
- package/dist/chunks/git-1.1.31-9ytjvad9.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.31-7pk651pz.mjs +0 -1
- package/dist/chunks/goal-1.1.31-2a9eh1dv.mjs +0 -4
- package/dist/chunks/headless-1.1.31-btcvy308.mjs +0 -2
- package/dist/chunks/heapdump-1.1.31-3d2namke.mjs +0 -6
- package/dist/chunks/help-1.1.31-sewrb4nb.mjs +0 -1
- package/dist/chunks/hookChains-1.1.31-72mrrs9j.mjs +0 -3
- package/dist/chunks/hooks-1.1.31-0gf2fwcn.mjs +0 -1
- package/dist/chunks/hooks-1.1.31-t1v6dwz6.mjs +0 -79
- package/dist/chunks/ide-1.1.31-rfvpxf98.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.31-6m3111th.mjs +0 -1
- package/dist/chunks/import-1.1.31-n4khxgen.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.31-js74nw49.mjs +0 -1
- package/dist/chunks/index-1.1.31-1d2w0stv.mjs +0 -1
- package/dist/chunks/index-1.1.31-7xyvb71n.mjs +0 -1
- package/dist/chunks/index-1.1.31-b35axgfq.mjs +0 -1
- package/dist/chunks/index-1.1.31-bb3ds6px.mjs +0 -5
- package/dist/chunks/index-1.1.31-d8kmfk8g.mjs +0 -1
- package/dist/chunks/index-1.1.31-djqjbcj1.mjs +0 -1
- package/dist/chunks/index-1.1.31-fbcpgjqr.mjs +0 -1
- package/dist/chunks/index-1.1.31-fzj8sx04.mjs +0 -1
- package/dist/chunks/index-1.1.31-h4jmtajm.mjs +0 -9
- package/dist/chunks/index-1.1.31-hxatxhrm.mjs +0 -1
- package/dist/chunks/index-1.1.31-jjp83m1j.mjs +0 -1
- package/dist/chunks/index-1.1.31-jk9pvxkr.mjs +0 -1
- package/dist/chunks/index-1.1.31-jy33bsc3.mjs +0 -2
- package/dist/chunks/index-1.1.31-kdnrzq4a.mjs +0 -1
- package/dist/chunks/index-1.1.31-kv3bfsq2.mjs +0 -23
- package/dist/chunks/index-1.1.31-mxjtqbfj.mjs +0 -1
- package/dist/chunks/index-1.1.31-p8xpgawg.mjs +0 -1
- package/dist/chunks/index-1.1.31-phw15bz8.mjs +0 -1
- package/dist/chunks/index-1.1.31-pr2zcv22.mjs +0 -30
- package/dist/chunks/index-1.1.31-q75y58jp.mjs +0 -2
- package/dist/chunks/index-1.1.31-qhsyqcg4.mjs +0 -1
- package/dist/chunks/index-1.1.31-tzvhzkcd.mjs +0 -1
- package/dist/chunks/index-1.1.31-wgdk68t3.mjs +0 -9
- package/dist/chunks/init-1.1.31-4ayzds5h.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.31-ebns690c.mjs +0 -1
- package/dist/chunks/ink-1.1.31-rx0229yp.mjs +0 -1
- package/dist/chunks/insights-1.1.31-t8z4k64x.mjs +0 -870
- package/dist/chunks/install-1.1.31-fvw0rbqj.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.31-zmtxtda9.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.31-j04t1paw.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.31-xq2br8z8.mjs +0 -1
- package/dist/chunks/keybindings-1.1.31-a0dfh2gb.mjs +0 -2
- package/dist/chunks/knowledge-1.1.31-g087p4dy.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.31-vyesmh7x.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.31-39mbd67g.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.31-7pnfkxj8.mjs +0 -1
- package/dist/chunks/log-1.1.31-75wjvmg7.mjs +0 -1
- package/dist/chunks/main-1.1.31-htavj2vh.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.31-3t5j20s3.mjs +0 -1
- package/dist/chunks/mcp-1.1.31-g8q13cfk.mjs +0 -1
- package/dist/chunks/mcp-1.1.31-gnbrx51d.mjs +0 -17
- package/dist/chunks/mcp-1.1.31-tb2yw0fm.mjs +0 -4
- package/dist/chunks/mcpb-1.1.31-an4y7m57.mjs +0 -1
- package/dist/chunks/memory-1.1.31-6ebsap62.mjs +0 -77
- package/dist/chunks/model-1.1.31-dfs178qb.mjs +0 -1
- package/dist/chunks/model-1.1.31-yjsxjv0f.mjs +0 -2
- package/dist/chunks/node-1.1.31-4gqzhhpj.mjs +0 -15
- package/dist/chunks/node-1.1.31-bknsrjhq.mjs +0 -1
- package/dist/chunks/oauth-1.1.31-0dfgbykp.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.31-bx5cgqc0.mjs +0 -14
- package/dist/chunks/output-style-1.1.31-fqg3pscb.mjs +0 -1
- package/dist/chunks/package-D2QZMRW7-1.1.31-tbwnz9re.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.31-htt07xve.mjs +0 -1
- package/dist/chunks/parser-1.1.31-22dqq9cd.mjs +0 -1
- package/dist/chunks/permissions-1.1.31-2jt71rmf.mjs +0 -1
- package/dist/chunks/permissions-1.1.31-8eevgx6v.mjs +0 -3
- package/dist/chunks/plan-1.1.31-sgds3thc.mjs +0 -1
- package/dist/chunks/plist-1.1.31-50ff60z2.mjs +0 -1
- package/dist/chunks/plugin-1.1.31-j5n91qc0.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.31-28rvz0zj.mjs +0 -1
- package/dist/chunks/plugins-1.1.31-cq05wg0h.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.31-xmrm67ge.mjs +0 -2
- package/dist/chunks/print-1.1.31-4n5d0cdk.mjs +0 -57
- package/dist/chunks/process-1.1.31-7c3jtep7.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.31-ycb3ehgr.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.31-0bwjc7n4.mjs +0 -9
- package/dist/chunks/prompt-1.1.31-1krmkgep.mjs +0 -1
- package/dist/chunks/prompt-1.1.31-vsft6hz3.mjs +0 -1
- package/dist/chunks/prompts-1.1.31-jp2k44tp.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.31-yc5dejjn.mjs +0 -13
- package/dist/chunks/provider-1.1.31-sba30ytt.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.31-8g3p4ntd.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.31-rnj0xtqw.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.31-rtx2e9wp.mjs +0 -26
- package/dist/chunks/registry-1.1.31-ecyhakd2.mjs +0 -1
- package/dist/chunks/release-notes-1.1.31-gf017wax.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.31-de7agwmx.mjs +0 -2
- package/dist/chunks/remote-env-1.1.31-x3aaeh2d.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.31-37k3bw33.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.31-tkas2k4z.mjs +0 -1
- package/dist/chunks/rename-1.1.31-4q58stc8.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.31-64getkgv.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.31-0n74v295.mjs +0 -1
- package/dist/chunks/resume-1.1.31-btzfzzf4.mjs +0 -2
- package/dist/chunks/rewind-1.1.31-9m2a508m.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.31-bftj813f.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.31-tra2r0dx.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.31-6nyy2rag.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.31-h1n35f5k.mjs +0 -1
- package/dist/chunks/session-1.1.31-xb800b9s.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-1.1.31-gkkyesrj.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.31-s7gez2t6.mjs +0 -1
- package/dist/chunks/settings-1.1.31-w7zfpg83.mjs +0 -1
- package/dist/chunks/setup-1.1.31-b6kjgetf.mjs +0 -12
- package/dist/chunks/sinks-1.1.31-g9n7r1nh.mjs +0 -1
- package/dist/chunks/skills-1.1.31-ag9r3asv.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.31-h19httmy.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.31-f3g7de65.mjs +0 -1
- package/dist/chunks/state-1.1.31-tbc1c6c2.mjs +0 -1
- package/dist/chunks/stats-1.1.31-71xjrkax.mjs +0 -1
- package/dist/chunks/status-1.1.31-n65g11nc.mjs +0 -1
- package/dist/chunks/stickers-1.1.31-eze0atpf.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.31-r788gbdf.mjs +0 -1
- package/dist/chunks/tasks-1.1.31-tbc0x51m.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.31-yt18sjr2.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.31-f3bgkc7m.mjs +0 -1
- package/dist/chunks/teleport-1.1.31-4mvcqr5j.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.31-y574v0gj.mjs +0 -1
- package/dist/chunks/theme-1.1.31-2nth8fxb.mjs +0 -1
- package/dist/chunks/thinkback-1.1.31-yt5309kx.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.31-n61vtr8q.mjs +0 -1
- package/dist/chunks/toolPool-1.1.31-2wrjcf13.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.31-vr7hen30.mjs +0 -1
- package/dist/chunks/tools-1.1.31-xgrxwk7j.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.31-ad2f2kvj.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.31-mtgg85tg.mjs +0 -69
- package/dist/chunks/types-1.1.31-ery244ea.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.31-fs3fn2qp.mjs +0 -4
- package/dist/chunks/update-1.1.31-j79f7es2.mjs +0 -72
- package/dist/chunks/upload-1.1.31-ehqzz7x7.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.31-z70ctdj3.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.31-e0hbcnyw.mjs +0 -1
- package/dist/chunks/usage-1.1.31-qgmy1ktr.mjs +0 -1
- package/dist/chunks/util-1.1.31-jy81jvt3.mjs +0 -1
- package/dist/chunks/utils-1.1.31-3jpj59nn.mjs +0 -1
- package/dist/chunks/vim-1.1.31-wbbckx93.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.31-v994wq2d.mjs +0 -13
- package/dist/chunks/watcher-1.1.31-zr0darq0.mjs +0 -1
- package/dist/chunks/wiki-1.1.31-7gcn31zm.mjs +0 -132
- package/dist/chunks/workflows-1.1.31-ek8twhyg.mjs +0 -1
- package/dist/chunks/worktree-1.1.31-krxr11er.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.31-m3t752mj.mjs +0 -1
- package/dist/chunks/wrapper-1.1.31-037s1v4h.mjs +0 -7
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import{Ag as NJ,wg as kJ,xg as IQ,yg as _q}from"./cli-1.1.32-aqfcrtfz.mjs";import{Ax as GJ,Dx as PJ,Ex as uQ,Fo as zJ,GI as $J,Go as BQ,HI as dQ,HN as mq,JK as yJ,Jx as cq,KK as lQ,KN as nQ,Kx as AQ,LK as YJ,Lx as KJ,MK as vQ,Mx as FQ,NK as LJ,OK as bQ,Yx as QQ,Zx as WZ,_C as WJ,aD as CQ,fF as uq,gF as mQ,hT as Eq,iT as XQ,ln as aq,mT as cJ,mn as KQ,nF as fJ,nn as $,on as lJ,pn as nJ,qn as iJ,sn as pq,tn as DJ,wn as gQ,yF as HJ,yx as x,zF as VJ,zx as UJ}from"./cli-1.1.32-9yka8m9x.mjs";import"./cli-1.1.32-gwf0a8ej.mjs";import"./cli-1.1.32-1913x5jp.mjs";import"./cli-1.1.32-p70gsyp3.mjs";import"./cli-1.1.32-bce46tmm.mjs";import"./cli-1.1.32-y4agg2c2.mjs";import"./cli-1.1.32-4vdyqkkd.mjs";import"./cli-1.1.32-5c5dcwk6.mjs";import"./cli-1.1.32-h7cb9f8y.mjs";import"./cli-1.1.32-1c9z2mtv.mjs";import"./cli-1.1.32-m9p4pd60.mjs";import"./cli-1.1.32-qzjfn21e.mjs";import"./cli-1.1.32-5dq711bj.mjs";import"./cli-1.1.32-8yc37yqa.mjs";import{LY as Sq,SW as TJ,cY as v,eY as W,iY as JQ}from"./cli-1.1.32-hgjgfp8p.mjs";import"./cli-1.1.32-vtzwmjs8.mjs";import"./cli-1.1.32-px6268dx.mjs";import"./cli-1.1.32-gpq33yz0.mjs";import"./cli-1.1.32-d47cvy98.mjs";import"./cli-1.1.32-46wadmxk.mjs";import{c0 as XJ,e0 as OQ}from"./cli-1.1.32-px93hhj4.mjs";import"./cli-1.1.32-n7cyeje8.mjs";import"./cli-1.1.32-5j5n166h.mjs";import"./cli-1.1.32-6317frxz.mjs";import"./cli-1.1.32-qmgvm9rq.mjs";import{n2 as X,o2 as V,p2 as y}from"./cli-1.1.32-jjanec91.mjs";import{q2 as jq}from"./cli-1.1.32-6f9r9qcb.mjs";import"./cli-1.1.32-wyv15h7a.mjs";import"./cli-1.1.32-vf3r8a91.mjs";import"./cli-1.1.32-a3dfp7ps.mjs";import{F6 as EJ,G6 as pQ}from"./cli-1.1.32-6jxftegx.mjs";import"./cli-1.1.32-rswqkymv.mjs";import"./cli-1.1.32-czrfbd3q.mjs";import"./cli-1.1.32-9wsnkggz.mjs";import"./cli-1.1.32-76wfpwbd.mjs";import"./cli-1.1.32-zv1p3q66.mjs";import"./cli-1.1.32-jt6w5mqv.mjs";import"./cli-1.1.32-5xmh2b7j.mjs";import"./cli-1.1.32-r5ww85n4.mjs";import"./cli-1.1.32-g5dzf2w1.mjs";import"./cli-1.1.32-260jjrwt.mjs";import"./cli-1.1.32-2kd689v0.mjs";import"./cli-1.1.32-bt4yfsm7.mjs";import{Bea as dq,Dga as ZJ,Fea as vJ,Iea as bJ,Jea as IJ,Kea as DQ,Mea as rJ,Nea as oJ,O$ as m,Rea as cQ,Sea as wJ,Uaa as TQ,aaa as QJ,dea as gq,tea as hQ,uea as D,waa as AJ,yea as d,yga as Jq}from"./cli-1.1.32-pve0ffcp.mjs";import{Wga as bq,aha as sq}from"./cli-1.1.32-1rackf2c.mjs";import"./cli-1.1.32-merqy9t2.mjs";import"./cli-1.1.32-v4chz2b0.mjs";import"./cli-1.1.32-kn0zs89y.mjs";import{Rha as gJ,Tha as QZ}from"./cli-1.1.32-m7dxkbpn.mjs";import"./cli-1.1.32-ajhvj43e.mjs";import"./cli-1.1.32-8jkgzjh4.mjs";import"./cli-1.1.32-zeyasrw5.mjs";import{Wja as qJ,cka as qQ,ika as JJ}from"./cli-1.1.32-z7x4jfeb.mjs";import{lka as Kq,wka as MJ}from"./cli-1.1.32-7zp3b6gq.mjs";import{Hpa as xQ,ila as _J}from"./cli-1.1.32-60pc6r2s.mjs";import"./cli-1.1.32-hbwke9cs.mjs";import"./cli-1.1.32-0pmhmsew.mjs";import{Sqa as Qq,Tqa as yQ,Wqa as _}from"./cli-1.1.32-yw64r19c.mjs";import{readdir as WQ}from"fs/promises";import{basename as HQ,sep as VQ}from"path";function Iq(J){return`${xq}${J.isTeamDir?"1":"0"}${vq}${J.title}${vq}${J.dir}`}function rq(J){if(!J.startsWith(xq))return null;let q=J.slice(xq.length),Q=q.indexOf(vq);if(Q===-1)return null;let Z=q.indexOf(vq,Q+1);if(Z===-1)return null;return{isTeamDir:q.slice(0,Q)==="1",title:q.slice(Q+1,Z),dir:q.slice(Z+1)}}function YQ(J){return(J===void 0?"":`[${J}]`).padEnd(oq)}function LQ(J){return J.filename.includes(VQ)||J.filename.includes("/")}function kQ(J){if(J===null)return;let q=J.replace(/\s+/g," ").trim();if(q.length<=iq)return q===""?void 0:q;return`${q.slice(0,iq-1).trimEnd()}…`}function tq(J,q){let{indexPath:Q,indexExists:Z,includeNested:H=!1}=q,U=[];if(Z)U.push({label:`${"".padEnd(oq)}${HQ(Q)}`,value:Q,description:"the index loaded into context every session",isIndex:!0});for(let B of J){if(!H&&LQ(B))continue;U.push({label:`${YQ(B.type)}${B.filename.replace(/\.md$/,"")} ${bq(new Date(B.mtimeMs))}`,value:B.filePath,description:kQ(B.description),isIndex:!1})}return U}function eq(J,q){let Q=J.split(`
|
|
2
|
+
`),Z=Q.filter((H)=>{let U=NQ.exec(H);return U===null||U[1]!==q});return Z.length===Q.length?J:Z.join(`
|
|
3
|
+
`)}async function hq(J){try{return(await WQ(J,{withFileTypes:!0})).filter((Q)=>Q.isFile()&&Q.name.endsWith(".md")&&Q.name!==$).length}catch{return 0}}var xq="__browse_dir__",Gq="__memory_tidy__",vq="\x1F",oq,iq=60,NQ;var Rq=_(()=>{pq();KQ();sq();oq=Math.max(...aq.map((J)=>J.length))+4;NQ=/\]\(([^)]+)\)/});import{basename as qq}from"path";import{mkdir as RQ,readFile as jQ,stat as SQ,unlink as _Q,writeFile as MQ}from"fs/promises";function BJ({dir:J,title:q,indexPath:Q,isTeamDir:Z=!1,onBack:H}){let[U,B]=Y.useState(null),[P,E]=Y.useState(!1),[zq,p]=Y.useState(0),[L,O]=Y.useState(void 0),[I,A]=Y.useState(null),[w,l]=Y.useState(!1),[N,h]=Y.useState(null),[c,g]=Y.useState(null);Y.useEffect(()=>{let K=new AbortController,G=!1;return(async()=>{let[b,f]=await Promise.all([LJ(J,K.signal),SQ(Q).then(()=>!0,()=>!1)]);if(G)return;B(b),E(f)})(),()=>{G=!0,K.abort()}},[J,Q,zq]);let j=Y.useMemo(()=>U===null?[]:tq(U,{indexPath:Q,indexExists:P}),[U,Q,P]),wq=Y.useMemo(()=>j.map((K)=>({label:K.label,value:K.value,description:K.description})),[j]),F=j.find((K)=>K.value===L)??null;Y.useEffect(()=>{if(L===void 0)return;let K=new AbortController;return YJ(L,0,wQ,void 0,K.signal).then((G)=>{let{frontmatter:b,content:f}=zJ(G.content,L),R=f.split(`
|
|
4
|
+
`),Xq=G.content.split(`
|
|
5
|
+
`).length-R.length,C=R.slice(0,EQ),T=typeof b.type==="string"?b.type:null;A({heading:T?`${T} · ${qq(L,".md")}`:qq(L),body:C.join(`
|
|
6
|
+
`).trim(),moreLines:Math.max(0,G.totalLines-Xq-C.length)})},(G)=>{if(qJ(G))return;Jq(G),A(null)}),()=>K.abort()},[L]);let S=Y.useCallback((K)=>{if(!kJ()){g("No editor configured — set $EDITOR or $VISUAL to edit memories here.");return}let G=_q(K);if(G.error){g(G.error);return}g(null),p((b)=>b+1)},[]),u=Y.useCallback(async()=>{let K=N;if(K===null)return;h(null);try{await _Q(K.value);let G=await jQ(Q,"utf8").catch(()=>null);if(G!==null){let b=eq(G,qq(K.value));if(b!==G)await MQ(Q,b,"utf8")}g(`Deleted ${qq(K.value)}`)}catch(G){Jq(G),g(`Could not delete ${qq(K.value)}`)}O(void 0),A(null),p((G)=>G+1)},[N,Q]),Tq=Y.useMemo(()=>({"memory:openFolder":()=>{RQ(J,{recursive:!0}).catch(()=>{}).then(()=>XJ(J))},"memory:delete":()=>{if(F===null||F.isIndex)return!1;h(F)}}),[J,F]);if(UJ(Tq,{context:"Memory",isActive:!w&&N===null}),x("confirm:yes",()=>void u(),{context:"Confirmation",isActive:N!==null}),x("confirm:no",()=>h(null),{context:"Confirmation",isActive:N!==null}),U===null)return X(v,{flexDirection:"column",width:"100%",children:V(W,{dimColor:!0,children:["Reading ",m(J),"…"]})});return V(v,{flexDirection:"column",width:"100%",children:[X(v,{marginBottom:1,children:V(W,{bold:!0,children:[q,V(W,{dimColor:!0,children:[" · ",m(J)]})]})}),j.length===0?X(W,{dimColor:!0,children:"No memories here yet. They appear as Claudin saves them."}):X(HJ,{options:wq,visibleOptionCount:5,showOverflowCount:!0,searchPlaceholder:"Search memories…",isDisabled:N!==null,onSearchModeChange:l,onFocus:O,onChange:S,onCancel:H}),N!==null?V(v,{flexDirection:"column",marginTop:1,children:[V(W,{color:"error",children:["Delete ",qq(N.value),"?"]}),X(W,{dimColor:!0,children:Z?"Shared memory — the deletion reaches the team on the next sync. Its line in MEMORY.md goes too.":"Its line in MEMORY.md goes too."})]}):I!==null&&V(v,{flexDirection:"column",marginTop:1,children:[X(W,{dimColor:!0,children:I.heading}),I.body===""?X(W,{dimColor:!0,children:"(empty)"}):X(WJ,{dimColor:!0,children:I.body}),I.moreLines>0&&V(W,{dimColor:!0,children:["… +",I.moreLines," more lines"]})]}),c!==null&&X(v,{marginTop:1,children:X(W,{dimColor:!0,children:c})}),X(v,{marginTop:1,children:X(W,{dimColor:!0,italic:!0,children:V(KJ,{children:[N!==null?X(W,{dimColor:!0,children:"y to delete"}):X(W,{dimColor:!0,children:"enter to edit"}),N!==null?X(W,{dimColor:!0,children:"n to cancel"}):X(cq,{action:"memory:delete",context:"Memory",fallback:"d",description:"delete"}),N===null&&X(cq,{action:"memory:openFolder",context:"Memory",fallback:"o",description:"open folder"}),N===null&&X(W,{dimColor:!0,children:"esc to go back"})]})})})]})}var Y,EQ=10,wQ=40;var OJ=_(()=>{bQ();Rq();OQ();IQ();JJ();QJ();vQ();BQ();ZJ();AQ();VJ();FQ();Sq();NJ();GJ();CQ();y();Y=Qq(jq(),1)});function FJ(J){return AJ(J)!==null}var CJ=_(()=>{TQ()});import{basename as PQ,join as fQ}from"path";function $Q(J){return J.type==="Project"&&J.parent===void 0&&IJ(PQ(J.path))}function RJ(J,q){let Q=new Set(J.filter($Q).map((Z)=>Z.path));return bJ(q,(Z)=>Q.has(Z))??fQ(q,vJ)}var jJ=_(()=>{DQ()});import{basename as iQ,join as sQ}from"path";function pJ(J){let q=xJ.c(58),{onSelect:Q,onCancel:Z,dirCounts:H}=J,U=M.use(Eq()),B=_J(),P=sQ(Kq(),"CLAUDE.md"),E=RJ(U,B),zq=iQ(E),p=U.some((z)=>z.path===P),L=U.some((z)=>z.path===E),O=[...U.filter(JZ).map(qZ),...p?[]:[{path:P,type:"User",content:"",exists:!1}],...L?[]:[{path:E,type:"Project",content:"",exists:!1}]],I=new Map,A=O.map((z)=>{let k=m(z.path),yq=z.exists?"":" (new)",Cq=z.parent?(I.get(z.parent)??0)+1:0;I.set(z.path,Cq);let UQ=Cq>0?" ".repeat(Cq-1):"",Uq;if(z.type==="User"&&!z.isNested&&z.path===P)Uq="User memory";else if(z.type==="Project"&&!z.isNested&&z.path===E)Uq="Project memory";else if(Cq>0)Uq=`${UQ}L ${k}${yq}`;else Uq=`${k}`;let e,GQ=FJ(B);if(z.type==="User"&&!z.isNested)e="Saved in ~/.claudin/CLAUDE.md";else if(z.type==="Project"&&!z.isNested&&z.path===E)e=`${GQ?"Checked in at":"Saved in"} ./${zq}`;else if(z.parent)e="@-imported";else if(z.isNested)e="dynamically loaded";else e="";return{label:Uq,value:z.path,description:e}}),w=[],l=mq(eQ);if(D()){let z=d();if(w.push({label:`Private memory${H?` · ${H.private}`:""}`,value:Iq({dir:z,title:"Private memory",isTeamDir:!1}),description:`Saved in ${m(z)}`}),SJ?.isTeamMemoryEnabled()){let k=SJ.getTeamMemPath();w.push({label:`Team memory${H?` · ${H.team}`:""}`,value:Iq({dir:k,title:"Team memory",isTeamDir:!0}),description:`Shared with the team, synced from ${m(k)}`})}w.push({label:"Tidy memories",value:Gq,description:"Merge duplicate memories and rebuild the index"});for(let k of l.activeAgents)if(k.memory){let yq=DJ(k.agentType,k.memory);w.push({label:`${EJ.bold(k.agentType)} agent memory`,value:Iq({dir:yq,title:`${k.agentType} agent memory`,isTeamDir:!1}),description:`${k.memory} scope`})}}A.push(...w);let N;if(q[2]!==A)N=Mq&&A.some(tQ)?Mq:A[0]?.value||"",q[2]=A,q[3]=N;else N=q[3];let h=N,[c,g]=M.useState(D),[j,wq]=M.useState(yJ),[F]=M.useState(D),S=mq(rQ),[u,Tq]=M.useState(null),K;if(q[4]!==F)K=()=>{if(!F)return;$J().then(Tq)},q[4]=F,q[5]=K;else K=q[5];let G;if(q[6]!==S||q[7]!==F)G=[F,S],q[6]=S,q[7]=F,q[8]=G;else G=q[8];M.useEffect(K,G);let b;if(q[9]!==S||q[10]!==u)b=S?"running":u===null?"":u===0?"never":`last ran ${bq(new Date(u))}`,q[9]=S,q[10]=u,q[11]=b;else b=q[11];let f=b,[R,Xq]=M.useState(null),C=R!==null,T=F?1:0,Hq;if(q[12]!==c)Hq=function(){let k=!c;gq("userSettings",{autoMemoryEnabled:k}),g(k)},q[12]=c,q[13]=Hq;else Hq=q[13];let Dq=Hq,Vq;if(q[14]!==j)Vq=function(){let k=!j;gq("userSettings",{autoDreamEnabled:k}),wq(k)},q[14]=j,q[15]=Vq;else Vq=q[15];let Pq=Vq;PJ();let Yq;if(q[16]===Symbol.for("react.memo_cache_sentinel"))Yq={context:"Confirmation"},q[16]=Yq;else Yq=q[16];x("confirm:no",Z,Yq);let Lq;if(q[17]!==R||q[18]!==Pq||q[19]!==Dq)Lq=()=>{if(R===0)Dq();else if(R===1)Pq()},q[17]=R,q[18]=Pq,q[19]=Dq,q[20]=Lq;else Lq=q[20];let kq;if(q[21]!==C)kq={context:"Confirmation",isActive:C},q[21]=C,q[22]=kq;else kq=q[22];x("confirm:yes",Lq,kq);let Nq;if(q[23]!==T)Nq=()=>{Xq((z)=>z!==null&&z<T?z+1:null)},q[23]=T,q[24]=Nq;else Nq=q[24];let Bq;if(q[25]!==C)Bq={context:"Select",isActive:C},q[25]=C,q[26]=Bq;else Bq=q[26];x("select:next",Nq,Bq);let Oq;if(q[27]===Symbol.for("react.memo_cache_sentinel"))Oq=()=>{Xq(aQ)},q[27]=Oq;else Oq=q[27];let Aq;if(q[28]!==C)Aq={context:"Select",isActive:C},q[28]=C,q[29]=Aq;else Aq=q[29];x("select:previous",Oq,Aq);let fq=R===0,$q=c?"on":"off",n;if(q[30]!==$q)n=V(W,{children:["Auto-memory: ",$q]}),q[30]=$q,q[31]=n;else n=q[31];let i;if(q[32]!==fq||q[33]!==n)i=X(uq,{isFocused:fq,children:n}),q[32]=fq,q[33]=n,q[34]=i;else i=q[34];let s;if(q[35]!==j||q[36]!==f||q[37]!==R||q[38]!==S||q[39]!==F)s=F&&X(uq,{isFocused:R===1,styled:!1,children:V(W,{color:R===1?"suggestion":void 0,children:["Auto-dream: ",j?"on":"off",f&&V(W,{dimColor:!0,children:[" · ",f]}),!S&&j&&X(W,{dimColor:!0,children:" · /dream to run"})]})}),q[35]=j,q[36]=f,q[37]=R,q[38]=S,q[39]=F,q[40]=s;else s=q[40];let a;if(q[41]!==i||q[42]!==s)a=V(v,{flexDirection:"column",marginBottom:1,children:[i,s]}),q[41]=i,q[42]=s,q[43]=a;else a=q[43];let r;if(q[44]!==Q)r=(z)=>{if(z!==Gq)Mq=z;Q(z)},q[44]=Q,q[45]=r;else r=q[45];let o;if(q[46]!==T)o=()=>Xq(T),q[46]=T,q[47]=o;else o=q[47];let t;if(q[48]!==h||q[49]!==A||q[50]!==Z||q[51]!==r||q[52]!==o||q[53]!==C)t=X(fJ,{defaultFocusValue:h,options:A,isDisabled:C,onChange:r,onCancel:Z,onUpFromFirstItem:o}),q[48]=h,q[49]=A,q[50]=Z,q[51]=r,q[52]=o,q[53]=C,q[54]=t;else t=q[54];let Fq;if(q[55]!==a||q[56]!==t)Fq=V(v,{flexDirection:"column",width:"100%",children:[a,t]}),q[55]=a,q[56]=t,q[57]=Fq;else Fq=q[57];return Fq}function aQ(J){return J!==null&&J>0?J-1:J}function rQ(J){return Object.values(J.tasks).some(oQ)}function oQ(J){return J.type==="dream"&&J.status==="running"}function tQ(J){return J.value===Mq}function eQ(J){return J.agentDefinitions}function qZ(J){return{...J,exists:!0}}function JZ(J){return J.type!=="AutoMem"&&J.type!=="TeamMem"}var xJ,M,SJ,Mq;var hJ=_(()=>{pQ();xQ();uQ();Sq();GJ();dq();lQ();dQ();nQ();gQ();cJ();MJ();QJ();sq();CJ();hQ();VJ();mQ();jJ();Rq();y();xJ=Qq(TJ(),1),M=Qq(jq(),1),SJ=(wJ(),yQ(cQ))});import{homedir as zZ}from"os";import{relative as XZ}from"path";function uJ(J){let q=zZ(),Q=gJ(),Z=J.startsWith(q)?"~"+J.slice(q.length):null,H=J.startsWith(Q)?"./"+XZ(Q,J):null;if(Z&&H)return Z.length<=H.length?Z:H;return Z||H||J}var ZZ;var mJ=_(()=>{Sq();QZ();y();ZZ=Qq(TJ(),1)});function dJ(J){return J.replace(UZ,"")}function sJ(J,q){let Q=dJ(J),Z=q===null?null:dJ(q),H=Math.round(nJ/GZ),U=Z!==null?"skip subdirectories other than the team dir handled separately":"skip all subdirectories",B=Z!==null?`
|
|
7
|
+
## Team memory
|
|
8
|
+
|
|
9
|
+
Also tidy the team memory directory: \`${Z}\`
|
|
10
|
+
|
|
11
|
+
- Apply the exact same orient → identify → merge → update-index steps inside \`${Z}\` (its index is \`${Z}/${$}\`)
|
|
12
|
+
- The team index may have its own structure beyond bare index lines — a \`# Team Memory\` header, an intro blockquote, \`## Section\` groupings. **Preserve all of it**: only touch the individual index lines for files you deleted or renamed, exactly as in the private index. Never reformat, reorder, or flatten the team index's sections.
|
|
13
|
+
- **Never merge across the boundary**: a private memory and a team memory about the same fact stay separate. Do not move content between \`${Q}\` and \`${Z}\`, do not merge a pair that spans the two, and do not "promote" a private memory into team — that is a deliberate user decision, not tidy's job.
|
|
14
|
+
- Files you change or delete here propagate to the team via automatic sync — another reason to stay strictly conservative.
|
|
15
|
+
`:"";return`# Memory Tidy: conservative duplicate merge
|
|
16
|
+
|
|
17
|
+
You are tidying the memory directory — a **conservative** pass that merges duplicate memory files and updates the index. This is NOT a dream/consolidation: do not look at transcripts, do not create new memories, do not reorganize by topic, and do not rewrite the content of files that are not duplicates.
|
|
18
|
+
|
|
19
|
+
Memory directory: \`${Q}\`
|
|
20
|
+
${iJ}
|
|
21
|
+
${B}
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Step 1 — Orient
|
|
25
|
+
|
|
26
|
+
- Read \`${Q}/${$}\` to see the current index
|
|
27
|
+
- Read every \`.md\` file in the directory — full contents, not just frontmatter (there are at most a couple hundred; ${U})
|
|
28
|
+
|
|
29
|
+
## Step 2 — Identify duplicates
|
|
30
|
+
|
|
31
|
+
Look for pairs or groups of files that record the **same fact**:
|
|
32
|
+
|
|
33
|
+
- Same topic under different names (e.g. \`feedback-build-after-edit.md\` vs \`always-build-after-source-change.md\`)
|
|
34
|
+
- Near-identical \`description\` frontmatter
|
|
35
|
+
- Heavily overlapping body content
|
|
36
|
+
|
|
37
|
+
Two files that merely **partially overlap** are NOT duplicates: if file A covers facts X+Y and file B covers X+Z, each holds a distinct fact — leave both alone. Only files where one is (nearly) fully redundant with the other qualify.
|
|
38
|
+
|
|
39
|
+
If you are not confident two files describe the same fact, they are NOT duplicates — leave both untouched and list them under "ambiguous pairs" in your report.
|
|
40
|
+
|
|
41
|
+
## Step 3 — Merge (conservatively)
|
|
42
|
+
|
|
43
|
+
For each confirmed duplicate group:
|
|
44
|
+
|
|
45
|
+
1. Pick the survivor: prefer the file with the more complete frontmatter and richer content; on a tie prefer the older file (check mtime with \`ls -l\` — its name is more likely already referenced elsewhere).
|
|
46
|
+
2. Fold the redundant file's content into the survivor. When the two files **conflict factually**, keep BOTH facts (union) and note the contradiction in your report — never silently pick one side.
|
|
47
|
+
3. Keep the survivor's frontmatter \`type\`; refresh its \`description\` only if the merged content demands it. If a file's frontmatter is malformed, skip that file entirely and note it in the report.
|
|
48
|
+
4. Delete the redundant file with \`rm\`. The user will see a permission prompt for each deletion — that is intentional, it is their chance to veto a merge.
|
|
49
|
+
|
|
50
|
+
Hard rules:
|
|
51
|
+
- Never merge across the private ↔ team boundary.
|
|
52
|
+
- Never delete a file that is merely stale, ambiguous, or low-quality — only confirmed duplicates. Stale or wrong content is reported, not fixed.
|
|
53
|
+
- Never create new memory files, and never touch files outside the memory directories.
|
|
54
|
+
|
|
55
|
+
## Step 4 — Update the index (minimal edits, NOT a rewrite)
|
|
56
|
+
|
|
57
|
+
Edit \`${Q}/${$}\` (and the team index if applicable) **in place, surgically**:
|
|
58
|
+
|
|
59
|
+
- Remove only the lines pointing at files you deleted
|
|
60
|
+
- Update the survivor's line only if its title/hook changed
|
|
61
|
+
- Do not reorder, regroup, reformat, or rewrite surviving lines — the rest of the index stays byte-for-byte as it was
|
|
62
|
+
- Format for any line you do touch: \`- [Title](file.md) — one-line hook\`, under ~150 chars
|
|
63
|
+
- The index must stay under ${lJ} lines AND under ~${H}KB — it's an index, never write memory content into it
|
|
64
|
+
|
|
65
|
+
## Step 5 — Report
|
|
66
|
+
|
|
67
|
+
Finish with a brief summary:
|
|
68
|
+
|
|
69
|
+
- **Merged**: which files combined into which survivor (X + Y → Z)
|
|
70
|
+
- **Deleted**: files removed
|
|
71
|
+
- **Ambiguous pairs left alone**: candidates you were not confident about, so the user can decide by hand
|
|
72
|
+
- **Conflicts noted**: factual contradictions you kept as union
|
|
73
|
+
- **Stale or broken observed**: outdated content, malformed frontmatter, or anything else you noticed but deliberately did NOT fix (tidy only merges duplicates)
|
|
74
|
+
|
|
75
|
+
If nothing was duplicated, say so — a tidy run that changes nothing is a correct outcome.`}var UZ,GZ=1024;var aJ=_(()=>{pq();UZ=/[/\\]+$/});function Wq(){if(rJ())return oJ();return null}var lq=_(()=>{wJ()});function tJ(J){let q=J.trim();return KZ.find((Q)=>Q===q)??null}function nq(J){if(!D())return J("Memory tidy unavailable: auto memory is disabled (autoMemoryEnabled is false, or CLAUDIN_DISABLE_AUTO_MEMORY is set).",{display:"system"}),null;return J("Running memory tidy — merging duplicate memories…",{display:"system",shouldQuery:!0,metaMessages:[sJ(d(),Wq())]}),null}var KZ;var eJ=_(()=>{dq();aJ();lq();KZ=["tidy","private","team"]});import{mkdir as HZ,writeFile as VZ}from"fs/promises";import{join as YZ}from"path";async function zQ(){if(!D())return{private:0,team:0};let J=Wq(),[q,Q]=await Promise.all([hq(d()),J===null?Promise.resolve(0):hq(J)]);return{private:q,team:Q}}function LZ(J){if(!D())return null;if(J==="team"){let q=Wq();return q===null?null:{dir:q,title:"Team memory",isTeamDir:!0}}return{dir:d(),title:"Private memory",isTeamDir:!1}}function kZ({onDone:J,initialCounts:q,initialBrowse:Q}){let[Z,H]=Zq.useState(q),[U,B]=Zq.useState(Q),P=async(L)=>{try{if(L.includes(Kq()))await HZ(Kq(),{recursive:!0});try{await VZ(L,"",{encoding:"utf8",flag:"wx"})}catch(l){if(qQ(l)!=="EEXIST")throw l}await _q(L);let O="default",I="";if(process.env.VISUAL)O="$VISUAL",I=process.env.VISUAL;else if(process.env.EDITOR)O="$EDITOR",I=process.env.EDITOR;let A=O!=="default"?`Using ${O}="${I}".`:"",w=A?`> ${A} To change editor, set $EDITOR or $VISUAL environment variable.`:"> To use a different editor, set the $EDITOR or $VISUAL environment variable.";J(`Opened memory file at ${uJ(L)}
|
|
76
|
+
|
|
77
|
+
${w}`,{display:"system"})}catch(O){Jq(O),J(`Error opening memory file: ${O}`)}},E=Zq.useCallback((L)=>{if(L===Gq){nq(J);return}let O=rq(L);if(O!==null){B(O);return}P(L)},[J]),zq=Zq.useCallback(()=>{B(null),zQ().then(H,Jq)},[]),p=()=>{J("Cancelled memory editing",{display:"system"})};return X(QQ,{title:"Memory",onCancel:p,color:"remember",isCancelActive:U===null,hideInputGuide:U!==null,children:U!==null?X(BJ,{dir:U.dir,title:U.title,indexPath:YZ(U.dir,$),isTeamDir:U.isTeamDir,onBack:zq}):V(v,{flexDirection:"column",children:[X(ZQ.Suspense,{fallback:null,children:X(pJ,{onSelect:E,onCancel:p,dirCounts:Z})}),X(v,{marginTop:1,children:V(W,{dimColor:!0,children:["Learn more: ",X(JQ,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var ZQ,Zq,i0=async(J,q,Q)=>{let Z=tJ(Q);if(Z==="tidy")return nq(J);XQ();let[,H]=await Promise.all([Eq(),zQ()]),U=Z===null?null:LZ(Z);return X(kZ,{onDone:J,initialCounts:H,initialBrowse:U})};var NZ=_(()=>{WZ();OJ();hJ();mJ();Sq();cJ();pq();dq();Rq();MJ();JJ();ZJ();NJ();eJ();lq();y();ZQ=Qq(jq(),1),Zq=Qq(jq(),1)});NZ();export{i0 as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A4 as r,B4 as s,C4 as t,D4 as u,E4 as v,F4 as w,G4 as x,H4 as y,I4 as z,J4 as A,K4 as B,L4 as C,j4 as a,k4 as b,l4 as c,m4 as d,n4 as e,o4 as f,p4 as g,q4 as h,r4 as i,s4 as j,t4 as k,u4 as l,v4 as m,w4 as n,x4 as o,y4 as p,z4 as q}from"./cli-1.1.32-vf3r8a91.mjs";import"./cli-1.1.32-a3dfp7ps.mjs";import"./cli-1.1.32-6jxftegx.mjs";import"./cli-1.1.32-rswqkymv.mjs";import"./cli-1.1.32-czrfbd3q.mjs";import"./cli-1.1.32-5xmh2b7j.mjs";import"./cli-1.1.32-g5dzf2w1.mjs";import"./cli-1.1.32-260jjrwt.mjs";import"./cli-1.1.32-2kd689v0.mjs";import"./cli-1.1.32-pve0ffcp.mjs";import"./cli-1.1.32-1rackf2c.mjs";import"./cli-1.1.32-merqy9t2.mjs";import"./cli-1.1.32-v4chz2b0.mjs";import"./cli-1.1.32-kn0zs89y.mjs";import"./cli-1.1.32-m7dxkbpn.mjs";import"./cli-1.1.32-ajhvj43e.mjs";import"./cli-1.1.32-8jkgzjh4.mjs";import"./cli-1.1.32-zeyasrw5.mjs";import"./cli-1.1.32-z7x4jfeb.mjs";import"./cli-1.1.32-7zp3b6gq.mjs";import"./cli-1.1.32-60pc6r2s.mjs";import"./cli-1.1.32-hbwke9cs.mjs";import"./cli-1.1.32-0pmhmsew.mjs";import"./cli-1.1.32-yw64r19c.mjs";C();export{w as resolveSkillModelOverride,u as renderModelName,p as renderDefaultModelSetting,v as parseUserSpecifiedModel,A as normalizeModelStringForAPI,B as modelRejectsSamplingParams,y as modelDisplayString,s as isOpus1mMergeEnabled,b as isNonCustomOpusModel,c as isNative1mModel,x as isLegacyModelRemapEnabled,d as getUserSpecifiedModelSetting,a as getSmallFastModel,j as getRuntimeMainLoopModel,t as getPublicModelDisplayName,r as getOpus5PricingSuffix,q as getOpus46PricingSuffix,z as getMarketingNameForModel,e as getMainLoopModel,h as getDefaultSonnetModel,g as getDefaultOpusModel,k as getDefaultMainLoopModelSetting,l as getDefaultMainLoopModel,i as getDefaultHaikuModel,o as getClaudeAiUserDefaultModelDescription,n as getCanonicalName,f as getBestModel,m as firstPartyNameToCanonical};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./cli-1.1.32-xy1pvy12.mjs";import{ph as r,qh as Pb,rh as v,sh as Qb}from"./cli-1.1.32-nt9eqa35.mjs";import"./cli-1.1.32-2k074m5f.mjs";import"./cli-1.1.32-vmr6f229.mjs";import{HN as U,IN as A,KN as Nb,lC as p,mC as i,nC as Kb,uP as m,vP as Rb}from"./cli-1.1.32-9yka8m9x.mjs";import"./cli-1.1.32-gwf0a8ej.mjs";import"./cli-1.1.32-1913x5jp.mjs";import"./cli-1.1.32-p70gsyp3.mjs";import"./cli-1.1.32-bce46tmm.mjs";import"./cli-1.1.32-y4agg2c2.mjs";import"./cli-1.1.32-4vdyqkkd.mjs";import"./cli-1.1.32-5c5dcwk6.mjs";import"./cli-1.1.32-h7cb9f8y.mjs";import"./cli-1.1.32-1c9z2mtv.mjs";import"./cli-1.1.32-m9p4pd60.mjs";import"./cli-1.1.32-qzjfn21e.mjs";import"./cli-1.1.32-5dq711bj.mjs";import"./cli-1.1.32-8yc37yqa.mjs";import{SW as Jb}from"./cli-1.1.32-hgjgfp8p.mjs";import"./cli-1.1.32-vtzwmjs8.mjs";import"./cli-1.1.32-px6268dx.mjs";import"./cli-1.1.32-gpq33yz0.mjs";import"./cli-1.1.32-d47cvy98.mjs";import"./cli-1.1.32-46wadmxk.mjs";import"./cli-1.1.32-px93hhj4.mjs";import"./cli-1.1.32-n7cyeje8.mjs";import"./cli-1.1.32-5j5n166h.mjs";import"./cli-1.1.32-6317frxz.mjs";import"./cli-1.1.32-qmgvm9rq.mjs";import{n2 as Y,p2 as O}from"./cli-1.1.32-jjanec91.mjs";import{q2 as Hb}from"./cli-1.1.32-6f9r9qcb.mjs";import"./cli-1.1.32-wyv15h7a.mjs";import{B4 as y,D3 as T,E3 as w,J3 as X,L4 as Eb,O3 as C,O4 as g,Q4 as Gb,X3 as qb,f4 as D,g4 as zb,h4 as f,i4 as Bb,t4 as $,y4 as M}from"./cli-1.1.32-vf3r8a91.mjs";import"./cli-1.1.32-a3dfp7ps.mjs";import{F6 as P,G6 as s}from"./cli-1.1.32-6jxftegx.mjs";import"./cli-1.1.32-rswqkymv.mjs";import"./cli-1.1.32-czrfbd3q.mjs";import"./cli-1.1.32-9wsnkggz.mjs";import"./cli-1.1.32-76wfpwbd.mjs";import"./cli-1.1.32-zv1p3q66.mjs";import"./cli-1.1.32-jt6w5mqv.mjs";import"./cli-1.1.32-5xmh2b7j.mjs";import"./cli-1.1.32-r5ww85n4.mjs";import"./cli-1.1.32-g5dzf2w1.mjs";import"./cli-1.1.32-260jjrwt.mjs";import"./cli-1.1.32-2kd689v0.mjs";import"./cli-1.1.32-bt4yfsm7.mjs";import{Afa as e,Xaa as L,cfa as o,ega as x,jfa as c,kga as bb,xfa as u,yfa as h}from"./cli-1.1.32-pve0ffcp.mjs";import"./cli-1.1.32-1rackf2c.mjs";import"./cli-1.1.32-merqy9t2.mjs";import"./cli-1.1.32-v4chz2b0.mjs";import"./cli-1.1.32-kn0zs89y.mjs";import{ria as S,sia as F,tia as kb}from"./cli-1.1.32-m7dxkbpn.mjs";import"./cli-1.1.32-ajhvj43e.mjs";import"./cli-1.1.32-8jkgzjh4.mjs";import"./cli-1.1.32-zeyasrw5.mjs";import"./cli-1.1.32-z7x4jfeb.mjs";import"./cli-1.1.32-7zp3b6gq.mjs";import"./cli-1.1.32-60pc6r2s.mjs";import"./cli-1.1.32-hbwke9cs.mjs";import"./cli-1.1.32-0pmhmsew.mjs";import{Sqa as V,Wqa as n}from"./cli-1.1.32-yw64r19c.mjs";function Ub(k){let b=t.c(17),{onDone:z}=k,B=U(Zb),q=U(Yb),G=U(Xb),J=A(),E;if(b[0]!==B||b[1]!==z)E=function(){let W=Z(B);z(`Kept model as ${P.bold(W)}`,{display:"system"})},b[0]=B,b[1]=z,b[2]=E;else E=b[2];let Q=E,H;if(b[3]!==G||b[4]!==B||b[5]!==z||b[6]!==J)H=function(W,_){J((d)=>({...d,mainLoopModel:W,mainLoopModelForSession:null}));let N=`Set model to ${P.bold(Z(W))}`;if(_!==void 0)N=N+` with ${P.bold(_)} effort`;let j=void 0;if(T()){if(C(),!X(W)&&G)J(Wb),j=!1;else if(X(W)&&w()&&G)N=N+" · Fast mode ON",j=!0}if(v(W,j===!0,y()))N=N+" · Billed as extra usage";if(j===!1)N=N+" · Fast mode OFF";z(N)},b[3]=G,b[4]=B,b[5]=z,b[6]=J,b[7]=H;else H=b[7];let R=H,K;if(b[8]!==G||b[9]!==B)K=T()&&G&&X(B)&&w(),b[8]=G,b[9]=B,b[10]=K;else K=b[10];let I;if(b[11]!==Q||b[12]!==R||b[13]!==B||b[14]!==q||b[15]!==K)I=Y(r,{initial:B,sessionModel:q,onSelect:R,onCancel:Q,isStandaloneCommand:!0,showFastModeNotice:K}),b[11]=Q,b[12]=R,b[13]=B,b[14]=q,b[15]=K,b[16]=I;else I=b[16];return I}function Wb(k){return{...k,fastMode:!1}}function Xb(k){return k.fastMode}function Yb(k){return k.mainLoopModelForSession}function Zb(k){return k.mainLoopModel}function yb({args:k,onDone:b}){let z=U((G)=>G.fastMode),B=A(),q=k==="default"?null:k;return a.useEffect(()=>{async function G(){if(q&&!f(q)){b(`Model '${q}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(q&&jb(q)){b("Opus with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(q&&Tb(q)){b("Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(!q){J(null);return}if(Ib(q)){J(q);return}try{let{valid:E,error:Q}=await m(q);if(E)J(q);else b(Q||`Model '${q}' not found`,{display:"system"})}catch(E){b(`Failed to validate model: ${E.message}`,{display:"system"})}}function J(E){B((K)=>({...K,mainLoopModel:E,mainLoopModelForSession:null}));let Q=E?P.dim(" · for this project"):"",H=`Set model to ${P.bold(Z(E))}${Q}`,R=void 0;if(T()){if(C(),!X(E)&&z)B((K)=>({...K,fastMode:!1})),R=!1;else if(X(E)&&z)H+=" · Fast mode ON",R=!0}if(v(E,R===!0,y()))H+=" · Billed as extra usage";if(R===!1)H+=" · Fast mode OFF";b(H)}G()},[q,b,B]),null}function Ib(k){return D.includes(k.toLowerCase().trim())}function jb(k){let b=k.toLowerCase();return!p()&&!y()&&b.includes("opus")&&b.includes("[1m]")}function Tb(k){let b=k.toLowerCase();return!i()&&!y()&&(b.includes("sonnet[1m]")||b.includes("sonnet-4-6[1m]"))}function wb(k){let{onDone:b}=k,z=U(Ab),B=U(Cb),q=U(xb),G=Z(z),J=q!==void 0?` (effort: ${q})`:"",E=L(),H=(E.activeModelForProject?E.activeModelForProjectProfileId===void 0||E.activeModelForProjectProfileId===c()?.id:!1)?P.dim(" (project)"):"";if(B)b(`Current model: ${P.bold(Z(B))} (session override from plan mode)
|
|
2
|
+
Base model: ${G}${H}${J}`);else b(`Current model: ${G}${H}${J}`);return null}function xb(k){return k.effortValue}function Cb(k){return k.mainLoopModelForSession}function Ab(k){return k.mainLoopModel}function vb(k,b){if(k.length!==b.length)return!1;return k.every((z,B)=>{let q=b[B];return q!==void 0&&z.value===q.value&&z.label===q.label&&z.description===q.description&&z.descriptionForModel===q.descriptionForModel})}async function _b(){if(!x()?.startsWith("openai:"))return;try{let k=await g();if(k.length===0)return;let b=u();if(vb(b,k))return;h(k)}catch{}}function Z(k){let b=M(k??$());return k===null?`${b} (default)`:b}var t,a,mb=async(k,b,z)=>{if(z=z?.trim()||"",F.includes(z))return Y(wb,{onDone:k});if(S.includes(z)){k("Run /model to open the model selection menu, or /model [modelName] to set the model.",{display:"system"});return}if(z)return Y(yb,{args:z,onDone:k});if(x()?.startsWith("openai:"))_b();return Y(Ub,{onDone:k})};var Ob=n(()=>{s();Pb();kb();Nb();o();Qb();qb();zb();Kb();Gb();e();Eb();Bb();Rb();bb();O();t=V(Jb(),1),a=V(Hb(),1)});Ob();export{mb as call};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{$8 as iQ,V8 as nQ,W8 as m,X8 as E,Z8 as U,_8 as bQ,a9 as YQ}from"./cli-1.1.32-3gbh5q5w.mjs";import{Aqa as dQ,Bqa as kQ,Cqa as I0,Dqa as M0,Eqa as A0,Fqa as SQ,Gqa as G1,Jqa as d0,gqa as B,hqa as X,iqa as N0,jqa as w,qqa as xQ,rqa as Q0,sqa as B0,tqa as $0,uqa as WQ,vqa as lQ,wqa as p0,xqa as v,yqa as U1,zqa as D}from"./cli-1.1.32-0pmhmsew.mjs";import{Wqa as u}from"./cli-1.1.32-yw64r19c.mjs";var _Q=u(()=>{p0()});function f(V){if(V.inputSchema.type!=="object")throw Error(`JSON schema for tool "${V.name}" must be an object, but got ${V.inputSchema.type}`);return{type:"custom",name:V.name,input_schema:V.inputSchema,description:V.description,run:V.run,parse:(Q)=>Q,...V.close?{close:V.close}:{}}}var pQ=u(()=>{d0();_Q()});function JQ(V,Q){let $=U.relative(V,Q);return $===""||!$.startsWith(".."+U.sep)&&$!==".."&&!U.isAbsolute($)}async function jQ(V,Q){for(let $ of V)if(JQ(await e(U.resolve($)),Q))return $;return}function $Q(V){let Q=V?.code;return typeof Q==="string"?Q:void 0}async function e(V){let Q=[],$=V,z=0;for(;;){let K;try{K=await S.realpath($)}catch(Z){let q;try{q=(await S.lstat($)).isSymbolicLink()}catch(H){let W=$Q(H);if(W!=="ENOENT"&&W!=="ENOTDIR")throw H;let J=U.dirname($);if(J===$)throw H;Q.push(U.basename($)),$=J;continue}if(!q)throw Z;if(++z>c0)throw Object.assign(Error("too many levels of symbolic links"),{code:"ELOOP"});$=U.resolve(U.dirname($),await S.readlink($));continue}return Q.length?U.join(K,...Q.reverse()):K}}async function hQ(V,Q,$){let z=$?.allowedRoots??[],K=await e(U.resolve(V)),Z;try{Z=await e(U.resolve(K,Q))}catch(H){throw new D(i(H,`path ${JSON.stringify(Q)}`))}if(JQ(K,Z)||await jQ(z,Z)!==void 0)return Z;let q=z.length?"the session's working directory and its other permitted directories":"the session's working directory";throw new D(`path ${JSON.stringify(Q)} is outside ${q}`)}async function LQ(V,Q){let $=U.dirname(V),z=U.join($,`.tmp-${process.pid}-${m.randomUUID()}`),K=await S.stat(V).then((q)=>q.mode&511,()=>{return}),Z;try{if(Z=await S.open(z,"wx",h0),K!==void 0)await Z.chmod(K);await Z.writeFile(Q,"utf-8"),await Z.sync(),await Z.close(),Z=void 0,await S.rename(z,V)}catch(q){if(Z)await Z.close().catch(()=>{});throw await S.unlink(z).catch(()=>{}),q}}function i(V,Q){let $=$Q(V);switch($){case"ENOENT":return`${Q}: no such file or directory`;case"EACCES":case"EPERM":return`${Q}: permission denied`;case"ENOTDIR":return`${Q}: not a directory`;case"EISDIR":return`${Q}: is a directory`;case"ELOOP":return`${Q}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${Q}: file name too long`;case"ENOSPC":return`${Q}: no space left on device`;case"EMFILE":case"ENFILE":return`${Q}: too many open files`;default:return`${Q}: ${$!==void 0?`i/o error (${$})`:"i/o error"}`}}var S,QQ=448,h0=384,c0=40;var TQ=u(()=>{YQ();dQ();S=E.promises});async function i0(V){let{client:Q,sessionId:$}=V;if(!Q)return async()=>{};let z=WQ(Q),K=V.session;if(!K){if($===void 0)return async()=>{};z.warn("AgentToolContext.sessionId is deprecated and costs an extra session fetch; fetch the session once and set `session` instead",{component:"agent-tool-context"}),K=await Q.beta.sessions.retrieve($)}let Z=U.resolve(V.workdir,"skills"),q=[];for(let H of K.agent.skills)try{let W=await Q.beta.skills.versions.retrieve(H.version,{skill_id:H.skill_id}),J=U.basename(W.name.trim());if(J===""||J==="."||J==="..")J=H.skill_id;let Y=U.resolve(Z,J);if(Y!==Z&&!Y.startsWith(Z+U.sep)){z.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:W.name});continue}let M=await Q.beta.skills.versions.download(W.id,{skill_id:H.skill_id});await L.rm(Y,{recursive:!0,force:!0}),await L.mkdir(Y,{recursive:!0,mode:QQ}),q.push(Y),await oQ(M,Y),z.info("downloaded skill",{component:"agent-tool-context",skill_id:H.skill_id,version:W.id,dest:Y})}catch(W){z.warn("failed to download skill",{component:"agent-tool-context",skill_id:H.skill_id,error:String(W)})}return async()=>{for(let H of q)await L.rm(H,{recursive:!0,force:!0}).catch((W)=>{z.warn("failed to clean up skill",{component:"agent-tool-context",dest:H,error:String(W)})})}}function l0(V){for(let Q of V){let $=Q.trim();if(!$)continue;if(U.isAbsolute($)||$.split(/[\\/]/).includes(".."))throw new w(`refusing to extract unsafe archive member: ${$}`)}}function cQ(V){let Q=V.split(`
|
|
2
|
+
`);if(Q[Q.length-1]==="")Q.pop();return Q}function o0(V,Q){return/^[\x20-\x7E]+$/.test(Q)&&!/[\\^#]/.test(Q)&&!(V==="unzip"&&Q.startsWith("-"))}function s0(V,Q,$){let z=cQ(Q),K=cQ($);if(z.length!==K.length)throw new w(vQ);let Z=[],q=[];return z.forEach((H,W)=>{if(a0[V].has(K[W].charAt(0))){Z.push(H);return}if(!o0(V,H))throw new w(`refusing to extract archive: cannot safely exclude member ${JSON.stringify(H)}`);q.push(H)}),{plain:Z,special:q}}async function aQ(V){for(let Q of await L.readdir(V,{withFileTypes:!0}))if(Q.isDirectory())await aQ(U.join(V,Q.name));else if(!Q.isFile())throw new w(vQ)}async function yQ(V,Q){try{let{stdout:$}=await n0(V,Q);return $}catch($){if($Q($)==="ENOENT")throw new w(`skill extraction requires the \`${V}\` command, but it was not found on PATH`);throw $}}function r0(V){let Q,$=!1;for(let z of V){let K=z.trim().split("/").filter((q)=>q!==""&&q!==".");if(K.length===0)continue;let Z=K[0];if(Q===void 0)Q=Z;else if(Z!==Q)return"";if(K.length>1)$=!0}return Q!==void 0&&$?Q:""}async function oQ(V,Q){let $=U.join(Q,`.skill-archive-${process.pid}-${Date.now()}`);if(!V.body)throw new w("skill download response had no body");await bQ.promises.pipeline(bQ.Readable.fromWeb(V.body),E.createWriteStream($));let z=U.join(U.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`),K=U.join(U.dirname(Q),`.skill-exclude-${process.pid}-${Date.now()}`);try{let Z=await e0($,4),q=Z.length>=4&&Z[0]===80&&Z[1]===75&&Z[2]===3&&Z[3]===4,H=q?"unzip":"tar",W=await yQ(H,q?["-Z1",$]:["-tf",$]),J=await yQ(H,q?["-Z","--h","--t",$]:["-tvf",$]),{plain:Y,special:M}=s0(H,W,J);l0([...Y,...M]);let G=r0(Y);if(await L.mkdir(z,{recursive:!0,mode:QQ}),Y.length>0)await yQ(H,await t0(H,$,z,M,K));await aQ(z);let y=G?U.join(z,G):z,b=await L.readdir(y).catch((x)=>{throw $Q(x)==="ENOENT"?new w(vQ):x});for(let x of b)await L.rename(U.join(y,x),U.join(Q,x))}finally{await L.rm($,{force:!0}),await L.rm(K,{force:!0}),await L.rm(z,{recursive:!0,force:!0})}}async function t0(V,Q,$,z,K){let Z=z.map((q)=>q.replace(/[*?[\\]/g,"\\$&"));if(V==="unzip")return["-oq",Q,"-d",$,...Z.length>0?["-x",...Z]:[]];if(Z.length===0)return["-xf",Q,"-C",$];return await L.writeFile(K,Z.join(`
|
|
3
|
+
`)+`
|
|
4
|
+
`,{flag:"wx",mode:384}),["-xf",Q,"-C",$,"-X",K]}async function e0(V,Q){let $=await L.open(V,"r");try{let z=Buffer.alloc(Q),{bytesRead:K}=await $.read(z,0,Q,0);return z.subarray(0,K)}finally{await $.close()}}var L,n0,vQ="skill archive listing is inconsistent; refusing to extract",a0;var sQ=u(()=>{YQ();xQ();lQ();TQ();L=E.promises,n0=iQ.promisify(nQ.execFile);a0={unzip:new Set(["-","d","?"]),tar:new Set(["-","d","C"])}});function PQ(V){return V.startsWith("/")&&!V.split("/").includes("..")}class a{constructor(V,Q,$=!1){this.hashes=new Map,this.rootPath=V,this.removedOnDispose=Q,this.decoder=$?new TextDecoder("utf-8",{fatal:!0}):void 0}static async open(V,Q){if(!z1())throw Error("FileStore requires O_NOFOLLOW support on this platform");let $=!1;try{await k.lstat(V)}catch(z){if(z.code!=="ENOENT")throw z;$=!0}return new a(U.resolve(V),$,Q?.utf8??!1)}async createRoot(){await K1(this.rootPath)}root(){return{path:this.rootPath,removedOnDispose:this.removedOnDispose}}async dispose(){if(!this.removedOnDispose)return;await k.rm(this.rootPath,{recursive:!0,force:!0})}async put(V,Q,$){let z=V.replace(/\\/g,"/");if(z.endsWith("/")||z.endsWith("/.")||z===""||z===".")throw new N(N.NOT_A_FILE,V);let K=this.resolveUnderRoot(V),Z=typeof Q==="string"?Q0(Q):Q;this.requireUtf8(V,Z),await rQ(this.rootPath,U.dirname(K)),await Z1(K,Z,$?.executable??!1)}async get(V){let Q=this.resolveUnderRoot(V),$;try{$=await z0(V,Q)}catch(K){if(K.code==="ENOENT")return null;throw K}let z;try{let K=await $.readFile();z=new Uint8Array(K.buffer,K.byteOffset,K.byteLength)}finally{await $.close()}return this.requireUtf8(V,z),z}async ls(V="/"){let Q=this.resolveUnderRoot(V);return new Set((await tQ(this.rootPath,V,Q)).map(([$])=>$))}async findSymlinks(V="/"){let Q=this.resolveUnderRoot(V);return q1(this.rootPath,V,Q)}async hashtree(V="/"){let Q=this.resolveUnderRoot(V),$=UQ.nowNs(),z=Object.create(null);for(let[K,Z]of await tQ(this.rootPath,V,Q)){let q=await this.hashViaCache(K,Z,$);if(q!==null)z[K]=q}return z}async hashFile(V){let Q=this.resolveUnderRoot(V),$;try{$=await k.lstat(Q,{bigint:!0})}catch(K){if(K.code==="ENOENT")return null;throw K}if($.isSymbolicLink())throw new N(N.IS_A_SYMLINK,V);if(!$.isFile())throw new N(N.NOT_A_FILE,V);let z=U.relative(this.rootPath,Q).split(U.sep).join("/");return this.hashViaCache(z,Q,UQ.nowNs())}async move(V,Q){let $=this.resolveUnderRoot(V),z=this.resolveUnderRoot(Q);if($===this.rootPath||z===this.rootPath)return;if(await k.stat(z).then(()=>!0,()=>!1))throw new N(N.MOVE_DESTINATION_EXISTS,Q);await rQ(this.rootPath,U.dirname(z)),await k.rename($,z)}async remove(V){let Q=this.resolveUnderRoot(V);if(Q===this.rootPath)return;let $;try{$=await k.lstat(Q,{bigint:!0})}catch(z){if(z.code==="ENOENT")return;throw z}if($.isDirectory())await k.rm(Q,{recursive:!0,force:!0});else try{await k.unlink(Q)}catch(z){if(z.code!=="ENOENT")throw z}}resolveUnderRoot(V){let Q=V.replace(/\\/g,"/").replace(/^\/+/,""),$=Q.split("/").filter((z)=>z!==""&&z!==".");if(U.posix.isAbsolute(Q)||$.includes(".."))throw new N(N.ESCAPES_ROOT,V);return $.length===0?this.rootPath:U.join(this.rootPath,...$)}requireUtf8(V,Q){if(!this.decoder)return;try{this.decoder.decode(Q)}catch{throw new N(N.NOT_UTF8,V)}}async hashViaCache(V,Q,$){let z;try{z=await k.lstat(Q,{bigint:!0})}catch(q){if(q.code==="ENOENT")return null;throw q}if(!z.isFile())return null;let K=this.hashes.get(V),Z;if(K!==void 0&&Y1(K,z))Z=K.sha;else try{Z=await UQ.hashFile(Q)}catch(q){let H=q.code;if(H==="ENOENT"||q instanceof N)return null;if(H==="ELOOP"||H==="EMLINK")return null;throw q}if(J1(z,$))this.hashes.set(V,{mtimeNs:z.mtimeNs,ctimeNs:z.ctimeNs,size:z.size,sha:Z});return Z}}function z1(){return EQ!==0}async function K1(V){let Q=[],$=V;for(;;){try{await k.stat($);break}catch(K){let Z=K.code;if(Z!=="ENOENT"&&Z!=="ENOTDIR"&&Z!=="ELOOP")throw K}Q.push($);let z=U.dirname($);if(z===$)break;$=z}for(let z of Q.reverse())try{await k.mkdir(z,{mode:V0})}catch(K){if(K.code!=="EEXIST")throw K}}async function rQ(V,Q){let $=U.relative(V,Q);if($==="")return;let z=V;for(let K of $.split(U.sep)){z=U.join(z,K);try{await k.mkdir(z,{mode:V0})}catch(Z){if(Z.code!=="EEXIST")throw Z}}}async function Z1(V,Q,$){let z=$?$1:Q1,K=U.join(U.dirname(V),`.fs-${m.randomBytes(8).toString("hex")}.tmp`),Z;try{Z=await k.open(K,l.O_WRONLY|l.O_CREAT|l.O_EXCL|EQ,z),await Z.writeFile(Q),await Z.close(),Z=void 0,await k.rename(K,V)}catch(q){if(Z)await Z.close().catch(()=>{});throw await k.unlink(K).catch(()=>{}),q}}async function z0(V,Q){let $;try{$=await k.open(Q,l.O_RDONLY|EQ|V1)}catch(z){let K=z.code;if(K==="ELOOP"||K==="EMLINK")throw new N(N.IS_A_SYMLINK,V);throw z}try{if(!(await $.stat()).isFile())throw new N(N.NOT_A_FILE,V)}catch(z){throw await $.close().catch(()=>{}),z}return $}async function X1(V){let Q=m.createHash("sha256"),$=await z0(U.basename(V),V),z=new Uint8Array(1048576);try{for(;;){let{bytesRead:K}=await $.read(z,0,z.length);if(K===0)break;Q.update(z.subarray(0,K))}}finally{await $.close()}return Q.digest("hex")}async function tQ(V,Q,$){if(!await H1(Q,$))return[];let z=[];return await K0($,(K,Z)=>{if(Z.isFile())z.push([U.relative(V,K).split(U.sep).join("/"),K])}),z.sort(),z}async function q1(V,Q,$){let z=(q)=>U.relative(V,q).split(U.sep).join("/"),K;try{K=await k.lstat($,{bigint:!0})}catch(q){let H=q.code;if(H==="ENOENT"||H==="ENOTDIR")return new Set;throw q}if(K.isSymbolicLink())return new Set([z($)]);if(!K.isDirectory())throw new N(N.NOT_A_DIRECTORY,Q);let Z=new Set;return await K0($,(q,H)=>{if(H.isSymbolicLink())Z.add(z(q))}),Z}async function H1(V,Q){let $;try{$=await k.lstat(Q,{bigint:!0})}catch(z){let K=z.code;if(K==="ENOENT"||K==="ENOTDIR")return!1;throw z}if(!$.isDirectory())throw new N(N.NOT_A_DIRECTORY,V);return!0}async function K0(V,Q){let $=[V];while($.length){let z=$.pop(),K;try{K=await k.readdir(z,{withFileTypes:!0})}catch(Z){if(Z.code==="ENOENT")continue;throw Z}for(let Z of K){let q=U.join(z,Z.name);if(Q(q,Z),Z.isDirectory()&&!Z.isSymbolicLink())$.push(q)}}}function Y1(V,Q){return Q.mtimeNs===V.mtimeNs&&Q.ctimeNs===V.ctimeNs&&Q.size===V.size}function J1(V,Q){return(V.mtimeNs>V.ctimeNs?V.mtimeNs:V.ctimeNs)<Q-UQ.timestampTrustMarginNs}var k,l,V0=448,Q1=384,$1=448,EQ,V1,N,W1=2000000000n,UQ,Z0,eQ;var X0=u(()=>{YQ();$0();k=E.promises,l=E.constants,EQ=l.O_NOFOLLOW??0,V1=l.O_NONBLOCK??0;N=class N extends Error{constructor(V,Q){super(`path ${JSON.stringify(Q)} ${V}`);this.name="FileStoreError",this.reason=V,this.relPath=Q}};N.ESCAPES_ROOT="escapes the store root";N.IS_A_SYMLINK="is a symlink";N.NOT_A_FILE="is not a regular file";N.NOT_A_DIRECTORY="is not a directory";N.NOT_UTF8="is not valid utf-8";N.MOVE_DESTINATION_EXISTS="already exists";a.isPathLegal=PQ;UQ={hashFile:X1,timestampTrustMarginNs:W1,nowNs:()=>BigInt(Date.now())*1000000n},Z0=a,eQ=Symbol.asyncDispose;if(eQ)Object.defineProperty(a.prototype,eQ,{value:a.prototype.dispose,configurable:!0,writable:!0})});function D0(V){return m.createHash("sha256").update(`version ${G0}
|
|
5
|
+
${V}`,"utf-8").digest("hex")}class O0{constructor(V,Q,$){this.mode=V,this.cap=Q,this.waiveWindow=$,this.attempted=0,this.capped=0,this.suppressed=0}takeSlot(){if(this.attempted>=this.cap)return this.capped++,!1;return this.attempted++,!0}}class R0{constructor(V,Q){A.add(this),F.set(this,void 0),MQ.set(this,void 0),VQ.set(this,void 0),AQ.set(this,void 0),I.set(this,void 0),o.set(this,void 0),BQ.set(this,!1),P.set(this,[]),B(this,F,V,"f"),B(this,MQ,Q.workdir,"f"),B(this,VQ,Q.syncIntervalMs??kQ,"f"),M0(X(this,VQ,"f"),"syncIntervalMs"),B(this,AQ,Q.syncDeletions??"enabled","f"),B(this,I,WQ(V),"f"),B(this,o,Date.now(),"f")}get roots(){return X(this,P,"f").map((V)=>V.files.root().path)}get readOnlyRoots(){return X(this,P,"f").filter((V)=>V.readOnly).map((V)=>V.files.root().path)}async download(V){for(let Q of V.resources){if(Q.type!=="memory_store")continue;let $=X(this,A,"m",k0).call(this,Q),z;try{if(z={memoryStoreId:Q.memory_store_id,files:await Z0.open($,{utf8:!0}),readOnly:Q.access==="read_only",baseline:new Map,refusedShas:new Map,pendingDeletes:new Map},!z.files.root().removedOnDispose)throw new _(`something already exists at the memory store's path: ${$} (memory_store_id=${Q.memory_store_id}); it must not exist when the session starts`);try{await z.files.createRoot()}catch(K){if(!r(K))throw K;throw new _(`cannot create the memory store's folder: ${$} (memory_store_id=${Q.memory_store_id}): ${K}; the worker host must make this mount path writable`,K)}await X(this,A,"m",uQ).call(this,z),X(this,I,"f").info("downloaded memories",{count:z.baseline.size,memory_store_id:z.memoryStoreId,dest:z.files.root().path}),X(this,P,"f").push(z)}catch(K){if(z)await z.files.dispose().catch(()=>{});if(K instanceof _)throw K;throw new _(`failed to download memory store memory_store_id=${Q.memory_store_id}: ${K}`,K)}}B(this,o,Date.now(),"f")}async finish(){if(X(this,BQ,"f"))throw new w("finish() was already called: it is the session's last sync and runs once");B(this,BQ,!0,"f"),await this.syncAll(!0)}async syncAll(V){await Promise.all(X(this,P,"f").map((Q)=>X(this,A,"m",C0).call(this,Q,V))),B(this,o,Date.now(),"f")}async syncIfDue(){if(Date.now()-X(this,o,"f")<X(this,VQ,"f"))return;await this.syncAll(!1)}async flushWrites(V){await Promise.all(X(this,P,"f").map((Q)=>X(this,A,"m",w0).call(this,Q,V)))}async dispose(){for(let V of X(this,P,"f")){let Q=V.files.root();try{let $=await X(this,A,"m",IQ).call(this,V);if(!$.markerOk&&Object.keys($.files).length>0){X(this,I,"f").warn(`${$.distrustReason}; leaving the memory store folder on disk`,{root:Q.path,memory_store_id:V.memoryStoreId});continue}await V.files.dispose()}catch($){if(!($ instanceof N)&&!r($))throw $;X(this,I,"f").warn("failed to remove the memory store folder",{root:V.files.root().path,memory_store_id:V.memoryStoreId,error:String($)});continue}if(Q.removedOnDispose)X(this,I,"f").info("removed memory store dir",{dest:Q.path,memory_store_id:V.memoryStoreId})}}}function r(V){return typeof V==="object"&&V!==null&&typeof V.code==="string"}async function w1(V,Q){if(!Q){await V;return}let $,z=new Promise((K)=>{if($=K,Q.aborted)K()});Q.addEventListener("abort",$,{once:!0});try{await Promise.race([V,z])}finally{Q.removeEventListener("abort",$)}}var A,F,MQ,VQ,AQ,I,o,BQ,P,k0,IQ,C0,w0,FQ,uQ,q0,H0,gQ,Y0,J0,DQ,NQ,W0,U0,D1=30000,s=".anthropic-memory-store",G0=1,N1=30000,B1=100,I1=20,M1=16,A1=32,k1=8,C1=50,_;var j0=u(()=>{N0();YQ();xQ();lQ();$0();U1();X0();A0();A0();_=class _ extends w{constructor(V,Q){super(V);if(this.name="SessionMemoryError",Q!==void 0)this.cause=Q}};F=new WeakMap,MQ=new WeakMap,VQ=new WeakMap,AQ=new WeakMap,I=new WeakMap,o=new WeakMap,BQ=new WeakMap,P=new WeakMap,A=new WeakSet,k0=function(Q){if(Q.mount_path){if(!PQ(Q.mount_path))throw new _(`memory store mount_path is not a clean absolute path: ${JSON.stringify(Q.mount_path)} (memory_store_id=${Q.memory_store_id})`);return Q.mount_path}return U.join(X(this,MQ,"f"),"memory",Q.name||Q.memory_store_id)},IQ=async function(Q){let $=await Q.files.hashtree(),z=$[s];if(delete $[s],z===D0(Q.memoryStoreId))return{files:$,markerOk:!0,distrustReason:null};return{files:$,markerOk:!1,distrustReason:z!==void 0?"the marker file does not match this store":"the marker file is gone"}},C0=async function(Q,$){try{let z=await X(this,A,"m",IQ).call(this,Q),K=z.files;if(!z.markerOk){if(Object.keys(K).length>0){X(this,I,"f").warn(`${z.distrustReason}; leaving the memory store folder as found and not syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}await X(this,A,"m",FQ).call(this,Q,"the folder or its marker is gone");return}if(Object.keys(K).length===0&&Q.baseline.size>1){await X(this,A,"m",FQ).call(this,Q,"every memory file is gone at once");return}let Z=new Map;for await(let[Y,M]of X(this,A,"m",DQ).call(this,Q.memoryStoreId))Z.set(Y,M);let q=new O0(X(this,AQ,"f"),Math.max(k1,Math.min(C1,Math.floor(Q.baseline.size/4))),$),H=[],W=new Map,J=[...new Set([...Z.keys(),...Object.keys(K),...Q.baseline.keys()])].sort();for(let Y of J){let M=Z.get(Y),G=K[Y],y=Q.baseline.get(Y),b;if(G===void 0&&y!==void 0&&M!==void 0&&M.content_sha256===y&&!Q.readOnly)b=await X(this,A,"m",W0).call(this,Q,Y,M,y,q);else b=await X(this,A,"m",q0).call(this,Q,Y,M,G,H);if(b!==void 0)W.set(Y,b)}if(Q.baseline=W,await X(this,A,"m",Y0).call(this,Q,H),q.suppressed>0)X(this,I,"f").debug("remote deletes are disabled; locally deleted memories stay on the server",{count:q.suppressed,memory_store_id:Q.memoryStoreId});if(q.capped>0)X(this,I,"f").warn(`delete cap reached: ${q.mode==="log_only"?"would send":"sent"} ${q.attempted} deletes, held ${q.capped} for later syncs`,{memory_store_id:Q.memoryStoreId})}catch(z){X(this,I,"f").warn("memory sync failed",{memory_store_id:Q.memoryStoreId,error:String(z)})}},w0=async function(Q,$){let z=new Map,K=new Set,Z=async()=>{if(Q.readOnly)return;let q=await X(this,A,"m",IQ).call(this,Q);if(!q.markerOk){X(this,I,"f").warn(`${q.distrustReason}; not uploading anything from the memory store folder`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}for(let[J,Y]of Object.entries(q.files))if(Y!==Q.baseline.get(J)&&Q.refusedShas.get(J)!==Y)z.set(J,Y),K.add(J);if(z.size===0||$?.aborted)return;let H=new Map;for await(let[J,Y]of X(this,A,"m",DQ).call(this,Q.memoryStoreId)){if($?.aborted)return;H.set(J,Y)}let W=[];for(let J of[...z.keys()].sort()){let Y=z.get(J),M=Q.baseline.get(J),G=H.get(J);if(G!==void 0&&G.content_sha256===Y){Q.baseline.set(J,G.content_sha256),K.delete(J);continue}if(G!==void 0&&G.content_sha256!==M){X(this,I,"f").warn("memory changed both locally and remotely; the flush leaves the remote version",{path:J,memory_store_id:Q.memoryStoreId}),K.delete(J);continue}W.push([J,Y,G])}await X(this,A,"m",J0).call(this,Q,W,K,$)};try{if(await w1(Z(),$),$?.aborted&&K.size>0)X(this,I,"f").warn(`memory flush cut off part-way; ${K.size} of ${z.size} changed files had not finished uploading`,{memory_store_id:Q.memoryStoreId})}catch(q){X(this,I,"f").warn("memory flush failed",{memory_store_id:Q.memoryStoreId,error:String(q)})}},FQ=async function(Q,$){X(this,I,"f").warn(`${$}; re-downloading the memory store folder instead of syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId}),await Q.files.createRoot(),await X(this,A,"m",uQ).call(this,Q)},uQ=async function(Q){Q.baseline=new Map,Q.pendingDeletes.clear(),await Q.files.put(s,`version ${G0}
|
|
6
|
+
${Q.memoryStoreId}`);for await(let[$,z]of X(this,A,"m",DQ).call(this,Q.memoryStoreId,"full"))if(await X(this,A,"m",gQ).call(this,Q,$,z.content??""))Q.baseline.set($,z.content_sha256)},q0=async function(Q,$,z,K,Z){let q=Q.baseline.get($);if(K!==void 0)Q.pendingDeletes.delete($);if(!z){if(K===void 0){Q.pendingDeletes.delete($);return}if(q!==void 0){if(K===q){let M=await X(this,A,"m",H0).call(this,Q,$,q);if(M===void 0)return;if(M===q)return q;K=M}if(Q.readOnly)X(this,I,"f").warn("memory deleted remotely but edited locally; keeping the file, which a read-only store cannot push",{path:$,memory_store_id:Q.memoryStoreId});else if(Q.refusedShas.get($)!==K)X(this,I,"f").info("memory deleted remotely but edited locally; re-creating it from the file",{path:$,memory_store_id:Q.memoryStoreId})}if(Q.readOnly)return;if(Q.refusedShas.get($)===K)return;return await X(this,A,"m",NQ).call(this,Q,$,K,void 0)}let H=z.content_sha256,W=H!==q,J=K!==void 0&&K!==q&&K!==H,Y=!Q.readOnly&&J;if(K===void 0&&q!==void 0){if(W)X(this,I,"f").warn("memory deleted locally but changed remotely; restoring the remote version",{path:$,memory_store_id:Q.memoryStoreId}),Q.pendingDeletes.delete($),Z.push([$,z]);return q}if(W){if(K===H)return H;if(J)X(this,I,"f").warn("memory changed both locally and remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});return Z.push([$,z]),q}if(Y){if(Q.refusedShas.get($)===K)return H;return await X(this,A,"m",NQ).call(this,Q,$,K,z)??H}return H},H0=async function(Q,$,z){let K;try{K=await Q.files.hashFile($)}catch(Z){if(!(Z instanceof N)&&!r(Z))throw Z;return z}if(K===null)return;if(K!==z)return K;try{await Q.files.remove($)}catch(Z){if(!(Z instanceof N)&&!r(Z))throw Z;return X(this,I,"f").warn("failed to remove memory deleted remotely",{path:$,memory_store_id:Q.memoryStoreId,error:String(Z)}),z}return},gQ=async function(Q,$,z){try{await Q.files.put($,z)}catch(K){if(!(K instanceof N)&&!r(K))throw K;return X(this,I,"f").warn("failed to write memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(K)}),!1}return!0},Y0=async function(Q,$){if($.length===0)return;let z=async(q,H)=>{let W;try{W=await X(this,F,"f").beta.memoryStores.memories.retrieve(H.id,{memory_store_id:Q.memoryStoreId,view:"full"})}catch(J){if(v(J,404))return;X(this,I,"f").warn("failed to fetch memory content",{path:q,memory_store_id:Q.memoryStoreId,error:String(J)});return}if(await X(this,A,"m",gQ).call(this,Q,q,W.content??""))Q.baseline.set(q,W.content_sha256)},K=$[Symbol.iterator](),Z=async()=>{for(let[q,H]of K)await z(q,H)};await Promise.all(Array.from({length:Math.min(M1,$.length)},Z))},J0=async function(Q,$,z,K){let Z=$[Symbol.iterator](),q=async()=>{for(let[H,W,J]of Z){if(K?.aborted)return;let Y=await X(this,A,"m",NQ).call(this,Q,H,W,J);if(z.delete(H),Y!==void 0)Q.baseline.set(H,Y)}};await Promise.all(Array.from({length:Math.min(A1,$.length)},q))},DQ=async function*(Q,$="basic"){let z=$==="basic"?B1:I1;for await(let K of X(this,F,"f").beta.memoryStores.memories.list(Q,{view:$,limit:z})){if(K.type!=="memory")continue;let Z=K.path.replace(/^\/+/,"");if(Z===s){X(this,I,"f").warn("the server listed the reserved marker path; skipping",{path:K.path,memory_store_id:Q});continue}yield[Z,K]}},NQ=async function V(Q,$,z,K){try{let Z=await Q.files.get($);if(Z===null)return;let q=B0(Z),H=K?await X(this,F,"f").beta.memoryStores.memories.update(K.id,{memory_store_id:Q.memoryStoreId,content:q,precondition:{type:"content_sha256",content_sha256:K.content_sha256}}):await X(this,F,"f").beta.memoryStores.memories.create(Q.memoryStoreId,{path:"/"+$,content:q});return Q.refusedShas.delete($),H.content_sha256}catch(Z){if(K&&v(Z,404))return await X(this,A,"m",V).call(this,Q,$,z,void 0);let q=Z instanceof N||v(Z,400)||v(Z,413);if(K&&v(Z,409))X(this,I,"f").warn("memory changed both locally and remotely; the upload was refused and the local edit loses",{path:$,memory_store_id:Q.memoryStoreId});else if(q&&z!==void 0)Q.refusedShas.set($,z),X(this,I,"f").warn("the server rejected this memory file, so it stays un-synced until its content changes",{path:$,memory_store_id:Q.memoryStoreId,rejection:String(Z)});else X(this,I,"f").warn("failed to upload memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(Z)});return}},W0=async function(Q,$,z,K,Z){if(Z.mode==="disabled")return Z.suppressed++,K;let q=Q.pendingDeletes.get($);if(q===void 0)q=Date.now(),Q.pendingDeletes.set($,q);if(!Z.waiveWindow&&Date.now()-q<N1)return K;let H,W;try{H=await Q.files.hashFile(s)===D0(Q.memoryStoreId),W=await Q.files.hashFile($)===null}catch(Y){if(!(Y instanceof N)&&!r(Y))throw Y;H=W=!1}if(!H)return K;if(!W)return Q.pendingDeletes.delete($),K;if(!Z.takeSlot())return K;if(Z.mode==="log_only")return X(this,I,"f").info("log-only: sync would delete this memory on the server",{path:$,memory_store_id:Q.memoryStoreId}),K;let J=await X(this,A,"m",U0).call(this,Q,$,z,K);if(J===void 0)Q.pendingDeletes.delete($);return J},U0=async function(Q,$,z,K){try{await X(this,F,"f").beta.memoryStores.memories.delete(z.id,{memory_store_id:Q.memoryStoreId,expected_content_sha256:K})}catch(Z){if(v(Z,404))return;if(v(Z,409)||v(Z,412))X(this,I,"f").warn("memory deleted locally but changed remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});else X(this,I,"f").warn("failed to delete memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(Z)});return K}X(this,I,"f").info("propagated local deletion",{path:$,memory_store_id:Q.memoryStoreId});return}});import*as C from"node:fs/promises";import*as qQ from"node:fs";import*as R from"node:path";import*as mQ from"node:child_process";import*as v0 from"node:crypto";import*as E0 from"node:readline";function g0(V){return V===void 0?O1:V}function n(V){if(V===void 0)return;throw new w("The `unrestrictedPaths` option you passed to the agent toolset (AgentToolContext) is no longer supported. The toolset's file tools (read, write, edit, glob, grep) are now always confined to the working directory plus the directories listed in `allowedRoots`. Remove `unrestrictedPaths` from your context; to let the file tools reach any other directory, add it to `allowedRoots`.")}function R2(V){return[x1(V),v1(V),P1(V),F1(V),u1(V),f1(V)]}async function HQ(V,Q){return n(V.unrestrictedPaths),hQ(V.workdir,Q,{allowedRoots:V.allowedRoots??[]})}function u0(V,Q){return jQ(V.readOnlyRoots??[],Q)}function b1(){let V={};for(let[Q,$]of Object.entries(process.env)){if(Q.startsWith("ANTHROPIC_"))continue;V[Q]=$}return V}class f0{constructor(V,Q=b1()){CQ.add(this),O.set(this,void 0),j.set(this,""),zQ.set(this,!1),p.set(this,!1),T.set(this,null),B(this,O,mQ.spawn("/bin/bash",["--noprofile","--norc"],{cwd:V,env:{...Q,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),X(this,O,"f").stdout.setEncoding("utf8"),X(this,O,"f").stderr.setEncoding("utf8"),X(this,O,"f").stdout.on("data",($)=>X(this,CQ,"m",fQ).call(this,$)),X(this,O,"f").stderr.on("data",($)=>X(this,CQ,"m",fQ).call(this,$)),X(this,O,"f").once("close",()=>{B(this,p,!0,"f");let $=X(this,T,"f");B(this,T,null,"f"),$?.resolve()})}get closed(){return X(this,p,"f")}async exec(V,Q={}){if(X(this,p,"f"))throw new w("bash session terminated");let $=Q.timeoutMs??P0,z=Q.signal;z?.throwIfAborted(),B(this,j,"","f"),B(this,zQ,!1,"f");let K=`__ANT_CMD_${v0.randomUUID()}_DONE__`,Z=`${K.slice(0,8)}''${K.slice(8)}`,q=`{ ${V}
|
|
7
|
+
} </dev/null 2>&1; printf '\\n${Z}%d\\n' $?
|
|
8
|
+
`;if(X(this,O,"f").stdin.write(q),X(this,j,"f").indexOf(K)<0){let{promise:G,resolve:y}=SQ();B(this,T,{sentinel:K,resolve:y},"f");let b,x;try{await Promise.race([G,new Promise((_0,RQ)=>{b=setTimeout(()=>RQ(new F0($)),$)}),new Promise((_0,RQ)=>{if(!z)return;x=()=>RQ(z.reason),z.addEventListener("abort",x,{once:!0})})])}finally{if(b)clearTimeout(b);if(x&&z)z.removeEventListener("abort",x);B(this,T,null,"f")}}let H=X(this,j,"f").indexOf(K);if(H<0)throw new w("bash session terminated");let J=X(this,j,"f").slice(H+K.length).match(/^(-?\d+)/),Y=J?parseInt(J[1],10):-1,M=X(this,j,"f").slice(0,H).replace(T1,"").replace(/\n+$/,"");if(X(this,zQ,"f"))M=`[output truncated]
|
|
9
|
+
${M}`;return{output:M,exitCode:Y}}close(){if(X(this,p,"f"))return;B(this,p,!0,"f");let V=X(this,T,"f");B(this,T,null,"f"),V?.resolve(),X(this,O,"f").stdout.destroy(),X(this,O,"f").stderr.destroy(),X(this,O,"f").stdin.destroy();try{process.kill(-X(this,O,"f").pid,"SIGKILL")}catch{X(this,O,"f").kill("SIGKILL")}X(this,O,"f").unref()}}function x1(V){n(V.unrestrictedPaths);let Q,$=Promise.resolve();return f({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:z,restart:K,timeout_ms:Z},q)=>{let H=$,W=SQ();$=W.promise;try{await H}catch{}try{if(K)Q?.close(),Q=void 0;if(!z){if(K)return"bash session restarted";throw new D("bash: command is required")}Q??(Q=new f0(V.workdir,V.env));try{let{output:J,exitCode:Y}=await Q.exec(z,{timeoutMs:Z??P0,signal:q?.signal});if(Y!==0)throw new D(J||`exit ${Y}`);return J}catch(J){if(J instanceof D)throw J;throw Q.close(),Q=void 0,new D(`bash: ${J instanceof Error?J.message:String(J)}`)}}finally{W.resolve()}},close:()=>{Q?.close(),Q=void 0}})}function v1(V){return n(V.unrestrictedPaths),f({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:Q,view_range:$})=>{if(!Q)throw new D("read: file_path is required");let z=await HQ(V,Q);if($?.length&&$.length!==2)throw new D("read: view_range must be [start_line, end_line]");let K;try{let Y=await C.stat(z);if(!Y.isFile())throw new D(`read: ${Q} is not a regular file`);let M=g0(V.maxFileBytes);if(M!==null&&Y.size>M){if(!$?.length)throw new D(`read: ${Q} is ${Y.size} bytes, exceeds ${M}-byte limit. Use the view_range parameter to read specific line ranges, e.g. view_range: [1, 500].`);let[G,y]=$;return await E1(z,Q,G,y,M)}K=await C.readFile(z,"utf8")}catch(Y){if(Y instanceof D)throw Y;throw new D(`read: ${i(Y,Q)}`)}if(!$?.length)return K;let[Z,q]=$,H=K.split(`
|
|
10
|
+
`),W=Math.max(0,Z-1),J=q>0?q:H.length;return H.slice(W,J).join(`
|
|
11
|
+
`)}})}async function E1(V,Q,$,z,K){let Z=new S0(Q,$,z,K);if(Z.rangeIsEmpty())return"";let q=qQ.createReadStream(V,{highWaterMark:R1});try{for await(let H of q)if(Z.collectFrom(H),Z.rangeIsCollected())break}finally{q.destroy()}return Z.text()}class S0{constructor(V,Q,$,z){wQ.add(this),KQ.set(this,void 0),GQ.set(this,void 0),OQ.set(this,void 0),h.set(this,void 0),c.set(this,void 0),t.set(this,void 0),d.set(this,0),ZQ.set(this,[]),g.set(this,0),B(this,KQ,V,"f"),B(this,GQ,Q,"f"),B(this,OQ,$,"f"),B(this,h,Math.max(0,Q-1),"f"),B(this,c,$>0?$:1/0,"f"),B(this,t,z,"f")}rangeIsEmpty(){return X(this,c,"f")<=X(this,h,"f")}rangeIsCollected(){return X(this,d,"f")>=X(this,c,"f")}collectFrom(V){var Q;let $=0;while($<V.length&&!this.rangeIsCollected()){let z=V.indexOf(10,$),K=z<0?V.length:z;if(X(this,d,"f")>=X(this,h,"f"))X(this,wQ,"m",x0).call(this,V.subarray($,K),z>=0);if(z<0)break;B(this,d,(Q=X(this,d,"f"),Q++,Q),"f"),$=z+1}}text(){return Buffer.concat(X(this,ZQ,"f"),X(this,g,"f")).toString("utf8")}}function P1(V){return n(V.unrestrictedPaths),f({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:Q,content:$})=>{if(!Q)throw new D("write: file_path is required");let z=await HQ(V,Q),K=await u0(V,z);if(K!==void 0)throw new D(`write: ${Q} is inside read-only directory ${K}`);try{await C.mkdir(R.dirname(z),{recursive:!0,mode:QQ}),await LQ(z,$??"")}catch(Z){throw new D(`write: ${i(Z,Q)}`)}return`wrote ${Buffer.byteLength($??"")} bytes to ${Q}`}})}function F1(V){return n(V.unrestrictedPaths),f({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:Q,old_string:$,new_string:z,replace_all:K})=>{if(!Q)throw new D("edit: file_path is required");if(!$)throw new D("edit: old_string is required");let Z=await HQ(V,Q),q=await u0(V,Z);if(q!==void 0)throw new D(`edit: ${Q} is inside read-only directory ${q}`);let H;try{let Y=await C.stat(Z);if(!Y.isFile())throw new D(`edit: ${Q} is not a regular file`);let M=g0(V.maxFileBytes);if(M!==null&&Y.size>M)throw new D(`edit: ${Q} is ${Y.size} bytes, exceeds ${M}-byte limit. The edit tool loads the whole file and cannot modify a file this large.`);H=await C.readFile(Z,"utf8")}catch(Y){if(Y instanceof D)throw Y;throw new D(`edit: ${i(Y,Q)}`)}let W=H.split($).length-1;if(W===0)throw new D(`edit: old_string not found in ${Q}`);let J;if(K)J=H.split($).join(z);else{if(W>1)throw new D(`edit: old_string appears ${W} times in ${Q} (must be unique)`);J=H.replace($,()=>z)}try{await LQ(Z,J)}catch(Y){throw new D(`edit: write: ${i(Y,Q)}`)}return`edited ${Q} (${K?W:1} replacement(s))`}})}function g1(V){return V.split(/[\\/{},]/).includes("..")}function u1(V){return n(V.unrestrictedPaths),f({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:Q,path:$})=>{if(!Q)throw new D("glob: pattern is required");if(R.isAbsolute(Q))throw new D("glob: absolute pattern not permitted; pass a relative pattern (and optionally path)");if(g1(Q))throw new D('glob: ".." is not permitted in the pattern');let z=$?await HQ(V,$):R.resolve(V.workdir),K=$?z:await e(z),Z=[],q=m0;try{for await(let H of y1(Q,{cwd:z,withFileTypes:!0,exclude:(W)=>W.name===".git"||W.name==="node_modules"})){if(q--<=0)break;if(!H.isFile())continue;let W=R.join(H.parentPath,H.name),J;try{J=await C.realpath(W)}catch{continue}if(!JQ(K,J))continue;let Y=0;try{Y=(await C.stat(W)).mtimeMs}catch{}Z.push({path:W,mtime:Y})}}catch(H){throw new D(`glob: ${H instanceof Error?H.message:String(H)}`)}if(Z.length===0)return"no matches";return Z.sort((H,W)=>W.mtime-H.mtime),Z.slice(0,L1).map((H)=>H.path).join(`
|
|
12
|
+
`)}})}function f1(V){return n(V.unrestrictedPaths),f({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:Q,path:$},z)=>{if(!Q)throw new D("grep: pattern is required");let K=R.resolve(V.workdir);if($)K=await HQ(V,$);let Z=await d1();return Z?S1(Z,Q,K,z?.signal):m1(Q,K,z?.signal)}})}function S1(V,Q,$,z){return new Promise((K,Z)=>{let q=mQ.spawn(V,["-n","--no-heading","-e",Q,"--",$],{...z?{signal:z}:{}}),H="",W="",J=!1;q.stdout.on("data",(Y)=>{if(J)return;if(H+=Y,H.length>XQ)J=!0,H=H.slice(0,XQ),q.kill("SIGKILL")}),q.stderr.on("data",(Y)=>W+=Y),q.on("close",(Y)=>{if(z?.aborted)return Z(new D("grep: aborted"));if(J)return K(H+`
|
|
13
|
+
[output truncated at ${XQ} bytes]`);if(Y===0)return K(H);if(Y===1)return K("no matches");Z(new D(`grep: rg failed: ${W||`exit ${Y}`}`))}),q.on("error",(Y)=>{if(z?.aborted)return Z(new D("grep: aborted"));Z(new D(`grep: rg failed: ${Y.message}`))})})}async function m1(V,Q,$){let z;try{z=new RegExp(V)}catch(W){throw new D(`grep: invalid regex: ${W instanceof Error?W.message:String(W)}`)}let K=[],Z=XQ,q=(W)=>{if(Z-=W.length+1,Z<0)return K.push(`[output truncated at ${XQ} bytes]`),!1;return K.push(W),!0};if((await C.stat(Q).catch(()=>null))?.isFile())await b0(Q,z,q);else await p1(Q,"",(W)=>b0(R.join(Q,W),z,q),$);if($?.aborted)throw new D("grep: aborted");if(K.length===0)return"no matches";return K.join(`
|
|
14
|
+
`)}async function b0(V,Q,$){let z=qQ.createReadStream(V,{encoding:"utf8"}),K=E0.createInterface({input:z,crlfDelay:1/0}),Z=0;try{for await(let q of K){if(Z++,q.length>j1)continue;if(Q.test(q)&&!$(`${V}:${Z}:${q}`))return!1}}catch{}finally{z.destroy()}return!0}async function p1(V,Q,$,z){let K=m0;async function Z(q,H){if(H>_1)return!0;if(z?.aborted)return!1;let W;try{W=await C.readdir(R.join(V,q),{withFileTypes:!0})}catch{return!0}for(let J of W){if(J.name===".git"||J.name==="node_modules")continue;if(K--<=0)return!1;if(z?.aborted)return!1;let Y=q?R.join(q,J.name):J.name;if(J.isDirectory()){if(!await Z(Y,H+1))return!1}else if(J.isFile()){if(await $(Y)===!1)return!1}}return!0}await Z(Q,0)}async function d1(){let V=(process.env.PATH??"").split(R.delimiter);for(let Q of V){let $=R.join(Q,"rg");try{return await C.access($,qQ.constants.X_OK),$}catch{}}return null}var CQ,O,j,zQ,p,T,fQ,wQ,KQ,GQ,OQ,h,c,t,d,ZQ,g,x0,L0,T0=102400,P0=120000,O1=262144,R1=65536,y0,XQ=102400,j1=2000,L1=200,F0,T1,y1,_1=40,m0=50000;var h1=u(()=>{N0();xQ();dQ();pQ();G1();TQ();sQ();j0();y0=Buffer.from(`
|
|
15
|
+
`);F0=class F0 extends w{constructor(V){super(`bash command timed out after ${V}ms`);this.name="BashTimeoutError",this.timeoutMs=V}};T1=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,y1=C.glob;O=new WeakMap,j=new WeakMap,zQ=new WeakMap,p=new WeakMap,T=new WeakMap,CQ=new WeakSet,fQ=function(Q){if(B(this,j,X(this,j,"f")+Q,"f"),X(this,j,"f").length>T0)B(this,j,X(this,j,"f").slice(X(this,j,"f").length-T0),"f"),B(this,zQ,!0,"f");if(X(this,T,"f")&&X(this,j,"f").indexOf(X(this,T,"f").sentinel)>=0){let $=X(this,T,"f");B(this,T,null,"f"),$.resolve()}};KQ=new WeakMap,GQ=new WeakMap,OQ=new WeakMap,h=new WeakMap,c=new WeakMap,t=new WeakMap,d=new WeakMap,ZQ=new WeakMap,g=new WeakMap,wQ=new WeakSet,x0=function(Q,$){if(X(this,ZQ,"f").push(Q),B(this,g,X(this,g,"f")+Q.length,"f"),$&&X(this,d,"f")+1<X(this,c,"f"))X(this,ZQ,"f").push(y0),B(this,g,X(this,g,"f")+y0.length,"f");if(X(this,g,"f")>X(this,t,"f"))throw X(this,wQ,"m",L0).call(this)},L0=function(){if(X(this,c,"f")-X(this,h,"f")===1)return new D(`read: line ${X(this,h,"f")+1} of ${X(this,KQ,"f")} alone exceeds ${X(this,t,"f")}-byte limit. The read tool cannot return part of a line, so view_range cannot narrow this further.`);return new D(`read: view_range [${X(this,GQ,"f")}, ${X(this,OQ,"f")}] of ${X(this,KQ,"f")} exceeds ${X(this,t,"f")}-byte limit. Narrow the view_range to read a smaller portion.`)}});h1();export{i0 as setupSkills,HQ as resolvePath,oQ as extractSkillArchive,P1 as betaWriteTool,v1 as betaReadTool,f1 as betaGrepTool,u1 as betaGlobTool,F1 as betaEditTool,x1 as betaBashTool,R2 as betaAgentToolset20260401,R0 as SessionMemoryStores,_ as SessionMemoryError,I0 as MIN_MEMORY_SYNC_INTERVAL_MS,D1 as MEMORY_FLUSH_TIMEOUT_MS,s as MARKER_PATH,kQ as DEFAULT_MEMORY_SYNC_INTERVAL_MS,F0 as BashTimeoutError,f0 as BashSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$8 as g,V8 as a,W8 as b,X8 as c,Y8 as d,Z8 as e,_8 as f,a9 as h}from"./cli-1.1.32-3gbh5q5w.mjs";import"./cli-1.1.32-yw64r19c.mjs";h();export{g as util,f as stream,e as path,d as os,c as fs,b as crypto,a as child_process};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aia as g,Bia as h,Cia as i,Dia as j,uia as a,via as b,wia as c,xia as d,yia as e,zia as f}from"./cli-1.1.32-ajhvj43e.mjs";import"./cli-1.1.32-yw64r19c.mjs";j();export{i as getOauthConfig,a as fileSuffixForOauthConfig,d as OAUTH_BETA_HEADER,h as MCP_CLIENT_METADATA_URL,e as CONSOLE_OAUTH_SCOPES,c as CLAUDE_AI_PROFILE_SCOPE,f as CLAUDE_AI_OAUTH_SCOPES,b as CLAUDE_AI_INFERENCE_SCOPE,g as ALL_OAUTH_SCOPES};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{gj as Y0,hj as Y1}from"./cli-1.1.32-tq108hv4.mjs";import{kj as c$,mj as J1}from"./cli-1.1.32-9jxkev29.mjs";import{$k as e0,Aq as Z1,DQ as P0,EQ as vZ,FQ as r$,GQ as qZ,Hr as Q0,Ir as W0,Jk as L$,Jr as Q1,Kk as aZ,Lk as r,Mk as m$,Nk as d$,Ok as p$,Pk as oZ,Qk as rZ,Rk as A$,Wp as sZ,Xp as tZ,Yp as eZ,Yr as e$,Zp as $1,Zr as N0,_k as _$,_r as Z$,aq as $0,fs as CZ,gs as i$,hs as K1,is as X$,js as AZ,ks as C$,ls as K0,ms as z0,ns as l$,os as j0,ps as X0,qs as n$,rs as z1,ss as a$,tq as Z0,ts as o$,us as U$,vs as j1}from"./cli-1.1.32-9yka8m9x.mjs";import"./cli-1.1.32-gwf0a8ej.mjs";import"./cli-1.1.32-1913x5jp.mjs";import"./cli-1.1.32-p70gsyp3.mjs";import"./cli-1.1.32-bce46tmm.mjs";import"./cli-1.1.32-y4agg2c2.mjs";import"./cli-1.1.32-4vdyqkkd.mjs";import"./cli-1.1.32-5c5dcwk6.mjs";import"./cli-1.1.32-h7cb9f8y.mjs";import{LV as J0,MV as W1}from"./cli-1.1.32-1c9z2mtv.mjs";import"./cli-1.1.32-m9p4pd60.mjs";import"./cli-1.1.32-qzjfn21e.mjs";import"./cli-1.1.32-5dq711bj.mjs";import"./cli-1.1.32-8yc37yqa.mjs";import"./cli-1.1.32-hgjgfp8p.mjs";import"./cli-1.1.32-vtzwmjs8.mjs";import"./cli-1.1.32-px6268dx.mjs";import"./cli-1.1.32-gpq33yz0.mjs";import{MZ as G0,OZ as X1}from"./cli-1.1.32-d47cvy98.mjs";import{ZZ as D0,b0 as D1}from"./cli-1.1.32-46wadmxk.mjs";import"./cli-1.1.32-px93hhj4.mjs";import{g0 as w$,l0 as RZ}from"./cli-1.1.32-n7cyeje8.mjs";import"./cli-1.1.32-5j5n166h.mjs";import"./cli-1.1.32-6317frxz.mjs";import"./cli-1.1.32-qmgvm9rq.mjs";import"./cli-1.1.32-jjanec91.mjs";import"./cli-1.1.32-6f9r9qcb.mjs";import"./cli-1.1.32-wyv15h7a.mjs";import{K2 as nZ,P2 as t0}from"./cli-1.1.32-vf3r8a91.mjs";import"./cli-1.1.32-a3dfp7ps.mjs";import"./cli-1.1.32-6jxftegx.mjs";import"./cli-1.1.32-rswqkymv.mjs";import"./cli-1.1.32-czrfbd3q.mjs";import"./cli-1.1.32-9wsnkggz.mjs";import"./cli-1.1.32-76wfpwbd.mjs";import"./cli-1.1.32-zv1p3q66.mjs";import"./cli-1.1.32-jt6w5mqv.mjs";import{A7 as lZ,H7 as u$,I7 as EZ,J7 as xZ,y7 as cZ,z7 as iZ}from"./cli-1.1.32-5xmh2b7j.mjs";import"./cli-1.1.32-r5ww85n4.mjs";import"./cli-1.1.32-g5dzf2w1.mjs";import"./cli-1.1.32-260jjrwt.mjs";import"./cli-1.1.32-2kd689v0.mjs";import"./cli-1.1.32-bt4yfsm7.mjs";import{$fa as mZ,Pfa as bZ,Sfa as kZ,Tfa as o0,Xfa as hZ,Zfa as b$,_fa as uZ,bga as k$,cga as dZ,gga as pZ,kga as r0,nga as h$,qga as s0}from"./cli-1.1.32-pve0ffcp.mjs";import"./cli-1.1.32-1rackf2c.mjs";import"./cli-1.1.32-merqy9t2.mjs";import"./cli-1.1.32-v4chz2b0.mjs";import"./cli-1.1.32-kn0zs89y.mjs";import"./cli-1.1.32-m7dxkbpn.mjs";import"./cli-1.1.32-ajhvj43e.mjs";import{Dja as T,Gja as P$}from"./cli-1.1.32-8jkgzjh4.mjs";import"./cli-1.1.32-zeyasrw5.mjs";import"./cli-1.1.32-z7x4jfeb.mjs";import{oka as l,qka as TZ,wka as R$}from"./cli-1.1.32-7zp3b6gq.mjs";import{Hpa as n0,cla as G$}from"./cli-1.1.32-60pc6r2s.mjs";import"./cli-1.1.32-hbwke9cs.mjs";import{Jqa as a0,kqa as V$}from"./cli-1.1.32-0pmhmsew.mjs";import{Wqa as g}from"./cli-1.1.32-yw64r19c.mjs";function D$($,Z=!0){let Q=e$($);if(Q.type==="object"&&Q.properties){let W=Q.properties,J=Array.isArray(Q.required)?Q.required:[],Y={};for(let[K,G]of Object.entries(W))Y[K]=D$(G,Z);if(Q.properties=Y,Z)Q.required=J.filter((K)=>(K in Y)),Q.additionalProperties=!1;else Q.required=J.filter((K)=>(K in Y))}if("items"in Q)if(Array.isArray(Q.items))Q.items=Q.items.map((W)=>D$(W,Z));else Q.items=D$(Q.items,Z);for(let W of["anyOf","oneOf","allOf"])if(W in Q&&Array.isArray(Q[W]))Q[W]=Q[W].map((J)=>D$(J,Z));return Q}function B$($){let Q=!r()&&!l(process.env.CLAUDIN_DISABLE_STRICT_TOOLS);return $.filter((W)=>W.name!=="ToolSearchTool").filter((W)=>!W.type||W.type==="function"||W.type==="custom").map((W)=>{let J=W.description??"";if(W.input_schema){let G=t$.get(W.input_schema);if(G&&G.name===W.name&&G.description===J&&G.strict===Q)return G.result}M0.computes++;let Y={...W.input_schema??{type:"object",properties:{}}};if(W.name==="Agent"&&Y.properties){let G=Y.properties;if(!Array.isArray(Y.required))Y.required=[];let D=Y.required;for(let j of["message","subagent_type"])if(j in G&&!D.includes(j))D.push(j)}let K={type:"function",function:{name:W.name,description:J,parameters:D$(Y,Q)}};if(W.input_schema)t$.set(W.input_schema,{name:W.name,description:J,strict:Q,result:K});return K})}var t$,M0;var S$=g(()=>{R$();N0();A$();t$=new WeakMap,M0={computes:0}});import{randomUUID as w0}from"crypto";function L0(){return w0()}function $Z($,Z){let Q=L0(),W=Date.now();return T(JSON.stringify({type:"api_call_start",correlationId:Q,provider:$,model:Z,timestamp:W}),{level:"debug"}),{correlationId:Q,startTime:W}}function ZZ($,Z,Q,W,J,Y,K,G,D,j){let V=Date.now()-Z,F={type:W==="error"?"api_call_error":"api_call_end",correlationId:$,model:Q,duration_ms:V,status:W,tokens_in:J,tokens_out:Y,streaming:K};if(G!==void 0)F.first_token_ms=G;if(D!==void 0)F.total_chunks=D;if(j)F.error=j;T(JSON.stringify(F),{level:W==="error"?"error":"debug"})}var QZ=g(()=>{P$()});function WZ($){return $.trim().length===0}function _0($){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test($)}function U0($){return typeof $==="object"&&$!==null&&!Array.isArray($)}function I0($){return YZ[$]??null}function DZ($){return $ in YZ}function JZ($,Z){let Q=I0($);if(!Q)return null;return{[Q]:Z}}function $$($,Z){if(Z===void 0)return{};try{let Q=JSON.parse(Z);if(U0(Q))return Q;if(typeof Q==="string"&&!WZ(Q))return JZ($,Q)??Q;return Q}catch{if(WZ(Z)||_0(Z))return{};return JZ($,Z)??{}}}var YZ;var f$=g(()=>{YZ={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function K$($){if(!$)return{};let Z={};for(let[Q,W]of Object.entries($)){let J=Q.toLowerCase();if(J.startsWith("x-anthropic")||J.startsWith("anthropic-")||J.startsWith("x-claude")||J==="x-app"||J==="x-client-app"||J==="authorization"||J==="x-api-key"||J==="api-key")continue;Z[Q]=W}return Z}function KZ($){let Z=$.headers.get("retry-after");return Z?` (Retry-After: ${Z})`:""}var zZ=()=>{};function jZ($){return new Promise((Z)=>setTimeout(Z,$))}function z$(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var v$=()=>{};function R0($){let Z=XZ.get($);if(Z!==void 0)return Z;VZ.toolResultComputes++;let Q=B0($.content,$.is_error);return XZ.set($,Q),Q}function A0($){if(typeof $==="string")return $;if($===null||$===void 0)return"{}";if(typeof $!=="object")return JSON.stringify($);let Z=GZ.get($);if(Z!==void 0)return Z;VZ.toolUseArgumentsComputes++;let Q=JSON.stringify($);return GZ.set($,Q),Q}function q$($){if(!$)return"";if(typeof $==="string")return $;if(Array.isArray($))return $.map((Z)=>Z.type==="text"?Z.text??"":"").join(`
|
|
2
|
+
|
|
3
|
+
`);return String($)}function B0($,Z){if(typeof $==="string")return Z?`Error: ${$}`:$;if(!Array.isArray($)){let J=JSON.stringify($??"");return Z?`Error: ${J}`:J}let Q=[];for(let J of $){if(J?.type==="text"&&typeof J.text==="string"){Q.push({type:"text",text:J.text});continue}if(J?.type==="image"){let Y=J.source;if(Y?.type==="url"&&Y.url)Q.push({type:"image_url",image_url:{url:Y.url}});else if(Y?.type==="base64"&&Y.media_type&&Y.data)Q.push({type:"image_url",image_url:{url:`data:${Y.media_type};base64,${Y.data}`}});continue}if(typeof J?.text==="string")Q.push({type:"text",text:J.text})}if(Q.length===0)return"";if(Q.length===1&&Q[0].type==="text"){let J=Q[0].text??"";return Z?`Error: ${J}`:J}if(Q.every((J)=>J.type==="text")){let J=Q.map((Y)=>Y.text??"").join(`
|
|
4
|
+
|
|
5
|
+
`);return Z?`Error: ${J}`:J}if(Z&&Q[0]?.type==="text")Q[0]={...Q[0],text:`Error: ${Q[0].text??""}`};else if(Z)Q.unshift({type:"text",text:"Error:"});return Q}function O$($){if(typeof $==="string")return $;if(!Array.isArray($))return String($??"");let Z=[];for(let W of $)switch(W.type){case"text":Z.push({type:"text",text:W.text??""});break;case"image":{let J=W.source;if(J?.type==="base64")Z.push({type:"image_url",image_url:{url:`data:${J.media_type};base64,${J.data}`}});else if(J?.type==="url")Z.push({type:"image_url",image_url:{url:J.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(W.text)Z.push({type:"text",text:W.text})}if(Z.length===0)return"";if(Z.length===1&&Z[0].type==="text")return Z[0].text??"";if(Z.every((W)=>W.type==="text"))return Z.map((W)=>W.text??"").join(`
|
|
6
|
+
|
|
7
|
+
`);return Z}function FZ($,Z,Q){let W=Q?.preserveReasoningContent===!0,J=[],Y=new Set,K=new Set;for(let j of $){let F=(j.message??j).content;if(Array.isArray(F)){for(let N of F)if(N.type==="tool_result"&&N.tool_use_id)K.add(N.tool_use_id)}}let G=q$(Z);if(G)J.push({role:"system",content:G});for(let j=0;j<$.length;j++){let V=$[j],F=j===$.length-1,N=V.message??V,w=N.role??V.role,H=N.content;if(w==="user")if(Array.isArray(H)){let M=H.filter((_)=>_.type==="tool_result"),L=H.filter((_)=>_.type!=="tool_result");for(let _ of M){let O=_.tool_use_id??"unknown";if(Y.has(O))J.push({role:"tool",tool_call_id:O,content:R0(_)});else T(`Dropping orphan tool_result for ID: ${O} to prevent API error`)}if(L.length>0)J.push({role:"user",content:O$(L)})}else J.push({role:"user",content:O$(H)});else if(w==="assistant")if(Array.isArray(H)){let M=H.filter((P)=>P.type==="tool_use"),L=H.find((P)=>P.type==="thinking"),_=H.filter((P)=>P.type!=="tool_use"&&P.type!=="thinking"),O={role:"assistant",content:(()=>{let P=O$(_);return typeof P==="string"?P:Array.isArray(P)?P.map((U)=>U.text??"").join(""):""})()};if(W){let P=L?.thinking;if(typeof P==="string"&&P.trim().length>0)O.reasoning_content=P;else O.reasoning_content=""}if(M.length>0){let P=M.map((U)=>{let C=U.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!K.has(C)&&!F)return null;Y.add(C);let y={id:C,type:"function",function:{name:U.name??"unknown",arguments:A0(U.input)}};if(U.extra_content)y.extra_content={...U.extra_content};if(r()){let p=U.signature??L?.signature,s=y.extra_content?.google??{};y.extra_content={...y.extra_content,google:{...s,thought_signature:p??"skip_thought_signature_validator"}}}return y}).filter((U)=>U!==null);if(P.length>0)O.tool_calls=P}if(O.content||O.tool_calls?.length)J.push(O)}else{let M={role:"assistant",content:(()=>{let L=O$(H);return typeof L==="string"?L:Array.isArray(L)?L.map((_)=>_.text??"").join(""):""})()};if(M.content)J.push(M)}}let D=[];for(let j of J){let V=D[D.length-1];if(V&&V.role==="tool"&&j.role==="user")D.push({role:"assistant",content:"[Tool execution interrupted by user]"});let F=D[D.length-1];if(F&&F.role===j.role&&j.role!=="tool"&&j.role!=="system"){let N=F.content,w=j.content;if(typeof N==="string"&&typeof w==="string")F.content=N+(N&&w?`
|
|
8
|
+
`:"")+w;else{let H=(M)=>{if(!M)return[];if(typeof M==="string")return M?[{type:"text",text:M}]:[];return M};F.content=[...H(N),...H(w)]}if(j.tool_calls?.length)F.tool_calls=[...F.tool_calls??[],...j.tool_calls]}else D.push(j)}return D}var XZ,GZ,VZ;var HZ=g(()=>{P$();A$();XZ=new WeakMap,GZ=new WeakMap,VZ={toolResultComputes:0,toolUseArgumentsComputes:0}});function OZ($){for(let Z of PZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}function NZ($){for(let Z of PZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}var PZ;var E$=g(()=>{PZ=["reasoning_content","reasoning","reasoning_text","thinking"]});function MZ(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function x$($,Z){if($.firstTokenTime===null)$.firstTokenTime=Date.now();$.chunkCount++}function wZ($){let Z=Date.now(),Q=$.firstTokenTime?Z-$.firstTokenTime:null,W=Z-$.startTime;return{totalChunks:$.chunkCount,firstTokenMs:Q,durationMs:W}}var LZ=()=>{};function j$($){let Z=$.trim();if(Z==="")return"";try{return JSON.parse(Z)}catch{return $}}function u0($,Z){let Q=0,W=!1,J=!1;for(let Y=Z;Y<$.length;Y++){let K=$[Y];if(J){J=!1;continue}if(K==="\\"&&W){J=!0;continue}if(K==='"'){W=!W;continue}if(W)continue;if(K==="{")Q++;else if(K==="}"){if(Q--,Q===0)return $.slice(Z,Y+1)}}return null}function m0($,Z){let Q=[...Z].sort((Y,K)=>Y[0]-K[0]),W="",J=0;for(let[Y,K]of Q)W+=$.slice(J,Y),J=K;return W+$.slice(J)}function N$($){return $.split("?",1)[0]?.toLowerCase()==="tencent/hy3"}function d0($){let Z={},Q=$.trim(),W=Q.split(/[\n<]/,1)[0]?.trim().replace(/[\s`*_]+$/,""),J=!1;for(let Y of $.matchAll(T0)){let K=Y[1];if(K)J=!0,Z[K]=j$(Y[2]??"")}for(let Y of $.matchAll(b0)){let K=Y[1];if(K)J=!0,Z[K]=j$(Y[2]??"")}for(let Y of $.matchAll(k0)){let K=Y[1]?.trim();if(K)J=!0,Z[K]=j$(Y[2]??"")}return{name:W&&h0.test(W)&&(J||Q===W)?W:void 0,args:Z}}function UZ($,Z){let Q=0,W=Z?_Z:[y$];for(let J of W){let Y=Math.min($.length,J.length-1);for(let K=Y;K>0;K--)if(J.startsWith($.slice($.length-K))){Q=Math.max(Q,K);break}}return Q}function IZ($,Z){return(Z?_Z:[y$]).reduce((W,J)=>{let Y=$.indexOf(J);return Y===-1?W:W===-1?Y:Math.min(W,Y)},-1)}function p0($,Z=!1){let Q=[],W=new Set,J=[],Y=(D,j)=>{let V=`${D}:${JSON.stringify(j)}`;if(W.has(V))return;W.add(V),Q.push({id:`xml_tc_${++S0}`,name:D,arguments:j})},K=Z?[...$.matchAll(x0)].map((D)=>({range:[D.index,D.index+D[0].length],parsed:d0(D[1]??"")})):[],G=Z?[...$.matchAll(E0)].filter((D)=>{let j=[D.index,D.index+D[0].length];return K.some((V)=>V.parsed.name&&j[0]<=V.range[0]&&V.range[1]<=j[1])}).map((D)=>[D.index,D.index+D[0].length]):[];for(let D of K){let{name:j,args:V}=D.parsed;if(!j)continue;let F=D.range;if(!G.some((N)=>N[0]<=F[0]&&F[1]<=N[1]))J.push(F);Y(j,V)}J.push(...G);for(let D of $.matchAll(q0)){let j=D[1]??"",V=[D.index,D.index+D[0].length],F,N={},w=j.match(C0);if(w){F=w[1];for(let H of j.matchAll(y0)){let M=H[1];if(M)N[M]=j$(H[2]??"")}}else{let H=j.trim(),M=[...j.matchAll(g0)];if(M.length>0&&!H.startsWith("{")){let L=H.split(/[\n<]/,1)[0]?.trim();if(L)F=L;for(let _ of M){let O=(_[1]??"").trim();if(O)N[O]=j$(_[2]??"")}}else{let L=H.indexOf("{");if(L!==-1){let _=u0(H,L);if(_)try{let O=JSON.parse(_);if(typeof O.name==="string"){F=O.name;let P=O.arguments;if(typeof P==="string")try{Object.assign(N,JSON.parse(P))}catch{}else if(P&&typeof P==="object")Object.assign(N,P)}}catch{}}}}if(!F)continue;J.push(V),Y(F,N)}return{calls:Q,toolCallRanges:J}}function M$($,Z={}){let{calls:Q,toolCallRanges:W}=p0($,Z.allowHy3??!1),J=Z.toolNames?Q.filter((K)=>Z.toolNames.has(K.name)):Q;if(J.length===0)return null;return{visibleText:X$(m0($,W).trim()).trim(),calls:J}}var S0=0,y$="<tool_call>",f0="<tool_calls:",v0="<tool_call:",_Z,q0,E0,x0,C0,y0,g0,T0,b0,k0,h0;var g$=g(()=>{C$();_Z=[y$,f0,v0],q0=/<tool_call>([\s\S]*?)(?:<\/tool_call>|$)/g,E0=/<tool_calls:[^>\s]+>([\s\S]*?)(?:<\/tool_calls(?::[^>\s]+)?>|$)/g,x0=/<tool_call:[^>\s]+>([\s\S]*?)(?:<\/tool_call(?::[^>\s]+)?>|$)/g,C0=/<function=([^>\s]+)\s*>/,y0=/<parameter=([^>\s]+)\s*>([\s\S]*?)<\/parameter>/g,g0=/<arg_key>([\s\S]*?)<\/arg_key>\s*<arg_value>([\s\S]*?)<\/arg_value>/g,T0=/<parameter\s+name=["']([^"'>\s]+)["']\s*>([\s\S]*?)<\/parameter>/g,b0=/^\s*([A-Za-z_][\w-]*)\s*:\s*(.+?)\s*$/gm,k0=/<arg_key(?::[^>\s]+)?>([\s\S]*?)<\/arg_key(?::[^>\s]+)?>\s*<arg_value(?::[^>\s]+)?>([\s\S]*?)<\/arg_value(?::[^>\s]+)?>/g,h0=/^[A-Za-z_][\w.-]*$/});function c0($){if(!$)return;return w$($)}function i0($){try{let Z=JSON.parse($);return Z&&typeof Z==="object"&&!Array.isArray(Z)?$:null}catch{for(let Z of BZ)try{let Q=$+Z,W=JSON.parse(Q);if(W&&typeof W==="object"&&!Array.isArray(W))return Q}catch{}return null}}async function*SZ($,Z,Q,W,J){let Y=z$(),K=0,G=new Map,D=!1,j=!1,V=!1,F=AZ(),N=null,w=!1,H=!1,M=0,L=MZ(),_=!!J&&J.size>0&&!l(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS),O=N$(Z),P=null,U="",C=null;yield{type:"message_start",message:{id:Y,type:"message",role:"assistant",content:[],model:Z,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let y=$.body?.getReader();if(!y)return;let p=y,s=new TextDecoder,t="",W$=120000,c=Date.now();async function u(){return new Promise((I,B)=>{let f=setTimeout(()=>{let E=Math.round((Date.now()-c)/1000);B(Error(`OpenAI/Gemini SSE stream idle for ${E}s (limit: ${W$/1000}s). Connection likely dropped.`))},W$),A;if(Q)A=()=>{clearTimeout(f)},Q.addEventListener("abort",A,{once:!0});p.read().then((E)=>{if(clearTimeout(f),Q&&A)Q.removeEventListener("abort",A);if(E.value)c=Date.now();I(E)},(E)=>{if(clearTimeout(f),Q&&A)Q.removeEventListener("abort",A);B(E)})})}let n=async function*(){if(!D)return;let I=F.flush();if(I)yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:I}};yield{type:"content_block_stop",index:K},K++,D=!1},k=async function*(I){if(!I)return;if(j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(!D)yield{type:"content_block_start",index:K,content_block:{type:"text",text:""}},D=!0;M+=I.length,yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:I}}},J$=async function*(I){if(!I)return;if(P!==null){P+=I;return}let B=U+I,f=IZ(B,O);if(f!==-1){let A=B.slice(0,f);if(A)yield*k(A);U="",P=B.slice(f)}else{let A=UZ(B,O),E=A>0?B.slice(0,B.length-A):B;if(U=A>0?B.slice(B.length-A):"",E)yield*k(E)}},Y$=async function*(){if(_){let I=F.flush();if(I)yield*J$(I)}if(P!==null){let I=P;P=null;let B=M$(I,{allowHy3:O,toolNames:J});if(B){if(B.visibleText)yield*k(B.visibleText);if(D)yield*n();for(let f of B.calls){let A=K;yield{type:"content_block_start",index:A,content_block:{type:"tool_use",id:f.id,name:f.name,input:{}}},K++,yield{type:"content_block_delta",index:A,delta:{type:"input_json_delta",partial_json:JSON.stringify($$(f.name,JSON.stringify(f.arguments)))}},yield{type:"content_block_stop",index:A}}C="tool_use"}else yield*k(I)}else if(U)yield*k(U),U=""};try{while(!0){let{done:I,value:B}=await u();if(I)break;t+=s.decode(B,{stream:!0});let f=t.split(`
|
|
9
|
+
`);t=f.pop()??"";for(let A of f){let E=A.trim();if(!E||E==="data: [DONE]")continue;if(!E.startsWith("data: "))continue;let v;try{v=JSON.parse(E.slice(6))}catch{continue}let a=c0(v.usage);for(let h of v.choices??[]){let d=h.delta,F$=OZ(d);if(F$!=null){if(!j)yield{type:"content_block_start",index:K,content_block:{type:"thinking",thinking:""}},j=!0;yield{type:"content_block_delta",index:K,delta:{type:"thinking_delta",thinking:F$}}}if(d.content!=null&&d.content!==""){let z=F.feed(d.content);if(x$(L,d.content),z)if(_)yield*J$(z);else yield*k(z)}if(d.tool_calls){if(P!==null)yield*k(P),P=null;if(U)yield*k(U),U="";for(let z of d.tool_calls)if(z.id&&z.function?.name){if(j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(D)yield*n();let X=K,q=z.function.arguments??"",R=DZ(z.function.name);if(x$(L,z.function.arguments??""),G.set(z.index,{id:z.id,name:z.function.name,index:X,jsonBuffer:q,normalizeAtStop:R}),yield{type:"content_block_start",index:X,content_block:{type:"tool_use",id:z.id,name:z.function.name,input:{},...z.extra_content?{extra_content:z.extra_content}:{},...z.extra_content?.google?.thought_signature?{signature:(z.extra_content?.google).thought_signature}:{}}},K++,z.function.arguments&&!R)M+=z.function.arguments.length,yield{type:"content_block_delta",index:X,delta:{type:"input_json_delta",partial_json:z.function.arguments}}}else if(z.function?.arguments){let X=G.get(z.index);if(X){if(z.function.arguments)M+=z.function.arguments.length,X.jsonBuffer+=z.function.arguments;if(X.normalizeAtStop)continue;yield{type:"content_block_delta",index:X.index,delta:{type:"input_json_delta",partial_json:z.function.arguments}}}}}if(h.finish_reason&&!H){if(H=!0,j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(yield*Y$(),C)h.finish_reason="tool_calls";if(D)yield*n();for(let[,X]of G){if(X.normalizeAtStop){let R;if(h.finish_reason==="length")R=X.jsonBuffer;else{let b=i0(X.jsonBuffer);if(b)R=b;else R=JSON.stringify($$(X.name,X.jsonBuffer))}yield{type:"content_block_delta",index:X.index,delta:{type:"input_json_delta",partial_json:R}},yield{type:"content_block_stop",index:X.index};continue}let q="";if(X.jsonBuffer)try{JSON.parse(X.jsonBuffer)}catch{let R=X.jsonBuffer.trimEnd();for(let b of BZ)try{JSON.parse(R+b),q=b;break}catch{}}if(q)yield{type:"content_block_delta",index:X.index,delta:{type:"input_json_delta",partial_json:q}};yield{type:"content_block_stop",index:X.index}}let z=h.finish_reason==="tool_calls"?"tool_use":h.finish_reason==="length"?"max_tokens":"end_turn";if(h.finish_reason==="content_filter"||h.finish_reason==="safety"){if(!D)yield{type:"content_block_start",index:K,content_block:{type:"text",text:""}},D=!0;yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:`
|
|
10
|
+
|
|
11
|
+
[Content blocked by provider safety filter]`}}}if(N=z,yield{type:"message_delta",delta:{stop_reason:z,stop_sequence:null},...a?{usage:a}:{}},a)w=!0}}if(!w&&a&&(v.choices?.length??0)===0&&N!==null)yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null},usage:a},w=!0}}}finally{p.releaseLock()}if(!H&&(P!==null||U)){if(j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(yield*Y$(),D)yield*n();N=C??"end_turn",yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null}}}let e=wZ(L);if(e.totalChunks>0)T(JSON.stringify({type:"stream_stats",model:Z,total_chunks:e.totalChunks,first_token_ms:e.firstTokenMs,duration_ms:e.durationMs}),{level:"debug"});if(!w&&N!==null&&(M>0||(W??0)>0)){let I=vZ(Z);yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null},usage:{input_tokens:W??0,output_tokens:Math.ceil(M/I),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var BZ,T$;var fZ=g(()=>{P$();LZ();RZ();C$();f$();qZ();R$();v$();E$();g$();BZ=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];T$=class T${generator;controller=new AbortController;constructor($){this.generator=$}async*[Symbol.asyncIterator](){yield*this.generator}}});function l0($){let Z=$.toLowerCase();return EZ.some((Q)=>Z.includes(Q))}function Q$($){try{let Z=new URL($);if(Z.username)Z.username="redacted";if(Z.password)Z.password="redacted";for(let W of Z.searchParams.keys())if(l0(W))Z.searchParams.set(W,"redacted");let Q=Z.toString();return Z$(Q,process.env)??Q}catch{return Z$($,process.env)??$}}var yZ=g(()=>{CZ();xZ()});function gZ($){if(!$)return!1;try{let Z=new URL($).host;return Z==="api.openai.com"||Z.endsWith(".api.openai.com")}catch{return!1}}class V0{defaultHeaders;reasoningEffort;constructor($,Z){this.defaultHeaders=K$($),this.reasoningEffort=Z}create($,Z){let Q=this,W,J=(async()=>{let Y=Z0($.model,$.effortValue),K=Y==="low"||Y==="medium"||Y==="high"||Y==="xhigh"||Y==="max"?Y:Q.reasoningEffort,G=dZ({model:$.model,reasoningEffortOverride:K}),D=await Q._doRequest(G,$,Z);W=D;let j=new Set(($.tools??[]).map((w)=>w.name).filter((w)=>typeof w==="string"));if($.stream){let w=D.url?.includes("/responses"),H=0;for(let M of $.messages){let L=M,_=L.message?L.message.content:L.content;if(_!=null&&typeof _!=="string"&&!Array.isArray(_))continue;H+=r$(_??void 0)}if(typeof $.system==="string")H+=P0($.system);else if(Array.isArray($.system))H+=r$($.system);return new T$(G.transport==="codex_responses"||w?X0(D,G.resolvedModel,Z?.signal):SZ(D,G.resolvedModel,Z?.signal,H,j))}if(G.transport==="codex_responses"){let w=await j0(D,Z?.signal);return n$(w,G.resolvedModel)}if(D.url?.includes("/responses")||G.transport==="chat_completions"&&L$()){if((D.headers.get("content-type")??"").includes("application/json")){let H=await D.json();if(H&&typeof H==="object"&&(("output"in H)||("incomplete_details"in H)))return n$(H,G.resolvedModel);return Q._convertNonStreamingResponse(H,G.resolvedModel,j)}}if((D.headers.get("content-type")??"").includes("application/json")){let w=await D.json();return Q._convertNonStreamingResponse(w,G.resolvedModel,j)}let N=await D.text().catch(()=>"");throw V$.generate(D.status,void 0,`OpenAI API error ${D.status}: unexpected response: ${N.slice(0,500)}`,D.headers)})();return J.withResponse=async()=>{return{data:await J,response:W??new Response,request_id:W?.headers.get("x-request-id")??z$()}},J}async _doRequest($,Z,Q){let W=k$($.baseUrl),J=L$();if(J&&$.transport==="codex_responses"){let K=h$(),G=K?.extras?.githubToken??K?.apiKey??"";if(!G)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return l$({request:$,credentials:{apiKey:G,source:"env"},params:Z,defaultHeaders:{...this.defaultHeaders,...K$(Q?.headers),...u$,...c$(Z.messages)},signal:Q?.signal})}if($.transport==="codex_responses"&&!J){let K=await kZ().catch(async(D)=>{return T(`[codex] access token refresh failed before request: ${D instanceof Error?D.message:String(D)}`,{level:"warn"}),{refreshed:!1,credentials:await bZ()}}),G=pZ({storedCredentials:K.credentials});if(!G.apiKey){let D=TZ()?"":", choose Codex OAuth in /provider",j=G.authPath?`${D} or place a Codex auth.json at ${G.authPath}`:D,V=Z$($.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${V}. Set CODEX_API_KEY${j}.`)}if(!G.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");return l$({request:$,credentials:G,params:Z,defaultHeaders:{...this.defaultHeaders,...K$(Q?.headers)},signal:Q?.signal})}return this._doOpenAIRequest($,Z,Q)}async _doOpenAIRequest($,Z,Q){let W=W0(Q0(Z.messages)),J=FZ(W,Z.system,{preserveReasoningContent:m$($.baseUrl)||p$($.baseUrl)||d$($.baseUrl)}),Y={model:$.resolvedModel,messages:J,stream:Z.stream??!1,store:!1,...gZ($.baseUrl)&&{prompt_cache_key:G$(),prompt_cache_retention:"24h"}},K=typeof Z.max_tokens==="number"&&Z.max_tokens>0?Z.max_tokens:void 0,G=typeof Z.max_completion_tokens==="number"?Z.max_completion_tokens:void 0;if(K!==void 0)Y.max_completion_tokens=K;else if(G!==void 0)Y.max_completion_tokens=G;if(Z.stream&&!b$($.baseUrl))Y.stream_options={include_usage:!0};let D=L$(),j=aZ(),V=b$($.baseUrl),F=k$($.baseUrl),N=D&&F==="copilot",w=D&&(F==="models"||F==="custom"),H=m$($.baseUrl),M=p$($.baseUrl),L=d$($.baseUrl);if((D||j||V||H||M||L)&&Y.max_completion_tokens!==void 0)Y.max_tokens=Y.max_completion_tokens,delete Y.max_completion_tokens;if(j||r()||H||M||L)delete Y.store;if(Z.temperature!==void 0)Y.temperature=Z.temperature;if(Z.top_p!==void 0)Y.top_p=Z.top_p;if(M){let z=Z.thinking?.type,X=z==="disabled"?"disabled":z==="enabled"||z==="adaptive"?"enabled":void 0;if(X)Y.thinking={type:X};if(X==="enabled"){let q=$.reasoning?.effort;if(q)Y.reasoning_effort=rZ(q)}}if(H){let z=$.reasoning?.effort;if(z&&$0($.resolvedModel))Y.thinking={type:"enabled",effort:z,keep:"all"}}let _=sZ($.baseUrl,$.resolvedModel);if(_){let z=$.reasoning?.effort,X=z?eZ(z,_):void 0;if(X)if(tZ($.baseUrl)==="reasoning.effort")Y.reasoning={effort:X};else Y.reasoning_effort=X}if(Z.tools&&Z.tools.length>0){let z=B$(Z.tools);if(z.length>0){if(Y.tools=z,Z.tool_choice){let X=Z.tool_choice;if(X.type==="auto")Y.tool_choice="auto";else if(X.type==="tool"&&X.name)Y.tool_choice={type:"function",function:{name:X.name}};else if(X.type==="any")Y.tool_choice="required";else if(X.type==="none")Y.tool_choice="none"}}}let O={"Content-Type":"application/json",...this.defaultHeaders,...K$(Q?.headers),"User-Agent":J0()},P=r(),U=h$(),C=await G0(U),y=U?.apiKey??U?.extras?.githubToken??C.accessToken??"",p=!1;try{let{hostname:z}=new URL($.baseUrl);p=z.endsWith(".azure.com")&&(z.includes("cognitiveservices")||z.includes("openai")||z.includes("services.ai"))}catch{}let s=!1;try{s=$.baseUrl.toLowerCase().includes("bankr")}catch{}if(y){if(p)O["api-key"]=y;else if(s)O["X-API-Key"]=y;else O.Authorization=`Bearer ${y}`;if(C.userAgent)O["User-Agent"]=C.userAgent;if(C.deviceHeaders)Object.assign(O,C.deviceHeaders)}else if(P){let z=await Y0(process.env);if(z.kind!=="none"){if(O.Authorization=`Bearer ${z.credential}`,z.kind!=="api-key"&&"projectId"in z&&z.projectId)O["x-goog-user-project"]=z.projectId}}if(N)Object.assign(O,u$,c$(Z.messages));else if(w)O.Accept="application/vnd.github+json",O["X-GitHub-Api-Version"]="2022-11-28";if(hZ($.baseUrl)&&!l(process.env.CLAUDIN_DISABLE_XAI_CONV_ID))O["x-grok-conv-id"]=G$();if(oZ($.baseUrl)&&!l(process.env.CLAUDIN_DISABLE_OPENCODE_SESSION_ID))O["x-opencode-session"]=G$();let t=(z)=>{if(p){let X=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",q=$.resolvedModel??U?.model??"gpt-4o";if(/\/deployments\//i.test(z))return`${z.replace(/\/+$/,"")}/chat/completions?api-version=${X}`;return`${z.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${q}/chat/completions?api-version=${X}`}return`${z}/chat/completions`},W$=V?uZ($.baseUrl):[],c=$.baseUrl,u=t(c),n=new Set([c]),k=!1,J$=(z)=>{for(let X of W$){if(n.has(X))continue;let q=u;return n.add(X),c=X,u=t(c),T(`[OpenAIShim] self-heal retry reason=${z} method=POST from=${Q$(q)} to=${Q$(u)} model=${$.resolvedModel}`,{level:"warn"}),!0}return!1},Y$=_$(Y),e=()=>{Y$=_$(Y)},I=()=>({method:"POST",headers:O,body:Y$,signal:Q?.signal}),B=V?W$.length+1:0,f=(D?cZ:1)+B,A=(z,X,q)=>{if(Q?.signal?.aborted)throw z;let R=q??o$(z,{url:X}),b=Q$(X),o=Z$(R.message,process.env)||"Request failed";throw T(`[OpenAIShim] transport failure category=${R.category} retryable=${R.retryable} code=${R.code??"unknown"} method=POST url=${b} model=${$.resolvedModel} message=${o}`,{level:"warn"}),V$.generate(503,void 0,a$(`OpenAI API transport error: ${o}${R.code?` (code=${R.code})`:""}`,R),new Headers)},E=(z,X,q,R,b,o="",S)=>{let x=S??U$({status:z,body:X}),i=Q$(b);throw T(`[OpenAIShim] request failed category=${x.category} retryable=${x.retryable} status=${z} method=POST url=${i} model=${$.resolvedModel}`,{level:"warn"}),V$.generate(z,q,a$(`OpenAI API error ${z}: ${X}${o}`,x),R)},v,a=$.baseUrl.includes("nvidia")?"nvidia-nim":$.baseUrl.includes("minimax")?"minimax":$.baseUrl.includes("localhost:11434")||$.baseUrl.includes("localhost:11435")?"ollama":$.baseUrl.includes("anthropic")?"anthropic":"openai",h=nZ(),{correlationId:d,startTime:F$}=$Z(a,$.resolvedModel);for(let z=0;z<f;z++){try{v=await i$(u,I(),{provider:h})}catch(S){if(Q?.signal?.aborted===!0||typeof DOMException<"u"&&S instanceof DOMException&&S.name==="AbortError"||typeof S==="object"&&S!==null&&"name"in S&&S.name==="AbortError")throw S;let i=o$(S,{url:u});if(V&&i.category==="localhost_resolution_failed"&&J$("localhost_resolution_failed"))continue;A(S,u,i)}if(v.ok){let S=0,x=0;if(!Z.stream)try{let m=await v.clone().json();S=m.usage?.prompt_tokens??0,x=m.usage?.completion_tokens??0}catch{}return ZZ(d,F$,$.resolvedModel,"success",S,x,!1),v}if(D&&v.status===429&&z<f-1){await v.text().catch(()=>{});let S=Math.min(iZ*2**z,lZ);await jZ(S*1000);continue}let X=await v.text().catch(()=>"unknown error"),q=D&&v.status===429?KZ(v):"";if(D&&v.status===400){if(X.includes("/chat/completions")||X.includes("not accessible")){let S=`${$.baseUrl}/responses`,x={model:$.resolvedModel,input:K0(Z.messages),stream:Z.stream??!1,store:!1,...gZ($.baseUrl)&&{prompt_cache_key:G$(),prompt_cache_retention:"24h"}};if(!Array.isArray(x.input)||x.input.length===0)x.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let i=q$(Z.system);if(i)x.instructions=i;if(Y.max_tokens!==void 0)x.max_output_tokens=Y.max_tokens;if(Z.tools&&Z.tools.length>0){let H$=z0(Z.tools);if(H$.length>0)x.tools=H$}let m;try{m=await i$(S,{method:"POST",headers:O,body:_$(x),signal:Q?.signal},{provider:h})}catch(H$){A(H$,S)}if(m.ok)return m;let I$=await m.text().catch(()=>"unknown error"),O0=U$({status:m.status,body:I$}),s$;try{s$=JSON.parse(I$)}catch{}E(m.status,I$,s$,m.headers,S,"",O0)}}let R=U$({status:v.status,body:X});if(V&&R.category==="endpoint_not_found"&&J$("endpoint_not_found"))continue;let b=Array.isArray(Y.tools)&&Y.tools.length>0;if(!k&&R.category==="tool_call_incompatible"&&mZ({baseUrl:c,hasTools:b})){k=!0,delete Y.tools,delete Y.tool_choice,e(),T(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${Q$(u)} model=${$.resolvedModel}`,{level:"warn"});continue}let o;try{o=JSON.parse(X)}catch{}E(v.status,X,o,v.headers,u,q,R)}throw V$.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse($,Z,Q){let W=$.choices?.[0],J=[],Y=!1,K=NZ(W?.message??{});if(K)J.push({type:"thinking",thinking:K});let G=W?.message?.content!==""&&W?.message?.content!=null?W?.message?.content:null;if(typeof G==="string"&&G){let V=!!Q&&Q.size>0&&!l(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS)?M$(G,{allowHy3:N$(Z),toolNames:Q}):null;if(V){if(V.visibleText)J.push({type:"text",text:V.visibleText});for(let F of V.calls)J.push({type:"tool_use",id:F.id,name:F.name,input:$$(F.name,JSON.stringify(F.arguments))});Y=!0}else J.push({type:"text",text:X$(G)})}else if(Array.isArray(G)&&G.length>0){let j=[];for(let F of G)if(F&&typeof F==="object"&&F.type==="text"&&typeof F.text==="string")j.push(F.text);let V=j.join(`
|
|
12
|
+
`);if(V)J.push({type:"text",text:X$(V)})}if(W?.message?.tool_calls)for(let j of W.message.tool_calls){let V=$$(j.function.name,j.function.arguments);J.push({type:"tool_use",id:j.id,name:j.function.name,input:V,...j.extra_content?{extra_content:j.extra_content}:{},...j.extra_content?.google?.thought_signature?{signature:(j.extra_content?.google).thought_signature}:{}})}let D=Y||W?.finish_reason==="tool_calls"?"tool_use":W?.finish_reason==="length"?"max_tokens":"end_turn";if(W?.finish_reason==="content_filter"||W?.finish_reason==="safety")J.push({type:"text",text:`
|
|
13
|
+
|
|
14
|
+
[Content blocked by provider safety filter]`});return{id:$.id??z$(),type:"message",role:"assistant",content:J,model:$.model??Z,stop_reason:D,stop_sequence:null,usage:w$($.usage)}}}class F0{messages;reasoningEffort;constructor($,Z){this.messages=new V0($,Z),this.reasoningEffort=Z}}function G1($){D0();let Z=new F0({...$.defaultHeaders??{}},$.reasoningEffort);return{beta:Z,messages:Z.messages}}var H0=g(()=>{a0();o0();P$();R$();Y1();D1();t0();Z1();CZ();QZ();e0();qZ();Q1();s0();RZ();z1();K1();j1();r0();$1();X1();C$();f$();W1();J1();xZ();zZ();v$();HZ();A$();E$();fZ();n0();S$();g$();yZ()});var V1=g(()=>{S$();H0()});V1();export{G1 as createOpenAIShimClient,B$ as convertTools};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wqa as t}from"./cli-1.1.32-yw64r19c.mjs";async function o(e){e("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.",{display:"system"})}var n=()=>{};n();export{o as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{yi as e,zi as a}from"./cli-1.1.32-s4betse1.mjs";import{Wqa as r}from"./cli-1.1.32-yw64r19c.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{wd as e0,xd as nN}from"./cli-1.1.32-vdezbpdh.mjs";import{og as jN,pg as vG}from"./cli-1.1.32-x8j1spnv.mjs";import{Ah as I0,Bh as IG,Ch as O0,Dh as fN,zh as OG}from"./cli-1.1.32-5a158c45.mjs";import{Eh as iN,Fh as hG}from"./cli-1.1.32-ycyg88ky.mjs";import{Hi as EG,Ii as tG}from"./cli-1.1.32-xj2e8mzf.mjs";import"./cli-1.1.32-26474ywa.mjs";import"./cli-1.1.32-33jnyekk.mjs";import"./cli-1.1.32-erw03mnm.mjs";import"./cli-1.1.32-vmr6f229.mjs";import"./cli-1.1.32-ebg7m8yz.mjs";import{Am as SG,An as LG,Ax as mN,Ct as rG,Dx as T0,EI as hN,Ex as _N,FI as mG,HN as QG,Hn as E0,IN as WG,KN as sG,Kn as $0,Mn as KN,WM as a0,Wx as kG,XM as TN,Xx as aG,Yx as s0,Zx as DN,eK as KG,gO as pN,hO as _G,nF as n,oF as V0,po as MN,qo as gG,sR as wJ,uF as wG,vF as oG,vt as UG,wF as qG,xF as $G,xn as YG,yn as ZG,yx as P0,zm as SN,zn as zG}from"./cli-1.1.32-9yka8m9x.mjs";import"./cli-1.1.32-gwf0a8ej.mjs";import"./cli-1.1.32-1913x5jp.mjs";import"./cli-1.1.32-p70gsyp3.mjs";import"./cli-1.1.32-bce46tmm.mjs";import"./cli-1.1.32-y4agg2c2.mjs";import"./cli-1.1.32-4vdyqkkd.mjs";import"./cli-1.1.32-5c5dcwk6.mjs";import"./cli-1.1.32-h7cb9f8y.mjs";import"./cli-1.1.32-1c9z2mtv.mjs";import"./cli-1.1.32-m9p4pd60.mjs";import"./cli-1.1.32-qzjfn21e.mjs";import"./cli-1.1.32-5dq711bj.mjs";import"./cli-1.1.32-8yc37yqa.mjs";import{GX as XG,LY as J0,SW as G0,cY as v,eY as H,mY as RN,zY as uN}from"./cli-1.1.32-hgjgfp8p.mjs";import"./cli-1.1.32-vtzwmjs8.mjs";import"./cli-1.1.32-px6268dx.mjs";import"./cli-1.1.32-gpq33yz0.mjs";import"./cli-1.1.32-d47cvy98.mjs";import"./cli-1.1.32-46wadmxk.mjs";import"./cli-1.1.32-px93hhj4.mjs";import"./cli-1.1.32-n7cyeje8.mjs";import"./cli-1.1.32-5j5n166h.mjs";import"./cli-1.1.32-6317frxz.mjs";import"./cli-1.1.32-qmgvm9rq.mjs";import{m2 as a,n2 as Y,o2 as T,p2 as x}from"./cli-1.1.32-jjanec91.mjs";import{q2 as t0}from"./cli-1.1.32-6f9r9qcb.mjs";import"./cli-1.1.32-wyv15h7a.mjs";import"./cli-1.1.32-vf3r8a91.mjs";import"./cli-1.1.32-a3dfp7ps.mjs";import{F6 as s,G6 as lG}from"./cli-1.1.32-6jxftegx.mjs";import"./cli-1.1.32-rswqkymv.mjs";import"./cli-1.1.32-czrfbd3q.mjs";import"./cli-1.1.32-9wsnkggz.mjs";import"./cli-1.1.32-76wfpwbd.mjs";import"./cli-1.1.32-zv1p3q66.mjs";import"./cli-1.1.32-jt6w5mqv.mjs";import"./cli-1.1.32-5xmh2b7j.mjs";import"./cli-1.1.32-r5ww85n4.mjs";import"./cli-1.1.32-g5dzf2w1.mjs";import"./cli-1.1.32-260jjrwt.mjs";import"./cli-1.1.32-2kd689v0.mjs";import"./cli-1.1.32-bt4yfsm7.mjs";import{Dba as ON,Eba as DG,Gda as jG,U9 as X0,V9 as BN,aea as IN,tda as yN,tea as CG,uda as u,vda as HN,yda as FN}from"./cli-1.1.32-pve0ffcp.mjs";import"./cli-1.1.32-1rackf2c.mjs";import"./cli-1.1.32-merqy9t2.mjs";import"./cli-1.1.32-v4chz2b0.mjs";import"./cli-1.1.32-kn0zs89y.mjs";import"./cli-1.1.32-m7dxkbpn.mjs";import"./cli-1.1.32-ajhvj43e.mjs";import{gja as b0,lja as nG}from"./cli-1.1.32-8jkgzjh4.mjs";import"./cli-1.1.32-zeyasrw5.mjs";import"./cli-1.1.32-z7x4jfeb.mjs";import"./cli-1.1.32-7zp3b6gq.mjs";import{Hpa as dG,ila as tN}from"./cli-1.1.32-60pc6r2s.mjs";import"./cli-1.1.32-hbwke9cs.mjs";import"./cli-1.1.32-0pmhmsew.mjs";import{Sqa as i,Wqa as e}from"./cli-1.1.32-yw64r19c.mjs";function o0(U){let N=bN.c(9),{ruleValue:J}=U;switch(J.toolName){case a0.name:if(J.ruleContent)if(J.ruleContent.endsWith(":*")){let z;if(N[0]!==J.ruleContent)z=J.ruleContent.slice(0,-2),N[0]=J.ruleContent,N[1]=z;else z=N[1];let G;if(N[2]!==z)G=T(H,{dimColor:!0,children:["Any Bash command starting with"," ",Y(H,{bold:!0,children:z})]}),N[2]=z,N[3]=G;else G=N[3];return G}else{let z;if(N[4]!==J.ruleContent)z=T(H,{dimColor:!0,children:["The Bash command ",Y(H,{bold:!0,children:J.ruleContent})]}),N[4]=J.ruleContent,N[5]=z;else z=N[5];return z}else{let z;if(N[6]===Symbol.for("react.memo_cache_sentinel"))z=Y(H,{dimColor:!0,children:"Any Bash command"}),N[6]=z;else z=N[6];return z}default:if(!J.ruleContent){let z;if(N[7]!==J.toolName)z=T(H,{dimColor:!0,children:["Any use of the ",Y(H,{bold:!0,children:J.toolName})," tool"]}),N[7]=J.toolName,N[8]=z;else z=N[8];return z}else return null}}var bN;var EN=e(()=>{J0();TN();x();bN=i(G0(),1)});function yG(U){switch(U){case"localSettings":return{label:"Project settings (local)",description:`Saved in ${IN("localSettings")}`,value:U};case"projectSettings":return{label:"Project settings",description:`Checked in at ${IN("projectSettings")}`,value:U};case"userSettings":return{label:"User settings",description:"Saved in ~/.claudin/settings.json",value:U}}}function gN(U){let N=CN.c(26),{onAddRules:J,onCancel:z,ruleValues:G,ruleBehavior:w,initialContext:B,setToolPermissionContext:q}=U,E;if(N[0]===Symbol.for("react.memo_cache_sentinel"))E=ON.map(yG),N[0]=E;else E=N[0];let k=E,W;if(N[1]!==B||N[2]!==J||N[3]!==z||N[4]!==w||N[5]!==G||N[6]!==q)W=(j)=>{if(j==="cancel"){z();return}else if(ON.includes(j)){let A=j,D=E0(B,{type:"addRules",rules:G,behavior:w,destination:A});$0({type:"addRules",rules:G,behavior:w,destination:A}),q(D);let C=G.map((m)=>({ruleValue:m,ruleBehavior:w,source:A})),S=MN.isSandboxingEnabled()&&MN.isAutoAllowBashIfSandboxedEnabled(),l=jN(D,{sandboxAutoAllowEnabled:S}).filter((m)=>G.some((R)=>R.toolName===m.rule.ruleValue.toolName&&R.ruleContent===m.rule.ruleValue.ruleContent));J(C,l.length>0?l:void 0)}},N[1]=B,N[2]=J,N[3]=z,N[4]=w,N[5]=G,N[6]=q,N[7]=W;else W=N[7];let Z=W,L;if(N[8]!==G.length)L=FN(G.length,"rule"),N[8]=G.length,N[9]=L;else L=N[9];let I=`Add ${w} permission ${L}`,M;if(N[10]!==G)M=G.map(RG),N[10]=G,N[11]=M;else M=N[11];let O;if(N[12]!==M)O=Y(v,{flexDirection:"column",paddingX:2,children:M}),N[12]=M,N[13]=O;else O=N[13];let K=G.length===1?"Where should this rule be saved?":"Where should these rules be saved?",b;if(N[14]!==K)b=Y(H,{children:K}),N[14]=K,N[15]=b;else b=N[15];let Q;if(N[16]!==Z)Q=Y(n,{options:k,onChange:Z}),N[16]=Z,N[17]=Q;else Q=N[17];let f;if(N[18]!==b||N[19]!==Q)f=T(v,{flexDirection:"column",marginY:1,children:[b,Q]}),N[18]=b,N[19]=Q,N[20]=f;else f=N[20];let F;if(N[21]!==z||N[22]!==O||N[23]!==f||N[24]!==I)F=T(s0,{title:I,onCancel:z,color:"permission",children:[O,f]}),N[21]=z,N[22]=O,N[23]=f,N[24]=I,N[25]=F;else F=N[25];return F}function RG(U){return T(v,{flexDirection:"column",children:[Y(H,{bold:!0,children:u(U)}),Y(o0,{ruleValue:U})]},u(U))}var CN;var vN=e(()=>{V0();J0();KN();HN();vG();gG();DG();CG();jG();DN();EN();x();CN=i(G0(),1)});function cN(U){let N=xN.c(24),{onCancel:J,onSubmit:z,ruleBehavior:G}=U,[w,B]=AN.useState(""),[q,E]=AN.useState(0),k=T0(),W;if(N[0]===Symbol.for("react.memo_cache_sentinel"))W={context:"Settings"},N[0]=W;else W=N[0];P0("confirm:no",J,W);let{columns:Z}=SN(),L=Z-6,I;if(N[1]!==z||N[2]!==G)I=(C)=>{let S=C.trim();if(S.length===0)return;let p=yN(S);z(p,G)},N[1]=z,N[2]=G,N[3]=I;else I=N[3];let M=I,O;if(N[4]!==G)O=T(H,{bold:!0,color:"permission",children:["Add ",G," permission rule"]}),N[4]=G,N[5]=O;else O=N[5];let K;if(N[6]===Symbol.for("react.memo_cache_sentinel"))K=Y(RN,{}),N[6]=K;else K=N[6];let b,Q;if(N[7]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{bold:!0,children:u({toolName:hN.name})}),Q=Y(H,{bold:!1,children:" or "}),N[7]=b,N[8]=Q;else b=N[7],Q=N[8];let f;if(N[9]===Symbol.for("react.memo_cache_sentinel"))f=T(H,{children:["Permission rules are a tool name, optionally followed by a specifier in parentheses.",K,"e.g.,"," ",b,Q,Y(H,{bold:!0,children:u({toolName:a0.name,ruleContent:"ls:*"})})]}),N[9]=f;else f=N[9];let F;if(N[10]!==q||N[11]!==M||N[12]!==w||N[13]!==L)F=T(v,{flexDirection:"column",children:[f,Y(v,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:Y(pN,{showCursor:!0,value:w,onChange:B,onSubmit:M,placeholder:`Enter permission rule${X0.ellipsis}`,columns:L,cursorOffset:q,onChangeCursorOffset:E})})]}),N[10]=q,N[11]=M,N[12]=w,N[13]=L,N[14]=F;else F=N[14];let j;if(N[15]!==O||N[16]!==F)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[O,F]}),N[15]=O,N[16]=F,N[17]=j;else j=N[17];let A;if(N[18]!==k.keyName||N[19]!==k.pending)A=Y(v,{marginLeft:3,children:k.pending?T(H,{dimColor:!0,children:["Press ",k.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Enter to submit · Esc to cancel"})}),N[18]=k.keyName,N[19]=k.pending,N[20]=A;else A=N[20];let D;if(N[21]!==A||N[22]!==j)D=T(a,{children:[j,A]}),N[21]=A,N[22]=j,N[23]=D;else D=N[23];return D}var xN,AN;var dN=e(()=>{BN();_G();_N();SG();J0();mN();TN();mG();HN();x();xN=i(G0(),1),AN=i(t0(),1)});function rN(U){let N=lN.c(30),{onHeaderFocusChange:J,onStateChange:z}=U,{headerFocused:G,focusHeader:w}=O0(),B,q;if(N[0]!==G||N[1]!==J)B=()=>{J?.(G)},q=[G,J],N[0]=G,N[1]=J,N[2]=B,N[3]=q;else B=N[2],q=N[3];N0.useEffect(B,q);let[E]=N0.useState(cG),[k,W]=N0.useState(xG),[Z,L]=N0.useState(pG),[I,M]=N0.useState(0),O,K;if(N[4]!==k||N[5]!==E||N[6]!==z||N[7]!==Z)O=()=>{z({approved:k,retry:Z,denials:E})},K=[k,Z,E,z],N[4]=k,N[5]=E,N[6]=z,N[7]=Z,N[8]=O,N[9]=K;else O=N[8],K=N[9];N0.useEffect(O,K);let b;if(N[10]===Symbol.for("react.memo_cache_sentinel"))b=(R)=>{let _=Number(R);W((c)=>{let h=new Set(c);if(h.has(_))h.delete(_);else h.add(_);return h})},N[10]=b;else b=N[10];let Q=b,f;if(N[11]===Symbol.for("react.memo_cache_sentinel"))f=(R)=>{M(Number(R))},N[11]=f;else f=N[11];let F=f,j;if(N[12]!==I)j=(R,_)=>{if(R==="r")L((c)=>{let h=new Set(c);if(h.has(I))h.delete(I);else h.add(I);return h}),W((c)=>{if(c.has(I))return c;let h=new Set(c);return h.add(I),h})},N[12]=I,N[13]=j;else j=N[13];let A=E.length>0,D;if(N[14]!==A)D={isActive:A},N[14]=A,N[15]=D;else D=N[15];if(uN(j,D),E.length===0){let R;if(N[16]===Symbol.for("react.memo_cache_sentinel"))R=Y(H,{dimColor:!0,children:"No recent denials. Commands denied by the auto mode classifier will appear here."}),N[16]=R;else R=N[16];return R}let C;if(N[17]!==k||N[18]!==E||N[19]!==Z){let R;if(N[21]!==k||N[22]!==Z)R=(_,c)=>{let h=k.has(c),NN=Z.has(c)?" (retry)":"";return{label:T(H,{children:[Y(iN,{status:h?"success":"error",withSpace:!0}),_.display,Y(H,{dimColor:!0,children:NN})]}),value:String(c)}},N[21]=k,N[22]=Z,N[23]=R;else R=N[23];C=E.map(R),N[17]=k,N[18]=E,N[19]=Z,N[20]=C}else C=N[20];let S=C,p;if(N[24]===Symbol.for("react.memo_cache_sentinel"))p=Y(H,{children:"Commands recently denied by the auto mode classifier."}),N[24]=p;else p=N[24];let l=Math.min(10,S.length),m;if(N[25]!==w||N[26]!==G||N[27]!==S||N[28]!==l)m=T(v,{flexDirection:"column",children:[p,Y(v,{marginTop:1,children:Y(n,{options:S,onChange:Q,onFocus:F,visibleOptionCount:l,isDisabled:G,onUpFromFirstItem:w})})]}),N[25]=w,N[26]=G,N[27]=S,N[28]=l,N[29]=m;else m=N[29];return m}function pG(){return new Set}function xG(){return new Set}function cG(){return e0()}var lN,N0;var aN=e(()=>{J0();nN();V0();hG();fN();x();lN=i(G0(),1),N0=i(t0(),1)});function $N(U){let N=oN.c(19),{directoryPath:J,onRemove:z,onCancel:G,permissionContext:w,setPermissionContext:B}=U,q;if(N[0]!==J||N[1]!==z||N[2]!==w||N[3]!==B)q=()=>{let K=E0(w,{type:"removeDirectories",directories:[J],destination:"session"});B(K),z()},N[0]=J,N[1]=z,N[2]=w,N[3]=B,N[4]=q;else q=N[4];let E=q,k;if(N[5]!==E||N[6]!==G)k=(K)=>{if(K==="yes")E();else G()},N[5]=E,N[6]=G,N[7]=k;else k=N[7];let W=k,Z;if(N[8]!==J)Z=Y(v,{marginX:2,flexDirection:"column",children:Y(H,{bold:!0,children:J})}),N[8]=J,N[9]=Z;else Z=N[9];let L;if(N[10]===Symbol.for("react.memo_cache_sentinel"))L=Y(H,{children:"Claudin will no longer have access to files in this directory."}),N[10]=L;else L=N[10];let I;if(N[11]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[11]=I;else I=N[11];let M;if(N[12]!==W||N[13]!==G)M=Y(n,{onChange:W,onCancel:G,options:I}),N[12]=W,N[13]=G,N[14]=M;else M=N[14];let O;if(N[15]!==G||N[16]!==Z||N[17]!==M)O=T(s0,{title:"Remove directory from workspace?",onCancel:G,color:"error",children:[Z,L,M]}),N[15]=G,N[16]=Z,N[17]=M,N[18]=O;else O=N[18];return O}var oN;var sN=e(()=>{V0();J0();KN();DN();x();oN=i(G0(),1)});function GG(U){let N=eN.c(23),{onExit:J,toolPermissionContext:z,onRequestAddDirectory:G,onRequestRemoveDirectory:w,onHeaderFocusChange:B}=U,{headerFocused:q,focusHeader:E}=O0(),k,W;if(N[0]!==q||N[1]!==B)k=()=>{B?.(q)},W=[q,B],N[0]=q,N[1]=B,N[2]=k,N[3]=W;else k=N[2],W=N[3];NG.useEffect(k,W);let Z;if(N[4]!==z.additionalWorkingDirectories)Z=Array.from(z.additionalWorkingDirectories.keys()).map(iG),N[4]=z.additionalWorkingDirectories,N[5]=Z;else Z=N[5];let L=Z,I;if(N[6]!==L||N[7]!==G||N[8]!==w)I=(A)=>{if(A==="add-directory"){G();return}let D=L.find((C)=>C.path===A);if(D&&D.isDeletable)w(D.path)},N[6]=L,N[7]=G,N[8]=w,N[9]=I;else I=N[9];let M=I,O;if(N[10]!==J)O=()=>J("Workspace dialog dismissed",{display:"system"}),N[10]=J,N[11]=O;else O=N[11];let K=O,b;if(N[12]!==L){b=L.map(uG);let A;if(N[14]===Symbol.for("react.memo_cache_sentinel"))A={label:`Add directory${X0.ellipsis}`,value:"add-directory"},N[14]=A;else A=N[14];b.push(A),N[12]=L,N[13]=b}else b=N[13];let Q=b,f;if(N[15]===Symbol.for("react.memo_cache_sentinel"))f=T(v,{flexDirection:"row",marginTop:1,marginLeft:2,gap:1,children:[Y(H,{children:`- ${tN()}`}),Y(H,{dimColor:!0,children:"(Original working directory)"})]}),N[15]=f;else f=N[15];let F=Math.min(10,Q.length),j;if(N[16]!==E||N[17]!==K||N[18]!==M||N[19]!==q||N[20]!==Q||N[21]!==F)j=T(v,{flexDirection:"column",marginBottom:1,children:[f,Y(n,{options:Q,onChange:M,onCancel:K,visibleOptionCount:F,onUpFromFirstItem:E,isDisabled:q})]}),N[16]=E,N[17]=K,N[18]=M,N[19]=q,N[20]=Q,N[21]=F,N[22]=j;else j=N[22];return j}function uG(U){return{label:U.path,value:U.path}}function iG(U){return{path:U,isCurrent:!1,isDeletable:!0}}var eN,NG;var JG=e(()=>{BN();dG();V0();J0();fN();x();eN=i(G0(),1),NG=i(t0(),1)});function eG(U){let N=M0.c(4),{rule:J}=U,z;if(N[0]!==J.source)z=YG(J.source),N[0]=J.source,N[1]=z;else z=N[1];let G=`From ${z}`,w;if(N[2]!==G)w=Y(H,{dimColor:!0,children:G}),N[2]=G,N[3]=w;else w=N[3];return w}function NJ(U){switch(U){case"allow":return"allowed";case"deny":return"denied";case"ask":return"ask"}}function GJ(U){let N=M0.c(42),{rule:J,onDelete:z,onCancel:G}=U,w=T0(),B;if(N[0]===Symbol.for("react.memo_cache_sentinel"))B={context:"Confirmation"},N[0]=B;else B=N[0];P0("confirm:no",G,B);let q;if(N[1]!==J.ruleValue)q=u(J.ruleValue),N[1]=J.ruleValue,N[2]=q;else q=N[2];let E;if(N[3]!==q)E=Y(H,{bold:!0,children:q}),N[3]=q,N[4]=E;else E=N[4];let k;if(N[5]!==J.ruleValue)k=Y(o0,{ruleValue:J.ruleValue}),N[5]=J.ruleValue,N[6]=k;else k=N[6];let W;if(N[7]!==J)W=Y(eG,{rule:J}),N[7]=J,N[8]=W;else W=N[8];let Z;if(N[9]!==E||N[10]!==k||N[11]!==W)Z=T(v,{flexDirection:"column",marginX:2,children:[E,k,W]}),N[9]=E,N[10]=k,N[11]=W,N[12]=Z;else Z=N[12];let L=Z,I;if(N[13]!==w.keyName||N[14]!==w.pending)I=Y(v,{marginLeft:3,children:w.pending?T(H,{dimColor:!0,children:["Press ",w.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Esc to cancel"})}),N[13]=w.keyName,N[14]=w.pending,N[15]=I;else I=N[15];let M=I;if(J.source==="policySettings"){let D;if(N[16]===Symbol.for("react.memo_cache_sentinel"))D=Y(H,{bold:!0,color:"permission",children:"Rule details"}),N[16]=D;else D=N[16];let C;if(N[17]===Symbol.for("react.memo_cache_sentinel"))C=T(H,{italic:!0,children:["This rule is configured by managed settings and cannot be modified.",`
|
|
2
|
+
`,"Contact your system administrator for more information."]}),N[17]=C;else C=N[17];let S;if(N[18]!==L)S=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[D,L,C]}),N[18]=L,N[19]=S;else S=N[19];let p;if(N[20]!==M||N[21]!==S)p=T(a,{children:[S,M]}),N[20]=M,N[21]=S,N[22]=p;else p=N[22];return p}let O;if(N[23]!==J.ruleBehavior)O=NJ(J.ruleBehavior),N[23]=J.ruleBehavior,N[24]=O;else O=N[24];let K;if(N[25]!==O)K=T(H,{bold:!0,color:"error",children:["Delete ",O," tool?"]}),N[25]=O,N[26]=K;else K=N[26];let b;if(N[27]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{children:"Are you sure you want to delete this permission rule?"}),N[27]=b;else b=N[27];let Q;if(N[28]!==G||N[29]!==z)Q=(D)=>D==="yes"?z():G(),N[28]=G,N[29]=z,N[30]=Q;else Q=N[30];let f;if(N[31]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[31]=f;else f=N[31];let F;if(N[32]!==G||N[33]!==Q)F=Y(n,{onChange:Q,onCancel:G,options:f}),N[32]=G,N[33]=Q,N[34]=F;else F=N[34];let j;if(N[35]!==L||N[36]!==F||N[37]!==K)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"error",children:[K,L,b,F]}),N[35]=L,N[36]=F,N[37]=K,N[38]=j;else j=N[38];let A;if(N[39]!==M||N[40]!==j)A=T(a,{children:[j,M]}),N[39]=M,N[40]=j,N[41]=A;else A=N[41];return A}function JJ(U){let N=M0.c(26),{options:J,searchQuery:z,isSearchMode:G,isFocused:w,onSelect:B,onCancel:q,lastFocusedRuleKey:E,cursorOffset:k,onHeaderFocusChange:W}=U,Z=IG(),{headerFocused:L,focusHeader:I,blurHeader:M}=O0(),O,K;if(N[0]!==M||N[1]!==L||N[2]!==G)O=()=>{if(G&&L)M()},K=[G,L,M],N[0]=M,N[1]=L,N[2]=G,N[3]=O,N[4]=K;else O=N[3],K=N[4];d.useEffect(O,K);let b,Q;if(N[5]!==L||N[6]!==W)b=()=>{W?.(L)},Q=[L,W],N[5]=L,N[6]=W,N[7]=b,N[8]=Q;else b=N[7],Q=N[8];d.useEffect(b,Q);let f=G&&!L,F;if(N[9]!==k||N[10]!==w||N[11]!==z||N[12]!==f||N[13]!==Z)F=Y(v,{marginBottom:1,flexDirection:"column",children:Y(qG,{query:z,isFocused:f,isTerminalFocused:w,width:Z,cursorOffset:k})}),N[9]=k,N[10]=w,N[11]=z,N[12]=f,N[13]=Z,N[14]=F;else F=N[14];let j=Math.min(10,J.length),A=G||L,D;if(N[15]!==I||N[16]!==E||N[17]!==q||N[18]!==B||N[19]!==J||N[20]!==j||N[21]!==A)D=Y(n,{options:J,onChange:B,onCancel:q,visibleOptionCount:j,isDisabled:A,defaultFocusValue:E,onUpFromFirstItem:I}),N[15]=I,N[16]=E,N[17]=q,N[18]=B,N[19]=J,N[20]=j,N[21]=A,N[22]=D;else D=N[22];let C;if(N[23]!==F||N[24]!==D)C=T(v,{flexDirection:"column",children:[F,D]}),N[23]=F,N[24]=D,N[25]=C;else C=N[25];return C}function VN(U){let N=M0.c(27),J,z,G,w,B,q,E,k,W;if(N[0]!==U){let{tab:M,getRulesOptions:O,handleToolSelect:K,...b}=U;W=M,G=K,w=b,z=v,q="column",E=W==="allow"?0:void 0;let Q;if(N[10]===Symbol.for("react.memo_cache_sentinel"))Q={allow:"Claudin won't ask before using allowed tools.",ask:"Claudin will always ask for confirmation before using these tools.",deny:"Claudin will always reject requests to use denied tools."},N[10]=Q;else Q=N[10];let f=Q[W];if(N[11]!==f)k=Y(H,{children:f}),N[11]=f,N[12]=k;else k=N[12];J=JJ,B=O(W,w.searchQuery),N[0]=U,N[1]=J,N[2]=z,N[3]=G,N[4]=w,N[5]=B,N[6]=q,N[7]=E,N[8]=k,N[9]=W}else J=N[1],z=N[2],G=N[3],w=N[4],B=N[5],q=N[6],E=N[7],k=N[8],W=N[9];let Z;if(N[13]!==G||N[14]!==W)Z=(M)=>G(M,W),N[13]=G,N[14]=W,N[15]=Z;else Z=N[15];let L;if(N[16]!==J||N[17]!==w||N[18]!==B.options||N[19]!==Z)L=Y(J,{options:B.options,onSelect:Z,...w}),N[16]=J,N[17]=w,N[18]=B.options,N[19]=Z,N[20]=L;else L=N[20];let I;if(N[21]!==z||N[22]!==q||N[23]!==E||N[24]!==k||N[25]!==L)I=T(z,{flexDirection:q,flexShrink:E,children:[k,L]}),N[21]=z,N[22]=q,N[23]=E,N[24]=k,N[25]=L,N[26]=I;else I=N[26];return I}function MG(U){let N=M0.c(113),{onExit:J,initialTab:z,onRetryDenials:G}=U,w;if(N[0]===Symbol.for("react.memo_cache_sentinel"))w=e0(),N[0]=w;else w=N[0];let B=w.length>0,q=z??(B?"recent":"allow"),E;if(N[1]===Symbol.for("react.memo_cache_sentinel"))E=[],N[1]=E;else E=N[1];let[k,W]=d.useState(E),Z=QG(UJ),L=WG(),I=XG(),M;if(N[2]===Symbol.for("react.memo_cache_sentinel"))M={approved:new Set,retry:new Set,denials:[]},N[2]=M;else M=N[2];let O=d.useRef(M),K;if(N[3]===Symbol.for("react.memo_cache_sentinel"))K=(X)=>{O.current=X},N[3]=K;else K=N[3];let b=K,[Q,f]=d.useState(),[F,j]=d.useState(),[A,D]=d.useState(null),[C,S]=d.useState(null),[p,l]=d.useState(!1),[m,R]=d.useState(null),[_,c]=d.useState(!1),[h,NN]=d.useState(!0),F0;if(N[4]===Symbol.for("react.memo_cache_sentinel"))F0=(X)=>{NN(X)},N[4]=F0;else F0=N[4];let GN=F0,H0;if(N[5]!==Z)H0=new Map,ZG(Z).forEach((X)=>{H0.set(b0(X),X)}),N[5]=Z,N[6]=H0;else H0=N[6];let JN=H0,K0;if(N[7]!==Z)K0=new Map,zG(Z).forEach((X)=>{K0.set(b0(X),X)}),N[7]=Z,N[8]=K0;else K0=N[8];let XN=K0,A0;if(N[9]!==Z)A0=new Map,LG(Z).forEach((X)=>{A0.set(b0(X),X)}),N[9]=Z,N[10]=A0;else A0=N[10];let YN=A0,D0;if(N[11]!==JN||N[12]!==YN||N[13]!==XN)D0=(X,V)=>{let P=V===void 0?"":V,g=(()=>{switch(X){case"allow":return JN;case"deny":return XN;case"ask":return YN;case"workspace":case"recent":return new Map}})(),y=[];if(X!=="workspace"&&X!=="recent"&&!P)y.push({label:`Add a new rule${X0.ellipsis}`,value:"add-new-rule"});let r=Array.from(g.keys()).sort((W0,t)=>{let f0=g.get(W0),PN=g.get(t);if(f0&&PN){let bG=u(f0.ruleValue).toLowerCase(),FG=u(PN.ruleValue).toLowerCase();return bG.localeCompare(FG)}return 0}),Q0=P.toLowerCase();for(let W0 of r){let t=g.get(W0);if(t){let f0=u(t.ruleValue);if(P&&!f0.toLowerCase().includes(Q0))continue;y.push({label:f0,value:W0})}}return{options:y,rulesByKey:g}},N[11]=JN,N[12]=YN,N[13]=XN,N[14]=D0;else D0=N[14];let o=D0,Y0=T0(),B0=!Q&&!A&&!C&&!p&&!m,ZN=B0&&_,j0;if(N[15]===Symbol.for("react.memo_cache_sentinel"))j0=()=>{c(!1)},N[15]=j0;else j0=N[15];let C0;if(N[16]!==ZN)C0={isActive:ZN,onExit:j0},N[16]=ZN,N[17]=C0;else C0=N[17];let{query:zN,setQuery:g0,cursorOffset:LN}=wG(C0),v0;if(N[18]!==_||N[19]!==B0||N[20]!==g0)v0=(X)=>{if(!B0)return;if(_)return;if(X.ctrl||X.meta)return;if(X.key==="/")X.preventDefault(),c(!0),g0("");else if(X.key.length===1&&X.key!=="j"&&X.key!=="k"&&X.key!=="m"&&X.key!=="i"&&X.key!=="r"&&X.key!==" ")X.preventDefault(),c(!0),g0(X.key)},N[18]=_,N[19]=B0,N[20]=g0,N[21]=v0;else v0=N[21];let UN=v0,y0;if(N[22]!==o)y0=(X,V)=>{let{rulesByKey:P}=o(V);if(X==="add-new-rule"){D(V);return}else{f(P.get(X));return}},N[22]=o,N[23]=y0;else y0=N[23];let kN=y0,R0;if(N[24]===Symbol.for("react.memo_cache_sentinel"))R0=()=>{D(null)},N[24]=R0;else R0=N[24];let AG=R0,S0;if(N[25]===Symbol.for("react.memo_cache_sentinel"))S0=(X,V)=>{S({ruleValue:X,ruleBehavior:V}),D(null)},N[25]=S0;else S0=N[25];let BG=S0,m0;if(N[26]===Symbol.for("react.memo_cache_sentinel"))m0=(X,V)=>{S(null);for(let P of X)W((g)=>[...g,`Added ${P.ruleBehavior} rule ${s.bold(u(P.ruleValue))}`]);if(V&&V.length>0)for(let P of V){let g=P.shadowType==="deny"?"blocked":"shadowed";W((y)=>[...y,s.yellow(`${X0.warning} Warning: ${u(P.rule.ruleValue)} is ${g}`),s.dim(` ${P.reason}`),s.dim(` Fix: ${P.fix}`)])}},N[26]=m0;else m0=N[26];let fG=m0,_0;if(N[27]===Symbol.for("react.memo_cache_sentinel"))_0=()=>{S(null)},N[27]=_0;else _0=N[27];let VG=_0,h0;if(N[28]===Symbol.for("react.memo_cache_sentinel"))h0=()=>l(!0),N[28]=h0;else h0=N[28];let PG=h0,p0;if(N[29]===Symbol.for("react.memo_cache_sentinel"))p0=(X)=>R(X),N[29]=p0;else p0=N[29];let TG=p0,x0;if(N[30]!==k||N[31]!==J||N[32]!==G)x0=()=>{let X=O.current,V=(y)=>Array.from(y).map((r)=>X.denials[r]).filter(LJ),P=V(X.retry);if(P.length>0){let y=P.map(zJ);G?.(y),J(void 0,{shouldQuery:!0,metaMessages:[`Permission granted for: ${y.join(", ")}. You may now retry ${y.length===1?"this command":"these commands"} if you would like.`]});return}let g=V(X.approved);if(g.length>0||k.length>0){let y=g.length>0?[`Approved ${g.map(ZJ).join(", ")}`]:[];J([...y,...k].join(`
|
|
3
|
+
`))}else J("Permissions dialog dismissed",{display:"system"})},N[30]=k,N[31]=J,N[32]=G,N[33]=x0;else x0=N[33];let c0=x0,wN=B0&&!_,d0;if(N[34]!==wN)d0={context:"Settings",isActive:wN},N[34]=wN,N[35]=d0;else d0=N[35];P0("confirm:no",c0,d0);let u0;if(N[36]!==o||N[37]!==Q||N[38]!==L||N[39]!==Z)u0=()=>{if(!Q)return;let{options:X}=o(Q.ruleBehavior),V=b0(Q),P=X.filter(YJ).map(XJ),g=P.indexOf(V),y;if(g!==-1){if(g<P.length-1)y=P[g+1];else if(g>0)y=P[g-1]}j(y),UG({rule:Q,initialContext:Z,setToolPermissionContext(r){L((Q0)=>({...Q0,toolPermissionContext:r}))}}),W((r)=>[...r,`Deleted ${Q.ruleBehavior} rule ${s.bold(u(Q.ruleValue))}`]),f(void 0)},N[36]=o,N[37]=Q,N[38]=L,N[39]=Z,N[40]=u0;else u0=N[40];let qN=u0;if(Q){let X;if(N[41]===Symbol.for("react.memo_cache_sentinel"))X=()=>f(void 0),N[41]=X;else X=N[41];let V;if(N[42]!==qN||N[43]!==Q)V=Y(GJ,{rule:Q,onDelete:qN,onCancel:X}),N[42]=qN,N[43]=Q,N[44]=V;else V=N[44];return V}if(A&&A!=="workspace"&&A!=="recent"){let X;if(N[45]!==A)X=Y(cN,{onCancel:AG,onSubmit:BG,ruleBehavior:A}),N[45]=A,N[46]=X;else X=N[46];return X}if(C){let X;if(N[47]!==C.ruleValue)X=[C.ruleValue],N[47]=C.ruleValue,N[48]=X;else X=N[48];let V;if(N[49]!==L)V=(g)=>{L((y)=>({...y,toolPermissionContext:g}))},N[49]=L,N[50]=V;else V=N[50];let P;if(N[51]!==X||N[52]!==V||N[53]!==Z||N[54]!==C.ruleBehavior)P=Y(gN,{onAddRules:fG,onCancel:VG,ruleValues:X,ruleBehavior:C.ruleBehavior,initialContext:Z,setToolPermissionContext:V}),N[51]=X,N[52]=V,N[53]=Z,N[54]=C.ruleBehavior,N[55]=P;else P=N[55];return P}if(p){let X;if(N[56]!==L||N[57]!==Z)X=(g,y)=>{let Q0={type:"addDirectories",directories:[g],destination:y?"localSettings":"session"},W0=E0(Z,Q0);if(L((t)=>({...t,toolPermissionContext:W0})),y)$0(Q0);W((t)=>[...t,`Added directory ${s.bold(g)} to workspace${y?" and saved to local settings":" for this session"}`]),l(!1)},N[56]=L,N[57]=Z,N[58]=X;else X=N[58];let V;if(N[59]===Symbol.for("react.memo_cache_sentinel"))V=()=>l(!1),N[59]=V;else V=N[59];let P;if(N[60]!==X||N[61]!==Z)P=Y(EG,{onAddDirectory:X,onCancel:V,permissionContext:Z}),N[60]=X,N[61]=Z,N[62]=P;else P=N[62];return P}if(m){let X;if(N[63]!==m)X=()=>{W((y)=>[...y,`Removed directory ${s.bold(m)} from workspace`]),R(null)},N[63]=m,N[64]=X;else X=N[64];let V;if(N[65]===Symbol.for("react.memo_cache_sentinel"))V=()=>R(null),N[65]=V;else V=N[65];let P;if(N[66]!==L)P=(y)=>{L((r)=>({...r,toolPermissionContext:y}))},N[66]=L,N[67]=P;else P=N[67];let g;if(N[68]!==m||N[69]!==X||N[70]!==P||N[71]!==Z)g=Y($N,{directoryPath:m,onRemove:X,onCancel:V,permissionContext:Z,setPermissionContext:P}),N[68]=m,N[69]=X,N[70]=P,N[71]=Z,N[72]=g;else g=N[72];return g}let i0;if(N[73]!==o||N[74]!==c0||N[75]!==kN||N[76]!==_||N[77]!==I||N[78]!==F||N[79]!==LN||N[80]!==zN)i0={searchQuery:zN,isSearchMode:_,isFocused:I,onCancel:c0,lastFocusedRuleKey:F,cursorOffset:LN,getRulesOptions:o,handleToolSelect:kN,onHeaderFocusChange:GN},N[73]=o,N[74]=c0,N[75]=kN,N[76]=_,N[77]=I,N[78]=F,N[79]=LN,N[80]=zN,N[81]=i0;else i0=N[81];let $=i0,QN=!!Q||!!A||!!C||p||!!m,WN=!_,n0;if(N[82]===Symbol.for("react.memo_cache_sentinel"))n0=Y(I0,{id:"recent",title:"Recently denied",children:Y(rN,{onHeaderFocusChange:GN,onStateChange:b})}),N[82]=n0;else n0=N[82];let Z0;if(N[83]!==$)Z0=Y(I0,{id:"allow",title:"Allow",children:Y(VN,{tab:"allow",...$})}),N[83]=$,N[84]=Z0;else Z0=N[84];let z0;if(N[85]!==$)z0=Y(I0,{id:"ask",title:"Ask",children:Y(VN,{tab:"ask",...$})}),N[85]=$,N[86]=z0;else z0=N[86];let L0;if(N[87]!==$)L0=Y(I0,{id:"deny",title:"Deny",children:Y(VN,{tab:"deny",...$})}),N[87]=$,N[88]=L0;else L0=N[88];let l0;if(N[89]===Symbol.for("react.memo_cache_sentinel"))l0=Y(H,{children:"Claudin can read files in the workspace, and make edits when auto-accept edits is on."}),N[89]=l0;else l0=N[89];let U0;if(N[90]!==J||N[91]!==Z)U0=Y(I0,{id:"workspace",title:"Workspace",children:T(v,{flexDirection:"column",children:[l0,Y(GG,{onExit:J,toolPermissionContext:Z,onRequestAddDirectory:PG,onRequestRemoveDirectory:TG,onHeaderFocusChange:GN})]})}),N[90]=J,N[91]=Z,N[92]=U0;else U0=N[92];let k0;if(N[93]!==q||N[94]!==QN||N[95]!==WN||N[96]!==Z0||N[97]!==z0||N[98]!==L0||N[99]!==U0)k0=T(OG,{title:"Permissions:",color:"permission",defaultTab:q,hidden:QN,initialHeaderFocused:!B,navFromContent:WN,children:[n0,Z0,z0,L0,U0]}),N[93]=q,N[94]=QN,N[95]=WN,N[96]=Z0,N[97]=z0,N[98]=L0,N[99]=U0,N[100]=k0;else k0=N[100];let w0;if(N[101]!==q||N[102]!==Y0.keyName||N[103]!==Y0.pending||N[104]!==h||N[105]!==_)w0=Y(v,{marginTop:1,paddingLeft:1,children:Y(H,{dimColor:!0,children:Y0.pending?T(a,{children:["Press ",Y0.keyName," again to exit"]}):h?Y(a,{children:"←/→ tab switch · ↓ return · Esc cancel"}):_?Y(a,{children:"Type to filter · Enter/↓ select · ↑ tabs · Esc clear"}):B&&q==="recent"?Y(a,{children:"Enter approve · r retry · ↑↓ navigate · ←/→ switch · Esc cancel"}):Y(a,{children:"↑↓ navigate · Enter select · Type to search · ←/→ switch · Esc cancel"})})}),N[101]=q,N[102]=Y0.keyName,N[103]=Y0.pending,N[104]=h,N[105]=_,N[106]=w0;else w0=N[106];let q0;if(N[107]!==k0||N[108]!==w0)q0=T(kG,{color:"permission",children:[k0,w0]}),N[107]=k0,N[108]=w0,N[109]=q0;else q0=N[109];let r0;if(N[110]!==UN||N[111]!==q0)r0=Y(v,{flexDirection:"column",onKeyDown:UN,children:q0}),N[110]=UN,N[111]=q0,N[112]=r0;else r0=N[112];return r0}function XJ(U){return U.value}function YJ(U){return U.value!=="add-new-rule"}function ZJ(U){return s.bold(U.display)}function zJ(U){return U.display}function LJ(U){return U!==void 0}function UJ(U){return U.toolPermissionContext}var M0,d;var HG=e(()=>{lG();BN();sG();KN();V0();_N();oG();J0();mN();nN();HN();rG();nG();aG();fN();$G();vN();tG();EN();dN();aN();sN();JG();x();M0=i(G0(),1),d=i(t0(),1)});var mX=async(U,N)=>{return Y(MG,{onExit:U,onRetryDenials:(J)=>{N.setMessages((z)=>[...z,KG(J)])}})};var kJ=e(()=>{HG();wJ();x()});kJ();export{mX as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{rha as a,sha as b,tha as c}from"./cli-1.1.32-v4chz2b0.mjs";import"./cli-1.1.32-yw64r19c.mjs";c();export{b as PERMISSION_MODES,a as EXTERNAL_PERMISSION_MODES};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ad as d,zd as S}from"./cli-1.1.32-yfs9ppge.mjs";import{Ag as D,wg as B,xg as P,yg as F}from"./cli-1.1.32-aqfcrtfz.mjs";import{DN as j,Hn as A,Km as U,Lm as _,Mn as m,Om as g,oy as I,sy as c,yN as y}from"./cli-1.1.32-9yka8m9x.mjs";import"./cli-1.1.32-gwf0a8ej.mjs";import"./cli-1.1.32-1913x5jp.mjs";import"./cli-1.1.32-p70gsyp3.mjs";import"./cli-1.1.32-bce46tmm.mjs";import"./cli-1.1.32-y4agg2c2.mjs";import"./cli-1.1.32-4vdyqkkd.mjs";import"./cli-1.1.32-5c5dcwk6.mjs";import"./cli-1.1.32-h7cb9f8y.mjs";import"./cli-1.1.32-1c9z2mtv.mjs";import"./cli-1.1.32-m9p4pd60.mjs";import"./cli-1.1.32-qzjfn21e.mjs";import"./cli-1.1.32-5dq711bj.mjs";import"./cli-1.1.32-8yc37yqa.mjs";import{LY as T,SW as h,cY as V,eY as G}from"./cli-1.1.32-hgjgfp8p.mjs";import"./cli-1.1.32-vtzwmjs8.mjs";import"./cli-1.1.32-px6268dx.mjs";import"./cli-1.1.32-gpq33yz0.mjs";import"./cli-1.1.32-d47cvy98.mjs";import"./cli-1.1.32-46wadmxk.mjs";import"./cli-1.1.32-px93hhj4.mjs";import"./cli-1.1.32-n7cyeje8.mjs";import"./cli-1.1.32-5j5n166h.mjs";import"./cli-1.1.32-6317frxz.mjs";import"./cli-1.1.32-qmgvm9rq.mjs";import{n2 as w,o2 as W,p2 as Z}from"./cli-1.1.32-jjanec91.mjs";import"./cli-1.1.32-6f9r9qcb.mjs";import"./cli-1.1.32-wyv15h7a.mjs";import"./cli-1.1.32-vf3r8a91.mjs";import"./cli-1.1.32-a3dfp7ps.mjs";import"./cli-1.1.32-6jxftegx.mjs";import"./cli-1.1.32-rswqkymv.mjs";import"./cli-1.1.32-czrfbd3q.mjs";import"./cli-1.1.32-9wsnkggz.mjs";import"./cli-1.1.32-76wfpwbd.mjs";import"./cli-1.1.32-zv1p3q66.mjs";import"./cli-1.1.32-jt6w5mqv.mjs";import"./cli-1.1.32-5xmh2b7j.mjs";import"./cli-1.1.32-r5ww85n4.mjs";import"./cli-1.1.32-g5dzf2w1.mjs";import"./cli-1.1.32-260jjrwt.mjs";import"./cli-1.1.32-2kd689v0.mjs";import"./cli-1.1.32-bt4yfsm7.mjs";import"./cli-1.1.32-pve0ffcp.mjs";import"./cli-1.1.32-1rackf2c.mjs";import"./cli-1.1.32-merqy9t2.mjs";import"./cli-1.1.32-v4chz2b0.mjs";import"./cli-1.1.32-kn0zs89y.mjs";import"./cli-1.1.32-m7dxkbpn.mjs";import"./cli-1.1.32-ajhvj43e.mjs";import"./cli-1.1.32-8jkgzjh4.mjs";import"./cli-1.1.32-zeyasrw5.mjs";import"./cli-1.1.32-z7x4jfeb.mjs";import"./cli-1.1.32-7zp3b6gq.mjs";import{Hpa as u,opa as R}from"./cli-1.1.32-60pc6r2s.mjs";import"./cli-1.1.32-hbwke9cs.mjs";import"./cli-1.1.32-0pmhmsew.mjs";import{Sqa as C,Wqa as N}from"./cli-1.1.32-yw64r19c.mjs";function $(z){let b=v.c(11),{planContent:H,planPath:K,editorName:J}=z,L;if(b[0]===Symbol.for("react.memo_cache_sentinel"))L=w(G,{bold:!0,children:"Current Plan"}),b[0]=L;else L=b[0];let k;if(b[1]!==K)k=w(G,{dimColor:!0,children:K}),b[1]=K,b[2]=k;else k=b[2];let q;if(b[3]!==H)q=w(V,{marginTop:1,children:w(G,{children:H})}),b[3]=H,b[4]=q;else q=b[4];let f;if(b[5]!==J)f=J&&W(V,{marginTop:1,children:[w(G,{dimColor:!0,children:'"/plan open"'}),w(G,{dimColor:!0,children:" to edit this plan in "}),w(G,{bold:!0,dimColor:!0,children:J})]}),b[5]=J,b[6]=f;else f=b[6];let O;if(b[7]!==k||b[8]!==q||b[9]!==f)O=W(V,{flexDirection:"column",children:[L,k,q,f]}),b[7]=k,b[8]=q,b[9]=f,b[10]=O;else O=b[10];return O}async function bb(z,b,H){let{getAppState:K,setAppState:J}=b,k=K().toolPermissionContext.mode;if(k!=="plan"){R(k,"plan"),J((Y)=>({...Y,toolPermissionContext:A(y(Y.toolPermissionContext),{type:"setMode",mode:"plan",destination:"session"})}));let Q=H.trim();if(Q&&Q!=="open")z("Enabled plan mode",{shouldQuery:!0});else z("Enabled plan mode");return null}let q=_(),f=U();if(!q)return z("Already in plan mode. No plan written yet."),null;if(H.trim().split(/\s+/)[0]==="open"){let Q=await F(f);if(Q.error)z(`Failed to open plan in editor: ${Q.error}`);else z(`Opened plan in editor: ${f}`);return null}let X=B(),E=X?I(X):void 0,M=await S(w($,{planContent:q,planPath:f,editorName:E}));return z(M),null}var v;var x=N(()=>{u();T();P();c();m();j();g();D();d();Z();v=C(h(),1)});x();export{bb as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wqa as z}from"./cli-1.1.32-yw64r19c.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
|