@claudiolabs/claudin 0.5.11 → 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.11-pmpb4k0n.mjs +0 -1
- package/dist/chunks/App-0.5.11-p4tzrftk.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.11-x7app6e1.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.11-yt145aqf.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.11-sk3f4q8k.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.11-1jzt83mp.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.11-cz8d7m9a.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.11-8k1tknez.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.11-5ztck2sb.mjs +0 -3
- package/dist/chunks/Doctor-0.5.11-r555n4gr.mjs +0 -1
- package/dist/chunks/Grove-0.5.11-ecytagy8.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.11-gjvxwbqm.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.11-0xtcm9sp.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.11-xyg9jj2t.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.11-6yvk9aga.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.11-jny18cnf.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.11-tgpz26nn.mjs +0 -1
- package/dist/chunks/REPL-0.5.11-z9jmkcrt.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.11-ax7rppk3.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.11-fg6xs3n9.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.11-rk53szn6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.11-pbz4q489.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.11-v36ecwet.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.11-xjrg30c7.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.11-5pyscyx3.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.11-hv1tdzd1.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.11-67twne4q.mjs +0 -1
- package/dist/chunks/add-dir-0.5.11-fmpend7m.mjs +0 -1
- package/dist/chunks/agents-0.5.11-3ws1bp5n.mjs +0 -110
- package/dist/chunks/agents-0.5.11-yk20asfy.mjs +0 -3
- package/dist/chunks/api-0.5.11-qvvgffdr.mjs +0 -1
- package/dist/chunks/asciicast-0.5.11-pnstf51y.mjs +0 -1
- package/dist/chunks/assistant-0.5.11-0zxxv4fd.mjs +0 -1
- package/dist/chunks/auth-0.5.11-pn0t92nv.mjs +0 -1
- package/dist/chunks/auth-0.5.11-tx8tvxpk.mjs +0 -1
- package/dist/chunks/autoMode-0.5.11-ygcr6fva.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.11-da327r2h.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.11-84fpj6rq.mjs +0 -1
- package/dist/chunks/branch-0.5.11-q05ek7pc.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.11-eg7x2d2q.mjs +0 -1
- package/dist/chunks/btw-0.5.11-kjg5crjx.mjs +0 -1
- package/dist/chunks/buddy-0.5.11-evv2c6jv.mjs +0 -3
- package/dist/chunks/cacache-0.5.11-s4mzxjey.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.11-ef5dmcc3.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.11-62wc6683.mjs +0 -4
- package/dist/chunks/caches-0.5.11-zxyz4192.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.11-yt8a325q.mjs +0 -1
- package/dist/chunks/claudemd-0.5.11-zs4d4f7m.mjs +0 -1
- package/dist/chunks/clear-0.5.11-ard48ngp.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.11-0yznc101.mjs +0 -1
- package/dist/chunks/cli-0.5.11-0106vc0d.mjs +0 -2
- package/dist/chunks/cli-0.5.11-04v0g9wg.mjs +0 -2
- package/dist/chunks/cli-0.5.11-06ja50j0.mjs +0 -2
- package/dist/chunks/cli-0.5.11-07d4s05w.mjs +0 -3
- package/dist/chunks/cli-0.5.11-0ck34rvv.mjs +0 -2
- package/dist/chunks/cli-0.5.11-0gvkh06n.mjs +0 -2
- package/dist/chunks/cli-0.5.11-0k52dqga.mjs +0 -2
- package/dist/chunks/cli-0.5.11-0wk8chb6.mjs +0 -6
- package/dist/chunks/cli-0.5.11-0x25smnx.mjs +0 -2
- package/dist/chunks/cli-0.5.11-1azjwqgg.mjs +0 -2
- package/dist/chunks/cli-0.5.11-1bfxt461.mjs +0 -2
- package/dist/chunks/cli-0.5.11-1bky2wf4.mjs +0 -2
- package/dist/chunks/cli-0.5.11-1gj2erx8.mjs +0 -2
- package/dist/chunks/cli-0.5.11-1t8p5947.mjs +0 -2
- package/dist/chunks/cli-0.5.11-1wnqzd0b.mjs +0 -2
- package/dist/chunks/cli-0.5.11-1z9g6q16.mjs +0 -2
- package/dist/chunks/cli-0.5.11-25wrjhqm.mjs +0 -2
- package/dist/chunks/cli-0.5.11-27c1jc52.mjs +0 -2
- package/dist/chunks/cli-0.5.11-289bqxdd.mjs +0 -2
- package/dist/chunks/cli-0.5.11-2aaka946.mjs +0 -3
- package/dist/chunks/cli-0.5.11-2fzynn6p.mjs +0 -2
- package/dist/chunks/cli-0.5.11-2mt65qck.mjs +0 -2
- package/dist/chunks/cli-0.5.11-2nsyt9r7.mjs +0 -3
- package/dist/chunks/cli-0.5.11-3n2bpvhd.mjs +0 -10
- package/dist/chunks/cli-0.5.11-3p2grcnj.mjs +0 -2
- package/dist/chunks/cli-0.5.11-3vy23k9x.mjs +0 -2
- package/dist/chunks/cli-0.5.11-3x794mr8.mjs +0 -3
- package/dist/chunks/cli-0.5.11-4phhn68y.mjs +0 -12
- package/dist/chunks/cli-0.5.11-4pjrzfnw.mjs +0 -2
- package/dist/chunks/cli-0.5.11-4wkav9bz.mjs +0 -2
- package/dist/chunks/cli-0.5.11-548r9zkc.mjs +0 -2
- package/dist/chunks/cli-0.5.11-56ecxcc1.mjs +0 -2
- package/dist/chunks/cli-0.5.11-5dfdkpag.mjs +0 -3
- package/dist/chunks/cli-0.5.11-5h4mrqhf.mjs +0 -2
- package/dist/chunks/cli-0.5.11-5tgkhbf9.mjs +0 -1
- package/dist/chunks/cli-0.5.11-5vke4xgt.mjs +0 -2
- package/dist/chunks/cli-0.5.11-62qwtx2m.mjs +0 -2
- package/dist/chunks/cli-0.5.11-62vs6h7k.mjs +0 -4
- package/dist/chunks/cli-0.5.11-63t1ht1z.mjs +0 -2
- package/dist/chunks/cli-0.5.11-66pfv87z.mjs +0 -2
- package/dist/chunks/cli-0.5.11-67nc1re2.mjs +0 -2
- package/dist/chunks/cli-0.5.11-6bg7bcpd.mjs +0 -2
- package/dist/chunks/cli-0.5.11-6j344fat.mjs +0 -9
- package/dist/chunks/cli-0.5.11-6p6tzgws.mjs +0 -2
- package/dist/chunks/cli-0.5.11-6vqz68v0.mjs +0 -5270
- package/dist/chunks/cli-0.5.11-73qsyep8.mjs +0 -193
- package/dist/chunks/cli-0.5.11-76dw4jf0.mjs +0 -2
- package/dist/chunks/cli-0.5.11-7b60ejft.mjs +0 -2
- package/dist/chunks/cli-0.5.11-7dcw6f28.mjs +0 -2
- package/dist/chunks/cli-0.5.11-7dqqz76t.mjs +0 -2
- package/dist/chunks/cli-0.5.11-7kdrre6e.mjs +0 -2
- package/dist/chunks/cli-0.5.11-7wdkrgrs.mjs +0 -2
- package/dist/chunks/cli-0.5.11-7z95akn7.mjs +0 -2
- package/dist/chunks/cli-0.5.11-8wegt5tk.mjs +0 -2
- package/dist/chunks/cli-0.5.11-9gbtz4tf.mjs +0 -2
- package/dist/chunks/cli-0.5.11-9hpvrk4m.mjs +0 -2
- package/dist/chunks/cli-0.5.11-9p5t3q3q.mjs +0 -3
- package/dist/chunks/cli-0.5.11-a268xvck.mjs +0 -34
- package/dist/chunks/cli-0.5.11-a4mf9xhj.mjs +0 -2
- package/dist/chunks/cli-0.5.11-aa4nqg2h.mjs +0 -2
- package/dist/chunks/cli-0.5.11-afsaw4w9.mjs +0 -2
- package/dist/chunks/cli-0.5.11-anrx0gdd.mjs +0 -24
- package/dist/chunks/cli-0.5.11-ary0369d.mjs +0 -2
- package/dist/chunks/cli-0.5.11-asbzzvaj.mjs +0 -2
- package/dist/chunks/cli-0.5.11-b8p90en1.mjs +0 -2
- package/dist/chunks/cli-0.5.11-bfbde9jn.mjs +0 -25
- package/dist/chunks/cli-0.5.11-bgd5c05j.mjs +0 -17
- package/dist/chunks/cli-0.5.11-bqq1dcq2.mjs +0 -2
- package/dist/chunks/cli-0.5.11-brmcmmjd.mjs +0 -2
- package/dist/chunks/cli-0.5.11-bs62j31j.mjs +0 -2
- package/dist/chunks/cli-0.5.11-c5zt7nm9.mjs +0 -8
- package/dist/chunks/cli-0.5.11-c6rcvt4z.mjs +0 -42
- package/dist/chunks/cli-0.5.11-ct01zxnx.mjs +0 -2
- package/dist/chunks/cli-0.5.11-cycpk41p.mjs +0 -3
- package/dist/chunks/cli-0.5.11-d8n7yg2y.mjs +0 -17
- package/dist/chunks/cli-0.5.11-dh89qxs0.mjs +0 -2
- package/dist/chunks/cli-0.5.11-dpbhsnm8.mjs +0 -59
- package/dist/chunks/cli-0.5.11-dz7nvwja.mjs +0 -18
- package/dist/chunks/cli-0.5.11-e67s4crr.mjs +0 -2
- package/dist/chunks/cli-0.5.11-e6czba2y.mjs +0 -3
- package/dist/chunks/cli-0.5.11-ew50bww2.mjs +0 -2
- package/dist/chunks/cli-0.5.11-f524x1te.mjs +0 -2
- package/dist/chunks/cli-0.5.11-f53h946w.mjs +0 -2
- package/dist/chunks/cli-0.5.11-ff85kqc1.mjs +0 -2
- package/dist/chunks/cli-0.5.11-ffsf3kp2.mjs +0 -2
- package/dist/chunks/cli-0.5.11-fkv6m8b0.mjs +0 -4
- package/dist/chunks/cli-0.5.11-fydbgnx6.mjs +0 -16
- package/dist/chunks/cli-0.5.11-fz4zane5.mjs +0 -3
- package/dist/chunks/cli-0.5.11-g08827r2.mjs +0 -2
- package/dist/chunks/cli-0.5.11-g3zmdsrn.mjs +0 -2
- package/dist/chunks/cli-0.5.11-g46sacxw.mjs +0 -2
- package/dist/chunks/cli-0.5.11-gwq31814.mjs +0 -12
- package/dist/chunks/cli-0.5.11-gy904yyh.mjs +0 -2
- package/dist/chunks/cli-0.5.11-h20s4d8b.mjs +0 -2
- package/dist/chunks/cli-0.5.11-h34yntmn.mjs +0 -2
- package/dist/chunks/cli-0.5.11-h3fsqvd0.mjs +0 -2
- package/dist/chunks/cli-0.5.11-h4rjx6k5.mjs +0 -2
- package/dist/chunks/cli-0.5.11-h52bd7wh.mjs +0 -4
- package/dist/chunks/cli-0.5.11-h9h4hp34.mjs +0 -2
- package/dist/chunks/cli-0.5.11-hk69acdj.mjs +0 -2
- package/dist/chunks/cli-0.5.11-hmmth2y4.mjs +0 -2
- package/dist/chunks/cli-0.5.11-hph6a44c.mjs +0 -2
- package/dist/chunks/cli-0.5.11-hpr89c78.mjs +0 -2
- package/dist/chunks/cli-0.5.11-j04e539e.mjs +0 -2
- package/dist/chunks/cli-0.5.11-j2vqwct6.mjs +0 -9
- package/dist/chunks/cli-0.5.11-j4hdhvj9.mjs +0 -6
- package/dist/chunks/cli-0.5.11-jbh1h99z.mjs +0 -2
- package/dist/chunks/cli-0.5.11-jnfg5t1w.mjs +0 -24
- package/dist/chunks/cli-0.5.11-jpwjtezc.mjs +0 -2
- package/dist/chunks/cli-0.5.11-ks07hfg7.mjs +0 -2
- package/dist/chunks/cli-0.5.11-kwwy5esr.mjs +0 -2
- package/dist/chunks/cli-0.5.11-m1bxrtje.mjs +0 -2
- package/dist/chunks/cli-0.5.11-m3bm720s.mjs +0 -2
- package/dist/chunks/cli-0.5.11-m6mcarks.mjs +0 -67
- package/dist/chunks/cli-0.5.11-mb46e2vr.mjs +0 -2
- package/dist/chunks/cli-0.5.11-me9q2f4g.mjs +0 -4
- package/dist/chunks/cli-0.5.11-mrpnwxc8.mjs +0 -3
- package/dist/chunks/cli-0.5.11-myahqjfp.mjs +0 -2
- package/dist/chunks/cli-0.5.11-nfrcshnh.mjs +0 -2
- package/dist/chunks/cli-0.5.11-nkfafdwt.mjs +0 -2
- package/dist/chunks/cli-0.5.11-nmhfw726.mjs +0 -15
- package/dist/chunks/cli-0.5.11-nqvw9xja.mjs +0 -2
- package/dist/chunks/cli-0.5.11-ns8kex5x.mjs +0 -2
- package/dist/chunks/cli-0.5.11-nvgvygr9.mjs +0 -2
- package/dist/chunks/cli-0.5.11-nzn18pg0.mjs +0 -12
- package/dist/chunks/cli-0.5.11-p23fv6r3.mjs +0 -2
- package/dist/chunks/cli-0.5.11-p2pgcz8q.mjs +0 -50
- package/dist/chunks/cli-0.5.11-pgw75ed3.mjs +0 -2
- package/dist/chunks/cli-0.5.11-pk5ee3x4.mjs +0 -4
- package/dist/chunks/cli-0.5.11-pkn0kwxz.mjs +0 -2
- package/dist/chunks/cli-0.5.11-pqq6g9cn.mjs +0 -2
- package/dist/chunks/cli-0.5.11-q05234bd.mjs +0 -2
- package/dist/chunks/cli-0.5.11-q6gp4am8.mjs +0 -2
- package/dist/chunks/cli-0.5.11-q6qzmzqg.mjs +0 -5
- package/dist/chunks/cli-0.5.11-q9j45pmj.mjs +0 -2
- package/dist/chunks/cli-0.5.11-qfnx3qe3.mjs +0 -2
- package/dist/chunks/cli-0.5.11-qph0smd1.mjs +0 -2
- package/dist/chunks/cli-0.5.11-qwwyyrad.mjs +0 -2
- package/dist/chunks/cli-0.5.11-r00ghsbw.mjs +0 -2
- package/dist/chunks/cli-0.5.11-r373s3sw.mjs +0 -20
- package/dist/chunks/cli-0.5.11-r45vbzkw.mjs +0 -2
- package/dist/chunks/cli-0.5.11-rmpd1mg7.mjs +0 -4
- package/dist/chunks/cli-0.5.11-rr2bav99.mjs +0 -2
- package/dist/chunks/cli-0.5.11-rrdvykge.mjs +0 -2
- package/dist/chunks/cli-0.5.11-s6jp1y14.mjs +0 -133
- package/dist/chunks/cli-0.5.11-s91dmr8j.mjs +0 -4
- package/dist/chunks/cli-0.5.11-sa4wnm16.mjs +0 -2
- package/dist/chunks/cli-0.5.11-skxnn9rd.mjs +0 -2
- package/dist/chunks/cli-0.5.11-smx5e9cf.mjs +0 -15
- package/dist/chunks/cli-0.5.11-sv9jwzfm.mjs +0 -133
- package/dist/chunks/cli-0.5.11-t1h3zx23.mjs +0 -2
- package/dist/chunks/cli-0.5.11-t8q2hmsy.mjs +0 -4
- package/dist/chunks/cli-0.5.11-td124m66.mjs +0 -58
- package/dist/chunks/cli-0.5.11-tdb8rrd2.mjs +0 -2
- package/dist/chunks/cli-0.5.11-tdtjfv7g.mjs +0 -2
- package/dist/chunks/cli-0.5.11-tekvw7w4.mjs +0 -2
- package/dist/chunks/cli-0.5.11-tenygbfm.mjs +0 -2
- package/dist/chunks/cli-0.5.11-th6kdvtq.mjs +0 -5
- package/dist/chunks/cli-0.5.11-tkfz368s.mjs +0 -2
- package/dist/chunks/cli-0.5.11-tqkhjegk.mjs +0 -2
- package/dist/chunks/cli-0.5.11-tsqmkrym.mjs +0 -2
- package/dist/chunks/cli-0.5.11-ttk8weyx.mjs +0 -2
- package/dist/chunks/cli-0.5.11-tyzwy8ba.mjs +0 -2
- package/dist/chunks/cli-0.5.11-vbtwayd7.mjs +0 -2
- package/dist/chunks/cli-0.5.11-vf66nxmm.mjs +0 -45
- package/dist/chunks/cli-0.5.11-vg1ydgsg.mjs +0 -2
- package/dist/chunks/cli-0.5.11-vgwb1q0w.mjs +0 -21
- package/dist/chunks/cli-0.5.11-w1rpmy1q.mjs +0 -6
- package/dist/chunks/cli-0.5.11-w1ysdbgh.mjs +0 -4
- package/dist/chunks/cli-0.5.11-w2rzkzyn.mjs +0 -4
- package/dist/chunks/cli-0.5.11-w42sednt.mjs +0 -3
- package/dist/chunks/cli-0.5.11-w4j0wkkp.mjs +0 -2
- package/dist/chunks/cli-0.5.11-w755ks5r.mjs +0 -2
- package/dist/chunks/cli-0.5.11-wafsp0ws.mjs +0 -2
- package/dist/chunks/cli-0.5.11-wd33twrf.mjs +0 -2
- package/dist/chunks/cli-0.5.11-wgmh2v5q.mjs +0 -2
- package/dist/chunks/cli-0.5.11-wv71k7xf.mjs +0 -7
- package/dist/chunks/cli-0.5.11-wx3mzx0n.mjs +0 -18
- package/dist/chunks/cli-0.5.11-x4qv3sjs.mjs +0 -2
- package/dist/chunks/cli-0.5.11-x9r5c2fn.mjs +0 -2
- package/dist/chunks/cli-0.5.11-xasfev8k.mjs +0 -39
- package/dist/chunks/cli-0.5.11-xksnwsm3.mjs +0 -2
- package/dist/chunks/cli-0.5.11-xmpfn425.mjs +0 -15
- package/dist/chunks/cli-0.5.11-xqjh3bpr.mjs +0 -2
- package/dist/chunks/cli-0.5.11-y0ts1qt0.mjs +0 -2
- package/dist/chunks/cli-0.5.11-y8t19tjp.mjs +0 -5
- package/dist/chunks/cli-0.5.11-yeag4bs7.mjs +0 -3
- package/dist/chunks/cli-0.5.11-yj62weqd.mjs +0 -2
- package/dist/chunks/cli-0.5.11-z61mwq81.mjs +0 -2
- package/dist/chunks/cli-0.5.11-zx40f53c.mjs +0 -2
- package/dist/chunks/client-0.5.11-6kt04vx4.mjs +0 -1
- package/dist/chunks/color-0.5.11-av7a397w.mjs +0 -1
- package/dist/chunks/compact-0.5.11-cctysw7j.mjs +0 -3
- package/dist/chunks/config-0.5.11-hpjf6qx7.mjs +0 -1
- package/dist/chunks/config-0.5.11-zsb73hdf.mjs +0 -1
- package/dist/chunks/context-0.5.11-g2sh01rs.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.11-tjea4wr9.mjs +0 -1
- package/dist/chunks/conversation-0.5.11-hx51yee2.mjs +0 -1
- package/dist/chunks/copy-0.5.11-e8jg6b1x.mjs +0 -9
- package/dist/chunks/cost-0.5.11-tqp697tv.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.11-s35k3cx0.mjs +0 -1
- package/dist/chunks/createSession-0.5.11-bt3bpd8p.mjs +0 -1
- package/dist/chunks/debug-0.5.11-qh2jpe2b.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.5.11-x108pd3q.mjs +0 -1177
- package/dist/chunks/desktop-0.5.11-rs1a8d5a.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.11-c1sg75rv.mjs +0 -1
- package/dist/chunks/detection-0.5.11-9atncamq.mjs +0 -1
- package/dist/chunks/diff-0.5.11-665a3hvr.mjs +0 -1
- package/dist/chunks/doctor-0.5.11-ggegwama.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.11-mxs3236y.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.11-pjds7ekg.mjs +0 -1
- package/dist/chunks/effort-0.5.11-dp44v8bt.mjs +0 -10
- package/dist/chunks/envUtils-0.5.11-vgrmx5s2.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.11-pe4mkdz7.mjs +0 -1
- package/dist/chunks/environments-0.5.11-m02k45kw.mjs +0 -1
- package/dist/chunks/errors-0.5.11-prtr2pp9.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.11-gc8kc8da.mjs +0 -1
- package/dist/chunks/exit-0.5.11-v9dmnmgv.mjs +0 -1
- package/dist/chunks/export-0.5.11-dq1sq5v5.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.11-dg84qb19.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.11-j7262a6a.mjs +0 -1
- package/dist/chunks/fast-0.5.11-ka1z4kaz.mjs +0 -1
- package/dist/chunks/feedback-0.5.11-pxtv6def.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.11-ajhncn3p.mjs +0 -1
- package/dist/chunks/git-0.5.11-dj08v964.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.11-6z9h4mb2.mjs +0 -1
- package/dist/chunks/grove-0.5.11-s8a4wdhg.mjs +0 -1
- package/dist/chunks/growthbook-0.5.11-k631sh8z.mjs +0 -1
- package/dist/chunks/headless-0.5.11-hsfh25d9.mjs +0 -2
- package/dist/chunks/heapdump-0.5.11-73b0wcq4.mjs +0 -6
- package/dist/chunks/help-0.5.11-6gsfx8d2.mjs +0 -1
- package/dist/chunks/hookChains-0.5.11-bhapw13m.mjs +0 -3
- package/dist/chunks/hooks-0.5.11-0dvnmawz.mjs +0 -1
- package/dist/chunks/hooks-0.5.11-g8txz43p.mjs +0 -79
- package/dist/chunks/ide-0.5.11-jy359nf0.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.11-5zmk2zrb.mjs +0 -1
- package/dist/chunks/index-0.5.11-03kr034g.mjs +0 -1
- package/dist/chunks/index-0.5.11-26k11p3q.mjs +0 -1
- package/dist/chunks/index-0.5.11-5jghqtgm.mjs +0 -1
- package/dist/chunks/index-0.5.11-77n6s5pd.mjs +0 -5
- package/dist/chunks/index-0.5.11-8tgnnkeg.mjs +0 -2
- package/dist/chunks/index-0.5.11-c87n0ja2.mjs +0 -1
- package/dist/chunks/index-0.5.11-dxwfmzg0.mjs +0 -1
- package/dist/chunks/index-0.5.11-fryacz82.mjs +0 -9
- package/dist/chunks/index-0.5.11-fwa6fmmd.mjs +0 -1
- package/dist/chunks/index-0.5.11-gh3srf06.mjs +0 -1
- package/dist/chunks/index-0.5.11-hyys7amt.mjs +0 -9
- package/dist/chunks/index-0.5.11-jc0yz0f6.mjs +0 -1
- package/dist/chunks/index-0.5.11-kkadf9jc.mjs +0 -17
- package/dist/chunks/index-0.5.11-kn9xxk7b.mjs +0 -1
- package/dist/chunks/index-0.5.11-m6chyzrf.mjs +0 -1
- package/dist/chunks/index-0.5.11-ns25c6zn.mjs +0 -30
- package/dist/chunks/index-0.5.11-qdb9ycw6.mjs +0 -1
- package/dist/chunks/index-0.5.11-s8sm3x4k.mjs +0 -1
- package/dist/chunks/index-0.5.11-v30jbmnt.mjs +0 -1
- package/dist/chunks/index-0.5.11-w050c48y.mjs +0 -1
- package/dist/chunks/index-0.5.11-x08rv5p7.mjs +0 -1
- package/dist/chunks/index-0.5.11-xpg8pe4r.mjs +0 -2
- package/dist/chunks/init-0.5.11-r4js2amw.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.11-r500cxp6.mjs +0 -1
- package/dist/chunks/ink-0.5.11-fwq9v8r4.mjs +0 -1
- package/dist/chunks/insights-0.5.11-am4b9b4f.mjs +0 -870
- package/dist/chunks/install-0.5.11-1z5ssnd0.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.11-9x845nn3.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.11-314pskhy.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.11-bkpe80da.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.11-jjv3m46r.mjs +0 -1
- package/dist/chunks/keybindings-0.5.11-w27m8a4f.mjs +0 -2
- package/dist/chunks/knowledge-0.5.11-m1jjfbrr.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.11-byv82xqt.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.11-77hzappy.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.11-8t1g8hx2.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.11-rsryd2ca.mjs +0 -1
- package/dist/chunks/log-0.5.11-v6s8asrk.mjs +0 -1
- package/dist/chunks/main-0.5.11-g5p3688x.mjs +0 -1
- package/dist/chunks/managedEnv-0.5.11-sz59vy9h.mjs +0 -1
- package/dist/chunks/mcp-0.5.11-1j37gyr0.mjs +0 -4
- package/dist/chunks/mcp-0.5.11-eg4n7meb.mjs +0 -17
- package/dist/chunks/mcp-0.5.11-mkvd43ta.mjs +0 -1
- package/dist/chunks/mcpb-0.5.11-8wsgzfsz.mjs +0 -1
- package/dist/chunks/memory-0.5.11-9a7ygpmz.mjs +0 -3
- package/dist/chunks/mobile-0.5.11-zw5vchq9.mjs +0 -2
- package/dist/chunks/model-0.5.11-fadfdvgs.mjs +0 -2
- package/dist/chunks/model-0.5.11-x0rspzhg.mjs +0 -1
- package/dist/chunks/node-0.5.11-egbs37er.mjs +0 -12
- package/dist/chunks/oauth-0.5.11-ef2e98vw.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.11-vs9j1ah7.mjs +0 -14
- package/dist/chunks/output-style-0.5.11-31fqw52q.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.5.11-s3t77wxd.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.11-ncbcb45y.mjs +0 -1
- package/dist/chunks/parser-0.5.11-d4kafyq6.mjs +0 -1
- package/dist/chunks/passes-0.5.11-neyvc48p.mjs +0 -1
- package/dist/chunks/permissions-0.5.11-ctbpkyfj.mjs +0 -3
- package/dist/chunks/plan-0.5.11-ehpxpt94.mjs +0 -1
- package/dist/chunks/plist-0.5.11-9dnpvdsc.mjs +0 -1
- package/dist/chunks/plugin-0.5.11-w8gmb1nh.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.11-w10xjq2y.mjs +0 -1
- package/dist/chunks/plugins-0.5.11-mbr36d35.mjs +0 -9
- package/dist/chunks/preActionHook-0.5.11-e43np4a7.mjs +0 -2
- package/dist/chunks/print-0.5.11-n103qj4a.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.11-yfawwnqs.mjs +0 -1
- package/dist/chunks/process-0.5.11-1xw1qddm.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.11-f3tacdey.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.11-hrhgven3.mjs +0 -9
- package/dist/chunks/prompt-0.5.11-gsj4s4br.mjs +0 -1
- package/dist/chunks/prompt-0.5.11-zyr95pjq.mjs +0 -1
- package/dist/chunks/prompts-0.5.11-f3625yfw.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.11-a0ksae90.mjs +0 -13
- package/dist/chunks/provider-0.5.11-4rg89nse.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.11-e8neqwrk.mjs +0 -1
- package/dist/chunks/providerValidation-0.5.11-p09gpn3v.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.5.11-3x48xvqs.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.5.11-p3djfm32.mjs +0 -34
- package/dist/chunks/registry-0.5.11-evj7atta.mjs +0 -1
- package/dist/chunks/release-notes-0.5.11-k58zfyrp.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.11-ab84fv3b.mjs +0 -2
- package/dist/chunks/remote-env-0.5.11-zgj86xbg.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.11-j2sn8dwd.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.11-2fzc66s9.mjs +0 -1
- package/dist/chunks/rename-0.5.11-ty27xf9f.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.11-69hftvr7.mjs +0 -1
- package/dist/chunks/replLauncher-0.5.11-vavj4t5g.mjs +0 -1
- package/dist/chunks/resume-0.5.11-7smh6we7.mjs +0 -2
- package/dist/chunks/rewind-0.5.11-qsvc0s43.mjs +0 -1
- package/dist/chunks/rootOptions-0.5.11-7d4xe18h.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.11-q07733sx.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.11-2shdwkx7.mjs +0 -1
- package/dist/chunks/session-0.5.11-tk487p5z.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.11-qa9cqfqk.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.11-ebvvszyz.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.11-gy55mmnv.mjs +0 -1
- package/dist/chunks/settings-0.5.11-jgag6j90.mjs +0 -1
- package/dist/chunks/setup-0.5.11-ryyk08k5.mjs +0 -5
- package/dist/chunks/sinks-0.5.11-f43swkmw.mjs +0 -1
- package/dist/chunks/skills-0.5.11-jby6d3qr.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.11-23ge2aqg.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.11-kmwcprea.mjs +0 -1
- package/dist/chunks/state-0.5.11-agmeq9ee.mjs +0 -1
- package/dist/chunks/stats-0.5.11-cpjajj5w.mjs +0 -6
- package/dist/chunks/status-0.5.11-2xk50ttd.mjs +0 -1
- package/dist/chunks/stickers-0.5.11-p3497hz9.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.11-6dykv4yq.mjs +0 -1
- package/dist/chunks/tasks-0.5.11-n91zs4e1.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.11-6m3x2may.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.11-9kjfr863.mjs +0 -1
- package/dist/chunks/teleport-0.5.11-4b9y25zn.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.11-8few84ad.mjs +0 -1
- package/dist/chunks/theme-0.5.11-bncyd59f.mjs +0 -1
- package/dist/chunks/thinkback-0.5.11-9ka6qndz.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.11-2yb4ahzb.mjs +0 -1
- package/dist/chunks/toolPool-0.5.11-3g5t55gv.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.11-435rw828.mjs +0 -1
- package/dist/chunks/tools-0.5.11-5w8q65t2.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.11-et6r85tm.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.11-cqg5qyp6.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.11-9j3gxxh7.mjs +0 -4
- package/dist/chunks/update-0.5.11-fpmdjwwt.mjs +0 -86
- package/dist/chunks/upgrade-0.5.11-0n8zenbt.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.11-zt41cjzx.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.11-jted8zbt.mjs +0 -1
- package/dist/chunks/usage-0.5.11-a52s5bgj.mjs +0 -1
- package/dist/chunks/util-0.5.11-gb69vaxs.mjs +0 -1
- package/dist/chunks/utils-0.5.11-h1m9vt64.mjs +0 -1
- package/dist/chunks/vim-0.5.11-1h4tqzvw.mjs +0 -1
- package/dist/chunks/watcher-0.5.11-6r2epj25.mjs +0 -1
- package/dist/chunks/wiki-0.5.11-85fb0h4p.mjs +0 -132
- package/dist/chunks/worktree-0.5.11-n8k8r06z.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.11-2xed052w.mjs +0 -1
- package/dist/chunks/wrapper-0.5.11-sgchnzeq.mjs +0 -7
- /package/dist/chunks/{cli-0.5.11-x3t0d2vm.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.11-b448985z.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.11-7grk38mj.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bw as I,Cw as P,Fw as t,Kn as W,Ln as n}from"./cli-0.5.11-6vqz68v0.mjs";import{JZ as H,KZ as p}from"./cli-0.5.11-1azjwqgg.mjs";import{LZ as C,NZ as i}from"./cli-0.5.11-wafsp0ws.mjs";import{F3 as R,L3 as V,d4 as l,e3 as v,n0 as S,s0 as c}from"./cli-0.5.11-fydbgnx6.mjs";import{Bca as D,Jaa as E,Jca as m,Maa as X,cca as T,dca as Y,eba as O,gaa as q,haa as u,jca as y,mca as k,pca as g}from"./cli-0.5.11-73qsyep8.mjs";import{Oda as G,Qda as f,Rda as $,Sda as h}from"./cli-0.5.11-m6mcarks.mjs";import{Yea as Z,bfa as _,cfa as M}from"./cli-0.5.11-0k52dqga.mjs";import{fga as x,iga as b}from"./cli-0.5.11-j4hdhvj9.mjs";import{Dna as A,lna as Q}from"./cli-0.5.11-dz7nvwja.mjs";import{aoa as U}from"./cli-0.5.11-hph6a44c.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
-
export{Yj as Kb,r as Lb};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Xma as K,kna as Y}from"./cli-0.5.11-c6rcvt4z.mjs";import{aoa as X}from"./cli-0.5.11-hph6a44c.mjs";function T(j){return j instanceof Q||j instanceof K||j instanceof Error&&j.name==="AbortError"}function D(j,z){return j instanceof Error&&j.message===z}function U(j){return j instanceof Error?j:Error(String(j))}function B(j){return j instanceof Error?j.message:String(j)}function V(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function O(j){return V(j)==="ENOENT"}function P(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function R(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
|
|
2
|
-
`),H=G[0]??j.message,J=G.slice(1).filter((W)=>W.trim().startsWith("at "));if(J.length<=z)return j.stack;return[H,...J.slice(0,z)].join(`
|
|
3
|
-
`)}function b(j){let z=V(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function N(j){let z=B(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var Z,_,Q,$,q,v,w;var I=X(()=>{Y();Z=class Z extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};_=class _ extends Error{};Q=class Q extends Error{constructor(j){super(j);this.name="AbortError"}};$=class $ extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};q=class q extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};v=class v extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};w=class w extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
|
|
4
|
-
export{Z as pga,_ as qga,Q as rga,T as sga,$ as tga,q as uga,v as vga,w as wga,D as xga,U as yga,B as zga,V as Aga,O as Bga,P as Cga,R as Dga,b as Ega,N as Fga,I as Gga};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{Jy as k,Kh as $,Ky as I,Nh as m,SN as a,kN as F,kv as U,mv as h,yA as A,zA as p,zN as L}from"./cli-0.5.11-6vqz68v0.mjs";import{b0 as O,c0 as f}from"./cli-0.5.11-fydbgnx6.mjs";import{Tfa as S,Xfa as E}from"./cli-0.5.11-j4hdhvj9.mjs";import{Ega as b,Gga as T}from"./cli-0.5.11-t8q2hmsy.mjs";import{Jga as y,Wga as C}from"./cli-0.5.11-f524x1te.mjs";import{aoa as N}from"./cli-0.5.11-hph6a44c.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
|
-
|
|
3
|
-
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
|
-
|
|
5
|
-
The file {{docPath}} has already been read for you. Here are its current contents:
|
|
6
|
-
<current_doc_content>
|
|
7
|
-
{{docContents}}
|
|
8
|
-
</current_doc_content>
|
|
9
|
-
|
|
10
|
-
Document title: {{docTitle}}
|
|
11
|
-
{{customInstructions}}
|
|
12
|
-
|
|
13
|
-
Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
|
|
14
|
-
|
|
15
|
-
CRITICAL RULES FOR EDITING:
|
|
16
|
-
- Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
|
|
17
|
-
- If there's an italicized line immediately after the header, preserve it exactly as-is
|
|
18
|
-
- Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
|
|
19
|
-
- Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
|
|
20
|
-
- Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
|
|
21
|
-
- Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
|
|
22
|
-
- Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
|
|
23
|
-
- Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
|
|
24
|
-
|
|
25
|
-
DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
|
|
26
|
-
- BE TERSE. High signal only. No filler words or unnecessary elaboration.
|
|
27
|
-
- Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
|
|
28
|
-
- Do NOT duplicate information that's already obvious from reading the source code
|
|
29
|
-
- Do NOT document every function, parameter, or line number reference
|
|
30
|
-
- Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
|
|
31
|
-
- Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
|
|
32
|
-
|
|
33
|
-
What TO document:
|
|
34
|
-
- High-level architecture and system design
|
|
35
|
-
- Non-obvious patterns, conventions, or gotchas
|
|
36
|
-
- Key entry points and where to start reading code
|
|
37
|
-
- Important design decisions and their rationale
|
|
38
|
-
- Critical dependencies or integration points
|
|
39
|
-
- References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
|
|
40
|
-
|
|
41
|
-
What NOT to document:
|
|
42
|
-
- Anything obvious from reading the code itself
|
|
43
|
-
- Exhaustive lists of files, functions, or parameters
|
|
44
|
-
- Step-by-step implementation details
|
|
45
|
-
- Low-level code mechanics
|
|
46
|
-
- Information already in CLAUDE.md or other project docs
|
|
47
|
-
|
|
48
|
-
Use the Edit tool with file_path: {{docPath}}
|
|
49
|
-
|
|
50
|
-
REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
|
|
51
|
-
|
|
52
|
-
DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
|
|
53
|
-
The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
|
|
54
|
-
|
|
55
|
-
"${J}"
|
|
56
|
-
|
|
57
|
-
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
|
|
58
|
-
export{Xw as Lg,Zw as Mg,s as Ng};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{AE as M,Jt as J,Kt as Z,NC as L,OC as h,zE as z}from"./cli-0.5.11-6vqz68v0.mjs";import{_V as X}from"./cli-0.5.11-dpbhsnm8.mjs";import{EZ as W}from"./cli-0.5.11-9gbtz4tf.mjs";import{Tla as H,rma as V}from"./cli-0.5.11-tyzwy8ba.mjs";import{Yna as D,aoa as U}from"./cli-0.5.11-hph6a44c.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
-
export{v as rg,A as sg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mga as q,Wga as U}from"./cli-0.5.11-f524x1te.mjs";import{$na as L,aoa as X}from"./cli-0.5.11-hph6a44c.mjs";import{AsyncLocalStorage as F}from"async_hooks";function G(){return O.getStore()}function Y(z,B){return O.run(z,B)}function Z(){return O.getStore()!==void 0}function $(z){return{...z,isInProcess:!0}}var O;var Q=X(()=>{O=new F});var y={};L(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>b,runWithTeammateContext:()=>Y,isTeammate:()=>u,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Z,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>f,getTeamName:()=>h,getParentSessionId:()=>_,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>E,createTeammateContext:()=>$,clearDynamicTeamContext:()=>j});function _(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function b(z){D=z}function j(){D=null}function v(){return D}function E(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function h(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function u(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function f(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return q(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=E(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((V)=>{let N={...V.tasks};for(let W of H){let K=N[W];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[W]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...V,tasks:N}})})}var D=null;var g=X(()=>{Q();U();Q()});
|
|
2
|
-
export{G as $T,Y as aU,Z as bU,$ as cU,Q as dU,_ as eU,v as fU,E as gU,A as hU,h as iU,u as jU,f as kU,w as lU,S as mU,P as nU,I as oU,l as pU,y as qU,g as rU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mh as R,oh as y,ph as v}from"./cli-0.5.11-jbh1h99z.mjs";import{YX as E,_V as c,tX as K}from"./cli-0.5.11-dpbhsnm8.mjs";import{AZ as O,BZ as N,CZ as M,DZ as U}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as G}from"./cli-0.5.11-9gbtz4tf.mjs";import{Maa as L,eba as b}from"./cli-0.5.11-73qsyep8.mjs";import{Uca as Z,eda as W}from"./cli-0.5.11-fkv6m8b0.mjs";import{ffa as p}from"./cli-0.5.11-aa4nqg2h.mjs";import{Yna as F,aoa as j}from"./cli-0.5.11-hph6a44c.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
|
|
2
|
-
export{f as Mf,r as Nf,n as Of,l as Pf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FJ as V,fJ as C,pJ as N,yJ as $,zJ as k}from"./cli-0.5.11-6vqz68v0.mjs";import{YX as D,_V as P,rX as f,tX as t,xX as v}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as n,CZ as i,DZ as M}from"./cli-0.5.11-ffsf3kp2.mjs";import{Yna as w,aoa as L}from"./cli-0.5.11-hph6a44c.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
|
|
2
|
-
export{J as yg,z as zg};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{o as f}from"./cli-0.5.11-wv71k7xf.mjs";import{pr as F,qr as i}from"./cli-0.5.11-6vqz68v0.mjs";import{lR as T,oR as e,pR as k,qR as z,vR as d}from"./cli-0.5.11-67nc1re2.mjs";import{h4 as W,k4 as m,r4 as y,s4 as U,x4 as c}from"./cli-0.5.11-j2vqwct6.mjs";import{M6 as Z,O6 as R}from"./cli-0.5.11-73qsyep8.mjs";import{Oda as V,Qda as I,Rda as N,Sda as v}from"./cli-0.5.11-m6mcarks.mjs";import{bea as E,mea as b}from"./cli-0.5.11-m3bm720s.mjs";import{dfa as q,ffa as h}from"./cli-0.5.11-aa4nqg2h.mjs";import{Kfa as O,Pfa as p,fga as Y,iga as _}from"./cli-0.5.11-j4hdhvj9.mjs";import{Mga as H,Wga as w}from"./cli-0.5.11-f524x1te.mjs";import{Dna as s,lna as S}from"./cli-0.5.11-dz7nvwja.mjs";import{boa as u}from"./cli-0.5.11-hph6a44c.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();h();i();_();R();w();m();c();d();p();var g=`{"type":"keep_alive"}
|
|
2
|
-
`,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.5.11-sgchnzeq.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
|
|
3
|
-
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>A){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),JJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function YJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{j as a,BJ as b,L as c,XJ as d};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{aoa as V}from"./cli-0.5.11-hph6a44c.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
|
|
2
|
-
export{U0 as sma,E0 as tma,I0 as uma,D0 as vma,b as wma,T as xma,K as yma,z as zma,B as Ama,x as Bma,k as Cma,m as Dma,G as Ema,O as Fma,y as Gma,l as Hma,o as Ima,i as Jma,D as Kma,R as Lma,x0 as Mma,O0 as Nma,M as Oma,p0 as Pma,j6 as Qma,nq as Rma};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{aoa as C}from"./cli-0.5.11-hph6a44c.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
|
|
2
|
-
export{L as sh,M as th,N as uh,H as vh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Lm as E,Mm as m,Mn as l,Nm as Xq,Nn as Rq,On as i,Pn as Aq,gn as S,ln as Zq}from"./cli-0.5.11-6vqz68v0.mjs";import{Bca as D,D_ as vq,Jca as Qq,s_ as u,u_ as g,x_ as h,y_ as n}from"./cli-0.5.11-73qsyep8.mjs";import{Oda as d,Qda as Uq}from"./cli-0.5.11-m6mcarks.mjs";import{Kfa as P,Lfa as v,Pfa as f,Tfa as M,Xfa as y,fga as V,iga as e}from"./cli-0.5.11-j4hdhvj9.mjs";import{Aga as O,Bga as C,Gga as _,zga as W}from"./cli-0.5.11-t8q2hmsy.mjs";import{Dna as qq,lna as p}from"./cli-0.5.11-dz7nvwja.mjs";import{aoa as N}from"./cli-0.5.11-hph6a44c.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
-
export{Fq as ec,r as fc,nq as gc,lq as hc,Oq as ic,QQ as jc,XQ as kc,Dq as lc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ama as S,Bma as kQ,Cma as L,Dma as a,Ema as n5,Fma as t8,Gma as R5,Hma as C8,Ima as E,Jma as h8,Kma as P,Lma as x1,Mma as d,Nma as xQ,Oma as o,Pma as UQ,Qma as l5,Rma as xY,sma as _Q,tma as JJ,uma as v,vma as I1,wma as Y5,xma as N8,yma as q,zma as y}from"./cli-0.5.11-tkfz368s.mjs";import{$na as aQ,aoa as X}from"./cli-0.5.11-hph6a44c.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{I1();QQ=h$});function j$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=j$});function n$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=n$});function b$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=b$});function u$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<i$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new o(Z)}return Y.set(Q,J),this.size=Y.size,this}var i$=200,KQ;var BQ=X(()=>{I1();xQ();UQ();KQ=u$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var C1=X(()=>{I1();$Q();YQ();XQ();WQ();BQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function l$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var NQ=X(()=>{GQ=l$});function c$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=c$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=wQ;FQ=r});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function r$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=r$});function t$(Q,J,Y,Z,H,W){var x=Y&s$,U=Q.length,G=J.length;if(U!=G&&!(x&&G>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&a$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var s$=1,a$=2,s;var _1=X(()=>{RQ();DQ();VQ();s=t$});var e$,k1;var MQ=X(()=>{y();e$=q.Uint8Array,k1=e$});function QJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=$J});function FJ(Q,J,Y,Z,H,W,x){switch(Y){case zJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case wJ:if(Q.byteLength!=J.byteLength||!W(new k1(Q),new k1(J)))return!1;return!0;case XJ:case HJ:case UJ:return _Q(+Q,+J);case WJ:return Q.name==J.name&&Q.message==J.message;case KJ:case GJ:return Q==J+"";case xJ:var U=LQ;case BJ:var G=Z&YJ;if(U||(U=PQ),Q.size!=J.size&&!G)return!1;var K=x.get(Q);if(K)return K==J;Z|=ZJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case NJ:if(E1)return E1.call(Q)==E1.call(J)}return!1}var YJ=1,ZJ=2,XJ="[object Boolean]",HJ="[object Date]",WJ="[object Error]",xJ="[object Map]",UJ="[object Number]",KJ="[object RegExp]",BJ="[object Set]",GJ="[object String]",NJ="[object Symbol]",wJ="[object ArrayBuffer]",zJ="[object DataView]",CQ,E1,EQ;var vQ=X(()=>{kQ();MQ();JJ();_1();fQ();IQ();CQ=S?S.prototype:void 0,E1=CQ?CQ.valueOf:void 0;EQ=FJ});function RJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=RJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function DJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=DJ});function OJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=OJ});function VJ(){return[]}var AQ;var hQ=X(()=>{AQ=VJ});var MJ,LJ,jQ,fJ,nQ;var bQ=X(()=>{mQ();hQ();MJ=Object.prototype,LJ=MJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,fJ=!jQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(jQ(Q),function(J){return LJ.call(Q,J)})},nQ=fJ});function PJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=PJ});function IJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=IJ});function _J(Q){return O(Q)&&L(Q)==CJ}var CJ="[object Arguments]",v1;var TQ=X(()=>{a();m();v1=_J});var lQ,kJ,EJ,vJ,t;var d1=X(()=>{TQ();m();lQ=Object.prototype,kJ=lQ.hasOwnProperty,EJ=lQ.propertyIsEnumerable,vJ=v1(function(){return arguments}())?v1:function(Q){return O(Q)&&kJ.call(Q,"callee")&&!EJ.call(Q,"callee")},t=vJ});function dJ(){return!1}var cQ;var oQ=X(()=>{cQ=dJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,rQ,gJ,sQ,pJ,yJ,A;var g1=X(()=>{y();oQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,rQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,gJ=rQ&&rQ.exports===tQ,sQ=gJ?q.Buffer:void 0,pJ=sQ?sQ.isBuffer:void 0,yJ=pJ||cQ,A=yJ});function AJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&mJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,mJ,$1;var p1=X(()=>{mJ=/^(?:0|[1-9]\d*)$/;$1=AJ});function jJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,h;var J1=X(()=>{h=jJ});function B8(Q){return O(Q)&&h(Q.length)&&!!B[L(Q)]}var nJ="[object Arguments]",bJ="[object Array]",iJ="[object Boolean]",uJ="[object Date]",TJ="[object Error]",lJ="[object Function]",cJ="[object Map]",oJ="[object Number]",rJ="[object Object]",sJ="[object RegExp]",aJ="[object Set]",tJ="[object String]",eJ="[object WeakMap]",Q8="[object ArrayBuffer]",$8="[object DataView]",J8="[object Float32Array]",Y8="[object Float64Array]",Z8="[object Int8Array]",X8="[object Int16Array]",H8="[object Int32Array]",W8="[object Uint8Array]",x8="[object Uint8ClampedArray]",U8="[object Uint16Array]",K8="[object Uint32Array]",B,eQ;var Q5=X(()=>{a();J1();m();B={};B[J8]=B[Y8]=B[Z8]=B[X8]=B[H8]=B[W8]=B[x8]=B[U8]=B[K8]=!0;B[nJ]=B[bJ]=B[Q8]=B[iJ]=B[$8]=B[uJ]=B[TJ]=B[lJ]=B[cJ]=B[oJ]=B[rJ]=B[sJ]=B[aJ]=B[tJ]=B[eJ]=!1;eQ=B8});function G8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=G8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,w8,y1,z8,X1;var X5=X(()=>{N8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,w8=i&&i.exports===Z5,y1=w8&&Y5.process,z8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return y1&&y1.binding&&y1.binding("util")}catch(J){}}(),X1=z8});var H5,F8,H1;var S1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,F8=H5?$5(H5):eQ,H1=F8});function D8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],G=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,G))))U.push(K);return U}var R8,q8,W5;var x5=X(()=>{uQ();d1();M();g1();p1();S1();R8=Object.prototype,q8=R8.hasOwnProperty;W5=D8});function V8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||O8;return Q===Y}var O8,U5;var K5=X(()=>{O8=Object.prototype;U5=V8});function M8(Q,J){return function(Y){return Q(J(Y))}}var B5;var G5=X(()=>{B5=M8});var L8,N5;var w5=X(()=>{G5();L8=B5(Object.keys,Object),N5=L8});function I8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(P8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var f8,P8,z5;var F5=X(()=>{K5();w5();f8=Object.prototype,P8=f8.hasOwnProperty;z5=I8});function _8(Q){return Q!=null&&h(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{C8();J1();q5=_8});function k8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();D5();W1=k8});function E8(Q){return pQ(Q,W1,nQ)}var A1;var O5=X(()=>{yQ();bQ();m1();A1=E8});function p8(Q,J,Y,Z,H,W){var x=Y&v8,U=A1(Q),G=U.length,K=A1(J),F=K.length;if(G!=F&&!x)return!1;var z=G;while(z--){var N=U[z];if(!(x?N in J:g8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<G){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var l=Q.constructor,c=J.constructor;if(l!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof l=="function"&&l instanceof l&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var v8=1,d8,g8,V5;var M5=X(()=>{O5();d8=Object.prototype,g8=d8.hasOwnProperty;V5=p8});var y8,U1;var L5=X(()=>{x1();y();y8=P(q,"DataView"),U1=y8});var S8,K1;var f5=X(()=>{x1();y();S8=P(q,"Promise"),K1=S8});var m8,B1;var P5=X(()=>{x1();y();m8=P(q,"Set"),B1=m8});var A8,G1;var I5=X(()=>{x1();y();A8=P(q,"WeakMap"),G1=A8});var C5="[object Map]",j8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",n8,b8,i8,u8,T8,k,h1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();n8=E(U1),b8=E(d),i8=E(K1),u8=E(B1),T8=E(G1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||B1&&k(new B1)!=k5||G1&&k(new G1)!=E5)k=function(Q){var J=L(Q),Y=J==j8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case n8:return v5;case b8:return C5;case i8:return _5;case u8:return k5;case T8:return E5}return J};h1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),G=x?p5:h1(Q),K=U?p5:h1(J);G=G==g5?N1:G,K=K==g5?N1:K;var F=G==N1,z=K==N1,N=G==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,G,Y,Z,H,W);if(!(Y&l8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var l8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",c8,y5,S5;var m5=X(()=>{C1();_1();vQ();M5();d5();M();g1();S1();c8=Object.prototype,y5=c8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function a8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var G=U[0],K=Q[G],F=U[1];if(x&&U[2]){if(K===void 0&&!(G in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,G,Q,J,z);if(!(N===void 0?w1(F,K,r8|s8,Z,z):N))return!1}}return!0}var r8=1,s8=2,h5;var j5=X(()=>{C1();j1();h5=a8});function e8(Q){return Q===Q&&!n5(Q)}var z1;var n1=X(()=>{t8();z1=e8});function QY(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{n1();m1();b5=QY});function $Y(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var b1=X(()=>{F1=$Y});function JY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||h5(Y,Q,J)}}var u5;var T5=X(()=>{j5();i5();b1();u5=JY});function ZY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==YY}var YY="[object Symbol]",j;var R1=X(()=>{a();m();j=ZY});function WY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||j(Q))return!0;return HY.test(Q)||!XY.test(Q)||J!=null&&Q in Object(J)}var XY,HY,n;var q1=X(()=>{M();R1();XY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HY=/^\w*$/;n=WY});function KY(Q){var J=l5(Q,function(Z){if(Y.size===UY)Y.clear();return Z}),Y=J.cache;return J}var UY=500,c5;var o5=X(()=>{xY();c5=KY});var BY,GY,NY,r5;var s5=X(()=>{o5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GY=/\\(\\)?/g,NY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(GY,"$1"):Z||Y)}),J}),r5=NY});function wY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=wY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(j(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-zY?"-0":J}var zY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function FY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=FY});function RY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:r5(Z$(Q))}var D1;var i1=X(()=>{M();q1();s5();X$();D1=RY});function DY(Q){if(typeof Q=="string"||j(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=DY});function OY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var u1=X(()=>{i1();u();O1=OY});function VY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{u1();H$=VY});function MY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=MY});function LY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&h(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var B$=X(()=>{i1();d1();M();p1();J1();u();K$=LY});function fY(Q,J){return Q!=null&&K$(Q,J,x$)}var G$;var N$=X(()=>{U$();B$();G$=fY});function CY(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,PY|IY)}}var PY=1,IY=2,w$;var z$=X(()=>{j1();W$();N$();q1();n1();b1();u();w$=CY});function _Y(Q){return Q}var F$;var R$=X(()=>{F$=_Y});function kY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=kY});function EY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{u1();O$=EY});function vY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=vY});function dY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{T5();z$();R$();M();L$();f$=dY});function gY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=gY});function pY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=pY});import{randomUUID as T1}from"crypto";var k$=()=>{};function hX(){return l1}function jX(Q){l1=Q}function nX(Q){return V1.has(Q)?V1.get(Q):void 0}function bX(Q,J){V1.set(Q,J)}function iX(Q){return c1.get(Q)}function uX(Q,J){c1.set(Q,J)}function E$(){l1=null,V1.clear(),c1.clear()}function TX(){return o1}function lX(Q){o1=Q}function cX(){o1=void 0}var l1=null,V1,c1,o1;var v$=X(()=>{V1=new Map;c1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as yY}from"process";function J9(Q){return r1.add(Q),()=>r1.delete(Q)}function Y9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=yY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:T1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function Z9(){return $.sessionId}function X9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=T1(),$.sessionProjectDir=null,f1.emit($.sessionId),$.sessionId}function H9(){return $.parentSessionId}function W9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,f1.emit(Q)}function U9(){return $.sessionProjectDir}function K9(){return $.originalCwd}function B9(){return $.projectRoot}function G9(Q){$.originalCwd=Q.normalize("NFC")}function N9(Q){$.projectRoot=Q.normalize("NFC")}function w9(){return $.cwd}function z9(Q){$.cwd=Q.normalize("NFC")}function F9(){return $.directConnectServerUrl}function R9(Q){$.directConnectServerUrl=Q}function q9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function D9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function O9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function V9(){return $.totalCostUSD}function M9(){return $.totalAPIDuration}function L9(){return Date.now()-$.startTime}function f9(){return $.totalAPIDurationWithoutRetries}function P9(){return $.totalToolDuration}function I9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function C9(){return $.turnHookDurationMs}function _9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function k9(){$.turnHookDurationMs=0,$.turnHookCount=0}function E9(){return $.turnHookCount}function v9(){return $.turnToolDurationMs}function d9(){$.turnToolDurationMs=0,$.turnToolCount=0}function g9(){return $.turnToolCount}function p9(){return $.turnClassifierDurationMs}function y9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function S9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function m9(){return $.turnClassifierCount}function A9(){return $.statsStore}function h9(Q){$.statsStore=Q}function j9(Q){if(Q)S$();else s1=!0}function n9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function b9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function i9(){return $.totalLinesAdded}function u9(){return $.totalLinesRemoved}function T9(){return b(Object.values($.modelUsage),"inputTokens")}function m$(){return b(Object.values($.modelUsage),"outputTokens")}function l9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function c9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function o9(){return b(Object.values($.modelUsage),"webSearchRequests")}function r9(){return m$()-a1}function s9(){return t1}function a9(Q){a1=m$(),t1=Q,P1=0}function t9(){return P1}function e9(){P1++}function QH(){$.hasUnknownModelCost=!0}function $H(){return $.hasUnknownModelCost}function JH(){return $.lastMainRequestId}function YH(Q){$.lastMainRequestId=Q}function ZH(){return $.lastApiCompletionTimestamp}function XH(Q){$.lastApiCompletionTimestamp=Q}function HH(){$.pendingPostCompaction=!0}function WH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function xH(){return $.lastInteractionTime}function UH(){if(M1=!0,T)clearTimeout(T);T=setTimeout(()=>{M1=!1,T=void 0},A$),T.unref?.()}function KH(){return M1}async function BH(){while(M1)await new Promise((Q)=>setTimeout(Q,A$).unref?.())}function GH(){return $.modelUsage}function NH(Q){return $.modelUsage[Q]}function wH(){return $.mainLoopModelOverride}function zH(){return $.initialMainLoopModel}function FH(Q){$.mainLoopModelOverride=Q}function RH(Q){$.initialMainLoopModel=Q}function qH(){return $.sdkBetas}function DH(Q){$.sdkBetas=Q}function OH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function VH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function MH(){throw Error("resetStateForTests can only be called in tests")}function LH(){return $.modelStrings}function fH(Q){$.modelStrings=Q}function PH(){$.modelStrings=null}function IH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function CH(){return $.meter}function _H(){return $.sessionCounter}function kH(){return $.locCounter}function EH(){return $.prCounter}function vH(){return $.commitCounter}function dH(){return $.costCounter}function gH(){return $.tokenCounter}function pH(){return $.codeEditToolDecisionCounter}function yH(){return $.activeTimeCounter}function SH(){return $.loggerProvider}function mH(Q){$.loggerProvider=Q}function AH(){return $.eventLogger}function hH(Q){$.eventLogger=Q}function jH(){return $.meterProvider}function nH(Q){$.meterProvider=Q}function bH(){return $.tracerProvider}function iH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function uH(){return $.isInteractive}function TH(Q){$.isInteractive=Q}function lH(){return $.clientType}function cH(Q){$.clientType=Q}function oH(){return $.sdkAgentProgressSummariesEnabled}function rH(Q){$.sdkAgentProgressSummariesEnabled=Q}function sH(){return $.kairosActive}function aH(Q){$.kairosActive=Q,L1()}function tH(){return $.strictToolResultPairing}function eH(Q){$.strictToolResultPairing=Q}function Q4(){return $.userMsgOptIn}function $4(Q){$.userMsgOptIn=Q,L1()}function J4(){return $.sessionSource}function Y4(Q){$.sessionSource=Q}function Z4(){return $.questionPreviewFormat}function X4(Q){$.questionPreviewFormat=Q}function H4(){return $.agentColorMap}function W4(){return $.flagSettingsPath}function x4(Q){$.flagSettingsPath=Q}function U4(){return $.flagSettingsInline}function K4(Q){$.flagSettingsInline=Q}function B4(){return $.sessionIngressToken}function G4(Q){$.sessionIngressToken=Q}function N4(){return $.oauthTokenFromFd}function w4(Q){$.oauthTokenFromFd=Q}function z4(){return $.apiKeyFromFd}function F4(Q){$.apiKeyFromFd=Q}function R4(Q){$.lastAPIRequest=Q}function q4(){return $.lastAPIRequest}function D4(Q){$.lastAPIRequestMessages=Q}function O4(){return $.lastAPIRequestMessages}function V4(Q){$.lastClassifierRequests=Q}function M4(){return $.lastClassifierRequests}function L4(Q){$.cachedClaudeMdContent=Q}function f4(){return $.cachedClaudeMdContent}function P4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function I4(){return $.allowedSettingSources}function C4(Q){$.allowedSettingSources=Q}function _4(){return SY()&&$.clientType!=="claude-vscode"}function k4(Q){$.inlinePlugins=Q}function E4(){return $.inlinePlugins}function v4(Q){$.useCoworkPlugins=Q,E$()}function d4(){return $.useCoworkPlugins}function g4(Q){$.sessionBypassPermissionsMode=Q}function p4(){return $.sessionBypassPermissionsMode}function y4(Q){$.scheduledTasksEnabled=Q}function S4(){return $.scheduledTasksEnabled}function m4(){return $.sessionCronTasks}function A4(Q){$.sessionCronTasks.push(Q)}function h4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function j4(Q){$.sessionTrustAccepted=Q}function n4(){return $.sessionTrustAccepted}function b4(Q){$.sessionPersistenceDisabled=Q}function i4(){return $.sessionPersistenceDisabled}function u4(){return $.hasExitedPlanMode}function T4(Q){$.hasExitedPlanMode=Q}function l4(){return $.needsPlanModeExitAttachment}function c4(Q){$.needsPlanModeExitAttachment=Q}function o4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function r4(){return $.needsAutoModeExitAttachment}function s4(Q){$.needsAutoModeExitAttachment=Q}function a4(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function t4(){return $.lspRecommendationShownThisSession}function e4(Q){$.lspRecommendationShownThisSession=Q}function Q3(Q){$.initJsonSchema=Q}function $3(){return $.initJsonSchema}function J3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function Y3(){return $.registeredHooks}function Z3(){$.registeredHooks=null}function X3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function H3(){$.initJsonSchema=null,$.registeredHooks=null}function W3(){return $.planSlugCache}function x3(){return $.sessionCreatedTeams}function U3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function K3(){return $.teleportedSessionInfo}function B3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function G3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function N3(){return $.invokedSkills}function w3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function z3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function F3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function R3(Q,J){}function q3(){return mY}function D3(){return $.mainThreadAgentType}function O3(Q){$.mainThreadAgentType=Q}function V3(){return $.isRemoteMode}function M3(Q){$.isRemoteMode=Q}function L3(){return $.systemPromptSectionCache}function f3(Q,J){$.systemPromptSectionCache.set(Q,J)}function P3(){$.systemPromptSectionCache.clear()}function I3(){return $.lastEmittedDate}function C3(Q){$.lastEmittedDate=Q}function _3(){return $.additionalDirectoriesForClaudeMd}function k3(Q){$.additionalDirectoriesForClaudeMd=Q}function E3(){return $.allowedChannels}function v3(Q){$.allowedChannels=Q,L1()}function d3(){return $.hasDevChannels}function g3(Q){$.hasDevChannels=Q}function p3(){return $.largeSystemPromptDetected}function y3(Q){$.largeSystemPromptDetected=Q}function S3(){return $.afkModeHeaderLatched}function m3(Q){$.afkModeHeaderLatched=Q}function A3(){return $.fastModeHeaderLatched}function h3(Q){$.fastModeHeaderLatched=Q}function j3(){return $.thinkingClearLatched}function n3(Q){$.thinkingClearLatched=Q}function b3(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null}function i3(){return $.promptId}function u3(Q){$.promptId=Q}function T3(){return!1}function l3(){return null}var r1,$,f1,x9,s1=!1,a1=0,t1=null,P1=0,M1=!1,T,A$=150,mY;var AY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();f1=d$(),x9=f1.subscribe;mY=[]});
|
|
2
|
-
export{p as Xga,C1 as Yga,FQ as Zga,RQ as _ga,OQ as $ga,VQ as aha,k1 as bha,MQ as cha,PQ as dha,IQ as eha,dQ as fha,gQ as gha,w as hha,M as iha,pQ as jha,yQ as kha,SQ as lha,mQ as mha,AQ as nha,hQ as oha,nQ as pha,bQ as qha,O as rha,m as sha,t as tha,d1 as uha,A as vha,g1 as wha,$1 as xha,p1 as yha,$5 as zha,J5 as Aha,X1 as Bha,X5 as Cha,H1 as Dha,S1 as Eha,W5 as Fha,x5 as Gha,U5 as Hha,K5 as Iha,B5 as Jha,G5 as Kha,q5 as Lha,D5 as Mha,W1 as Nha,m1 as Oha,A1 as Pha,O5 as Qha,B1 as Rha,P5 as Sha,h1 as Tha,d5 as Uha,w1 as Vha,j1 as Wha,j as Xha,R1 as Yha,a5 as Zha,t5 as _ha,Z$ as $ha,X$ as aia,D1 as bia,i1 as cia,I as dia,u as eia,O1 as fia,u1 as gia,F$ as hia,R$ as iia,f$ as jia,P$ as kia,hX as lia,jX as mia,nX as nia,bX as oia,iX as pia,uX as qia,E$ as ria,TX as sia,lX as tia,cX as uia,v$ as via,d$ as wia,g$ as xia,J9 as yia,Y9 as zia,Z9 as Aia,X9 as Bia,H9 as Cia,W9 as Dia,x9 as Eia,U9 as Fia,K9 as Gia,B9 as Hia,G9 as Iia,N9 as Jia,w9 as Kia,z9 as Lia,F9 as Mia,R9 as Nia,q9 as Oia,D9 as Pia,O9 as Qia,V9 as Ria,M9 as Sia,L9 as Tia,f9 as Uia,P9 as Via,I9 as Wia,C9 as Xia,_9 as Yia,k9 as Zia,E9 as _ia,v9 as $ia,d9 as aja,g9 as bja,p9 as cja,y9 as dja,S9 as eja,m9 as fja,A9 as gja,h9 as hja,j9 as ija,n9 as jja,b9 as kja,i9 as lja,u9 as mja,T9 as nja,m$ as oja,l9 as pja,c9 as qja,o9 as rja,r9 as sja,s9 as tja,a9 as uja,t9 as vja,e9 as wja,QH as xja,$H as yja,JH as zja,YH as Aja,ZH as Bja,XH as Cja,HH as Dja,WH as Eja,xH as Fja,UH as Gja,KH as Hja,BH as Ija,GH as Jja,NH as Kja,wH as Lja,zH as Mja,FH as Nja,RH as Oja,qH as Pja,DH as Qja,OH as Rja,VH as Sja,MH as Tja,LH as Uja,fH as Vja,PH as Wja,IH as Xja,CH as Yja,_H as Zja,kH as _ja,EH as $ja,vH as aka,dH as bka,gH as cka,pH as dka,yH as eka,SH as fka,mH as gka,AH as hka,hH as ika,jH as jka,nH as kka,bH as lka,iH as mka,SY as nka,uH as oka,TH as pka,lH as qka,cH as rka,oH as ska,rH as tka,sH as uka,aH as vka,tH as wka,eH as xka,Q4 as yka,$4 as zka,J4 as Aka,Y4 as Bka,Z4 as Cka,X4 as Dka,H4 as Eka,W4 as Fka,x4 as Gka,U4 as Hka,K4 as Ika,B4 as Jka,G4 as Kka,N4 as Lka,w4 as Mka,z4 as Nka,F4 as Oka,R4 as Pka,q4 as Qka,D4 as Rka,O4 as Ska,V4 as Tka,M4 as Uka,L4 as Vka,f4 as Wka,P4 as Xka,I4 as Yka,C4 as Zka,_4 as _ka,k4 as $ka,E4 as ala,v4 as bla,d4 as cla,g4 as dla,p4 as ela,y4 as fla,S4 as gla,m4 as hla,A4 as ila,h4 as jla,j4 as kla,n4 as lla,b4 as mla,i4 as nla,u4 as ola,T4 as pla,l4 as qla,c4 as rla,o4 as sla,r4 as tla,s4 as ula,a4 as vla,t4 as wla,e4 as xla,Q3 as yla,$3 as zla,J3 as Ala,Y3 as Bla,Z3 as Cla,X3 as Dla,H3 as Ela,W3 as Fla,x3 as Gla,U3 as Hla,K3 as Ila,B3 as Jla,G3 as Kla,N3 as Lla,w3 as Mla,z3 as Nla,F3 as Ola,R3 as Pla,q3 as Qla,D3 as Rla,O3 as Sla,V3 as Tla,M3 as Ula,L3 as Vla,f3 as Wla,P3 as Xla,I3 as Yla,C3 as Zla,_3 as _la,k3 as $la,E3 as ama,v3 as bma,d3 as cma,g3 as dma,p3 as ema,y3 as fma,S3 as gma,m3 as hma,A3 as ima,h3 as jma,j3 as kma,n3 as lma,b3 as mma,i3 as nma,u3 as oma,T3 as pma,l3 as qma,AY as rma};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N3 as Z,Q3 as T,W3 as f,d4 as WB}from"./cli-0.5.11-fydbgnx6.mjs";import{E6 as O,F6 as BB,Maa as A,Yaa as v,eba as QB,w9 as _,x9 as KB}from"./cli-0.5.11-73qsyep8.mjs";import{pea as w,qea as JB}from"./cli-0.5.11-1bfxt461.mjs";import{Mga as F,Wga as e}from"./cli-0.5.11-f524x1te.mjs";import{Aia as R,Nha as I,Oha as c,Zha as M,_ha as m,hha as S,iha as s,rma as a}from"./cli-0.5.11-tyzwy8ba.mjs";import{Qma as q,Rma as t}from"./cli-0.5.11-tkfz368s.mjs";import{aoa as K}from"./cli-0.5.11-hph6a44c.mjs";function p(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=p});function u(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=u});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function i(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();c();U=i});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,d.cache.clear?.()}function TB(){W=null,Q=null,d.cache.clear?.(),g.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return g()}var W=null,Q=null,d,g;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();d=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),j=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:j,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});g=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
|
|
2
|
-
export{kB as yR,r as zR,vB as AR,TB as BR,g as CR,ZB as DR};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import{Ne as BY,Oe as Bz}from"./cli-0.5.11-4phhn68y.mjs";import{$f as cY,Zf as $Y,_f as yz,ag as mz}from"./cli-0.5.11-7z95akn7.mjs";import{Qg as qY,Rg as qz}from"./cli-0.5.11-27c1jc52.mjs";import{AD as wz,BO as lY,JD as B0,JP as nY,KD as MY,ML as gY,MP as XJ,NL as Lz,NP as GZ,OP as X0,Ur as eY,Vr as JK,XG as GY,aH as Gz,cQ as V0,cm as UJ,dm as UY,em as AJ,fm as XY,gm as NJ,hm as VY,lP as dY,uF as hY,vF as Tz,vp as Zz,wp as KK,zD as uY}from"./cli-0.5.11-6vqz68v0.mjs";import{uU as SY,vU as jz}from"./cli-0.5.11-h34yntmn.mjs";import{CV as pY,DV as Fz,gV as _Y,hV as Az,uV as $J,wV as KY}from"./cli-0.5.11-nkfafdwt.mjs";import{NX as xY,XW as bY,YX as U0,_V as f0,hW as LY,mX as fY,nW as IY,oW as Rz,oX as Ez,rX as b,tX as N}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as U,CZ as m,DZ as bJ}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as b0}from"./cli-0.5.11-9gbtz4tf.mjs";import{W1 as tY,w2 as ez}from"./cli-0.5.11-fydbgnx6.mjs";import{A4 as Cz,z4 as $0}from"./cli-0.5.11-w1rpmy1q.mjs";import{Bca as l0,Jca as mY,L7 as Mz,q8 as r0,s8 as tz,t7 as yY,yca as fJ}from"./cli-0.5.11-73qsyep8.mjs";import{Oca as S0,Pca as Hz,Rca as G0,ada as zY,bda as c0,eda as I0}from"./cli-0.5.11-fkv6m8b0.mjs";import{dfa as $,ffa as Nz}from"./cli-0.5.11-aa4nqg2h.mjs";import{Lfa as oY,Pfa as sz,fga as CJ,iga as oz}from"./cli-0.5.11-j4hdhvj9.mjs";import{Aia as wY,Gia as H0,rma as TY}from"./cli-0.5.11-tyzwy8ba.mjs";import{Yna as UZ,aoa as XZ}from"./cli-0.5.11-hph6a44c.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function rY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${rY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=iY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=nY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>jJ(Y)),gY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
|
|
2
|
-
${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
|
|
3
|
-
${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
|
|
4
|
-
${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=rY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
|
|
5
|
-
${K0}`:LJ+EJ,dimDescription:!0,value:j.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let j=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return j?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await dY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("tengu_session_search_toggled",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==A)fZ=async()=>{A.trim();return},J[94]=K,J[95]=O,J[96]=A,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==A)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==A||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=A,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==A)_Z=[A,V],J[102]=V,J[103]=A,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let A0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let j0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("tengu_agentic_search_cancelled",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==A||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)A.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("tengu_session_tag_filter_changed",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,j=Y.toLowerCase();if(j==="a"&&z.ctrl&&W)W(),$("tengu_session_all_projects_toggled",{enabled:!C});else if(j==="b"&&z.ctrl){let x=!c;BJ(x),$("tengu_session_branch_filter_toggled",{enabled:x})}else if(j==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("tengu_session_worktree_filter_toggled",{enabled:x})}else if(j==="/"&&q)h("search"),$("tengu_session_search_toggled",{enabled:!0});else if(j==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("tengu_session_rename_started",{});else if(j==="v"&&z.ctrl&&I)k(I),h("preview"),$("tengu_session_preview_opened",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("tengu_session_search_toggled",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=A,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==A||J[179]!==m0)sJ=U($Y,{query:A,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=A,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(hY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==A)YZ=Boolean(A.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=A,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==A0||J[211]!==R0||J[212]!==j0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:j0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("tengu_session_group_expanded",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let j=new Set(q);return j.delete(z),j})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:A0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=A0,J[211]=R0,J[212]=j0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(lY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,jY),...Z.messages.slice(-jY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var iY,R,Iz=2,bz=4,fz=2000,jY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();jz();mz();Az();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();Tz();CY();wz();AY();bJ();iY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
|
|
6
|
-
${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
|
|
7
|
-
`)}
|
|
8
|
-
|
|
9
|
-
Search query: "${Z}"
|
|
10
|
-
|
|
11
|
-
Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
|
|
12
|
-
|
|
13
|
-
You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
|
|
14
|
-
|
|
15
|
-
Each session may include:
|
|
16
|
-
- Title (display name or custom title)
|
|
17
|
-
- Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
|
|
18
|
-
- Branch (git branch name, shown as [branch: name])
|
|
19
|
-
- Summary (AI-generated summary)
|
|
20
|
-
- First message (beginning of the conversation)
|
|
21
|
-
- Transcript (excerpt of conversation content)
|
|
22
|
-
|
|
23
|
-
IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
|
|
24
|
-
|
|
25
|
-
For each session, consider (in order of priority):
|
|
26
|
-
1. Exact tag matches (highest priority - user explicitly categorized this session)
|
|
27
|
-
2. Partial tag matches or tag-related terms
|
|
28
|
-
3. Title matches (custom titles or first message content)
|
|
29
|
-
4. Branch name matches
|
|
30
|
-
5. Summary and transcript content matches
|
|
31
|
-
6. Semantic similarity and related concepts
|
|
32
|
-
|
|
33
|
-
CRITICAL: Be VERY inclusive in your matching. Include sessions that:
|
|
34
|
-
- Contain the query term anywhere in any field
|
|
35
|
-
- Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
|
|
36
|
-
- Discuss topics that could be related to the query
|
|
37
|
-
- Have transcripts that mention the concept even in passing
|
|
38
|
-
|
|
39
|
-
When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
|
|
40
|
-
|
|
41
|
-
Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
|
|
42
|
-
|
|
43
|
-
Respond with ONLY the JSON object, no markdown formatting:
|
|
44
|
-
{"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
|
|
45
|
-
export{YU as Ae,az as Be,QU as Ce,zK as De,WU as Ee,UK as Fe};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{Ci as L,QB as V,RB as $,SN as F,kN as X,op as O,pp as Z}from"./cli-0.5.11-6vqz68v0.mjs";import{aoa as Y}from"./cli-0.5.11-hph6a44c.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
|
|
2
|
-
|
|
3
|
-
IMPORTANT CONTEXT:
|
|
4
|
-
- You are a separate, lightweight agent spawned to answer this one question
|
|
5
|
-
- The main agent is NOT interrupted - it continues working independently in the background
|
|
6
|
-
- You share the conversation context but are a completely separate instance
|
|
7
|
-
- Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
|
|
8
|
-
|
|
9
|
-
CRITICAL CONSTRAINTS:
|
|
10
|
-
- You have NO tools available - you cannot read files, run commands, search, or take any actions
|
|
11
|
-
- This is a one-off response - there will be no follow-up turns
|
|
12
|
-
- You can ONLY provide information based on what you already know from the conversation context
|
|
13
|
-
- NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
|
|
14
|
-
- If you don't know the answer, say so - do not offer to look it up or investigate
|
|
15
|
-
|
|
16
|
-
Simply answer the question with the information you have.</system-reminder>
|
|
17
|
-
|
|
18
|
-
${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
|
|
19
|
-
|
|
20
|
-
`).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
|
|
21
|
-
export{W as bh,b as ch,C as dh};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{aoa as j}from"./cli-0.5.11-hph6a44c.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+z,H=D+1,D=q.indexOf(`
|
|
4
|
-
`,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
|
|
5
|
-
`);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
|
|
6
|
-
export{o as y4,O1 as z4,e as A4};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Sd as j,Td as w,Ud as _,Vd as D,Wd as L,Xd as A,Yd as O}from"./cli-0.5.11-h52bd7wh.mjs";import{An as R,Ay as W,Dn as b,Dy as V,FI as X,Fy as C,GI as I,wO as h,yO as y}from"./cli-0.5.11-6vqz68v0.mjs";import{A6 as N,Bca as U,Jca as S,z6 as Q}from"./cli-0.5.11-73qsyep8.mjs";import{dfa as K,ffa as v}from"./cli-0.5.11-aa4nqg2h.mjs";import{kga as x,oga as M}from"./cli-0.5.11-afsaw4w9.mjs";import{Gga as F,zga as B}from"./cli-0.5.11-t8q2hmsy.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as s,a as t,i as u,u as v,n as w,r as x};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Dh as dJ,VN as TJ,Ym as DJ,_m as cJ,rO as jJ,sO as ZV,vH as IJ,wH as BJ,xH as pJ}from"./cli-0.5.11-6vqz68v0.mjs";import{Bca as L,Jca as hJ,L7 as fJ,M$ as WJ,Maa as NJ,R6 as c,S6 as PJ,U7 as qJ,W$ as gJ,Y7 as mJ,eba as uJ,l7 as VJ,n7 as p}from"./cli-0.5.11-73qsyep8.mjs";import{pea as j,qea as kJ}from"./cli-0.5.11-1bfxt461.mjs";import{dfa as f,ffa as zJ}from"./cli-0.5.11-aa4nqg2h.mjs";import{Tfa as JJ,Xfa as bJ,fga as Q,iga as yJ}from"./cli-0.5.11-j4hdhvj9.mjs";import{Gga as SJ,zga as e}from"./cli-0.5.11-t8q2hmsy.mjs";import{wia as AJ,xia as wJ}from"./cli-0.5.11-tyzwy8ba.mjs";import{Yna as LJ,aoa as XJ}from"./cli-0.5.11-hph6a44c.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await y(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let H=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,H)W(),H=!1;await y(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let H=W.charCodeAt(Y);if(H>=97&&H<=122)V|=1<<H-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),H=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);H[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,X=[],N=-1/0,{paths:D,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?D[M]:q[M],E=B.indexOf(H[0]);if(E===-1)continue;b[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(H[A],u+1),E===-1)continue J;b[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(X.length===W&&_+g-R<=N)continue;let S=D[M],UJ=U[M],T=Y*16+g-R;T+=HJ(S,b[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,b[A],!1);if(T+=Math.max(0,32-(UJ>>2)),X.length<W){if(X.push({path:S,fuzzScore:T}),X.length===W)X.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=X[0].fuzzScore}else if(T>N){let A=0,F=X.length;while(A<F){let h=A+F>>1;if(X[h].fuzzScore<T)A=h+1;else F=h}X.splice(A,0,{path:S,fuzzScore:T}),X.shift(),N=X[0].fuzzScore}}X.sort((M,B)=>B.fuzzScore-M.fuzzScore);let I=X.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let B=X[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function y(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let H=Y.length;for(let _=0;_<Y.length;_++){let X=Y.charCodeAt(_);if(X===47||X===92){H=_;break}}let $=Y.slice(0,H);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,H)=>{let $=Y.length-H.length;if($!==0)return $;return Y<H?-1:Y>H?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,b;var QJ=XJ(()=>{b=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let H=J[Y];for(let $=0;$<H.length;$++)V=(V^H.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let H=0;H<Y.length;H++)V=(V^Y.charCodeAt(H))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],H=[...new Set([J,W])],$=KJ.default(),_=!1,X=H.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(X.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${X[q]}`)}let D=_?$:null;return n=D,s=Z,D}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),H=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-H}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
|
|
2
|
-
`).filter(Boolean),X=MJ(_,V,Y),N=await OJ(V,Y);if(N){let q=X.length;X=N.filter(X),Q(`[FileIndex] applied ignore patterns: ${q} -> ${X.length} files`)}C=X;let D=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${X.length} tracked files in ${D}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:X.length,tracked_count:X.length,untracked_count:0,duration_ms:D}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=G;k=c(p(),q,{timeout:1e4,cwd:V}).then(async(U)=>{if(x!==G)return;if(U.code===0){let m=U.stdout.trim().split(`
|
|
3
|
-
`).filter(Boolean),I=MJ(m,V,Y),w=await OJ(V,Y);if(w&&I.length>0){let z=I.length;I=w.filter(I),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${I.length} files`)}Q(`[FileIndex] background untracked fetch: ${I.length} files`),sJ(I)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return X}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(aJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await y(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function aJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let H=O.dirname(J[Y]);while(H!=="."&&!V.has(H)){let $=O.dirname(H);if($===H)break;V.add(H),H=$}}}async function iJ(J){return(await Promise.all(IJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function rJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await oJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;Q("[FileIndex] git ls-files returned null, falling back to ripgrep");let V=Date.now(),Y=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)Y.push("--no-ignore-vcs");let $=(await DJ(Y,".",J)).map((X)=>O.relative(j(),X)),_=Date.now()-V;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function tJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=WJ(),V=NJ(),Y=Z.respectGitignore??V.respectGitignore??!0,H=j(),[$,_]=await Promise.all([rJ(J,Y),iJ(H)]);ZJ=_;let X=[...$,..._],N=await FJ(X);$J=N;let D=[...N,...X],q=xJ(D);if(q!==i)await W.loadFromFileListAsync(D).done,i=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){L(Z)}return W}function eJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function vV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=eJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function JV(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(v)return;let J=nJ();if(K){if(!(J!==null&&J!==a)&&Date.now()-o<VV)return}let W=G,Z=Date.now();l(),v=tJ().then((V)=>{if(W!==G)return V;return v=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),L(V),W===G)v=null;return l()})}async function WV(){let J=JJ(),W=j();try{return(await J.readdir(W)).map((V)=>{let Y=O.join(W,V.name),H=O.relative(W,Y);return V.isDirectory()?H+O.sep:H})}catch(Z){return L(Z),[]}}async function GV(J,W=!1){if(!J&&!W)return[];if(WJ().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await jJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await WV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=v!==null;EJ();let Y=J,H="."+O.sep;if(J.startsWith(H))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=K?JV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return L(V),[]}}function RV(J,W,Z,V,Y,H){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let X=V+$.length;H(X)}var KJ,K=null,v=null,YJ,jV,G=0,k=null,C,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=15,VV=5000;var YV=XJ(()=>{pJ();QJ();zJ();uJ();kJ();yJ();SJ();PJ();bJ();fJ();ZV();hJ();mJ();cJ();gJ();wJ();KJ=LJ(dJ(),1);YJ=AJ(),jV=YJ.subscribe,C=[],ZJ=[],$J=[]});
|
|
4
|
-
export{jV as Eg,UV as Fg,vV as Gg,EJ as Hg,GV as Ig,RV as Jg,YV as Kg};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{rda as L,vda as O}from"./cli-0.5.11-a4mf9xhj.mjs";import{aoa as N}from"./cli-0.5.11-hph6a44c.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
|
|
2
|
-
`,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
|
|
3
|
-
export{S as ZX,J as _X,T as $X,U as aY,V as bY,W as cY,Q as dY};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tp as _,yQ as z}from"./cli-0.5.11-6vqz68v0.mjs";import{NZ as f}from"./cli-0.5.11-wafsp0ws.mjs";import{_2 as k,d4 as A,s0 as K}from"./cli-0.5.11-fydbgnx6.mjs";import{L7 as T,O6 as L,W$ as v,eba as x,k9 as W}from"./cli-0.5.11-73qsyep8.mjs";import{Oda as b,Qda as Q,Rda as q,Sda as V}from"./cli-0.5.11-m6mcarks.mjs";import{mea as H}from"./cli-0.5.11-m3bm720s.mjs";import{cfa as w}from"./cli-0.5.11-0k52dqga.mjs";import{ffa as O}from"./cli-0.5.11-aa4nqg2h.mjs";import{Gga as U}from"./cli-0.5.11-t8q2hmsy.mjs";import{rma as B,via as X}from"./cli-0.5.11-tyzwy8ba.mjs";import{aoa as G}from"./cli-0.5.11-hph6a44c.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
|
|
2
|
-
export{Y as wc};
|