@claudiolabs/claudin 0.5.12 → 0.5.13
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/AgentTool-0.5.13-6dz2gvzt.mjs +1 -0
- package/dist/chunks/App-0.5.13-h8h37pzk.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +1 -0
- package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +3 -0
- package/dist/chunks/Doctor-0.5.13-335trspw.mjs +1 -0
- package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +1 -0
- package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +1 -0
- package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +1 -0
- package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +1 -0
- package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +1 -0
- package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +1 -0
- package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +1 -0
- package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +1 -0
- package/dist/chunks/agents-0.5.13-manb7tcq.mjs +3 -0
- package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +110 -0
- package/dist/chunks/api-0.5.13-q2anppzf.mjs +1 -0
- package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +1 -0
- package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +1 -0
- package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +1 -0
- package/dist/chunks/auth-0.5.13-jn53extx.mjs +1 -0
- package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +48 -0
- package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +1 -0
- package/dist/chunks/branch-0.5.13-qmyekghp.mjs +4 -0
- package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +1 -0
- package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +1 -0
- package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +3 -0
- package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +1 -0
- package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +21 -0
- package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +4 -0
- package/dist/chunks/caches-0.5.13-75dr0q42.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +1 -0
- package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +1 -0
- package/dist/chunks/clear-0.5.13-k8q15yen.mjs +1 -0
- package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +1 -0
- package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-055v20cs.mjs +2 -0
- package/dist/chunks/cli-0.5.13-061m60f2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +3 -0
- package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-15kmd08p.mjs +2 -0
- package/dist/chunks/cli-0.5.13-16khcs2m.mjs +3 -0
- package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +2 -0
- package/dist/chunks/cli-0.5.13-1qt91z42.mjs +2 -0
- package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +45 -0
- package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +5276 -0
- package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +2 -0
- package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-426cpksk.mjs +4 -0
- package/dist/chunks/cli-0.5.13-4at49cv9.mjs +2 -0
- package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +2 -0
- package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +2 -0
- package/dist/chunks/cli-0.5.13-50cwkg00.mjs +2 -0
- package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +2 -0
- package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +6 -0
- package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +2 -0
- package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-62qasgve.mjs +2 -0
- package/dist/chunks/cli-0.5.13-667jxcab.mjs +18 -0
- package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6yehabyw.mjs +2 -0
- package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +4 -0
- package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +2 -0
- package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-77mqds6w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7fzk2679.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7je48sax.mjs +15 -0
- package/dist/chunks/cli-0.5.13-898bb5x7.mjs +2 -0
- package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +2 -0
- package/dist/chunks/cli-0.5.13-9r26f53q.mjs +8 -0
- package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +2 -0
- package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +3 -0
- package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +6 -0
- package/dist/chunks/cli-0.5.13-acgafbm9.mjs +2 -0
- package/dist/chunks/cli-0.5.13-adphma77.mjs +2 -0
- package/dist/chunks/cli-0.5.13-atfk3e81.mjs +2 -0
- package/dist/chunks/cli-0.5.13-athb0q85.mjs +2 -0
- package/dist/chunks/cli-0.5.13-b2593ngv.mjs +4 -0
- package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-b6aefc28.mjs +1 -0
- package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +2 -0
- package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +2 -0
- package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +3 -0
- package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +2 -0
- package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +4 -0
- package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +4 -0
- package/dist/chunks/cli-0.5.13-cnzars85.mjs +5 -0
- package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +2 -0
- package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +39 -0
- package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +24 -0
- package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +2 -0
- package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +2 -0
- package/dist/chunks/cli-0.5.13-d6bw823x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +15 -0
- package/dist/chunks/cli-0.5.13-ddpterr2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +24 -0
- package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +2 -0
- package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +34 -0
- package/dist/chunks/cli-0.5.13-epjykaww.mjs +17 -0
- package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +10 -0
- package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +2 -0
- package/dist/chunks/cli-0.5.13-f1e673b2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-f6tattxs.mjs +4 -0
- package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +3 -0
- package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +2 -0
- package/dist/chunks/cli-0.5.13-fgckevv1.mjs +2 -0
- package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +2 -0
- package/dist/chunks/cli-0.5.13-frerk7s6.mjs +2 -0
- package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-gb0363rs.mjs +2 -0
- package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +15 -0
- package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +12 -0
- package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +12 -0
- package/dist/chunks/cli-0.5.13-gw433gw1.mjs +9 -0
- package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +17 -0
- package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +2 -0
- package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +25 -0
- package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +4 -0
- package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +2 -0
- package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +2 -0
- package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +2 -0
- package/dist/chunks/cli-0.5.13-j97wk70q.mjs +2 -0
- package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +3 -0
- package/dist/chunks/cli-0.5.13-jqns71dy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +2 -0
- package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +2 -0
- package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +2 -0
- package/dist/chunks/cli-0.5.13-khtf0a93.mjs +9 -0
- package/dist/chunks/cli-0.5.13-kry2fk76.mjs +2 -0
- package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +2 -0
- package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +6 -0
- package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +2 -0
- package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-mwrgy706.mjs +2 -0
- package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +2 -0
- package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +2 -0
- package/dist/chunks/cli-0.5.13-nc37z94b.mjs +2 -0
- package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +2 -0
- package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +133 -0
- package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +16 -0
- package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +2 -0
- package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +193 -0
- package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qfxggvke.mjs +18 -0
- package/dist/chunks/cli-0.5.13-qkjyj942.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qrn019we.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +3 -0
- package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +2 -0
- package/dist/chunks/cli-0.5.13-r442vgxt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rd990xfy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +58 -0
- package/dist/chunks/cli-0.5.13-rrqv533k.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s005ka5h.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s58vke8w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s719y89z.mjs +2 -0
- package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +4 -0
- package/dist/chunks/cli-0.5.13-sww17qtj.mjs +42 -0
- package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +3 -0
- package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-teedketa.mjs +2 -0
- package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +3 -0
- package/dist/chunks/cli-0.5.13-thgp6asf.mjs +21 -0
- package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +2 -0
- package/dist/chunks/cli-0.5.13-tr9s34te.mjs +59 -0
- package/dist/chunks/cli-0.5.13-tvfs784w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ve50w85d.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vee98ybt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +3 -0
- package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +3 -0
- package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +2 -0
- package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +5 -0
- package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +2 -0
- package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +2 -0
- package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +5 -0
- package/dist/chunks/cli-0.5.13-xvg417w8.mjs +7 -0
- package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +2 -0
- package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +2 -0
- package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +2 -0
- package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +67 -0
- package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +20 -0
- package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +2 -0
- package/dist/chunks/cli-0.5.13-yskavx3s.mjs +12 -0
- package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +4 -0
- package/dist/chunks/cli-0.5.13-z0f17269.mjs +2 -0
- package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +2 -0
- package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +3 -0
- package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +4 -0
- package/dist/chunks/cli-0.5.13-zms1a287.mjs +50 -0
- package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +133 -0
- package/dist/chunks/client-0.5.13-wkzv25nn.mjs +1 -0
- package/dist/chunks/color-0.5.13-yd46yzt2.mjs +1 -0
- package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +3 -0
- package/dist/chunks/config-0.5.13-mwq6ejza.mjs +1 -0
- package/dist/chunks/config-0.5.13-t1bvsttc.mjs +1 -0
- package/dist/chunks/context-0.5.13-zffaf66t.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +1 -0
- package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +1 -0
- package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +9 -0
- package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +1 -0
- package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +1 -0
- package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +1 -0
- package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +1177 -0
- package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +1 -0
- package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +1 -0
- package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +1 -0
- package/dist/chunks/diff-0.5.13-515a1hs6.mjs +1 -0
- package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +1 -0
- package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +1 -0
- package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +10 -0
- package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +1 -0
- package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +1 -0
- package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +1 -0
- package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +1 -0
- package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +1 -0
- package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +1 -0
- package/dist/chunks/export-0.5.13-d2yz4k76.mjs +2 -0
- package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +1 -0
- package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +1 -0
- package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +1 -0
- package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +1 -0
- package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +1 -0
- package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +1 -0
- package/dist/chunks/headless-0.5.13-05rns8kj.mjs +2 -0
- package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +6 -0
- package/dist/chunks/help-0.5.13-8pfrra9q.mjs +1 -0
- package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +3 -0
- package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +1 -0
- package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +79 -0
- package/dist/chunks/ide-0.5.13-r40xcg67.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +1 -0
- package/dist/chunks/index-0.5.13-06mj6naw.mjs +1 -0
- package/dist/chunks/index-0.5.13-12hemzfc.mjs +1 -0
- package/dist/chunks/index-0.5.13-4559xg8z.mjs +17 -0
- package/dist/chunks/index-0.5.13-5gmbch0k.mjs +9 -0
- package/dist/chunks/index-0.5.13-5qstd1y9.mjs +1 -0
- package/dist/chunks/index-0.5.13-5zhr2qys.mjs +1 -0
- package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +1 -0
- package/dist/chunks/index-0.5.13-9zz559q7.mjs +1 -0
- package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +1 -0
- package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +2 -0
- package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +1 -0
- package/dist/chunks/index-0.5.13-ej6cywk8.mjs +30 -0
- package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +1 -0
- package/dist/chunks/index-0.5.13-fertw6vb.mjs +1 -0
- package/dist/chunks/index-0.5.13-jwf634zt.mjs +1 -0
- package/dist/chunks/index-0.5.13-nny2e7sx.mjs +5 -0
- package/dist/chunks/index-0.5.13-np7s1rcw.mjs +1 -0
- package/dist/chunks/index-0.5.13-qkvpat3t.mjs +9 -0
- package/dist/chunks/index-0.5.13-qq60ettc.mjs +1 -0
- package/dist/chunks/index-0.5.13-rty9gaxf.mjs +2 -0
- package/dist/chunks/index-0.5.13-yqdcztr9.mjs +1 -0
- package/dist/chunks/index-0.5.13-zhze2z09.mjs +1 -0
- package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +1 -0
- package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +1 -0
- package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +1 -0
- package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +870 -0
- package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +1 -0
- package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +149 -0
- package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +1 -0
- package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +1 -0
- package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +2 -0
- package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +1 -0
- package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +1 -0
- package/dist/chunks/main-0.5.13-n87gjwzq.mjs +1 -0
- package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +1 -0
- package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +4 -0
- package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +17 -0
- package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +1 -0
- package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +1 -0
- package/dist/chunks/memory-0.5.13-exfd915f.mjs +3 -0
- package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +2 -0
- package/dist/chunks/model-0.5.13-02rcx381.mjs +1 -0
- package/dist/chunks/model-0.5.13-nn224m13.mjs +2 -0
- package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +12 -0
- package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +1 -0
- package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +14 -0
- package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +1 -0
- package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +1 -0
- package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +1 -0
- package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +3 -0
- package/dist/chunks/plan-0.5.13-837bdxnq.mjs +1 -0
- package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +1 -0
- package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +1 -0
- package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +9 -0
- package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +2 -0
- package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +57 -0
- package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +1 -0
- package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +1 -0
- package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +9 -0
- package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +1 -0
- package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +1 -0
- package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +1 -0
- package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +13 -0
- package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +2 -0
- package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +1 -0
- package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +34 -0
- package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +1 -0
- package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +5 -0
- package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +2 -0
- package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +1 -0
- package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +1 -0
- package/dist/chunks/rename-0.5.13-c388bb34.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +1 -0
- package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +1 -0
- package/dist/chunks/resume-0.5.13-zwms595g.mjs +2 -0
- package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +1 -0
- package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +1 -0
- package/dist/chunks/session-0.5.13-ef059m1s.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +1 -0
- package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +1 -0
- package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +1 -0
- package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +5 -0
- package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +1 -0
- package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +1 -0
- package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +1 -0
- package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +1 -0
- package/dist/chunks/stats-0.5.13-6083a1n1.mjs +6 -0
- package/dist/chunks/status-0.5.13-043z2z1k.mjs +1 -0
- package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +1 -0
- package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +1 -0
- package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +1 -0
- package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +1 -0
- package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +1 -0
- package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +1 -0
- package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +1 -0
- package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +1 -0
- package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +1 -0
- package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +1 -0
- package/dist/chunks/tools-0.5.13-jd6408d0.mjs +1 -0
- package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +4 -0
- package/dist/chunks/update-0.5.13-r5daertf.mjs +86 -0
- package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +1 -0
- package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +1 -0
- package/dist/chunks/util-0.5.13-f4gpmja3.mjs +1 -0
- package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +1 -0
- package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +1 -0
- package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +1 -0
- package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +132 -0
- package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +1 -0
- package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.5.12-smdrq819.mjs +0 -1
- package/dist/chunks/App-0.5.12-r5wjd7s8.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.12-ne9g2ryd.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.12-xsd6p7kt.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.12-ssrkfkmd.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.12-q6qcrrj2.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.12-gfcmcgxz.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.12-e1f2czf7.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.12-vnm4mz9c.mjs +0 -3
- package/dist/chunks/Doctor-0.5.12-rtbvt5mw.mjs +0 -1
- package/dist/chunks/Grove-0.5.12-qv18jfe4.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.12-tp63kb2y.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.12-q3wspzrk.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.12-ksv56j0p.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.12-ekgs1jgb.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.12-sjtsxgzz.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.12-sjdymhw7.mjs +0 -1
- package/dist/chunks/REPL-0.5.12-8h9bmdjx.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.12-wpm4mfaa.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.12-n8kyqhdr.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.12-30xn93y9.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.12-e3fg3amd.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.12-hk2rzdh9.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.12-jevh3zhx.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.12-9ggdsbtq.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.12-h0w01e8v.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.12-gs3tp52z.mjs +0 -1
- package/dist/chunks/add-dir-0.5.12-20s2bbpb.mjs +0 -1
- package/dist/chunks/agents-0.5.12-3hsbstfa.mjs +0 -3
- package/dist/chunks/agents-0.5.12-s6qbjsne.mjs +0 -110
- package/dist/chunks/api-0.5.12-0wrh71sa.mjs +0 -1
- package/dist/chunks/asciicast-0.5.12-rjjtzjz5.mjs +0 -1
- package/dist/chunks/assistant-0.5.12-wv5tm7qb.mjs +0 -1
- package/dist/chunks/auth-0.5.12-1jvg770t.mjs +0 -1
- package/dist/chunks/auth-0.5.12-s2b8vrty.mjs +0 -1
- package/dist/chunks/autoMode-0.5.12-ka6ppwmf.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.12-gdprekp5.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.12-1yfjbpvk.mjs +0 -1
- package/dist/chunks/branch-0.5.12-j64r58dd.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.12-x983by3j.mjs +0 -1
- package/dist/chunks/btw-0.5.12-kgz89wa7.mjs +0 -1
- package/dist/chunks/buddy-0.5.12-r9nysssz.mjs +0 -3
- package/dist/chunks/cacache-0.5.12-4170vfc6.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.12-5nr9y8e3.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.12-bgxk3p2h.mjs +0 -4
- package/dist/chunks/caches-0.5.12-95zf6qzv.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.12-23kdtzwn.mjs +0 -1
- package/dist/chunks/claudemd-0.5.12-nyakrtyn.mjs +0 -1
- package/dist/chunks/clear-0.5.12-tngfq6r4.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.12-g53rj1ba.mjs +0 -1
- package/dist/chunks/cli-0.5.12-02t9z38y.mjs +0 -2
- package/dist/chunks/cli-0.5.12-02yr8j71.mjs +0 -3
- package/dist/chunks/cli-0.5.12-057c2cp2.mjs +0 -5
- package/dist/chunks/cli-0.5.12-07kx3k7b.mjs +0 -2
- package/dist/chunks/cli-0.5.12-097tmfjr.mjs +0 -2
- package/dist/chunks/cli-0.5.12-0qasc0ef.mjs +0 -2
- package/dist/chunks/cli-0.5.12-11b979hs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-15jvdvek.mjs +0 -3
- package/dist/chunks/cli-0.5.12-1fs9t3y1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-1vyz0tt9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-27ngaysm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-2fqmc1dw.mjs +0 -17
- package/dist/chunks/cli-0.5.12-2jxq8gnm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-2thv7xjf.mjs +0 -133
- package/dist/chunks/cli-0.5.12-2tqpkne4.mjs +0 -3
- package/dist/chunks/cli-0.5.12-2wf629mh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-2zcpj03a.mjs +0 -2
- package/dist/chunks/cli-0.5.12-30h4rkq5.mjs +0 -4
- package/dist/chunks/cli-0.5.12-34cd39ve.mjs +0 -2
- package/dist/chunks/cli-0.5.12-36swspqa.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3t06hwwh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3v7zr435.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3vz2jvfs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3zwt5bt4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-41eae9ef.mjs +0 -2
- package/dist/chunks/cli-0.5.12-47dbnsz1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-495d826j.mjs +0 -18
- package/dist/chunks/cli-0.5.12-4dn79vqp.mjs +0 -2
- package/dist/chunks/cli-0.5.12-4dxe3951.mjs +0 -2
- package/dist/chunks/cli-0.5.12-4h4yvgep.mjs +0 -4
- package/dist/chunks/cli-0.5.12-5d3qcvf5.mjs +0 -2
- package/dist/chunks/cli-0.5.12-5qad6x1n.mjs +0 -2
- package/dist/chunks/cli-0.5.12-60w1a0bs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-62bfegwf.mjs +0 -3
- package/dist/chunks/cli-0.5.12-63mc4ryd.mjs +0 -2
- package/dist/chunks/cli-0.5.12-6h1z8rhs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7bxdfxh2.mjs +0 -7
- package/dist/chunks/cli-0.5.12-7c345wdv.mjs +0 -15
- package/dist/chunks/cli-0.5.12-7cn41yy7.mjs +0 -6
- package/dist/chunks/cli-0.5.12-7dj55dt9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7j2hryxc.mjs +0 -3
- package/dist/chunks/cli-0.5.12-7p67dbr2.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7repzgzv.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7vxpqr5a.mjs +0 -67
- package/dist/chunks/cli-0.5.12-7zb3ptxb.mjs +0 -2
- package/dist/chunks/cli-0.5.12-8j9p82ea.mjs +0 -2
- package/dist/chunks/cli-0.5.12-8v5w8znc.mjs +0 -9
- package/dist/chunks/cli-0.5.12-8vg9yqcp.mjs +0 -3
- package/dist/chunks/cli-0.5.12-8wzyrrzj.mjs +0 -10
- package/dist/chunks/cli-0.5.12-96ne669g.mjs +0 -25
- package/dist/chunks/cli-0.5.12-9mq24qzr.mjs +0 -2
- package/dist/chunks/cli-0.5.12-9q9g02p5.mjs +0 -2
- package/dist/chunks/cli-0.5.12-9qdgpa04.mjs +0 -2
- package/dist/chunks/cli-0.5.12-9zz4wk90.mjs +0 -2
- package/dist/chunks/cli-0.5.12-afky60yh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ajgk4ksj.mjs +0 -2
- package/dist/chunks/cli-0.5.12-am3j4jcx.mjs +0 -12
- package/dist/chunks/cli-0.5.12-aqgqkjt4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-asbn3d19.mjs +0 -2
- package/dist/chunks/cli-0.5.12-b2d3jjn3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-b73xqvce.mjs +0 -2
- package/dist/chunks/cli-0.5.12-brdpkyjd.mjs +0 -4
- package/dist/chunks/cli-0.5.12-bw549ry1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-bx2t76qp.mjs +0 -3
- package/dist/chunks/cli-0.5.12-bxsvvg0q.mjs +0 -2
- package/dist/chunks/cli-0.5.12-bzab36pn.mjs +0 -15
- package/dist/chunks/cli-0.5.12-c2yq69h9.mjs +0 -17
- package/dist/chunks/cli-0.5.12-c40vvkn4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-c6whkxmz.mjs +0 -2
- package/dist/chunks/cli-0.5.12-c8f4daey.mjs +0 -2
- package/dist/chunks/cli-0.5.12-caz6gx12.mjs +0 -2
- package/dist/chunks/cli-0.5.12-cbevkwg4.mjs +0 -3
- package/dist/chunks/cli-0.5.12-cqv7z22w.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ctqkj6ve.mjs +0 -6
- package/dist/chunks/cli-0.5.12-cw1qs4bg.mjs +0 -24
- package/dist/chunks/cli-0.5.12-cwbm4b6n.mjs +0 -2
- package/dist/chunks/cli-0.5.12-d158qgn4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-dda4jky0.mjs +0 -2
- package/dist/chunks/cli-0.5.12-dpm51wzp.mjs +0 -2
- package/dist/chunks/cli-0.5.12-eb1c0sqs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ecgx5n54.mjs +0 -2
- package/dist/chunks/cli-0.5.12-f141d2qa.mjs +0 -2
- package/dist/chunks/cli-0.5.12-f15xspgt.mjs +0 -18
- package/dist/chunks/cli-0.5.12-f5pfjvdk.mjs +0 -2
- package/dist/chunks/cli-0.5.12-f8850v2j.mjs +0 -42
- package/dist/chunks/cli-0.5.12-f99c5512.mjs +0 -24
- package/dist/chunks/cli-0.5.12-fqp5s15p.mjs +0 -59
- package/dist/chunks/cli-0.5.12-g4ffbdep.mjs +0 -2
- package/dist/chunks/cli-0.5.12-g4wb8mj2.mjs +0 -193
- package/dist/chunks/cli-0.5.12-gfm1s8a2.mjs +0 -4
- package/dist/chunks/cli-0.5.12-ghtxkxqx.mjs +0 -2
- package/dist/chunks/cli-0.5.12-gt83ysr0.mjs +0 -9
- package/dist/chunks/cli-0.5.12-gwg1e43k.mjs +0 -34
- package/dist/chunks/cli-0.5.12-had5m07e.mjs +0 -2
- package/dist/chunks/cli-0.5.12-hp0508v9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-hvtcdcev.mjs +0 -2
- package/dist/chunks/cli-0.5.12-j3j0qej1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-j75ba781.mjs +0 -2
- package/dist/chunks/cli-0.5.12-jp1r2jw2.mjs +0 -1
- package/dist/chunks/cli-0.5.12-jy79msaa.mjs +0 -2
- package/dist/chunks/cli-0.5.12-k1crwtdc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-k976aej3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-kez9r81a.mjs +0 -2
- package/dist/chunks/cli-0.5.12-khvy67r3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-kkfzbxw6.mjs +0 -2
- package/dist/chunks/cli-0.5.12-kr31tdde.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ktv3envc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-m22yxpb9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-m2gh4ewc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-mgke70yz.mjs +0 -39
- package/dist/chunks/cli-0.5.12-n1ax8ehf.mjs +0 -2
- package/dist/chunks/cli-0.5.12-n1wc50h4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-n4bfatc5.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nb3q4dfs.mjs +0 -4
- package/dist/chunks/cli-0.5.12-nbcjwzzn.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ne0f51vh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nf7cvq82.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nj5yya0e.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nytegfxk.mjs +0 -4
- package/dist/chunks/cli-0.5.12-p4mf644w.mjs +0 -2
- package/dist/chunks/cli-0.5.12-p5ps8gf0.mjs +0 -6
- package/dist/chunks/cli-0.5.12-p7shsask.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pdqnfqg3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pp1549k7.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pp1f55mm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pq058s0e.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pwee4pmy.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pycnjaeg.mjs +0 -16
- package/dist/chunks/cli-0.5.12-pzvv2jfe.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qafa6js8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qdhvs7zg.mjs +0 -5
- package/dist/chunks/cli-0.5.12-qew4mzgp.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qffnerrz.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qt5dmgd4.mjs +0 -58
- package/dist/chunks/cli-0.5.12-qvbpbpwc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-r1nnkaek.mjs +0 -3
- package/dist/chunks/cli-0.5.12-r1p7bcf8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-r6bpk4tm.mjs +0 -50
- package/dist/chunks/cli-0.5.12-rb8we522.mjs +0 -2
- package/dist/chunks/cli-0.5.12-rc1p9wk6.mjs +0 -3
- package/dist/chunks/cli-0.5.12-rt0k97yj.mjs +0 -12
- package/dist/chunks/cli-0.5.12-rw2tcb8a.mjs +0 -21
- package/dist/chunks/cli-0.5.12-s0h788we.mjs +0 -2
- package/dist/chunks/cli-0.5.12-sb5ec9ms.mjs +0 -2
- package/dist/chunks/cli-0.5.12-sd5469b2.mjs +0 -3
- package/dist/chunks/cli-0.5.12-senanaj4.mjs +0 -15
- package/dist/chunks/cli-0.5.12-ssw8vd5p.mjs +0 -45
- package/dist/chunks/cli-0.5.12-tczcdzf3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-tfdwzg37.mjs +0 -4
- package/dist/chunks/cli-0.5.12-tnk4m7zs.mjs +0 -8
- package/dist/chunks/cli-0.5.12-tnq5ajv3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-va0ce6hc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vkgwh6kg.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vp5smcs1.mjs +0 -4
- package/dist/chunks/cli-0.5.12-vrbqnjp6.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vs30tjk8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vw8gp4d2.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vwd5aqnh.mjs +0 -20
- package/dist/chunks/cli-0.5.12-w00qj83e.mjs +0 -133
- package/dist/chunks/cli-0.5.12-w02bmj5v.mjs +0 -2
- package/dist/chunks/cli-0.5.12-w3hy6c60.mjs +0 -2
- package/dist/chunks/cli-0.5.12-w7m7knvf.mjs +0 -4
- package/dist/chunks/cli-0.5.12-wgqarp3j.mjs +0 -2
- package/dist/chunks/cli-0.5.12-wgqshyyq.mjs +0 -2
- package/dist/chunks/cli-0.5.12-whfz3xsx.mjs +0 -2
- package/dist/chunks/cli-0.5.12-wqg58esg.mjs +0 -2
- package/dist/chunks/cli-0.5.12-wqn70xss.mjs +0 -2
- package/dist/chunks/cli-0.5.12-x3r8qtwj.mjs +0 -12
- package/dist/chunks/cli-0.5.12-x479axrj.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xdrtyw81.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xdx5bcxv.mjs +0 -5
- package/dist/chunks/cli-0.5.12-xg7a0dy4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xhf4y2sm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xsyxpmwt.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xyf8b9hh.mjs +0 -4
- package/dist/chunks/cli-0.5.12-xysz4vte.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xzeb7mtb.mjs +0 -2
- package/dist/chunks/cli-0.5.12-y2kq7fe8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-y66stscm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-yq8ds97a.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ysy6e9rz.mjs +0 -2
- package/dist/chunks/cli-0.5.12-yxvbh81c.mjs +0 -2
- package/dist/chunks/cli-0.5.12-z100r543.mjs +0 -2
- package/dist/chunks/cli-0.5.12-z2yzdy27.mjs +0 -2
- package/dist/chunks/cli-0.5.12-z6vekb4d.mjs +0 -2
- package/dist/chunks/cli-0.5.12-zbcr8cbk.mjs +0 -2
- package/dist/chunks/cli-0.5.12-zc0qwdy2.mjs +0 -5268
- package/dist/chunks/cli-0.5.12-zd5fps7m.mjs +0 -3
- package/dist/chunks/cli-0.5.12-zf4k1ja2.mjs +0 -2
- package/dist/chunks/cli-0.5.12-zsjs6asf.mjs +0 -2
- package/dist/chunks/client-0.5.12-25cxceb6.mjs +0 -1
- package/dist/chunks/color-0.5.12-7ag99jgh.mjs +0 -1
- package/dist/chunks/compact-0.5.12-tkdapr9z.mjs +0 -3
- package/dist/chunks/config-0.5.12-0c9spewv.mjs +0 -1
- package/dist/chunks/config-0.5.12-vc9je2fj.mjs +0 -1
- package/dist/chunks/context-0.5.12-rznd55j3.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.12-fm064xkc.mjs +0 -1
- package/dist/chunks/conversation-0.5.12-rstja52a.mjs +0 -1
- package/dist/chunks/copy-0.5.12-wfyfcx1t.mjs +0 -9
- package/dist/chunks/cost-0.5.12-5t5ppkhd.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.12-n4gfgvy0.mjs +0 -1
- package/dist/chunks/createSession-0.5.12-vberyedq.mjs +0 -1
- package/dist/chunks/debug-0.5.12-6tk66dq2.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.5.12-cd6kj7vb.mjs +0 -1177
- package/dist/chunks/desktop-0.5.12-t4zetpqs.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.12-4rer36ef.mjs +0 -1
- package/dist/chunks/detection-0.5.12-kc620t5m.mjs +0 -1
- package/dist/chunks/diff-0.5.12-t1nwyr97.mjs +0 -1
- package/dist/chunks/doctor-0.5.12-6ehwnc02.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.12-715ngvgm.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.12-9c0k1b2s.mjs +0 -1
- package/dist/chunks/effort-0.5.12-tge1ba18.mjs +0 -10
- package/dist/chunks/envUtils-0.5.12-4210d9jh.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.12-fpz6s66f.mjs +0 -1
- package/dist/chunks/environments-0.5.12-yjkrj1h3.mjs +0 -1
- package/dist/chunks/errors-0.5.12-hx01gb7f.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.12-228rhbph.mjs +0 -1
- package/dist/chunks/exit-0.5.12-x0w90ajb.mjs +0 -1
- package/dist/chunks/export-0.5.12-cdv2fqe2.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.12-d0ypcf8h.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.12-1xmkn7xb.mjs +0 -1
- package/dist/chunks/fast-0.5.12-pm7p7cea.mjs +0 -1
- package/dist/chunks/feedback-0.5.12-k7w5ac6x.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.12-jbg4z87y.mjs +0 -1
- package/dist/chunks/git-0.5.12-rpqpwk1g.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.12-gc6bcfrs.mjs +0 -1
- package/dist/chunks/grove-0.5.12-g5c6bca9.mjs +0 -1
- package/dist/chunks/growthbook-0.5.12-d3dr2a5b.mjs +0 -1
- package/dist/chunks/headless-0.5.12-4en0ynj2.mjs +0 -2
- package/dist/chunks/heapdump-0.5.12-bwv2jy65.mjs +0 -6
- package/dist/chunks/help-0.5.12-m0n3bja4.mjs +0 -1
- package/dist/chunks/hookChains-0.5.12-ybpwc19k.mjs +0 -3
- package/dist/chunks/hooks-0.5.12-gd1zgq76.mjs +0 -1
- package/dist/chunks/hooks-0.5.12-kmtv873b.mjs +0 -79
- package/dist/chunks/ide-0.5.12-kh015qjb.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.12-gskzpn6n.mjs +0 -1
- package/dist/chunks/index-0.5.12-0qdxjc4v.mjs +0 -30
- package/dist/chunks/index-0.5.12-1ms14gcb.mjs +0 -1
- package/dist/chunks/index-0.5.12-23xwq3mj.mjs +0 -1
- package/dist/chunks/index-0.5.12-3k0mgkby.mjs +0 -5
- package/dist/chunks/index-0.5.12-3qxmsrhf.mjs +0 -1
- package/dist/chunks/index-0.5.12-5nwrep7m.mjs +0 -1
- package/dist/chunks/index-0.5.12-5zp8ghw8.mjs +0 -2
- package/dist/chunks/index-0.5.12-6t3ctwhj.mjs +0 -1
- package/dist/chunks/index-0.5.12-bb0dxhht.mjs +0 -1
- package/dist/chunks/index-0.5.12-cdvaqvrt.mjs +0 -1
- package/dist/chunks/index-0.5.12-e3g06gch.mjs +0 -2
- package/dist/chunks/index-0.5.12-g0waf7b4.mjs +0 -1
- package/dist/chunks/index-0.5.12-k2yx7rgg.mjs +0 -1
- package/dist/chunks/index-0.5.12-pqbbvhvf.mjs +0 -17
- package/dist/chunks/index-0.5.12-v34jg9ty.mjs +0 -1
- package/dist/chunks/index-0.5.12-vd2ps0yn.mjs +0 -1
- package/dist/chunks/index-0.5.12-vk2f44v8.mjs +0 -9
- package/dist/chunks/index-0.5.12-vqmfkmk5.mjs +0 -1
- package/dist/chunks/index-0.5.12-vxrpnsbd.mjs +0 -1
- package/dist/chunks/index-0.5.12-w00wq0mv.mjs +0 -1
- package/dist/chunks/index-0.5.12-wq1ac3z9.mjs +0 -1
- package/dist/chunks/index-0.5.12-z05jb67f.mjs +0 -9
- package/dist/chunks/init-0.5.12-dek8tx6c.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.12-tzmcc68e.mjs +0 -1
- package/dist/chunks/ink-0.5.12-pa331vem.mjs +0 -1
- package/dist/chunks/insights-0.5.12-5vdjmpbj.mjs +0 -870
- package/dist/chunks/install-0.5.12-vegjn29b.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.12-x1q07njz.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.12-xdebh0fz.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.12-t5wdqnhp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.12-fs831eqt.mjs +0 -1
- package/dist/chunks/keybindings-0.5.12-c5ptskwf.mjs +0 -2
- package/dist/chunks/knowledge-0.5.12-vqnz3rhj.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.12-6ea56sj8.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.12-q3cab4jf.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.12-teg232ka.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.12-zqfepr29.mjs +0 -1
- package/dist/chunks/log-0.5.12-hb77k1c6.mjs +0 -1
- package/dist/chunks/main-0.5.12-a5ye3nrk.mjs +0 -1
- package/dist/chunks/managedEnv-0.5.12-9m0enspy.mjs +0 -1
- package/dist/chunks/mcp-0.5.12-0g4by910.mjs +0 -1
- package/dist/chunks/mcp-0.5.12-kmsa1db8.mjs +0 -17
- package/dist/chunks/mcp-0.5.12-tpprk6qh.mjs +0 -4
- package/dist/chunks/mcpb-0.5.12-40x6rp03.mjs +0 -1
- package/dist/chunks/memory-0.5.12-31smeswe.mjs +0 -3
- package/dist/chunks/mobile-0.5.12-trtv6cx8.mjs +0 -2
- package/dist/chunks/model-0.5.12-dwyagyf8.mjs +0 -2
- package/dist/chunks/model-0.5.12-ncsht9ca.mjs +0 -1
- package/dist/chunks/node-0.5.12-n3y2efbq.mjs +0 -12
- package/dist/chunks/oauth-0.5.12-vz32m3f2.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.12-5vwewpct.mjs +0 -14
- package/dist/chunks/output-style-0.5.12-j7kzxe0j.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.5.12-pcrvwm89.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.12-k9xxsfd1.mjs +0 -1
- package/dist/chunks/parser-0.5.12-dztg8ppe.mjs +0 -1
- package/dist/chunks/passes-0.5.12-5z8tw34t.mjs +0 -1
- package/dist/chunks/permissions-0.5.12-rww5yb80.mjs +0 -3
- package/dist/chunks/plan-0.5.12-69ntjye7.mjs +0 -1
- package/dist/chunks/plist-0.5.12-3ab3ry0j.mjs +0 -1
- package/dist/chunks/plugin-0.5.12-k1c1ggj8.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.12-4nzjv877.mjs +0 -1
- package/dist/chunks/plugins-0.5.12-gjxv18dm.mjs +0 -9
- package/dist/chunks/preActionHook-0.5.12-z0z4xe2p.mjs +0 -2
- package/dist/chunks/print-0.5.12-9y9vvttb.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.12-w3hpvv24.mjs +0 -1
- package/dist/chunks/process-0.5.12-esywnb4j.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.12-24r2r258.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.12-pt79vh2t.mjs +0 -9
- package/dist/chunks/prompt-0.5.12-hc11zacw.mjs +0 -1
- package/dist/chunks/prompt-0.5.12-txnbkzk6.mjs +0 -1
- package/dist/chunks/prompts-0.5.12-r29ww1bz.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.12-sg2pjg74.mjs +0 -13
- package/dist/chunks/provider-0.5.12-kdvewq5e.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.12-z3pct3be.mjs +0 -1
- package/dist/chunks/providerValidation-0.5.12-637xxs9q.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.5.12-e7czq7ff.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.5.12-5jq9w7c4.mjs +0 -34
- package/dist/chunks/registry-0.5.12-dcz74t85.mjs +0 -1
- package/dist/chunks/release-notes-0.5.12-acaycqgr.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.12-07m62xd2.mjs +0 -2
- package/dist/chunks/remote-env-0.5.12-8ffhqnh9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.12-qes76y4j.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.12-wqh0sh5p.mjs +0 -1
- package/dist/chunks/rename-0.5.12-pefg421m.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.12-mrx144v7.mjs +0 -1
- package/dist/chunks/replLauncher-0.5.12-xyajjb89.mjs +0 -1
- package/dist/chunks/resume-0.5.12-yz9ysprz.mjs +0 -2
- package/dist/chunks/rewind-0.5.12-7n5x67g8.mjs +0 -1
- package/dist/chunks/rootOptions-0.5.12-mn1xh15m.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.12-g1r9b0p8.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.12-w1rx9eck.mjs +0 -1
- package/dist/chunks/session-0.5.12-t3cd84ep.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.12-905y94g7.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.12-9f5qb84p.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.12-b88eps8r.mjs +0 -1
- package/dist/chunks/settings-0.5.12-ascz750g.mjs +0 -1
- package/dist/chunks/setup-0.5.12-k4bb1v5t.mjs +0 -5
- package/dist/chunks/sinks-0.5.12-wra2rxct.mjs +0 -1
- package/dist/chunks/skills-0.5.12-tzetjssj.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.12-4mesbnz6.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.12-j9pvbhww.mjs +0 -1
- package/dist/chunks/state-0.5.12-fmbxq91j.mjs +0 -1
- package/dist/chunks/stats-0.5.12-6dftg0mb.mjs +0 -6
- package/dist/chunks/status-0.5.12-prhem3mn.mjs +0 -1
- package/dist/chunks/stickers-0.5.12-t4kmsdfn.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.12-bbjh5kcq.mjs +0 -1
- package/dist/chunks/tasks-0.5.12-5zkvc91z.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.12-4993s40p.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.12-003j14d2.mjs +0 -1
- package/dist/chunks/teleport-0.5.12-qc9n0e99.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.12-e0q1ppyp.mjs +0 -1
- package/dist/chunks/theme-0.5.12-j3m1w193.mjs +0 -1
- package/dist/chunks/thinkback-0.5.12-q0g2nxf8.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.12-q3xptm32.mjs +0 -1
- package/dist/chunks/toolPool-0.5.12-99zz2z7m.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.12-msyjmzw4.mjs +0 -1
- package/dist/chunks/tools-0.5.12-rfpyvm5z.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.12-x17za0q6.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.12-pe30j67r.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.12-3ns0qpr7.mjs +0 -4
- package/dist/chunks/update-0.5.12-4hgf7mr4.mjs +0 -86
- package/dist/chunks/upgrade-0.5.12-7gs6mxyh.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.12-1v1wp95x.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.12-2w5y94ch.mjs +0 -1
- package/dist/chunks/usage-0.5.12-e4h5kk04.mjs +0 -1
- package/dist/chunks/util-0.5.12-2p0n6pkd.mjs +0 -1
- package/dist/chunks/utils-0.5.12-6hw9zr7a.mjs +0 -1
- package/dist/chunks/vim-0.5.12-f95wabwk.mjs +0 -1
- package/dist/chunks/watcher-0.5.12-0qy95ccm.mjs +0 -1
- package/dist/chunks/wiki-0.5.12-1h2k88h1.mjs +0 -132
- package/dist/chunks/worktree-0.5.12-0svdfkzh.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.12-qxdddvwv.mjs +0 -1
- package/dist/chunks/wrapper-0.5.12-553s8689.mjs +0 -7
- /package/dist/chunks/{cli-0.5.12-9ghkvy4m.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.12-r4t180q2.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.12-paj8nhxk.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import{Rb as iX,Sb as zZ,Tb as rX,Ub as VQ,Vb as RQ,Wb as GQ}from"./cli-0.5.13-qdtebkgs.mjs";import{Xb as NZ,Yb as lq}from"./cli-0.5.13-73hy7ka5.mjs";import"./cli-0.5.13-h1jy4w92.mjs";import"./cli-0.5.13-7b4c61sf.mjs";import{dc as gQ,ec as cq}from"./cli-0.5.13-6hvwtg4n.mjs";import{Af as zX,Bf as a0,Cf as VX}from"./cli-0.5.13-cnzars85.mjs";import{AG as iJ,BG as Xq,BJ as cX,CA as gJ,DA as eZ,DD as j0,ED as vX,Es as QX,GQ as mQ,HQ as Sq,JG as lJ,JJ as Zq,KG as Jq,KK as hQ,LG as rJ,MG as Qq,MK as hq,ND as v0,NJ as $J,NN as jQ,OD as qX,OJ as qq,Ou as jJ,Pu as nZ,QK as _Q,Qw as OX,Rw as CJ,Sw as pX,TK as _q,Tl as eJ,Tw as AQ,Ul as Mq,Ut as e0,Uw as Aq,Vt as o0,Vx as uJ,WN as Tq,Wx as oZ,Xl as cQ,Xt as NX,Yl as mq,Zx as cJ,_i as yQ,_x as sZ,bH as _Z,bj as yq,dm as n,eH as ZY,em as w0,fm as a,fs as bJ,gm as N0,gs as SX,hm as Q0,hs as kJ,im as z0,is as tJ,ix as mJ,js as _X,jx as fX,kA as xJ,kx as TX,lA as aZ,lN as sJ,lm as C0,mN as Oq,mm as lX,nK as nJ,ns as kZ,nx as PJ,oK as Yq,oN as SQ,ps as iq,px as xZ,qs as $0,rs as dX,ru as pJ,ss as LX,su as lZ,ts as XQ,us as UX,vs as n0,wG as dJ,wk as WX,wu as TJ,xG as tZ,xk as nQ,xu as rZ,yF as xQ,yk as hX,ys as PZ,yu as SJ,zF as uq,zs as EZ,zu as $Z}from"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import{yU as h0,zU as RX}from"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import{AV as b0,GV as u0,HV as uX,yV as t}from"./cli-0.5.13-qrn019we.mjs";import{RX as wZ,aY as R0,cW as L0,vX as f,xX as U}from"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import{EZ as G0,FZ as Q,GZ as F,HZ as p}from"./cli-0.5.13-f1e673b2.mjs";import{IZ as k0}from"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import{D4 as T0,E4 as gX}from"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import{$$ as S0,D6 as Y0,E6 as ZX,Fca as wX,L_ as mX,Naa as MZ,Nca as dq,R_ as iZ,S_ as YX,V_ as hJ,d9 as aJ,f$ as BJ,g$ as _J,gaa as BX,iba as gq,l9 as fq,o$ as IJ,p9 as LJ,r9 as SZ,u8 as i0,w8 as AJ}from"./cli-0.5.13-p70x9j1v.mjs";import{Vca as JJ,cda as vZ,ida as PQ}from"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import{tea as JX,uea as GJ}from"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import{hfa as IX,jfa as BQ}from"./cli-0.5.13-ktrr6zcr.mjs";import{Pfa as QJ,Tfa as wq}from"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import{Cga as fZ,Ega as AX,Kga as RJ}from"./cli-0.5.13-ywwd10c0.mjs";import{Nga as VJ,_ga as TZ}from"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import{$ma as uQ,ona as jq}from"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import{aoa as o,eoa as $}from"./cli-0.5.13-rmc7f4b8.mjs";var A0;var YJ=$(()=>{A0={FOLDER_NAME:".claudin",AGENTS_DIR:"agents"}});import{mkdir as jZ,open as mZ,unlink as uZ}from"fs/promises";import{join as _0}from"path";function UJ(J,X,q,Y,V,Z,R){let L=X.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\\\n"),W=q===void 0||q.length===1&&q[0]==="*"?"":`
|
|
2
|
+
tools: ${q.join(", ")}`,O=R!==void 0?`
|
|
3
|
+
effort: ${R}`:"",K=V?`
|
|
4
|
+
color: ${V}`:"",G=Z?`
|
|
5
|
+
memory: ${Z}`:"";return`---
|
|
6
|
+
name: ${J}
|
|
7
|
+
description: "${L}"${W}${O}${K}${G}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
${Y}
|
|
11
|
+
`}function FX(J){switch(J){case"flagSettings":throw Error(`Cannot get directory path for ${J} agents`);case"userSettings":return _0(VJ(),A0.AGENTS_DIR);case"projectSettings":return _0(JX(),A0.FOLDER_NAME,A0.AGENTS_DIR);case"policySettings":return _0(LJ(),A0.FOLDER_NAME,A0.AGENTS_DIR);case"localSettings":return _0(JX(),A0.FOLDER_NAME,A0.AGENTS_DIR)}}function FJ(J){switch(J){case"projectSettings":return _0(".",A0.FOLDER_NAME,A0.AGENTS_DIR);default:return FX(J)}}function KX(J){let X=FX(J.source);return _0(X,`${J.agentType}.md`)}function HX(J){if(J.source==="built-in")return"Built-in";if(J.source==="plugin")throw Error("Cannot get file path for plugin agents");let X=FX(J.source),q=J.filename||J.agentType;return _0(X,`${q}.md`)}function KJ(J){if(J.source==="built-in")return"Built-in";let X=FJ(J.source);return _0(X,`${J.agentType}.md`)}function HJ(J){if(LX(J))return"Built-in";if(UX(J))return`Plugin: ${J.plugin||"Unknown"}`;if(J.source==="flagSettings")return"CLI argument";let X=FJ(J.source),q=J.filename||J.agentType;return _0(X,`${q}.md`)}async function cZ(J){let X=FX(J);return await jZ(X,{recursive:!0}),X}async function WJ(J,X,q,Y,V,Z=!0,R,L,H){if(J==="built-in")throw Error("Cannot save built-in agents");await cZ(J);let W=KX({source:J,agentType:X}),O=UJ(X,q,Y,V,R,L,H);try{await MJ(W,O,Z?"wx":"w")}catch(K){if(AX(K)==="EEXIST")throw Error(`Agent file already exists: ${W}`);throw K}}async function OJ(J,X,q,Y,V,Z,R){if(J.source==="built-in")throw Error("Cannot update built-in agents");let L=HX(J),H=UJ(J.agentType,X,q,Y,V,Z,R);await MJ(L,H)}async function fJ(J){if(J.source==="built-in")throw Error("Cannot delete built-in agents");let X=HX(J);try{await uZ(X)}catch(q){if(AX(q)!=="ENOENT")throw q}}async function MJ(J,X,q="w"){let Y=await mZ(J,q);try{await Y.writeFile(X,{encoding:"utf-8"}),await Y.datasync()}finally{await Y.close()}}var x0=$(()=>{SZ();QX();GJ();TZ();RJ();YJ()});function NJ(J){let X=EJ.c(48),{agent:q,tools:Y,onBack:V}=J,Z=fX(q,Y,!1),R;if(X[0]!==q)R=HJ(q),X[0]=q,X[1]=R;else R=X[1];let L=R,H;if(X[2]!==q.agentType)H=kJ(q.agentType),X[2]=q.agentType,X[3]=H;else H=X[3];let W=H,O;if(X[4]===Symbol.for("react.memo_cache_sentinel"))O={context:"Confirmation"},X[4]=O;else O=X[4];t("confirm:no",V,O);let K;if(X[5]!==V)K=(C)=>{if(C.key==="return")C.preventDefault(),V()},X[5]=V,X[6]=K;else K=X[6];let G=K,N=function(){if(Z.hasWildcard)return Q(U,{children:"All tools"});if(!q.tools||q.tools.length===0)return Q(U,{children:"None"});return F(G0,{children:[Z.validTools.length>0&&Q(U,{children:Z.validTools.join(", ")}),Z.invalidTools.length>0&&F(U,{color:"warning",children:[Y0.warning," Unrecognized:"," ",Z.invalidTools.join(", ")]})]})},k=f,w="column",y=1,z=0,D=!0,M;if(X[7]!==L)M=Q(U,{dimColor:!0,children:L}),X[7]=L,X[8]=M;else M=X[8];let B;if(X[9]===Symbol.for("react.memo_cache_sentinel"))B=F(U,{children:[Q(U,{bold:!0,children:"Description"})," (tells Claude when to use this agent):"]}),X[9]=B;else B=X[9];let v;if(X[10]!==q.whenToUse)v=F(f,{flexDirection:"column",children:[B,Q(f,{marginLeft:2,children:Q(U,{children:q.whenToUse})})]}),X[10]=q.whenToUse,X[11]=v;else v=X[11];let T=f,P;if(X[12]===Symbol.for("react.memo_cache_sentinel"))P=F(U,{children:[Q(U,{bold:!0,children:"Tools"}),":"," "]}),X[12]=P;else P=X[12];let g=N(),A;if(X[13]!==T||X[14]!==P||X[15]!==g)A=F(T,{children:[P,g]}),X[13]=T,X[14]=P,X[15]=g,X[16]=A;else A=X[16];let d;if(X[17]===Symbol.for("react.memo_cache_sentinel"))d=Q(U,{bold:!0,children:"Model"}),X[17]=d;else d=X[17];let i;if(X[18]!==q.model)i=OX(q.model),X[18]=q.model,X[19]=i;else i=X[19];let r;if(X[20]!==i)r=F(U,{children:[d,": ",i]}),X[20]=i,X[21]=r;else r=X[21];let x;if(X[22]!==q.permissionMode)x=q.permissionMode&&F(U,{children:[Q(U,{bold:!0,children:"Permission mode"}),": ",q.permissionMode]}),X[22]=q.permissionMode,X[23]=x;else x=X[23];let E;if(X[24]!==q.memory)E=q.memory&&F(U,{children:[Q(U,{bold:!0,children:"Memory"}),": ",WX(q.memory)]}),X[24]=q.memory,X[25]=E;else E=X[25];let S;if(X[26]!==q.hooks)S=q.hooks&&Object.keys(q.hooks).length>0&&F(U,{children:[Q(U,{bold:!0,children:"Hooks"}),": ",Object.keys(q.hooks).join(", ")]}),X[26]=q.hooks,X[27]=S;else S=X[27];let I;if(X[28]!==q.skills)I=q.skills&&q.skills.length>0&&F(U,{children:[Q(U,{bold:!0,children:"Skills"}),":"," ",q.skills.length>10?`${q.skills.length} skills`:q.skills.join(", ")]}),X[28]=q.skills,X[29]=I;else I=X[29];let b;if(X[30]!==q.agentType||X[31]!==W)b=W&&Q(f,{children:F(U,{children:[Q(U,{bold:!0,children:"Color"}),":"," ",F(U,{backgroundColor:W,color:"inverseText",children:[" ",q.agentType," "]})]})}),X[30]=q.agentType,X[31]=W,X[32]=b;else b=X[32];let c;if(X[33]!==q)c=!LX(q)&&F(G0,{children:[Q(f,{children:F(U,{children:[Q(U,{bold:!0,children:"System prompt"}),":"]})}),Q(f,{marginLeft:2,marginRight:2,children:Q(PJ,{children:q.getSystemPrompt()})})]}),X[33]=q,X[34]=c;else c=X[34];let j;if(X[35]!==k||X[36]!==G||X[37]!==v||X[38]!==A||X[39]!==r||X[40]!==x||X[41]!==E||X[42]!==S||X[43]!==I||X[44]!==b||X[45]!==c||X[46]!==M)j=F(k,{flexDirection:w,gap:y,tabIndex:z,autoFocus:D,onKeyDown:G,children:[M,v,A,r,x,E,S,I,b,c]}),X[35]=k,X[36]=G,X[37]=v,X[38]=A,X[39]=r,X[40]=x,X[41]=E,X[42]=S,X[43]=I,X[44]=b,X[45]=c,X[46]=M,X[47]=j;else j=X[47];return j}var EJ;var zJ=$(()=>{ZX();R0();b0();_X();hX();TX();QX();pX();xZ();x0();p();EJ=o(L0(),1)});function MX(J){let X=vJ.c(17),{agentName:q,currentColor:Y,onConfirm:V}=J,Z=Y===void 0?"automatic":Y,R;if(X[0]!==Z)R=g0.findIndex((z)=>z===Z),X[0]=Z,X[1]=R;else R=X[1];let[L,H]=DJ.useState(Math.max(0,R)),W;if(X[2]!==V||X[3]!==L)W=(z)=>{if(z.key==="up")z.preventDefault(),H(dZ);else if(z.key==="down")z.preventDefault(),H(gZ);else if(z.key==="return"){z.preventDefault();let D=g0[L];V(D==="automatic"?void 0:D)}},X[2]=V,X[3]=L,X[4]=W;else W=X[4];let O=W,K=g0[L],G;if(X[5]!==L)G=g0.map((z,D)=>{let M=D===L;return F(f,{flexDirection:"row",gap:1,children:[Q(U,{color:M?"suggestion":void 0,children:M?Y0.pointer:" "}),z==="automatic"?Q(U,{bold:M,children:"Automatic color"}):F(f,{gap:1,children:[Q(U,{backgroundColor:SX[z],color:"inverseText",children:" "}),Q(U,{bold:M,children:BJ(z)})]})]},z)}),X[5]=L,X[6]=G;else G=X[6];let N;if(X[7]!==G)N=Q(f,{flexDirection:"column",children:G}),X[7]=G,X[8]=N;else N=X[8];let k;if(X[9]===Symbol.for("react.memo_cache_sentinel"))k=Q(U,{children:"Preview: "}),X[9]=k;else k=X[9];let w;if(X[10]!==q||X[11]!==K)w=F(f,{marginTop:1,children:[k,K===void 0||K==="automatic"?F(U,{inverse:!0,bold:!0,children:[" ","@",q," "]}):F(U,{backgroundColor:SX[K],color:"inverseText",bold:!0,children:[" ","@",q," "]})]}),X[10]=q,X[11]=K,X[12]=w;else w=X[12];let y;if(X[13]!==O||X[14]!==N||X[15]!==w)y=F(f,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:O,children:[N,w]}),X[13]=O,X[14]=N,X[15]=w,X[16]=y;else y=X[16];return y}function gZ(J){return J<g0.length-1?J+1:0}function dZ(J){return J>0?J-1:g0.length-1}var vJ,DJ,g0;var jX=$(()=>{ZX();R0();_X();IJ();p();vJ=o(L0(),1),DJ=o(k0(),1),g0=["automatic",...bJ]});function d0(J){let X=wJ.c(11),{initialModel:q,onComplete:Y,onCancel:V}=J,Z;if(X[0]!==q){X:{let K=CJ();if(q&&!K.some((G)=>G.value===q)){Z=[{value:q,label:q,description:"Current model (custom ID)"},...K];break X}Z=K}X[0]=q,X[1]=Z}else Z=X[1];let R=Z,L=q??"inherit",H;if(X[2]===Symbol.for("react.memo_cache_sentinel"))H=Q(f,{marginBottom:1,children:Q(U,{dimColor:!0,children:"Model determines the agent's reasoning capabilities and speed."})}),X[2]=H;else H=X[2];let W;if(X[3]!==V||X[4]!==Y)W=()=>V?V():Y(void 0),X[3]=V,X[4]=Y,X[5]=W;else W=X[5];let O;if(X[6]!==L||X[7]!==R||X[8]!==Y||X[9]!==W)O=F(f,{flexDirection:"column",children:[H,Q(v0,{options:R,defaultValue:L,onChange:Y,onCancel:W})]}),X[6]=L,X[7]=R,X[8]=Y,X[9]=W,X[10]=O;else O=X[10];return O}var wJ;var kX=$(()=>{R0();pX();qX();p();wJ=o(L0(),1)});function yJ(){return{READ_ONLY:{name:"Read-only tools",toolNames:new Set([SJ.name,TJ.name,sJ.name,gJ.name,dJ.name,jJ.name,rJ.name,iJ.name,lJ.name,$J.name,nJ.name])},EDIT:{name:"Edit tools",toolNames:new Set([uJ.name,pJ.name,cJ.name])},EXECUTION:{name:"Execution tools",toolNames:new Set([xJ.name])},MCP:{name:"MCP tools",toolNames:new Set,isMcp:!0},OTHER:{name:"Other tools",toolNames:new Set}}}function Vq(J){let X=new Map;return J.forEach((q)=>{if(cX(q)){let Y=mX(q.name);if(Y?.serverName){let V=X.get(Y.serverName)||[];V.push(q),X.set(Y.serverName,V)}}}),Array.from(X.entries()).map(([q,Y])=>({serverName:q,tools:Y})).sort((q,Y)=>q.serverName.localeCompare(Y.serverName))}function PX(J){let X=oJ.c(69),{tools:q,initialTools:Y,onComplete:V,onCancel:Z}=J,R;if(X[0]!==q)R=mJ({tools:q,isBuiltIn:!1,isAsync:!1}),X[0]=q,X[1]=R;else R=X[1];let L=R,H;if(X[2]!==L||X[3]!==Y)H=!Y||Y.includes("*")?L.map(Wq):Y,X[2]=L,X[3]=Y,X[4]=H;else H=X[4];let W=H,[O,K]=l0.useState(W),[G,N]=l0.useState(0),[k,w]=l0.useState(!1),y;if(X[5]!==L)y=new Set(L.map(Hq)),X[5]=L,X[6]=y;else y=X[6];let z=y,D;if(X[7]!==O||X[8]!==z){let u;if(X[10]!==z)u=(h)=>z.has(h),X[10]=z,X[11]=u;else u=X[11];D=O.filter(u),X[7]=O,X[8]=z,X[9]=D}else D=X[9];let M=D,B;if(X[12]!==M)B=new Set(M),X[12]=M,X[13]=B;else B=X[13];let v=B,T=M.length===L.length&&L.length>0,P;if(X[14]===Symbol.for("react.memo_cache_sentinel"))P=(u)=>{if(!u)return;K((h)=>h.includes(u)?h.filter((q0)=>q0!==u):[...h,u])},X[14]=P;else P=X[14];let g=P,A;if(X[15]===Symbol.for("react.memo_cache_sentinel"))A=(u,h)=>{K((q0)=>{if(h){let J0=u.filter((B0)=>!q0.includes(B0));return[...q0,...J0]}else return q0.filter((J0)=>!u.includes(J0))})},X[15]=A;else A=X[15];let d=A,i;if(X[16]!==L||X[17]!==V||X[18]!==M)i=()=>{let u=L.map(Kq),q0=M.length===u.length&&u.every((J0)=>M.includes(J0))?void 0:M;V(q0)},X[16]=L,X[17]=V,X[18]=M,X[19]=i;else i=X[19];let r=i,x;if(X[20]!==L){let u=yJ();x={readOnly:[],edit:[],execution:[],mcp:[],other:[]},L.forEach((h)=>{if(cX(h))x.mcp.push(h);else if(u.READ_ONLY.toolNames.has(h.name))x.readOnly.push(h);else if(u.EDIT.toolNames.has(h.name))x.edit.push(h);else if(u.EXECUTION.toolNames.has(h.name))x.execution.push(h);else if(h.name!==YX)x.other.push(h)}),X[20]=L,X[21]=x}else x=X[21];let E=x,S;if(X[22]!==v)S=(u)=>{let q0=i0(u,(J0)=>v.has(J0.name))<u.length;return()=>{let J0=u.map(Fq);d(J0,q0)}},X[22]=v,X[23]=S;else S=X[23];let I=S,b;if(X[24]!==I||X[25]!==L||X[26]!==G||X[27]!==r||X[28]!==T||X[29]!==v||X[30]!==k||X[31]!==E.edit||X[32]!==E.execution||X[33]!==E.mcp||X[34]!==E.other||X[35]!==E.readOnly){b=[],b.push({id:"continue",label:"Continue",action:r,isContinue:!0});let u;if(X[37]!==L||X[38]!==T)u=()=>{let M0=L.map(Uq);d(M0,!T)},X[37]=L,X[38]=T,X[39]=u;else u=X[39];b.push({id:"bucket-all",label:`${T?Y0.checkboxOn:Y0.checkboxOff} All tools`,action:u});let h=yJ();[{id:"bucket-readonly",name:h.READ_ONLY.name,tools:E.readOnly},{id:"bucket-edit",name:h.EDIT.name,tools:E.edit},{id:"bucket-execution",name:h.EXECUTION.name,tools:E.execution},{id:"bucket-mcp",name:h.MCP.name,tools:E.mcp},{id:"bucket-other",name:h.OTHER.name,tools:E.other}].forEach((M0)=>{let{id:m0,name:I0,tools:t0}=M0;if(t0.length===0)return;let XX=i0(t0,(pZ)=>v.has(pZ.name))===t0.length;b.push({id:m0,label:`${XX?Y0.checkboxOn:Y0.checkboxOff} ${I0}`,action:I(t0)})});let J0=b.length,B0;if(X[40]!==G||X[41]!==k||X[42]!==J0)B0=()=>{if(w(!k),k&&G>J0)N(J0)},X[40]=G,X[41]=k,X[42]=J0,X[43]=B0;else B0=X[43];b.push({id:"toggle-individual",label:k?"Hide advanced options":"Show advanced options",action:B0,isToggle:!0});let qJ=Vq(L);if(k){if(qJ.length>0)b.push({id:"mcp-servers-header",label:"MCP Servers:",action:Lq,isHeader:!0}),qJ.forEach((M0)=>{let{serverName:m0,tools:I0}=M0,yX=i0(I0,(XX)=>v.has(XX.name))===I0.length;b.push({id:`mcp-server-${m0}`,label:`${yX?Y0.checkboxOn:Y0.checkboxOff} ${m0} (${I0.length} ${_J(I0.length,"tool")})`,action:()=>{let XX=I0.map(Gq);d(XX,!yX)}})}),b.push({id:"tools-header",label:"Individual Tools:",action:Rq,isHeader:!0});L.forEach((M0)=>{let m0=M0.name;if(M0.name.startsWith("mcp__")){let I0=mX(M0.name);m0=I0?`${I0.toolName} (${I0.serverName})`:M0.name}b.push({id:`tool-${M0.name}`,label:`${v.has(M0.name)?Y0.checkboxOn:Y0.checkboxOff} ${m0}`,action:()=>g(M0.name)})})}X[24]=I,X[25]=L,X[26]=G,X[27]=r,X[28]=T,X[29]=v,X[30]=k,X[31]=E.edit,X[32]=E.execution,X[33]=E.mcp,X[34]=E.other,X[35]=E.readOnly,X[36]=b}else b=X[36];let c;if(X[44]!==Y||X[45]!==Z||X[46]!==V)c=()=>{if(Z)Z();else V(Y)},X[44]=Y,X[45]=Z,X[46]=V,X[47]=c;else c=X[47];let j=c,C;if(X[48]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},X[48]=C;else C=X[48];t("confirm:no",j,C);let m;if(X[49]!==G||X[50]!==b)m=(u)=>{if(u.key==="return"){u.preventDefault();let h=b[G];if(h&&!h.isHeader)h.action()}else if(u.key==="up"){u.preventDefault();let h=G-1;while(h>0&&b[h]?.isHeader)h--;N(Math.max(0,h))}else if(u.key==="down"){u.preventDefault();let h=G+1;while(h<b.length-1&&b[h]?.isHeader)h++;N(Math.min(b.length-1,h))}},X[49]=G,X[50]=b,X[51]=m;else m=X[51];let _=m,l=G===0?"suggestion":void 0,s=G===0,X0=G===0?`${Y0.pointer} `:" ",V0;if(X[52]!==l||X[53]!==s||X[54]!==X0)V0=F(U,{color:l,bold:s,children:[X0,"[ Continue ]"]}),X[52]=l,X[53]=s,X[54]=X0,X[55]=V0;else V0=X[55];let f0;if(X[56]===Symbol.for("react.memo_cache_sentinel"))f0=Q(u0,{width:40}),X[56]=f0;else f0=X[56];let U0;if(X[57]!==b)U0=b.slice(1),X[57]=b,X[58]=U0;else U0=X[58];let H0;if(X[59]!==G||X[60]!==U0)H0=U0.map((u,h)=>{let q0=h+1===G,J0=u.isToggle,B0=u.isHeader;return F(l0.default.Fragment,{children:[J0&&Q(u0,{width:40}),B0&&h>0&&Q(f,{marginTop:1}),F(U,{color:B0?void 0:q0?"suggestion":void 0,dimColor:B0,bold:J0&&q0,children:[B0?"":q0?`${Y0.pointer} `:" ",J0?`[ ${u.label} ]`:u.label]})]},u.id)}),X[59]=G,X[60]=U0,X[61]=H0;else H0=X[61];let W0=T?"All tools selected":`${v.size} of ${L.length} tools selected`,F0;if(X[62]!==W0)F0=Q(f,{marginTop:1,flexDirection:"column",children:Q(U,{dimColor:!0,children:W0})}),X[62]=W0,X[63]=F0;else F0=X[63];let K0;if(X[64]!==_||X[65]!==V0||X[66]!==H0||X[67]!==F0)K0=F(f,{flexDirection:"column",marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:_,children:[V0,f0,H0,F0]}),X[64]=_,X[65]=V0,X[66]=H0,X[67]=F0,X[68]=K0;else K0=X[68];return K0}function Rq(){}function Gq(J){return J.name}function Lq(){}function Uq(J){return J.name}function Fq(J){return J.name}function Kq(J){return J.name}function Hq(J){return J.name}function Wq(J){return J.name}var oJ,l0;var xX=$(()=>{ZX();iZ();Zq();TX();hJ();aZ();Oq();oZ();eZ();lZ();$Z();rZ();qq();sZ();Yq();Jq();Xq();nZ();tZ();Qq();R0();b0();AJ();IJ();uX();p();oJ=o(L0(),1),l0=o(k0(),1)});function r0(J){if(J==="all")return"Agents";if(J==="built-in")return"Built-in agents";if(J==="plugin")return"Plugin agents";return eJ(aJ(J))}var EX=$(()=>{Mq();fq()});function JQ({agent:J,tools:X,onSaved:q,onBack:Y}){let V=o0(),[Z,R]=E0.useState("menu"),[L,H]=E0.useState(0),[W,O]=E0.useState(null),[K,G]=E0.useState(J.color),N=E0.useCallback(async()=>{let M=HX(J),B=await zX(M);if(B.error)O(B.error);else q(`Opened ${J.agentType} in editor. If you made edits, restart to load the latest version.`)},[J,q]),k=E0.useCallback(async(M={})=>{let{tools:B,color:v,model:T}=M,P=v??K,g=B!==void 0,A=T!==void 0,d=P!==J.color;if(!g&&!A&&!d)return!1;try{if(!XQ(J)&&!UX(J))return!1;if(g||d)await OJ(J,J.whenToUse,B??J.tools,J.getSystemPrompt(),P);if(A&&J.baseDir)await $0(J.baseDir,J.agentType,T);if(d&&P)tJ(J.agentType,P);return V((i)=>{let r=i.agentDefinitions.allAgents.map((x)=>x.agentType===J.agentType?{...x,tools:B??x.tools,color:P,model:T??x.model}:x);return{...i,agentDefinitions:{...i.agentDefinitions,activeAgents:n0(r),allAgents:r}}}),q(`Updated agent: ${T0.bold(J.agentType)}`),!0}catch(i){return O(i instanceof Error?i.message:"Failed to save agent"),!1}},[J,K,q,V]),w=E0.useMemo(()=>[{label:"Open in editor",action:N},{label:"Edit tools",action:()=>R("edit-tools")},{label:"Edit model",action:()=>R("edit-model")},{label:"Edit color",action:()=>R("edit-color")}],[N]),y=E0.useCallback(()=>{if(O(null),Z==="menu")Y();else R("menu")},[Z,Y]),z=E0.useCallback((M)=>{if(M.key==="up")M.preventDefault(),H((B)=>Math.max(0,B-1));else if(M.key==="down")M.preventDefault(),H((B)=>Math.min(w.length-1,B+1));else if(M.key==="return"){M.preventDefault();let B=w[L];if(B)B.action()}},[w,L]);t("confirm:no",y,{context:"Confirmation"});let D=()=>F(f,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:z,children:[F(U,{dimColor:!0,children:["Source: ",r0(J.source)]}),Q(f,{marginTop:1,flexDirection:"column",children:w.map((M,B)=>F(U,{color:B===L?"suggestion":void 0,children:[B===L?`${Y0.pointer} `:" ",M.label]},M.label))}),W&&Q(f,{marginTop:1,children:Q(U,{color:"error",children:W})})]});switch(Z){case"menu":return D();case"edit-tools":return Q(PX,{tools:X,initialTools:J.tools,onComplete:async(M)=>{R("menu"),await k({tools:M})}});case"edit-color":return Q(MX,{agentName:J.agentType,currentColor:K||J.color||"automatic",onConfirm:async(M)=>{G(M),R("menu"),await k({color:M})}});case"edit-model":return Q(d0,{initialModel:J.model,onComplete:async(M)=>{R("menu"),await k({model:M})}});default:return null}}var E0;var QQ=$(()=>{gX();ZX();NX();R0();b0();_X();QX();VX();dX();x0();jX();kX();xX();EX();p();E0=o(k0(),1)});function c0(J){let X=ZQ.c(2),{instructions:q}=J,Y=q===void 0?"Press ↑↓ to navigate · Enter to select · Esc to go back":q,V=h0(),Z=V.pending?`Press ${V.keyName} again to exit`:Y,R;if(X[0]!==Z)R=Q(f,{marginLeft:2,children:Q(U,{dimColor:!0,children:Z})}),X[0]=Z,X[1]=R;else R=X[1];return R}var ZQ;var qQ=$(()=>{RX();R0();p();ZQ=o(L0(),1)});function YQ(J,X){if(J.length<=X)return J;if(X<=1)return J.slice(0,X);return`${J.slice(0,X-1)}…`}function LQ(J){return{isOverridden:!!J.overriddenBy,overriddenBy:J.overriddenBy||null}}function Eq(J){let X=kq,q=Pq;for(let Y of J){if(Y.agentType.length>X)X=Y.agentType.length;let V=rX(Y);if(V&&V.length>q)q=V.length}return{name:Math.min(X,32),model:Math.min(q,28)}}function Nq({agent:J,isSelected:X,dimmed:q,widths:Y,selectable:V}){let{isOverridden:Z,overriddenBy:R}=LQ(J),L=q&&!X,H=V&&X?"suggestion":void 0,W=rX(J)??"",O=V?X?`${Y0.pointer} `:" ":"";return F(f,{flexDirection:"row",children:[Q(f,{width:Y.name+(V?2:0),flexShrink:0,children:F(U,{dimColor:L,color:H,children:[O,YQ(J.agentType,Y.name)]})}),Q(f,{width:Y.model+2,flexShrink:0,children:Q(U,{dimColor:!0,color:H,children:YQ(W,Y.model)})}),R&&Q(f,{flexShrink:0,children:F(U,{dimColor:!X,color:X?"warning":void 0,children:[Y0.warning," shadowed by ",VQ(R)]})})]},`${J.agentType}-${J.source}`)}function GX({widths:J,selectable:X}){return F(f,{flexDirection:"row",children:[Q(f,{width:J.name+(X?2:0),flexShrink:0,children:Q(U,{dimColor:!0,children:X?" Name":"Name"})}),Q(f,{width:J.model+2,flexShrink:0,children:Q(U,{dimColor:!0,children:"Model"})})]})}function UQ({source:J,agents:X,onBack:q,onSelect:Y,onCreateNew:V,changes:Z}){let[R,L]=D0.useState(null),[H,W]=D0.useState(!0),O=D0.useMemo(()=>[...X].sort(RQ),[X]),K=D0.useMemo(()=>Eq(O),[O]),G=D0.useMemo(()=>{if(J==="all")return iX.flatMap(({source:A})=>O.filter((d)=>d.source===A));if(J==="built-in")return O.filter((A)=>A.source==="built-in");let P=O.filter((A)=>A.source!=="built-in"),g=O.filter((A)=>A.source==="built-in");return[...P,...g]},[O,J]);D0.useEffect(()=>{if(!R&&!H&&G.length>0)if(V)W(!0);else L(G[0]||null)},[G,R,H,V]);let N=(P)=>{if(P.key==="return"){if(P.preventDefault(),H&&V)V();else if(R)Y(R);return}if(P.key!=="up"&&P.key!=="down")return;P.preventDefault();let g=!!V,A=G.length+(g?1:0);if(A===0)return;let d=0;if(!H&&R){let r=G.findIndex((x)=>x.agentType===R.agentType&&x.source===R.source);if(r>=0)d=g?r+1:r}let i=P.key==="up"?d===0?A-1:d-1:d===A-1?0:d+1;if(g&&i===0)W(!0),L(null);else{let r=g?i-1:i,x=G[r];if(x)W(!1),L(x)}},k=()=>F(f,{children:[Q(U,{color:H?"suggestion":void 0,children:H?`${Y0.pointer} `:" "}),Q(U,{color:H?"suggestion":void 0,children:"Create new agent"})]}),w=(P)=>{let g=!H&&R?.agentType===P.agentType&&R?.source===P.source,{isOverridden:A}=LQ(P);return Q(Nq,{agent:P,isSelected:!!g,dimmed:A,widths:K,selectable:!0},`${P.agentType}-${P.source}`)},y=(P="Built-in (always available):")=>{let g=O.filter((A)=>A.source==="built-in");if(g.length===0)return null;return F(f,{flexDirection:"column",marginBottom:1,paddingLeft:2,children:[Q(U,{bold:!0,dimColor:!0,children:P}),Q(GX,{widths:K,selectable:!0}),g.map(w)]})},z=(P,g)=>{if(!g.length)return null;let A=g[0]?.baseDir;return F(f,{flexDirection:"column",marginBottom:1,children:[F(f,{paddingLeft:2,children:[Q(U,{bold:!0,dimColor:!0,children:P}),A&&F(U,{dimColor:!0,children:[" (",A,")"]})]}),Q(f,{paddingLeft:2,children:Q(GX,{widths:K,selectable:!0})}),g.map(w)]})},D=r0(J),M=O.filter((P)=>P.source==="built-in");if(!O.length||J!=="built-in"&&!O.some((P)=>P.source!=="built-in"))return Q(C0,{title:D,subtitle:"No agents found",onCancel:q,hideInputGuide:!0,children:F(f,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:N,children:[V&&Q(f,{children:k()}),Q(U,{dimColor:!0,children:"No agents found. Create specialized subagents that Claude can delegate to."}),Q(U,{dimColor:!0,children:"Each subagent has its own context window, custom system prompt, and specific tools."}),Q(U,{dimColor:!0,children:"Try creating: Code Reviewer, Code Simplifier, Security Reviewer, Tech Lead, or UX Reviewer."}),J!=="built-in"&&O.some((P)=>P.source==="built-in")&&y()]})});let v=i0(O,(P)=>!P.overriddenBy),T;if(J==="all")T=F(G0,{children:[iX.filter((P)=>P.source!=="built-in").map(({label:P,source:g})=>Q(D0.Fragment,{children:z(P,O.filter((A)=>A.source===g))},g)),M.length>0&&F(f,{flexDirection:"column",marginBottom:1,paddingLeft:2,children:[F(U,{dimColor:!0,children:[Q(U,{bold:!0,children:"Built-in agents"})," (always available)"]}),Q(GX,{widths:K,selectable:!0}),M.map(w)]})]});else if(J==="built-in")T=F(G0,{children:[Q(U,{dimColor:!0,italic:!0,children:"Select a built-in agent and press Enter to change its model."}),F(f,{marginTop:1,flexDirection:"column",children:[Q(GX,{widths:K,selectable:!0}),O.map(w)]})]});else T=F(G0,{children:[F(f,{flexDirection:"column",children:[Q(GX,{widths:K,selectable:!0}),O.filter((P)=>P.source!=="built-in").map(w)]}),O.some((P)=>P.source==="built-in")&&F(G0,{children:[Q(u0,{}),y()]})]});return F(C0,{title:D,subtitle:`${v} agents`,onCancel:q,hideInputGuide:!0,children:[Z&&Z.length>0&&Q(f,{marginTop:1,children:Q(U,{dimColor:!0,children:Z[Z.length-1]})}),F(f,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:N,children:[V&&Q(f,{marginBottom:1,children:k()}),T]})]})}var D0,kq=20,Pq=12;var FQ=$(()=>{ZX();R0();GQ();AJ();lX();uX();EX();p();D0=o(k0(),1)});function nX(J){let X=KQ.c(38),{steps:q,initialData:Y,onComplete:V,onCancel:Z,children:R,title:L,showStepCounter:H}=J,W;if(X[0]!==Y)W=Y===void 0?{}:Y,X[0]=Y,X[1]=W;else W=X[1];let O=W,K=H===void 0?!0:H,[G,N]=p0.useState(0),[k,w]=p0.useState(O),[y,z]=p0.useState(!1),D;if(X[2]===Symbol.for("react.memo_cache_sentinel"))D=[],X[2]=D;else D=X[2];let[M,B]=p0.useState(D);h0();let v,T;if(X[3]!==y||X[4]!==V||X[5]!==k)v=()=>{if(y)B([]),V(k)},T=[y,k,V],X[3]=y,X[4]=V,X[5]=k,X[6]=v,X[7]=T;else v=X[6],T=X[7];p0.useEffect(v,T);let P;if(X[8]!==G||X[9]!==M||X[10]!==q.length)P=()=>{if(G<q.length-1){if(M.length>0)B((_)=>[..._,G]);N(Iq)}else z(!0)},X[8]=G,X[9]=M,X[10]=q.length,X[11]=P;else P=X[11];let g=P,A;if(X[12]!==G||X[13]!==M||X[14]!==Z)A=()=>{if(M.length>0){let _=M[M.length-1];if(_!==void 0)B(Bq),N(_)}else if(G>0)N(zq);else if(Z)Z()},X[12]=G,X[13]=M,X[14]=Z,X[15]=A;else A=X[15];let d=A,i;if(X[16]!==G||X[17]!==q.length)i=(_)=>{if(_>=0&&_<q.length)B((l)=>[...l,G]),N(_)},X[16]=G,X[17]=q.length,X[18]=i;else i=X[18];let r=i,x;if(X[19]!==Z)x=()=>{if(B([]),Z)Z()},X[19]=Z,X[20]=x;else x=X[20];let E=x,S;if(X[21]===Symbol.for("react.memo_cache_sentinel"))S=(_)=>{w((l)=>({...l,..._}))},X[21]=S;else S=X[21];let I=S,b;if(X[22]!==E||X[23]!==G||X[24]!==d||X[25]!==g||X[26]!==r||X[27]!==K||X[28]!==q.length||X[29]!==L||X[30]!==k)b={currentStepIndex:G,totalSteps:q.length,wizardData:k,setWizardData:w,updateWizardData:I,goNext:g,goBack:d,goToStep:r,cancel:E,title:L,showStepCounter:K},X[22]=E,X[23]=G,X[24]=d,X[25]=g,X[26]=r,X[27]=K,X[28]=q.length,X[29]=L,X[30]=k,X[31]=b;else b=X[31];let c=b,j=q[G];if(!j||y)return null;let C;if(X[32]!==j||X[33]!==R)C=R||Q(j,{}),X[32]=j,X[33]=R,X[34]=C;else C=X[34];let m;if(X[35]!==c||X[36]!==C)m=Q($X.Provider,{value:c,children:C}),X[35]=c,X[36]=C,X[37]=m;else m=X[37];return m}function zq(J){return J-1}function Bq(J){return J.slice(0,-1)}function Iq(J){return J+1}var KQ,p0,$X;var oX=$(()=>{RX();p();KQ=o(L0(),1),p0=o(k0(),1),$X=p0.createContext(null)});function e(){let J=HQ.useContext($X);if(!J)throw Error("useWizard must be used within a WizardProvider");return J}var HQ;var sX=$(()=>{oX();HQ=o(k0(),1)});function aX({instructions:J=F(Q0,{children:[Q(n,{shortcut:"↑↓",action:"navigate"}),Q(n,{shortcut:"Enter",action:"select"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]})}){let X=h0();return Q(f,{marginLeft:3,marginTop:1,children:Q(U,{dimColor:!0,children:X.pending?`Press ${X.keyName} again to exit`:J})})}var eX=$(()=>{RX();R0();N0();z0();w0();p()});function Z0(J){let X=WQ.c(11),{title:q,color:Y,children:V,subtitle:Z,footerText:R}=J,L=Y===void 0?"suggestion":Y,{currentStepIndex:H,totalSteps:W,title:O,showStepCounter:K,goBack:G}=e(),N=q||O||"Wizard",k=K!==!1?` (${H+1}/${W})`:"",w=`${N}${k}`,y;if(X[0]!==V||X[1]!==L||X[2]!==G||X[3]!==Z||X[4]!==w)y=Q(C0,{title:w,subtitle:Z,onCancel:G,color:L,hideInputGuide:!0,isCancelActive:!1,children:V}),X[0]=V,X[1]=L,X[2]=G,X[3]=Z,X[4]=w,X[5]=y;else y=X[5];let z;if(X[6]!==R)z=Q(aX,{instructions:R}),X[6]=R,X[7]=z;else z=X[7];let D;if(X[8]!==y||X[9]!==z)D=F(G0,{children:[y,z]}),X[8]=y,X[9]=z,X[10]=D;else D=X[10];return D}var WQ;var P0=$(()=>{lX();sX();eX();p();WQ=o(L0(),1)});var O0=$(()=>{sX();P0();eX();oX()});function fQ(){let J=OQ.c(14),{goNext:X,goBack:q,updateWizardData:Y,wizardData:V}=e(),Z;if(J[0]===Symbol.for("react.memo_cache_sentinel"))Z={context:"Confirmation"},J[0]=Z;else Z=J[0];t("confirm:no",q,Z);let R;if(J[1]!==X||J[2]!==Y||J[3]!==V.agentType||J[4]!==V.location||J[5]!==V.selectedModel||J[6]!==V.selectedTools||J[7]!==V.systemPrompt||J[8]!==V.whenToUse)R=(K)=>{Y({selectedColor:K,finalAgent:{agentType:V.agentType,whenToUse:V.whenToUse,getSystemPrompt:()=>V.systemPrompt,tools:V.selectedTools,...V.selectedModel?{model:V.selectedModel}:{},...K?{color:K}:{},source:V.location}}),X()},J[1]=X,J[2]=Y,J[3]=V.agentType,J[4]=V.location,J[5]=V.selectedModel,J[6]=V.selectedTools,J[7]=V.systemPrompt,J[8]=V.whenToUse,J[9]=R;else R=J[9];let L=R,H;if(J[10]===Symbol.for("react.memo_cache_sentinel"))H=F(Q0,{children:[Q(n,{shortcut:"↑↓",action:"navigate"}),Q(n,{shortcut:"Enter",action:"select"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),J[10]=H;else H=J[10];let W=V.agentType||"agent",O;if(J[11]!==L||J[12]!==W)O=Q(Z0,{subtitle:"Choose background color",footerText:H,children:Q(f,{children:Q(MX,{agentName:W,currentColor:"automatic",onConfirm:L})})}),J[11]=L,J[12]=W,J[13]=O;else O=J[13];return O}var OQ;var MQ=$(()=>{R0();b0();N0();z0();w0();O0();P0();jX();p();OQ=o(L0(),1)});function tX(J){if(!J)return"Agent type is required";if(!/^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$/.test(J))return"Agent type must start and end with alphanumeric characters and contain only letters, numbers, and hyphens";if(J.length<3)return"Agent type must be at least 3 characters long";if(J.length>50)return"Agent type must be less than 50 characters";return null}function kQ(J,X,q){let Y=[],V=[];if(!J.agentType)Y.push("Agent type is required");else{let R=tX(J.agentType);if(R)Y.push(R);let L=q.find((H)=>H.agentType===J.agentType&&H.source!==J.source);if(L)Y.push(`Agent type "${J.agentType}" already exists in ${r0(L.source)}`)}if(!J.whenToUse)Y.push("Description (description) is required");else if(J.whenToUse.length<10)V.push("Description should be more descriptive (at least 10 characters)");else if(J.whenToUse.length>5000)V.push("Description is very long (over 5000 characters)");if(J.tools!==void 0&&!Array.isArray(J.tools))Y.push("Tools must be an array");else{if(J.tools===void 0)V.push("Agent has access to all tools");else if(J.tools.length===0)V.push("No tools selected - agent will have very limited capabilities");let R=fX(J,X,!1);if(R.invalidTools.length>0)Y.push(`Invalid tools: ${R.invalidTools.join(", ")}`)}let Z=J.getSystemPrompt();if(!Z)Y.push("System prompt is required");else if(Z.length<20)Y.push("System prompt is too short (minimum 20 characters)");else if(Z.length>1e4)V.push("System prompt is very long (over 10,000 characters)");return{isValid:Y.length===0,errors:Y,warnings:V}}var XJ=$(()=>{TX();EX()});function NQ(J){let X=EQ.c(88),{tools:q,existingAgents:Y,onSave:V,onSaveAndEdit:Z,error:R}=J,{goBack:L,wizardData:H}=e(),W;if(X[0]===Symbol.for("react.memo_cache_sentinel"))W={context:"Confirmation"},X[0]=W;else W=X[0];t("confirm:no",L,W);let O;if(X[1]!==V||X[2]!==Z)O=(_)=>{if(_.key==="s"||_.key==="return")_.preventDefault(),V();else if(_.key==="e")_.preventDefault(),Z()},X[1]=V,X[2]=Z,X[3]=O;else O=X[3];let K=O,G=H.finalAgent,N,k,w,y,z,D,M,B,v,T,P,g,A,d,i,r,x,E,S;if(X[4]!==G||X[5]!==Y||X[6]!==K||X[7]!==q||X[8]!==H.location){let _=kQ(G,q,Y),l;if(X[28]!==G)l=JJ(G.getSystemPrompt(),240),X[28]=G,X[29]=l;else l=X[29];let s=l,X0;if(X[30]!==G.whenToUse)X0=JJ(G.whenToUse,240),X[30]=G.whenToUse,X[31]=X0;else X0=X[31];let V0=X0,f0=Dq,U0;if(X[32]!==G.memory)U0=S0()?F(U,{children:[Q(U,{bold:!0,children:"Memory"}),": ",WX(G.memory)]}):null,X[32]=G.memory,X[33]=U0;else U0=X[33];let H0=U0;if(k=Z0,P="Confirm and save",X[34]===Symbol.for("react.memo_cache_sentinel"))g=F(Q0,{children:[Q(n,{shortcut:"s/Enter",action:"save"}),Q(n,{shortcut:"e",action:"edit in your editor"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]}),X[34]=g;else g=X[34];N=f,A="column",d=0,i=!0,r=K;let W0;if(X[35]===Symbol.for("react.memo_cache_sentinel"))W0=Q(U,{bold:!0,children:"Name"}),X[35]=W0;else W0=X[35];if(X[36]!==G.agentType)x=F(U,{children:[W0,": ",G.agentType]}),X[36]=G.agentType,X[37]=x;else x=X[37];let F0;if(X[38]===Symbol.for("react.memo_cache_sentinel"))F0=Q(U,{bold:!0,children:"Location"}),X[38]=F0;else F0=X[38];let K0;if(X[39]!==G.agentType||X[40]!==H.location)K0=KJ({source:H.location,agentType:G.agentType}),X[39]=G.agentType,X[40]=H.location,X[41]=K0;else K0=X[41];if(X[42]!==K0)E=F(U,{children:[F0,":"," ",K0]}),X[42]=K0,X[43]=E;else E=X[43];let u;if(X[44]===Symbol.for("react.memo_cache_sentinel"))u=Q(U,{bold:!0,children:"Tools"}),X[44]=u;else u=X[44];let h;if(X[45]!==G.tools)h=f0(G.tools),X[45]=G.tools,X[46]=h;else h=X[46];if(X[47]!==h)S=F(U,{children:[u,": ",h]}),X[47]=h,X[48]=S;else S=X[48];let q0;if(X[49]===Symbol.for("react.memo_cache_sentinel"))q0=Q(U,{bold:!0,children:"Model"}),X[49]=q0;else q0=X[49];let J0;if(X[50]!==G.model)J0=OX(G.model),X[50]=G.model,X[51]=J0;else J0=X[51];if(X[52]!==J0)w=F(U,{children:[q0,": ",J0]}),X[52]=J0,X[53]=w;else w=X[53];if(y=H0,X[54]===Symbol.for("react.memo_cache_sentinel"))z=Q(f,{marginTop:1,children:F(U,{children:[Q(U,{bold:!0,children:"Description"})," (tells Claude when to use this agent):"]})}),X[54]=z;else z=X[54];if(X[55]!==V0)D=Q(f,{marginLeft:2,marginTop:1,children:Q(U,{children:V0})}),X[55]=V0,X[56]=D;else D=X[56];if(X[57]===Symbol.for("react.memo_cache_sentinel"))M=Q(f,{marginTop:1,children:F(U,{children:[Q(U,{bold:!0,children:"System prompt"}),":"]})}),X[57]=M;else M=X[57];if(X[58]!==s)B=Q(f,{marginLeft:2,marginTop:1,children:Q(U,{children:s})}),X[58]=s,X[59]=B;else B=X[59];v=_.warnings.length>0&&F(f,{marginTop:1,flexDirection:"column",children:[Q(U,{color:"warning",children:"Warnings:"}),_.warnings.map(vq)]}),T=_.errors.length>0&&F(f,{marginTop:1,flexDirection:"column",children:[Q(U,{color:"error",children:"Errors:"}),_.errors.map(bq)]}),X[4]=G,X[5]=Y,X[6]=K,X[7]=q,X[8]=H.location,X[9]=N,X[10]=k,X[11]=w,X[12]=y,X[13]=z,X[14]=D,X[15]=M,X[16]=B,X[17]=v,X[18]=T,X[19]=P,X[20]=g,X[21]=A,X[22]=d,X[23]=i,X[24]=r,X[25]=x,X[26]=E,X[27]=S}else N=X[9],k=X[10],w=X[11],y=X[12],z=X[13],D=X[14],M=X[15],B=X[16],v=X[17],T=X[18],P=X[19],g=X[20],A=X[21],d=X[22],i=X[23],r=X[24],x=X[25],E=X[26],S=X[27];let I;if(X[60]!==R)I=R&&Q(f,{marginTop:1,children:Q(U,{color:"error",children:R})}),X[60]=R,X[61]=I;else I=X[61];let b;if(X[62]===Symbol.for("react.memo_cache_sentinel"))b=Q(U,{bold:!0,children:"s"}),X[62]=b;else b=X[62];let c;if(X[63]===Symbol.for("react.memo_cache_sentinel"))c=Q(U,{bold:!0,children:"Enter"}),X[63]=c;else c=X[63];let j;if(X[64]===Symbol.for("react.memo_cache_sentinel"))j=Q(f,{marginTop:2,children:F(U,{color:"success",children:["Press ",b," or ",c," to save,"," ",Q(U,{bold:!0,children:"e"})," to save and edit"]})}),X[64]=j;else j=X[64];let C;if(X[65]!==N||X[66]!==w||X[67]!==y||X[68]!==z||X[69]!==D||X[70]!==M||X[71]!==B||X[72]!==v||X[73]!==T||X[74]!==I||X[75]!==A||X[76]!==d||X[77]!==i||X[78]!==r||X[79]!==x||X[80]!==E||X[81]!==S)C=F(N,{flexDirection:A,tabIndex:d,autoFocus:i,onKeyDown:r,children:[x,E,S,w,y,z,D,M,B,v,T,I,j]}),X[65]=N,X[66]=w,X[67]=y,X[68]=z,X[69]=D,X[70]=M,X[71]=B,X[72]=v,X[73]=T,X[74]=I,X[75]=A,X[76]=d,X[77]=i,X[78]=r,X[79]=x,X[80]=E,X[81]=S,X[82]=C;else C=X[82];let m;if(X[83]!==k||X[84]!==P||X[85]!==g||X[86]!==C)m=Q(k,{subtitle:P,footerText:g,children:C}),X[83]=k,X[84]=P,X[85]=g,X[86]=C,X[87]=m;else m=X[87];return m}function bq(J,X){return F(U,{color:"error",children:[" ","• ",J]},X)}function vq(J,X){return F(U,{dimColor:!0,children:[" ","• ",J]},X)}function Dq(J){if(J===void 0)return"All tools";if(J.length===0)return"None";if(J.length===1)return J[0]||"None";if(J.length===2)return J.join(" and ");return`${J.slice(0,-1).join(", ")}, and ${J[J.length-1]}`}var EQ;var zQ=$(()=>{R0();b0();BX();hX();PQ();pX();N0();z0();w0();O0();P0();x0();XJ();p();EQ=o(L0(),1)});import{dirname as Cq}from"path";function IQ({tools:J,existingAgents:X,onComplete:q}){let{wizardData:Y}=e(),[V,Z]=s0.useState(null),R=o0(),L=s0.useCallback(async(O)=>{if(!Y?.finalAgent)return;try{if(await WJ(Y.location,Y.finalAgent.agentType,Y.finalAgent.whenToUse,Y.finalAgent.tools,Y.finalAgent.getSystemPrompt(),!0,Y.finalAgent.color,Y.finalAgent.memory),Y.finalAgent.model){let G=KX({source:Y.location,agentType:Y.finalAgent.agentType}),N=Cq(G);await $0(N,Y.finalAgent.agentType,Y.finalAgent.model)}if(R((G)=>{if(!Y.finalAgent)return G;let N=G.agentDefinitions.allAgents.concat(Y.finalAgent);return{...G,agentDefinitions:{...G.agentDefinitions,activeAgents:n0(N),allAgents:N}}}),O){let G=KX({source:Y.location,agentType:Y.finalAgent.agentType});await zX(G)}IX("tengu_agent_created",{agent_type:Y.finalAgent.agentType,generation_method:Y.wasGenerated?"generated":"manual",source:Y.location,tool_count:Y.finalAgent.tools?.length??"all",has_custom_model:!!Y.finalAgent.model,has_custom_color:!!Y.finalAgent.color,has_memory:!!Y.finalAgent.memory,memory_scope:Y.finalAgent.memory??"none",...O?{opened_in_editor:!0}:{}});let K=O?`Created agent: ${T0.bold(Y.finalAgent.agentType)} and opened in editor. If you made edits, restart to load the latest version.`:`Created agent: ${T0.bold(Y.finalAgent.agentType)}`;q(K)}catch(K){Z(K instanceof Error?K.message:"Failed to save agent")}},[Y,q,R]),H=s0.useCallback(()=>L(!1),[L]),W=s0.useCallback(()=>L(!0),[L]);return Q(NQ,{tools:J,existingAgents:X,onSave:H,onSaveAndEdit:W,error:V})}var s0;var bQ=$(()=>{gX();BQ();NX();QX();dX();VX();O0();x0();zQ();p();s0=o(k0(),1)});function DQ(){let J=vQ.c(18),{goNext:X,goBack:q,updateWizardData:Y,wizardData:V}=e(),[Z,R]=bX.useState(V.whenToUse||""),[L,H]=bX.useState(Z.length),[W,O]=bX.useState(null),K;if(J[0]===Symbol.for("react.memo_cache_sentinel"))K={context:"Settings"},J[0]=K;else K=J[0];t("confirm:no",q,K);let G;if(J[1]!==Z)G=async()=>{let T=await a0(Z);if(T.content!==null)R(T.content),H(T.content.length)},J[1]=Z,J[2]=G;else G=J[2];let N=G,k;if(J[3]===Symbol.for("react.memo_cache_sentinel"))k={context:"Chat"},J[3]=k;else k=J[3];t("chat:externalEditor",N,k);let w;if(J[4]!==X||J[5]!==Y)w=(T)=>{let P=T.trim();if(!P){O("Description is required");return}O(null),Y({whenToUse:P}),X()},J[4]=X,J[5]=Y,J[6]=w;else w=J[6];let y=w,z;if(J[7]===Symbol.for("react.memo_cache_sentinel"))z=F(Q0,{children:[Q(n,{shortcut:"Type",action:"enter text"}),Q(n,{shortcut:"Enter",action:"continue"}),Q(a,{action:"chat:externalEditor",context:"Chat",fallback:"ctrl+g",description:"open in editor"}),Q(a,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"go back"})]}),J[7]=z;else z=J[7];let D;if(J[8]===Symbol.for("react.memo_cache_sentinel"))D=Q(U,{children:"When should Claude use this agent?"}),J[8]=D;else D=J[8];let M;if(J[9]!==L||J[10]!==y||J[11]!==Z)M=Q(f,{marginTop:1,children:Q(j0,{value:Z,onChange:R,onSubmit:y,placeholder:"e.g., use this agent after you're done writing code...",columns:80,cursorOffset:L,onChangeCursorOffset:H,focus:!0,showCursor:!0})}),J[9]=L,J[10]=y,J[11]=Z,J[12]=M;else M=J[12];let B;if(J[13]!==W)B=W&&Q(f,{marginTop:1,children:Q(U,{color:"error",children:W})}),J[13]=W,J[14]=B;else B=J[14];let v;if(J[15]!==M||J[16]!==B)v=Q(Z0,{subtitle:"Description (tell Claude when to use this agent)",footerText:z,children:F(f,{flexDirection:"column",children:[D,M,B]})}),J[15]=M,J[16]=B,J[17]=v;else v=J[17];return v}var vQ,bX;var CQ=$(()=>{R0();b0();VX();N0();z0();w0();vX();O0();P0();p();vQ=o(L0(),1),bX=o(k0(),1)});async function pQ(J,X,q,Y){let V=q.length>0?`
|
|
12
|
+
|
|
13
|
+
IMPORTANT: The following identifiers already exist and must NOT be used: ${q.join(", ")}`:"",Z=`Create an agent configuration based on this request: "${J}".${V}
|
|
14
|
+
Return ONLY the JSON object, no other text.`,R=SQ({content:Z}),L=await mQ(),H=hQ([R],L),W=S0()?wQ+pq:wQ,G=(await _Q({messages:jQ(H),systemPrompt:AQ([W]),thinkingConfig:{type:"disabled"},tools:[],signal:Y,options:{getToolPermissionContext:async()=>yQ(),model:X,toolChoice:void 0,agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,querySource:"agent_creation",mcpTools:[]}})).message.content.filter((k)=>k.type==="text").map((k)=>k.text).join(`
|
|
15
|
+
`),N;try{N=QJ(G.trim())}catch{let k=G.match(/\{[\s\S]*\}/);if(!k)throw Error("No JSON object found in response");N=QJ(k[0])}if(!N.identifier||!N.whenToUse||!N.systemPrompt)throw Error("Invalid agent configuration generated");return IX("tengu_agent_definition_generated",{agent_identifier:N.identifier}),{identifier:N.identifier,whenToUse:N.whenToUse,systemPrompt:N.systemPrompt}}var wQ,pq=`
|
|
16
|
+
|
|
17
|
+
7. **Agent Memory Instructions**: If the user mentions "memory", "remember", "learn", "persist", or similar concepts, OR if the agent would benefit from building up knowledge across conversations (e.g., code reviewers learning patterns, architects learning codebase structure, etc.), include domain-specific memory update instructions in the systemPrompt.
|
|
18
|
+
|
|
19
|
+
Add a section like this to the systemPrompt, tailored to the agent's specific domain:
|
|
20
|
+
|
|
21
|
+
"**Update your agent memory** as you discover [domain-specific items]. This builds up institutional knowledge across conversations. Write concise notes about what you found and where.
|
|
22
|
+
|
|
23
|
+
Examples of what to record:
|
|
24
|
+
- [domain-specific item 1]
|
|
25
|
+
- [domain-specific item 2]
|
|
26
|
+
- [domain-specific item 3]"
|
|
27
|
+
|
|
28
|
+
Examples of domain-specific memory instructions:
|
|
29
|
+
- For a code-reviewer: "Update your agent memory as you discover code patterns, style conventions, common issues, and architectural decisions in this codebase."
|
|
30
|
+
- For a test-runner: "Update your agent memory as you discover test patterns, common failure modes, flaky tests, and testing best practices."
|
|
31
|
+
- For an architect: "Update your agent memory as you discover codepaths, library locations, key architectural decisions, and component relationships."
|
|
32
|
+
- For a documentation writer: "Update your agent memory as you discover documentation patterns, API structures, and terminology conventions."
|
|
33
|
+
|
|
34
|
+
The memory instructions should be specific to what the agent would naturally learn while performing its core tasks.
|
|
35
|
+
`;var TQ=$(()=>{Sq();_q();yq();hJ();hq();Tq();BX();BQ();wq();Aq();wQ=`You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.
|
|
36
|
+
|
|
37
|
+
**Important Context**: You may have access to project-specific instructions from CLAUDE.md files and other context that may include coding standards, project structure, and custom requirements. Consider this context when creating agents to ensure they align with the project's established patterns and practices.
|
|
38
|
+
|
|
39
|
+
When a user describes what they want an agent to do, you will:
|
|
40
|
+
|
|
41
|
+
1. **Extract Core Intent**: Identify the fundamental purpose, key responsibilities, and success criteria for the agent. Look for both explicit requirements and implicit needs. Consider any project-specific context from CLAUDE.md files. For agents that are meant to review code, you should assume that the user is asking to review recently written code and not the whole codebase, unless the user has explicitly instructed you otherwise.
|
|
42
|
+
|
|
43
|
+
2. **Design Expert Persona**: Create a compelling expert identity that embodies deep domain knowledge relevant to the task. The persona should inspire confidence and guide the agent's decision-making approach.
|
|
44
|
+
|
|
45
|
+
3. **Architect Comprehensive Instructions**: Develop a system prompt that:
|
|
46
|
+
- Establishes clear behavioral boundaries and operational parameters
|
|
47
|
+
- Provides specific methodologies and best practices for task execution
|
|
48
|
+
- Anticipates edge cases and provides guidance for handling them
|
|
49
|
+
- Incorporates any specific requirements or preferences mentioned by the user
|
|
50
|
+
- Defines output format expectations when relevant
|
|
51
|
+
- Aligns with project-specific coding standards and patterns from CLAUDE.md
|
|
52
|
+
|
|
53
|
+
4. **Optimize for Performance**: Include:
|
|
54
|
+
- Decision-making frameworks appropriate to the domain
|
|
55
|
+
- Quality control mechanisms and self-verification steps
|
|
56
|
+
- Efficient workflow patterns
|
|
57
|
+
- Clear escalation or fallback strategies
|
|
58
|
+
|
|
59
|
+
5. **Create Identifier**: Design a concise, descriptive identifier that:
|
|
60
|
+
- Uses lowercase letters, numbers, and hyphens only
|
|
61
|
+
- Is typically 2-4 words joined by hyphens
|
|
62
|
+
- Clearly indicates the agent's primary function
|
|
63
|
+
- Is memorable and easy to type
|
|
64
|
+
- Avoids generic terms like "helper" or "assistant"
|
|
65
|
+
|
|
66
|
+
6 **Example agent descriptions**:
|
|
67
|
+
- in the 'whenToUse' field of the JSON object, you should include examples of when this agent should be used.
|
|
68
|
+
- examples should be of the form:
|
|
69
|
+
- <example>
|
|
70
|
+
Context: The user is creating a test-runner agent that should be called after a logical chunk of code is written.
|
|
71
|
+
user: "Please write a function that checks if a number is prime"
|
|
72
|
+
assistant: "Here is the relevant function: "
|
|
73
|
+
<function call omitted for brevity only for this example>
|
|
74
|
+
<commentary>
|
|
75
|
+
Since a significant piece of code was written, use the ${YX} tool to launch the test-runner agent to run the tests.
|
|
76
|
+
</commentary>
|
|
77
|
+
assistant: "Now let me use the test-runner agent to run the tests"
|
|
78
|
+
</example>
|
|
79
|
+
- <example>
|
|
80
|
+
Context: User is creating an agent for Claude Code product questions.
|
|
81
|
+
user: "How do I configure Claude Code hooks?"
|
|
82
|
+
assistant: "I'm going to use the ${YX} tool to launch the claudin-guide agent to answer the question"
|
|
83
|
+
<commentary>
|
|
84
|
+
Since the user is asking how to use Claude Code, use the claudin-guide agent.
|
|
85
|
+
</commentary>
|
|
86
|
+
</example>
|
|
87
|
+
- If the user mentioned or implied that the agent should be used proactively, you should include examples of this.
|
|
88
|
+
- NOTE: Ensure that in the examples, you are making the assistant use the Agent tool and not simply respond directly to the task.
|
|
89
|
+
|
|
90
|
+
Your output must be a valid JSON object with exactly these fields:
|
|
91
|
+
{
|
|
92
|
+
"identifier": "A unique, descriptive identifier using lowercase letters, numbers, and hyphens (e.g., 'test-runner', 'api-docs-writer', 'code-formatter')",
|
|
93
|
+
"whenToUse": "A precise, actionable description starting with 'Use this agent when...' that clearly defines the triggering conditions and use cases. Ensure you include examples as described above.",
|
|
94
|
+
"systemPrompt": "The complete system prompt that will govern the agent's behavior, written in second person ('You are...', 'You will...') and structured for maximum clarity and effectiveness"
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
Key principles for your system prompts:
|
|
98
|
+
- Be specific rather than generic - avoid vague instructions
|
|
99
|
+
- Include concrete examples when they would clarify behavior
|
|
100
|
+
- Balance comprehensiveness with clarity - every instruction should add value
|
|
101
|
+
- Ensure the agent has enough context to handle variations of the core task
|
|
102
|
+
- Make the agent proactive in seeking clarification when needed
|
|
103
|
+
- Build in quality assurance and self-correction mechanisms
|
|
104
|
+
|
|
105
|
+
Remember: The agents you create should be autonomous experts capable of handling their designated tasks with minimal additional guidance. Your system prompts are their complete operational manual.
|
|
106
|
+
`});function dQ(){let{updateWizardData:J,goBack:X,goToStep:q,wizardData:Y}=e(),[V,Z]=y0.useState(Y.generationPrompt||""),[R,L]=y0.useState(!1),[H,W]=y0.useState(null),[O,K]=y0.useState(V.length),G=gQ(),N=y0.useRef(null),k=y0.useCallback(()=>{if(N.current)N.current.abort(),N.current=null,L(!1),W("Generation cancelled")},[]);t("confirm:no",k,{context:"Settings",isActive:R});let w=y0.useCallback(async()=>{let M=await a0(V);if(M.content!==null)Z(M.content),K(M.content.length)},[V]);t("chat:externalEditor",w,{context:"Chat",isActive:!R});let y=y0.useCallback(()=>{J({generationPrompt:"",agentType:"",systemPrompt:"",whenToUse:"",generatedAgent:void 0,wasGenerated:!1}),Z(""),W(null),X()},[J,X]);t("confirm:no",y,{context:"Settings",isActive:!R});let z=async()=>{let M=V.trim();if(!M){W("Please describe what the agent should do");return}W(null),L(!0),J({generationPrompt:M,isGenerating:!0});let B=cQ();N.current=B;try{let v=await pQ(M,G,[],B.signal);J({agentType:v.identifier,whenToUse:v.whenToUse,systemPrompt:v.systemPrompt,generatedAgent:v,isGenerating:!1,wasGenerated:!0}),q(6)}catch(v){if(v instanceof uQ);else if(v instanceof Error&&!v.message.includes("No assistant message found"))W(v.message||"Failed to generate agent");J({isGenerating:!1})}finally{L(!1),N.current=null}},D="Describe what this agent should do and when it should be used (be comprehensive for best results)";if(R)return Q(Z0,{subtitle:D,footerText:Q(a,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"}),children:F(f,{flexDirection:"row",alignItems:"center",children:[Q(xQ,{}),Q(U,{color:"suggestion",children:" Generating agent from description..."})]})});return Q(Z0,{subtitle:D,footerText:F(Q0,{children:[Q(a,{action:"confirm:yes",context:"Confirmation",fallback:"Enter",description:"submit"}),Q(a,{action:"chat:externalEditor",context:"Chat",fallback:"ctrl+g",description:"open in editor"}),Q(a,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"go back"})]}),children:F(f,{flexDirection:"column",children:[H&&Q(f,{marginBottom:1,children:Q(U,{color:"error",children:H})}),Q(j0,{value:V,onChange:Z,onSubmit:z,placeholder:"e.g., Help me write unit tests for my code...",columns:80,cursorOffset:O,onChangeCursorOffset:K,focus:!0,showCursor:!0})]})})}var y0;var iQ=$(()=>{jq();cq();R0();b0();mq();VX();N0();z0();uq();vX();O0();P0();TQ();p();y0=o(k0(),1)});function rQ(){let J=lQ.c(11),{goNext:X,updateWizardData:q,cancel:Y}=e(),V;if(J[0]===Symbol.for("react.memo_cache_sentinel"))V={label:"Project (.claudin/agents/)",value:"projectSettings"},J[0]=V;else V=J[0];let Z;if(J[1]===Symbol.for("react.memo_cache_sentinel"))Z=[V,{label:"Personal (~/.claudin/agents/)",value:"userSettings"}],J[1]=Z;else Z=J[1];let R=Z,L;if(J[2]===Symbol.for("react.memo_cache_sentinel"))L=F(Q0,{children:[Q(n,{shortcut:"↑↓",action:"navigate"}),Q(n,{shortcut:"Enter",action:"select"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]}),J[2]=L;else L=J[2];let H;if(J[3]!==X||J[4]!==q)H=(K)=>{q({location:K}),X()},J[3]=X,J[4]=q,J[5]=H;else H=J[5];let W;if(J[6]!==Y)W=()=>Y(),J[6]=Y,J[7]=W;else W=J[7];let O;if(J[8]!==H||J[9]!==W)O=Q(Z0,{subtitle:"Choose location",footerText:L,children:Q(f,{children:Q(v0,{options:R,onChange:H,onCancel:W},"location-select")})}),J[8]=H,J[9]=W,J[10]=O;else O=J[10];return O}var lQ;var $Q=$(()=>{R0();N0();qX();z0();w0();O0();P0();p();lQ=o(L0(),1)});function sQ(){let J=oQ.c(13),{goNext:X,goBack:q,updateWizardData:Y,wizardData:V}=e(),Z;if(J[0]===Symbol.for("react.memo_cache_sentinel"))Z={context:"Confirmation"},J[0]=Z;else Z=J[0];t("confirm:no",q,Z);let R=V.location==="userSettings",L;if(J[1]!==R)L=R?[{label:"User scope (~/.claudin/agent-memory/) (Recommended)",value:"user"},{label:"None (no persistent memory)",value:"none"},{label:"Project scope (.claudin/agent-memory/)",value:"project"},{label:"Local scope (.claudin/agent-memory-local/)",value:"local"}]:[{label:"Project scope (.claudin/agent-memory/) (Recommended)",value:"project"},{label:"None (no persistent memory)",value:"none"},{label:"User scope (~/.claudin/agent-memory/)",value:"user"},{label:"Local scope (.claudin/agent-memory-local/)",value:"local"}],J[1]=R,J[2]=L;else L=J[2];let H=L,W;if(J[3]!==X||J[4]!==Y||J[5]!==V.finalAgent||J[6]!==V.systemPrompt)W=(N)=>{let k=N==="none"?void 0:N,w=V.finalAgent?.agentType;Y({selectedMemory:k,finalAgent:V.finalAgent?{...V.finalAgent,memory:k,getSystemPrompt:S0()&&k&&w?()=>V.systemPrompt+`
|
|
107
|
+
|
|
108
|
+
`+nQ(w,k):()=>V.systemPrompt}:void 0}),X()},J[3]=X,J[4]=Y,J[5]=V.finalAgent,J[6]=V.systemPrompt,J[7]=W;else W=J[7];let O=W,K;if(J[8]===Symbol.for("react.memo_cache_sentinel"))K=F(Q0,{children:[Q(n,{shortcut:"↑↓",action:"navigate"}),Q(n,{shortcut:"Enter",action:"select"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),J[8]=K;else K=J[8];let G;if(J[9]!==q||J[10]!==O||J[11]!==H)G=Q(Z0,{subtitle:"Configure agent memory",footerText:K,children:Q(f,{children:Q(v0,{options:H,onChange:O,onCancel:q},"memory-select")})}),J[9]=q,J[10]=O,J[11]=H,J[12]=G;else G=J[12];return G}var oQ;var aQ=$(()=>{R0();b0();BX();hX();N0();qX();z0();w0();O0();P0();p();oQ=o(L0(),1)});function tQ(){let J=eQ.c(11),{goNext:X,goBack:q,updateWizardData:Y,goToStep:V}=e(),Z;if(J[0]===Symbol.for("react.memo_cache_sentinel"))Z=[{label:"Generate with Claude (recommended)",value:"generate"},{label:"Manual configuration",value:"manual"}],J[0]=Z;else Z=J[0];let R=Z,L;if(J[1]===Symbol.for("react.memo_cache_sentinel"))L=F(Q0,{children:[Q(n,{shortcut:"↑↓",action:"navigate"}),Q(n,{shortcut:"Enter",action:"select"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),J[1]=L;else L=J[1];let H;if(J[2]!==X||J[3]!==V||J[4]!==Y)H=(K)=>{let G=K;if(Y({method:G,wasGenerated:G==="generate"}),G==="generate")X();else V(3)},J[2]=X,J[3]=V,J[4]=Y,J[5]=H;else H=J[5];let W;if(J[6]!==q)W=()=>q(),J[6]=q,J[7]=W;else W=J[7];let O;if(J[8]!==H||J[9]!==W)O=Q(Z0,{subtitle:"Creation method",footerText:L,children:Q(f,{children:Q(v0,{options:R,onChange:H,onCancel:W},"method-select")})}),J[8]=H,J[9]=W,J[10]=O;else O=J[10];return O}var eQ;var XZ=$(()=>{R0();N0();qX();z0();w0();O0();P0();p();eQ=o(L0(),1)});function QZ(){let J=JZ.c(8),{goNext:X,goBack:q,updateWizardData:Y,wizardData:V}=e(),Z;if(J[0]!==X||J[1]!==Y)Z=(W)=>{Y({selectedModel:W}),X()},J[0]=X,J[1]=Y,J[2]=Z;else Z=J[2];let R=Z,L;if(J[3]===Symbol.for("react.memo_cache_sentinel"))L=F(Q0,{children:[Q(n,{shortcut:"↑↓",action:"navigate"}),Q(n,{shortcut:"Enter",action:"select"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),J[3]=L;else L=J[3];let H;if(J[4]!==q||J[5]!==R||J[6]!==V.selectedModel)H=Q(Z0,{subtitle:"Select model",footerText:L,children:Q(d0,{initialModel:V.selectedModel,onComplete:R,onCancel:q})}),J[4]=q,J[5]=R,J[6]=V.selectedModel,J[7]=H;else H=J[7];return H}var JZ;var ZZ=$(()=>{N0();z0();w0();O0();P0();kX();p();JZ=o(L0(),1)});function YZ(){let J=qZ.c(20),{goNext:X,goBack:q,updateWizardData:Y,wizardData:V}=e(),[Z,R]=DX.useState(V.systemPrompt||""),[L,H]=DX.useState(Z.length),[W,O]=DX.useState(null),K;if(J[0]===Symbol.for("react.memo_cache_sentinel"))K={context:"Settings"},J[0]=K;else K=J[0];t("confirm:no",q,K);let G;if(J[1]!==Z)G=async()=>{let P=await a0(Z);if(P.content!==null)R(P.content),H(P.content.length)},J[1]=Z,J[2]=G;else G=J[2];let N=G,k;if(J[3]===Symbol.for("react.memo_cache_sentinel"))k={context:"Chat"},J[3]=k;else k=J[3];t("chat:externalEditor",N,k);let w;if(J[4]!==X||J[5]!==Z||J[6]!==Y)w=()=>{let P=Z.trim();if(!P){O("System prompt is required");return}O(null),Y({systemPrompt:P}),X()},J[4]=X,J[5]=Z,J[6]=Y,J[7]=w;else w=J[7];let y=w,z;if(J[8]===Symbol.for("react.memo_cache_sentinel"))z=F(Q0,{children:[Q(n,{shortcut:"Type",action:"enter text"}),Q(n,{shortcut:"Enter",action:"continue"}),Q(a,{action:"chat:externalEditor",context:"Chat",fallback:"ctrl+g",description:"open in editor"}),Q(a,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"go back"})]}),J[8]=z;else z=J[8];let D,M;if(J[9]===Symbol.for("react.memo_cache_sentinel"))D=Q(U,{children:"Enter the system prompt for your agent:"}),M=Q(U,{dimColor:!0,children:"Be comprehensive for best results"}),J[9]=D,J[10]=M;else D=J[9],M=J[10];let B;if(J[11]!==L||J[12]!==y||J[13]!==Z)B=Q(f,{marginTop:1,children:Q(j0,{value:Z,onChange:R,onSubmit:y,placeholder:"You are a helpful code reviewer who...",columns:80,cursorOffset:L,onChangeCursorOffset:H,focus:!0,showCursor:!0})}),J[11]=L,J[12]=y,J[13]=Z,J[14]=B;else B=J[14];let v;if(J[15]!==W)v=W&&Q(f,{marginTop:1,children:Q(U,{color:"error",children:W})}),J[15]=W,J[16]=v;else v=J[16];let T;if(J[17]!==B||J[18]!==v)T=Q(Z0,{subtitle:"System prompt",footerText:z,children:F(f,{flexDirection:"column",children:[D,M,B,v]})}),J[17]=B,J[18]=v,J[19]=T;else T=J[19];return T}var qZ,DX;var VZ=$(()=>{R0();b0();VX();N0();z0();w0();vX();O0();P0();p();qZ=o(L0(),1),DX=o(k0(),1)});function GZ(J){let X=RZ.c(9),{tools:q}=J,{goNext:Y,goBack:V,updateWizardData:Z,wizardData:R}=e(),L;if(X[0]!==Y||X[1]!==Z)L=(G)=>{Z({selectedTools:G}),Y()},X[0]=Y,X[1]=Z,X[2]=L;else L=X[2];let H=L,W=R.selectedTools,O;if(X[3]===Symbol.for("react.memo_cache_sentinel"))O=F(Q0,{children:[Q(n,{shortcut:"Enter",action:"toggle selection"}),Q(n,{shortcut:"↑↓",action:"navigate"}),Q(a,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),X[3]=O;else O=X[3];let K;if(X[4]!==V||X[5]!==H||X[6]!==W||X[7]!==q)K=Q(Z0,{subtitle:"Select tools",footerText:O,children:Q(PX,{tools:q,initialTools:W,onComplete:H,onCancel:V})}),X[4]=V,X[5]=H,X[6]=W,X[7]=q,X[8]=K;else K=X[8];return K}var RZ;var LZ=$(()=>{N0();z0();w0();O0();P0();xX();p();RZ=o(L0(),1)});function FZ(J){let X=UZ.c(15),{goNext:q,goBack:Y,updateWizardData:V,wizardData:Z}=e(),[R,L]=CX.useState(Z.agentType||""),[H,W]=CX.useState(null),[O,K]=CX.useState(R.length),G;if(X[0]===Symbol.for("react.memo_cache_sentinel"))G={context:"Settings"},X[0]=G;else G=X[0];t("confirm:no",Y,G);let N;if(X[1]!==q||X[2]!==V)N=(B)=>{let v=B.trim(),T=tX(v);if(T){W(T);return}W(null),V({agentType:v}),q()},X[1]=q,X[2]=V,X[3]=N;else N=X[3];let k=N,w;if(X[4]===Symbol.for("react.memo_cache_sentinel"))w=F(Q0,{children:[Q(n,{shortcut:"Type",action:"enter text"}),Q(n,{shortcut:"Enter",action:"continue"}),Q(a,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"go back"})]}),X[4]=w;else w=X[4];let y;if(X[5]===Symbol.for("react.memo_cache_sentinel"))y=Q(U,{children:"Enter a unique identifier for your agent:"}),X[5]=y;else y=X[5];let z;if(X[6]!==R||X[7]!==O||X[8]!==k)z=Q(f,{marginTop:1,children:Q(j0,{value:R,onChange:L,onSubmit:k,placeholder:"e.g., test-runner, tech-lead, etc",columns:60,cursorOffset:O,onChangeCursorOffset:K,focus:!0,showCursor:!0})}),X[6]=R,X[7]=O,X[8]=k,X[9]=z;else z=X[9];let D;if(X[10]!==H)D=H&&Q(f,{marginTop:1,children:Q(U,{color:"error",children:H})}),X[10]=H,X[11]=D;else D=X[11];let M;if(X[12]!==z||X[13]!==D)M=Q(Z0,{subtitle:"Agent type (identifier)",footerText:w,children:F(f,{flexDirection:"column",children:[y,z,D]})}),X[12]=z,X[13]=D,X[14]=M;else M=X[14];return M}var UZ,CX;var KZ=$(()=>{R0();b0();N0();z0();w0();vX();O0();P0();XJ();p();UZ=o(L0(),1),CX=o(k0(),1)});function WZ(J){let X=HZ.c(17),{tools:q,existingAgents:Y,onComplete:V,onCancel:Z}=J,R;if(X[0]!==Y)R=()=>Q(FZ,{existingAgents:Y}),X[0]=Y,X[1]=R;else R=X[1];let L;if(X[2]!==q)L=()=>Q(GZ,{tools:q}),X[2]=q,X[3]=L;else L=X[3];let H;if(X[4]===Symbol.for("react.memo_cache_sentinel"))H=S0()?[sQ]:[],X[4]=H;else H=X[4];let W;if(X[5]!==Y||X[6]!==V||X[7]!==q)W=()=>Q(IQ,{tools:q,existingAgents:Y,onComplete:V}),X[5]=Y,X[6]=V,X[7]=q,X[8]=W;else W=X[8];let O;if(X[9]!==R||X[10]!==L||X[11]!==W)O=[rQ,tQ,dQ,R,YZ,DQ,L,QZ,fQ,...H,W],X[9]=R,X[10]=L,X[11]=W,X[12]=O;else O=X[12];let K=O,G;if(X[13]===Symbol.for("react.memo_cache_sentinel"))G={},X[13]=G;else G=X[13];let N;if(X[14]!==Z||X[15]!==K)N=Q(nX,{steps:K,initialData:G,onComplete:xq,onCancel:Z,title:"Create new agent",showStepCounter:!1}),X[14]=Z,X[15]=K,X[16]=N;else N=X[16];return N}function xq(){}var HZ;var OZ=$(()=>{BX();O0();MQ();bQ();CQ();iQ();$Q();aQ();XZ();ZZ();VZ();LZ();KZ();p();HZ=o(L0(),1)});function IZ(J){let X=BZ.c(157),{tools:q,onExit:Y}=J,V;if(X[0]===Symbol.for("react.memo_cache_sentinel"))V={mode:"list-agents",source:"all"},X[0]=V;else V=X[0];let[Z,R]=ZJ.useState(V),L=e0(JY),H=e0(XY),W=e0(tq),O=o0(),{allAgents:K,activeAgents:G}=L,N;if(X[1]===Symbol.for("react.memo_cache_sentinel"))N=[],X[1]=N;else N=X[1];let[k,w]=ZJ.useState(N),y=NZ(q,H,W);h0();let z;if(X[2]!==K)z=K.filter(eq),X[2]=K,X[3]=z;else z=X[3];let D;if(X[4]!==K)D=K.filter(aq),X[4]=K,X[5]=D;else D=X[5];let M;if(X[6]!==K)M=K.filter(sq),X[6]=K,X[7]=M;else M=X[7];let B;if(X[8]!==K)B=K.filter(oq),X[8]=K,X[9]=B;else B=X[9];let v;if(X[10]!==K)v=K.filter(nq),X[10]=K,X[11]=v;else v=X[11];let T;if(X[12]!==K)T=K.filter($q),X[12]=K,X[13]=T;else T=X[13];let P;if(X[14]!==K)P=K.filter(rq),X[14]=K,X[15]=P;else P=X[15];let g;if(X[16]!==K||X[17]!==z||X[18]!==D||X[19]!==M||X[20]!==B||X[21]!==v||X[22]!==T||X[23]!==P)g={"built-in":z,userSettings:D,projectSettings:M,policySettings:B,localSettings:v,flagSettings:T,plugin:P,all:K},X[16]=K,X[17]=z,X[18]=D,X[19]=M,X[20]=B,X[21]=v,X[22]=T,X[23]=P,X[24]=g;else g=X[24];let A=g,d;if(X[25]===Symbol.for("react.memo_cache_sentinel"))d=(E)=>{w((S)=>[...S,E]),R({mode:"list-agents",source:"all"})},X[25]=d;else d=X[25];let i=d,r;if(X[26]!==O)r=async(E)=>{try{await fJ(E),O((S)=>{let I=S.agentDefinitions.allAgents.filter((b)=>!(b.agentType===E.agentType&&b.source===E.source));return{...S,agentDefinitions:{...S.agentDefinitions,allAgents:I,activeAgents:n0(I)}}}),w((S)=>[...S,`Deleted agent: ${T0.bold(E.agentType)}`]),R({mode:"list-agents",source:"all"})}catch(S){wX(fZ(S))}},X[26]=O,X[27]=r;else r=X[27];let x=r;switch(Z.mode){case"list-agents":{let E;if(X[28]!==A||X[29]!==Z.source)E=Z.source==="all"?[...A["built-in"],...A.userSettings,...A.projectSettings,...A.localSettings,...A.policySettings,...A.flagSettings,...A.plugin]:A[Z.source],X[28]=A,X[29]=Z.source,X[30]=E;else E=X[30];let S=E,I;if(X[31]!==G||X[32]!==S)I=zZ(S,G),X[31]=G,X[32]=S,X[33]=I;else I=X[33];let c=I,j;if(X[34]!==k||X[35]!==Y)j=()=>{let X0=k.length>0?`Agent changes:
|
|
109
|
+
${k.join(`
|
|
110
|
+
`)}`:void 0;Y(X0??"Agents dialog dismissed",{display:k.length===0?"system":void 0})},X[34]=k,X[35]=Y,X[36]=j;else j=X[36];let C;if(X[37]!==Z)C=(X0)=>R({mode:"agent-menu",agent:X0,previousMode:Z}),X[37]=Z,X[38]=C;else C=X[38];let m;if(X[39]===Symbol.for("react.memo_cache_sentinel"))m=()=>R({mode:"create-agent"}),X[39]=m;else m=X[39];let _;if(X[40]!==k||X[41]!==Z.source||X[42]!==c||X[43]!==j||X[44]!==C)_=Q(UQ,{source:Z.source,agents:c,onBack:j,onSelect:C,onCreateNew:m,changes:k}),X[40]=k,X[41]=Z.source,X[42]=c,X[43]=j,X[44]=C,X[45]=_;else _=X[45];let l;if(X[46]===Symbol.for("react.memo_cache_sentinel"))l=Q(c0,{}),X[46]=l;else l=X[46];let s;if(X[47]!==_)s=F(G0,{children:[_,l]}),X[47]=_,X[48]=s;else s=X[48];return s}case"create-agent":{let E;if(X[49]===Symbol.for("react.memo_cache_sentinel"))E=()=>R({mode:"list-agents",source:"all"}),X[49]=E;else E=X[49];let S;if(X[50]!==G||X[51]!==y)S=Q(WZ,{tools:y,existingAgents:G,onComplete:i,onCancel:E}),X[50]=G,X[51]=y,X[52]=S;else S=X[52];return S}case"agent-menu":{let E;if(X[53]!==K||X[54]!==Z.agent.agentType||X[55]!==Z.agent.source){let h;if(X[57]!==Z.agent.agentType||X[58]!==Z.agent.source)h=(q0)=>q0.agentType===Z.agent.agentType&&q0.source===Z.agent.source,X[57]=Z.agent.agentType,X[58]=Z.agent.source,X[59]=h;else h=X[59];E=K.find(h),X[53]=K,X[54]=Z.agent.agentType,X[55]=Z.agent.source,X[56]=E}else E=X[56];let I=E||Z.agent,b=I.source!=="built-in"&&I.source!=="plugin"&&I.source!=="flagSettings",c=I.source==="built-in",j;if(X[60]===Symbol.for("react.memo_cache_sentinel"))j={label:"View agent",value:"view"},X[60]=j;else j=X[60];let C;if(b)C=[{label:"Edit agent",value:"edit"},{label:"Change model",value:"change-model"},{label:"Delete agent",value:"delete"}];else if(c)C=[{label:"Change model",value:"change-model"}];else C=[];let m;if(X[63]===Symbol.for("react.memo_cache_sentinel"))m={label:"Back",value:"back"},X[63]=m;else m=X[63];let _;if(X[64]!==C)_=[j,...C,m],X[64]=C,X[65]=_;else _=X[65];let l=_,s;if(X[66]!==I||X[67]!==Z)s=(h)=>{X:switch(h){case"view":{R({mode:"view-agent",agent:I,previousMode:Z.previousMode});break X}case"edit":{R({mode:"edit-agent",agent:I,previousMode:Z});break X}case"delete":{R({mode:"delete-confirm",agent:I,previousMode:Z});break X}case"change-model":{R({mode:"edit-builtin-model",agent:I,previousMode:Z});break X}case"back":R(Z.previousMode)}},X[66]=I,X[67]=Z,X[68]=s;else s=X[68];let X0=s,V0;if(X[69]!==Z.previousMode)V0=()=>R(Z.previousMode),X[69]=Z.previousMode,X[70]=V0;else V0=X[70];let f0;if(X[71]!==Z.previousMode)f0=()=>R(Z.previousMode),X[71]=Z.previousMode,X[72]=f0;else f0=X[72];let U0;if(X[73]!==X0||X[74]!==l||X[75]!==f0)U0=Q(v0,{options:l,onChange:X0,onCancel:f0}),X[73]=X0,X[74]=l,X[75]=f0,X[76]=U0;else U0=X[76];let H0;if(X[77]!==k)H0=k.length>0&&Q(f,{marginTop:1,children:Q(U,{dimColor:!0,children:k[k.length-1]})}),X[77]=k,X[78]=H0;else H0=X[78];let W0;if(X[79]!==U0||X[80]!==H0)W0=F(f,{flexDirection:"column",children:[U0,H0]}),X[79]=U0,X[80]=H0,X[81]=W0;else W0=X[81];let F0;if(X[82]!==Z.agent.agentType||X[83]!==V0||X[84]!==W0)F0=Q(C0,{title:Z.agent.agentType,onCancel:V0,hideInputGuide:!0,children:W0}),X[82]=Z.agent.agentType,X[83]=V0,X[84]=W0,X[85]=F0;else F0=X[85];let K0;if(X[86]===Symbol.for("react.memo_cache_sentinel"))K0=Q(c0,{}),X[86]=K0;else K0=X[86];let u;if(X[87]!==F0)u=F(G0,{children:[F0,K0]}),X[87]=F0,X[88]=u;else u=X[88];return u}case"view-agent":{let E;if(X[89]!==K||X[90]!==Z.agent){let l;if(X[92]!==Z.agent)l=(s)=>s.agentType===Z.agent.agentType&&s.source===Z.agent.source,X[92]=Z.agent,X[93]=l;else l=X[93];E=K.find(l),X[89]=K,X[90]=Z.agent,X[91]=E}else E=X[91];let I=E||Z.agent,b;if(X[94]!==I||X[95]!==Z.previousMode)b=()=>R({mode:"agent-menu",agent:I,previousMode:Z.previousMode}),X[94]=I,X[95]=Z.previousMode,X[96]=b;else b=X[96];let c;if(X[97]!==I||X[98]!==Z.previousMode)c=()=>R({mode:"agent-menu",agent:I,previousMode:Z.previousMode}),X[97]=I,X[98]=Z.previousMode,X[99]=c;else c=X[99];let j;if(X[100]!==I||X[101]!==K||X[102]!==y||X[103]!==c)j=Q(NJ,{agent:I,tools:y,allAgents:K,onBack:c}),X[100]=I,X[101]=K,X[102]=y,X[103]=c,X[104]=j;else j=X[104];let C;if(X[105]!==I.agentType||X[106]!==b||X[107]!==j)C=Q(C0,{title:I.agentType,onCancel:b,hideInputGuide:!0,children:j}),X[105]=I.agentType,X[106]=b,X[107]=j,X[108]=C;else C=X[108];let m;if(X[109]===Symbol.for("react.memo_cache_sentinel"))m=Q(c0,{instructions:"Press Enter or Esc to go back"}),X[109]=m;else m=X[109];let _;if(X[110]!==C)_=F(G0,{children:[C,m]}),X[110]=C,X[111]=_;else _=X[111];return _}case"delete-confirm":{let E;if(X[112]===Symbol.for("react.memo_cache_sentinel"))E=[{label:"Yes, delete",value:"yes"},{label:"No, cancel",value:"no"}],X[112]=E;else E=X[112];let S=E,I;if(X[113]!==Z)I=()=>{if("previousMode"in Z)R(Z.previousMode)},X[113]=Z,X[114]=I;else I=X[114];let b;if(X[115]!==Z.agent.agentType)b=F(U,{children:["Are you sure you want to delete the agent"," ",Q(U,{bold:!0,children:Z.agent.agentType}),"?"]}),X[115]=Z.agent.agentType,X[116]=b;else b=X[116];let c;if(X[117]!==Z.agent.source)c=Q(f,{marginTop:1,children:F(U,{dimColor:!0,children:["Source: ",Z.agent.source]})}),X[117]=Z.agent.source,X[118]=c;else c=X[118];let j;if(X[119]!==x||X[120]!==Z)j=(X0)=>{if(X0==="yes")x(Z.agent);else if("previousMode"in Z)R(Z.previousMode)},X[119]=x,X[120]=Z,X[121]=j;else j=X[121];let C;if(X[122]!==Z)C=()=>{if("previousMode"in Z)R(Z.previousMode)},X[122]=Z,X[123]=C;else C=X[123];let m;if(X[124]!==j||X[125]!==C)m=Q(f,{marginTop:1,children:Q(v0,{options:S,onChange:j,onCancel:C})}),X[124]=j,X[125]=C,X[126]=m;else m=X[126];let _;if(X[127]!==I||X[128]!==b||X[129]!==c||X[130]!==m)_=F(C0,{title:"Delete agent",onCancel:I,color:"error",children:[b,c,m]}),X[127]=I,X[128]=b,X[129]=c,X[130]=m,X[131]=_;else _=X[131];let l;if(X[132]===Symbol.for("react.memo_cache_sentinel"))l=Q(c0,{instructions:"Press ↑↓ to navigate, Enter to select, Esc to cancel"}),X[132]=l;else l=X[132];let s;if(X[133]!==_)s=F(G0,{children:[_,l]}),X[133]=_,X[134]=s;else s=X[134];return s}case"edit-agent":{let E;if(X[135]!==K||X[136]!==Z.agent){let X0;if(X[138]!==Z.agent)X0=(V0)=>V0.agentType===Z.agent.agentType&&V0.source===Z.agent.source,X[138]=Z.agent,X[139]=X0;else X0=X[139];E=K.find(X0),X[135]=K,X[136]=Z.agent,X[137]=E}else E=X[137];let I=E||Z.agent,b=`Edit agent: ${I.agentType}`,c;if(X[140]!==Z.previousMode)c=()=>R(Z.previousMode),X[140]=Z.previousMode,X[141]=c;else c=X[141];let j,C;if(X[142]!==Z.previousMode)j=(X0)=>{i(X0),R(Z.previousMode)},C=()=>R(Z.previousMode),X[142]=Z.previousMode,X[143]=j,X[144]=C;else j=X[143],C=X[144];let m;if(X[145]!==I||X[146]!==y||X[147]!==j||X[148]!==C)m=Q(JQ,{agent:I,tools:y,onSaved:j,onBack:C}),X[145]=I,X[146]=y,X[147]=j,X[148]=C,X[149]=m;else m=X[149];let _;if(X[150]!==b||X[151]!==c||X[152]!==m)_=Q(C0,{title:b,onCancel:c,hideInputGuide:!0,children:m}),X[150]=b,X[151]=c,X[152]=m,X[153]=_;else _=X[153];let l;if(X[154]===Symbol.for("react.memo_cache_sentinel"))l=Q(c0,{}),X[154]=l;else l=X[154];let s;if(X[155]!==_)s=F(G0,{children:[_,l]}),X[155]=_,X[156]=s;else s=X[156];return s}case"edit-builtin-model":{let{agent:E,previousMode:S}=Z,I=async(c)=>{let j=c??"inherit";try{if(E.source==="built-in")MZ((m)=>({...m,agentModelOverrides:{...m.agentModelOverrides??{},[kZ(E.agentType)]:j}}));else if(E.baseDir)$0(E.baseDir,E.agentType,j);else{wX(Error(`Cannot save model override for ${E.agentType}: missing baseDir`)),R(S);return}EZ();let C=await PZ(JX());O((m)=>({...m,agentDefinitions:{...m.agentDefinitions,allAgents:C.allAgents,activeAgents:C.activeAgents}})),w((m)=>[...m,`Set model for ${T0.bold(E.agentType)} → ${j}`])}catch(C){wX(C)}R(S)},b=()=>R(S);return F(G0,{children:[Q(C0,{title:`Change model: ${E.agentType}`,onCancel:b,hideInputGuide:!0,children:Q(d0,{initialModel:E.model??"inherit",onComplete:I,onCancel:b})}),Q(c0,{})]})}default:return null}}function rq(J){return J.source==="plugin"}function $q(J){return J.source==="flagSettings"}function nq(J){return J.source==="localSettings"}function oq(J){return J.source==="policySettings"}function sq(J){return J.source==="projectSettings"}function aq(J){return J.source==="userSettings"}function eq(J){return J.source==="built-in"}function tq(J){return J.toolPermissionContext}function XY(J){return J.mcp.tools}function JY(J){return J.agentDefinitions}var BZ,ZJ;var bZ=$(()=>{gX();RX();lq();R0();NX();GQ();QX();iq();dX();gq();RJ();dq();qX();lX();zJ();QQ();qQ();FQ();kX();x0();GJ();OZ();p();BZ=o(L0(),1),ZJ=o(k0(),1)});function DZ(){let J=e0((q)=>q.tasks),X=Object.values(J).filter((q)=>q.type==="local_agent"&&q.agentType!=="main-session"&&(q.status==="running"||q.status==="pending"));return F(f,{flexDirection:"column",paddingTop:1,children:[Q(u0,{color:"permission"}),Q(f,{flexDirection:"column",paddingX:2,children:X.length===0?Q(f,{marginTop:1,children:Q(U,{dimColor:!0,children:"No subagents are currently running."})}):Q(f,{flexDirection:"column",marginTop:1,gap:1,children:X.map((q)=>{let Y=q.progress?.tokenCount??0,V=q.progress?.toolUseCount??0,Z=q.model??"inherit",R=q.progress?.lastActivity;return F(f,{flexDirection:"column",children:[F(f,{flexDirection:"row",gap:1,children:[Q(U,{bold:!0,children:q.agentType}),Q(U,{dimColor:!0,children:"·"}),Q(U,{dimColor:!0,children:Z}),Q(U,{dimColor:!0,children:"·"}),F(U,{dimColor:!0,children:[vZ(Y)," tokens"]}),V>0&&F(G0,{children:[Q(U,{dimColor:!0,children:"·"}),F(U,{dimColor:!0,children:[V," tool",V!==1?"s":""]})]})]}),R&&Q(f,{paddingLeft:2,children:Q(U,{dimColor:!0,italic:!0,children:R.activityDescription??R.toolName})})]},q.id)})})})]})}var CZ=$(()=>{R0();NX();PQ();uX();p()});function QY({onExit:J}){let X=h0();t("confirm:no",J,{context:"Confirmation",isActive:!0});let q=X.pending?`Press ${X.keyName} again to exit`:"←/→ switch tabs · ↑↓ navigate · Enter select · Esc close";return Q(f,{marginLeft:2,marginTop:1,children:Q(U,{dimColor:!0,children:q})})}function AZ({tools:J,onExit:X}){let[q,Y]=yZ.useState("library");wZ((Z,R)=>{if(R.leftArrow)Y("running");if(R.rightArrow)Y("library")},{isActive:!0});let V=F(f,{flexDirection:"row",gap:1,marginBottom:0,children:[Q(U,{bold:!0,color:"permission",children:"Agents"}),F(U,{bold:q==="running",inverse:q==="running",children:[" ","Running"," "]}),F(U,{bold:q==="library",inverse:q==="library",children:[" ","Library"," "]})]});if(q==="running")return F(f,{flexDirection:"column",children:[V,Q(DZ,{}),Q(QY,{onExit:()=>X("Agents dialog dismissed",{display:"system"})})]});return F(f,{flexDirection:"column",children:[V,Q(IZ,{tools:J,onExit:X})]})}var yZ;var hZ=$(()=>{R0();RX();b0();bZ();CZ();p();yZ=o(k0(),1)});async function LF(J,X){let Y=X.getAppState().toolPermissionContext,V=_Z(Y);return Q(AZ,{tools:V,onExit:J})}var qY=$(()=>{hZ();ZY();p()});qY();export{LF as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$Z as j,SZ as a,TZ as b,UZ as c,VZ as d,WZ as e,XZ as f,YZ as g,ZZ as h,_Z as i,a0 as k,b0 as l}from"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-kry2fk76.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";l();export{k as updateSessionTitle,j as sendEventToRemoteSession,e as prepareApiRequest,b as isTransientNetworkError,g as getOAuthHeaders,i as getBranchFromSession,h as fetchSession,f as fetchCodeSessionsFromSessionsAPI,c as axiosGetWithRetry,d as CodeSessionSchema,a as CCR_BYOC_BETA};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sb as a,tb as b,ub as c,vb as d,wb as e,xb as f}from"./cli-0.5.13-4at49cv9.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";export{d as renameRecordingForSession,f as installAsciicastRecorder,c as getSessionRecordingPaths,a as getRecordFilePath,e as flushAsciicastRecorder,b as _resetRecordingStateForTesting};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./cli-0.5.13-rmc7f4b8.mjs";var n=null;export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$3 as V,A3 as u,B3 as v,C3 as w,D3 as x,E3 as y,F3 as z,G3 as A,H3 as B,I3 as C,J3 as D,K3 as E,L3 as F,M3 as G,N3 as H,O3 as I,P3 as J,Q3 as K,R3 as L,S3 as M,T3 as N,U3 as O,V3 as P,W3 as Q,X3 as R,Y3 as S,Z3 as T,_3 as U,a4 as W,b4 as X,c4 as Y,d4 as Z,e4 as _,f4 as $,g3 as a,h3 as b,h4 as aa,i3 as c,j3 as d,k3 as e,l3 as f,m3 as g,n3 as h,o3 as i,p3 as j,q3 as k,r3 as l,s3 as m,t3 as n,u3 as o,v3 as p,w3 as q,x3 as r,y3 as s,z3 as t}from"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";aa();export{$ as validateForceLoginOrg,C as saveOAuthTokensIfNeeded,z as saveApiKey,B as removeApiKey,u as refreshGcpCredentialsIfNeeded,t as refreshGcpAuth,o as refreshAwsAuth,p as refreshAndGetAwsCredentials,w as prefetchGcpCredentialsIfSafe,x as prefetchAwsCredentialsAndBedRockInfoIfSafe,n as prefetchApiKeyFromApiKeyHelperIfSafe,W as isUsing3PServices,Q as isTeamSubscriber,R as isTeamPremiumSubscriber,T as isProSubscriber,M as isOverageProvisioningAllowed,X as isOtelHeadersHelperFromProjectOrLocalSettings,P as isMaxSubscriber,r as isGcpAuthRefreshFromProjectSettings,S as isEnterpriseSubscriber,A as isCustomApiKeyApproved,Z as isConsumerSubscriber,I as isClaudeAISubscriber,h as isAwsCredentialExportFromProjectSettings,g as isAwsAuthRefreshFromProjectSettings,a as isAnthropicAuthEnabled,K as is1PApiCustomer,J as hasProfileScope,N as hasOpusAccess,d as hasAnthropicApiKeyAuth,F as handleOAuth401Error,O as getSubscriptionType,V as getSubscriptionName,U as getRateLimitTier,Y as getOtelHeadersFromHelper,L as getOauthAccountInfo,f as getConfiguredApiKeyHelper,G as getClaudeAIOAuthTokensAsync,D as getClaudeAIOAuthTokens,b as getAuthTokenSource,j as getApiKeyHelperElapsedMs,y as getApiKeyFromConfigOrMacOSKeychain,l as getApiKeyFromApiKeyHelperCached,k as getApiKeyFromApiKeyHelper,e as getAnthropicApiKeyWithSource,c as getAnthropicApiKey,_ as getAccountInformation,E as clearOAuthTokenCache,v as clearGcpCredentialsCache,q as clearAwsCredentialsCache,m as clearApiKeyHelperCache,s as checkGcpCredentialsValid,H as checkAndRefreshOAuthTokenIfNeeded,i as calculateApiKeyHelperTTL};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{QE as a,RE as b,SE as c,TE as d,UE as e,VE as f,WE as g}from"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import"./cli-0.5.13-f1e673b2.mjs";import"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";g();export{a as performLogout,c as installOAuthTokens,b as clearAuthRelatedCaches,e as authStatus,f as authLogout,d as authLogin};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import{Yr as b,Zr as I,ex as w,fx as z,gx as F,hx as N}from"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import"./cli-0.5.13-f1e673b2.mjs";import"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import{A2 as x,b2 as y,t2 as P}from"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import{Y$ as Q,_$ as k}from"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import{Ofa as $,Tfa as U}from"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import{Dga as Z,Kga as T}from"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";T();x();N();k();I();U();function G(h){process.stdout.write($(h,null,2)+`
|
|
2
|
+
`)}var V=`Auto-mode classifier prompts are not bundled in this build.
|
|
3
|
+
Effective behavior at runtime: auto-allow for non-allowlisted tools.
|
|
4
|
+
Add prompt templates at src/utils/permissions/yolo-classifier-prompts/ and rebuild to enable.
|
|
5
|
+
`;function D(){if(!w()){process.stdout.write(V);return}G(z())}function E(){if(!w()){process.stdout.write(V);return}let h=Q(),j=z();G({allow:h?.allow?.length?h.allow:j.allow,soft_deny:h?.soft_deny?.length?h.soft_deny:j.soft_deny,environment:h?.environment?.length?h.environment:j.environment})}var m=`You are an expert reviewer of auto mode classifier rules for Claude Code.
|
|
6
|
+
|
|
7
|
+
Claude Code has an "auto mode" that uses an AI classifier to decide whether tool calls should be auto-approved or require user confirmation. Users can write custom rules in three categories:
|
|
8
|
+
|
|
9
|
+
- **allow**: Actions the classifier should auto-approve
|
|
10
|
+
- **soft_deny**: Actions the classifier should block (require user confirmation)
|
|
11
|
+
- **environment**: Context about the user's setup that helps the classifier make decisions
|
|
12
|
+
|
|
13
|
+
Your job is to critique the user's custom rules for clarity, completeness, and potential issues. The classifier is an LLM that reads these rules as part of its system prompt.
|
|
14
|
+
|
|
15
|
+
For each rule, evaluate:
|
|
16
|
+
1. **Clarity**: Is the rule unambiguous? Could the classifier misinterpret it?
|
|
17
|
+
2. **Completeness**: Are there gaps or edge cases the rule doesn't cover?
|
|
18
|
+
3. **Conflicts**: Do any of the rules conflict with each other?
|
|
19
|
+
4. **Actionability**: Is the rule specific enough for the classifier to act on?
|
|
20
|
+
|
|
21
|
+
Be concise and constructive. Only comment on rules that could be improved. If all rules look good, say so.`;async function M(h){if(!w()){process.stdout.write(V);return}let j=Q();if(!((j?.allow?.length??0)>0||(j?.soft_deny?.length??0)>0||(j?.environment?.length??0)>0)){process.stdout.write(`No custom auto mode rules found.
|
|
22
|
+
|
|
23
|
+
Add rules to your settings file under autoMode.{allow, soft_deny, environment}.
|
|
24
|
+
Run \`claude auto-mode defaults\` to see the default rules for reference.
|
|
25
|
+
`);return}let H=h.model?P(h.model):y(),q=z(),v=F(),O=K("allow",j?.allow??[],q.allow)+K("soft_deny",j?.soft_deny??[],q.soft_deny)+K("environment",j?.environment??[],q.environment);process.stdout.write(`Analyzing your auto mode rules…
|
|
26
|
+
|
|
27
|
+
`);let X;try{X=await b({querySource:"auto_mode_critique",model:H,system:m,max_tokens:4096,messages:[{role:"user",content:`Here is the full classifier system prompt that the auto mode classifier receives:
|
|
28
|
+
|
|
29
|
+
<classifier_system_prompt>
|
|
30
|
+
`+v+`
|
|
31
|
+
</classifier_system_prompt>
|
|
32
|
+
|
|
33
|
+
Here are the user's custom rules that REPLACE the corresponding default sections:
|
|
34
|
+
|
|
35
|
+
`+O+`
|
|
36
|
+
Please critique these custom rules.`}]})}catch(J){process.stderr.write("Failed to analyze rules: "+Z(J)+`
|
|
37
|
+
`),process.exitCode=1;return}let Y=X.content.find((J)=>J.type==="text");if(Y?.type==="text")process.stdout.write(Y.text+`
|
|
38
|
+
`);else process.stdout.write(`No critique was generated. Please try again.
|
|
39
|
+
`)}function K(h,j,W){if(j.length===0)return"";let H=j.map((v)=>"- "+v).join(`
|
|
40
|
+
`),q=W.map((v)=>"- "+v).join(`
|
|
41
|
+
`);return"## "+h+` (custom rules replacing defaults)
|
|
42
|
+
Custom:
|
|
43
|
+
`+H+`
|
|
44
|
+
|
|
45
|
+
Defaults being replaced:
|
|
46
|
+
`+q+`
|
|
47
|
+
|
|
48
|
+
`}export{D as autoModeDefaultsHandler,M as autoModeCritiqueHandler,E as autoModeConfigHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cR as a,dR as b,eR as c,fR as d,gR as e,hR as f,iR as g,jR as h,kR as i,lR as j,mR as k,nR as l,oR as m}from"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";m();export{d as shouldSkipVersion,l as installGlobalPackage,k as getVersionHistory,h as getNpmDistTags,c as getMaxVersionMessage,b as getMaxVersion,e as getLockFilePath,i as getLatestVersionFromGcs,g as getLatestVersion,j as getGcsDistTags,f as checkGlobalInstallPermissions,a as assertMinVersion};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Sa as a}from"./cli-0.5.13-055v20cs.mjs";import"./cli-0.5.13-wfyf1thm.mjs";import"./cli-0.5.13-hgrj8csf.mjs";import"./cli-0.5.13-36s1k9x2.mjs";import"./cli-0.5.13-rqjp9raj.mjs";import"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import"./cli-0.5.13-f1e673b2.mjs";import"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";export{a as startBackgroundHousekeeping};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{$h as D,Vh as C,ai as j,eQ as E,fi as x,gQ as c,pP as M}from"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import"./cli-0.5.13-f1e673b2.mjs";import"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import{_8 as U,b9 as N,e$ as w,o$ as S}from"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import{hfa as v,jfa as I}from"./cli-0.5.13-ktrr6zcr.mjs";import{Ofa as O,Tfa as k}from"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import{Eia as z,Kia as F,vma as b}from"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import{eoa as T}from"./cli-0.5.13-rmc7f4b8.mjs";import{randomUUID as p}from"crypto";import{mkdir as y,readFile as f,writeFile as u}from"fs/promises";function g(Q){let G=Q?.message?.content;if(!G)return"Branched conversation";let X=typeof G==="string"?G:G.find((Z)=>Z.type==="text")?.text;if(!X)return"Branched conversation";return X.replace(/\s+/g," ").trim().slice(0,100)||"Branched conversation"}async function d(Q){let G=p(),X=z(),Z=x(F()),Y=j(G),V=D();await y(Z,{recursive:!0,mode:448});let K;try{K=await f(V)}catch{throw Error("No conversation to branch")}if(K.length===0)throw Error("No conversation to branch");let _=U(K),W=_.filter((A)=>C(A)&&!A.isSidechain),H=_.filter((A)=>A.type==="content-replacement"&&A.sessionId===X).flatMap((A)=>A.replacements);if(W.length===0)throw Error("No messages to branch");let $=null,q=[],B=[];for(let A of W){let L={...A,sessionId:G,parentUuid:$,isSidechain:!1,forkedFrom:{sessionId:X,messageUuid:A.uuid}},J={...A,sessionId:G};if(B.push(J),q.push(O(L)),A.type!=="progress")$=A.uuid}if(H.length>0){let A={type:"content-replacement",sessionId:G,replacements:H};q.push(O(A))}return await u(Y,q.join(`
|
|
2
|
+
`)+`
|
|
3
|
+
`,{encoding:"utf8",mode:384}),{sessionId:G,title:Q,forkPath:Y,serializedMessages:B,contentReplacementRecords:H}}async function m(Q){let G=`${Q} (Branch)`;if((await E(G,{exact:!0})).length===0)return G;let Z=await E(`${Q} (Branch`),Y=new Set([1]),V=new RegExp(`^${w(Q)} \\(Branch(?: (\\d+))?\\)$`);for(let _ of Z){let W=_.customTitle?.match(V);if(W)if(W[1])Y.add(parseInt(W[1],10));else Y.add(1)}let K=2;while(Y.has(K))K++;return`${Q} (Branch ${K})`}async function AA(Q,G,X){let Z=X?.trim()||void 0,Y=z();try{let{sessionId:V,title:K,forkPath:_,serializedMessages:W,contentReplacementRecords:H}=await d(Z),$=new Date,q=g(W.find((P)=>P.type==="user")),A=await m(K??q);await M(V,A,_),v("tengu_conversation_forked",{message_count:W.length,has_custom_title:!!K});let L={date:$.toISOString().split("T")[0],messages:W,fullPath:_,value:$.getTime(),created:$,modified:$,firstPrompt:q,messageCount:W.length,isSidechain:!1,sessionId:V,customTitle:A,contentReplacements:H},J=K?` "${K}"`:"",R=`
|
|
4
|
+
To resume the original: claude -r ${Y}`,h=`Branched conversation${J}. You are now in the branch.${R}`;if(G.resume)await G.resume(V,L,"fork"),Q(h,{display:"system"});else Q(`Branched conversation${J}. Resume with: /resume ${V}`);return null}catch(V){let K=V instanceof Error?V.message:"Unknown error occurred";return Q(`Failed to branch conversation: ${K}`),null}}var l=T(()=>{b();I();N();c();k();S()});l();export{g as deriveFirstPrompt,AA as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ada as A,Bda as k,Lda as G,Mda as N,Pda as M,Sda as Y,Uda as O,Vda as S,Wda as _}from"./cli-0.5.13-yc6wyazy.mjs";import{Ofa as K,Pfa as W,Tfa as j,jga as C,mga as R}from"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import{Fga as y,Kga as c}from"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>D)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await A(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await T(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,D as BRIDGE_POINTER_TTL_MS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dh as a,eh as bJ}from"./cli-0.5.13-thgp6asf.mjs";import{fh as x,gh as AJ}from"./cli-0.5.13-efbkgz8j.mjs";import{FQ as s,GM as TJ,GQ as t,HQ as DJ,IN as o,PB as l,Tw as i,Uw as HJ,VB as kJ,WN as hJ,Xl as m,Yl as UJ,kF as $,lF as vJ,nx as u,px as WJ,zM as r}from"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import{DV as c,FV as IJ,kV as g,lV as QJ}from"./cli-0.5.13-qrn019we.mjs";import{OX as j,QX as KJ,aY as NJ,cW as GJ,vX as k,xX as v}from"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import{FZ as F,GZ as W,HZ as d}from"./cli-0.5.13-f1e673b2.mjs";import{IZ as zJ}from"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import{F9 as p,G9 as C,Naa as S,W9 as ZJ,iba as FJ}from"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import{Dga as f,Kga as YJ}from"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import{aoa as R,eoa as XJ}from"./cli-0.5.13-rmc7f4b8.mjs";function EJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(BJ(V.messages)),Y=l();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:i(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{NT as p,OT as f,PT as a,QT as S}from"./cli-0.5.13-p9fwmgwy.mjs";import{Naa as d,iba as C}from"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import{Wea as m,Xea as y,Yea as b}from"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import{eoa as g}from"./cli-0.5.13-rmc7f4b8.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
|
|
2
|
+
|
|
3
|
+
Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./cli-0.5.13-rmc7f4b8.mjs";var g=()=>null,c=class{},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}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{gZ as h,kZ as zz}from"./cli-0.5.13-898bb5x7.mjs";import{A2 as e,b2 as m}from"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import{gca as y,nca as s,qca as v,tca as r}from"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import{jga as k,mga as o}from"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import{Eia as b,vma as a}from"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import{eoa as n}from"./cli-0.5.13-rmc7f4b8.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
|
|
2
|
+
|
|
3
|
+
`)){let w=B.split(`
|
|
4
|
+
`).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
|
|
5
|
+
`));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
|
|
6
|
+
`);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
|
|
7
|
+
`)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
|
|
8
|
+
`)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
|
|
9
|
+
For GitHub Copilot: run /provider and choose GitHub Copilot.
|
|
10
|
+
For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w,prompt_cache_retention:"24h"}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
|
|
11
|
+
`);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
|
|
12
|
+
${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
|
|
13
|
+
${z.error.slice(0,300)}
|
|
14
|
+
|
|
15
|
+
Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
|
|
16
|
+
${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
|
|
17
|
+
Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
|
|
18
|
+
`));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
|
|
19
|
+
`)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
|
|
20
|
+
|
|
21
|
+
`)});Qz();export{jz as call};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{aV as L,bV as P,cV as $,gV as Q,hV as U,iV as V,jV as j}from"./cli-0.5.13-cjd4zkx5.mjs";import{eoa as Z}from"./cli-0.5.13-rmc7f4b8.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
|
|
2
|
+
No API requests yet this session.
|
|
3
|
+
Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
|
|
4
|
+
`)}};var A=Z(()=>{j();$()});A();export{O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Dg as a,Eg as b}from"./cli-0.5.13-8wrj5aqm.mjs";import"./cli-0.5.13-cm18xc7a.mjs";import"./cli-0.5.13-rqjp9raj.mjs";import"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import"./cli-0.5.13-f1e673b2.mjs";import"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fca as X,Nca as H,Q7 as V,R7 as W,S7 as J,Y8 as k,b9 as N,p_ as x,s_ as A}from"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import{Ega as b,Kga as y}from"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function h(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AQ as r,BQ as s,CQ as t,jQ as a,kQ as b,lQ as c,mQ as d,nQ as e,oQ as f,pQ as g,qQ as h,rQ as i,sQ as j,tQ as k,uQ as l,vQ as m,wQ as n,xQ as o,yQ as p,zQ as q}from"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import"./cli-0.5.13-f1e673b2.mjs";import"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bg as a,Cg as l}from"./cli-0.5.13-bkv5hf1d.mjs";import"./cli-0.5.13-8wrj5aqm.mjs";import"./cli-0.5.13-cm18xc7a.mjs";import"./cli-0.5.13-rqjp9raj.mjs";import"./cli-0.5.13-2vy5qjm5.mjs";import"./cli-0.5.13-k18wsy2t.mjs";import"./cli-0.5.13-p6q4xbrv.mjs";import"./cli-0.5.13-7je48sax.mjs";import"./cli-0.5.13-kt5d0qv4.mjs";import"./cli-0.5.13-rrqv533k.mjs";import"./cli-0.5.13-fdyfmbdw.mjs";import"./cli-0.5.13-frerk7s6.mjs";import"./cli-0.5.13-h04mqqtv.mjs";import"./cli-0.5.13-061m60f2.mjs";import"./cli-0.5.13-r442vgxt.mjs";import"./cli-0.5.13-j2wbmw1t.mjs";import"./cli-0.5.13-q2mxeckt.mjs";import"./cli-0.5.13-2m4fm0hh.mjs";import"./cli-0.5.13-a86qe2vz.mjs";import"./cli-0.5.13-p9fwmgwy.mjs";import"./cli-0.5.13-dxs15ka8.mjs";import"./cli-0.5.13-6qz4fn68.mjs";import"./cli-0.5.13-teedketa.mjs";import"./cli-0.5.13-ejy68mbm.mjs";import"./cli-0.5.13-ga5kmq1w.mjs";import"./cli-0.5.13-cjd4zkx5.mjs";import"./cli-0.5.13-qrn019we.mjs";import"./cli-0.5.13-tr9s34te.mjs";import"./cli-0.5.13-vqrqsmg4.mjs";import"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-adphma77.mjs";import"./cli-0.5.13-898bb5x7.mjs";import"./cli-0.5.13-kz59bkh7.mjs";import"./cli-0.5.13-5wc80m6b.mjs";import"./cli-0.5.13-n3xnwgn1.mjs";import"./cli-0.5.13-f1e673b2.mjs";import"./cli-0.5.13-d1xn4v80.mjs";import"./cli-0.5.13-xxa4mzdx.mjs";import"./cli-0.5.13-3zrq5ggt.mjs";import"./cli-0.5.13-f1akqq6k.mjs";import"./cli-0.5.13-p4f4h0g7.mjs";import"./cli-0.5.13-gw433gw1.mjs";import"./cli-0.5.13-5tva2fr1.mjs";import"./cli-0.5.13-16khcs2m.mjs";import"./cli-0.5.13-nqkxsn2m.mjs";import"./cli-0.5.13-4s4vnhj8.mjs";import"./cli-0.5.13-jqns71dy.mjs";import"./cli-0.5.13-w20nxjkz.mjs";import"./cli-0.5.13-kry2fk76.mjs";import"./cli-0.5.13-p70x9j1v.mjs";import"./cli-0.5.13-sfjdg8y7.mjs";import"./cli-0.5.13-d6bw823x.mjs";import"./cli-0.5.13-yc6wyazy.mjs";import"./cli-0.5.13-j97wk70q.mjs";import"./cli-0.5.13-cwy43qr2.mjs";import"./cli-0.5.13-vee98ybt.mjs";import"./cli-0.5.13-ktrr6zcr.mjs";import"./cli-0.5.13-a9gqqmjh.mjs";import"./cli-0.5.13-g76ge0hv.mjs";import"./cli-0.5.13-ywwd10c0.mjs";import"./cli-0.5.13-vhjxq97s.mjs";import"./cli-0.5.13-chdvhgrk.mjs";import"./cli-0.5.13-p7q9grjp.mjs";import"./cli-0.5.13-sww17qtj.mjs";import"./cli-0.5.13-667jxcab.mjs";import"./cli-0.5.13-gpnjdq6k.mjs";import"./cli-0.5.13-1qt91z42.mjs";import{eoa as t}from"./cli-0.5.13-rmc7f4b8.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{QY as a,RY as b,SY as c}from"./cli-0.5.13-rfsjgvne.mjs";import"./cli-0.5.13-rmc7f4b8.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Hk as W,Kk as P,Pi as Q,Qi as I,WN as R,nN as Y}from"./cli-0.5.13-2vy5qjm5.mjs";import{Qca as B,Rca as f}from"./cli-0.5.13-sfjdg8y7.mjs";import{Bea as H,Cea as J,Yea as F}from"./cli-0.5.13-cwy43qr2.mjs";import{Eia as v,vma as $}from"./cli-0.5.13-chdvhgrk.mjs";import{eoa as Z}from"./cli-0.5.13-rmc7f4b8.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
+
export{S as Ed,V as Fd,X as Gd,r as Hd,w as Id,T as Jd,G as Kd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{pc as t,qc as pJ}from"./cli-0.5.13-wfyf1thm.mjs";import{Ng as r,Og as DJ}from"./cli-0.5.13-rqjp9raj.mjs";import{BB as PJ,CB as jJ,CE as i,DE as n,EE as RJ,HB as o,IB as yJ,Nk as c,TK as I,Tk as MJ,Tx as a,Uw as x,Ux as AJ,WN as P,Yl as h,ZC as l,_C as HJ,_h as u,bj as zJ,gQ as OJ,lB as VJ,pk as g,sk as _J,yE as T}from"./cli-0.5.13-2vy5qjm5.mjs";import{A2 as YJ}from"./cli-0.5.13-p4f4h0g7.mjs";import{Fca as B,Nca as H,R$ as m,Z$ as f,_$ as wJ,jaa as UJ,w8 as QJ,wca as O,xca as NJ}from"./cli-0.5.13-p70x9j1v.mjs";import{qea as ZJ}from"./cli-0.5.13-j97wk70q.mjs";import{uea as qJ}from"./cli-0.5.13-cwy43qr2.mjs";import{hfa as R,jfa as y}from"./cli-0.5.13-ktrr6zcr.mjs";import{$fa as BJ,Tfa as KJ,Xfa as V,jga as d,mga as LJ}from"./cli-0.5.13-a9gqqmjh.mjs";import{Kga as C}from"./cli-0.5.13-ywwd10c0.mjs";import{Nga as U,_ga as WJ}from"./cli-0.5.13-vhjxq97s.mjs";import{Jja as F,ska as b,vma as j}from"./cli-0.5.13-chdvhgrk.mjs";import{boa as IJ}from"./cli-0.5.13-rmc7f4b8.mjs";yJ();DJ();j();ZJ();y();I();zJ();h();QJ();qJ();C();H();P();YJ();KJ();x();I();h();H();C();P();x();VJ();function D(){}j();y();NJ();LJ();WJ();BJ();AJ();UJ();H();i();HJ();OJ();RJ();wJ();MJ();_J();import{join as Q}from"path";var TJ=30;function L(){let q=((m()||{}).cleanupPeriodDays??TJ)*24*60*60*1000;return new Date(Date.now()-q)}function vJ(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function FJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,q){let $={messages:0,errors:0};try{let G=await V().readdir(X);for(let K of G)try{if(FJ(K.name)<J)if(await V().unlink(Q(X,K.name)),q)$.messages++;else $.errors++}catch(Y){B(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")B(G)}return $}async function bJ(){let X=V(),J=L(),q=O.errors(),$=O.baseLogs(),G=await p(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Z)=>Z.isDirectory()&&Z.name.startsWith("mcp-logs-")).map((Z)=>Q($,Z.name));for(let Z of Y)G=vJ(G,await p(Z,J,!0)),await z(Z,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")B(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function SJ(){let X=L(),J={messages:0,errors:0},q=u(),$=V(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Q(q,K.name),Z;try{Z=await $.readdir(Y)}catch{J.errors++;continue}for(let W of Z)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await w(Q(Y,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Q(Y,W.name),N=Q(M,c),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await w(Q(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Q(N,_.name),k;try{k=await $.readdir(A)}catch{continue}for(let E of k){if(!E.isFile())continue;try{if(await w(Q(A,E.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Y,$)}return J}async function kJ(X,J,q=!0){let $=L(),G={messages:0,errors:0},K=V(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Z of Y){if(!Z.isFile()||!Z.name.endsWith(J))continue;try{if(await w(Q(X,Z.name),$,K))G.messages++}catch{G.errors++}}if(q)await z(X,K);return G}function EJ(){let X=Q(U(),"plans");return kJ(X,".md")}async function CJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));await Promise.all(Y.map(async(Z)=>{try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(G,q)}catch($){B($)}return J}async function hJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));for(let Z of Y)try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(G,q)}catch($){B($)}return J}async function xJ(){let X=L(),J={messages:0,errors:0},q=V(),$=Q(U(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Q($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function s(){let{errors:X}=n();if(X.length>0&&f("cleanupPeriodDays")){d("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await bJ(),await SJ(),await EJ(),await CJ(),await hJ(),await xJ(),await a(),await l(L());let J=await g(L());if(J>0)R("tengu_worktree_cleanup",{removed:J})}i();pJ();var dJ=(jJ(),IJ(PJ));var v=600000;function iX(){r(),D(),dJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await s();if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await T()}setTimeout(J,v).unref()}
|
|
2
|
+
export{iX as Sa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{eoa as n}from"./cli-0.5.13-rmc7f4b8.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
|
|
2
|
+
export{o as cS,e as dS,i as eS,g as fS,r as gS,u as hS,f as iS,l as jS,t as kS};
|