@claudiolabs/claudin 0.6.11 → 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-5qvssn7h.mjs +2 -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 +5 -5
- package/dist/chunks/AgentTool-0.6.11-r8d0ds60.mjs +0 -1
- package/dist/chunks/App-0.6.11-31gtkew5.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.11-2xpxrqhj.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.11-s62gfmdn.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.11-g7memr9h.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.11-cm6p2qt6.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.11-z9chf7mf.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.11-z8rkxtp9.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.11-p0pgcety.mjs +0 -7
- package/dist/chunks/Doctor-0.6.11-k0qnn706.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.6.11-r03g3kvz.mjs +0 -6
- package/dist/chunks/Grove-0.6.11-8d22h28t.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.11-pmh335cp.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.11-qxh6rxba.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.11-3vzkgyet.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.11-5a9bh8ga.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.11-bphsrszr.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.11-xbere7nd.mjs +0 -1
- package/dist/chunks/REPL-0.6.11-fjyx81d3.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.11-c9gkrmf1.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.11-z0ahgcq3.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.11-a4jnsc85.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.11-fp47z50a.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.11-4j8x272k.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.11-vz6gt69a.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.11-n238hj6m.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.11-pnhxcp0r.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.11-gpv9357c.mjs +0 -1
- package/dist/chunks/add-dir-0.6.11-tx4w3jyc.mjs +0 -1
- package/dist/chunks/agents-0.6.11-2a9tyqet.mjs +0 -3
- package/dist/chunks/agents-0.6.11-vrf5te1h.mjs +0 -110
- package/dist/chunks/api-0.6.11-kfd2tz28.mjs +0 -1
- package/dist/chunks/asciicast-0.6.11-hkv84gkg.mjs +0 -1
- package/dist/chunks/assistant-0.6.11-wpa7rt5b.mjs +0 -1
- package/dist/chunks/auth-0.6.11-0afa68y1.mjs +0 -1
- package/dist/chunks/auth-0.6.11-3bje6qr0.mjs +0 -1
- package/dist/chunks/autoMode-0.6.11-3wrcedp0.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.11-0vbkadyk.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.11-499vsbem.mjs +0 -1
- package/dist/chunks/branch-0.6.11-b6ddxdz4.mjs +0 -4
- package/dist/chunks/bridge-0.6.11-s9q15zwp.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.11-aq9ss0nj.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.11-4xr76j32.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.11-0aqx1yv3.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.11-a7jrmhet.mjs +0 -1
- package/dist/chunks/btw-0.6.11-mep49mwv.mjs +0 -1
- package/dist/chunks/buddy-0.6.11-aey0xb05.mjs +0 -3
- package/dist/chunks/cacache-0.6.11-ztbestgj.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.11-g9j002w5.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.11-vv3h8pks.mjs +0 -4
- package/dist/chunks/caches-0.6.11-17mgtz55.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.11-5yfgvhrc.mjs +0 -1
- package/dist/chunks/claudemd-0.6.11-e8md3t8h.mjs +0 -1
- package/dist/chunks/clear-0.6.11-jx65n7qp.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.11-4mvdhkdp.mjs +0 -1
- package/dist/chunks/cli-0.6.11-00pzeepb.mjs +0 -2
- package/dist/chunks/cli-0.6.11-052bg705.mjs +0 -2
- package/dist/chunks/cli-0.6.11-0a1yneth.mjs +0 -3
- package/dist/chunks/cli-0.6.11-0a5nxb24.mjs +0 -2
- package/dist/chunks/cli-0.6.11-0c0dc88n.mjs +0 -18
- package/dist/chunks/cli-0.6.11-0fk53vjx.mjs +0 -2
- package/dist/chunks/cli-0.6.11-0hm8hzyd.mjs +0 -2
- package/dist/chunks/cli-0.6.11-0qyj157c.mjs +0 -2
- package/dist/chunks/cli-0.6.11-0y2xzq24.mjs +0 -2
- package/dist/chunks/cli-0.6.11-10w38yz0.mjs +0 -2
- package/dist/chunks/cli-0.6.11-15h0vp87.mjs +0 -4
- package/dist/chunks/cli-0.6.11-173vp64j.mjs +0 -2
- package/dist/chunks/cli-0.6.11-1j4wg380.mjs +0 -2
- package/dist/chunks/cli-0.6.11-1mvb95b1.mjs +0 -2
- package/dist/chunks/cli-0.6.11-1n2a62nt.mjs +0 -59
- package/dist/chunks/cli-0.6.11-1t2njyn0.mjs +0 -2
- package/dist/chunks/cli-0.6.11-1w8f6pcg.mjs +0 -2
- package/dist/chunks/cli-0.6.11-25jht58e.mjs +0 -2
- package/dist/chunks/cli-0.6.11-2c9khav6.mjs +0 -3
- package/dist/chunks/cli-0.6.11-2dzp9494.mjs +0 -2
- package/dist/chunks/cli-0.6.11-2kjpgwq8.mjs +0 -2
- package/dist/chunks/cli-0.6.11-2m6rny10.mjs +0 -2
- package/dist/chunks/cli-0.6.11-2qd0rf15.mjs +0 -28
- package/dist/chunks/cli-0.6.11-2qh8cr36.mjs +0 -2
- package/dist/chunks/cli-0.6.11-2rprqzgh.mjs +0 -2
- package/dist/chunks/cli-0.6.11-2zqez4wd.mjs +0 -2
- package/dist/chunks/cli-0.6.11-32hg380d.mjs +0 -9
- package/dist/chunks/cli-0.6.11-36ps870f.mjs +0 -2
- package/dist/chunks/cli-0.6.11-3qvr6h78.mjs +0 -2
- package/dist/chunks/cli-0.6.11-3zjz43qx.mjs +0 -3
- package/dist/chunks/cli-0.6.11-46vdysh0.mjs +0 -3
- package/dist/chunks/cli-0.6.11-4e5ar3bg.mjs +0 -2
- package/dist/chunks/cli-0.6.11-4gej9br3.mjs +0 -17
- package/dist/chunks/cli-0.6.11-4gpj4gsd.mjs +0 -2
- package/dist/chunks/cli-0.6.11-4hy3wgq8.mjs +0 -2
- package/dist/chunks/cli-0.6.11-4kfxn8yd.mjs +0 -2
- package/dist/chunks/cli-0.6.11-4q7czjpx.mjs +0 -2
- package/dist/chunks/cli-0.6.11-4wz0g55m.mjs +0 -2
- package/dist/chunks/cli-0.6.11-53d996vr.mjs +0 -2
- package/dist/chunks/cli-0.6.11-5b48xhwk.mjs +0 -2
- package/dist/chunks/cli-0.6.11-5c798z8d.mjs +0 -10
- package/dist/chunks/cli-0.6.11-5d4nqcar.mjs +0 -4
- package/dist/chunks/cli-0.6.11-5k9p5pks.mjs +0 -2
- package/dist/chunks/cli-0.6.11-5q70pnak.mjs +0 -21
- package/dist/chunks/cli-0.6.11-5rbq8w3k.mjs +0 -2
- package/dist/chunks/cli-0.6.11-5rmv3rjz.mjs +0 -2
- package/dist/chunks/cli-0.6.11-5s18vts2.mjs +0 -2
- package/dist/chunks/cli-0.6.11-64xw0etq.mjs +0 -4
- package/dist/chunks/cli-0.6.11-674bvc47.mjs +0 -2
- package/dist/chunks/cli-0.6.11-6c4r2426.mjs +0 -2
- package/dist/chunks/cli-0.6.11-6yp7zyby.mjs +0 -15
- package/dist/chunks/cli-0.6.11-716cqfeb.mjs +0 -2
- package/dist/chunks/cli-0.6.11-7eknaa64.mjs +0 -3
- package/dist/chunks/cli-0.6.11-7gxy0qb2.mjs +0 -133
- package/dist/chunks/cli-0.6.11-7hk2gber.mjs +0 -2
- package/dist/chunks/cli-0.6.11-7mnmrj04.mjs +0 -2
- package/dist/chunks/cli-0.6.11-7vypz42w.mjs +0 -3
- package/dist/chunks/cli-0.6.11-887jj6fe.mjs +0 -2
- package/dist/chunks/cli-0.6.11-8ar69w9a.mjs +0 -2
- package/dist/chunks/cli-0.6.11-8eerj3xn.mjs +0 -2
- package/dist/chunks/cli-0.6.11-8f0jfjxs.mjs +0 -2
- package/dist/chunks/cli-0.6.11-8ms0bjze.mjs +0 -133
- package/dist/chunks/cli-0.6.11-8n8a5y9t.mjs +0 -3
- package/dist/chunks/cli-0.6.11-8ph76y69.mjs +0 -2
- package/dist/chunks/cli-0.6.11-8yv9yjve.mjs +0 -5
- package/dist/chunks/cli-0.6.11-927enz8e.mjs +0 -2
- package/dist/chunks/cli-0.6.11-93mbpc2x.mjs +0 -6
- package/dist/chunks/cli-0.6.11-9d57wb7j.mjs +0 -2
- package/dist/chunks/cli-0.6.11-9dm066ew.mjs +0 -16
- package/dist/chunks/cli-0.6.11-9q72m1zw.mjs +0 -2
- package/dist/chunks/cli-0.6.11-9w5fs9qs.mjs +0 -2
- package/dist/chunks/cli-0.6.11-9wxvs847.mjs +0 -2
- package/dist/chunks/cli-0.6.11-a0g5x5vr.mjs +0 -2
- package/dist/chunks/cli-0.6.11-a1epsfk8.mjs +0 -42
- package/dist/chunks/cli-0.6.11-a2ansh6y.mjs +0 -2
- package/dist/chunks/cli-0.6.11-a78px81d.mjs +0 -2
- package/dist/chunks/cli-0.6.11-abv5tcf5.mjs +0 -2
- package/dist/chunks/cli-0.6.11-ag6c6pp0.mjs +0 -2
- package/dist/chunks/cli-0.6.11-ahfnvt9w.mjs +0 -2
- package/dist/chunks/cli-0.6.11-and7dqq1.mjs +0 -2
- package/dist/chunks/cli-0.6.11-apqqmhjs.mjs +0 -2
- package/dist/chunks/cli-0.6.11-ar9we9b3.mjs +0 -6
- package/dist/chunks/cli-0.6.11-asrrshp1.mjs +0 -2
- package/dist/chunks/cli-0.6.11-atkxdhw4.mjs +0 -18
- package/dist/chunks/cli-0.6.11-b1gbnjtd.mjs +0 -3
- package/dist/chunks/cli-0.6.11-bgrb1hm3.mjs +0 -20
- package/dist/chunks/cli-0.6.11-bk2qdg9h.mjs +0 -2
- package/dist/chunks/cli-0.6.11-bm8b1dzg.mjs +0 -2
- package/dist/chunks/cli-0.6.11-bzpyzzp5.mjs +0 -2
- package/dist/chunks/cli-0.6.11-cjsjjdxm.mjs +0 -12
- package/dist/chunks/cli-0.6.11-cncdrbgd.mjs +0 -2
- package/dist/chunks/cli-0.6.11-dar8tdfv.mjs +0 -2
- package/dist/chunks/cli-0.6.11-dhnnwew7.mjs +0 -2
- package/dist/chunks/cli-0.6.11-dr7edc1g.mjs +0 -7
- package/dist/chunks/cli-0.6.11-dth46pzp.mjs +0 -4
- package/dist/chunks/cli-0.6.11-e0vzetrn.mjs +0 -1
- package/dist/chunks/cli-0.6.11-e4pjzk3d.mjs +0 -5
- package/dist/chunks/cli-0.6.11-eacagr72.mjs +0 -2
- package/dist/chunks/cli-0.6.11-ec7158a2.mjs +0 -15
- package/dist/chunks/cli-0.6.11-egs8xqkf.mjs +0 -4
- package/dist/chunks/cli-0.6.11-eqjbate8.mjs +0 -2
- package/dist/chunks/cli-0.6.11-fgwrsd7h.mjs +0 -2
- package/dist/chunks/cli-0.6.11-fjf6a1gs.mjs +0 -2
- package/dist/chunks/cli-0.6.11-fp1tdhey.mjs +0 -2
- package/dist/chunks/cli-0.6.11-fq2qa1zj.mjs +0 -2
- package/dist/chunks/cli-0.6.11-g4kp283f.mjs +0 -2
- package/dist/chunks/cli-0.6.11-gk260gdw.mjs +0 -2
- package/dist/chunks/cli-0.6.11-gqjpdm6p.mjs +0 -2
- package/dist/chunks/cli-0.6.11-gqxm9jz1.mjs +0 -2
- package/dist/chunks/cli-0.6.11-grhakq5f.mjs +0 -67
- package/dist/chunks/cli-0.6.11-gsz2891g.mjs +0 -2
- package/dist/chunks/cli-0.6.11-gwzwm546.mjs +0 -2
- package/dist/chunks/cli-0.6.11-h3hyxwem.mjs +0 -2
- package/dist/chunks/cli-0.6.11-hez5dm92.mjs +0 -2
- package/dist/chunks/cli-0.6.11-hfc20b2b.mjs +0 -2
- package/dist/chunks/cli-0.6.11-hjact5zq.mjs +0 -2
- package/dist/chunks/cli-0.6.11-hr8t3q70.mjs +0 -2
- package/dist/chunks/cli-0.6.11-hwx276s9.mjs +0 -2
- package/dist/chunks/cli-0.6.11-j17p2txv.mjs +0 -24
- package/dist/chunks/cli-0.6.11-j255v7ry.mjs +0 -2
- package/dist/chunks/cli-0.6.11-j4nh0jma.mjs +0 -2
- package/dist/chunks/cli-0.6.11-j4z3561r.mjs +0 -25
- package/dist/chunks/cli-0.6.11-jpy86ktt.mjs +0 -34
- package/dist/chunks/cli-0.6.11-jysha43m.mjs +0 -2
- package/dist/chunks/cli-0.6.11-k4ny666v.mjs +0 -4
- package/dist/chunks/cli-0.6.11-ka6t3b6m.mjs +0 -193
- package/dist/chunks/cli-0.6.11-kcb9xgs5.mjs +0 -58
- package/dist/chunks/cli-0.6.11-ma5kx9e4.mjs +0 -2
- package/dist/chunks/cli-0.6.11-mjdvh04x.mjs +0 -4
- package/dist/chunks/cli-0.6.11-mz3jbzq0.mjs +0 -2
- package/dist/chunks/cli-0.6.11-n46bkq7s.mjs +0 -2
- package/dist/chunks/cli-0.6.11-nds6sctv.mjs +0 -45
- package/dist/chunks/cli-0.6.11-nmtz5xgh.mjs +0 -4
- package/dist/chunks/cli-0.6.11-nrpzkrbs.mjs +0 -2
- package/dist/chunks/cli-0.6.11-nwgarns7.mjs +0 -24
- package/dist/chunks/cli-0.6.11-p1r07bx9.mjs +0 -2
- package/dist/chunks/cli-0.6.11-p8kmd5p7.mjs +0 -2
- package/dist/chunks/cli-0.6.11-pj3s60na.mjs +0 -4
- package/dist/chunks/cli-0.6.11-pqw3gejv.mjs +0 -2
- package/dist/chunks/cli-0.6.11-prd8de37.mjs +0 -2
- package/dist/chunks/cli-0.6.11-pyq1vqen.mjs +0 -12
- package/dist/chunks/cli-0.6.11-q19kyk5m.mjs +0 -2
- package/dist/chunks/cli-0.6.11-q69dj7n7.mjs +0 -2
- package/dist/chunks/cli-0.6.11-qn8q28j0.mjs +0 -2
- package/dist/chunks/cli-0.6.11-qrepyyjz.mjs +0 -2
- package/dist/chunks/cli-0.6.11-qrpn4y6z.mjs +0 -2
- package/dist/chunks/cli-0.6.11-qvgvamtz.mjs +0 -50
- package/dist/chunks/cli-0.6.11-qwxvwqyy.mjs +0 -2
- package/dist/chunks/cli-0.6.11-r03wa9n7.mjs +0 -2
- package/dist/chunks/cli-0.6.11-r2k2ccbq.mjs +0 -4
- package/dist/chunks/cli-0.6.11-r47v4jpv.mjs +0 -2
- package/dist/chunks/cli-0.6.11-re85rfvm.mjs +0 -2
- package/dist/chunks/cli-0.6.11-rev9sza4.mjs +0 -2
- package/dist/chunks/cli-0.6.11-rhe8j9bj.mjs +0 -6
- package/dist/chunks/cli-0.6.11-rk3wv9rd.mjs +0 -3
- package/dist/chunks/cli-0.6.11-s08zp9vw.mjs +0 -15
- package/dist/chunks/cli-0.6.11-s70nfce8.mjs +0 -2
- package/dist/chunks/cli-0.6.11-saca1d95.mjs +0 -2
- package/dist/chunks/cli-0.6.11-sgfx77xv.mjs +0 -12
- package/dist/chunks/cli-0.6.11-sjew1xkt.mjs +0 -3
- package/dist/chunks/cli-0.6.11-str7ytsd.mjs +0 -2
- package/dist/chunks/cli-0.6.11-sw6n6a3c.mjs +0 -2
- package/dist/chunks/cli-0.6.11-t4cxwajg.mjs +0 -39
- package/dist/chunks/cli-0.6.11-t66hga70.mjs +0 -2
- package/dist/chunks/cli-0.6.11-tjkxcvmn.mjs +0 -2
- package/dist/chunks/cli-0.6.11-trf46709.mjs +0 -17
- package/dist/chunks/cli-0.6.11-tstjs83y.mjs +0 -2
- package/dist/chunks/cli-0.6.11-ttsapz1k.mjs +0 -2
- package/dist/chunks/cli-0.6.11-tz9vtvwj.mjs +0 -2
- package/dist/chunks/cli-0.6.11-tzg5rhz9.mjs +0 -2
- package/dist/chunks/cli-0.6.11-v2v9mbjf.mjs +0 -8
- package/dist/chunks/cli-0.6.11-vycwwxt9.mjs +0 -2
- package/dist/chunks/cli-0.6.11-w022v2hv.mjs +0 -2
- package/dist/chunks/cli-0.6.11-w30nfz69.mjs +0 -2
- package/dist/chunks/cli-0.6.11-wa5scsze.mjs +0 -2
- package/dist/chunks/cli-0.6.11-wc0n1413.mjs +0 -2
- package/dist/chunks/cli-0.6.11-wjhhh1h4.mjs +0 -2
- package/dist/chunks/cli-0.6.11-wk812e4g.mjs +0 -2
- package/dist/chunks/cli-0.6.11-wz5gb96r.mjs +0 -6
- package/dist/chunks/cli-0.6.11-x2cj7p54.mjs +0 -2
- package/dist/chunks/cli-0.6.11-x5jwra8g.mjs +0 -2
- package/dist/chunks/cli-0.6.11-x6xp82sp.mjs +0 -2
- package/dist/chunks/cli-0.6.11-xb91n8pp.mjs +0 -2
- package/dist/chunks/cli-0.6.11-xgt8n37g.mjs +0 -3
- package/dist/chunks/cli-0.6.11-xj7thtn5.mjs +0 -5
- package/dist/chunks/cli-0.6.11-xqxcv5e9.mjs +0 -3
- package/dist/chunks/cli-0.6.11-xvd614xn.mjs +0 -2
- package/dist/chunks/cli-0.6.11-xvs7cq58.mjs +0 -2
- package/dist/chunks/cli-0.6.11-y8gv4gse.mjs +0 -2
- package/dist/chunks/cli-0.6.11-y9amtdt3.mjs +0 -2
- package/dist/chunks/cli-0.6.11-yf5rhdnx.mjs +0 -3
- package/dist/chunks/cli-0.6.11-yg9ympxv.mjs +0 -2
- package/dist/chunks/cli-0.6.11-ytme2rx5.mjs +0 -2
- package/dist/chunks/cli-0.6.11-yzqbg956.mjs +0 -5415
- package/dist/chunks/cli-0.6.11-z04rjzvb.mjs +0 -2
- package/dist/chunks/cli-0.6.11-z9by0x32.mjs +0 -2
- package/dist/chunks/cli-0.6.11-ze1rqxq1.mjs +0 -2
- package/dist/chunks/client-0.6.11-70d4q0e6.mjs +0 -1
- package/dist/chunks/color-0.6.11-ez96t3xm.mjs +0 -1
- package/dist/chunks/compact-0.6.11-6rt721pq.mjs +0 -3
- package/dist/chunks/config-0.6.11-6k7gavp8.mjs +0 -1
- package/dist/chunks/config-0.6.11-v35w9a31.mjs +0 -1
- package/dist/chunks/constants-0.6.11-cjq1ykse.mjs +0 -1
- package/dist/chunks/context-0.6.11-qjxqzecw.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.11-1y5v72m4.mjs +0 -1
- package/dist/chunks/conversation-0.6.11-9vhbnr3g.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.11-z121ywxg.mjs +0 -1
- package/dist/chunks/copy-0.6.11-c340y93f.mjs +0 -9
- package/dist/chunks/cost-0.6.11-bcwdtx5t.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.11-yvqajzp0.mjs +0 -1
- package/dist/chunks/createSession-0.6.11-a0hj7qyz.mjs +0 -1
- package/dist/chunks/debug-0.6.11-scn5mq3z.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.11-s09sr4n7.mjs +0 -1367
- package/dist/chunks/desktop-0.6.11-sv5zqqeb.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.11-d4p66cnz.mjs +0 -1
- package/dist/chunks/detection-0.6.11-x12e4v9d.mjs +0 -1
- package/dist/chunks/diff-0.6.11-mntxpz0q.mjs +0 -1
- package/dist/chunks/doctor-0.6.11-temdhyme.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.11-07phqns6.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.11-b6xjvyky.mjs +0 -1
- package/dist/chunks/effort-0.6.11-617qwj2q.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.11-ycbja2hk.mjs +0 -1
- package/dist/chunks/envUtils-0.6.11-rs6r44fg.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.11-f275n518.mjs +0 -1
- package/dist/chunks/environments-0.6.11-sv4dc6cc.mjs +0 -1
- package/dist/chunks/errors-0.6.11-qv66pggk.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.11-nbtbkykx.mjs +0 -1
- package/dist/chunks/exit-0.6.11-wr5rygrg.mjs +0 -1
- package/dist/chunks/explorer-0.6.11-tx8t57mr.mjs +0 -1
- package/dist/chunks/export-0.6.11-mfvdc9vw.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.11-zj8syy1h.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.11-82g1bzrd.mjs +0 -1
- package/dist/chunks/fast-0.6.11-85d74dx3.mjs +0 -1
- package/dist/chunks/feedback-0.6.11-xgh8n5yf.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.11-b1mhnkqp.mjs +0 -1
- package/dist/chunks/git-0.6.11-79jra9bb.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.11-sxdewptt.mjs +0 -1
- package/dist/chunks/goal-0.6.11-40q7jjhs.mjs +0 -4
- package/dist/chunks/grove-0.6.11-v2m8yr2t.mjs +0 -1
- package/dist/chunks/growthbook-0.6.11-zrzzd6w1.mjs +0 -1
- package/dist/chunks/headless-0.6.11-r5gw4645.mjs +0 -2
- package/dist/chunks/heapdump-0.6.11-d3hzrj36.mjs +0 -6
- package/dist/chunks/help-0.6.11-c2skb7ad.mjs +0 -1
- package/dist/chunks/hookChains-0.6.11-g7m6r6me.mjs +0 -3
- package/dist/chunks/hooks-0.6.11-hwgx2kme.mjs +0 -79
- package/dist/chunks/hooks-0.6.11-j861y5dm.mjs +0 -1
- package/dist/chunks/ide-0.6.11-1fvfwrp1.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.11-951qtc6g.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.11-m9mp3gnn.mjs +0 -1
- package/dist/chunks/index-0.6.11-2dyp4cyd.mjs +0 -2
- package/dist/chunks/index-0.6.11-6hq069cp.mjs +0 -1
- package/dist/chunks/index-0.6.11-6rw1b8jg.mjs +0 -1
- package/dist/chunks/index-0.6.11-7sxsr7fc.mjs +0 -2
- package/dist/chunks/index-0.6.11-8c4kmbd2.mjs +0 -1
- package/dist/chunks/index-0.6.11-9jxn7k0q.mjs +0 -1
- package/dist/chunks/index-0.6.11-dj3r2mch.mjs +0 -30
- package/dist/chunks/index-0.6.11-eqjzpskp.mjs +0 -1
- package/dist/chunks/index-0.6.11-f1sxadym.mjs +0 -1
- package/dist/chunks/index-0.6.11-fb4brrb8.mjs +0 -1
- package/dist/chunks/index-0.6.11-gvpky3kb.mjs +0 -1
- package/dist/chunks/index-0.6.11-hbzfzedf.mjs +0 -1
- package/dist/chunks/index-0.6.11-hxgz43fr.mjs +0 -1
- package/dist/chunks/index-0.6.11-mh7t6qwv.mjs +0 -1
- package/dist/chunks/index-0.6.11-mjxjhv2r.mjs +0 -9
- package/dist/chunks/index-0.6.11-pk717ynw.mjs +0 -1
- package/dist/chunks/index-0.6.11-sv5aecsq.mjs +0 -1
- package/dist/chunks/index-0.6.11-t7ygqnf0.mjs +0 -1
- package/dist/chunks/index-0.6.11-tbavx2zw.mjs +0 -9
- package/dist/chunks/index-0.6.11-v6prk9pn.mjs +0 -1
- package/dist/chunks/index-0.6.11-wz5x5ga0.mjs +0 -1
- package/dist/chunks/index-0.6.11-xweg6a59.mjs +0 -5
- package/dist/chunks/index-0.6.11-yzrjwxa5.mjs +0 -1
- package/dist/chunks/init-0.6.11-2fjbym4j.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.11-a3jjmvj9.mjs +0 -1
- package/dist/chunks/ink-0.6.11-fx062wer.mjs +0 -1
- package/dist/chunks/insights-0.6.11-0kznq0t2.mjs +0 -870
- package/dist/chunks/install-0.6.11-j29zthcm.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.11-79e0z625.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.11-7jw79s6f.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.11-hfwskyr3.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.11-jfdpcyjm.mjs +0 -1
- package/dist/chunks/keybindings-0.6.11-bry9hazf.mjs +0 -2
- package/dist/chunks/knowledge-0.6.11-9gym9rk7.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.11-zrkj03rn.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.11-v8cwy9nw.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.11-d87jkzcf.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.11-g80c3nw3.mjs +0 -1
- package/dist/chunks/log-0.6.11-1chsqxe9.mjs +0 -1
- package/dist/chunks/main-0.6.11-vrgnyy0m.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.11-pxhywyps.mjs +0 -1
- package/dist/chunks/mcp-0.6.11-1knwr5tf.mjs +0 -17
- package/dist/chunks/mcp-0.6.11-8tyamc3f.mjs +0 -4
- package/dist/chunks/mcp-0.6.11-94cbrpkx.mjs +0 -1
- package/dist/chunks/mcpb-0.6.11-6vnd31wy.mjs +0 -1
- package/dist/chunks/memory-0.6.11-cv64m2gh.mjs +0 -3
- package/dist/chunks/model-0.6.11-g7egtzfm.mjs +0 -2
- package/dist/chunks/model-0.6.11-rwp8jj5q.mjs +0 -1
- package/dist/chunks/node-0.6.11-pqx3daa2.mjs +0 -12
- package/dist/chunks/oauth-0.6.11-jw16eb9m.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.11-06kyf6dn.mjs +0 -14
- package/dist/chunks/output-style-0.6.11-brn9j341.mjs +0 -1
- package/dist/chunks/package-FMOR3ELU-0.6.11-7aj7ev0m.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.11-280k236q.mjs +0 -1
- package/dist/chunks/parser-0.6.11-kqs391w7.mjs +0 -1
- package/dist/chunks/passes-0.6.11-hzcyq0t0.mjs +0 -1
- package/dist/chunks/permissions-0.6.11-4c99d288.mjs +0 -3
- package/dist/chunks/permissions-0.6.11-acav3hp0.mjs +0 -1
- package/dist/chunks/plan-0.6.11-gjpg2790.mjs +0 -1
- package/dist/chunks/plist-0.6.11-w05ya36x.mjs +0 -1
- package/dist/chunks/plugin-0.6.11-03d13axt.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.11-9pgbqg5d.mjs +0 -1
- package/dist/chunks/plugins-0.6.11-75h6xdqw.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.11-s50nx3vz.mjs +0 -2
- package/dist/chunks/print-0.6.11-k4etj16x.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.11-wrefmptf.mjs +0 -1
- package/dist/chunks/process-0.6.11-1659ktyh.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.11-1vdvh812.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.11-sgrrkz4h.mjs +0 -9
- package/dist/chunks/prompt-0.6.11-6vegx569.mjs +0 -1
- package/dist/chunks/prompt-0.6.11-fna890vw.mjs +0 -1
- package/dist/chunks/prompts-0.6.11-t47csfe1.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.11-j86echck.mjs +0 -13
- package/dist/chunks/provider-0.6.11-hb987r47.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.11-tgq134ma.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.11-mt64512j.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.11-kxa5nfj5.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.11-b6er8zns.mjs +0 -34
- package/dist/chunks/registry-0.6.11-4fb806v3.mjs +0 -1
- package/dist/chunks/release-notes-0.6.11-fz4zz5yg.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.11-n4mpr219.mjs +0 -2
- package/dist/chunks/remote-env-0.6.11-ncb7g7d4.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.11-x37cwgvg.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.11-e9z7yjsw.mjs +0 -1
- package/dist/chunks/rename-0.6.11-c0w0b2m6.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.11-ee9w01cn.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.11-xfdp6att.mjs +0 -1
- package/dist/chunks/resume-0.6.11-23kcn6jj.mjs +0 -2
- package/dist/chunks/rewind-0.6.11-q3akxk2q.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.11-k2pf0f0y.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.11-0bvzn2v8.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.11-yzt81h2v.mjs +0 -1
- package/dist/chunks/session-0.6.11-08024vnp.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.11-xt43r5c8.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.11-e0rtjx2z.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.11-bdqzcb2k.mjs +0 -1
- package/dist/chunks/settings-0.6.11-rj27fsx5.mjs +0 -1
- package/dist/chunks/setup-0.6.11-dq4adawj.mjs +0 -5
- package/dist/chunks/sinks-0.6.11-gmn5bprg.mjs +0 -1
- package/dist/chunks/skills-0.6.11-z0crf6nq.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.11-v4kbxysc.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.11-jjwggzd7.mjs +0 -1
- package/dist/chunks/state-0.6.11-tecbf8py.mjs +0 -1
- package/dist/chunks/stats-0.6.11-d5wgq5tt.mjs +0 -6
- package/dist/chunks/status-0.6.11-5ae64prh.mjs +0 -1
- package/dist/chunks/stickers-0.6.11-jkr9x3cy.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.11-qvhfja2s.mjs +0 -1
- package/dist/chunks/tasks-0.6.11-55xpmrgd.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.11-pxkdnqew.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.11-gmexf5zv.mjs +0 -1
- package/dist/chunks/teleport-0.6.11-ry1yzr4s.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.11-8tr8vzr8.mjs +0 -1
- package/dist/chunks/theme-0.6.11-xpbbnbzp.mjs +0 -1
- package/dist/chunks/thinkback-0.6.11-e1trmsb8.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.11-8f5rw6t4.mjs +0 -1
- package/dist/chunks/toolPool-0.6.11-8hyhwpnn.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.11-s0gkr04e.mjs +0 -1
- package/dist/chunks/tools-0.6.11-z407md0d.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.11-m53tzan2.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.11-djt9nf5m.mjs +0 -69
- package/dist/chunks/types-0.6.11-vbmyqmjq.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.11-k4baarek.mjs +0 -4
- package/dist/chunks/update-0.6.11-0hmef5vs.mjs +0 -86
- package/dist/chunks/upgrade-0.6.11-37aswh99.mjs +0 -1
- package/dist/chunks/upload-0.6.11-gkfarr52.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.11-4gkmsmz9.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.11-tw7gxmkc.mjs +0 -1
- package/dist/chunks/usage-0.6.11-d6r3fpzd.mjs +0 -1
- package/dist/chunks/util-0.6.11-rdmkft2p.mjs +0 -1
- package/dist/chunks/utils-0.6.11-9mdps77k.mjs +0 -1
- package/dist/chunks/vim-0.6.11-19h6mmsw.mjs +0 -1
- package/dist/chunks/watcher-0.6.11-wbkacdcb.mjs +0 -1
- package/dist/chunks/wiki-0.6.11-ry1ctzqt.mjs +0 -132
- package/dist/chunks/worktree-0.6.11-j65v1emk.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.11-mj34d7de.mjs +0 -1
- package/dist/chunks/wrapper-0.6.11-shx80n4c.mjs +0 -7
- /package/dist/chunks/{cli-0.6.11-g6e4fqkd.mjs → cli-0.6.13-1dwgndg5.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.11-qbvxgfdn.mjs → cli-0.6.13-e3h2z83b.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.11-4z1bgfpr.mjs → cli-0.6.13-h2yxttam.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.11-p24pya2r.mjs → cli-0.6.13-p839x5sj.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.11-mczw6msm.mjs → cli-0.6.13-rmzzvjt2.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.11-dk5sskg3.mjs → cli-0.6.13-s9yqkgwe.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.11-6wwzebtr.mjs → cli-0.6.13-tsz6mx5f.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ao as S,Fo as Zq,do as E,eo as m,ep as l,fo as Xq,fp as Rq,gp as i,hp as Aq}from"./cli-0.6.11-yzqbg956.mjs";import{baa as u,daa as g,gaa as h,haa as n,maa as vq,mea as D,uea as Qq}from"./cli-0.6.11-ka6t3b6m.mjs";import{$fa as Uq,Zfa as d}from"./cli-0.6.11-grhakq5f.mjs";import{Aha as P,Bha as v,Fha as f,Jha as M,Nha as y,Xha as V,_ha as e}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as W,qia as O,ria as C,wia as _}from"./cli-0.6.11-5d4nqcar.mjs";import{Apa as qq,ipa as p}from"./cli-0.6.11-2qd0rf15.mjs";import{Upa as N}from"./cli-0.6.11-2m6rny10.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
-
export{Fq as bd,r as cd,nq as dd,lq as ed,Oq as fd,QQ as gd,XQ as hd,Dq as id};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{En as g,Fn as k,rF as h,tF as I}from"./cli-0.6.11-yzqbg956.mjs";import{LX as S,LZ as _,gZ as s}from"./cli-0.6.11-1n2a62nt.mjs";import{R1 as c,S1 as m,T1 as T}from"./cli-0.6.11-tzg5rhz9.mjs";import{Qca as P,sca as b}from"./cli-0.6.11-ka6t3b6m.mjs";import{Qpa as D}from"./cli-0.6.11-2m6rny10.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
-
export{E as N};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Upa as H}from"./cli-0.6.11-2m6rny10.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
|
|
2
|
-
export{F as afa,K as bfa,M as cfa,N as dfa,O as efa,P as ffa,J as gfa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hh as g,Ih as Uf}from"./cli-0.6.11-x2cj7p54.mjs";import{Mh as A,Oh as Kf}from"./cli-0.6.11-0c0dc88n.mjs";import{Aj as w,Bj as zf,Bw as M,Cw as $f,FB as c,Fl as Jf,GB as bf,MP as l,QD as v,Rl as N,XD as Df,XR as Hf,Xl as Qf,Xt as m,YR as d,Yt as Zf,as as h,bR as S,bs as Yf,dl as Bf,dm as L,el as Gf,im as Vf,kl as y,lu as C,mQ as Ff,nj as W,oR as p,pu as T,qB as I,rC as u,rr as E,sr as P,tr as Xf,tu as _f,uC as jf,vR as k}from"./cli-0.6.11-yzqbg956.mjs";import{mea as R,uea as ff}from"./cli-0.6.11-ka6t3b6m.mjs";import{Uga as O,Xga as e}from"./cli-0.6.11-z9by0x32.mjs";import{cna as H,noa as s,pla as F,qka as U,rka as q,wka as x}from"./cli-0.6.11-n46bkq7s.mjs";import{Rpa as K,Upa as t}from"./cli-0.6.11-2m6rny10.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await I("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(M(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),c(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:m(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();$f();Df();Yf();zf();_f();Zf();Ff();ff();Kf();Qf();bf();jf();d();Xf();Vf();Jf();Uf()});
|
|
2
|
-
export{lf as Fh,xf as Gh};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{qc as Mc,rc as aa}from"./cli-0.6.11-gk260gdw.mjs";import{sc as bn,tc as Zt,uc as Rt,vc as Nc,xc as ua}from"./cli-0.6.11-8f0jfjxs.mjs";import{Bc as ca,yc as Ct}from"./cli-0.6.11-53d996vr.mjs";import{Ap as qc,Cp as Oc,IF as xn,JF as qu,KF as Dn,LF as jn,MF as vn,NF as Su,Tp as Sc,Up as xu,gH as Gn,hF as ot,hH as du,hy as $c,iF as Qn,iy as Lc,jH as ta,jy as ju,kH as na,op as ic,pp as Qu,qp as ec,rF as Y,rp as oc,rv as Fc,sF as mu,sp as mc,tF as vu,tp as dc,tv as Du,up as I,vp as rn,wp as Gu,xp as _c,zp as wc}from"./cli-0.6.11-yzqbg956.mjs";import{JW as ct,LW as pu,XW as kc,YW as Iu}from"./cli-0.6.11-eqjbate8.mjs";import{LZ as _n,eZ as g,gZ as l}from"./cli-0.6.11-1n2a62nt.mjs";import{$0 as Xc,O0 as qn,P0 as Sn,Q0 as Fn,R0 as $n,S0 as Ln,T0 as ou,W0 as Nn,_0 as Mn,a1 as Vn}from"./cli-0.6.11-1mvb95b1.mjs";import{Q1 as et,R1 as a,S1 as y,T1 as Nt}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as Vt}from"./cli-0.6.11-gwzwm546.mjs";import{p2 as uc,q2 as Mu}from"./cli-0.6.11-8n8a5y9t.mjs";import{G2 as Xn,I2 as eu}from"./cli-0.6.11-9dm066ew.mjs";import{$ca as on,Ada as _u,Bda as yn,Cda as nc,Dda as Cn,Fda as cc,Hda as zc,Ida as sn,Rca as Rc,Sca as yt,Tca as Pu,Uca as Kt,Vca as v,Wda as Bu,Xca as T,Yca as Jt,_ca as ft,ada as tt,bda as Ot,e8 as dt,f8 as Eu,fda as gt,gda as mn,ida as dn,mda as kn,rda as cn,sda as En,tda as Pn,uda as Qt,vda as un,wda as Bn,xda as nn,yda as pn,zda as In}from"./cli-0.6.11-ka6t3b6m.mjs";import{Eia as nt,Mia as hn}from"./cli-0.6.11-bk2qdg9h.mjs";import{Qpa as Mt,Rpa as Uu,Upa as p}from"./cli-0.6.11-2m6rny10.mjs";function Cu(t,n=Dt,u){let h=v().find((i)=>i.provider==="openai"&&i.extras?.githubToken!==void 0);if(h)return Ot(h.id,{provider:"openai",name:h.name,baseUrl:u||h.baseUrl,model:h.model||n,apiKey:t,extras:{...h.extras,githubToken:t}}),gt(h.id),{mode:"updated"};return tt({provider:"openai",name:"GitHub Copilot",baseUrl:u||yu,model:n,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Yn({onDone:t,onBack:n,onChangeAPIKey:u}){let h=Nn()?.trim()?"already-authed":"menu",[i,m]=E.useState(h),[A,w]=E.useState(null),[z,b]=E.useState(""),[R,q]=E.useState(0),[L,Z]=E.useState(null),V=E.useCallback(async(Q,_=Dt,x,S)=>{let W=Mn(Q,x,S?.enterpriseDomain);if(!W.success){w(W.warning??"Could not save token to secure storage."),m("error");return}Cu(Q,_,S?.baseUrl),Xn(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),C=E.useCallback(async(Q)=>{m("device-busy"),w(null),Z(null);try{let _=await Sn({domain:Q});Z({user_code:_.user_code,verification_uri:_.verification_uri}),await $n(_.verification_uri);let x=await Fn(_.device_code,{initialInterval:_.interval,timeoutSeconds:_.expires_in,domain:Q}),S=await Ln(x,{domain:Q});await V(S.token,Dt,x,{baseUrl:S.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Q})}catch(_){w(_ instanceof Error?_.message:String(_)),m("error")}},[V]);if(i==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot"}),a(l,{children:"You are already signed in to GitHub Copilot."}),a(l,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),a(Y,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"back"}],onChange:(_)=>{if(_==="sign-in-again"){C();return}if(_==="enterprise"){m("enterprise-domain");return}if(n){n();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(i==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Enterprise sign-in"}),a(l,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:">"}),a(ot,{value:z,onChange:b,onSubmit:()=>{let _=qn(z);if(!_){C();return}C(_)},onExit:()=>m(h),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:R,onChangeCursorOffset:q})]}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(i==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"red",children:A}),a(Y,{options:[{label:n?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(_)=>{if(_==="back"){if(n){n();return}m("menu"),w(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(i==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[a(l,{children:"GitHub Copilot sign-in"}),L?y(et,{children:[y(l,{children:["Enter code ",a(l,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),a(l,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):a(l,{dimColor:!0,children:"Requesting device code from GitHub..."}),a(Gn,{})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot setup"}),a(l,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),a(Y,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Q)=>{if(Q==="cancel"){if(n){n();return}t("GitHub onboard cancelled",{display:"system"});return}if(Q==="enterprise"){m("enterprise-domain");return}C()}})]})}var E,Dt="github:copilot",yu="https://api.githubcopilot.com";var Jn=p(()=>{mu();du();Qn();_n();ou();Vn();eu();kn();Nt();E=Mt(Vt(),1)});function Kn(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function At(t,n){return n.some((u)=>t.includes(u))}function Ou(t){return!At(Kn(t),Zn)}function gu(t){return t.find(Ou)??null}function jt(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Au(t){return(t.quantizationLevel??t.name).toLowerCase()}function fu(t,n,u){if(t===null)return u.push("unknown size"),0;if(n==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(n==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function Ru(t,n,u){let h=Au(t);if(h.includes("q4"))return u.push("efficient Q4 quantization"),n==="latency"?8:4;if(h.includes("q5"))return u.push("balanced Q5 quantization"),n==="latency"?6:5;if(h.includes("q8"))return u.push("higher quality Q8 quantization"),n==="latency"?2:5;return 0}function zu(t,n,u){if(n.score!==t.score)return n.score-t.score;let h=jt(t)??Number.POSITIVE_INFINITY,i=jt(n)??Number.POSITIVE_INFINITY;if(u==="latency")return h-i;if(u==="coding")return i-h;let m=14;return Math.abs(h-m)-Math.abs(i-m)}function vt(t,n){return t.map((u)=>{let h=Kn(u),i=[],m=0;if(At(h,Zn))m-=40,i.push("not a chat-first model");if(At(h,su))m+=n==="coding"?24:n==="balanced"?10:4,i.push("coding-oriented model family");if(At(h,bu))m+=n==="latency"?4:n==="coding"?6:8,i.push("strong general-purpose model family");if(At(h,wu))m+=n==="latency"?2:6,i.push("chat/instruct tuned");if(h.includes("vision")||h.includes("vl"))m-=2,i.push("vision model adds extra overhead");m+=fu(jt(u),n,i),m+=Ru(u,n,i);let A=i.slice(0,3).join(", ");return{...u,score:m,reasons:i,summary:A}}).sort((u,h)=>zu(u,h,n))}function Hn(t,n){return gu(vt(t,n))}var su,bu,wu,Zn;var Tn=p(()=>{su=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],bu=["llama","qwen","mistral","gemma","phi","deepseek"],wu=["instruct","chat","assistant"],Zn=["embed","embedding","rerank","bge","whisper"]});function Xu(t){let n=t.toLowerCase();return ku.some((u)=>n.includes(u))}function tn(t){try{let n=new URL(t);if(n.username)n.username="redacted";if(n.password)n.password="redacted";for(let u of n.searchParams.keys())if(Xu(u))n.searchParams.set(u,"redacted");return n.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var ku;var Wn=p(()=>{ku=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Fu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URL(`${cn}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",un()),u.searchParams.append("redirect_uri",n),u.searchParams.append("scope",En),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Pn),u.toString()}function $u(){return`<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Codex Login Complete</title>
|
|
6
|
-
<style>
|
|
7
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
-
p { margin: 0 0 10px; }
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<h1>Codex login complete</h1>
|
|
14
|
-
<p>You can return to Claudin now.</p>
|
|
15
|
-
<p>Claudin will finish activating your new Codex OAuth login.</p>
|
|
16
|
-
</body>
|
|
17
|
-
</html>`}function Lu(t){return`<!doctype html>
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<head>
|
|
20
|
-
<meta charset="utf-8" />
|
|
21
|
-
<title>Codex Login Failed</title>
|
|
22
|
-
<style>
|
|
23
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
-
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
-
p { margin: 0 0 10px; }
|
|
26
|
-
</style>
|
|
27
|
-
</head>
|
|
28
|
-
<body>
|
|
29
|
-
<h1>Codex login failed</h1>
|
|
30
|
-
<p>${pn(t)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function Un(){return`<!doctype html>
|
|
34
|
-
<html lang="en">
|
|
35
|
-
<head>
|
|
36
|
-
<meta charset="utf-8" />
|
|
37
|
-
<title>Codex Login Cancelled</title>
|
|
38
|
-
<style>
|
|
39
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
-
p { margin: 0 0 10px; }
|
|
42
|
-
</style>
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<h1>Codex login cancelled</h1>
|
|
46
|
-
<p>You can close this window and retry in Claudin.</p>
|
|
47
|
-
</body>
|
|
48
|
-
</html>`}async function Nu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:n,client_id:un(),code_verifier:t.codeVerifier}),h=await fetch(`${cn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!h.ok){let b=await h.text().catch(()=>"");throw Error(b.trim()?`Codex OAuth token exchange failed (${h.status}): ${b.trim()}`:`Codex OAuth token exchange failed with status ${h.status}.`)}let i=await h.json(),m=Qt(i.access_token),A=Qt(i.refresh_token);if(!m||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let w=Qt(i.id_token);return{apiKey:w?await In(w).catch(()=>{return}):void 0,accessToken:m,refreshToken:A,idToken:w,accountId:nn(w)??nn(m)}}class an{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let n=Dn(),u=Bn(),h=new xn("/auth/callback");this.authCodeListener=h,this.port=null;try{let i=await h.start(u);this.port=i;let m=vn(),A=await jn(n),w=Fu({port:i,codeChallenge:A,state:m});try{let z=await h.waitForAuthorization(m,async()=>{await t(w)}),b=new AbortController;this.tokenExchangeAbortController=b;let R;try{R=await Nu({authorizationCode:z,codeVerifier:n,port:i,signal:b.signal})}finally{if(this.tokenExchangeAbortController===b)this.tokenExchangeAbortController=null}if(this.authCodeListener!==h)throw this.buildCancellationError();return h.handleSuccessRedirect([],(q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end($u())}),R}catch(z){let b=this.authCodeListener===h?z:this.buildCancellationError();if(h.hasPendingResponse()){let R=b instanceof Error&&b.message==="Codex OAuth flow was cancelled.";h.handleErrorRedirect((q)=>{q.writeHead(R?200:400,{"Content-Type":"text/html; charset=utf-8"}),q.end(R?Un():Lu(b instanceof Error?b.message:String(b)))})}throw b}finally{this.cleanup()}}catch(i){let m=i instanceof Error?i.message:String(i);if(m.includes("EADDRINUSE")||m.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw i}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((n)=>{n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(Un())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var tc=p(()=>{qu();Su();_u()});function Vu(){return new an}function ac(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Vu,h=t.deps?.openBrowser??uc,i=t.deps?.saveCodexCredentials??nc,m=t.deps?.isBareMode??nt,[A,w]=Gt.useState({state:"starting"});return Gt.useEffect(()=>{if(m()){w({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let z=!1,b=u();return b.startOAuthFlow(async(R)=>{if(z)return;w({state:"waiting",authUrl:R,browserOpened:null});let q=await h(R);if(z)return;w({state:"waiting",authUrl:R,browserOpened:q})}).then(async(R)=>{if(z)return;await n(R,(L)=>{let Z=i({apiKey:R.apiKey,accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,accountId:R.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(z)return;w({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{z=!0,b.cleanup()}},[u,m,n,h,i]),A}var Gt;var hc=p(()=>{tc();Mu();cc();hn();Gt=Mt(Vt(),1)});function sc(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ic()}}function lc(t,n){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:n}function Ku(t,n){if(n?.aborted)return Promise.resolve();return new Promise((u)=>{let h=setTimeout(()=>{n?.removeEventListener("abort",i),u()},t),i=()=>{clearTimeout(h),u()};n?.addEventListener("abort",i,{once:!0})})}async function Hu(t){let n=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),h=await n(oc,{method:"POST",headers:sc(),body:new URLSearchParams({client_id:rn(),scope:dc}).toString(),signal:u});if(!h.ok){let z=await h.text().catch(()=>"");throw Error(`xAI device code request failed (${h.status})${z?`: ${z.trim()}`:""}`)}let i=await h.json(),m=I(i.device_code),A=I(i.user_code),w=I(i.verification_uri);if(!m||!A||!w)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:A,verification_uri:w,verification_uri_complete:I(i.verification_uri_complete),expires_in:typeof i.expires_in==="number"&&i.expires_in>0?i.expires_in:Cc/1000,interval:typeof i.interval==="number"&&i.interval>0?i.interval:yc/1000}}async function Tu(t,n){let u=n?.fetchImpl??fetch,h=n?.sleep??Ku,i=n?.now??(()=>Date.now()),m=lc(t.expires_in,Cc),A=i()+m,w=Math.max(lc(t.interval,yc),Yu);while(i()<A){if(n?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let z=await u(ec,{method:"POST",headers:sc(),body:new URLSearchParams({grant_type:mc,client_id:rn(),device_code:t.device_code}).toString(),signal:n?.signal});if(z.ok){let L=await z.json(),Z=I(L.access_token),V=I(L.refresh_token);if(!Z||!V)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:V,idToken:I(L.id_token),expiresAt:i()+C*1000}}let b=await z.json().catch(()=>({})),R=Math.max(0,A-i());if(b.error==="authorization_pending"){await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="slow_down"){w=Math.min(w+Ju,Zu),await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="access_denied"||b.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(b.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let q=b.error_description??b.error??"";throw Error(`xAI device token exchange failed (${z.status})${q?`: ${q}`:""}`)}throw Error("xAI device authorization timed out.")}class ln{abortController=null;async startDeviceFlow(t){let n=new AbortController;this.abortController=n;try{let u=await Hu({signal:n.signal});return await t(u),await Tu(u,{signal:n.signal})}finally{if(this.abortController===n)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var yc=5000,Yu=1000,Ju=5000,Zu=60000,Cc=300000,rc=3000;var bc=p(()=>{Qu();Gu()});function Wu(){return new ln}function gc(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Wu,h=t.deps?.saveXaiCredentials??wc,i=t.deps?.isBareMode??nt,[m,A]=Yt.useState({state:"starting"});return Yt.useEffect(()=>{if(i()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let w=!1,z=u();return z.startDeviceFlow(async(b)=>{if(w)return;A({state:"waiting",userCode:b.user_code,verificationUri:b.verification_uri,verificationUriComplete:b.verification_uri_complete})}).then(async(b)=>{if(w)return;await n(b,(q)=>{let L=h({accessToken:b.accessToken,refreshToken:b.refreshToken,idToken:b.idToken,expiresAt:b.expiresAt,profileId:q?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((b)=>{if(w)return;A({state:"error",message:b instanceof Error?b.message:String(b)})}),()=>{w=!0,z.cleanup()}},[u,i,n,h]),m}var Yt;var Ac=p(()=>{bc();hn();Oc();Yt=Mt(Vt(),1)});function ea(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function oa(t){let n=Kt(t);return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function ma(t){let n={};for(let u of t.split(/\r?\n/)){let h=u.trim();if(!h)continue;let i=h.indexOf(":");if(i<=0)continue;let m=h.slice(0,i).trim(),A=h.slice(i+1).trim();if(m&&A)n[m]=A}return n}function da(t){if(!t)return"";return Object.entries(t).map(([n,u])=>`${n}: ${u}`).join(`
|
|
49
|
-
`)}function ya(t,n){let u={},h=t.awsRegion?.trim();if(h)u.awsRegion=h;let i=t.gcpProject?.trim();if(i)u.gcpProject=i;let m=t.gcpRegion?.trim();if(m)u.gcpRegion=m;let A=t.azureResource?.trim();if(A)u.azureResource=A;let w=ma(n);if(Object.keys(w).length>0)u.customHeaders=w;return Object.keys(u).length>0?u:void 0}function sa(t,n){let u=n?" (active)":"",h=t.apiKey?"key set":"no key",i=t.provider==="anthropic"?"anthropic":"openai-compatible",m=Rc(t.model),A=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${i} · ${t.baseUrl} · ${A} · ${h}${u}`}function ba(t,n){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${tn(n)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function wa(t,n){if(t.state==="unreachable")return`Could not reach Ollama at ${tn(n)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let u=t.probeModel??"the selected model",h=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${h} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function en(t,n){if(!n)return;return t.find((u)=>u.id===n)}function fc(t,n){return Boolean(t&&n&&t.id===n)}function Oa({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=ac({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"Codex OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Codex OAuth"}),a(l,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),h.state==="starting"?a(l,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):h.browserOpened===!1?y(et,{children:[a(l,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),a(l,{children:h.authUrl})]}):h.browserOpened===!0?y(et,{children:[a(l,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),a(l,{children:h.authUrl})]}):a(l,{dimColor:!0,children:"Opening your browser..."}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=gc({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"xAI OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),h.state==="starting"?a(l,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(et,{children:[y(l,{children:["Open this URL on any device:"," ",a(l,{bold:!0,children:h.verificationUri})]}),y(l,{children:["Enter code ",a(l,{bold:!0,children:h.userCode})]}),h.verificationUriComplete&&h.verificationUriComplete!==h.verificationUri?y(l,{dimColor:!0,children:["Or open this prefilled URL: ",h.verificationUriComplete]}):null,a(l,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function gh({mode:t,onDone:n}){let u=Fc(),[h,i]=s.useState([]),[m,A]=s.useState(),[w,z]=s.useState(),[b,R]=s.useState(!1),[q,L]=s.useState(),Z=s.useRef(0),[V,C]=s.useState(t==="first-run"?"select-preset":"menu"),[ut,Q]=s.useState(null),[_,x]=s.useState("openai"),[S,W]=s.useState(()=>oa("ollama")),[Ht,zt]=s.useState({}),[wn,Tt]=s.useState(""),[Vc,Qc]=s.useState(0),[Gc,Yc]=s.useState(0),[Wt,On]=s.useState(null),[at,st]=s.useState(0),[ht,D]=s.useState(0),[Jc,j]=s.useState(0),[gn,N]=s.useState(),[rt,f]=s.useState(),[Zc,Kc]=s.useState(),[An,kt]=s.useState(!1),[bt,wt]=s.useState(),[P,Xt]=s.useState({state:"idle"}),[B,_t]=s.useState({state:"idle"}),[Hc,Tc]=s.useState(!0),[Wc,H]=s.useState(!1),Ut=s.useRef(!1),[Et,Pt]=s.useState(()=>Rt()),[fn,Uc]=s.useState(()=>Nc());s.useEffect(()=>{queueMicrotask(()=>{let c=v(),r=T()?.id;i(c),A(r),z(Jt()),L(on()),R(ft()),Tc(!1)})},[]);let lt=mt[ht]??mt[0],qt=lt.key,Ec=S[qt],Bt=h.length>0,St=Bt,Rn=s.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...Et?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:q?`Currently: ${h.find((c)=>c.id===q)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!St},{value:"activate-project",label:"Set active provider (Project)",description:w?`Currently: ${h.find((c)=>c.id===w)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!St},...b?[{value:"clear-project-override",label:"Clear project provider override",description:w?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!Bt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!St},...An?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[St,Bt,An,Et,q,w,h]),pt=s.useCallback(()=>{if(nt()){Z.current+=1,kt(!1),wt(void 0);return}let c=++Z.current;(async()=>{let r=await yn();if(c!==Z.current)return;kt(Boolean(r?.apiKey||r?.accessToken||r?.refreshToken||r?.idToken)),wt(r?.profileId)})()},[]);s.useEffect(()=>{return pt(),()=>{Z.current+=1}},[pt]),s.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Xt({state:"loading"}),(async()=>{let r=await Lc({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)Xt({state:"unavailable",message:wa(r,S.baseUrl)});return}let o=vt(r.models,"balanced"),e=Hn(r.models,"balanced");if(!c)Xt({state:"ready",defaultValue:e?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{c=!0}},[S.baseUrl,V]),s.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return _t({state:"loading"}),(async()=>{let r=await $c({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)_t({state:"unavailable",message:ba(r,S.baseUrl)});return}if(!c)_t({state:"ready",defaultValue:r.models[0],options:r.models.map((o)=>({label:o,value:o}))})})(),()=>{c=!0}},[S.baseUrl,V]);function M(){if(Ut.current)return;Ut.current=!0,queueMicrotask(()=>{let c=v();i(c),A(T()?.id),z(Jt()),L(on()),R(ft()),pt(),Ut.current=!1})}function it(){return null}function It(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function xt(c){if(c?.accessToken&&c.accountId)return null;let r=await yn();if(!r)return"stored Codex OAuth credentials could not be loaded";if(!r.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function zn(){Sc()}async function Pc(c){let r="provider";H(!0),N("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),e=gt(c);if(!e){f("Could not change active provider."),H(!1),k();return}let d=o?T()??e:e,O=yt(d.model);if(!o)u((U)=>({...U,mainLoopModel:O,mainLoopModelForSession:null}));r=e.name;let X=it(),J=fc(e,bt),$=J?await xt():null;M();let K=o&&d.id!==e.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?It({prefix:`Active provider: ${e.name}${K}`,activationWarning:$,warnings:[$,X?`could not clear startup provider override (${X})`:null].filter((U)=>Boolean(U))}):X?`Active provider: ${e.name}${K}. Warning: could not clear startup provider override (${X}).`:`Active provider: ${e.name}${K}`;N(F),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:O,message:`Provider switched to ${e.name} (${O})`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish activating ${r}: ${e}`),k()}}async function Bc(){H(!0),N("Clearing project provider override...");try{await new Promise((r)=>queueMicrotask(r)),mn(null),M();let c=T();if(c){let r=yt(c.model);Ct(),u((o)=>({...o,mainLoopModel:r,mainLoopModelForSession:null})),N(`Project override cleared. Using global default: ${c.name}.`),H(!1),n({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:r,message:`Project override cleared — using ${c.name} (${r})`}),k()}else N("Project provider override cleared. No global default set."),H(!1),n({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(c){M(),N(void 0),H(!1);let r=c instanceof Error?c.message:String(c);f(`Could not clear project provider override: ${r}`),k()}}async function pc(c){let r="provider";H(!0),N("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Jt(),e=mn(c);if(!e){f("Could not set project provider override."),H(!1),k();return}let d=yt(e.model);if(o===e.id)Ct();u((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),r=e.name;let O=it(),X=fc(e,bt),J=X?await xt():null;M();let $=`Active provider for this project: ${e.name}. Other projects keep the global default.`,K=X?It({prefix:$,activationWarning:J,warnings:[J,O?`could not clear startup provider override (${O})`:null].filter((F)=>Boolean(F))}):O?`${$} Warning: could not clear startup provider override (${O}).`:$;N(K),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:d,message:`Provider switched to ${e.name} (${d}) for this project`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish setting ${r} for this project: ${e}`),k()}}function k(){Kc("done"),C("menu")}function Ft(c){n({action:"cancelled",message:c})}function Ic(c){let r=Kt(c),o={name:r.name,baseUrl:r.baseUrl,model:r.model,apiKey:r.apiKey??""};if(Q(null),x(r.provider??"openai"),W(o),zt({}),Tt(""),On(c),D(0),st(0),j(o.name.length),f(void 0),c==="ollama"){Xt({state:"loading"}),C("select-ollama-model");return}if(c==="atomic-chat"){_t({state:"loading"}),C("select-atomic-chat-model");return}if(c==="anthropic"){C("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){C("cloud-extras");return}C("form")}function xc(c){let r=h.find((e)=>e.id===c);if(!r)return;let o=ea(r);Q(c),x(r.provider??"openai"),W(o),zt({awsRegion:r.extras?.awsRegion,gcpProject:r.extras?.gcpProject,gcpRegion:r.extras?.gcpRegion,azureResource:r.extras?.azureResource}),Tt(da(r.extras?.customHeaders)),On(null),D(0),st(0),j(o.name.length),f(void 0),C("form")}function $t(c=S){let r=ya(Ht,wn),o={provider:_,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:r},e=ut?Ot(ut,o):tt(o,{makeActive:!0});if(!e){f("Could not save provider. Fill all required fields.");return}let d=T()?.id===e.id;if(d)Ct(),u((K)=>({...K,mainLoopModel:yt(e.model),mainLoopModelForSession:null}));let O=d?it():null;M();let X=!ut&&ft()&&!d,J=X?T()?.name??"override target":null,$=ut?`Updated provider: ${e.name}`:X?`Added provider: ${e.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${e.name} (now active)`;if(N(O?`${$}. Warning: could not clear startup provider override (${O}).`:$),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:`Provider configured: ${e.name}`});return}Q(null),D(0),f(void 0),k()}function Dc(){if(B.state==="loading"||B.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),a(l,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(B.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Atomic Chat setup"}),a(l,{dimColor:!0,children:B.message}),a(Y,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),a(l,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),a(Y,{options:B.options,defaultValue:B.defaultValue,defaultFocusValue:B.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,B.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function jc(){if(P.state==="loading"||P.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Ollama"}),a(l,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(P.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Ollama setup"}),a(l,{dimColor:!0,children:P.message}),a(Y,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Ollama model"}),a(l,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),a(Y,{options:P.options,defaultValue:P.defaultValue,defaultFocusValue:P.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,P.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function vc(c){let r=c.trim();if(!lt.optional&&r.length===0){f(`${lt.label} is required.`);return}let o={...S,[qt]:r};if(W(o),f(void 0),ht<mt.length-1){let e=ht+1,d=mt[e]?.key??"name";D(e),j(o[d].length);return}if((Wt==="anthropic"||Wt==="custom")&&V==="form"){W(o),C("custom-headers");return}$t(o)}function tu(){if(f(void 0),ht>0){let c=ht-1,r=mt[c]?.key??"name";D(c),j(S[r].length);return}if(t==="first-run"){C("select-preset");return}k()}ct("confirm:no",tu,{context:"Settings",isActive:V==="form"});function nu(){if(f(void 0),at>0){st(at-1);return}C("select-preset")}ct("confirm:no",nu,{context:"Settings",isActive:V==="cloud-extras"}),ct("confirm:no",()=>C("form"),{context:"Settings",isActive:V==="custom-headers"}),ct("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"});function cu(){let c=!nt(),r=[...Et?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...c?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),a(l,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),a(Y,{options:r,onChange:(o)=>{if(o==="skip"){Ft("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let e=await bn({force:!0});Pt(Rt()),M();let d=Zt(e);if(e.errors.length>0){f(d);return}let O=T();if(t==="first-run"&&O){n({action:"saved",activeProfileId:O.id,activeProviderName:O.name,activeProviderModel:O.model,message:d});return}if(N(d),f(void 0),t==="manage")k()})();return}Ic(o)},onCancel:()=>{if(t==="first-run"){Ft("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,r.length)})]})}function uu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),a(l,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),a(Y,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){C("anthropic-oauth");return}if(c==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function au(){let c=(na(),Uu(ta)).ConsoleOAuthFlow;return a(g,{flexDirection:"column",gap:1,children:a(c,{mode:"login",onDone:()=>{let r=Kt("anthropic"),o={provider:"anthropic",name:r.name,baseUrl:r.baseUrl,model:r.model},e=tt(o,{makeActive:!0});if(!e){f("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${e.name}`;if(M(),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}})})}function hu(){let c=Wt;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let r=Ca[c],o=r[at]??r[0],e=Ht[o.key]??"";function d(O){let X=O.trim();if(X.length===0){f(`${o.label} is required.`);return}let J={...Ht,[o.key]:X};if(zt(J),f(void 0),at<r.length-1){st(at+1);return}st(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),a(l,{dimColor:!0,children:o.helpText}),y(l,{dimColor:!0,children:["Step ",at+1," of ",r.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:e,onChange:(O)=>zt((X)=>({...X,[o.key]:O})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${dt.ellipsis}`,columns:80,cursorOffset:Vc,onChangeCursorOffset:Qc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function ru(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(l,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",a(l,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:wn,onChange:Tt,onSubmit:()=>$t(S),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Gc,onChangeCursorOffset:Yc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function lu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:ut?"Edit provider profile":"Create provider profile"}),a(l,{dimColor:!0,children:lt.helpText}),y(l,{dimColor:!0,children:["Provider type:"," ",_==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(l,{dimColor:!0,children:["Step ",ht+1," of ",mt.length,": ",lt.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:Ec,onChange:(c)=>W((r)=>({...r,[qt]:c})),onSubmit:vc,focus:!0,showCursor:!0,placeholder:`${lt.placeholder}${dt.ellipsis}`,mask:qt==="apiKey"?"*":void 0,columns:80,cursorOffset:Jc,onChangeCursorOffset:j})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function iu(){let c=h.length>0,r=c;return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Provider manager"}),a(l,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),gn&&a(l,{children:gn}),a(g,{flexDirection:"column",children:h.length===0?a(l,{dimColor:!0,children:"No provider profiles configured yet."}):h.map((o)=>y(l,{dimColor:!0,children:["- ",o.name,": ",sa(o,o.id===m)]},o.id))}),a(Y,{options:Rn,onChange:(o)=>{switch(f(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let e=await bn({force:!0});if(Pt(Rt()),M(),e.errors.length>0)f(Zt(e));else N(Zt(e))})();break}case"activate":if(r)C("select-active");break;case"activate-project":if(r)C("select-active-project");break;case"clear-project-override":Bc();break;case"edit":if(c)C("select-edit");break;case"delete":if(r)C("select-delete");break;case"logout-codex-oauth":{let e=Cn();if(!e.success){f(e.warning??"Could not clear Codex OAuth credentials.");break}kt(!1),wt(void 0);let d=en(v(),bt),O=null;if(d){let X=dn(d.id);if(!X.removed){f("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),M();break}zn(),O=X.activeProfileId?it():null}M(),N(O?`Codex OAuth logged out. Warning: could not clear startup provider override (${O}).`:"Codex OAuth logged out.");break}default:Ft("Provider manager closed");break}},onCancel:()=>Ft("Provider manager closed"),defaultFocusValue:Zc,visibleOptionCount:Rn.length})]})}function Lt(c,r,o){let e=h.map((d)=>{let O=[];if(d.id===m)O.push("active");if(w&&d.id===w)O.push("this project");if(q&&d.id===q)O.push("global default");let X=O.length>0?` (${O.join(", ")})`:"";return{value:d.id,label:`${d.name}${X}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(e.length===0)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(l,{dimColor:!0,children:r}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(Y,{options:e,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,e.length))})]})}let G;switch(V){case"select-preset":G=cu();break;case"select-ollama-model":G=jc();break;case"select-atomic-chat-model":G=Dc();break;case"codex-oauth":G=a(Oa,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let o={provider:"openai",name:ha,baseUrl:zc,model:ra,apiKey:""},e=en(v(),bt),d=e?Ot(e.id,o):tt(o,{makeActive:!0});if(!d){f("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let O=e&&m!==d.id?gt(d.id):d;if(!O){f("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}r({profileId:d.id});let X=it(),J=await xt(c);kt(!0),wt(d.id),M();let $=[J,X?`could not clear startup provider override (${X})`:null].filter((F)=>Boolean(F)),K=It({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){n({action:"saved",activeProfileId:O.id,message:K});return}N(K),f(void 0),k()}});break;case"xai-oauth":G=a(ga,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let e=tt({provider:"openai",name:la,baseUrl:sn,model:ia,apiKey:""},{makeActive:!0});if(!e){f("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{r({profileId:e.id})}catch(O){f(O instanceof Error?O.message:String(O)),k();return}M();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}});break;case"github-onboard":G=a(Yn,{onDone:(c)=>{if(c)N(c),f(void 0);M(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:M});break;case"anthropic-auth-choice":G=uu();break;case"anthropic-oauth":G=au();break;case"cloud-extras":G=hu();break;case"custom-headers":G=ru();break;case"form":G=lu();break;case"select-active":G=Lt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Pc(c)});break;case"select-active-project":G=Lt("Set active provider (Project)","No providers available. Add one first.",(c)=>{pc(c)});break;case"select-edit":G=Lt("Edit provider","No providers available. Add one first.",(c)=>{xc(c)});break;case"select-delete":G=Lt("Delete provider","No providers available. Add one first.",(c)=>{let r=h.find(($)=>$.id===c),o=r?.provider==="openai"&&r?.extras?.githubToken!==void 0,e=en(h,bt)?.id===c,d=_c()?.profileId,O=r?.provider==="openai"&&r.baseUrl===sn&&!r.apiKey&&d===c,X=T()?.id===c,J=dn(c);if(!J.removed)f("Could not delete provider.");else{let $=[];if(e){let F=Cn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else wt(void 0);zn()}if(o){let F=Xc();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(O){let F=qc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?it():null;if(K)$.push(`could not clear startup provider override (${K})`);if(M(),X){let F=T();if(F)Ct(),u((U)=>({...U,mainLoopModel:yt(F.model),mainLoopModelForSession:null}));else Ct(),u((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}N($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=iu();break}return y(kc,{color:"permission",children:[a(Mc,{enabled:fn,onDismiss:(c)=>{Pt(Rt()),Uc(!1),M();let r=T();if(c==="migrated"&&t==="first-run"&&r)n({action:"saved",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:r.model})}}),fn?null:Hc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Loading providers..."}),a(l,{dimColor:!0,children:"Reading provider profiles from disk."})]}):Wc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Activating provider..."}),a(l,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var s,mt,ha="Codex OAuth",ra="codexplan",la="xAI / Grok (OAuth)",ia="grok-4",Ca;var Aa=p(()=>{Eu();Jn();Bu();_n();pu();Du();ca();cc();hn();Pu();xu();kn();Vn();ju();Tn();Wn();vu();Iu();aa();Qn();hc();Ac();Oc();ua();Nt();s=Mt(Vt(),1),mt=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0}];Ca={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
|
|
50
|
-
export{tn as lc,Wn as mc,ma as nc,gh as oc,Aa as pc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Upa as s}from"./cli-0.6.11-2m6rny10.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/0.6.11 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
-
export{c as $1,i as a2,r as b2};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Cia as q,Mia as U}from"./cli-0.6.11-bk2qdg9h.mjs";import{Tpa as L,Upa as X}from"./cli-0.6.11-2m6rny10.mjs";import{AsyncLocalStorage as F}from"async_hooks";function G(){return O.getStore()}function Y(z,B){return O.run(z,B)}function Z(){return O.getStore()!==void 0}function $(z){return{...z,isInProcess:!0}}var O;var Q=X(()=>{O=new F});var y={};L(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>b,runWithTeammateContext:()=>Y,isTeammate:()=>u,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Z,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>f,getTeamName:()=>h,getParentSessionId:()=>_,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>E,createTeammateContext:()=>$,clearDynamicTeamContext:()=>j});function _(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function b(z){D=z}function j(){D=null}function v(){return D}function E(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function h(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function u(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function f(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return q(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=E(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((V)=>{let N={...V.tasks};for(let W of H){let K=N[W];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[W]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...V,tasks:N}})})}var D=null;var g=X(()=>{Q();U();Q()});
|
|
2
|
-
export{G as $V,Y as aW,Z as bW,$ as cW,Q as dW,_ as eW,v as fW,E as gW,A as hW,h as iW,u as jW,f as kW,w as lW,S as mW,P as nW,I as oW,l as pW,y as qW,g as rW};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{vg as s,wg as Sy}from"./cli-0.6.11-rk3wv9rd.mjs";import{Eg as wy,Gg as kG}from"./cli-0.6.11-9w5fs9qs.mjs";import{Ai as ny,xi as Zy,zi as Ky}from"./cli-0.6.11-asrrshp1.mjs";import{DR as Vy,Jn as yy,Ln as Gy,Nn as ky,Nw as Xy,QJ as j,Qn as qy,Qw as oy,RJ as ey,Rn as zy,Sk as e,Sn as Iy,Tu as X,Un as Jy,Uq as Qy,Uu as ay,Wk as sy,YR as zG,ZJ as Oy,_n as xy,dr as Wy,hK as yG,lr as ly,mR as Hy,oK as by,os as C,rF as i,sF as Ly,sK as GG,wF as g,ws as _y,xF as My}from"./cli-0.6.11-yzqbg956.mjs";import{VV as Ny,WV as ty}from"./cli-0.6.11-nwgarns7.mjs";import{$W as Uy,_W as Py,aX as jy,eX as qG}from"./cli-0.6.11-eqjbate8.mjs";import{kX as Ry,qX as cy}from"./cli-0.6.11-jpy86ktt.mjs";import{LX as hy,LZ as ry,cZ as Q,dZ as $y,eZ as L,gZ as d}from"./cli-0.6.11-1n2a62nt.mjs";import{R1 as O,S1 as E,T1 as p}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as Yy}from"./cli-0.6.11-gwzwm546.mjs";import{R4 as iy,f6 as h,r4 as c,s4 as t,y6 as gy}from"./cli-0.6.11-9dm066ew.mjs";import{U6 as a,V6 as fy}from"./cli-0.6.11-93mbpc2x.mjs";import{Fba as dy,Qca as M,Y8 as T,e$ as J,g$ as Ey,m9 as o,qba as n,sca as P,t9 as Ay,v9 as U,vba as r,vca as q,w9 as uy,wba as v}from"./cli-0.6.11-ka6t3b6m.mjs";import{Ffa as A,Gfa as u,ufa as K}from"./cli-0.6.11-prd8de37.mjs";import{Uga as f,Xga as Fy}from"./cli-0.6.11-z9by0x32.mjs";import{Xha as _,_ha as Dy}from"./cli-0.6.11-ar9we9b3.mjs";import{Qpa as D}from"./cli-0.6.11-2m6rny10.mjs";ry();u();Fy();M();Ly();Sy();My();p();var $=D(hy(),1),F=D(Yy(),1),Ty={enable_shortcut_tip:!1,enable_startup_dialog:!1};function S(){return A("tengu_desktop_upsell",Ty)}function vy(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function wG(){if(!vy())return!1;if(!S().enable_startup_dialog)return!1;let y=q();if(y.desktopUpsellDismissed)return!1;if((y.desktopUpsellSeenCount??0)>=3)return!1;return!0}function PG(y){let G=$.c(14),{onDone:k}=y,[z,Z]=F.useState(!1),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W=[],G[0]=W;else W=G[0];if(F.useEffect(py,W),z){let w;if(G[1]!==k)w=O(s,{onDone:()=>k()}),G[1]=k,G[2]=w;else w=G[2];return w}let b;if(G[3]!==k)b=function(By){switch(By){case"try":{Z(!0);return}case"never":{P(Cy),k();return}case"not-now":{k();return}}},G[3]=k,G[4]=b;else b=G[4];let I=b,R;if(G[5]===Symbol.for("react.memo_cache_sentinel"))R={label:"Open in Claude Code Desktop",value:"try"},G[5]=R;else R=G[5];let H;if(G[6]===Symbol.for("react.memo_cache_sentinel"))H={label:"Not now",value:"not-now"},G[6]=H;else H=G[6];let V;if(G[7]===Symbol.for("react.memo_cache_sentinel"))V=[R,H,{label:"Don't ask again",value:"never"}],G[7]=V;else V=G[7];let my=V,m;if(G[8]===Symbol.for("react.memo_cache_sentinel"))m=O(L,{marginBottom:1,children:O(d,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."})}),G[8]=m;else m=G[8];let N;if(G[9]!==I)N=()=>I("not-now"),G[9]=I,G[10]=N;else N=G[10];let B;if(G[11]!==I||G[12]!==N)B=O(g,{title:"Try Claude Code Desktop",children:E(L,{flexDirection:"column",paddingX:2,paddingY:1,children:[m,O(i,{options:my,onChange:I,onCancel:N})]})}),G[11]=I,G[12]=N,G[13]=B;else B=G[13];return B}function Cy(y){if(y.desktopUpsellDismissed)return y;return{...y,desktopUpsellDismissed:!0}}function py(){let y=(q().desktopUpsellSeenCount??0)+1;P((G)=>{if((G.desktopUpsellSeenCount??0)>=y)return G;return{...G,desktopUpsellSeenCount:y}}),f("tengu_desktop_upsell_shown",{seen_count:y})}M();function VG(y){let G=q().numStartups;P((k)=>{let z=k.tipsHistory??{};if(z[y]===G)return k;return{...k,tipsHistory:{...z,[y]:G}}})}function x(y){let G=q(),k=G.tipsHistory?.[y];if(!k)return 1/0;return G.numStartups-k}fy();Dy();_y();dy();cy();$y();kG();ay();sy();gy();ty();M();ly();Ey();oy();Ay();xy();iy();uy();GG();yG();ey();zG();u();ny();qG();var Y;async function IG(){if(Y!==void 0)return Y;let y=await Oy();return Y=j in y,Y}async function l(y,G,k){if(!await IG())return!1;if(by(`${y}@${j}`))return!1;let{bashTools:z}=G??{};if(k.cli&&z?.size){if(k.cli.some((Z)=>z.has(Z)))return!0}if(k.filePath&&G?.readFileState){if(Xy(G.readFileState).some((W)=>k.filePath.test(W)))return!0}return!1}var JG=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return q().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=q();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=q(),G=v(),k=Boolean(y.lastPlanModeUse),z=Boolean(G?.permissions?.defaultMode);return k&&!z}catch(y){return _(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=q();return await o()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${X("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${X("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await T()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${X("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=q();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(Hy())return!1;return await Ny()>=2}},{id:"terminal-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=q();if(J.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>J.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=q();return Boolean((J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!Ry())return!1;let y=q();return!(J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return q().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&a.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>U()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>v().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return q().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${J.terminal==="vscode"?"code":J.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!yy())return!1;if(U()!=="macos")return!1;switch(J.terminal){case"vscode":return!await Iy();case"cursor":return!await qy();case"windsurf":return!await zy();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(Gy())return!1;if((await ky()).length!==0)return!1;return(await Jy()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!q().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!q().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return q().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!J.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>U()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!C()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>C()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>Vy()&&q().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return q().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${X("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${X("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>U()!=="linux"},{id:"desktop-shortcut",content:async(y)=>{return`Continue your session in Claude Code Desktop with ${Q("suggestion",y.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!S().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${X("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=q(),k=c()==="opusplan",z=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return k&&z>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
|
|
2
|
-
${Q("suggestion",y.theme)(`/plugin install frontend-design@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
|
|
3
|
-
${Q("suggestion",y.theme)(`/plugin install vercel@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>l("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let k=Q("suggestion",y.theme)("/effort high");return K("tengu_tide_elm","off")==="copy_b"?`Use ${k} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${k} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!Qy(t()))return!1;if(n("policySettings")?.effortLevel!==void 0)return!1;if(Wy()!==void 0)return!1;let y=r().effortLevel;if(y==="high"||y==="max")return!1;return K("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${G("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${G('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;return K("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return K("tengu_timber_lark","off")==="copy_b"?`Use ${G("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${G("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!e())return!1;return K("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let G=Q("claude",y.theme),k=jy();return k?`Share Claude Code and earn ${G(Uy(k))} of extra usage · ${G("/passes")}`:`You have free guest passes to share · ${G("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(q().hasVisitedPasses)return!1;let{eligible:G}=Py();return G}},{id:"overage-credit",content:async(y)=>{let G=Q("claude",y.theme),k=Zy(),z=k?Ky(k):null;if(!z)return"";return`${G(`${z} in extra usage, on us`)} · third-party apps · ${G("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>wy()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return q().numStartups>5}}],QG=[];function WG(){let G=r().spinnerTipsOverride;if(!G?.tips?.length)return[];return G.tips.map((k,z)=>({id:`custom-tip-${z}`,content:async()=>k,cooldownSessions:0,isRelevant:async()=>!0}))}async function cG(y){let k=r().spinnerTipsOverride,z=WG();if(k?.excludeDefault&&z.length>0)return z;let Z=[...JG,...QG],W=await Promise.all(Z.map((I)=>I.isRelevant(y)));return[...Z.filter((I,R)=>W[R]).filter((I)=>x(I.id)>=I.cooldownSessions),...z]}
|
|
4
|
-
export{wG as La,PG as Ma,VG as Na,x as Oa,cG as Pa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Uga as X,Xga as z}from"./cli-0.6.11-z9by0x32.mjs";import{Aha as Z,Fha as O,Xha as $,_ha as P}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as Y,wia as H}from"./cli-0.6.11-5d4nqcar.mjs";import{Upa as x}from"./cli-0.6.11-2m6rny10.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
|
|
2
|
-
export{N as kf,R as lf,U as mf,j as nf,D as of,L as pf,m as qf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{of as R,qf as d}from"./cli-0.6.11-r47v4jpv.mjs";import{K0 as j,N0 as c}from"./cli-0.6.11-5rmv3rjz.mjs";import{Xha as K,_ha as D}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as C,wia as h}from"./cli-0.6.11-5d4nqcar.mjs";import{Upa as I,Vpa as J}from"./cli-0.6.11-2m6rny10.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.6.11-3bje6qr0.mjs"),{getOrganizationUUID:Z}=await import("./client-0.6.11-70d4q0e6.mjs"),{getOauthConfig:V}=await import("./oauth-0.6.11-jw16eb9m.mjs"),{getOAuthHeaders:P}=await import("./api-0.6.11-kfd2tz28.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.6.11-d4p66cnz.mjs"),{getDefaultBranch:_}=await import("./git-0.6.11-79jra9bb.mjs"),{getMainLoopModel:M}=await import("./model-0.6.11-rwp8jj5q.mjs"),{default:T}=await import("./index-0.6.11-t7ygqnf0.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.6.11-d4p66cnz.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.11-3bje6qr0.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.11-70d4q0e6.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.11-jw16eb9m.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.11-kfd2tz28.mjs"),{default:G}=await import("./index-0.6.11-t7ygqnf0.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.11-3bje6qr0.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.11-70d4q0e6.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.11-jw16eb9m.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.11-kfd2tz28.mjs"),{default:G}=await import("./index-0.6.11-t7ygqnf0.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.6.11-3bje6qr0.mjs"),{getOrganizationUUID:Y}=await import("./client-0.6.11-70d4q0e6.mjs"),{getOauthConfig:z}=await import("./oauth-0.6.11-jw16eb9m.mjs"),{getOAuthHeaders:G}=await import("./api-0.6.11-kfd2tz28.mjs"),{default:L}=await import("./index-0.6.11-t7ygqnf0.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
|
|
2
|
-
export{i as ff,r as gf,t as hf,o as if,p as jf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d9 as Q,t9 as _}from"./cli-0.6.11-ka6t3b6m.mjs";import{ega as I,fga as X}from"./cli-0.6.11-887jj6fe.mjs";import{Xha as B,_ha as V}from"./cli-0.6.11-ar9we9b3.mjs";import{Upa as T}from"./cli-0.6.11-2m6rny10.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{X();V();_();A=new Map});
|
|
2
|
-
export{j as R7,P as S7,Y as T7,S as U7,O as V7,D as W7,Z as X7};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{uh as e,vh as qq,wh as Jq,xh as _q}from"./cli-0.6.11-p1r07bx9.mjs";import{yh as Zq,zh as Pq}from"./cli-0.6.11-2qh8cr36.mjs";import{Au as y,Eu as x,zu as j}from"./cli-0.6.11-yzqbg956.mjs";import{LZ as Iq,eZ as F,gZ as K}from"./cli-0.6.11-1n2a62nt.mjs";import{R1 as Y,S1 as L,T1 as Qq}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as m}from"./cli-0.6.11-gwzwm546.mjs";import{Naa as r,U8 as w,Vaa as Vq,W8 as h,b9 as f,e8 as I,f8 as t,t9 as Uq}from"./cli-0.6.11-ka6t3b6m.mjs";import{Cea as Xq,Dea as Mq,Rea as Eq}from"./cli-0.6.11-mjdvh04x.mjs";import{Qpa as R,Upa as D}from"./cli-0.6.11-2m6rny10.mjs";function p(q,J){let{perFileStats:$}=q,z=[];for(let[Q,Z]of $){let A=J.get(Q),M=Z.isUntracked??!1,U=!Z.isBinary&&!M&&!A&&!Z.renamedFrom,H=Z.added+Z.removed,V=!U&&!Z.isBinary&&H>Kq;z.push({path:Q,linesAdded:Z.added,linesRemoved:Z.removed,isBinary:Z.isBinary,isLargeFile:U,isTruncated:V,isUntracked:M,...Z.renamedFrom?{renamedFrom:Z.renamedFrom}:{}})}return z.sort((Q,Z)=>Q.path.localeCompare(Z.path)),z}var b,Kq=400;var u=D(()=>{x();b=R(m(),1)});import{basename as S}from"path";function wq(q,J){let[$,z]=O.useState([]),[Q,Z]=O.useState([]),[A,M]=O.useState(!0),[U,H]=O.useState(0),V=q.join(`
|
|
2
|
-
`),X=J.join(`
|
|
3
|
-
`);O.useEffect(()=>{let v=!1;M(!0);async function G(){let N=V?V.split(`
|
|
4
|
-
`):[],_=X?X.split(`
|
|
5
|
-
`):[],E=(await Promise.all(_.map((B)=>h(B)))).flat(),P=w(E).filter((B)=>!N.includes(B)).sort((B,C)=>S(B).localeCompare(S(C))),k=w([...N,...P]),Yq=await Promise.all(k.map(async(B)=>{let[C,g,Aq]=await Promise.all([j(B),y(B),f(B)]);return{root:B,name:S(B),branch:Aq,files:C?p(C,g):[],hunks:g}}));if(!v)z(Yq),Z(k),M(!1)}return G().catch(()=>{if(!v)z([]),Z([]),M(!1)}),()=>{v=!0}},[V,X,U]);let W=O.useCallback(()=>H((v)=>v+1),[]);return{groups:$,roots:Q,loading:A,refresh:W}}var O;var Hq=D(()=>{Uq();x();u();O=R(m(),1)});import{basename as c}from"path";function n(q,J,$){if(q===0)return"";return J.join("")+($?vq:a)}function d(q){return{name:q,dirs:new Map,files:[]}}function Gq(q){let J=d("");for(let $ of q){let z=$.path.split("/");z.pop();let Q=J;for(let Z of z){let A=Q.dirs.get(Z);if(!A)A=d(Z),Q.dirs.set(Z,A);Q=A}Q.files.push($)}return J}function l(q,J,$,z,Q,Z,A,M){let U=[...q.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...q.files].sort((X,W)=>c(X.path).localeCompare(c(W.path))),V=H.length>0;for(let X=0;X<U.length;X++){let W=U[X],v=W.name,G=J?`${J}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let P=W.dirs.values().next().value;v=`${v}/${P.name}`,G=`${G}/${P.name}`,W=P}let N=X===U.length-1&&!V,_=`${Q}\x00${G}`,E=z.has(_);if(A.push({kind:"dir",key:_,label:v,depth:$,collapsed:E,guides:n($,M,N)}),!E){let P=$>=1?[...M,N?Bq:a]:M;l(W,G,$+1,z,Q,Z,A,P)}}for(let X=0;X<H.length;X++){let W=H[X],v=X===H.length-1;A.push({kind:"file",file:W,root:Q,hunks:Z(W.path),depth:$,guides:n($,M,v)})}}function Nq(q,J){let $=[],z=q.length>1,Q=0;for(let Z of q){let A=z?1:0;if(z){let M=J.has(Z.root);if($.push({kind:"group",key:Z.root,name:Z.name,meta:`${Z.files.length} ${r(Z.files.length,"file")} changed`,branch:Z.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}l(Gq(Z.files),"",A,J,Z.root,(M)=>Z.hunks.get(M)??[],$,[])}return $}var a="│ ",vq="└ ",Bq=" ";var i=D(()=>{Vq()});function hq(q){let J=0;for(let $=0;$<q.length;$++)J=Math.imul(J,31)+q.charCodeAt($)|0;return T[Math.abs(J)%T.length]}function o(q){let J=T.length;return T[(q%J+J)%J]}var T;var s=D(()=>{T=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function $q(){let q=Zq();return{enabled:q,fileIcon:(J)=>q?Jq(J):"",folderIcon:(J)=>q?J?qq:e:"",repoIcon:q?Oq:"",branchIcon:q?Fq:"",pointer:I.pointer}}var Oq="",Fq="";var zq=D(()=>{t();_q();Pq()});import{basename as Lq}from"path";function Dq(q,J,$){if(q<=$)return{start:0,end:q};let z=Math.max(0,J-Math.floor($/2)),Q=z+$;if(Q>q)Q=q,z=Math.max(0,Q-$);return{start:z,end:Q}}function JJ(q){return q.flatMap((J)=>J.files)}function ZJ({rows:q,selectedIndex:J,maxVisible:$,width:z,statusByPath:Q,alignFiles:Z}){let A=Wq.useMemo($q,[]),M=q.length;if(M===0)return Y(K,{dimColor:!0,children:"No changed files"});let{start:U,end:H}=Dq(M,J,$),V=[];for(let X=U;X<H;X++){let W=q[X];V.push(Y(kq,{row:W,isSelected:X===J,width:z,glyphs:A,alignFiles:Z,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return L(F,{flexDirection:"column",children:[U>0&&Y(K,{dimColor:!0,children:` ↑ ${U} more`}),V,H<M&&Y(K,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function kq({row:q,isSelected:J,width:$,glyphs:z,statusColor:Q,alignFiles:Z}){if(q.kind==="group"){let N=J?`${z.pointer} `:" ",_=q.collapsed?I.triangleRight:I.triangleDown;return L(K,{dimColor:!J,bold:J,children:[`${N}${_} `,z.repoIcon&&Y(K,{color:o(q.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),q.name," ",Y(K,{bold:!0,children:q.meta}),q.branch&&Y(K,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${q.branch}`})]})}let A=J?`${z.pointer} `:" ",M=q.guides,U=2+q.depth*2;if(q.kind==="dir"){let N=q.collapsed?I.triangleRight:I.triangleDown,_=z.folderIcon(!q.collapsed),E=_?`${_} `:"",P=Math.max(4,$-U-2-(E?2:0)-1),k=Mq(q.label,P);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),`${N} ${E}${k}`]})}),Y(F,{flexGrow:1})]})}let H=z.fileIcon(q.file.path),V=H?`${H} `:"",X=Z?" ":"",W=q.file.isBinary||q.file.isLargeFile||q.file.renamedFrom?9:0,v=Math.max(4,$-U-X.length-(V?2:0)-W-1),G=Xq(Lq(q.file.path),v);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),X,V,Q&&!J?Y(K,{color:Q,children:G}):G]})}),Y(F,{flexGrow:1}),Y(F,{flexShrink:0,children:Y(Cq,{file:q.file,isSelected:J})})]})}function Cq({file:q,isSelected:J}){if(q.isBinary)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"binary"});if(q.isLargeFile)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"large"});if(q.renamedFrom)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"renamed"});return null}var Wq;var Tq=D(()=>{t();Iq();Eq();s();i();zq();Qq();Wq=R(m(),1)});
|
|
6
|
-
export{wq as Rf,Hq as Sf,$q as Tf,zq as Uf,hq as Vf,s as Wf,Nq as Xf,i as Yf,JJ as Zf,ZJ as _f,Tq as $f};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{xg as d,yg as Vq}from"./cli-0.6.11-p8kmd5p7.mjs";import{YR as Oq,qQ as a,sQ as yq,wR as l}from"./cli-0.6.11-yzqbg956.mjs";import{AZ as $,LX as Zq,LZ as Gq,eZ as T,gZ as R}from"./cli-0.6.11-1n2a62nt.mjs";import{D0 as t,F0 as v,I0 as e}from"./cli-0.6.11-a2ansh6y.mjs";import{R1 as P,S1 as N,T1 as S}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as Yq}from"./cli-0.6.11-gwzwm546.mjs";import{p2 as u,q2 as Aq}from"./cli-0.6.11-8n8a5y9t.mjs";import{A_ as s,d_ as j,v8 as G,x8 as o}from"./cli-0.6.11-ka6t3b6m.mjs";import{ega as w,fga as r}from"./cli-0.6.11-887jj6fe.mjs";import{Xha as L,_ha as n}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as c,wia as Xq}from"./cli-0.6.11-5d4nqcar.mjs";import{noa as i,qka as f}from"./cli-0.6.11-n46bkq7s.mjs";import{Qpa as I,Upa as h}from"./cli-0.6.11-2m6rny10.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
|
|
2
|
-
Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
|
|
3
|
-
export{mq as vg,Bq as wg};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{BM as f,DM as z,LP as _,Oj as J,ty as L,uy as k}from"./cli-0.6.11-yzqbg956.mjs";import{D_ as F,I_ as A}from"./cli-0.6.11-ka6t3b6m.mjs";import{$fa as h,Zfa as Y,aga as H,bga as X}from"./cli-0.6.11-grhakq5f.mjs";import{Uga as W,Xga as M}from"./cli-0.6.11-z9by0x32.mjs";import{Xha as D,_ha as R}from"./cli-0.6.11-ar9we9b3.mjs";import{dma as q,noa as C}from"./cli-0.6.11-n46bkq7s.mjs";import{Upa as V}from"./cli-0.6.11-2m6rny10.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
-
`);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
-
|
|
4
|
-
Return JSON with a single "title" field.
|
|
5
|
-
|
|
6
|
-
Good examples:
|
|
7
|
-
{"title": "Fix login button on mobile"}
|
|
8
|
-
{"title": "Add OAuth authentication"}
|
|
9
|
-
{"title": "Debug failing CI tests"}
|
|
10
|
-
{"title": "Refactor API client error handling"}
|
|
11
|
-
|
|
12
|
-
Bad (too vague): {"title": "Code changes"}
|
|
13
|
-
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
-
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
|
|
15
|
-
export{S as ie,T as je,I as ke};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Qca as L,mea as B,uea as N,vca as A}from"./cli-0.6.11-ka6t3b6m.mjs";import{Xha as z,_ha as K}from"./cli-0.6.11-ar9we9b3.mjs";import{Tpa as I,Upa as J}from"./cli-0.6.11-2m6rny10.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
|
|
2
|
-
export{P as vT,Q as wT,R as xT,H as yT,U as zT,V as AT,W as BT};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ai as C,yi as H}from"./cli-0.6.11-asrrshp1.mjs";import{Bi as k,Ci as y}from"./cli-0.6.11-y9amtdt3.mjs";import{g2 as X,i2 as Y,n2 as R}from"./cli-0.6.11-eacagr72.mjs";import{p2 as G,q2 as m}from"./cli-0.6.11-8n8a5y9t.mjs";import{T2 as w,U2 as E,j6 as B,y6 as f}from"./cli-0.6.11-9dm066ew.mjs";import{Qca as x,mea as Q,sca as S,uea as D,vca as j}from"./cli-0.6.11-ka6t3b6m.mjs";import{Sga as V,Tga as b}from"./cli-0.6.11-jysha43m.mjs";import{Apa as I,ipa as W}from"./cli-0.6.11-2qd0rf15.mjs";import{Upa as Z}from"./cli-0.6.11-2m6rny10.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
|
|
2
|
-
export{i as vi,A as wi};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{An as r,Bn as Xq,En as d,Fn as Yq,jE as x,kE as s,lE as C,nE as n,oE as $,qE as Zq,rF as o,tF as Mq,wn as E,xn as Uq}from"./cli-0.6.11-yzqbg956.mjs";import{AZ as a,LX as Jq,LZ as Qq,eZ as N,gZ as U,kZ as V}from"./cli-0.6.11-1n2a62nt.mjs";import{Q1 as u,R1 as J,S1 as X,T1 as g}from"./cli-0.6.11-tzg5rhz9.mjs";import{U1 as zq}from"./cli-0.6.11-gwzwm546.mjs";import{Uga as w,Xga as qq}from"./cli-0.6.11-z9by0x32.mjs";import{Qpa as i,Upa as t}from"./cli-0.6.11-2m6rny10.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
|
|
2
|
-
| \\ \\
|
|
3
|
-
| NEW TERMS \\__\\
|
|
4
|
-
| |
|
|
5
|
-
| ---------- |
|
|
6
|
-
| ---------- |
|
|
7
|
-
| ---------- |
|
|
8
|
-
| ---------- |
|
|
9
|
-
| ---------- |
|
|
10
|
-
| |
|
|
11
|
-
|______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
|
|
12
|
-
export{kq as ic,_q as jc,Aq as kc};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{G0 as k,I0 as w}from"./cli-0.6.11-a2ansh6y.mjs";import{e6 as j,y6 as v}from"./cli-0.6.11-9dm066ew.mjs";import{Ffa as h,Gfa as s,ufa as d}from"./cli-0.6.11-prd8de37.mjs";import{Mia as q}from"./cli-0.6.11-bk2qdg9h.mjs";import{Upa as p}from"./cli-0.6.11-2m6rny10.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
-
export{x as _U,O as $U,P as aV,Q as bV,R as cV,U as dV,W as eV,X as fV,z as gV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Xa as d}from"./cli-0.6.11-p24pya2r.mjs";import{Bj as o,FB as I,Fl as s,GB as Jj,LP as Qj,Nt as k,Qt as V,Sl as y,Wt as zj,Xl as t,YR as Vj,Yt as Bj,aR as m,bR as S,cR as A,eS as F,iP as f,jm as E,kl as P,km as e,kw as D,lk as $,ll as R,lw as Hj,mk as n,nR as c,nu as w,ou as C,sS as Xj,sk as v,tk as r,tu as Gj,uR as p,us as h,vR as X,ws as qj,zj as O}from"./cli-0.6.11-yzqbg956.mjs";import{JT as W,XT as jj}from"./cli-0.6.11-t66hga70.mjs";import{TV as x,WV as Kj}from"./cli-0.6.11-nwgarns7.mjs";import{K4 as T,R4 as u}from"./cli-0.6.11-9dm066ew.mjs";import{ega as Z,fga as i}from"./cli-0.6.11-887jj6fe.mjs";import{Xha as b,_ha as l}from"./cli-0.6.11-ar9we9b3.mjs";import{Bla as M,Dla as N,Jna as K,noa as g,qka as U,tka as _,yka as Y}from"./cli-0.6.11-n46bkq7s.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Bj();Kj();i();l();qj();Qj();u();t();n();Jj();Vj();jj();Hj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=D().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!w(Q))C(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
-
export{aj as ua,Pj as va,Rj as wa,Ej as xa,gj as ya,lj as za};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zc as K,_c as Y}from"./cli-0.6.11-tjkxcvmn.mjs";import{$k as B,_k as G,dl as U,el as V,ip as H,jp as W,lL as J,tL as X}from"./cli-0.6.11-yzqbg956.mjs";import{Rpa as q,Upa as v}from"./cli-0.6.11-2m6rny10.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
|
|
2
|
-
export{P as Vc,C as Wc,A as Xc,D as Yc};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{$x as B,LP as d,by as U,uO as L,vO as w,xP as N}from"./cli-0.6.11-yzqbg956.mjs";import{L_ as z,S_ as F,Vaa as P}from"./cli-0.6.11-ka6t3b6m.mjs";import{Lea as H,Rea as v}from"./cli-0.6.11-mjdvh04x.mjs";import{Upa as j}from"./cli-0.6.11-2m6rny10.mjs";async function V(R){let{messages:I,getAppState:O,options:{mainLoopModel:J,tools:Y,agentDefinitions:Z,customSystemPrompt:W,appendSystemPrompt:X}}=R,Q=N(I),{messages:K}=await B(Q),h=O();return L(K,J,async()=>h.toolPermissionContext,Y,Z,void 0,{options:{customSystemPrompt:W,appendSystemPrompt:X}},void 0,Q)}async function g(R,I){let O=await V(I);return{type:"text",value:b(O)}}function b(R){let{categories:I,totalTokens:O,rawMaxTokens:J,percentage:Y,model:Z,memoryFiles:W,mcpTools:X,agents:Q,skills:K}=R,h=`## Context Usage
|
|
2
|
-
|
|
3
|
-
`;h+=`**Model:** ${Z}
|
|
4
|
-
`,h+=`**Tokens:** ${H(O)} / ${H(J)} (${Y}%)
|
|
5
|
-
`,h+=`
|
|
6
|
-
`;let _=I.filter((q)=>q.tokens>0&&q.name!=="Free space"&&q.name!=="Autocompact buffer");if(_.length>0){h+=`### Estimated usage by category
|
|
7
|
-
|
|
8
|
-
`,h+=`| Category | Tokens | Percentage |
|
|
9
|
-
`,h+=`|----------|--------|------------|
|
|
10
|
-
`;for(let G of _){let $=(G.tokens/J*100).toFixed(1);h+=`| ${G.name} | ${H(G.tokens)} | ${$}% |
|
|
11
|
-
`}let q=I.find((G)=>G.name==="Free space");if(q&&q.tokens>0){let G=(q.tokens/J*100).toFixed(1);h+=`| Free space | ${H(q.tokens)} | ${G}% |
|
|
12
|
-
`}let E=I.find((G)=>G.name==="Autocompact buffer");if(E&&E.tokens>0){let G=(E.tokens/J*100).toFixed(1);h+=`| Autocompact buffer | ${H(E.tokens)} | ${G}% |
|
|
13
|
-
`}h+=`
|
|
14
|
-
`}if(X.length>0){h+=`### MCP Tools
|
|
15
|
-
|
|
16
|
-
`,h+=`| Tool | Server | Tokens |
|
|
17
|
-
`,h+=`|------|--------|--------|
|
|
18
|
-
`;for(let q of X)h+=`| ${q.name} | ${q.serverName} | ${H(q.tokens)} |
|
|
19
|
-
`;h+=`
|
|
20
|
-
`}if(Q.length>0){h+=`### Custom Agents
|
|
21
|
-
|
|
22
|
-
`,h+=`| Agent Type | Source | Tokens |
|
|
23
|
-
`,h+=`|------------|--------|--------|
|
|
24
|
-
`;for(let q of Q){let E;switch(q.source){case"projectSettings":E="Project";break;case"userSettings":E="User";break;case"localSettings":E="Local";break;case"flagSettings":E="Flag";break;case"policySettings":E="Policy";break;case"plugin":E="Plugin";break;case"built-in":E="Built-in";break;default:E=String(q.source)}h+=`| ${q.agentType} | ${E} | ${H(q.tokens)} |
|
|
25
|
-
`}h+=`
|
|
26
|
-
`}if(W.length>0){h+=`### Memory Files
|
|
27
|
-
|
|
28
|
-
`,h+=`| Type | Path | Tokens |
|
|
29
|
-
`,h+=`|------|------|--------|
|
|
30
|
-
`;for(let q of W)h+=`| ${q.type} | ${q.path} | ${H(q.tokens)} |
|
|
31
|
-
`;h+=`
|
|
32
|
-
`}if(K&&K.tokens>0&&K.skillFrontmatter.length>0){h+=`### Skills
|
|
33
|
-
|
|
34
|
-
`,h+=`| Skill | Source | Tokens |
|
|
35
|
-
`,h+=`|-------|--------|--------|
|
|
36
|
-
`;for(let q of K.skillFrontmatter)h+=`| ${q.name} | ${z(q.source)} | ${H(q.tokens)} |
|
|
37
|
-
`;h+=`
|
|
38
|
-
`}return h}var A=j(()=>{U();w();v();d();F();P()});
|
|
39
|
-
export{V as ih,g as jh,A as kh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$V as YJ,dW as DJ,hW as vJ,iW as c,jW as SJ,rW as ZJ}from"./cli-0.6.11-r03wa9n7.mjs";import{H1 as CJ,O1 as TJ}from"./cli-0.6.11-g4kp283f.mjs";import{Oba as S,Qba as yJ,X8 as xJ,a_ as jJ,mea as p,t9 as NJ,uea as wJ,w8 as OJ,x8 as FJ}from"./cli-0.6.11-ka6t3b6m.mjs";import{$fa as VJ,Zfa as R,aga as w,bga as XJ}from"./cli-0.6.11-grhakq5f.mjs";import{Aha as v,Bha as y,Fha as JJ,Xha as G,_ha as QJ}from"./cli-0.6.11-ar9we9b3.mjs";import{pia as W,qia as C,wia as e}from"./cli-0.6.11-5d4nqcar.mjs";import{Aia as I,Cia as t,Mia as a,zia as s}from"./cli-0.6.11-bk2qdg9h.mjs";import{dma as i,mka as r,nka as MJ,noa as m,qka as d,xna as L}from"./cli-0.6.11-n46bkq7s.mjs";import{Upa as T,Vpa as BJ}from"./cli-0.6.11-2m6rny10.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.6.11-4fb806v3.mjs"),import("./detection-0.6.11-x12e4v9d.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
-
export{HQ as FT,UQ as GT,BQ as HT,fJ as IT,OQ as JT,xQ as KT,CQ as LT,_J as MT,E as NT,bJ as OT,vQ as PT,O as QT,j as RT,SQ as ST,h as TT,AQ as UT,zQ as VT,MQ as WT,HJ as XT,n as YT,UJ as ZT,oQ as _T,zJ as $T,nQ as aU,u as bU,F as cU,H as dU,kJ as eU,rJ as fU,kQ as gU,rQ as hU,dQ as iU,iQ as jU,mQ as kU,dJ as lU,sQ as mU,tQ as nU,aQ as oU,eQ as pU,JV as qU,QV as rU,sJ as sU,tJ as tU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BL as Q,CL as $}from"./cli-0.6.11-yzqbg956.mjs";import{$ja as W,Zia as V,_ia as P,aka as E}from"./cli-0.6.11-n46bkq7s.mjs";import{Upa as L}from"./cli-0.6.11-2m6rny10.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
|
|
2
|
-
export{v as Zc,C as _c};
|