@claudiolabs/claudin 0.6.12 → 0.6.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.6.13-372t6jvm.mjs +1 -0
- package/dist/chunks/App-0.6.13-qvfyfba9.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.13-6nmfyyev.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.13-b6yfhres.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.13-dyqtw95c.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.13-hjwa1fbn.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.13-dk52swdy.mjs +7 -0
- package/dist/chunks/Doctor-0.6.13-1a58bmer.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.6.13-2jsr1kdp.mjs +6 -0
- package/dist/chunks/Grove-0.6.13-ndwmcy2m.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.13-nf00ba9t.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.13-5tjcywmj.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.13-hfvttszy.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.13-8kny4cnv.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.13-kq8ksp1e.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.13-qk3hqkes.mjs +1 -0
- package/dist/chunks/REPL-0.6.13-61en5qve.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.13-3fqxexjm.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.13-62cd6tth.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.13-15xb363h.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.13-dsedgexe.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.13-9j8hn55r.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.13-8vwnn7q5.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.13-zh1xxj19.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.13-bxhrfq4g.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.13-czzs1epn.mjs +1 -0
- package/dist/chunks/add-dir-0.6.13-j5n5k274.mjs +1 -0
- package/dist/chunks/agents-0.6.13-0m0b4n5a.mjs +3 -0
- package/dist/chunks/agents-0.6.13-v7mba2z1.mjs +110 -0
- package/dist/chunks/api-0.6.13-1s3mg09p.mjs +1 -0
- package/dist/chunks/asciicast-0.6.13-3mbwg05w.mjs +1 -0
- package/dist/chunks/assistant-0.6.13-bg17bbaf.mjs +1 -0
- package/dist/chunks/auth-0.6.13-586trvnj.mjs +1 -0
- package/dist/chunks/auth-0.6.13-jkzs3jr4.mjs +1 -0
- package/dist/chunks/autoMode-0.6.13-9sxgpw8z.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.13-0rtsfmyq.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.13-dfn3gpk2.mjs +1 -0
- package/dist/chunks/branch-0.6.13-nncg27cq.mjs +4 -0
- package/dist/chunks/bridge-0.6.13-p1vtbdeq.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.13-99p1h4gg.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.13-jxfgwjry.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.13-fthkw7s3.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.13-zs37h6xx.mjs +1 -0
- package/dist/chunks/btw-0.6.13-hhztcxbv.mjs +1 -0
- package/dist/chunks/buddy-0.6.13-0j9feqm5.mjs +3 -0
- package/dist/chunks/cacache-0.6.13-kqpn2432.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.13-d98620ds.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.13-yktwg0rm.mjs +4 -0
- package/dist/chunks/caches-0.6.13-5s0az6ex.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.13-ecqnvr2j.mjs +1 -0
- package/dist/chunks/claudemd-0.6.13-yae0af2s.mjs +1 -0
- package/dist/chunks/clear-0.6.13-nqy8a9yn.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.13-72xf6n5m.mjs +1 -0
- package/dist/chunks/cli-0.6.13-004msxtb.mjs +2 -0
- package/dist/chunks/cli-0.6.13-03nk0m3d.mjs +24 -0
- package/dist/chunks/cli-0.6.13-05yxsqtw.mjs +2 -0
- package/dist/chunks/cli-0.6.13-0602v59h.mjs +2 -0
- package/dist/chunks/cli-0.6.13-0fqa9efa.mjs +2 -0
- package/dist/chunks/cli-0.6.13-0k53jyws.mjs +2 -0
- package/dist/chunks/cli-0.6.13-0q2ceerc.mjs +2 -0
- package/dist/chunks/cli-0.6.13-0xg54q0q.mjs +3 -0
- package/dist/chunks/cli-0.6.13-15925v1q.mjs +2 -0
- package/dist/chunks/cli-0.6.13-17fmkp6v.mjs +3 -0
- package/dist/chunks/cli-0.6.13-1ax2v1qb.mjs +24 -0
- package/dist/chunks/cli-0.6.13-1hj4de9z.mjs +18 -0
- package/dist/chunks/cli-0.6.13-1jhzkjnr.mjs +2 -0
- package/dist/chunks/cli-0.6.13-1pb6yp4f.mjs +2 -0
- package/dist/chunks/cli-0.6.13-27ey3345.mjs +17 -0
- package/dist/chunks/cli-0.6.13-2999v1f0.mjs +5 -0
- package/dist/chunks/cli-0.6.13-2d7gmnka.mjs +2 -0
- package/dist/chunks/cli-0.6.13-2k50jqzf.mjs +2 -0
- package/dist/chunks/cli-0.6.13-2s33ahe4.mjs +5420 -0
- package/dist/chunks/cli-0.6.13-31zhsxsz.mjs +2 -0
- package/dist/chunks/cli-0.6.13-35rszksn.mjs +2 -0
- package/dist/chunks/cli-0.6.13-3812a7q8.mjs +34 -0
- package/dist/chunks/cli-0.6.13-3c8w16xp.mjs +3 -0
- package/dist/chunks/cli-0.6.13-3w1r3c0v.mjs +2 -0
- package/dist/chunks/cli-0.6.13-45x35nyh.mjs +2 -0
- package/dist/chunks/cli-0.6.13-46hqxeb7.mjs +2 -0
- package/dist/chunks/cli-0.6.13-4hknb5dd.mjs +2 -0
- package/dist/chunks/cli-0.6.13-50wr9g3w.mjs +2 -0
- package/dist/chunks/cli-0.6.13-56b3061c.mjs +18 -0
- package/dist/chunks/cli-0.6.13-56j5q7d2.mjs +42 -0
- package/dist/chunks/cli-0.6.13-5gh7ptbm.mjs +4 -0
- package/dist/chunks/cli-0.6.13-5t9gd5mv.mjs +2 -0
- package/dist/chunks/cli-0.6.13-643zsnv9.mjs +2 -0
- package/dist/chunks/cli-0.6.13-667dsr1w.mjs +2 -0
- package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +2 -0
- package/dist/chunks/cli-0.6.13-79mne5jt.mjs +2 -0
- package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +2 -0
- package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +2 -0
- package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +3 -0
- package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +2 -0
- package/dist/chunks/cli-0.6.13-82datd4w.mjs +2 -0
- package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +2 -0
- package/dist/chunks/cli-0.6.13-881js45c.mjs +2 -0
- package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +2 -0
- package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +3 -0
- package/dist/chunks/cli-0.6.13-949racwr.mjs +7 -0
- package/dist/chunks/cli-0.6.13-94nwan0d.mjs +2 -0
- package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +2 -0
- package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +2 -0
- package/dist/chunks/cli-0.6.13-9wktvaax.mjs +50 -0
- package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +58 -0
- package/dist/chunks/cli-0.6.13-aekttw5a.mjs +2 -0
- package/dist/chunks/cli-0.6.13-ajc8203j.mjs +2 -0
- package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +2 -0
- package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +2 -0
- package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +16 -0
- package/dist/chunks/cli-0.6.13-b55baxv4.mjs +2 -0
- package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +2 -0
- package/dist/chunks/cli-0.6.13-c3452432.mjs +5 -0
- package/dist/chunks/cli-0.6.13-cc118njq.mjs +2 -0
- package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +2 -0
- package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +2 -0
- package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +2 -0
- package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +2 -0
- package/dist/chunks/cli-0.6.13-da6fhpes.mjs +133 -0
- package/dist/chunks/cli-0.6.13-dada1afp.mjs +6 -0
- package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +2 -0
- package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +2 -0
- package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +2 -0
- package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +2 -0
- package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +2 -0
- package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +2 -0
- package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +2 -0
- package/dist/chunks/cli-0.6.13-esv4y00y.mjs +2 -0
- package/dist/chunks/cli-0.6.13-etytm730.mjs +2 -0
- package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +4 -0
- package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +6 -0
- package/dist/chunks/cli-0.6.13-f67v536f.mjs +59 -0
- package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +2 -0
- package/dist/chunks/cli-0.6.13-fkaxh655.mjs +2 -0
- package/dist/chunks/cli-0.6.13-fspszw8w.mjs +2 -0
- package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +10 -0
- package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +2 -0
- package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +2 -0
- package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +4 -0
- package/dist/chunks/cli-0.6.13-g65dfg11.mjs +6 -0
- package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +2 -0
- package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +2 -0
- package/dist/chunks/cli-0.6.13-grrshx1z.mjs +2 -0
- package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +2 -0
- package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +2 -0
- package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +2 -0
- package/dist/chunks/cli-0.6.13-h5dej6se.mjs +3 -0
- package/dist/chunks/cli-0.6.13-hd0sd535.mjs +193 -0
- package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +12 -0
- package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +3 -0
- package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +2 -0
- package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +4 -0
- package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +133 -0
- package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +2 -0
- package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +2 -0
- package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +3 -0
- package/dist/chunks/cli-0.6.13-k0kyv254.mjs +2 -0
- package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +2 -0
- package/dist/chunks/cli-0.6.13-kdm4832x.mjs +2 -0
- package/dist/chunks/cli-0.6.13-kekrwb08.mjs +45 -0
- package/dist/chunks/cli-0.6.13-kmg491hy.mjs +2 -0
- package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +12 -0
- package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +3 -0
- package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +2 -0
- package/dist/chunks/cli-0.6.13-me17wefv.mjs +2 -0
- package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +2 -0
- package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +39 -0
- package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +2 -0
- package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +2 -0
- package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +15 -0
- package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +4 -0
- package/dist/chunks/cli-0.6.13-nqd696hv.mjs +2 -0
- package/dist/chunks/cli-0.6.13-nvcr131g.mjs +4 -0
- package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +8 -0
- package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +2 -0
- package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +3 -0
- package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +2 -0
- package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +3 -0
- package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +2 -0
- package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +2 -0
- package/dist/chunks/cli-0.6.13-prh9py3z.mjs +2 -0
- package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +2 -0
- package/dist/chunks/cli-0.6.13-q161snt1.mjs +2 -0
- package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +2 -0
- package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +2 -0
- package/dist/chunks/cli-0.6.13-q8qzja14.mjs +2 -0
- package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +2 -0
- package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +4 -0
- package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +2 -0
- package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +2 -0
- package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +2 -0
- package/dist/chunks/cli-0.6.13-qyd73z97.mjs +2 -0
- package/dist/chunks/cli-0.6.13-r043ksv1.mjs +1 -0
- package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +4 -0
- package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +2 -0
- package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +2 -0
- package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +2 -0
- package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +6 -0
- package/dist/chunks/cli-0.6.13-s2vxndky.mjs +2 -0
- package/dist/chunks/cli-0.6.13-s3r638fw.mjs +2 -0
- package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +4 -0
- package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +3 -0
- package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +2 -0
- package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +15 -0
- package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +2 -0
- package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +2 -0
- package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +2 -0
- package/dist/chunks/cli-0.6.13-tss2yk53.mjs +2 -0
- package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +2 -0
- package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +2 -0
- package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +17 -0
- package/dist/chunks/cli-0.6.13-v05nfcar.mjs +2 -0
- package/dist/chunks/cli-0.6.13-v160yjcc.mjs +2 -0
- package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +2 -0
- package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +2 -0
- package/dist/chunks/cli-0.6.13-v824ppa4.mjs +3 -0
- package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +2 -0
- package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +2 -0
- package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +2 -0
- package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +2 -0
- package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +2 -0
- package/dist/chunks/cli-0.6.13-w039mymy.mjs +2 -0
- package/dist/chunks/cli-0.6.13-w0qrn825.mjs +2 -0
- package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +2 -0
- package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +2 -0
- package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +5 -0
- package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +20 -0
- package/dist/chunks/cli-0.6.13-wtc8585b.mjs +2 -0
- package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +2 -0
- package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +2 -0
- package/dist/chunks/cli-0.6.13-xdedyafk.mjs +12 -0
- package/dist/chunks/cli-0.6.13-xf37gba3.mjs +21 -0
- package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +2 -0
- package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +2 -0
- package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +2 -0
- package/dist/chunks/cli-0.6.13-y20earfr.mjs +2 -0
- package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +2 -0
- package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +28 -0
- package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +2 -0
- package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +67 -0
- package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +2 -0
- package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +2 -0
- package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +2 -0
- package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +2 -0
- package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +9 -0
- package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +25 -0
- package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +15 -0
- package/dist/chunks/cli-0.6.13-ze0ah657.mjs +4 -0
- package/dist/chunks/cli-0.6.13-zktd03aq.mjs +2 -0
- package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +2 -0
- package/dist/chunks/client-0.6.13-apag8p3w.mjs +1 -0
- package/dist/chunks/color-0.6.13-m7e3xes9.mjs +1 -0
- package/dist/chunks/compact-0.6.13-064k380y.mjs +3 -0
- package/dist/chunks/config-0.6.13-2gskfa7r.mjs +1 -0
- package/dist/chunks/config-0.6.13-m7tbch3j.mjs +1 -0
- package/dist/chunks/constants-0.6.13-bq183whd.mjs +1 -0
- package/dist/chunks/context-0.6.13-4jm66js8.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +1 -0
- package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +1 -0
- package/dist/chunks/copy-0.6.13-11ksdws3.mjs +9 -0
- package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +1 -0
- package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +1 -0
- package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +1367 -0
- package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +1 -0
- package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +1 -0
- package/dist/chunks/diff-0.6.13-3qr723e3.mjs +1 -0
- package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +1 -0
- package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +1 -0
- package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +1 -0
- package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +1 -0
- package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +1 -0
- package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +1 -0
- package/dist/chunks/explorer-0.6.13-g670396m.mjs +1 -0
- package/dist/chunks/export-0.6.13-zytxcpn5.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +1 -0
- package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +1 -0
- package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +1 -0
- package/dist/chunks/git-0.6.13-r45r70q4.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +1 -0
- package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +4 -0
- package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +1 -0
- package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +1 -0
- package/dist/chunks/headless-0.6.13-gfageb5h.mjs +2 -0
- package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +6 -0
- package/dist/chunks/help-0.6.13-781b4zzf.mjs +1 -0
- package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +3 -0
- package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +1 -0
- package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +79 -0
- package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +1 -0
- package/dist/chunks/index-0.6.13-22g8yp33.mjs +1 -0
- package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +1 -0
- package/dist/chunks/index-0.6.13-3yrze12y.mjs +2 -0
- package/dist/chunks/index-0.6.13-4mx71hjt.mjs +2 -0
- package/dist/chunks/index-0.6.13-68g8rnf9.mjs +1 -0
- package/dist/chunks/index-0.6.13-6t8yz88d.mjs +1 -0
- package/dist/chunks/index-0.6.13-af1dgcmj.mjs +1 -0
- package/dist/chunks/index-0.6.13-afmvxwx2.mjs +1 -0
- package/dist/chunks/index-0.6.13-by0wfak3.mjs +9 -0
- package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +1 -0
- package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +1 -0
- package/dist/chunks/index-0.6.13-jte6phkv.mjs +1 -0
- package/dist/chunks/index-0.6.13-m632g3gy.mjs +1 -0
- package/dist/chunks/index-0.6.13-mwpm4arf.mjs +5 -0
- package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +30 -0
- package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +1 -0
- package/dist/chunks/index-0.6.13-ptnyngf8.mjs +1 -0
- package/dist/chunks/index-0.6.13-q3shbg14.mjs +1 -0
- package/dist/chunks/index-0.6.13-qbgadtxv.mjs +1 -0
- package/dist/chunks/index-0.6.13-sv4q66cp.mjs +1 -0
- package/dist/chunks/index-0.6.13-waxz0ekk.mjs +1 -0
- package/dist/chunks/index-0.6.13-why7ggz3.mjs +9 -0
- package/dist/chunks/index-0.6.13-y16k48ab.mjs +1 -0
- package/dist/chunks/init-0.6.13-4hnytb22.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +1 -0
- package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +1 -0
- package/dist/chunks/insights-0.6.13-jydg844c.mjs +870 -0
- package/dist/chunks/install-0.6.13-n2sd9y79.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +1 -0
- package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +2 -0
- package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +1 -0
- package/dist/chunks/log-0.6.13-k8w72xt1.mjs +1 -0
- package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +1 -0
- package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +1 -0
- package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +4 -0
- package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +17 -0
- package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +1 -0
- package/dist/chunks/memory-0.6.13-atsckryz.mjs +3 -0
- package/dist/chunks/model-0.6.13-0atttv57.mjs +1 -0
- package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +2 -0
- package/dist/chunks/node-0.6.13-x2bbeer9.mjs +12 -0
- package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +14 -0
- package/dist/chunks/output-style-0.6.13-m28me769.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +1 -0
- package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +1 -0
- package/dist/chunks/passes-0.6.13-q60h610m.mjs +1 -0
- package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +3 -0
- package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +1 -0
- package/dist/chunks/plan-0.6.13-jnph14bx.mjs +1 -0
- package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +1 -0
- package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +1 -0
- package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +2 -0
- package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +1 -0
- package/dist/chunks/process-0.6.13-38dsvzca.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +9 -0
- package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +1 -0
- package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +1 -0
- package/dist/chunks/prompts-0.6.13-702ak30b.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +13 -0
- package/dist/chunks/provider-0.6.13-2sx115qq.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +34 -0
- package/dist/chunks/registry-0.6.13-pstf339a.mjs +1 -0
- package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +2 -0
- package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +1 -0
- package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +1 -0
- package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +2 -0
- package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +1 -0
- package/dist/chunks/session-0.6.13-83jr96cj.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +1 -0
- package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +1 -0
- package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +5 -0
- package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +1 -0
- package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +1 -0
- package/dist/chunks/state-0.6.13-257cjw4h.mjs +1 -0
- package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +6 -0
- package/dist/chunks/status-0.6.13-cefspgtr.mjs +1 -0
- package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +1 -0
- package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +1 -0
- package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +1 -0
- package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +1 -0
- package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +1 -0
- package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +1 -0
- package/dist/chunks/tools-0.6.13-heefxcxe.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +69 -0
- package/dist/chunks/types-0.6.13-26eegce9.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +4 -0
- package/dist/chunks/update-0.6.13-tj94pp6r.mjs +86 -0
- package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +1 -0
- package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +1 -0
- package/dist/chunks/usage-0.6.13-whrgny68.mjs +1 -0
- package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +1 -0
- package/dist/chunks/utils-0.6.13-jybbphy0.mjs +1 -0
- package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +1 -0
- package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +1 -0
- package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +132 -0
- package/dist/chunks/worktree-0.6.13-efnvp677.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +1 -0
- package/dist/chunks/wrapper-0.6.13-w672jy5j.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.6.12-b2gfz5kv.mjs +0 -1
- package/dist/chunks/App-0.6.12-mh1ysgxg.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.12-r2wj56g6.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.12-vg6y5ha1.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.12-dhx63scb.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.12-rpt2b1wj.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.12-2arvz9mf.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.12-5htdzb3m.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.12-ta0sjcsf.mjs +0 -7
- package/dist/chunks/Doctor-0.6.12-mwbqw1rj.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.6.12-58rcsfy9.mjs +0 -6
- package/dist/chunks/Grove-0.6.12-tnpptv0x.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.12-ez4cgygb.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.12-d7dkg0t5.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.12-f05fw15j.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.12-rr1km3wx.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.12-75ts37c4.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.12-ggazg3xb.mjs +0 -1
- package/dist/chunks/REPL-0.6.12-230gxwk3.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.12-b6w9nxwe.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.12-1jqm9wpr.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.12-5rky61kj.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.12-zep0xyc2.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.12-wfr7mfew.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.12-v453hg0b.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.12-p0s6m4y8.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.12-k76hznv2.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.12-sv3z8anm.mjs +0 -1
- package/dist/chunks/add-dir-0.6.12-wnbxt7vy.mjs +0 -1
- package/dist/chunks/agents-0.6.12-b9dy00ag.mjs +0 -110
- package/dist/chunks/agents-0.6.12-ycqzf9j5.mjs +0 -3
- package/dist/chunks/api-0.6.12-14eqhy3z.mjs +0 -1
- package/dist/chunks/asciicast-0.6.12-vbsq9mgp.mjs +0 -1
- package/dist/chunks/assistant-0.6.12-5p1f9bbw.mjs +0 -1
- package/dist/chunks/auth-0.6.12-pa89ctgf.mjs +0 -1
- package/dist/chunks/auth-0.6.12-wk2y5d3t.mjs +0 -1
- package/dist/chunks/autoMode-0.6.12-y4rjrey5.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.12-shtexsmc.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.12-r98xwf4x.mjs +0 -1
- package/dist/chunks/branch-0.6.12-bwqzpwr3.mjs +0 -4
- package/dist/chunks/bridge-0.6.12-j1y5hhxp.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.12-jedyxebh.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.12-15wd9gtx.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.12-02c465aw.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.12-nmffskv4.mjs +0 -1
- package/dist/chunks/btw-0.6.12-zvse57mq.mjs +0 -1
- package/dist/chunks/buddy-0.6.12-2qsbgdn6.mjs +0 -3
- package/dist/chunks/cacache-0.6.12-fhcd4wsf.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.12-n2cm80z4.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.12-h45pnvr7.mjs +0 -4
- package/dist/chunks/caches-0.6.12-cfaw7jb1.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.12-6rnj0zw7.mjs +0 -1
- package/dist/chunks/claudemd-0.6.12-e90nb8vx.mjs +0 -1
- package/dist/chunks/clear-0.6.12-gadvgvp6.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.12-91ykpa58.mjs +0 -1
- package/dist/chunks/cli-0.6.12-0ghv260y.mjs +0 -2
- package/dist/chunks/cli-0.6.12-0hjd35q4.mjs +0 -12
- package/dist/chunks/cli-0.6.12-0t5tsk2y.mjs +0 -2
- package/dist/chunks/cli-0.6.12-0xpfj4aq.mjs +0 -4
- package/dist/chunks/cli-0.6.12-127pt3vk.mjs +0 -2
- package/dist/chunks/cli-0.6.12-14b2bpdj.mjs +0 -2
- package/dist/chunks/cli-0.6.12-175knjzx.mjs +0 -2
- package/dist/chunks/cli-0.6.12-1c92shz1.mjs +0 -2
- package/dist/chunks/cli-0.6.12-1f7vq52y.mjs +0 -2
- package/dist/chunks/cli-0.6.12-1qrp0zx7.mjs +0 -2
- package/dist/chunks/cli-0.6.12-1rc09wxd.mjs +0 -2
- package/dist/chunks/cli-0.6.12-21j45ejg.mjs +0 -59
- package/dist/chunks/cli-0.6.12-25h7f74n.mjs +0 -24
- package/dist/chunks/cli-0.6.12-263jrtsj.mjs +0 -58
- package/dist/chunks/cli-0.6.12-2g0n7jpe.mjs +0 -5
- package/dist/chunks/cli-0.6.12-2pyqs7x9.mjs +0 -2
- package/dist/chunks/cli-0.6.12-2stzmmb2.mjs +0 -4
- package/dist/chunks/cli-0.6.12-2vrk1saq.mjs +0 -2
- package/dist/chunks/cli-0.6.12-33ff6hv9.mjs +0 -4
- package/dist/chunks/cli-0.6.12-36dzac4h.mjs +0 -2
- package/dist/chunks/cli-0.6.12-3wqd066g.mjs +0 -2
- package/dist/chunks/cli-0.6.12-47h7weys.mjs +0 -2
- package/dist/chunks/cli-0.6.12-49tkzshk.mjs +0 -2
- package/dist/chunks/cli-0.6.12-4d51yvzh.mjs +0 -2
- package/dist/chunks/cli-0.6.12-4ty0ah2n.mjs +0 -2
- package/dist/chunks/cli-0.6.12-4x5vs5t2.mjs +0 -2
- package/dist/chunks/cli-0.6.12-5abky5z4.mjs +0 -50
- package/dist/chunks/cli-0.6.12-5kxkvnxa.mjs +0 -2
- package/dist/chunks/cli-0.6.12-5qypvh7v.mjs +0 -2
- package/dist/chunks/cli-0.6.12-5ybc0q7n.mjs +0 -2
- package/dist/chunks/cli-0.6.12-609r2xeh.mjs +0 -21
- package/dist/chunks/cli-0.6.12-63zpmh9f.mjs +0 -2
- package/dist/chunks/cli-0.6.12-679e9ptm.mjs +0 -2
- package/dist/chunks/cli-0.6.12-70c7xde0.mjs +0 -2
- package/dist/chunks/cli-0.6.12-741zt03r.mjs +0 -2
- package/dist/chunks/cli-0.6.12-74k7zjxx.mjs +0 -3
- package/dist/chunks/cli-0.6.12-75ddftht.mjs +0 -9
- package/dist/chunks/cli-0.6.12-78e7hkq9.mjs +0 -5
- package/dist/chunks/cli-0.6.12-7bg5rk6a.mjs +0 -3
- package/dist/chunks/cli-0.6.12-7eeaap1p.mjs +0 -4
- package/dist/chunks/cli-0.6.12-7g6v5zs9.mjs +0 -3
- package/dist/chunks/cli-0.6.12-7mz9jxfa.mjs +0 -2
- package/dist/chunks/cli-0.6.12-7nbe9chc.mjs +0 -3
- package/dist/chunks/cli-0.6.12-865yx2ff.mjs +0 -133
- package/dist/chunks/cli-0.6.12-8fpq2hqy.mjs +0 -2
- package/dist/chunks/cli-0.6.12-8k03anbf.mjs +0 -6
- package/dist/chunks/cli-0.6.12-8mb2h24g.mjs +0 -2
- package/dist/chunks/cli-0.6.12-8q4g5rxc.mjs +0 -133
- package/dist/chunks/cli-0.6.12-8sxh430a.mjs +0 -2
- package/dist/chunks/cli-0.6.12-90nvdzxq.mjs +0 -45
- package/dist/chunks/cli-0.6.12-967g034j.mjs +0 -2
- package/dist/chunks/cli-0.6.12-96crx44d.mjs +0 -2
- package/dist/chunks/cli-0.6.12-9jpps9qw.mjs +0 -2
- package/dist/chunks/cli-0.6.12-9prkktd2.mjs +0 -2
- package/dist/chunks/cli-0.6.12-9qh2mjjb.mjs +0 -3
- package/dist/chunks/cli-0.6.12-9wj4jg9w.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ad7k9env.mjs +0 -2
- package/dist/chunks/cli-0.6.12-aj7y0fr6.mjs +0 -2
- package/dist/chunks/cli-0.6.12-b3ehvfjb.mjs +0 -3
- package/dist/chunks/cli-0.6.12-b6d9622b.mjs +0 -2
- package/dist/chunks/cli-0.6.12-babce7kt.mjs +0 -2
- package/dist/chunks/cli-0.6.12-bc05z2sq.mjs +0 -2
- package/dist/chunks/cli-0.6.12-bcqvraap.mjs +0 -2
- package/dist/chunks/cli-0.6.12-bgfgcewx.mjs +0 -2
- package/dist/chunks/cli-0.6.12-bpd9xvrz.mjs +0 -39
- package/dist/chunks/cli-0.6.12-bv0tm3x4.mjs +0 -2
- package/dist/chunks/cli-0.6.12-bvynx2vs.mjs +0 -2
- package/dist/chunks/cli-0.6.12-bxdnb5bn.mjs +0 -2
- package/dist/chunks/cli-0.6.12-byvhqye2.mjs +0 -67
- package/dist/chunks/cli-0.6.12-c3qdck87.mjs +0 -2
- package/dist/chunks/cli-0.6.12-c4ssk0t1.mjs +0 -17
- package/dist/chunks/cli-0.6.12-c6tjtcxh.mjs +0 -3
- package/dist/chunks/cli-0.6.12-c864w559.mjs +0 -2
- package/dist/chunks/cli-0.6.12-c8b2fkt8.mjs +0 -2
- package/dist/chunks/cli-0.6.12-cq322qyb.mjs +0 -2
- package/dist/chunks/cli-0.6.12-cwy83z24.mjs +0 -2
- package/dist/chunks/cli-0.6.12-d2b8dptv.mjs +0 -2
- package/dist/chunks/cli-0.6.12-dad03em9.mjs +0 -4
- package/dist/chunks/cli-0.6.12-dawxz0j1.mjs +0 -2
- package/dist/chunks/cli-0.6.12-dgfgahne.mjs +0 -4
- package/dist/chunks/cli-0.6.12-dhessv32.mjs +0 -2
- package/dist/chunks/cli-0.6.12-dj4f3bx0.mjs +0 -2
- package/dist/chunks/cli-0.6.12-dknasxzd.mjs +0 -2
- package/dist/chunks/cli-0.6.12-dqagenjb.mjs +0 -2
- package/dist/chunks/cli-0.6.12-dtv1qnk9.mjs +0 -2
- package/dist/chunks/cli-0.6.12-dywed27z.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ecgg0rmc.mjs +0 -42
- package/dist/chunks/cli-0.6.12-ecm9vh62.mjs +0 -193
- package/dist/chunks/cli-0.6.12-eghq631e.mjs +0 -2
- package/dist/chunks/cli-0.6.12-er4p2njc.mjs +0 -2
- package/dist/chunks/cli-0.6.12-f62r5f5z.mjs +0 -2
- package/dist/chunks/cli-0.6.12-fdy5s675.mjs +0 -2
- package/dist/chunks/cli-0.6.12-fm6zkr7d.mjs +0 -4
- package/dist/chunks/cli-0.6.12-fmf3vjw6.mjs +0 -2
- package/dist/chunks/cli-0.6.12-fr0rb7xk.mjs +0 -2
- package/dist/chunks/cli-0.6.12-fwnpcanc.mjs +0 -2
- package/dist/chunks/cli-0.6.12-g971w5pv.mjs +0 -5420
- package/dist/chunks/cli-0.6.12-g9dxg935.mjs +0 -2
- package/dist/chunks/cli-0.6.12-gcedgh1v.mjs +0 -6
- package/dist/chunks/cli-0.6.12-ged5ahj0.mjs +0 -2
- package/dist/chunks/cli-0.6.12-gf7chq9d.mjs +0 -2
- package/dist/chunks/cli-0.6.12-gr3edfs9.mjs +0 -15
- package/dist/chunks/cli-0.6.12-gr4j664p.mjs +0 -10
- package/dist/chunks/cli-0.6.12-gxszq2d0.mjs +0 -15
- package/dist/chunks/cli-0.6.12-gxtrhp03.mjs +0 -2
- package/dist/chunks/cli-0.6.12-gzh08zb9.mjs +0 -2
- package/dist/chunks/cli-0.6.12-h48nkjwv.mjs +0 -2
- package/dist/chunks/cli-0.6.12-h9ajwy84.mjs +0 -2
- package/dist/chunks/cli-0.6.12-hzjwqj4g.mjs +0 -2
- package/dist/chunks/cli-0.6.12-k0skdwrx.mjs +0 -28
- package/dist/chunks/cli-0.6.12-k20w6gxz.mjs +0 -2
- package/dist/chunks/cli-0.6.12-k2x52jw2.mjs +0 -2
- package/dist/chunks/cli-0.6.12-k5wkfa00.mjs +0 -18
- package/dist/chunks/cli-0.6.12-kkjabccp.mjs +0 -2
- package/dist/chunks/cli-0.6.12-krgdc9xv.mjs +0 -2
- package/dist/chunks/cli-0.6.12-kt60hyrz.mjs +0 -2
- package/dist/chunks/cli-0.6.12-kxgn5260.mjs +0 -34
- package/dist/chunks/cli-0.6.12-m1rdexn7.mjs +0 -2
- package/dist/chunks/cli-0.6.12-m652pj3f.mjs +0 -2
- package/dist/chunks/cli-0.6.12-m8br9xce.mjs +0 -3
- package/dist/chunks/cli-0.6.12-mxrs3myx.mjs +0 -4
- package/dist/chunks/cli-0.6.12-myvzbb0a.mjs +0 -2
- package/dist/chunks/cli-0.6.12-myxkk9nw.mjs +0 -18
- package/dist/chunks/cli-0.6.12-n87dgp00.mjs +0 -2
- package/dist/chunks/cli-0.6.12-nb71rkte.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ndg5saae.mjs +0 -17
- package/dist/chunks/cli-0.6.12-nqh7eeq7.mjs +0 -2
- package/dist/chunks/cli-0.6.12-nsthg20j.mjs +0 -24
- package/dist/chunks/cli-0.6.12-nwdx223d.mjs +0 -25
- package/dist/chunks/cli-0.6.12-p29k66pp.mjs +0 -2
- package/dist/chunks/cli-0.6.12-p86keq4d.mjs +0 -2
- package/dist/chunks/cli-0.6.12-pb83k360.mjs +0 -2
- package/dist/chunks/cli-0.6.12-pbhgk1s7.mjs +0 -2
- package/dist/chunks/cli-0.6.12-pf3jff0s.mjs +0 -15
- package/dist/chunks/cli-0.6.12-pgpcv7kg.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ptm6c9k7.mjs +0 -2
- package/dist/chunks/cli-0.6.12-qmryt9rx.mjs +0 -2
- package/dist/chunks/cli-0.6.12-qwcckae9.mjs +0 -2
- package/dist/chunks/cli-0.6.12-qysrg51y.mjs +0 -12
- package/dist/chunks/cli-0.6.12-r5az487p.mjs +0 -2
- package/dist/chunks/cli-0.6.12-rgecbw6c.mjs +0 -3
- package/dist/chunks/cli-0.6.12-rhbff3mp.mjs +0 -2
- package/dist/chunks/cli-0.6.12-rkfcw3gr.mjs +0 -2
- package/dist/chunks/cli-0.6.12-rn39da8q.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ry6292t5.mjs +0 -2
- package/dist/chunks/cli-0.6.12-s3nsyxya.mjs +0 -16
- package/dist/chunks/cli-0.6.12-s762dex9.mjs +0 -2
- package/dist/chunks/cli-0.6.12-sdb5bx5s.mjs +0 -2
- package/dist/chunks/cli-0.6.12-shnqhhm8.mjs +0 -2
- package/dist/chunks/cli-0.6.12-sp1yd4kb.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ssk9wgyc.mjs +0 -2
- package/dist/chunks/cli-0.6.12-t6e17b69.mjs +0 -2
- package/dist/chunks/cli-0.6.12-tqh55964.mjs +0 -2
- package/dist/chunks/cli-0.6.12-v1k9yxjk.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ve0yf7bb.mjs +0 -2
- package/dist/chunks/cli-0.6.12-vmm9x1sf.mjs +0 -6
- package/dist/chunks/cli-0.6.12-vtwd2qms.mjs +0 -2
- package/dist/chunks/cli-0.6.12-vvxje0rc.mjs +0 -2
- package/dist/chunks/cli-0.6.12-w58bx1s8.mjs +0 -2
- package/dist/chunks/cli-0.6.12-w7rsc2wy.mjs +0 -2
- package/dist/chunks/cli-0.6.12-w8a3jzmm.mjs +0 -2
- package/dist/chunks/cli-0.6.12-wbta805y.mjs +0 -2
- package/dist/chunks/cli-0.6.12-wdv94m1r.mjs +0 -2
- package/dist/chunks/cli-0.6.12-whhyvv1p.mjs +0 -6
- package/dist/chunks/cli-0.6.12-wj4xsk58.mjs +0 -4
- package/dist/chunks/cli-0.6.12-wq16rd87.mjs +0 -2
- package/dist/chunks/cli-0.6.12-wt1j42v1.mjs +0 -2
- package/dist/chunks/cli-0.6.12-wt28w88h.mjs +0 -3
- package/dist/chunks/cli-0.6.12-x4px6ebg.mjs +0 -2
- package/dist/chunks/cli-0.6.12-x60ha982.mjs +0 -2
- package/dist/chunks/cli-0.6.12-x94fe36b.mjs +0 -2
- package/dist/chunks/cli-0.6.12-xm6axcxk.mjs +0 -2
- package/dist/chunks/cli-0.6.12-xm90zy0d.mjs +0 -4
- package/dist/chunks/cli-0.6.12-xmnemm5p.mjs +0 -2
- package/dist/chunks/cli-0.6.12-xn7761gp.mjs +0 -12
- package/dist/chunks/cli-0.6.12-xtdnjw66.mjs +0 -5
- package/dist/chunks/cli-0.6.12-xwf1dh5d.mjs +0 -1
- package/dist/chunks/cli-0.6.12-xz3jwj4y.mjs +0 -2
- package/dist/chunks/cli-0.6.12-xzaf2m9a.mjs +0 -2
- package/dist/chunks/cli-0.6.12-y1tqcbp0.mjs +0 -3
- package/dist/chunks/cli-0.6.12-y22js5cj.mjs +0 -2
- package/dist/chunks/cli-0.6.12-y3jb5s3q.mjs +0 -2
- package/dist/chunks/cli-0.6.12-y8en6j6s.mjs +0 -7
- package/dist/chunks/cli-0.6.12-y972k2tw.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ycr2zjz2.mjs +0 -3
- package/dist/chunks/cli-0.6.12-ydaqyt5e.mjs +0 -2
- package/dist/chunks/cli-0.6.12-yf87hj21.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ygsvrmh6.mjs +0 -2
- package/dist/chunks/cli-0.6.12-yn5d7xfc.mjs +0 -3
- package/dist/chunks/cli-0.6.12-ythpt06e.mjs +0 -2
- package/dist/chunks/cli-0.6.12-ytv10xs6.mjs +0 -2
- package/dist/chunks/cli-0.6.12-yznryqep.mjs +0 -2
- package/dist/chunks/cli-0.6.12-z2t6eay6.mjs +0 -8
- package/dist/chunks/cli-0.6.12-z3mxk8qb.mjs +0 -2
- package/dist/chunks/cli-0.6.12-zqn1amfd.mjs +0 -2
- package/dist/chunks/cli-0.6.12-zys3gk6x.mjs +0 -20
- package/dist/chunks/client-0.6.12-phc6xwmp.mjs +0 -1
- package/dist/chunks/color-0.6.12-3bm7m3a7.mjs +0 -1
- package/dist/chunks/compact-0.6.12-5d6s9rmk.mjs +0 -3
- package/dist/chunks/config-0.6.12-3p83m4s1.mjs +0 -1
- package/dist/chunks/config-0.6.12-5mzt69kt.mjs +0 -1
- package/dist/chunks/constants-0.6.12-1a88z0wh.mjs +0 -1
- package/dist/chunks/context-0.6.12-ejp5j50g.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.12-93sjsnbj.mjs +0 -1
- package/dist/chunks/conversation-0.6.12-zjm6wgxd.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.12-ergymbrz.mjs +0 -1
- package/dist/chunks/copy-0.6.12-ae40pdpw.mjs +0 -9
- package/dist/chunks/cost-0.6.12-0zft9dxk.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.12-eawy0hjj.mjs +0 -1
- package/dist/chunks/createSession-0.6.12-k2ybhmnf.mjs +0 -1
- package/dist/chunks/debug-0.6.12-qwsc3zve.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.12-z3bbhkka.mjs +0 -1367
- package/dist/chunks/desktop-0.6.12-mbqzwz1w.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.12-0c1bdxe1.mjs +0 -1
- package/dist/chunks/detection-0.6.12-fatrvr7b.mjs +0 -1
- package/dist/chunks/diff-0.6.12-jgkz8t70.mjs +0 -1
- package/dist/chunks/doctor-0.6.12-sgdd9y17.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.12-262gvntg.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.12-1hqzzwqc.mjs +0 -1
- package/dist/chunks/effort-0.6.12-td2qdqtd.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.12-yq8zz1ms.mjs +0 -1
- package/dist/chunks/envUtils-0.6.12-41m24c9y.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.12-96z66p9g.mjs +0 -1
- package/dist/chunks/environments-0.6.12-g4zawvgx.mjs +0 -1
- package/dist/chunks/errors-0.6.12-pwgn10xz.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.12-abwdmv10.mjs +0 -1
- package/dist/chunks/exit-0.6.12-1zstjg69.mjs +0 -1
- package/dist/chunks/explorer-0.6.12-ekq5bptv.mjs +0 -1
- package/dist/chunks/export-0.6.12-2g1y7yq2.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.12-r3tx0z4q.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.12-1b6v7jrh.mjs +0 -1
- package/dist/chunks/fast-0.6.12-8ycyb7jh.mjs +0 -1
- package/dist/chunks/feedback-0.6.12-6rmervrh.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.12-k7t19wv3.mjs +0 -1
- package/dist/chunks/git-0.6.12-wd8h5tre.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.12-kew470a1.mjs +0 -1
- package/dist/chunks/goal-0.6.12-ax8sm39h.mjs +0 -4
- package/dist/chunks/grove-0.6.12-gnc0890q.mjs +0 -1
- package/dist/chunks/growthbook-0.6.12-bp7gexrs.mjs +0 -1
- package/dist/chunks/headless-0.6.12-cttcwev7.mjs +0 -2
- package/dist/chunks/heapdump-0.6.12-zmkxywxh.mjs +0 -6
- package/dist/chunks/help-0.6.12-j1xp96ch.mjs +0 -1
- package/dist/chunks/hookChains-0.6.12-anh2pzvv.mjs +0 -3
- package/dist/chunks/hooks-0.6.12-9hm2ddcn.mjs +0 -1
- package/dist/chunks/hooks-0.6.12-a0gr31xg.mjs +0 -79
- package/dist/chunks/ide-0.6.12-gt24sqed.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.12-fd06htw3.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.12-24vvap3x.mjs +0 -1
- package/dist/chunks/index-0.6.12-2qgg1wff.mjs +0 -1
- package/dist/chunks/index-0.6.12-41vfjsr6.mjs +0 -1
- package/dist/chunks/index-0.6.12-73amkcbt.mjs +0 -1
- package/dist/chunks/index-0.6.12-avj6qyfm.mjs +0 -1
- package/dist/chunks/index-0.6.12-b80wbjtw.mjs +0 -1
- package/dist/chunks/index-0.6.12-ctpn09qp.mjs +0 -1
- package/dist/chunks/index-0.6.12-g637f9fx.mjs +0 -5
- package/dist/chunks/index-0.6.12-g802mnr6.mjs +0 -1
- package/dist/chunks/index-0.6.12-nmadn3pq.mjs +0 -1
- package/dist/chunks/index-0.6.12-pd2j0wnb.mjs +0 -30
- package/dist/chunks/index-0.6.12-pger0v41.mjs +0 -1
- package/dist/chunks/index-0.6.12-phsd1x3s.mjs +0 -1
- package/dist/chunks/index-0.6.12-q59k8jj7.mjs +0 -1
- package/dist/chunks/index-0.6.12-rdmcmvt7.mjs +0 -1
- package/dist/chunks/index-0.6.12-rtthmj5w.mjs +0 -2
- package/dist/chunks/index-0.6.12-rtv5gkng.mjs +0 -1
- package/dist/chunks/index-0.6.12-sk1hsbbd.mjs +0 -1
- package/dist/chunks/index-0.6.12-w302e6b5.mjs +0 -2
- package/dist/chunks/index-0.6.12-wxr6k8p3.mjs +0 -1
- package/dist/chunks/index-0.6.12-ydb5e4ax.mjs +0 -9
- package/dist/chunks/index-0.6.12-z4mv30qj.mjs +0 -1
- package/dist/chunks/index-0.6.12-zn2sw41t.mjs +0 -1
- package/dist/chunks/index-0.6.12-zztf50tf.mjs +0 -9
- package/dist/chunks/init-0.6.12-hzpcvtax.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.12-19h8ek32.mjs +0 -1
- package/dist/chunks/ink-0.6.12-wntqc47k.mjs +0 -1
- package/dist/chunks/insights-0.6.12-ehv9w1sm.mjs +0 -870
- package/dist/chunks/install-0.6.12-ek5e219m.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.12-f8ks7z1p.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.12-xy3ka7xx.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.12-k5x3bf7b.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.12-8kc6febh.mjs +0 -1
- package/dist/chunks/keybindings-0.6.12-4nm3sthz.mjs +0 -2
- package/dist/chunks/knowledge-0.6.12-94kf7zkv.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.12-4hzsqy8q.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.12-r6w36jvz.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.12-7jgfnzk9.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.12-g28czpqy.mjs +0 -1
- package/dist/chunks/log-0.6.12-n2qz9rqw.mjs +0 -1
- package/dist/chunks/main-0.6.12-z3w0x1v7.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.12-96ytmrqz.mjs +0 -1
- package/dist/chunks/mcp-0.6.12-k6fx8h8x.mjs +0 -4
- package/dist/chunks/mcp-0.6.12-wzy270hy.mjs +0 -1
- package/dist/chunks/mcp-0.6.12-y0dw59te.mjs +0 -17
- package/dist/chunks/mcpb-0.6.12-67ahhcye.mjs +0 -1
- package/dist/chunks/memory-0.6.12-gym7m96x.mjs +0 -3
- package/dist/chunks/model-0.6.12-5p83mwxc.mjs +0 -1
- package/dist/chunks/model-0.6.12-ez8h0awr.mjs +0 -2
- package/dist/chunks/node-0.6.12-m9nrbmtq.mjs +0 -12
- package/dist/chunks/oauth-0.6.12-bzsfe61y.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.12-0wwtx5pq.mjs +0 -14
- package/dist/chunks/output-style-0.6.12-4z477r8f.mjs +0 -1
- package/dist/chunks/package-FMOR3ELU-0.6.12-8kng3f73.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.12-nfvmk4rg.mjs +0 -1
- package/dist/chunks/parser-0.6.12-d3k043gq.mjs +0 -1
- package/dist/chunks/passes-0.6.12-ne11kyby.mjs +0 -1
- package/dist/chunks/permissions-0.6.12-atkdd074.mjs +0 -3
- package/dist/chunks/permissions-0.6.12-gp1rkkw5.mjs +0 -1
- package/dist/chunks/plan-0.6.12-nps961gw.mjs +0 -1
- package/dist/chunks/plist-0.6.12-sn7z1bfm.mjs +0 -1
- package/dist/chunks/plugin-0.6.12-t8w4em2b.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.12-detthxd9.mjs +0 -1
- package/dist/chunks/plugins-0.6.12-jsyfj14z.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.12-5z3qaz2c.mjs +0 -2
- package/dist/chunks/print-0.6.12-7snrawae.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.12-67vpkknh.mjs +0 -1
- package/dist/chunks/process-0.6.12-9kdkqzvq.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.12-vq198s4m.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.12-pqm77gwv.mjs +0 -9
- package/dist/chunks/prompt-0.6.12-q902mafh.mjs +0 -1
- package/dist/chunks/prompt-0.6.12-xd40dw3n.mjs +0 -1
- package/dist/chunks/prompts-0.6.12-wa0zakkp.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.12-s9g03fmy.mjs +0 -13
- package/dist/chunks/provider-0.6.12-0rkb5my1.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.12-c8560hh3.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.12-p7a4pezy.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.12-m4yzkb1s.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.12-4ympw4qx.mjs +0 -34
- package/dist/chunks/registry-0.6.12-me5c4ees.mjs +0 -1
- package/dist/chunks/release-notes-0.6.12-c98aaef6.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.12-9bjvvf1t.mjs +0 -2
- package/dist/chunks/remote-env-0.6.12-ssv38t07.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.12-499kczq5.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.12-0z14sh5j.mjs +0 -1
- package/dist/chunks/rename-0.6.12-e27tv0xn.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.12-s8xm10k3.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.12-b0tmf29d.mjs +0 -1
- package/dist/chunks/resume-0.6.12-m9xp6af3.mjs +0 -2
- package/dist/chunks/rewind-0.6.12-r48k3bke.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.12-xg4e2npc.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.12-c0jg2mha.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.12-qngt56vd.mjs +0 -1
- package/dist/chunks/session-0.6.12-3kqbq47j.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.12-azdg6zpm.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.12-smrf94x8.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.12-3s4xgk72.mjs +0 -1
- package/dist/chunks/settings-0.6.12-qgf2vk7t.mjs +0 -1
- package/dist/chunks/setup-0.6.12-rmgv0hja.mjs +0 -5
- package/dist/chunks/sinks-0.6.12-a76rjjna.mjs +0 -1
- package/dist/chunks/skills-0.6.12-97wwzbqg.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.12-n7dwbws3.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.12-zz72ygxt.mjs +0 -1
- package/dist/chunks/state-0.6.12-k8svntgp.mjs +0 -1
- package/dist/chunks/stats-0.6.12-6eqvrdcf.mjs +0 -6
- package/dist/chunks/status-0.6.12-89m9h2d5.mjs +0 -1
- package/dist/chunks/stickers-0.6.12-nkgkxve6.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.12-aeb0xfq8.mjs +0 -1
- package/dist/chunks/tasks-0.6.12-768gy8rf.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.12-p30ye095.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.12-9ckbra11.mjs +0 -1
- package/dist/chunks/teleport-0.6.12-a7phvh8w.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.12-v1mmftfk.mjs +0 -1
- package/dist/chunks/theme-0.6.12-pk44vevh.mjs +0 -1
- package/dist/chunks/thinkback-0.6.12-h129pk9c.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.12-0q1h69xk.mjs +0 -1
- package/dist/chunks/toolPool-0.6.12-6btnc350.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.12-6w6c2d0k.mjs +0 -1
- package/dist/chunks/tools-0.6.12-payt8j1x.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.12-3cf6rrwr.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.12-vpz9aqc1.mjs +0 -69
- package/dist/chunks/types-0.6.12-89db9fm7.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.12-71j89ba5.mjs +0 -4
- package/dist/chunks/update-0.6.12-b1am0643.mjs +0 -86
- package/dist/chunks/upgrade-0.6.12-cnrv3v3c.mjs +0 -1
- package/dist/chunks/upload-0.6.12-sgdhvzs6.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.12-jebzvamj.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.12-qmbaskxk.mjs +0 -1
- package/dist/chunks/usage-0.6.12-4rpa911e.mjs +0 -1
- package/dist/chunks/util-0.6.12-p6wjnsvs.mjs +0 -1
- package/dist/chunks/utils-0.6.12-zg7kvysm.mjs +0 -1
- package/dist/chunks/vim-0.6.12-jp06y1w1.mjs +0 -1
- package/dist/chunks/watcher-0.6.12-46f463g8.mjs +0 -1
- package/dist/chunks/wiki-0.6.12-338ffyp8.mjs +0 -132
- package/dist/chunks/worktree-0.6.12-e32fmtrw.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.12-89pgcps3.mjs +0 -1
- package/dist/chunks/wrapper-0.6.12-h92v93hb.mjs +0 -7
- /package/dist/chunks/{cli-0.6.12-epgpn2nw.mjs → cli-0.6.13-1dwgndg5.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.12-6bdrnprg.mjs → cli-0.6.13-5qvssn7h.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.12-rcpf2m27.mjs → cli-0.6.13-e3h2z83b.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.12-k3a537sa.mjs → cli-0.6.13-h2yxttam.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.12-x7na0qcv.mjs → cli-0.6.13-p839x5sj.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.12-zgydst6p.mjs → cli-0.6.13-rmzzvjt2.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.12-femcgqwt.mjs → cli-0.6.13-s9yqkgwe.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.12-e3smy1wy.mjs → cli-0.6.13-tsz6mx5f.mjs} +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{g as O,h as x}from"./cli-0.6.12-epgpn2nw.mjs";import{$K as a,$L as sq,AL as rq,BL as Jz,Bn as zq,Cn as Uz,Dm as pq,Dn as wq,EF as tq,En as Wz,FF as Rz,Fn as Aq,Gn as Xz,Jn as Tq,Kn as Yz,YL as oq,ZK as c,_K as Uq,aL as Wq,aM as iq,bM as nq,cL as J,cM as Nz,hL as jq,jL as Gq,sL as N,sM as t,tL as Xq,tM as Jq,uL as F,uv as aq,vF as Mq,wF as Zz,wQ as b,xL as kq,xM as Nq,yQ as Bq,yv as kz,zL as Rq}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import{PZ as dq,RX as Qz,RZ as Oq,_X as Lq,iZ as Pq,kZ as Hq,mZ as f}from"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import{W1 as Kq,X1 as K,Y1 as m,Z1 as v}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as Iz}from"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{Cca as vq,Dca as cq,E_ as mq,J_ as Dz,Oaa as qq,Rca as jz,Waa as Gz,w9 as lq,wca as fq,x9 as Ez}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import{Vga as w,Yga as Bz}from"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import{bia as e,fia as zz}from"./cli-0.6.12-hzjwqj4g.mjs";import{via as gq,xia as _z}from"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Rpa as Vq,Wpa as Qq}from"./cli-0.6.12-6bdrnprg.mjs";Jz();import{stat as xz}from"fs/promises";import{cwd as yz}from"process";Bq();zz();Oq();Gq();Gz();Wz();Zz();Xz();Yz();Uz();v();var _q=Vq(Qz(),1),d=Vq(Iz(),1);function Eq(z){let q=_q.c(36),{servers:Q,scope:G,onDone:I}=z,U;if(q[0]!==Q)U=Object.keys(Q),q[0]=Q,q[1]=U;else U=q[1];let W=U,Z;if(q[2]===Symbol.for("react.memo_cache_sentinel"))Z={},q[2]=Z;else Z=q[2];let[X,Y]=d.useState(Z),P,B;if(q[3]===Symbol.for("react.memo_cache_sentinel"))P=()=>{J().then((V)=>{let{servers:s}=V;return Y(s)})},B=[],q[3]=P,q[4]=B;else P=q[3],B=q[4];d.useEffect(P,B);let A;if(q[5]!==X||q[6]!==W)A=W.filter((V)=>X[V]!==void 0),q[5]=X,q[6]=W,q[7]=A;else A=q[7];let H=A,T=async function(s){let Yq=0;for(let l of s){let Zq=Q[l];if(Zq){let i=l;if(X[i]!==void 0){let n=1;while(X[`${l}_${n}`]!==void 0)n++;i=`${l}_${n}`}await c(i,Zq,G),Yq++}}y(Yq)},[r]=Lq(),h;if(q[8]!==I||q[9]!==G||q[10]!==r)h=(V)=>{if(V>0)e(`
|
|
2
|
-
${Pq("success",r)(`Successfully imported ${V} MCP ${qq(V,"server")} to ${G} config.`)}
|
|
3
|
-
`);else e(`
|
|
4
|
-
No servers were imported.`);I(),b()},q[8]=I,q[9]=G,q[10]=r,q[11]=h;else h=q[11];let y=h,S;if(q[12]!==y)S=()=>{y(0)},q[12]=y,q[13]=S;else S=q[13];let _=S,qz=W.length,$;if(q[14]!==W.length)$=qq(W.length,"server"),q[14]=W.length,q[15]=$;else $=q[15];let o=`Found ${qz} MCP ${$} in Claude Desktop.`,E;if(q[16]!==H.length)E=H.length>0&&K(f,{color:"warning",children:"Note: Some servers already exist with the same name. If selected, they will be imported with a numbered suffix."}),q[16]=H.length,q[17]=E;else E=q[17];let C;if(q[18]===Symbol.for("react.memo_cache_sentinel"))C=K(f,{children:"Please select the servers you want to import:"}),q[18]=C;else C=q[18];let D,j;if(q[19]!==H||q[20]!==W)D=W.map((V)=>({label:`${V}${H.includes(V)?" (already exists)":""}`,value:V})),j=W.filter((V)=>!H.includes(V)),q[19]=H,q[20]=W,q[21]=D,q[22]=j;else D=q[21],j=q[22];let k;if(q[23]!==_||q[24]!==T||q[25]!==D||q[26]!==j)k=K(Mq,{options:D,defaultValue:j,onSubmit:T,onCancel:_,hideIndexes:!0}),q[23]=_,q[24]=T,q[25]=D,q[26]=j,q[27]=k;else k=q[27];let R;if(q[28]!==_||q[29]!==o||q[30]!==E||q[31]!==k)R=m(Tq,{title:"Import MCP Servers from Claude Desktop",subtitle:o,color:"success",onCancel:_,hideInputGuide:!0,children:[E,C,k]}),q[28]=_,q[29]=o,q[30]=E,q[31]=k,q[32]=R;else R=q[32];let u;if(q[33]===Symbol.for("react.memo_cache_sentinel"))u=K(Hq,{paddingX:1,children:K(f,{dimColor:!0,italic:!0,children:m(Aq,{children:[K(zq,{shortcut:"Space",action:"select"}),K(zq,{shortcut:"Enter",action:"confirm"}),K(wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[33]=u;else u=q[33];let g;if(q[34]!==R)g=m(Kq,{children:[R,u]}),q[34]=R,q[35]=g;else g=q[35];return g}Oq();Rz();Bz();Nz();Nq();Gq();Rq();var xq={getAllMcpConfigs:J,getMcpConfigsByScope:a,getProjectMcpServerStatus:kq,isMcpServerDisabled:jq,describeMcpConfigFilePath:N,connectToServer:t,clearServerCache:Jq};function yq(z){return{generatedAt:new Date().toISOString(),targetName:z.targetName,scopeFilter:z.scopeFilter,configOnly:z.configOnly,summary:{totalReports:0,healthy:0,warnings:0,blocking:0},findings:[],servers:[]}}function Vz(z){if(z.message==="MCP config is not a valid JSON")return"config.invalid_json";if(z.message.startsWith("Missing environment variables:"))return"config.missing_env_vars";if(z.message.includes("Windows requires 'cmd /c' wrapper to execute npx"))return"config.windows_npx_wrapper_required";if(z.message==="Does not adhere to MCP server configuration schema")return"config.invalid_schema";return"config.validation_error"}function Kz(z){let q=z.mcpErrorMetadata?.severity;if(q==="fatal")return"error";if(q==="warning")return"warn";return"warn"}function bq(z){return z.map((q)=>{let Q=Kz(q);return{blocking:Q==="error",code:Vz(q),message:q.message,remediation:q.suggestion,scope:q.mcpErrorMetadata?.scope,serverName:q.mcpErrorMetadata?.serverName,severity:Q,sourcePath:q.file}})}function Fq(z){let q=[],Q=new Map;for(let G of z){if(!G.serverName){q.push(G);continue}let I=Q.get(G.serverName)??[];I.push(G),Q.set(G.serverName,I)}return{globalFindings:q,serverFindingsByName:Q}}function M(z){if(z.scope==="claudeai")return"claudeai";if(z.scope==="dynamic")return z.pluginSource?"plugin":"dynamic";if(z.scope==="managed")return"managed";return z.scope}function Iq(z){return z.type??"stdio"}function Dq(z){switch(z.type){case"sse":case"http":case"ws":case"claudeai-proxy":return`${z.scope}:${z.type}:${z.url}`;case"sdk":return`${z.scope}:${z.type}:${z.name}`;default:return`${z.scope}:${z.type??"stdio"}:${z.command}:${JSON.stringify(z.args??[])}`}}function Lz(z,q){if(!q)return!1;return M(z)===M(q)&&Dq(z)===Dq(q)}function p(z,q,Q,G,I){let U=Q[z];if(!U)return[];let W=q==="project"?I.getProjectMcpServerStatus(z)==="pending":!1,Z=I.isMcpServerDisabled(z),X=!Z&&Lz(U,G);return[{name:z,sourceType:M(U),sourcePath:I.describeMcpConfigFilePath(q),transport:Iq(U),runtimeVisible:X,runtimeActive:X,pendingApproval:W,disabled:Z}]}function L(z,q){if(!q)return z==="enterprise"||z==="local"||z==="project"||z==="user";return z===q}function hq(z,q){return[...L("enterprise",q)?z.enterprise.errors:[],...L("local",q)?z.local.errors:[],...L("project",q)?z.project.errors:[],...L("user",q)?z.user.errors:[]]}function Pz(z,q,Q){return{name:z,sourceType:M(q),sourcePath:M(q)==="plugin"?`plugin:${q.pluginSource??"unknown"}`:M(q)==="claudeai"?"claude.ai":q.scope,transport:Iq(q),runtimeVisible:Q?.runtimeVisible??!0,runtimeActive:Q?.runtimeActive??!0,disabled:Q?.disabled??!1}}function Hz(z,q,Q){let G=M(q),I=G==="plugin"?`plugin:${q.pluginSource??"unknown"}`:G==="claudeai"?"claude.ai":Q.describeMcpConfigFilePath(q.scope);return z.some((U)=>U.sourceType===G&&U.sourcePath===I&&U.transport===Iq(q))}function Oz(z){let q=z.filter((G)=>G.sourceType==="local"||G.sourceType==="project"||G.sourceType==="user"||G.sourceType==="enterprise");if(q.length<=1)return[];let Q=q.find((G)=>G.runtimeActive)??q[0];return[{blocking:!1,code:"duplicate.same_name_multiple_scopes",message:`Server is defined in multiple config scopes; active source is ${Q.sourceType}`,remediation:"Remove or rename one of the duplicate definitions to avoid confusion.",serverName:Q.name,severity:"warn"},{blocking:!1,code:"scope.shadowed",message:`${Q.name} has shadowed definitions in lower-precedence config scopes.`,remediation:"Inspect the other definitions and remove the ones you no longer want to keep.",serverName:Q.name,severity:"warn"}]}function wz(z){let q=[];for(let Q of z){if(Q.pendingApproval)q.push({blocking:!1,code:"state.pending_project_approval",message:`${Q.name} is declared in project config but pending project approval.`,remediation:"Approve the server in the project MCP approval flow before expecting it to become active.",scope:"project",serverName:Q.name,severity:"warn",sourcePath:Q.sourcePath});if(Q.disabled)q.push({blocking:!1,code:"state.disabled",message:`${Q.name} is currently disabled.`,remediation:"Re-enable the server before expecting it to be available at runtime.",serverName:Q.name,severity:"warn",sourcePath:Q.sourcePath})}return q}function Sq(z){let q=[...z.findings,...z.servers.flatMap((U)=>U.findings)],Q=q.filter((U)=>U.blocking).length,G=q.filter((U)=>U.severity==="warn").length,I=z.servers.filter((U)=>U.liveCheck.result==="connected"&&U.findings.every((W)=>!W.blocking&&W.severity!=="warn")).length;return{...z,summary:{totalReports:z.servers.length,healthy:I,warnings:G,blocking:Q}}}async function Az(z,q,Q,G,I){if(Q)return{attempted:!1,result:"skipped"};if(!q){if(G.some((X)=>X.pendingApproval))return{attempted:!1,result:"pending"};if(G.some((X)=>X.disabled))return{attempted:!1,result:"disabled"};return{attempted:!1,result:"skipped"}}let U=Date.now(),W=await I.connectToServer(z,q),Z=Date.now()-U;try{switch(W.type){case"connected":return{attempted:!0,result:"connected",durationMs:Z};case"needs-auth":return{attempted:!0,result:"needs-auth",durationMs:Z};case"disabled":return{attempted:!0,result:"disabled",durationMs:Z};case"pending":return{attempted:!0,result:"pending",durationMs:Z};case"failed":return{attempted:!0,result:"failed",durationMs:Z,error:W.error}}}finally{await I.clearServerCache(z,q).catch(()=>{})}}function Tz(z,q,Q){let G=q.find((I)=>I.runtimeActive);if(Q.result==="needs-auth")return[{blocking:!1,code:"auth.needs_auth",message:`${z} requires authentication before it can be used.`,remediation:"Authenticate the server and then rerun the doctor command.",serverName:z,severity:"warn",sourcePath:G?.sourcePath}];if(Q.result==="failed"){let I=G?.transport==="stdio"&&typeof Q.error==="string"&&Q.error.toLowerCase().includes("not found");return[{blocking:!0,code:I?"stdio.command_not_found":"health.failed",message:Q.error?`${z} failed its live health check: ${Q.error}`:`${z} failed its live health check.`,remediation:I?"Verify the configured executable exists on PATH or use a full executable path.":"Inspect the server configuration and retry the connection once the underlying problem is fixed.",serverName:z,severity:"error",sourcePath:G?.sourcePath}]}return[]}async function $q(z,q,Q,G){let I={enterprise:G.getMcpConfigsByScope("enterprise"),local:G.getMcpConfigsByScope("local"),project:G.getMcpConfigsByScope("project"),user:G.getMcpConfigsByScope("user")},{servers:U}=await G.getAllMcpConfigs(),W=G.isMcpServerDisabled(z),Z=U[z]??void 0,X=W?void 0:Z,Y=[...L("enterprise",q.scopeFilter)?p(z,"enterprise",I.enterprise.servers,X,G):[],...L("local",q.scopeFilter)?p(z,"local",I.local.servers,X,G):[],...L("project",q.scopeFilter)?p(z,"project",I.project.servers,X,G):[],...L("user",q.scopeFilter)?p(z,"user",I.user.servers,X,G):[]],P=!!Z&&!Hz(Y,Z,G)&&(Y.length===0&&!q.scopeFilter||Y.length>0&&Y.every((T)=>!T.runtimeActive));if(Z&&P)Y.push(Pz(z,Z,{disabled:W,runtimeActive:!W,runtimeVisible:!W}));let B=Y.some((T)=>T.runtimeActive)||P?X:void 0,A=[...Q.get(z)??[],...Oz(Y),...wz(Y)];if(Y.length===0&&!P)A.push({blocking:!0,code:"state.not_found",message:`${z} was not found in the selected MCP configuration sources.`,remediation:"Check the server name and scope, or add the MCP server before retrying.",serverName:z,severity:"error"});let H=await Az(z,B,q.configOnly,Y,G);return A.push(...Tz(z,Y,H)),{serverName:z,requestedByUser:q.requestedByUser,definitions:Y,liveCheck:H,findings:A}}function Mz(z,q,Q){let G=new Set(Q?Object.keys(q):[]);for(let I of z)for(let U of Object.keys(I))G.add(U);return[...G].sort()}async function Cq(z={configOnly:!1},q=xq){let Q=yq(z),G={enterprise:q.getMcpConfigsByScope("enterprise"),local:q.getMcpConfigsByScope("local"),project:q.getMcpConfigsByScope("project"),user:q.getMcpConfigsByScope("user")},I=bq(hq(G,z.scopeFilter)),{globalFindings:U,serverFindingsByName:W}=Fq(I),{servers:Z}=await q.getAllMcpConfigs(),X=Mz([...L("enterprise",z.scopeFilter)?[G.enterprise.servers]:[],...L("local",z.scopeFilter)?[G.local.servers]:[],...L("project",z.scopeFilter)?[G.project.servers]:[],...L("user",z.scopeFilter)?[G.user.servers]:[]],Z,!z.scopeFilter),Y=await Promise.all(X.map((P)=>$q(P,{configOnly:z.configOnly,requestedByUser:!1,scopeFilter:z.scopeFilter},W,q)));return Q.servers=Y,Q.findings=U,Sq(Q)}async function uq(z,q,Q=xq){let G=yq({...q,targetName:z}),I={enterprise:Q.getMcpConfigsByScope("enterprise"),local:Q.getMcpConfigsByScope("local"),project:Q.getMcpConfigsByScope("project"),user:Q.getMcpConfigsByScope("user")},U=bq(hq(I,q.scopeFilter)),{globalFindings:W,serverFindingsByName:Z}=Fq(U),X=await $q(z,{configOnly:q.configOnly,requestedByUser:!0,scopeFilter:q.scopeFilter},Z,Q);return G.servers=[X],G.findings=W,Sq(G)}Nq();Gq();Rq();kz();jz();_z();Bq();Dz();Ez();v();function bz(z){let q=[];if(q.push("MCP Doctor"),q.push(""),q.push("Summary"),q.push(`- ${z.summary.totalReports} server reports generated`),q.push(`- ${z.summary.healthy} healthy`),q.push(`- ${z.summary.warnings} warnings`),q.push(`- ${z.summary.blocking} blocking issues`),z.targetName)q.push(`- target: ${z.targetName}`);for(let Q of z.servers){q.push(""),q.push(Q.serverName);let G=Q.definitions.find((I)=>I.runtimeActive);if(G)q.push(`- Active source: ${G.sourceType}`),q.push(`- Transport: ${G.transport??"unknown"}`);if(Q.definitions.length>1){let I=Q.definitions.filter((U)=>!U.runtimeActive).map((U)=>U.sourceType);if(I.length>0)q.push(`- Additional definitions: ${I.join(", ")}`)}if(Q.liveCheck.result){let U=new Set(["disabled","pending","skipped"]).has(Q.liveCheck.result)?"State":"Live check";q.push(`- ${U}: ${Q.liveCheck.result}`)}if(Q.liveCheck.error)q.push(`- Error: ${Q.liveCheck.error}`);for(let I of Q.findings)if(q.push(`- ${I.message}`),I.remediation)q.push(`- Fix: ${I.remediation}`)}if(z.findings.length>0){q.push(""),q.push("Global findings");for(let Q of z.findings)if(q.push(`- ${Q.message}`),Q.remediation)q.push(`- Fix: ${Q.remediation}`)}return q.join(`
|
|
5
|
-
`)}async function OG(z,q){try{let Q=q.scope?F(q.scope):void 0,G=!!q.configOnly,I=z?await uq(z,{configOnly:G,scopeFilter:Q}):await Cq({configOnly:G,scopeFilter:Q});if(q.json)process.stdout.write(`${JSON.stringify(I,null,2)}
|
|
6
|
-
`);else process.stdout.write(`${bz(I)}
|
|
7
|
-
`);await new Promise((U)=>setTimeout(U,50)),process.exit(I.summary.blocking>0?1:0);return}catch(Q){O(Q.message)}}async function eq(z,q){try{let Q=await t(z,q);if(Q.type==="connected")return"✓ Connected";else if(Q.type==="needs-auth")return"! Needs authentication";else return"✗ Failed to connect"}catch(Q){return"✗ Connection error"}}async function wG({debug:z,verbose:q}){let Q=yz();w("tengu_mcp_start",{});try{await xz(Q)}catch(G){if(gq(G))O(`Error: Directory ${Q} does not exist`);throw G}try{let{setup:G}=await import("./setup-0.6.12-rmgv0hja.mjs");await G(Q,"default",!1,!1,void 0,!1);let{startMCPServer:I}=await import("./mcp-0.6.12-k6fx8h8x.mjs");await I(Q,z??!1,q??!1)}catch(G){O(`Error: Failed to start MCP server: ${G}`)}}async function AG(z,q){let Q=Wq(z),G=()=>{if(Q&&(Q.type==="sse"||Q.type==="http"))oq(z,Q),nq(z,Q)};try{if(q.scope){let Y=F(q.scope);w("tengu_mcp_delete",{name:z,scope:Y}),await Uq(z,Y),G(),process.stdout.write(`Removed MCP server ${z} from ${Y} config
|
|
8
|
-
`),x(`File modified: ${N(Y)}`)}let I=vq(),U=fq(),{servers:W}=a("project"),Z=!!W[z],X=[];if(I.mcpServers?.[z])X.push("local");if(Z)X.push("project");if(U.mcpServers?.[z])X.push("user");if(X.length===0)O(`No MCP server found with name: "${z}"`);else if(X.length===1){let Y=X[0];w("tengu_mcp_delete",{name:z,scope:Y}),await Uq(z,Y),G(),process.stdout.write(`Removed MCP server "${z}" from ${Y} config
|
|
9
|
-
`),x(`File modified: ${N(Y)}`)}else process.stderr.write(`MCP server "${z}" exists in multiple scopes:
|
|
10
|
-
`),X.forEach((Y)=>{process.stderr.write(` - ${Xq(Y)} (${N(Y)})
|
|
11
|
-
`)}),process.stderr.write(`
|
|
12
|
-
To remove from a specific scope, use:
|
|
13
|
-
`),X.forEach((Y)=>{process.stderr.write(` claude mcp remove "${z}" -s ${Y}
|
|
14
|
-
`)}),O()}catch(I){O(I.message)}}async function TG(){w("tengu_mcp_list",{});let{servers:z}=await J();if(Object.keys(z).length===0)console.log("No MCP servers configured. Use `claude mcp add` to add a server.");else{console.log(`Checking MCP server health...
|
|
15
|
-
`);let q=Object.entries(z),Q=await rq(q,async([G,I])=>({name:G,server:I,status:await eq(G,I)}),{concurrency:pq()});for(let{name:G,server:I,status:U}of Q)if(I.type==="sse")console.log(`${G}: ${I.url} (SSE) - ${U}`);else if(I.type==="http")console.log(`${G}: ${I.url} (HTTP) - ${U}`);else if(I.type==="claudeai-proxy")console.log(`${G}: ${I.url} - ${U}`);else if(!I.type||I.type==="stdio"){let W=Array.isArray(I.args)?I.args:[];console.log(`${G}: ${I.command} ${W.join(" ")} - ${U}`)}}await b(0)}async function MG(z){w("tengu_mcp_get",{name:z});let q=Wq(z);if(!q)O(`No MCP server found with name: ${z}`);console.log(`${z}:`),console.log(` Scope: ${Xq(q.scope)}`);let Q=await eq(z,q);if(console.log(` Status: ${Q}`),q.type==="sse"){if(console.log(" Type: sse"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,I]of Object.entries(q.headers))console.log(` ${G}: ${I}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="http"){if(console.log(" Type: http"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,I]of Object.entries(q.headers))console.log(` ${G}: ${I}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="stdio"){console.log(" Type: stdio"),console.log(` Command: ${q.command}`);let G=Array.isArray(q.args)?q.args:[];if(console.log(` Args: ${G.join(" ")}`),q.env){console.log(" Environment:");for(let[I,U]of Object.entries(q.env))console.log(` ${I}=${U}`)}}console.log(`
|
|
16
|
-
To remove this server, run: claude mcp remove "${z}" -s ${q.scope}`),await b(0)}async function BG(z,q,Q){try{let G=F(Q.scope),I=mq(q),W=Q.clientSecret&&I&&typeof I==="object"&&"type"in I&&(I.type==="sse"||I.type==="http")&&"url"in I&&typeof I.url==="string"&&"oauth"in I&&I.oauth&&typeof I.oauth==="object"&&"clientId"in I.oauth?await sq():void 0;await c(z,I,G);let Z=I&&typeof I==="object"&&"type"in I?String(I.type||"stdio"):"stdio";if(W&&I&&typeof I==="object"&&"type"in I&&(I.type==="sse"||I.type==="http")&&"url"in I&&typeof I.url==="string")iq(z,{type:I.type,url:I.url},W);w("tengu_mcp_add",{scope:G,source:"json",type:Z}),x(`Added ${Z} MCP server ${z} to ${G} config`)}catch(G){O(G.message)}}async function _G(z){try{let q=F(z.scope),Q=lq();w("tengu_mcp_add",{scope:q,platform:Q,source:"desktop"});let{readClaudeDesktopMcpServers:G}=await import("./claudeDesktop-0.6.12-6rnj0zw7.mjs"),I=await G();if(Object.keys(I).length===0)x("No MCP servers found in Claude Desktop configuration or configuration file does not exist.");let{unmount:U}=await dq(K(aq,{children:K(tq,{children:K(Eq,{servers:I,scope:q,onDone:()=>{U()}})})}),{exitOnCtrlC:!0})}catch(q){O(q.message)}}async function EG(){w("tengu_mcp_reset_mcpjson_choices",{}),cq((z)=>({...z,enabledMcpjsonServers:[],disabledMcpjsonServers:[],enableAllProjectMcpServers:!1})),x(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
|
|
17
|
-
You will be prompted for approval next time you start Claude Code.`)}export{wG as mcpServeHandler,EG as mcpResetChoicesHandler,AG as mcpRemoveHandler,TG as mcpListHandler,MG as mcpGetHandler,OG as mcpDoctorHandler,BG as mcpAddJsonHandler,_G as mcpAddFromDesktopHandler};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vpa as z}from"./cli-0.6.12-6bdrnprg.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{sg as eq,ug as ez}from"./cli-0.6.12-xtdnjw66.mjs";import{Jn as tq,Kn as tz,Nl as fq,Ql as Tz,fD as cq,gD as jz,jD as uq,jS as Zq,kD as _z,kS as zz,pF as Lq,qF as Dz,vv as Vq,xF as $q,yS as nq,yv as xz,zF as Pz}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import{PW as y,RW as wz,UW as pq,VW as Mz}from"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import{RX as yq,RZ as bq,kZ as A,mZ as V,qZ as oq}from"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import{X1 as W,Y1 as X,Z1 as x}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as Pq}from"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import{u2 as hq,w2 as Fz}from"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import{$6 as Cz,_6 as jq}from"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{B_ as Ez,Gba as Sz,Hba as Jq,Lba as Dq,Oba as Rz,T8 as Iq,Uba as Sq,Xba as Rq,Yba as vq,Zba as kz,fca as vz,gca as Oz,n_ as _q,nea as iq,tba as Nq,u9 as Xz,vea as oz}from"./cli-0.6.12-ecm9vh62.mjs";import{Oea as xq,Sea as Iz}from"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import{fga as lq,gga as lz}from"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import{Vga as Hq,Yga as Az}from"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import{ria as aq,xia as iz}from"./cli-0.6.12-2stzmmb2.mjs";import{Aia as f,Nia as Fq}from"./cli-0.6.12-967g034j.mjs";import{ooa as bz,xka as Mq}from"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Rpa as Yq,Spa as Lz,Vpa as D}from"./cli-0.6.12-6bdrnprg.mjs";function Cq(z){return Iq(z)!==null}var Eq=D(()=>{Xz()});import{basename as Hz,join as Nz}from"path";function Vz(z){return z.type==="Project"&&z.parent===void 0&&vq(Hz(z.path))}function Oq(z,q){let G=new Set(z.filter(Vz).map((Y)=>Y.path));return Rq(q,(Y)=>G.has(Y))??Nz(q,Sq)}var Tq=D(()=>{kz()});import{mkdir as yz}from"fs/promises";import{basename as fz,join as pz}from"path";function dq(z){let q=gq.c(58),{onSelect:G,onCancel:Y}=z,Z=k.use(Zq()),I=Mq(),C=pz(f(),"CLAUDE.md"),L=Oq(Z,I),p=fz(L),Jz=Z.some((J)=>J.path===C),Qz=Z.some((J)=>J.path===L),Yz=[...Z.filter(nz).map(mz),...Jz?[]:[{path:C,type:"User",content:"",exists:!1}],...Qz?[]:[{path:L,type:"Project",content:"",exists:!1}]],Aq=new Map,N=Yz.map((J)=>{let Q=_q(J.path),kq=J.exists?"":" (new)",zq=J.parent?(Aq.get(J.parent)??0)+1:0;Aq.set(J.path,zq);let Bz=zq>0?" ".repeat(zq-1):"",_;if(J.type==="User"&&!J.isNested&&J.path===C)_="User memory";else if(J.type==="Project"&&!J.isNested&&J.path===L)_="Project memory";else if(zq>0)_=`${Bz}L ${Q}${kq}`;else _=`${Q}`;let F,Kz=Cq(I);if(J.type==="User"&&!J.isNested)F="Saved in ~/.claudin/CLAUDE.md";else if(J.type==="Project"&&!J.isNested&&J.path===L)F=`${Kz?"Checked in at":"Saved in"} ./${p}`;else if(J.parent)F="@-imported";else if(J.isNested)F="dynamically loaded";else F="";return{label:_,value:J.path,description:F}}),h=[],Zz=Vq(dz);if(Jq()){let J;if(q[0]===Symbol.for("react.memo_cache_sentinel"))J={label:"Open auto-memory folder",value:`${P}${Dq()}`,description:""},q[0]=J;else J=q[0];if(h.push(J),wq.isTeamMemoryEnabled()){let Q;if(q[1]===Symbol.for("react.memo_cache_sentinel"))Q={label:"Open team memory folder",value:`${P}${wq.getTeamMemPath()}`,description:""},q[1]=Q;else Q=q[1];h.push(Q)}for(let Q of Zz.activeAgents)if(Q.memory){let kq=fq(Q.agentType,Q.memory);h.push({label:`Open ${jq.bold(Q.agentType)} agent memory`,value:`${P}${kq}`,description:`${Q.memory} scope`})}}N.push(...h);let c;if(q[2]!==N)c=Qq&&N.some(gz)?Qq:N[0]?.value||"",q[2]=N,q[3]=c;else c=q[3];let Wq=c,[u,Wz]=k.useState(Jq),[b,Uz]=k.useState(cq),[B]=k.useState(Jq),H=Vq(uz),[j,Gz]=k.useState(null),$;if(q[4]!==B)$=()=>{if(!B)return;uq().then(Gz)},q[4]=B,q[5]=$;else $=q[5];let g;if(q[6]!==H||q[7]!==B)g=[B,H],q[6]=H,q[7]=B,q[8]=g;else g=q[8];k.useEffect($,g);let d;if(q[9]!==H||q[10]!==j)d=H?"running":j===null?"":j===0?"never":`last ran ${xq(new Date(j))}`,q[9]=H,q[10]=j,q[11]=d;else d=q[11];let m=d,[K,Uq]=k.useState(null),U=K!==null,E=B?1:0,n;if(q[12]!==u)n=function(){let Q=!u;Nq("userSettings",{autoMemoryEnabled:Q}),Wz(Q),Hq("tengu_auto_memory_toggled",{enabled:Q})},q[12]=u,q[13]=n;else n=q[13];let Gq=n,l;if(q[14]!==b)l=function(){let Q=!b;Nq("userSettings",{autoDreamEnabled:Q}),Uz(Q),Hq("tengu_auto_dream_toggled",{enabled:Q})},q[14]=b,q[15]=l;else l=q[15];let Bq=l;pq();let r;if(q[16]===Symbol.for("react.memo_cache_sentinel"))r={context:"Confirmation"},q[16]=r;else r=q[16];y("confirm:no",Y,r);let s;if(q[17]!==K||q[18]!==Bq||q[19]!==Gq)s=()=>{if(K===0)Gq();else if(K===1)Bq()},q[17]=K,q[18]=Bq,q[19]=Gq,q[20]=s;else s=q[20];let a;if(q[21]!==U)a={context:"Confirmation",isActive:U},q[21]=U,q[22]=a;else a=q[22];y("confirm:yes",s,a);let i;if(q[23]!==E)i=()=>{Uq((J)=>J!==null&&J<E?J+1:null)},q[23]=E,q[24]=i;else i=q[24];let o;if(q[25]!==U)o={context:"Select",isActive:U},q[25]=U,q[26]=o;else o=q[26];y("select:next",i,o);let t;if(q[27]===Symbol.for("react.memo_cache_sentinel"))t=()=>{Uq(cz)},q[27]=t;else t=q[27];let e;if(q[28]!==U)e={context:"Select",isActive:U},q[28]=U,q[29]=e;else e=q[29];y("select:previous",t,e);let Kq=K===0,Xq=u?"on":"off",S;if(q[30]!==Xq)S=X(V,{children:["Auto-memory: ",Xq]}),q[30]=Xq,q[31]=S;else S=q[31];let R;if(q[32]!==Kq||q[33]!==S)R=W(Lq,{isFocused:Kq,children:S}),q[32]=Kq,q[33]=S,q[34]=R;else R=q[34];let v;if(q[35]!==b||q[36]!==m||q[37]!==K||q[38]!==H||q[39]!==B)v=B&&W(Lq,{isFocused:K===1,styled:!1,children:X(V,{color:K===1?"suggestion":void 0,children:["Auto-dream: ",b?"on":"off",m&&X(V,{dimColor:!0,children:[" · ",m]}),!H&&b&&W(V,{dimColor:!0,children:" · /dream to run"})]})}),q[35]=b,q[36]=m,q[37]=K,q[38]=H,q[39]=B,q[40]=v;else v=q[40];let O;if(q[41]!==R||q[42]!==v)O=X(A,{flexDirection:"column",marginBottom:1,children:[R,v]}),q[41]=R,q[42]=v,q[43]=O;else O=q[43];let T;if(q[44]!==G)T=(J)=>{if(J.startsWith(P)){let Q=J.slice(P.length);yz(Q,{recursive:!0}).catch(hz).then(()=>hq(Q));return}Qq=J,G(J)},q[44]=G,q[45]=T;else T=q[45];let w;if(q[46]!==E)w=()=>Uq(E),q[46]=E,q[47]=w;else w=q[47];let M;if(q[48]!==Wq||q[49]!==N||q[50]!==Y||q[51]!==T||q[52]!==w||q[53]!==U)M=W($q,{defaultFocusValue:Wq,options:N,isDisabled:U,onChange:T,onCancel:Y,onUpFromFirstItem:w}),q[48]=Wq,q[49]=N,q[50]=Y,q[51]=T,q[52]=w,q[53]=U,q[54]=M;else M=q[54];let qq;if(q[55]!==O||q[56]!==M)qq=X(A,{flexDirection:"column",width:"100%",children:[O,M]}),q[55]=O,q[56]=M,q[57]=qq;else qq=q[57];return qq}function hz(){}function cz(z){return z!==null&&z>0?z-1:z}function uz(z){return Object.values(z.tasks).some($z)}function $z(z){return z.type==="dream"&&z.status==="running"}function gz(z){return z.value===Qq}function dz(z){return z.agentDefinitions}function mz(z){return{...z,exists:!0}}function nz(z){return z.type!=="AutoMem"&&z.type!=="TeamMem"}var gq,k,wq,Qq,P="__open_folder__";var mq=D(()=>{Cz();bz();Mz();bq();wz();Rz();Az();jz();_z();xz();Tz();Fz();nq();Fq();Ez();Iz();Eq();Sz();Pz();Dz();Tq();x();gq=Yq(yq(),1),k=Yq(Pq(),1),wq=(Oz(),Lz(vz))});import{homedir as sz}from"os";import{relative as az}from"path";function rq(z){let q=sz(),G=lq(),Y=z.startsWith(q)?"~"+z.slice(q.length):null,Z=z.startsWith(G)?"./"+az(G,z):null;if(Y&&Z)return Y.length<=Z.length?Y:Z;return Y||Z||z}var rz;var sq=D(()=>{bq();lz();x();rz=Yq(yq(),1)});import{mkdir as qJ,writeFile as zJ}from"fs/promises";function JJ({onDone:z}){let q=async(Y)=>{try{if(Y.includes(f()))await qJ(f(),{recursive:!0});try{await zJ(Y,"",{encoding:"utf8",flag:"wx"})}catch(p){if(aq(p)!=="EEXIST")throw p}await eq(Y);let Z="default",I="";if(process.env.VISUAL)Z="$VISUAL",I=process.env.VISUAL;else if(process.env.EDITOR)Z="$EDITOR",I=process.env.EDITOR;let C=Z!=="default"?`Using ${Z}="${I}".`:"",L=C?`> ${C} To change editor, set $EDITOR or $VISUAL environment variable.`:"> To use a different editor, set the $EDITOR or $VISUAL environment variable.";z(`Opened memory file at ${rq(Y)}
|
|
2
|
-
|
|
3
|
-
${L}`,{display:"system"})}catch(Z){iq(Z),z(`Error opening memory file: ${Z}`)}},G=()=>{z("Cancelled memory editing",{display:"system"})};return W(tq,{title:"Memory",onCancel:G,color:"remember",children:X(A,{flexDirection:"column",children:[W(qz.Suspense,{fallback:null,children:W(dq,{onSelect:q,onCancel:G})}),W(A,{marginTop:1,children:X(V,{dimColor:!0,children:["Learn more: ",W(oq,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var qz,iJ=async(z)=>{return zz(),await Zq(),W(JJ,{onDone:z})};var QJ=D(()=>{tz();mq();sq();bq();nq();Fq();iz();oz();ez();x();qz=Yq(Pq(),1)});QJ();export{iJ as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A4 as f,B4 as g,C4 as h,D4 as i,E4 as j,F4 as k,G4 as l,H4 as m,I4 as n,J4 as o,K4 as p,L4 as q,M4 as r,N4 as s,O4 as t,P4 as u,Q4 as v,R4 as w,S4 as x,T4 as y,U4 as z,V4 as A,W4 as B,X4 as C,v4 as a,w4 as b,x4 as c,y4 as d,z4 as e}from"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import"./cli-0.6.12-6bdrnprg.mjs";C();export{w as resolveSkillModelOverride,r as renderModelSetting,t as renderModelName,o as renderDefaultModelSetting,v as parseUserSpecifiedModel,A as normalizeModelStringForAPI,B as modelRejectsSamplingParams,y as modelDisplayString,q as isOpus1mMergeEnabled,b as isNonCustomOpusModel,x as isLegacyModelRemapEnabled,c as getUserSpecifiedModelSetting,a as getSmallFastModel,i as getRuntimeMainLoopModel,u as getPublicModelName,s as getPublicModelDisplayName,p as getOpus46PricingSuffix,z as getMarketingNameForModel,d as getMainLoopModel,g as getDefaultSonnetModel,f as getDefaultOpusModel,j as getDefaultMainLoopModelSetting,k as getDefaultMainLoopModel,h as getDefaultHaikuModel,n as getClaudeAiUserDefaultModelDescription,m as getCanonicalName,e as getBestModel,l as firstPartyNameToCanonical};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./cli-0.6.12-myvzbb0a.mjs";import{Tg as i,Ug as Nb,Vg as V,Wg as Pb}from"./cli-0.6.12-ptm6c9k7.mjs";import"./cli-0.6.12-dawxz0j1.mjs";import{MN as r,NN as Qb,hy as g,iy as p,jy as Kb,vv as Q,wv as c,yv as Jb}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import{RX as Hb}from"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import{X1 as Y,Z1 as v}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as Gb}from"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import{E4 as D,J4 as $,L4 as I,P3 as C,Q3 as T,V3 as X,X4 as Bb,_3 as A,_4 as M,a5 as Eb,h4 as kb,r4 as f,s4 as qb,t4 as F,u4 as zb}from"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import{$6 as s,_6 as W}from"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{Rda as w,Xda as e,kda as O,lda as S,nda as o}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import{Iga as L,Jga as h,Kga as bb}from"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import{Vga as Z,Yga as n}from"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Rpa as _,Vpa as d}from"./cli-0.6.12-6bdrnprg.mjs";function Rb(k){let b=m.c(17),{onDone:z}=k,B=Q(Yb),q=Q(Xb),E=Q(Wb),H=c(),G;if(b[0]!==B||b[1]!==z)G=function(){Z("tengu_model_command_menu",{action:"cancel"});let N=y(B);z(`Kept model as ${W.bold(N)}`,{display:"system"})},b[0]=B,b[1]=z,b[2]=G;else G=b[2];let J=G,K;if(b[3]!==E||b[4]!==B||b[5]!==z||b[6]!==H)K=function(N,u){Z("tengu_model_command_menu",{action:N,from_model:B,to_model:N}),H((l)=>({...l,mainLoopModel:N,mainLoopModelForSession:null}));let P=`Set model to ${W.bold(y(N))}`;if(u!==void 0)P=P+` with ${W.bold(u)} effort`;let x=void 0;if(C()){if(A(),!X(N)&&E)H(Ub),x=!1;else if(X(N)&&T()&&E)P=P+" · Fast mode ON",x=!0}if(V(N,x===!0,I()))P=P+" · Billed as extra usage";if(x===!1)P=P+" · Fast mode OFF";z(P)},b[3]=E,b[4]=B,b[5]=z,b[6]=H,b[7]=K;else K=b[7];let R=K,U;if(b[8]!==E||b[9]!==B)U=C()&&E&&X(B)&&T(),b[8]=E,b[9]=B,b[10]=U;else U=b[10];let j;if(b[11]!==J||b[12]!==R||b[13]!==B||b[14]!==q||b[15]!==U)j=Y(i,{initial:B,sessionModel:q,onSelect:R,onCancel:J,isStandaloneCommand:!0,showFastModeNotice:U}),b[11]=J,b[12]=R,b[13]=B,b[14]=q,b[15]=U,b[16]=j;else j=b[16];return j}function Ub(k){return{...k,fastMode:!1}}function Wb(k){return k.fastMode}function Xb(k){return k.mainLoopModelForSession}function Yb(k){return k.mainLoopModel}function Zb({args:k,onDone:b}){let z=Q((E)=>E.fastMode),B=c(),q=k==="default"?null:k;return t.useEffect(()=>{async function E(){if(q&&!F(q)){b(`Model '${q}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(q&&Ib(q)){b("Opus with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(q&&jb(q)){b("Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(!q){H(null);return}if(yb(q)){H(q);return}try{let{valid:G,error:J}=await r(q);if(G)H(q);else b(J||`Model '${q}' not found`,{display:"system"})}catch(G){b(`Failed to validate model: ${G.message}`,{display:"system"})}}function H(G){B((R)=>({...R,mainLoopModel:G,mainLoopModelForSession:null}));let J=`Set model to ${W.bold(y(G))}`,K=void 0;if(C()){if(A(),!X(G)&&z)B((R)=>({...R,fastMode:!1})),K=!1;else if(X(G)&&z)J+=" · Fast mode ON",K=!0}if(V(G,K===!0,I()))J+=" · Billed as extra usage";if(K===!1)J+=" · Fast mode OFF";b(J)}E()},[q,b,B]),null}function yb(k){return f.includes(k.toLowerCase().trim())}function Ib(k){let b=k.toLowerCase();return!g()&&!I()&&b.includes("opus")&&b.includes("[1m]")}function jb(k){let b=k.toLowerCase();return!p()&&!I()&&(b.includes("sonnet[1m]")||b.includes("sonnet-4-6[1m]"))}function xb(k){let{onDone:b}=k,z=Q(wb),B=Q(Tb),q=Q(Cb),E=y(z),H=q!==void 0?` (effort: ${q})`:"";if(B)b(`Current model: ${W.bold(y(B))} (session override from plan mode)
|
|
2
|
-
Base model: ${E}${H}`);else b(`Current model: ${E}${H}`);return null}function Cb(k){return k.effortValue}function Tb(k){return k.mainLoopModelForSession}function wb(k){return k.mainLoopModel}function Ab(k,b){if(k.length!==b.length)return!1;return k.every((z,B)=>{let q=b[B];return q!==void 0&&z.value===q.value&&z.label===q.label&&z.description===q.description&&z.descriptionForModel===q.descriptionForModel})}async function cb(){if(!w()?.startsWith("openai:"))return;try{let k=await M();if(k.length===0)return;let b=O();if(Ab(b,k))return;S(k)}catch{}}function y(k){let b=$(k??D());return k===null?`${b} (default)`:b}var m,t,rb=async(k,b,z)=>{if(z=z?.trim()||"",h.includes(z))return Z("tengu_model_command_inline_help",{args:z}),Y(xb,{onDone:k});if(L.includes(z)){k("Run /model to open the model selection menu, or /model [modelName] to set the model.",{display:"system"});return}if(z)return Z("tengu_model_command_inline",{args:z}),Y(Zb,{args:z,onDone:k});if(w()?.startsWith("openai:"))cb();return Y(Rb,{onDone:k})};var Vb=d(()=>{s();Nb();bb();n();Jb();Pb();kb();qb();Kb();Eb();o();Bb();zb();Qb();e();v();m=_(Hb(),1),t=_(Gb(),1)});Vb();export{rb as call};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{$oa as kQ,Poa as w,Qoa as C,Roa as bQ,Soa as A,Zoa as r,_oa as o,apa as JQ,bpa as W,cpa as i,dpa as _,epa as BQ,hpa as WQ}from"./cli-0.6.12-ecgg0rmc.mjs";import{Vpa as b}from"./cli-0.6.12-6bdrnprg.mjs";var l=b(()=>{JQ()});function G(z){if(z.inputSchema.type!=="object")throw Error(`JSON schema for tool "${z.name}" must be an object, but got ${z.inputSchema.type}`);return{type:"custom",name:z.name,input_schema:z.inputSchema,description:z.description,run:z.run,parse:(Q)=>Q,...z.close?{close:z.close}:{}}}var n=b(()=>{WQ();l()});import*as R from"node:fs/promises";import*as L from"node:path";import{randomUUID as CQ}from"node:crypto";async function DQ(z){try{return await R.realpath(z)}catch{return z}}async function UQ(z){let Q=[],$=z,V=0;for(;;){let Y;try{Y=await R.realpath($)}catch{let X=!1;try{X=(await R.lstat($)).isSymbolicLink()}catch{}if(X){if(++V>40)throw new W(`path ${JSON.stringify(z)} has too many levels of symbolic links`);$=L.resolve(L.dirname($),await R.readlink($));continue}let q=L.dirname($);if(q===$)return z;Q.push(L.basename($)),$=q;continue}return Q.length?L.join(Y,...Q.reverse()):Y}}async function a(z,Q,$){let V=$?.allowOutside??!1,Y=await DQ(L.resolve(z)),X=L.resolve(Y,Q);if(V)return X;let q=await UQ(X);if(q!==Y&&!q.startsWith(Y+L.sep))throw new W(`path ${JSON.stringify(Q)} escapes workdir`);return q}async function m(z,Q){let $=L.dirname(z),V=L.join($,`.tmp-${process.pid}-${CQ()}`),Y;try{Y=await R.open(V,"wx",NQ),await Y.writeFile(Q,"utf-8"),await Y.sync(),await Y.close(),Y=void 0,await R.rename(V,z)}catch(X){if(Y)await Y.close().catch(()=>{});throw await R.unlink(V).catch(()=>{}),X}}function j(z,Q){switch(z?.code){case"ENOENT":return`${Q}: no such file or directory`;case"EACCES":case"EPERM":return`${Q}: permission denied`;case"ENOTDIR":return`${Q}: not a directory`;case"EISDIR":return`${Q}: is a directory`;case"ELOOP":return`${Q}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${Q}: file name too long`;case"ENOSPC":return`${Q}: no space left on device`;case"EMFILE":case"ENFILE":return`${Q}: too many open files`;default:return`${Q}: ${z instanceof Error?z.message:String(z)}`}}var B=493,NQ=420;var d=b(()=>{i()});import*as O from"node:fs/promises";import*as t from"node:fs";import*as U from"node:path";import{execFile as LQ}from"node:child_process";import{promisify as MQ}from"node:util";import{Readable as OQ}from"node:stream";import{pipeline as wQ}from"node:stream/promises";async function AQ(z){let{client:Q,sessionId:$}=z;if(!Q||!$)return async()=>{};let V=o(Q),Y=await Q.beta.sessions.retrieve($),X=U.resolve(z.workdir,"skills"),q=[];for(let K of Y.agent.skills)try{let Z=await s(Q,K.skill_id,K.version),H=await Q.beta.skills.versions.retrieve(Z,{skill_id:K.skill_id}),J=U.basename(H.name.trim());if(J===""||J==="."||J==="..")J=K.skill_id;let k=U.resolve(X,J);if(k!==X&&!k.startsWith(X+U.sep)){V.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:H.name});continue}let v=await Q.beta.skills.versions.download(Z,{skill_id:K.skill_id});await O.rm(k,{recursive:!0,force:!0}),await O.mkdir(k,{recursive:!0,mode:B}),q.push(k),await e(v,k),V.info("downloaded skill",{component:"agent-tool-context",skill_id:K.skill_id,version:Z,dest:k})}catch(Z){V.warn("failed to download skill",{component:"agent-tool-context",skill_id:K.skill_id,error:String(Z)})}return async()=>{for(let K of q)await O.rm(K,{recursive:!0,force:!0}).catch((Z)=>{V.warn("failed to clean up skill",{component:"agent-tool-context",dest:K,error:String(Z)})})}}async function s(z,Q,$){if(/^\d+$/.test($))return $;let V;for await(let Y of z.beta.skills.versions.list(Q))if(/^\d+$/.test(Y.version)&&(V===void 0||BigInt(Y.version)>BigInt(V)))V=Y.version;if(V===void 0)throw new A(`skill ${JSON.stringify(Q)} has no concrete version to resolve ${JSON.stringify($)} against`);return V}function RQ(z){for(let Q of z.split(`
|
|
2
|
-
`)){let $=Q.trim();if(!$)continue;if(U.isAbsolute($)||$.split(/[\\/]/).includes(".."))throw new A(`refusing to extract unsafe archive member: ${$}`)}}function IQ(z){for(let Q of z.split(`
|
|
3
|
-
`)){let $=Q.trimStart()[0];if($==="l"||$==="h"||$==="b"||$==="c"||$==="p"||$==="s")throw new A("refusing to extract archive with symlink/hardlink/device member")}}async function h(z,Q){try{let{stdout:$}=await yQ(z,Q);return $}catch($){if($!=null&&typeof $==="object"&&$.code==="ENOENT")throw new A(`skill extraction requires the \`${z}\` command, but it was not found on PATH`);throw $}}function GQ(z){let Q,$=!1;for(let V of z.split(`
|
|
4
|
-
`)){let Y=V.trim().split("/").filter((q)=>q!==""&&q!==".");if(Y.length===0)continue;let X=Y[0];if(Q===void 0)Q=X;else if(X!==Q)return"";if(Y.length>1)$=!0}return Q!==void 0&&$?Q:""}async function e(z,Q){let $=U.join(Q,`.skill-archive-${process.pid}-${Date.now()}`);if(!z.body)throw new A("skill download response had no body");await wQ(OQ.fromWeb(z.body),t.createWriteStream($));let V=U.join(U.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`);try{let Y=await FQ($,4),X=Y.length>=4&&Y[0]===80&&Y[1]===75&&Y[2]===3&&Y[3]===4,q=X?"unzip":"tar",K=await h(q,X?["-Z1",$]:["-tf",$]);RQ(K),IQ(await h(q,X?["-Z",$]:["-tvf",$]));let Z=GQ(K);await O.mkdir(V,{recursive:!0,mode:B}),await h(q,X?["-oq",$,"-d",V]:["-xf",$,"-C",V]);let H=Z?U.join(V,Z):V;for(let J of await O.readdir(H))await O.rename(U.join(H,J),U.join(Q,J))}finally{await O.rm($,{force:!0}),await O.rm(V,{recursive:!0,force:!0})}}async function FQ(z,Q){let $=await O.open(z,"r");try{let V=Buffer.alloc(Q),{bytesRead:Y}=await $.read(V,0,Q,0);return V.subarray(0,Y)}finally{await $.close()}}var yQ;var QQ=b(()=>{r();kQ();d();yQ=MQ(LQ)});import*as D from"node:fs/promises";import*as g from"node:fs";import*as N from"node:path";import*as c from"node:child_process";import*as VQ from"node:crypto";import*as YQ from"node:readline";function KQ(z){return z===void 0?jQ:z}function O0(z){return[gQ(z),vQ(z),fQ(z),SQ(z),mQ(z),dQ(z)]}function u(z,Q){return a(z.workdir,Q,{allowOutside:z.unrestrictedPaths??!1})}function TQ(){let z={};for(let[Q,$]of Object.entries(process.env)){if(Q.startsWith("ANTHROPIC_"))continue;z[Q]=$}return z}class XQ{constructor(z,Q=TQ()){T.add(this),M.set(this,void 0),y.set(this,""),x.set(this,!1),F.set(this,!1),I.set(this,null),w(this,M,c.spawn("/bin/bash",["--noprofile","--norc"],{cwd:z,env:{...Q,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),C(this,M,"f").stdout.setEncoding("utf8"),C(this,M,"f").stderr.setEncoding("utf8"),C(this,M,"f").stdout.on("data",($)=>C(this,T,"m",p).call(this,$)),C(this,M,"f").stderr.on("data",($)=>C(this,T,"m",p).call(this,$)),C(this,M,"f").once("close",()=>{w(this,F,!0,"f");let $=C(this,I,"f");w(this,I,null,"f"),$?.resolve()})}get closed(){return C(this,F,"f")}async exec(z,Q={}){if(C(this,F,"f"))throw new A("bash session terminated");let $=Q.timeoutMs??qQ,V=Q.signal;if(V?.aborted)throw new A("bash command aborted");w(this,y,"","f"),w(this,x,!1,"f");let Y=`__ANT_CMD_${VQ.randomUUID()}_DONE__`,X=`${Y.slice(0,8)}''${Y.slice(8)}`,q=`{ ${z}
|
|
5
|
-
} </dev/null 2>&1; printf '\\n${X}%d\\n' $?
|
|
6
|
-
`;if(C(this,M,"f").stdin.write(q),C(this,y,"f").indexOf(Y)<0){let{promise:v,resolve:ZQ}=_();w(this,I,{sentinel:Y,resolve:ZQ},"f");let f,E;try{await Promise.race([v,new Promise((HQ,S)=>{f=setTimeout(()=>S(new A(`bash command timed out after ${$}ms`)),$)}),new Promise((HQ,S)=>{if(!V)return;E=()=>S(new A("bash command aborted")),V.addEventListener("abort",E,{once:!0})})])}finally{if(f)clearTimeout(f);if(E&&V)V.removeEventListener("abort",E);w(this,I,null,"f")}}let K=C(this,y,"f").indexOf(Y);if(K<0)throw new A("bash session terminated");let H=C(this,y,"f").slice(K+Y.length).match(/^(-?\d+)/),J=H?parseInt(H[1],10):-1,k=C(this,y,"f").slice(0,K).replace(uQ,"").replace(/\n+$/,"");if(C(this,x,"f"))k=`[output truncated]
|
|
7
|
-
${k}`;return{output:k,exitCode:J}}close(){if(C(this,F,"f"))return;w(this,F,!0,"f");let z=C(this,I,"f");w(this,I,null,"f"),z?.resolve(),C(this,M,"f").stdout.destroy(),C(this,M,"f").stderr.destroy(),C(this,M,"f").stdin.destroy();try{process.kill(-C(this,M,"f").pid,"SIGKILL")}catch{C(this,M,"f").kill("SIGKILL")}C(this,M,"f").unref()}}function gQ(z){let Q,$=Promise.resolve();return G({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:V,restart:Y,timeout_ms:X},q)=>{let K=$,Z=_();$=Z.promise;try{await K}catch{}try{if(Y)Q?.close(),Q=void 0;if(!V){if(Y)return"bash session restarted";throw new W("bash: command is required")}Q??(Q=new XQ(z.workdir,z.env));try{let{output:H,exitCode:J}=await Q.exec(V,{timeoutMs:X??qQ,signal:q?.signal});if(J!==0)throw new W(H||`exit ${J}`);return H}catch(H){if(H instanceof W)throw H;throw Q.close(),Q=void 0,new W(`bash: ${H instanceof Error?H.message:String(H)}`)}}finally{Z.resolve()}},close:()=>{Q?.close(),Q=void 0}})}function vQ(z){return G({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:Q,view_range:$})=>{if(!Q)throw new W("read: file_path is required");let V=await u(z,Q),Y;try{let J=await D.stat(V);if(!J.isFile())throw new W(`read: ${Q} is not a regular file`);let k=KQ(z.maxFileBytes);if(k!==null&&J.size>k)throw new W(`read: ${Q} is ${J.size} bytes, exceeds ${k}-byte limit. Use bash (head/tail/sed) to read a slice.`);Y=await D.readFile(V,"utf8")}catch(J){if(J instanceof W)throw J;throw new W(`read: ${j(J,Q)}`)}if(!$)return Y;if($.length!==2)throw new W("read: view_range must be [start_line, end_line]");let[X,q]=$,K=Y.split(`
|
|
8
|
-
`),Z=Math.max(0,X-1),H=q>0?q:K.length;return K.slice(Z,H).join(`
|
|
9
|
-
`)}})}function fQ(z){return G({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:Q,content:$})=>{if(!Q)throw new W("write: file_path is required");let V=await u(z,Q);try{await D.mkdir(N.dirname(V),{recursive:!0,mode:B}),await m(V,$??"")}catch(Y){throw new W(`write: ${j(Y,Q)}`)}return`wrote ${Buffer.byteLength($??"")} bytes to ${Q}`}})}function SQ(z){return G({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:Q,old_string:$,new_string:V,replace_all:Y})=>{if(!Q)throw new W("edit: file_path is required");if(!$)throw new W("edit: old_string is required");let X=await u(z,Q),q;try{let H=await D.stat(X);if(!H.isFile())throw new W(`edit: ${Q} is not a regular file`);let J=KQ(z.maxFileBytes);if(J!==null&&H.size>J)throw new W(`edit: ${Q} is ${H.size} bytes, exceeds ${J}-byte limit. Use bash (sed/awk) to edit a large file.`);q=await D.readFile(X,"utf8")}catch(H){if(H instanceof W)throw H;throw new W(`edit: ${j(H,Q)}`)}let K=q.split($).length-1;if(K===0)throw new W(`edit: old_string not found in ${Q}`);let Z;if(Y)Z=q.split($).join(V);else{if(K>1)throw new W(`edit: old_string appears ${K} times in ${Q} (must be unique)`);Z=q.replace($,()=>V)}try{await m(X,Z)}catch(H){throw new W(`edit: write: ${j(H,Q)}`)}return`edited ${Q} (${Y?K:1} replacement(s))`}})}function mQ(z){return G({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:Q,path:$})=>{if(!Q)throw new W("glob: pattern is required");let V=N.resolve(z.workdir),Y=Q;if(N.isAbsolute(Q)){if(!z.unrestrictedPaths)throw new W("glob: absolute pattern not permitted");V=N.parse(Q).root,Y=N.relative(V,Q)}else if($)V=await u(z,$);if(!z.unrestrictedPaths&&Y.split(/[\\/]/).includes(".."))throw new W('glob: ".." is not permitted in the pattern');let X=z.unrestrictedPaths?V:await D.realpath(V).catch(()=>V),q=[];try{for await(let K of EQ(Y,{cwd:V,withFileTypes:!0,exclude:(Z)=>Z.name===".git"||Z.name==="node_modules"})){if(!K.isFile())continue;let Z=N.join(K.parentPath,K.name);if(!z.unrestrictedPaths){let J;try{J=await D.realpath(Z)}catch{continue}if(!_Q(X,J))continue}let H=0;try{H=(await D.stat(Z)).mtimeMs}catch{}q.push({path:Z,mtime:H})}}catch(K){throw new W(`glob: ${K instanceof Error?K.message:String(K)}`)}if(q.length===0)return"no matches";return q.sort((K,Z)=>Z.mtime-K.mtime),q.slice(0,PQ).map((K)=>K.path).join(`
|
|
10
|
-
`)}})}function dQ(z){return G({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:Q,path:$},V)=>{if(!Q)throw new W("grep: pattern is required");let Y=N.resolve(z.workdir);if($)Y=await u(z,$);let X=await iQ();return X?hQ(X,Q,Y,V?.signal):pQ(Q,Y,V?.signal)}})}function hQ(z,Q,$,V){return new Promise((Y,X)=>{let q=c.spawn(z,["-n","--no-heading","-e",Q,"--",$],{...V?{signal:V}:{}}),K="",Z="",H=!1;q.stdout.on("data",(J)=>{if(H)return;if(K+=J,K.length>P)H=!0,K=K.slice(0,P),q.kill("SIGKILL")}),q.stderr.on("data",(J)=>Z+=J),q.on("close",(J)=>{if(V?.aborted)return X(new W("grep: aborted"));if(H)return Y(K+`
|
|
11
|
-
[output truncated at ${P} bytes]`);if(J===0)return Y(K);if(J===1)return Y("no matches");X(new W(`grep: rg failed: ${Z||`exit ${J}`}`))}),q.on("error",(J)=>{if(V?.aborted)return X(new W("grep: aborted"));X(new W(`grep: rg failed: ${J.message}`))})})}async function pQ(z,Q,$){let V;try{V=new RegExp(z)}catch(Z){throw new W(`grep: invalid regex: ${Z instanceof Error?Z.message:String(Z)}`)}let Y=[],X=P,q=(Z)=>{if(X-=Z.length+1,X<0)return Y.push(`[output truncated at ${P} bytes]`),!1;return Y.push(Z),!0};if((await D.stat(Q).catch(()=>null))?.isFile())await zQ(Q,V,q);else await nQ(Q,"",(Z)=>zQ(N.join(Q,Z),V,q),$);if($?.aborted)throw new W("grep: aborted");if(Y.length===0)return"no matches";return Y.join(`
|
|
12
|
-
`)}async function zQ(z,Q,$){let V=g.createReadStream(z,{encoding:"utf8"}),Y=YQ.createInterface({input:V,crlfDelay:1/0}),X=0;try{for await(let q of Y){if(X++,q.length>xQ)continue;if(Q.test(q)&&!$(`${z}:${X}:${q}`))return!1}}catch{}finally{V.destroy()}return!0}function _Q(z,Q){let $=N.relative(z,Q);return $===""||!$.startsWith(".."+N.sep)&&$!==".."&&!N.isAbsolute($)}async function nQ(z,Q,$,V){let Y=lQ;async function X(q,K){if(K>cQ)return!0;if(V?.aborted)return!1;let Z;try{Z=await D.readdir(N.join(z,q),{withFileTypes:!0})}catch{return!0}for(let H of Z){if(H.name===".git"||H.name==="node_modules")continue;if(Y--<=0)return!1;if(V?.aborted)return!1;let J=q?N.join(q,H.name):H.name;if(H.isDirectory()){if(!await X(J,K+1))return!1}else if(H.isFile()){if(await $(J)===!1)return!1}}return!0}await X(Q,0)}async function iQ(){let z=(process.env.PATH??"").split(N.delimiter);for(let Q of z){let $=N.join(Q,"rg");try{return await D.access($,g.constants.X_OK),$}catch{}}return null}var T,M,y,x,F,I,p,$Q=102400,qQ=120000,jQ=262144,P=102400,xQ=2000,PQ=200,uQ,EQ,cQ=40,lQ=50000;var aQ=b(()=>{bQ();r();i();n();BQ();d();QQ();uQ=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,EQ=D.glob;M=new WeakMap,y=new WeakMap,x=new WeakMap,F=new WeakMap,I=new WeakMap,T=new WeakSet,p=function(Q){if(w(this,y,C(this,y,"f")+Q,"f"),C(this,y,"f").length>$Q)w(this,y,C(this,y,"f").slice(C(this,y,"f").length-$Q),"f"),w(this,x,!0,"f");if(C(this,I,"f")&&C(this,y,"f").indexOf(C(this,I,"f").sentinel)>=0){let $=C(this,I,"f");w(this,I,null,"f"),$.resolve()}}});aQ();export{AQ as setupSkills,s as resolveSkillVersion,u as resolvePath,e as extractSkillArchive,fQ as betaWriteTool,vQ as betaReadTool,dQ as betaGrepTool,mQ as betaGlobTool,SQ as betaEditTool,gQ as betaBashTool,O0 as betaAgentToolset20260401,XQ as BashSession};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Lga as a,Mga as b,Nga as c,Oga as d,Pga as e,Qga as f,Rga as g,Sga as h,Tga as i,Uga as j}from"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-6bdrnprg.mjs";j();export{i as getOauthConfig,a as fileSuffixForOauthConfig,d as OAUTH_BETA_HEADER,h as MCP_CLIENT_METADATA_URL,e as CONSOLE_OAUTH_SCOPES,c as CLAUDE_AI_PROFILE_SCOPE,f as CLAUDE_AI_OAUTH_SCOPES,b as CLAUDE_AI_INFERENCE_SCOPE,g as ALL_OAUTH_SCOPES};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{ni as nO,oi as aD,pi as oO}from"./cli-0.6.12-h48nkjwv.mjs";import{si as qO,ui as y1}from"./cli-0.6.12-y3jb5s3q.mjs";import{$i as EO,Dp as iD,Gp as nD,Hp as C1,Ip as CO,Jp as bO,Kp as KO,Lp as b1,PO as Z1,QO as ID,Qp as cO,RO as kO,Rp as J1,SO as xD,Sp as t,Xi as VO,Yi as dD,Zi as a,Zp as UD,_i as SO,aj as BO,bj as pD,bq as rD,cj as NO,kq as T1,lq as yO,mq as g1,nq as TO,ok as zO,oq as GD,pk as S1,pq as fD,qq as tD,rq as sD,sq as gO,tp as lD,tq as eD,up as B1,uq as O1,vq as hO,wq as h1}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import{c1 as cD,g1 as E1}from"./cli-0.6.12-dywed27z.mjs";import{i1 as _O,m1 as wD}from"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import"./cli-0.6.12-g9dxg935.mjs";import"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import{g2 as oD,h2 as q1}from"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import{P2 as uD,U2 as U1}from"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import{c7 as hD,d7 as kD,e7 as mD,k7 as UO,l7 as RD,m7 as vD}from"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{Cda as BD,Fda as CD,Gda as R1,Kda as bD,Lda as RO,Mda as qD,Nda as yD,Pda as vO,Qda as TD,Tda as gD,Xda as v1,_da as DO,bea as iO,qda as lO,rda as V1}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import{$ha as XO,Yha as B}from"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import{Dia as pO,Fia as OO,Nia as PO}from"./cli-0.6.12-967g034j.mjs";import{ooa as I1,rka as xO}from"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import{Toa as ZO,hpa as x1}from"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Vpa as b}from"./cli-0.6.12-6bdrnprg.mjs";function e(O,D=!0){let $=cO(O);if($.type==="object"&&$.properties){let Z=$.properties,Q=Array.isArray($.required)?$.required:[],W={};for(let[H,Y]of Object.entries(Z))W[H]=e(Y,D);if($.properties=W,D)$.required=Q.filter((H)=>(H in W)),$.additionalProperties=!1;else $.required=Q.filter((H)=>(H in W))}if("items"in $)if(Array.isArray($.items))$.items=$.items.map((Z)=>e(Z,D));else $.items=e($.items,D);for(let Z of["anyOf","oneOf","allOf"])if(Z in $&&Array.isArray($[Z]))$[Z]=$[Z].map((Q)=>e(Q,D));return $}function jO(O){let $=!a()&&!pO(process.env.CLAUDIN_DISABLE_STRICT_TOOLS);return O.filter((Z)=>Z.name!=="ToolSearchTool").filter((Z)=>!Z.type||Z.type==="function").map((Z)=>{let Q=Z.description??"";if(Z.input_schema){let Y=dO.get(Z.input_schema);if(Y&&Y.name===Z.name&&Y.description===Q&&Y.strict===$)return Y.result}_1.computes++;let W={...Z.input_schema??{type:"object",properties:{}}};if(Z.name==="Agent"&&W.properties){let Y=W.properties;if(!Array.isArray(W.required))W.required=[];let J=W.required;for(let X of["message","subagent_type"])if(X in Y&&!J.includes(X))J.push(X)}let H={type:"function",function:{name:Z.name,description:Q,parameters:e(W,$)}};if(Z.input_schema)dO.set(Z.input_schema,{name:Z.name,description:Q,strict:$,result:H});return H})}var dO,_1;var wO=b(()=>{PO();J1();NO();dO=new WeakMap,_1={computes:0}});function z1(){if(OO())return;try{return lO().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function aO(){if(DO()?.transport!=="gemini")return;let O=nO(process.env);if(O&&O!=="access-token")return;if(OO())return;z1()}var rO=b(()=>{iO();PO();oO();V1()});import{randomUUID as K1}from"crypto";function L1(){return K1()}function tO(O,D){let $=L1(),Z=Date.now();return B(JSON.stringify({type:"api_call_start",correlationId:$,provider:O,model:D,timestamp:Z}),{level:"debug"}),{correlationId:$,startTime:Z}}function sO(O,D,$,Z,Q,W,H,Y,J,X){let L=Date.now()-D,_={type:Z==="error"?"api_call_error":"api_call_end",correlationId:O,model:$,duration_ms:L,status:Z,tokens_in:Q,tokens_out:W,streaming:H};if(Y!==void 0)_.first_token_ms=Y;if(J!==void 0)_.total_chunks=J;if(X)_.error=X;B(JSON.stringify(_),{level:Z==="error"?"error":"debug"})}var eO=b(()=>{XO()});function OD(O){return O.trim().length===0}function P1(O){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test(O)}function N1(O){return typeof O==="object"&&O!==null&&!Array.isArray(O)}function j1(O){return $D[O]??null}function WD(O){return O in $D}function DD(O,D){let $=j1(O);if(!$)return null;return{[$]:D}}function HO(O,D){if(D===void 0)return{};try{let $=JSON.parse(D);if(N1($))return $;if(typeof $==="string"&&!OD($))return DD(O,$)??$;return $}catch{if(OD(D)||P1(D))return{};return DD(O,D)??{}}}var $D;var GO=b(()=>{$D={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function $O(O){if(!O)return{};let D={};for(let[$,Z]of Object.entries(O)){let Q=$.toLowerCase();if(Q.startsWith("x-anthropic")||Q.startsWith("anthropic-")||Q.startsWith("x-claude")||Q==="x-app"||Q==="x-client-app"||Q==="authorization"||Q==="x-api-key"||Q==="api-key")continue;D[$]=Z}return D}function ZD(O){let D=O.headers.get("retry-after");return D?` (Retry-After: ${D})`:""}var QD=()=>{};function YD(O){return new Promise((D)=>setTimeout(D,O))}function WO(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var fO=()=>{};function w1(O){let D=XD.get(O);if(D!==void 0)return D;JD.toolResultComputes++;let $=f1(O.content,O.is_error);return XD.set(O,$),$}function G1(O){if(typeof O==="string")return O;if(O===null||O===void 0)return"{}";if(typeof O!=="object")return JSON.stringify(O);let D=HD.get(O);if(D!==void 0)return D;JD.toolUseArgumentsComputes++;let $=JSON.stringify(O);return HD.set(O,$),$}function FO(O){if(!O)return"";if(typeof O==="string")return O;if(Array.isArray(O))return O.map((D)=>D.type==="text"?D.text??"":"").join(`
|
|
2
|
-
|
|
3
|
-
`);return String(O)}function f1(O,D){if(typeof O==="string")return D?`Error: ${O}`:O;if(!Array.isArray(O)){let Q=JSON.stringify(O??"");return D?`Error: ${Q}`:Q}let $=[];for(let Q of O){if(Q?.type==="text"&&typeof Q.text==="string"){$.push({type:"text",text:Q.text});continue}if(Q?.type==="image"){let W=Q.source;if(W?.type==="url"&&W.url)$.push({type:"image_url",image_url:{url:W.url}});else if(W?.type==="base64"&&W.media_type&&W.data)$.push({type:"image_url",image_url:{url:`data:${W.media_type};base64,${W.data}`}});continue}if(typeof Q?.text==="string")$.push({type:"text",text:Q.text})}if($.length===0)return"";if($.length===1&&$[0].type==="text"){let Q=$[0].text??"";return D?`Error: ${Q}`:Q}if($.every((Q)=>Q.type==="text")){let Q=$.map((W)=>W.text??"").join(`
|
|
4
|
-
|
|
5
|
-
`);return D?`Error: ${Q}`:Q}if(D&&$[0]?.type==="text")$[0]={...$[0],text:`Error: ${$[0].text??""}`};else if(D)$.unshift({type:"text",text:"Error:"});return $}function JO(O){if(typeof O==="string")return O;if(!Array.isArray(O))return String(O??"");let D=[];for(let Z of O)switch(Z.type){case"text":D.push({type:"text",text:Z.text??""});break;case"image":{let Q=Z.source;if(Q?.type==="base64")D.push({type:"image_url",image_url:{url:`data:${Q.media_type};base64,${Q.data}`}});else if(Q?.type==="url")D.push({type:"image_url",image_url:{url:Q.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(Z.text)D.push({type:"text",text:Z.text})}if(D.length===0)return"";if(D.length===1&&D[0].type==="text")return D[0].text??"";if(D.every((Z)=>Z.type==="text"))return D.map((Z)=>Z.text??"").join(`
|
|
6
|
-
|
|
7
|
-
`);return D}function _D(O,D,$){let Z=$?.preserveReasoningContent===!0,Q=[],W=new Set,H=new Set;for(let X of O){let _=(X.message??X).content;if(Array.isArray(_)){for(let f of _)if(f.type==="tool_result"&&f.tool_use_id)H.add(f.tool_use_id)}}let Y=FO(D);if(Y)Q.push({role:"system",content:Y});for(let X=0;X<O.length;X++){let L=O[X],_=X===O.length-1,f=L.message??L,R=f.role??L.role,N=f.content;if(R==="user")if(Array.isArray(N)){let G=N.filter((j)=>j.type==="tool_result"),I=N.filter((j)=>j.type!=="tool_result");for(let j of G){let v=j.tool_use_id??"unknown";if(W.has(v))Q.push({role:"tool",tool_call_id:v,content:w1(j)});else B(`Dropping orphan tool_result for ID: ${v} to prevent API error`)}if(I.length>0)Q.push({role:"user",content:JO(I)})}else Q.push({role:"user",content:JO(N)});else if(R==="assistant")if(Array.isArray(N)){let G=N.filter((P)=>P.type==="tool_use"),I=N.find((P)=>P.type==="thinking"),j=N.filter((P)=>P.type!=="tool_use"&&P.type!=="thinking"),v={role:"assistant",content:(()=>{let P=JO(j);return typeof P==="string"?P:Array.isArray(P)?P.map((M)=>M.text??"").join(""):""})()};if(Z){let P=I?.thinking;if(typeof P==="string"&&P.trim().length>0)v.reasoning_content=P;else v.reasoning_content=""}if(G.length>0){let P=G.map((M)=>{let h=M.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!H.has(h)&&!_)return null;W.add(h);let q={id:h,type:"function",function:{name:M.name??"unknown",arguments:G1(M.input)}};if(M.extra_content)q.extra_content={...M.extra_content};if(a()){let u=M.signature??I?.signature,C=q.extra_content?.google??{};q.extra_content={...q.extra_content,google:{...C,thought_signature:u??"skip_thought_signature_validator"}}}return q}).filter((M)=>M!==null);if(P.length>0)v.tool_calls=P}if(v.content||v.tool_calls?.length)Q.push(v)}else{let G={role:"assistant",content:(()=>{let I=JO(N);return typeof I==="string"?I:Array.isArray(I)?I.map((j)=>j.text??"").join(""):""})()};if(G.content)Q.push(G)}}let J=[];for(let X of Q){let L=J[J.length-1];if(L&&L.role==="tool"&&X.role==="user")J.push({role:"assistant",content:"[Tool execution interrupted by user]"});let _=J[J.length-1];if(_&&_.role===X.role&&X.role!=="tool"&&X.role!=="system"){let f=_.content,R=X.content;if(typeof f==="string"&&typeof R==="string")_.content=f+(f&&R?`
|
|
8
|
-
`:"")+R;else{let N=(G)=>{if(!G)return[];if(typeof G==="string")return G?[{type:"text",text:G}]:[];return G};_.content=[...N(f),...N(R)]}if(X.tool_calls?.length)_.tool_calls=[..._.tool_calls??[],...X.tool_calls]}else J.push(X)}return J}var XD,HD,JD;var VD=b(()=>{XO();NO();XD=new WeakMap,HD=new WeakMap,JD={toolResultComputes:0,toolUseArgumentsComputes:0}});function KD(O){for(let D of zD){let $=O[D];if(typeof $==="string"&&$!=="")return $}return null}function LD(O){for(let D of zD){let $=O[D];if(typeof $==="string"&&$!=="")return $}return null}var zD;var AO=b(()=>{zD=["reasoning_content","reasoning","reasoning_text","thinking"]});function PD(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function MO(O,D){if(O.firstTokenTime===null)O.firstTokenTime=Date.now();O.chunkCount++}function ND(O){let D=Date.now(),$=O.firstTokenTime?D-O.firstTokenTime:null,Z=D-O.startTime;return{totalChunks:O.chunkCount,firstTokenMs:$,durationMs:Z}}var jD=()=>{};function F1(O){if(!O)return;return _O(O)}function A1(O){try{let D=JSON.parse(O);return D&&typeof D==="object"&&!Array.isArray(D)?O:null}catch{for(let D of FD)try{let $=O+D,Z=JSON.parse($);if(Z&&typeof Z==="object"&&!Array.isArray(Z))return $}catch{}return null}}async function*AD(O,D,$,Z){let Q=WO(),W=0,H=new Map,Y=!1,J=!1,X=!1,L=GD(),_=null,f=!1,R=!1,N=0,G=PD();yield{type:"message_start",message:{id:Q,type:"message",role:"assistant",content:[],model:D,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let I=O.body?.getReader();if(!I)return;let j=new TextDecoder,v="",P=120000,M=Date.now();async function h(){return new Promise((C,i)=>{let y=setTimeout(()=>{let S=Math.round((Date.now()-M)/1000);i(Error(`OpenAI/Gemini SSE stream idle for ${S}s (limit: ${P/1000}s). Connection likely dropped.`))},P),x;if($)x=()=>{clearTimeout(y)},$.addEventListener("abort",x,{once:!0});I.read().then((S)=>{if(clearTimeout(y),$&&x)$.removeEventListener("abort",x);if(S.value)M=Date.now();C(S)},(S)=>{if(clearTimeout(y),$&&x)$.removeEventListener("abort",x);i(S)})})}let q=async function*(){if(!Y)return;let C=L.flush();if(C)yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:C}};yield{type:"content_block_stop",index:W},W++,Y=!1};try{while(!0){let{done:C,value:i}=await h();if(C)break;v+=j.decode(i,{stream:!0});let y=v.split(`
|
|
9
|
-
`);v=y.pop()??"";for(let x of y){let S=x.trim();if(!S||S==="data: [DONE]")continue;if(!S.startsWith("data: "))continue;let n;try{n=JSON.parse(S.slice(6))}catch{continue}let p=F1(n.usage);for(let k of n.choices??[]){let d=k.delta,QO=KD(d);if(QO!=null){if(!J)yield{type:"content_block_start",index:W,content_block:{type:"thinking",thinking:""}},J=!0;yield{type:"content_block_delta",index:W,delta:{type:"thinking_delta",thinking:QO}}}if(d.content!=null&&d.content!==""){if(J&&!X)yield{type:"content_block_stop",index:W},W++,X=!0;if(!Y)yield{type:"content_block_start",index:W,content_block:{type:"text",text:""}},Y=!0;let K=L.feed(d.content);if(K)N+=K.length,yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:K}};MO(G,d.content)}if(d.tool_calls){for(let K of d.tool_calls)if(K.id&&K.function?.name){if(J&&!X)yield{type:"content_block_stop",index:W},W++,X=!0;if(Y)yield*q();let w=W,c=K.function.arguments??"",T=WD(K.function.name);if(MO(G,K.function.arguments??""),H.set(K.index,{id:K.id,name:K.function.name,index:w,jsonBuffer:c,normalizeAtStop:T}),yield{type:"content_block_start",index:w,content_block:{type:"tool_use",id:K.id,name:K.function.name,input:{},...K.extra_content?{extra_content:K.extra_content}:{},...K.extra_content?.google?.thought_signature?{signature:K.extra_content.google.thought_signature}:{}}},W++,K.function.arguments&&!T)N+=K.function.arguments.length,yield{type:"content_block_delta",index:w,delta:{type:"input_json_delta",partial_json:K.function.arguments}}}else if(K.function?.arguments){let w=H.get(K.index);if(w){if(K.function.arguments)N+=K.function.arguments.length,w.jsonBuffer+=K.function.arguments;if(w.normalizeAtStop)continue;yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:K.function.arguments}}}}}if(k.finish_reason&&!R){if(R=!0,J&&!X)yield{type:"content_block_stop",index:W},W++,X=!0;if(Y)yield*q();for(let[,w]of H){if(w.normalizeAtStop){let T;if(k.finish_reason==="length")T=w.jsonBuffer;else{let A=A1(w.jsonBuffer);if(A)T=A;else T=JSON.stringify(HO(w.name,w.jsonBuffer))}yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:T}},yield{type:"content_block_stop",index:w.index};continue}let c="";if(w.jsonBuffer)try{JSON.parse(w.jsonBuffer)}catch{let T=w.jsonBuffer.trimEnd();for(let A of FD)try{JSON.parse(T+A),c=A;break}catch{}}if(c)yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:c}};yield{type:"content_block_stop",index:w.index}}let K=k.finish_reason==="tool_calls"?"tool_use":k.finish_reason==="length"?"max_tokens":"end_turn";if(k.finish_reason==="content_filter"||k.finish_reason==="safety"){if(!Y)yield{type:"content_block_start",index:W,content_block:{type:"text",text:""}},Y=!0;yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:`
|
|
10
|
-
|
|
11
|
-
[Content blocked by provider safety filter]`}}}if(_=K,yield{type:"message_delta",delta:{stop_reason:K,stop_sequence:null},...p?{usage:p}:{}},p)f=!0}}if(!f&&p&&(n.choices?.length??0)===0&&_!==null)yield{type:"message_delta",delta:{stop_reason:_,stop_sequence:null},usage:p},f=!0}}}finally{I.releaseLock()}let u=ND(G);if(u.totalChunks>0)B(JSON.stringify({type:"stream_stats",model:D,total_chunks:u.totalChunks,first_token_ms:u.firstTokenMs,duration_ms:u.durationMs}),{level:"debug"});if(!f&&_!==null&&(N>0||(Z??0)>0)){let C=ID(D);yield{type:"message_delta",delta:{stop_reason:_,stop_sequence:null},usage:{input_tokens:Z??0,output_tokens:Math.ceil(N/C),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var FD,IO;var MD=b(()=>{XO();jD();wD();fD();GO();xD();fO();AO();FD=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];IO=class IO{generator;controller=new AbortController;constructor(O){this.generator=O}async*[Symbol.asyncIterator](){yield*this.generator}}});function M1(O){let D=O.toLowerCase();return RD.some(($)=>D.includes($))}function s(O){try{let D=new URL(O);if(D.username)D.username="redacted";if(D.password)D.password="redacted";for(let Z of D.searchParams.keys())if(M1(Z))D.searchParams.set(Z,"redacted");let $=D.toString();return t($,process.env)??$}catch{return t(O,process.env)??O}}var SD=b(()=>{UD();vD()});function ED(O){if(!O)return!1;try{let D=new URL(O).host;return D==="api.openai.com"||D.endsWith(".api.openai.com")}catch{return!1}}class D1{defaultHeaders;reasoningEffort;constructor(O,D){this.defaultHeaders=$O(O),this.reasoningEffort=D}create(O,D){let $=this,Z,Q=(async()=>{let W=TD({model:O.model,reasoningEffortOverride:$.reasoningEffort}),H=await $._doRequest(W,O,D);if(Z=H,O.stream){let L=H.url?.includes("/responses"),_=0;for(let f of O.messages){let R=f,N=R.message?R.message.content:R.content;if(N!=null&&typeof N!=="string"&&!Array.isArray(N))continue;_+=kO(N)}if(typeof O.system==="string")_+=Z1(O.system);else if(Array.isArray(O.system))_+=kO(O.system);return new IO(W.transport==="codex_responses"||L?O1(H,W.resolvedModel,D?.signal):AD(H,W.resolvedModel,D?.signal,_))}if(W.transport==="codex_responses"){let L=await eD(H,D?.signal);return hO(L,W.resolvedModel)}if(H.url?.includes("/responses")||W.transport==="chat_completions"&&VO()){if((H.headers.get("content-type")??"").includes("application/json")){let _=await H.json();if(_&&typeof _==="object"&&(("output"in _)||("incomplete_details"in _)))return hO(_,W.resolvedModel);return $._convertNonStreamingResponse(_,W.resolvedModel)}}if((H.headers.get("content-type")??"").includes("application/json")){let L=await H.json();return $._convertNonStreamingResponse(L,W.resolvedModel)}let X=await H.text().catch(()=>"");throw ZO.generate(H.status,void 0,`OpenAI API error ${H.status}: unexpected response: ${X.slice(0,500)}`,H.headers)})();return Q.withResponse=async()=>{return{data:await Q,response:Z??new Response,request_id:Z?.headers.get("x-request-id")??WO()}},Q}async _doRequest(O,D,$){let Z=vO(O.baseUrl),Q=VO();if(Q&&O.transport==="codex_responses"){let H=DO(),Y=H?.extras?.githubToken??H?.apiKey??"";if(!Y)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return gO({request:O,credentials:{apiKey:Y,source:"env"},params:D,defaultHeaders:{...this.defaultHeaders,...$O($?.headers),...UO,...qO(D.messages)},signal:$?.signal})}if(O.transport==="codex_responses"&&!Q){let H=await CD().catch(async(J)=>{return B(`[codex] access token refresh failed before request: ${J instanceof Error?J.message:String(J)}`,{level:"warn"}),{refreshed:!1,credentials:await BD()}}),Y=gD({storedCredentials:H.credentials});if(!Y.apiKey){let J=OO()?"":", choose Codex OAuth in /provider",X=Y.authPath?`${J} or place a Codex auth.json at ${Y.authPath}`:J,L=t(O.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${L}. Set CODEX_API_KEY${X}.`)}if(!Y.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");return gO({request:O,credentials:Y,params:D,defaultHeaders:{...this.defaultHeaders,...$O($?.headers)},signal:$?.signal})}return this._doOpenAIRequest(O,D,$)}async _doOpenAIRequest(O,D,$){let Z=rD(D.messages),Q=_D(Z,D.system,{preserveReasoningContent:SO(O.baseUrl)||BO(O.baseUrl)||EO(O.baseUrl)}),W={model:O.resolvedModel,messages:Q,stream:D.stream??!1,store:!1,...ED(O.baseUrl)&&{prompt_cache_key:xO(),prompt_cache_retention:"24h"}},H=typeof D.max_tokens==="number"&&D.max_tokens>0?D.max_tokens:void 0,Y=typeof D.max_completion_tokens==="number"?D.max_completion_tokens:void 0;if(H!==void 0)W.max_completion_tokens=H;else if(Y!==void 0)W.max_completion_tokens=Y;if(D.stream&&!RO(O.baseUrl))W.stream_options={include_usage:!0};let J=VO(),X=dD(),L=RO(O.baseUrl),_=vO(O.baseUrl),f=J&&_==="copilot",R=J&&(_==="models"||_==="custom"),N=SO(O.baseUrl),G=BO(O.baseUrl),I=EO(O.baseUrl);if((J||X||L||N||G||I)&&W.max_completion_tokens!==void 0)W.max_tokens=W.max_completion_tokens,delete W.max_completion_tokens;if(X||a()||N||G||I)delete W.store;if(D.temperature!==void 0)W.temperature=D.temperature;if(D.top_p!==void 0)W.top_p=D.top_p;if(G){let V=D.thinking?.type,z=V==="disabled"?"disabled":V==="enabled"||V==="adaptive"?"enabled":void 0;if(z)W.thinking={type:z};if(z==="enabled"){let g=O.reasoning?.effort;if(g)W.reasoning_effort=pD(g)}}if(D.tools&&D.tools.length>0){let V=jO(D.tools);if(V.length>0){if(W.tools=V,D.tool_choice){let z=D.tool_choice;if(z.type==="auto")W.tool_choice="auto";else if(z.type==="tool"&&z.name)W.tool_choice={type:"function",function:{name:z.name}};else if(z.type==="any")W.tool_choice="required";else if(z.type==="none")W.tool_choice="none"}}}let j={"Content-Type":"application/json",...this.defaultHeaders,...$O($?.headers),"User-Agent":oD()},v=a(),P=DO(),M;if(bD(P?.baseUrl)&&!P?.apiKey)M=(await nD().catch(async(z)=>{return B(`[xai] access token refresh failed before request: ${z instanceof Error?z.message:String(z)}`,{level:"warn"}),{refreshed:!1,credentials:await iD()}})).credentials?.accessToken;let h=P?.apiKey??P?.extras?.githubToken??M??"",q=!1;try{let{hostname:V}=new URL(O.baseUrl);q=V.endsWith(".azure.com")&&(V.includes("cognitiveservices")||V.includes("openai")||V.includes("services.ai"))}catch{}let u=!1;try{u=O.baseUrl.toLowerCase().includes("bankr")}catch{}if(h){if(q)j["api-key"]=h;else if(u)j["X-API-Key"]=h;else j.Authorization=`Bearer ${h}`;if(M&&h===M)j["User-Agent"]=lD()}else if(v){let V=await aD(process.env);if(V.kind!=="none"){if(j.Authorization=`Bearer ${V.credential}`,V.kind!=="api-key"&&"projectId"in V&&V.projectId)j["x-goog-user-project"]=V.projectId}}if(f)Object.assign(j,UO,qO(D.messages));else if(R)j.Accept="application/vnd.github+json",j["X-GitHub-Api-Version"]="2022-11-28";let C=(V)=>{if(q){let z=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",g=O.resolvedModel??P?.model??"gpt-4o";if(/\/deployments\//i.test(V))return`${V.replace(/\/+$/,"")}/chat/completions?api-version=${z}`;return`${V.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${g}/chat/completions?api-version=${z}`}return`${V}/chat/completions`},i=L?qD(O.baseUrl):[],y=O.baseUrl,x=C(y),S=new Set([y]),n=!1,p=(V)=>{for(let z of i){if(S.has(z))continue;let g=x;return S.add(z),y=z,x=C(y),B(`[OpenAIShim] self-heal retry reason=${V} method=POST from=${s(g)} to=${s(x)} model=${O.resolvedModel}`,{level:"warn"}),!0}return!1},k=zO(W),d=()=>{k=zO(W)},QO=()=>({method:"POST",headers:j,body:k,signal:$?.signal}),K=L?i.length+1:0,w=(J?hD:1)+K,c=(V,z,g)=>{if($?.signal?.aborted)throw V;let E=g??bO(V,{url:z}),r=s(z),o=t(E.message,process.env)||"Request failed";throw B(`[OpenAIShim] transport failure category=${E.category} retryable=${E.retryable} code=${E.code??"unknown"} method=POST url=${r} model=${O.resolvedModel} message=${o}`,{level:"warn"}),ZO.generate(503,void 0,CO(`OpenAI API transport error: ${o}${E.code?` (code=${E.code})`:""}`,E),new Headers)},T=(V,z,g,E,r,o="",F)=>{let U=F??KO({status:V,body:z}),l=s(r);throw B(`[OpenAIShim] request failed category=${U.category} retryable=${U.retryable} status=${V} method=POST url=${l} model=${O.resolvedModel}`,{level:"warn"}),ZO.generate(V,g,CO(`OpenAI API error ${V}: ${z}${o}`,U),E)},A,Q1=O.baseUrl.includes("nvidia")?"nvidia-nim":O.baseUrl.includes("minimax")?"minimax":O.baseUrl.includes("localhost:11434")||O.baseUrl.includes("localhost:11435")?"ollama":O.baseUrl.includes("anthropic")?"anthropic":"openai",mO=uD(),{correlationId:Y1,startTime:X1}=tO(Q1,O.resolvedModel);for(let V=0;V<w;V++){try{A=await yO(x,QO(),{provider:mO})}catch(F){if($?.signal?.aborted===!0||typeof DOMException<"u"&&F instanceof DOMException&&F.name==="AbortError"||typeof F==="object"&&F!==null&&"name"in F&&F.name==="AbortError")throw F;let l=bO(F,{url:x});if(L&&l.category==="localhost_resolution_failed"&&p("localhost_resolution_failed"))continue;c(F,x,l)}if(A.ok){let F=0,U=0;if(!D.stream)try{let m=await A.clone().json();F=m.usage?.prompt_tokens??0,U=m.usage?.completion_tokens??0}catch{}return sO(Y1,X1,O.resolvedModel,"success",F,U,!1),A}if(J&&A.status===429&&V<w-1){await A.text().catch(()=>{});let F=Math.min(kD*2**V,mD);await YD(F*1000);continue}let z=await A.text().catch(()=>"unknown error"),g=J&&A.status===429?ZD(A):"";if(J&&A.status===400){if(z.includes("/chat/completions")||z.includes("not accessible")){let F=`${O.baseUrl}/responses`,U={model:O.resolvedModel,input:tD(D.messages),stream:D.stream??!1,store:!1,...ED(O.baseUrl)&&{prompt_cache_key:xO(),prompt_cache_retention:"24h"}};if(!Array.isArray(U.input)||U.input.length===0)U.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let l=FO(D.system);if(l)U.instructions=l;if(W.max_tokens!==void 0)U.max_output_tokens=W.max_tokens;if(D.tools&&D.tools.length>0){let YO=sD(D.tools);if(YO.length>0)U.tools=YO}let m;try{m=await yO(F,{method:"POST",headers:j,body:zO(U),signal:$?.signal},{provider:mO})}catch(YO){c(YO,F)}if(m.ok)return m;let LO=await m.text().catch(()=>"unknown error"),H1=KO({status:m.status,body:LO}),uO;try{uO=JSON.parse(LO)}catch{}T(m.status,LO,uO,m.headers,F,"",H1)}}let E=KO({status:A.status,body:z});if(L&&E.category==="endpoint_not_found"&&p("endpoint_not_found"))continue;let r=Array.isArray(W.tools)&&W.tools.length>0;if(!n&&E.category==="tool_call_incompatible"&&yD({baseUrl:y,hasTools:r})){n=!0,delete W.tools,delete W.tool_choice,d(),B(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${s(x)} model=${O.resolvedModel}`,{level:"warn"});continue}let o;try{o=JSON.parse(z)}catch{}T(A.status,z,o,A.headers,x,g,E)}throw ZO.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse(O,D){let $=O.choices?.[0],Z=[],Q=LD($?.message??{});if(Q)Z.push({type:"thinking",thinking:Q});let W=$?.message?.content!==""&&$?.message?.content!=null?$?.message?.content:null;if(typeof W==="string"&&W)Z.push({type:"text",text:TO(W)});else if(Array.isArray(W)&&W.length>0){let Y=[];for(let X of W)if(X&&typeof X==="object"&&X.type==="text"&&typeof X.text==="string")Y.push(X.text);let J=Y.join(`
|
|
12
|
-
`);if(J)Z.push({type:"text",text:TO(J)})}if($?.message?.tool_calls)for(let Y of $.message.tool_calls){let J=HO(Y.function.name,Y.function.arguments);Z.push({type:"tool_use",id:Y.id,name:Y.function.name,input:J,...Y.extra_content?{extra_content:Y.extra_content}:{},...Y.extra_content?.google?.thought_signature?{signature:Y.extra_content.google.thought_signature}:{}})}let H=$?.finish_reason==="tool_calls"?"tool_use":$?.finish_reason==="length"?"max_tokens":"end_turn";if($?.finish_reason==="content_filter"||$?.finish_reason==="safety")Z.push({type:"text",text:`
|
|
13
|
-
|
|
14
|
-
[Content blocked by provider safety filter]`});return{id:O.id??WO(),type:"message",role:"assistant",content:Z,model:O.model??D,stop_reason:H,stop_sequence:null,usage:_O(O.usage)}}}class $1{messages;reasoningEffort;constructor(O,D){this.messages=new D1(O,D),this.reasoningEffort=D}}function k1(O){aO(),cD();let D=new $1({...O.defaultHeaders??{}},O.reasoningEffort);return{beta:D,messages:D.messages}}var W1=b(()=>{x1();R1();C1();B1();XO();PO();oO();rO();E1();U1();UD();eO();S1();xD();T1();iO();wD();h1();g1();b1();v1();fD();GO();q1();y1();vD();QD();fO();VD();NO();AO();MD();I1();wO();SD()});var m1=b(()=>{wO();W1()});m1();export{k1 as createOpenAIShimClient,jO as convertTools};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vpa as t}from"./cli-0.6.12-6bdrnprg.mjs";async function o(e){e("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.",{display:"system"})}var n=()=>{};n();export{o as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ai as e,bi as a}from"./cli-0.6.12-1rc09wxd.mjs";import{Vpa as r}from"./cli-0.6.12-6bdrnprg.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./cli-0.6.12-6bdrnprg.mjs";var o=()=>null,n=o;export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A1 as c,B1 as d,C1 as e,D1 as f,y1 as a,z1 as b}from"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-6bdrnprg.mjs";f();export{d as parseCommandRaw,b as parseCommand,e as extractCommandArguments,a as ensureInitialized,c as PARSE_ABORTED};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{PW as y,RW as Nq,UW as S,VW as Qq,bX as O,cX as Uq,dX as f,fX as c,hX as g,iX as m,kX as b}from"./cli-0.6.12-n87dgp00.mjs";import{GZ as R,LX as v,QX as Hq,RZ as Mq,kZ as M,mZ as z,qZ as L}from"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import{W1 as U,X1 as q,Y1 as J,Z1 as V}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as Jq}from"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{$9 as F,E$ as zq,Rca as Xq,b_ as qq,k$ as h,nea as E,tca as u,vea as Bq,wca as d}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import{Vga as _,Yga as k}from"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Rpa as e,Vpa as C}from"./cli-0.6.12-6bdrnprg.mjs";function D({onDone:X}){let[P,Q]=N.useState(!0),[$,T]=N.useState([]),[j,W]=N.useState(!1),[G,x]=N.useState(null),[A,o]=N.useState(void 0),Y=S(()=>X("Guest passes dialog dismissed",{display:"system"})),l=N.useCallback(()=>{X("Guest passes dialog dismissed",{display:"system"})},[X]);if(y("confirm:no",l,{context:"Confirmation"}),R((H,B)=>{if(B.return&&G)v(G).then((K)=>{if(K)process.stdout.write(K);_("tengu_guest_passes_link_copied",{}),X("Referral link copied to clipboard!")})}),N.useEffect(()=>{async function H(){try{let B=await m();if(!B||!B.eligible){W(!1),Q(!1);return}if(W(!0),B.referral_code_details?.referral_link)x(B.referral_code_details.referral_link);o(B.referrer_reward);let K=B.referral_code_details?.campaign??"claude_code_guest_pass",I;try{I=await f(K)}catch(Z){E(Z),W(!1),Q(!1);return}let t=I.redemptions||[],a=I.limit||3,w=[];for(let Z=0;Z<a;Z++){let s=t[Z];w.push({passNumber:Z+1,isAvailable:!s})}T(w),Q(!1)}catch(B){E(B),W(!1),Q(!1)}}H()},[]),P)return q(O,{children:J(M,{flexDirection:"column",gap:1,children:[q(z,{dimColor:!0,children:"Loading guest pass information…"}),q(z,{dimColor:!0,italic:!0,children:Y.pending?J(U,{children:["Press ",Y.keyName," again to exit"]}):q(U,{children:"Esc to cancel"})})]})});if(!j)return q(O,{children:J(M,{flexDirection:"column",gap:1,children:[q(z,{children:"Guest passes are not currently available."}),q(z,{dimColor:!0,italic:!0,children:Y.pending?J(U,{children:["Press ",Y.keyName," again to exit"]}):q(U,{children:"Esc to cancel"})})]})});let n=F($,(H)=>H.isAvailable),r=[...$].sort((H,B)=>+B.isAvailable-+H.isAvailable),i=(H)=>{if(!H.isAvailable)return J(M,{flexDirection:"column",marginRight:1,children:[q(z,{dimColor:!0,children:"┌─────────╱"}),q(z,{dimColor:!0,children:` ) CC ${h} ┊╱`}),q(z,{dimColor:!0,children:"└───────╱"})]},H.passNumber);return J(M,{flexDirection:"column",marginRight:1,children:[q(z,{children:"┌──────────┐"}),J(z,{children:[" ) CC ",q(z,{color:"claude",children:h})," ┊ ( "]}),q(z,{children:"└──────────┘"})]},H.passNumber)};return q(O,{children:J(M,{flexDirection:"column",gap:1,children:[J(z,{color:"permission",children:["Guest passes · ",n," left"]}),q(M,{flexDirection:"row",marginLeft:2,children:r.slice(0,3).map((H)=>i(H))}),G&&q(M,{marginLeft:2,children:q(z,{children:G})}),q(M,{flexDirection:"column",marginLeft:2,children:J(z,{dimColor:!0,children:[A?`Share a free week of Claude Code with friends. If they love it and subscribe, you'll get ${c(A)} of extra usage to keep building. `:"Share a free week of Claude Code with friends. ",q(L,{url:A?"https://support.claude.com/en/articles/13456702-claude-code-guest-passes":"https://support.claude.com/en/articles/12875061-claude-code-guest-passes",children:"Terms apply."})]})}),q(M,{children:q(z,{dimColor:!0,italic:!0,children:Y.pending?J(U,{children:["Press ",Y.keyName," again to exit"]}):q(U,{children:"Enter to copy link · Esc to cancel"})})})]})})}var N;var p=C(()=>{zq();Qq();Hq();Mq();Nq();k();b();qq();Bq();Uq();V();N=e(Jq(),1)});async function kq(X){let Q=!d().hasVisitedPasses;if(Q){let $=g();u((T)=>({...T,hasVisitedPasses:!0,passesLastSeenRemaining:$??T.passesLastSeenRemaining}))}return _("tengu_guest_passes_visited",{is_first_visit:Q}),q(D,{onDone:X})}var Yq=C(()=>{p();k();b();Xq();V()});Yq();export{kq as call};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Yd as eG,Zd as nJ}from"./cli-0.6.12-aj7y0fr6.mjs";import{ig as gJ,jg as CX}from"./cli-0.6.12-175knjzx.mjs";import{$g as IX,Zg as OX,_g as sX,ah as tX}from"./cli-0.6.12-bgfgcewx.mjs";import{bh as WX,ch as IG,dh as EX,eh as OG,fh as fJ}from"./cli-0.6.12-5qypvh7v.mjs";import{gh as iJ,hh as hX}from"./cli-0.6.12-r5az487p.mjs";import{lh as wX,mh as $X}from"./cli-0.6.12-nqh7eeq7.mjs";import"./cli-0.6.12-fmf3vjw6.mjs";import"./cli-0.6.12-0ghv260y.mjs";import"./cli-0.6.12-c864w559.mjs";import"./cli-0.6.12-dawxz0j1.mjs";import"./cli-0.6.12-3wqd066g.mjs";import{Do as MJ,Eo as vX,Jn as sG,Kn as TJ,QM as LX,RM as UX,RP as qY,SB as rG,SM as kX,TB as FJ,TM as qX,VM as QX,WM as oX,kI as pJ,lI as mX,nF as hJ,oF as _X,pP as KX,um as EG,vv as zX,wv as NX,xF as n,xm as $G,yF as VG,yv as rX,zm as KJ}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import{BW as SJ,CW as SX,PW as PG,RW as _J,UW as FG,VW as mJ,bX as ZX,cX as aX}from"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import{GZ as uJ,QY as YX,RX as JG,RZ as XG,kZ as C,mZ as H,uZ as RJ}from"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import{W1 as r,X1 as Z,Y1 as F,Z1 as x}from"./cli-0.6.12-g9dxg935.mjs";import{_1 as tG}from"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import{$6 as lX,_6 as s}from"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import{Gba as jX,Jaa as yJ,Kaa as u,Laa as HJ,Oaa as bJ,S_ as OJ,T_ as TX,Waa as gX,f8 as YG,g8 as BJ,qba as IJ}from"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import{Bha as DG,Gha as nX}from"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import{ooa as dX,xka as tJ}from"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Rpa as i,Vpa as e}from"./cli-0.6.12-6bdrnprg.mjs";function oG(U){let G=DJ.c(9),{ruleValue:X}=U;switch(X.toolName){case rG.name:if(X.ruleContent)if(X.ruleContent.endsWith(":*")){let N;if(G[0]!==X.ruleContent)N=X.ruleContent.slice(0,-2),G[0]=X.ruleContent,G[1]=N;else N=G[1];let J;if(G[2]!==N)J=F(H,{dimColor:!0,children:["Any Bash command starting with"," ",Z(H,{bold:!0,children:N})]}),G[2]=N,G[3]=J;else J=G[3];return J}else{let N;if(G[4]!==X.ruleContent)N=F(H,{dimColor:!0,children:["The Bash command ",Z(H,{bold:!0,children:X.ruleContent})]}),G[4]=X.ruleContent,G[5]=N;else N=G[5];return N}else{let N;if(G[6]===Symbol.for("react.memo_cache_sentinel"))N=Z(H,{dimColor:!0,children:"Any Bash command"}),G[6]=N;else N=G[6];return N}default:if(!X.ruleContent){let N;if(G[7]!==X.toolName)N=F(H,{dimColor:!0,children:["Any use of the ",Z(H,{bold:!0,children:X.toolName})," tool"]}),G[7]=X.toolName,G[8]=N;else N=G[8];return N}else return null}}var DJ;var EJ=e(()=>{XG();FJ();x();DJ=i(JG(),1)});function yX(U){switch(U){case"localSettings":return{label:"Project settings (local)",description:`Saved in ${IJ("localSettings")}`,value:U};case"projectSettings":return{label:"Project settings",description:`Checked in at ${IJ("projectSettings")}`,value:U};case"userSettings":return{label:"User settings",description:"Saved in ~/.claudin/settings.json",value:U}}}function vJ(U){let G=jJ.c(26),{onAddRules:X,onCancel:N,ruleValues:J,ruleBehavior:q,initialContext:B,setToolPermissionContext:Q}=U,E;if(G[0]===Symbol.for("react.memo_cache_sentinel"))E=OJ.map(yX),G[0]=E;else E=G[0];let k=E,W;if(G[1]!==B||G[2]!==X||G[3]!==N||G[4]!==q||G[5]!==J||G[6]!==Q)W=(g)=>{if(g==="cancel"){N();return}else if(OJ.includes(g)){let A=g,T=EG(B,{type:"addRules",rules:J,behavior:q,destination:A});$G({type:"addRules",rules:J,behavior:q,destination:A}),Q(T);let j=J.map((_)=>({ruleValue:_,ruleBehavior:q,source:A})),S=MJ.isSandboxingEnabled()&&MJ.isAutoAllowBashIfSandboxedEnabled(),l=gJ(T,{sandboxAutoAllowEnabled:S}).filter((_)=>J.some((R)=>R.toolName===_.rule.ruleValue.toolName&&R.ruleContent===_.rule.ruleValue.ruleContent));X(j,l.length>0?l:void 0)}},G[1]=B,G[2]=X,G[3]=N,G[4]=q,G[5]=J,G[6]=Q,G[7]=W;else W=G[7];let z=W,L;if(G[8]!==J.length)L=bJ(J.length,"rule"),G[8]=J.length,G[9]=L;else L=G[9];let I=`Add ${q} permission ${L}`,M;if(G[10]!==J)M=J.map(RX),G[10]=J,G[11]=M;else M=G[11];let O;if(G[12]!==M)O=Z(C,{flexDirection:"column",paddingX:2,children:M}),G[12]=M,G[13]=O;else O=G[13];let K=J.length===1?"Where should this rule be saved?":"Where should these rules be saved?",D;if(G[14]!==K)D=Z(H,{children:K}),G[14]=K,G[15]=D;else D=G[15];let w;if(G[16]!==z)w=Z(n,{options:k,onChange:z}),G[16]=z,G[17]=w;else w=G[17];let f;if(G[18]!==D||G[19]!==w)f=F(C,{flexDirection:"column",marginY:1,children:[D,w]}),G[18]=D,G[19]=w,G[20]=f;else f=G[20];let b;if(G[21]!==N||G[22]!==O||G[23]!==f||G[24]!==I)b=F(sG,{title:I,onCancel:N,color:"permission",children:[O,f]}),G[21]=N,G[22]=O,G[23]=f,G[24]=I,G[25]=b;else b=G[25];return b}function RX(U){return F(C,{flexDirection:"column",children:[Z(H,{bold:!0,children:u(U)}),Z(oG,{ruleValue:U})]},u(U))}var jJ;var CJ=e(()=>{VG();XG();KJ();HJ();CX();vX();TX();jX();gX();TJ();EJ();x();jJ=i(JG(),1)});function cJ(U){let G=xJ.c(24),{onCancel:X,onSubmit:N,ruleBehavior:J}=U,[q,B]=AJ.useState(""),[Q,E]=AJ.useState(0),k=FG(),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W={context:"Settings"},G[0]=W;else W=G[0];PG("confirm:no",X,W);let{columns:z}=SJ(),L=z-6,I;if(G[1]!==N||G[2]!==J)I=(j)=>{let S=j.trim();if(S.length===0)return;let p=yJ(S);N(p,J)},G[1]=N,G[2]=J,G[3]=I;else I=G[3];let M=I,O;if(G[4]!==J)O=F(H,{bold:!0,color:"permission",children:["Add ",J," permission rule"]}),G[4]=J,G[5]=O;else O=G[5];let K;if(G[6]===Symbol.for("react.memo_cache_sentinel"))K=Z(RJ,{}),G[6]=K;else K=G[6];let D,w;if(G[7]===Symbol.for("react.memo_cache_sentinel"))D=Z(H,{bold:!0,children:u({toolName:pJ.name})}),w=Z(H,{bold:!1,children:" or "}),G[7]=D,G[8]=w;else D=G[7],w=G[8];let f;if(G[9]===Symbol.for("react.memo_cache_sentinel"))f=F(H,{children:["Permission rules are a tool name, optionally followed by a specifier in parentheses.",K,"e.g.,"," ",D,w,Z(H,{bold:!0,children:u({toolName:rG.name,ruleContent:"ls:*"})})]}),G[9]=f;else f=G[9];let b;if(G[10]!==Q||G[11]!==M||G[12]!==q||G[13]!==L)b=F(C,{flexDirection:"column",children:[f,Z(C,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:Z(hJ,{showCursor:!0,value:q,onChange:B,onSubmit:M,placeholder:`Enter permission rule${YG.ellipsis}`,columns:L,cursorOffset:Q,onChangeCursorOffset:E})})]}),G[10]=Q,G[11]=M,G[12]=q,G[13]=L,G[14]=b;else b=G[14];let g;if(G[15]!==O||G[16]!==b)g=F(C,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[O,b]}),G[15]=O,G[16]=b,G[17]=g;else g=G[17];let A;if(G[18]!==k.keyName||G[19]!==k.pending)A=Z(C,{marginLeft:3,children:k.pending?F(H,{dimColor:!0,children:["Press ",k.keyName," again to exit"]}):Z(H,{dimColor:!0,children:"Enter to submit · Esc to cancel"})}),G[18]=k.keyName,G[19]=k.pending,G[20]=A;else A=G[20];let T;if(G[21]!==A||G[22]!==g)T=F(r,{children:[g,A]}),G[21]=A,G[22]=g,G[23]=T;else T=G[23];return T}var xJ,AJ;var dJ=e(()=>{BJ();_X();mJ();SX();XG();_J();FJ();mX();HJ();x();xJ=i(JG(),1),AJ=i(tG(),1)});function aJ(U){let G=lJ.c(30),{onHeaderFocusChange:X,onStateChange:N}=U,{headerFocused:J,focusHeader:q}=OG(),B,Q;if(G[0]!==J||G[1]!==X)B=()=>{X?.(J)},Q=[J,X],G[0]=J,G[1]=X,G[2]=B,G[3]=Q;else B=G[2],Q=G[3];GG.useEffect(B,Q);let[E]=GG.useState(cX),[k,W]=GG.useState(xX),[z,L]=GG.useState(pX),[I,M]=GG.useState(0),O,K;if(G[4]!==k||G[5]!==E||G[6]!==N||G[7]!==z)O=()=>{N({approved:k,retry:z,denials:E})},K=[k,z,E,N],G[4]=k,G[5]=E,G[6]=N,G[7]=z,G[8]=O,G[9]=K;else O=G[8],K=G[9];GG.useEffect(O,K);let D;if(G[10]===Symbol.for("react.memo_cache_sentinel"))D=(R)=>{let m=Number(R);W((c)=>{let h=new Set(c);if(h.has(m))h.delete(m);else h.add(m);return h})},G[10]=D;else D=G[10];let w=D,f;if(G[11]===Symbol.for("react.memo_cache_sentinel"))f=(R)=>{M(Number(R))},G[11]=f;else f=G[11];let b=f,g;if(G[12]!==I)g=(R,m)=>{if(R==="r")L((c)=>{let h=new Set(c);if(h.has(I))h.delete(I);else h.add(I);return h}),W((c)=>{if(c.has(I))return c;let h=new Set(c);return h.add(I),h})},G[12]=I,G[13]=g;else g=G[13];let A=E.length>0,T;if(G[14]!==A)T={isActive:A},G[14]=A,G[15]=T;else T=G[15];if(uJ(g,T),E.length===0){let R;if(G[16]===Symbol.for("react.memo_cache_sentinel"))R=Z(H,{dimColor:!0,children:"No recent denials. Commands denied by the auto mode classifier will appear here."}),G[16]=R;else R=G[16];return R}let j;if(G[17]!==k||G[18]!==E||G[19]!==z){let R;if(G[21]!==k||G[22]!==z)R=(m,c)=>{let h=k.has(c),GJ=z.has(c)?" (retry)":"";return{label:F(H,{children:[Z(iJ,{status:h?"success":"error",withSpace:!0}),m.display,Z(H,{dimColor:!0,children:GJ})]}),value:String(c)}},G[21]=k,G[22]=z,G[23]=R;else R=G[23];j=E.map(R),G[17]=k,G[18]=E,G[19]=z,G[20]=j}else j=G[20];let S=j,p;if(G[24]===Symbol.for("react.memo_cache_sentinel"))p=Z(H,{children:"Commands recently denied by the auto mode classifier."}),G[24]=p;else p=G[24];let l=Math.min(10,S.length),_;if(G[25]!==q||G[26]!==J||G[27]!==S||G[28]!==l)_=F(C,{flexDirection:"column",children:[p,Z(C,{marginTop:1,children:Z(n,{options:S,onChange:w,onFocus:b,visibleOptionCount:l,isDisabled:J,onUpFromFirstItem:q})})]}),G[25]=q,G[26]=J,G[27]=S,G[28]=l,G[29]=_;else _=G[29];return _}function pX(){return new Set}function xX(){return new Set}function cX(){return eG()}var lJ,GG;var rJ=e(()=>{XG();nJ();VG();hX();fJ();x();lJ=i(JG(),1),GG=i(tG(),1)});function $J(U){let G=oJ.c(19),{directoryPath:X,onRemove:N,onCancel:J,permissionContext:q,setPermissionContext:B}=U,Q;if(G[0]!==X||G[1]!==N||G[2]!==q||G[3]!==B)Q=()=>{let K=EG(q,{type:"removeDirectories",directories:[X],destination:"session"});B(K),N()},G[0]=X,G[1]=N,G[2]=q,G[3]=B,G[4]=Q;else Q=G[4];let E=Q,k;if(G[5]!==E||G[6]!==J)k=(K)=>{if(K==="yes")E();else J()},G[5]=E,G[6]=J,G[7]=k;else k=G[7];let W=k,z;if(G[8]!==X)z=Z(C,{marginX:2,flexDirection:"column",children:Z(H,{bold:!0,children:X})}),G[8]=X,G[9]=z;else z=G[9];let L;if(G[10]===Symbol.for("react.memo_cache_sentinel"))L=Z(H,{children:"Claude Code will no longer have access to files in this directory."}),G[10]=L;else L=G[10];let I;if(G[11]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],G[11]=I;else I=G[11];let M;if(G[12]!==W||G[13]!==J)M=Z(n,{onChange:W,onCancel:J,options:I}),G[12]=W,G[13]=J,G[14]=M;else M=G[14];let O;if(G[15]!==J||G[16]!==z||G[17]!==M)O=F(sG,{title:"Remove directory from workspace?",onCancel:J,color:"error",children:[z,L,M]}),G[15]=J,G[16]=z,G[17]=M,G[18]=O;else O=G[18];return O}var oJ;var sJ=e(()=>{VG();XG();KJ();TJ();x();oJ=i(JG(),1)});function JX(U){let G=eJ.c(23),{onExit:X,toolPermissionContext:N,onRequestAddDirectory:J,onRequestRemoveDirectory:q,onHeaderFocusChange:B}=U,{headerFocused:Q,focusHeader:E}=OG(),k,W;if(G[0]!==Q||G[1]!==B)k=()=>{B?.(Q)},W=[Q,B],G[0]=Q,G[1]=B,G[2]=k,G[3]=W;else k=G[2],W=G[3];GX.useEffect(k,W);let z;if(G[4]!==N.additionalWorkingDirectories)z=Array.from(N.additionalWorkingDirectories.keys()).map(iX),G[4]=N.additionalWorkingDirectories,G[5]=z;else z=G[5];let L=z,I;if(G[6]!==L||G[7]!==J||G[8]!==q)I=(A)=>{if(A==="add-directory"){J();return}let T=L.find((j)=>j.path===A);if(T&&T.isDeletable)q(T.path)},G[6]=L,G[7]=J,G[8]=q,G[9]=I;else I=G[9];let M=I,O;if(G[10]!==X)O=()=>X("Workspace dialog dismissed",{display:"system"}),G[10]=X,G[11]=O;else O=G[11];let K=O,D;if(G[12]!==L){D=L.map(uX);let A;if(G[14]===Symbol.for("react.memo_cache_sentinel"))A={label:`Add directory${YG.ellipsis}`,value:"add-directory"},G[14]=A;else A=G[14];D.push(A),G[12]=L,G[13]=D}else D=G[13];let w=D,f;if(G[15]===Symbol.for("react.memo_cache_sentinel"))f=F(C,{flexDirection:"row",marginTop:1,marginLeft:2,gap:1,children:[Z(H,{children:`- ${tJ()}`}),Z(H,{dimColor:!0,children:"(Original working directory)"})]}),G[15]=f;else f=G[15];let b=Math.min(10,w.length),g;if(G[16]!==E||G[17]!==K||G[18]!==M||G[19]!==Q||G[20]!==w||G[21]!==b)g=F(C,{flexDirection:"column",marginBottom:1,children:[f,Z(n,{options:w,onChange:M,onCancel:K,visibleOptionCount:b,onUpFromFirstItem:E,isDisabled:Q})]}),G[16]=E,G[17]=K,G[18]=M,G[19]=Q,G[20]=w,G[21]=b,G[22]=g;else g=G[22];return g}function uX(U){return{label:U.path,value:U.path}}function iX(U){return{path:U,isCurrent:!1,isDeletable:!0}}var eJ,GX;var XX=e(()=>{BJ();dX();VG();XG();fJ();x();eJ=i(JG(),1),GX=i(tG(),1)});function eX(U){let G=MG.c(4),{rule:X}=U,N;if(G[0]!==X.source)N=LX(X.source),G[0]=X.source,G[1]=N;else N=G[1];let J=`From ${N}`,q;if(G[2]!==J)q=Z(H,{dimColor:!0,children:J}),G[2]=J,G[3]=q;else q=G[3];return q}function GY(U){switch(U){case"allow":return"allowed";case"deny":return"denied";case"ask":return"ask"}}function JY(U){let G=MG.c(42),{rule:X,onDelete:N,onCancel:J}=U,q=FG(),B;if(G[0]===Symbol.for("react.memo_cache_sentinel"))B={context:"Confirmation"},G[0]=B;else B=G[0];PG("confirm:no",J,B);let Q;if(G[1]!==X.ruleValue)Q=u(X.ruleValue),G[1]=X.ruleValue,G[2]=Q;else Q=G[2];let E;if(G[3]!==Q)E=Z(H,{bold:!0,children:Q}),G[3]=Q,G[4]=E;else E=G[4];let k;if(G[5]!==X.ruleValue)k=Z(oG,{ruleValue:X.ruleValue}),G[5]=X.ruleValue,G[6]=k;else k=G[6];let W;if(G[7]!==X)W=Z(eX,{rule:X}),G[7]=X,G[8]=W;else W=G[8];let z;if(G[9]!==E||G[10]!==k||G[11]!==W)z=F(C,{flexDirection:"column",marginX:2,children:[E,k,W]}),G[9]=E,G[10]=k,G[11]=W,G[12]=z;else z=G[12];let L=z,I;if(G[13]!==q.keyName||G[14]!==q.pending)I=Z(C,{marginLeft:3,children:q.pending?F(H,{dimColor:!0,children:["Press ",q.keyName," again to exit"]}):Z(H,{dimColor:!0,children:"Esc to cancel"})}),G[13]=q.keyName,G[14]=q.pending,G[15]=I;else I=G[15];let M=I;if(X.source==="policySettings"){let T;if(G[16]===Symbol.for("react.memo_cache_sentinel"))T=Z(H,{bold:!0,color:"permission",children:"Rule details"}),G[16]=T;else T=G[16];let j;if(G[17]===Symbol.for("react.memo_cache_sentinel"))j=F(H,{italic:!0,children:["This rule is configured by managed settings and cannot be modified.",`
|
|
2
|
-
`,"Contact your system administrator for more information."]}),G[17]=j;else j=G[17];let S;if(G[18]!==L)S=F(C,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[T,L,j]}),G[18]=L,G[19]=S;else S=G[19];let p;if(G[20]!==M||G[21]!==S)p=F(r,{children:[S,M]}),G[20]=M,G[21]=S,G[22]=p;else p=G[22];return p}let O;if(G[23]!==X.ruleBehavior)O=GY(X.ruleBehavior),G[23]=X.ruleBehavior,G[24]=O;else O=G[24];let K;if(G[25]!==O)K=F(H,{bold:!0,color:"error",children:["Delete ",O," tool?"]}),G[25]=O,G[26]=K;else K=G[26];let D;if(G[27]===Symbol.for("react.memo_cache_sentinel"))D=Z(H,{children:"Are you sure you want to delete this permission rule?"}),G[27]=D;else D=G[27];let w;if(G[28]!==J||G[29]!==N)w=(T)=>T==="yes"?N():J(),G[28]=J,G[29]=N,G[30]=w;else w=G[30];let f;if(G[31]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],G[31]=f;else f=G[31];let b;if(G[32]!==J||G[33]!==w)b=Z(n,{onChange:w,onCancel:J,options:f}),G[32]=J,G[33]=w,G[34]=b;else b=G[34];let g;if(G[35]!==L||G[36]!==b||G[37]!==K)g=F(C,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"error",children:[K,L,D,b]}),G[35]=L,G[36]=b,G[37]=K,G[38]=g;else g=G[38];let A;if(G[39]!==M||G[40]!==g)A=F(r,{children:[g,M]}),G[39]=M,G[40]=g,G[41]=A;else A=G[41];return A}function XY(U){let G=MG.c(26),{options:X,searchQuery:N,isSearchMode:J,isFocused:q,onSelect:B,onCancel:Q,lastFocusedRuleKey:E,cursorOffset:k,onHeaderFocusChange:W}=U,z=EX(),{headerFocused:L,focusHeader:I,blurHeader:M}=OG(),O,K;if(G[0]!==M||G[1]!==L||G[2]!==J)O=()=>{if(J&&L)M()},K=[J,L,M],G[0]=M,G[1]=L,G[2]=J,G[3]=O,G[4]=K;else O=G[3],K=G[4];d.useEffect(O,K);let D,w;if(G[5]!==L||G[6]!==W)D=()=>{W?.(L)},w=[L,W],G[5]=L,G[6]=W,G[7]=D,G[8]=w;else D=G[7],w=G[8];d.useEffect(D,w);let f=J&&!L,b;if(G[9]!==k||G[10]!==q||G[11]!==N||G[12]!==f||G[13]!==z)b=Z(C,{marginBottom:1,flexDirection:"column",children:Z(OX,{query:N,isFocused:f,isTerminalFocused:q,width:z,cursorOffset:k})}),G[9]=k,G[10]=q,G[11]=N,G[12]=f,G[13]=z,G[14]=b;else b=G[14];let g=Math.min(10,X.length),A=J||L,T;if(G[15]!==I||G[16]!==E||G[17]!==Q||G[18]!==B||G[19]!==X||G[20]!==g||G[21]!==A)T=Z(n,{options:X,onChange:B,onCancel:Q,visibleOptionCount:g,isDisabled:A,defaultFocusValue:E,onUpFromFirstItem:I}),G[15]=I,G[16]=E,G[17]=Q,G[18]=B,G[19]=X,G[20]=g,G[21]=A,G[22]=T;else T=G[22];let j;if(G[23]!==b||G[24]!==T)j=F(C,{flexDirection:"column",children:[b,T]}),G[23]=b,G[24]=T,G[25]=j;else j=G[25];return j}function VJ(U){let G=MG.c(27),X,N,J,q,B,Q,E,k,W;if(G[0]!==U){let{tab:M,getRulesOptions:O,handleToolSelect:K,...D}=U;W=M,J=K,q=D,N=C,Q="column",E=W==="allow"?0:void 0;let w;if(G[10]===Symbol.for("react.memo_cache_sentinel"))w={allow:"Claude Code won't ask before using allowed tools.",ask:"Claude Code will always ask for confirmation before using these tools.",deny:"Claude Code will always reject requests to use denied tools."},G[10]=w;else w=G[10];let f=w[W];if(G[11]!==f)k=Z(H,{children:f}),G[11]=f,G[12]=k;else k=G[12];X=XY,B=O(W,q.searchQuery),G[0]=U,G[1]=X,G[2]=N,G[3]=J,G[4]=q,G[5]=B,G[6]=Q,G[7]=E,G[8]=k,G[9]=W}else X=G[1],N=G[2],J=G[3],q=G[4],B=G[5],Q=G[6],E=G[7],k=G[8],W=G[9];let z;if(G[13]!==J||G[14]!==W)z=(M)=>J(M,W),G[13]=J,G[14]=W,G[15]=z;else z=G[15];let L;if(G[16]!==X||G[17]!==q||G[18]!==B.options||G[19]!==z)L=Z(X,{options:B.options,onSelect:z,...q}),G[16]=X,G[17]=q,G[18]=B.options,G[19]=z,G[20]=L;else L=G[20];let I;if(G[21]!==N||G[22]!==Q||G[23]!==E||G[24]!==k||G[25]!==L)I=F(N,{flexDirection:Q,flexShrink:E,children:[k,L]}),G[21]=N,G[22]=Q,G[23]=E,G[24]=k,G[25]=L,G[26]=I;else I=G[26];return I}function MX(U){let G=MG.c(113),{onExit:X,initialTab:N,onRetryDenials:J}=U,q;if(G[0]===Symbol.for("react.memo_cache_sentinel"))q=eG(),G[0]=q;else q=G[0];let B=q.length>0,Q=N??(B?"recent":"allow"),E;if(G[1]===Symbol.for("react.memo_cache_sentinel"))E=[],G[1]=E;else E=G[1];let[k,W]=d.useState(E),z=zX(UY),L=NX(),I=YX(),M;if(G[2]===Symbol.for("react.memo_cache_sentinel"))M={approved:new Set,retry:new Set,denials:[]},G[2]=M;else M=G[2];let O=d.useRef(M),K;if(G[3]===Symbol.for("react.memo_cache_sentinel"))K=(Y)=>{O.current=Y},G[3]=K;else K=G[3];let D=K,[w,f]=d.useState(),[b,g]=d.useState(),[A,T]=d.useState(null),[j,S]=d.useState(null),[p,l]=d.useState(!1),[_,R]=d.useState(null),[m,c]=d.useState(!1),[h,GJ]=d.useState(!0),bG;if(G[4]===Symbol.for("react.memo_cache_sentinel"))bG=(Y)=>{GJ(Y)},G[4]=bG;else bG=G[4];let JJ=bG,HG;if(G[5]!==z)HG=new Map,UX(z).forEach((Y)=>{HG.set(DG(Y),Y)}),G[5]=z,G[6]=HG;else HG=G[6];let XJ=HG,KG;if(G[7]!==z)KG=new Map,kX(z).forEach((Y)=>{KG.set(DG(Y),Y)}),G[7]=z,G[8]=KG;else KG=G[8];let YJ=KG,AG;if(G[9]!==z)AG=new Map,qX(z).forEach((Y)=>{AG.set(DG(Y),Y)}),G[9]=z,G[10]=AG;else AG=G[10];let ZJ=AG,TG;if(G[11]!==XJ||G[12]!==ZJ||G[13]!==YJ)TG=(Y,V)=>{let P=V===void 0?"":V,v=(()=>{switch(Y){case"allow":return XJ;case"deny":return YJ;case"ask":return ZJ;case"workspace":case"recent":return new Map}})(),y=[];if(Y!=="workspace"&&Y!=="recent"&&!P)y.push({label:`Add a new rule${YG.ellipsis}`,value:"add-new-rule"});let a=Array.from(v.keys()).sort((WG,t)=>{let fG=v.get(WG),PJ=v.get(t);if(fG&&PJ){let DX=u(fG.ruleValue).toLowerCase(),bX=u(PJ.ruleValue).toLowerCase();return DX.localeCompare(bX)}return 0}),wG=P.toLowerCase();for(let WG of a){let t=v.get(WG);if(t){let fG=u(t.ruleValue);if(P&&!fG.toLowerCase().includes(wG))continue;y.push({label:fG,value:WG})}}return{options:y,rulesByKey:v}},G[11]=XJ,G[12]=ZJ,G[13]=YJ,G[14]=TG;else TG=G[14];let o=TG,ZG=FG(),BG=!w&&!A&&!j&&!p&&!_,zJ=BG&&m,gG;if(G[15]===Symbol.for("react.memo_cache_sentinel"))gG=()=>{c(!1)},G[15]=gG;else gG=G[15];let jG;if(G[16]!==zJ)jG={isActive:zJ,onExit:gG},G[16]=zJ,G[17]=jG;else jG=G[17];let{query:NJ,setQuery:vG,cursorOffset:LJ}=IX(jG),CG;if(G[18]!==m||G[19]!==BG||G[20]!==vG)CG=(Y)=>{if(!BG)return;if(m)return;if(Y.ctrl||Y.meta)return;if(Y.key==="/")Y.preventDefault(),c(!0),vG("");else if(Y.key.length===1&&Y.key!=="j"&&Y.key!=="k"&&Y.key!=="m"&&Y.key!=="i"&&Y.key!=="r"&&Y.key!==" ")Y.preventDefault(),c(!0),vG(Y.key)},G[18]=m,G[19]=BG,G[20]=vG,G[21]=CG;else CG=G[21];let UJ=CG,yG;if(G[22]!==o)yG=(Y,V)=>{let{rulesByKey:P}=o(V);if(Y==="add-new-rule"){T(V);return}else{f(P.get(Y));return}},G[22]=o,G[23]=yG;else yG=G[23];let kJ=yG,RG;if(G[24]===Symbol.for("react.memo_cache_sentinel"))RG=()=>{T(null)},G[24]=RG;else RG=G[24];let AX=RG,SG;if(G[25]===Symbol.for("react.memo_cache_sentinel"))SG=(Y,V)=>{S({ruleValue:Y,ruleBehavior:V}),T(null)},G[25]=SG;else SG=G[25];let BX=SG,_G;if(G[26]===Symbol.for("react.memo_cache_sentinel"))_G=(Y,V)=>{S(null);for(let P of Y)W((v)=>[...v,`Added ${P.ruleBehavior} rule ${s.bold(u(P.ruleValue))}`]);if(V&&V.length>0)for(let P of V){let v=P.shadowType==="deny"?"blocked":"shadowed";W((y)=>[...y,s.yellow(`${YG.warning} Warning: ${u(P.rule.ruleValue)} is ${v}`),s.dim(` ${P.reason}`),s.dim(` Fix: ${P.fix}`)])}},G[26]=_G;else _G=G[26];let fX=_G,mG;if(G[27]===Symbol.for("react.memo_cache_sentinel"))mG=()=>{S(null)},G[27]=mG;else mG=G[27];let VX=mG,hG;if(G[28]===Symbol.for("react.memo_cache_sentinel"))hG=()=>l(!0),G[28]=hG;else hG=G[28];let PX=hG,pG;if(G[29]===Symbol.for("react.memo_cache_sentinel"))pG=(Y)=>R(Y),G[29]=pG;else pG=G[29];let FX=pG,xG;if(G[30]!==k||G[31]!==X||G[32]!==J)xG=()=>{let Y=O.current,V=(y)=>Array.from(y).map((a)=>Y.denials[a]).filter(LY),P=V(Y.retry);if(P.length>0){let y=P.map(NY);J?.(y),X(void 0,{shouldQuery:!0,metaMessages:[`Permission granted for: ${y.join(", ")}. You may now retry ${y.length===1?"this command":"these commands"} if you would like.`]});return}let v=V(Y.approved);if(v.length>0||k.length>0){let y=v.length>0?[`Approved ${v.map(zY).join(", ")}`]:[];X([...y,...k].join(`
|
|
3
|
-
`))}else X("Permissions dialog dismissed",{display:"system"})},G[30]=k,G[31]=X,G[32]=J,G[33]=xG;else xG=G[33];let cG=xG,qJ=BG&&!m,dG;if(G[34]!==qJ)dG={context:"Settings",isActive:qJ},G[34]=qJ,G[35]=dG;else dG=G[35];PG("confirm:no",cG,dG);let uG;if(G[36]!==o||G[37]!==w||G[38]!==L||G[39]!==z)uG=()=>{if(!w)return;let{options:Y}=o(w.ruleBehavior),V=DG(w),P=Y.filter(ZY).map(YY),v=P.indexOf(V),y;if(v!==-1){if(v<P.length-1)y=P[v+1];else if(v>0)y=P[v-1]}g(y),QX({rule:w,initialContext:z,setToolPermissionContext(a){L((wG)=>({...wG,toolPermissionContext:a}))}}),W((a)=>[...a,`Deleted ${w.ruleBehavior} rule ${s.bold(u(w.ruleValue))}`]),f(void 0)},G[36]=o,G[37]=w,G[38]=L,G[39]=z,G[40]=uG;else uG=G[40];let QJ=uG;if(w){let Y;if(G[41]===Symbol.for("react.memo_cache_sentinel"))Y=()=>f(void 0),G[41]=Y;else Y=G[41];let V;if(G[42]!==QJ||G[43]!==w)V=Z(JY,{rule:w,onDelete:QJ,onCancel:Y}),G[42]=QJ,G[43]=w,G[44]=V;else V=G[44];return V}if(A&&A!=="workspace"&&A!=="recent"){let Y;if(G[45]!==A)Y=Z(cJ,{onCancel:AX,onSubmit:BX,ruleBehavior:A}),G[45]=A,G[46]=Y;else Y=G[46];return Y}if(j){let Y;if(G[47]!==j.ruleValue)Y=[j.ruleValue],G[47]=j.ruleValue,G[48]=Y;else Y=G[48];let V;if(G[49]!==L)V=(v)=>{L((y)=>({...y,toolPermissionContext:v}))},G[49]=L,G[50]=V;else V=G[50];let P;if(G[51]!==Y||G[52]!==V||G[53]!==z||G[54]!==j.ruleBehavior)P=Z(vJ,{onAddRules:fX,onCancel:VX,ruleValues:Y,ruleBehavior:j.ruleBehavior,initialContext:z,setToolPermissionContext:V}),G[51]=Y,G[52]=V,G[53]=z,G[54]=j.ruleBehavior,G[55]=P;else P=G[55];return P}if(p){let Y;if(G[56]!==L||G[57]!==z)Y=(v,y)=>{let wG={type:"addDirectories",directories:[v],destination:y?"localSettings":"session"},WG=EG(z,wG);if(L((t)=>({...t,toolPermissionContext:WG})),y)$G(wG);W((t)=>[...t,`Added directory ${s.bold(v)} to workspace${y?" and saved to local settings":" for this session"}`]),l(!1)},G[56]=L,G[57]=z,G[58]=Y;else Y=G[58];let V;if(G[59]===Symbol.for("react.memo_cache_sentinel"))V=()=>l(!1),G[59]=V;else V=G[59];let P;if(G[60]!==Y||G[61]!==z)P=Z(wX,{onAddDirectory:Y,onCancel:V,permissionContext:z}),G[60]=Y,G[61]=z,G[62]=P;else P=G[62];return P}if(_){let Y;if(G[63]!==_)Y=()=>{W((y)=>[...y,`Removed directory ${s.bold(_)} from workspace`]),R(null)},G[63]=_,G[64]=Y;else Y=G[64];let V;if(G[65]===Symbol.for("react.memo_cache_sentinel"))V=()=>R(null),G[65]=V;else V=G[65];let P;if(G[66]!==L)P=(y)=>{L((a)=>({...a,toolPermissionContext:y}))},G[66]=L,G[67]=P;else P=G[67];let v;if(G[68]!==_||G[69]!==Y||G[70]!==P||G[71]!==z)v=Z($J,{directoryPath:_,onRemove:Y,onCancel:V,permissionContext:z,setPermissionContext:P}),G[68]=_,G[69]=Y,G[70]=P,G[71]=z,G[72]=v;else v=G[72];return v}let iG;if(G[73]!==o||G[74]!==cG||G[75]!==kJ||G[76]!==m||G[77]!==I||G[78]!==b||G[79]!==LJ||G[80]!==NJ)iG={searchQuery:NJ,isSearchMode:m,isFocused:I,onCancel:cG,lastFocusedRuleKey:b,cursorOffset:LJ,getRulesOptions:o,handleToolSelect:kJ,onHeaderFocusChange:JJ},G[73]=o,G[74]=cG,G[75]=kJ,G[76]=m,G[77]=I,G[78]=b,G[79]=LJ,G[80]=NJ,G[81]=iG;else iG=G[81];let $=iG,wJ=!!w||!!A||!!j||p||!!_,WJ=!m,nG;if(G[82]===Symbol.for("react.memo_cache_sentinel"))nG=Z(IG,{id:"recent",title:"Recently denied",children:Z(aJ,{onHeaderFocusChange:JJ,onStateChange:D})}),G[82]=nG;else nG=G[82];let zG;if(G[83]!==$)zG=Z(IG,{id:"allow",title:"Allow",children:Z(VJ,{tab:"allow",...$})}),G[83]=$,G[84]=zG;else zG=G[84];let NG;if(G[85]!==$)NG=Z(IG,{id:"ask",title:"Ask",children:Z(VJ,{tab:"ask",...$})}),G[85]=$,G[86]=NG;else NG=G[86];let LG;if(G[87]!==$)LG=Z(IG,{id:"deny",title:"Deny",children:Z(VJ,{tab:"deny",...$})}),G[87]=$,G[88]=LG;else LG=G[88];let lG;if(G[89]===Symbol.for("react.memo_cache_sentinel"))lG=Z(H,{children:"Claude Code can read files in the workspace, and make edits when auto-accept edits is on."}),G[89]=lG;else lG=G[89];let UG;if(G[90]!==X||G[91]!==z)UG=Z(IG,{id:"workspace",title:"Workspace",children:F(C,{flexDirection:"column",children:[lG,Z(JX,{onExit:X,toolPermissionContext:z,onRequestAddDirectory:PX,onRequestRemoveDirectory:FX,onHeaderFocusChange:JJ})]})}),G[90]=X,G[91]=z,G[92]=UG;else UG=G[92];let kG;if(G[93]!==Q||G[94]!==wJ||G[95]!==WJ||G[96]!==zG||G[97]!==NG||G[98]!==LG||G[99]!==UG)kG=F(WX,{title:"Permissions:",color:"permission",defaultTab:Q,hidden:wJ,initialHeaderFocused:!B,navFromContent:WJ,children:[nG,zG,NG,LG,UG]}),G[93]=Q,G[94]=wJ,G[95]=WJ,G[96]=zG,G[97]=NG,G[98]=LG,G[99]=UG,G[100]=kG;else kG=G[100];let qG;if(G[101]!==Q||G[102]!==ZG.keyName||G[103]!==ZG.pending||G[104]!==h||G[105]!==m)qG=Z(C,{marginTop:1,paddingLeft:1,children:Z(H,{dimColor:!0,children:ZG.pending?F(r,{children:["Press ",ZG.keyName," again to exit"]}):h?Z(r,{children:"←/→ tab switch · ↓ return · Esc cancel"}):m?Z(r,{children:"Type to filter · Enter/↓ select · ↑ tabs · Esc clear"}):B&&Q==="recent"?Z(r,{children:"Enter approve · r retry · ↑↓ navigate · ←/→ switch · Esc cancel"}):Z(r,{children:"↑↓ navigate · Enter select · Type to search · ←/→ switch · Esc cancel"})})}),G[101]=Q,G[102]=ZG.keyName,G[103]=ZG.pending,G[104]=h,G[105]=m,G[106]=qG;else qG=G[106];let QG;if(G[107]!==kG||G[108]!==qG)QG=F(ZX,{color:"permission",children:[kG,qG]}),G[107]=kG,G[108]=qG,G[109]=QG;else QG=G[109];let aG;if(G[110]!==UJ||G[111]!==QG)aG=Z(C,{flexDirection:"column",onKeyDown:UJ,children:QG}),G[110]=UJ,G[111]=QG,G[112]=aG;else aG=G[112];return aG}function YY(U){return U.value}function ZY(U){return U.value!=="add-new-rule"}function zY(U){return s.bold(U.display)}function NY(U){return U.display}function LY(U){return U!==void 0}function UY(U){return U.toolPermissionContext}var MG,d;var HX=e(()=>{lX();BJ();rX();KJ();VG();mJ();tX();XG();_J();nJ();HJ();oX();nX();aX();fJ();sX();CJ();$X();EJ();dJ();rJ();sJ();XX();x();MG=i(JG(),1),d=i(tG(),1)});var _Z=async(U,G)=>{return Z(MX,{onExit:U,onRetryDenials:(X)=>{G.setMessages((N)=>[...N,KX(X)])}})};var kY=e(()=>{HX();qY();x()});kY();export{_Z as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ifa as a,jfa as b,kfa as c,lfa as d}from"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-6bdrnprg.mjs";d();export{c as PERMISSION_MODES,b as INTERNAL_PERMISSION_MODES,a as EXTERNAL_PERMISSION_MODES};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$d as v,ae as d}from"./cli-0.6.12-nb71rkte.mjs";import{qg as B,rg as j,sg as F,ug as D}from"./cli-0.6.12-xtdnjw66.mjs";import{$n as I,Yl as U,Zl as _,am as g,do as u,mJ as y,oJ as P,um as A,zm as m}from"./cli-0.6.12-g971w5pv.mjs";import"./cli-0.6.12-47h7weys.mjs";import"./cli-0.6.12-dqagenjb.mjs";import"./cli-0.6.12-pf3jff0s.mjs";import"./cli-0.6.12-vvxje0rc.mjs";import"./cli-0.6.12-c4ssk0t1.mjs";import"./cli-0.6.12-ydaqyt5e.mjs";import"./cli-0.6.12-bv0tm3x4.mjs";import"./cli-0.6.12-1f7vq52y.mjs";import"./cli-0.6.12-wt1j42v1.mjs";import"./cli-0.6.12-dtv1qnk9.mjs";import"./cli-0.6.12-0t5tsk2y.mjs";import"./cli-0.6.12-pgpcv7kg.mjs";import"./cli-0.6.12-y1tqcbp0.mjs";import"./cli-0.6.12-sdb5bx5s.mjs";import"./cli-0.6.12-kkjabccp.mjs";import"./cli-0.6.12-nsthg20j.mjs";import"./cli-0.6.12-8fpq2hqy.mjs";import"./cli-0.6.12-gxtrhp03.mjs";import"./cli-0.6.12-n87dgp00.mjs";import"./cli-0.6.12-kxgn5260.mjs";import{RX as T,RZ as c,kZ as V,mZ as G}from"./cli-0.6.12-21j45ejg.mjs";import"./cli-0.6.12-m8br9xce.mjs";import"./cli-0.6.12-b6d9622b.mjs";import"./cli-0.6.12-fwnpcanc.mjs";import"./cli-0.6.12-ve0yf7bb.mjs";import"./cli-0.6.12-dywed27z.mjs";import"./cli-0.6.12-fdy5s675.mjs";import"./cli-0.6.12-gcedgh1v.mjs";import"./cli-0.6.12-741zt03r.mjs";import"./cli-0.6.12-bxdnb5bn.mjs";import"./cli-0.6.12-sp1yd4kb.mjs";import"./cli-0.6.12-78e7hkq9.mjs";import{X1 as w,Y1 as W,Z1 as Z}from"./cli-0.6.12-g9dxg935.mjs";import"./cli-0.6.12-bc05z2sq.mjs";import"./cli-0.6.12-5ybc0q7n.mjs";import"./cli-0.6.12-8mb2h24g.mjs";import"./cli-0.6.12-x60ha982.mjs";import"./cli-0.6.12-c6tjtcxh.mjs";import"./cli-0.6.12-s3nsyxya.mjs";import"./cli-0.6.12-0hjd35q4.mjs";import"./cli-0.6.12-8k03anbf.mjs";import"./cli-0.6.12-865yx2ff.mjs";import"./cli-0.6.12-49tkzshk.mjs";import"./cli-0.6.12-wbta805y.mjs";import"./cli-0.6.12-ecm9vh62.mjs";import"./cli-0.6.12-7eeaap1p.mjs";import"./cli-0.6.12-m1rdexn7.mjs";import"./cli-0.6.12-qwcckae9.mjs";import"./cli-0.6.12-ytv10xs6.mjs";import"./cli-0.6.12-byvhqye2.mjs";import"./cli-0.6.12-zqn1amfd.mjs";import"./cli-0.6.12-gzh08zb9.mjs";import"./cli-0.6.12-9wj4jg9w.mjs";import"./cli-0.6.12-whhyvv1p.mjs";import"./cli-0.6.12-hzjwqj4g.mjs";import"./cli-0.6.12-2stzmmb2.mjs";import"./cli-0.6.12-967g034j.mjs";import{mna as R,ooa as h}from"./cli-0.6.12-4x5vs5t2.mjs";import"./cli-0.6.12-rkfcw3gr.mjs";import"./cli-0.6.12-ecgg0rmc.mjs";import"./cli-0.6.12-k0skdwrx.mjs";import"./cli-0.6.12-70c7xde0.mjs";import{Rpa as C,Vpa as N}from"./cli-0.6.12-6bdrnprg.mjs";function $(z){let b=M.c(11),{planContent:H,planPath:K,editorName:J}=z,L;if(b[0]===Symbol.for("react.memo_cache_sentinel"))L=w(G,{bold:!0,children:"Current Plan"}),b[0]=L;else L=b[0];let k;if(b[1]!==K)k=w(G,{dimColor:!0,children:K}),b[1]=K,b[2]=k;else k=b[2];let q;if(b[3]!==H)q=w(V,{marginTop:1,children:w(G,{children:H})}),b[3]=H,b[4]=q;else q=b[4];let f;if(b[5]!==J)f=J&&W(V,{marginTop:1,children:[w(G,{dimColor:!0,children:'"/plan open"'}),w(G,{dimColor:!0,children:" to edit this plan in "}),w(G,{bold:!0,dimColor:!0,children:J})]}),b[5]=J,b[6]=f;else f=b[6];let O;if(b[7]!==k||b[8]!==q||b[9]!==f)O=W(V,{flexDirection:"column",children:[L,k,q,f]}),b[7]=k,b[8]=q,b[9]=f,b[10]=O;else O=b[10];return O}async function bb(z,b,H){let{getAppState:K,setAppState:J}=b,k=K().toolPermissionContext.mode;if(k!=="plan"){R(k,"plan"),J((Y)=>({...Y,toolPermissionContext:A(y(Y.toolPermissionContext),{type:"setMode",mode:"plan",destination:"session"})}));let Q=H.trim();if(Q&&Q!=="open")z("Enabled plan mode",{shouldQuery:!0});else z("Enabled plan mode");return null}let q=_(),f=U();if(!q)return z("Already in plan mode. No plan written yet."),null;if(H.trim().split(/\s+/)[0]==="open"){let Q=await F(f);if(Q.error)z(`Failed to open plan in editor: ${Q.error}`);else z(`Opened plan in editor: ${f}`);return null}let X=B(),S=X?I(X):void 0,E=await v(w($,{planContent:q,planPath:f,editorName:S}));return z(E),null}var M;var x=N(()=>{h();c();j();u();m();P();g();D();d();Z();M=C(T(),1)});x();export{bb as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vpa as z}from"./cli-0.6.12-6bdrnprg.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
|