@claudiolabs/claudin 1.1.19 → 1.1.21
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/README.md +15 -0
- package/dist/chunks/AgentTool-1.1.21-enrxqdsb.mjs +1 -0
- package/dist/chunks/App-1.1.21-x1hrya65.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.21-q3rfm86r.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.21-djjt8wjf.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.21-8rxzv91c.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.21-2mv1yf69.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.21-qk8b7h6c.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.21-26vykmpr.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.21-3xgr69zd.mjs +6 -0
- package/dist/chunks/Doctor-1.1.21-yv90ebbh.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.21-xbb9damr.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.21-vghjz16w.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.21-s80vswk4.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.21-vcrwctz5.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.21-dx1ga7w0.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.21-v9s07bhb.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.21-r9zcajjp.mjs +1 -0
- package/dist/chunks/REPL-1.1.21-6jn26haf.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.21-s9pjbbba.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.21-e2efafxn.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.21-sbtxsq9w.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.21-jbdthnzv.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.21-rg1e4ya1.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.21-th8y0yfa.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.21-ns92ypnd.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.21-tk81657g.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.21-8b6473mc.mjs +1 -0
- package/dist/chunks/add-dir-1.1.21-y2qcrtjr.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.21-0c6btjcc.mjs +1 -0
- package/dist/chunks/agents-1.1.21-1t7q92hk.mjs +3 -0
- package/dist/chunks/agents-1.1.21-jppr4jq8.mjs +110 -0
- package/dist/chunks/api-1.1.21-g8sbqk15.mjs +1 -0
- package/dist/chunks/asciicast-1.1.21-bvqngtzz.mjs +1 -0
- package/dist/chunks/assistant-1.1.21-1zc3dwty.mjs +1 -0
- package/dist/chunks/auth-1.1.21-65a9bbnh.mjs +1 -0
- package/dist/chunks/auth-1.1.21-f0ghh3mq.mjs +1 -0
- package/dist/chunks/autoMode-1.1.21-n2a8t9t3.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.21-9fx83p2j.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.21-52ky9ghk.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.21-j6t4h3jn.mjs +1 -0
- package/dist/chunks/branch-1.1.21-71gampws.mjs +4 -0
- package/dist/chunks/bridge-1.1.21-d1gzs1zz.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.21-9pps44qe.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.21-50r8crvp.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.21-e92yewh9.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.21-ckngyn7x.mjs +1 -0
- package/dist/chunks/btw-1.1.21-aqj4z7z7.mjs +1 -0
- package/dist/chunks/buddy-1.1.21-74rtch74.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.21-a8ne39rt.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.21-pw082ztb.mjs +4 -0
- package/dist/chunks/caches-1.1.21-7s65hxx4.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.21-0fp1r8xs.mjs +1 -0
- package/dist/chunks/claudemd-1.1.21-q4k3d1km.mjs +1 -0
- package/dist/chunks/clear-1.1.21-9jjttvr0.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.21-jr9rxdmx.mjs +1 -0
- package/dist/chunks/cli-1.1.21-03kdy8xc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-04brya8b.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0dp6e2at.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0etv5x2s.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0g1a3shp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0mn9qshg.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0n54q1mb.mjs +12 -0
- package/dist/chunks/cli-1.1.21-0sqcznka.mjs +4 -0
- package/dist/chunks/cli-1.1.21-0w4y6zch.mjs +2 -0
- package/dist/chunks/cli-1.1.21-13kr6en7.mjs +2 -0
- package/dist/chunks/cli-1.1.21-15f55e7j.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1a9968t0.mjs +3 -0
- package/dist/chunks/cli-1.1.21-1h90n4wy.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1hdfkyjv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1mhmk0z3.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1mxg753a.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1y508j57.mjs +2 -0
- package/dist/chunks/cli-1.1.21-27a8sw98.mjs +2 -0
- package/dist/chunks/cli-1.1.21-29jp27ks.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2b91fkp9.mjs +66 -0
- package/dist/chunks/cli-1.1.21-2cj3wv9s.mjs +3 -0
- package/dist/chunks/cli-1.1.21-2cqbdmfj.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2gsy9rkt.mjs +7 -0
- package/dist/chunks/cli-1.1.21-2nezc8rm.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2txzm68v.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2zvrsnnb.mjs +15 -0
- package/dist/chunks/cli-1.1.21-36nmjsvc.mjs +3 -0
- package/dist/chunks/cli-1.1.21-3g5qq5vn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-3n2szerd.mjs +2 -0
- package/dist/chunks/cli-1.1.21-3v1e2mge.mjs +3 -0
- package/dist/chunks/cli-1.1.21-3x0d0qkq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-4010086n.mjs +39 -0
- package/dist/chunks/cli-1.1.21-4jzagkc6.mjs +2 -0
- package/dist/chunks/cli-1.1.21-4ka4k9j1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-4s3mz86q.mjs +2 -0
- package/dist/chunks/cli-1.1.21-510h0rfd.mjs +2 -0
- package/dist/chunks/cli-1.1.21-5bxzgpbd.mjs +16 -0
- package/dist/chunks/cli-1.1.21-5jkvz9tr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-5srfgw0e.mjs +2 -0
- package/dist/chunks/cli-1.1.21-5znk8g89.mjs +2 -0
- package/dist/chunks/cli-1.1.21-61eyxvr8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-6drn6rpn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-71yrrgxv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-72p8ma2g.mjs +2 -0
- package/dist/chunks/cli-1.1.21-76ttz1tt.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7bq44n89.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7fymk48z.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7gxr15wj.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7q6ajew6.mjs +6 -0
- package/dist/chunks/cli-1.1.21-8022a544.mjs +3 -0
- package/dist/chunks/cli-1.1.21-811zr6vq.mjs +15 -0
- package/dist/chunks/cli-1.1.21-87rs5rvq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-89hqsfpf.mjs +2 -0
- package/dist/chunks/cli-1.1.21-8db7fdfr.mjs +133 -0
- package/dist/chunks/cli-1.1.21-8f3dmt8c.mjs +2 -0
- package/dist/chunks/cli-1.1.21-8mbdp47n.mjs +34 -0
- package/dist/chunks/cli-1.1.21-8p4zm65z.mjs +4 -0
- package/dist/chunks/cli-1.1.21-8w2yv4xp.mjs +3 -0
- package/dist/chunks/cli-1.1.21-92zh5twv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-93zvwec9.mjs +6 -0
- package/dist/chunks/cli-1.1.21-9fnv418t.mjs +24 -0
- package/dist/chunks/cli-1.1.21-9jq126pc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-9za692z5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-a6pwx2r1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-aa0dfxt3.mjs +17 -0
- package/dist/chunks/cli-1.1.21-admbc6bh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-adykpnkk.mjs +2 -0
- package/dist/chunks/cli-1.1.21-an07xgtv.mjs +25 -0
- package/dist/chunks/cli-1.1.21-arjp8fch.mjs +50 -0
- package/dist/chunks/cli-1.1.21-as9g92fa.mjs +4 -0
- package/dist/chunks/cli-1.1.21-atvca4b4.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ayg2p1x9.mjs +133 -0
- package/dist/chunks/cli-1.1.21-b7q4e2tp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-b7y0x2mz.mjs +3 -0
- package/dist/chunks/cli-1.1.21-b92n11f5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-badssmqg.mjs +25 -0
- package/dist/chunks/cli-1.1.21-bbnxyfz6.mjs +4 -0
- package/dist/chunks/cli-1.1.21-bc6x1hhj.mjs +2 -0
- package/dist/chunks/cli-1.1.21-bjdtgm9x.mjs +2 -0
- package/dist/chunks/cli-1.1.21-bp86y1rn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-c27qrh9k.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cb82p9ss.mjs +24 -0
- package/dist/chunks/cli-1.1.21-ccarwr2t.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cdk96yzq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cgspbjjg.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cqsmyvsx.mjs +6 -0
- package/dist/chunks/cli-1.1.21-dvkgw1dj.mjs +4 -0
- package/dist/chunks/cli-1.1.21-e28mvxq4.mjs +2 -0
- package/dist/chunks/cli-1.1.21-e4qvgw9g.mjs +4 -0
- package/dist/chunks/cli-1.1.21-e8cbfmn6.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ekphtr04.mjs +6 -0
- package/dist/chunks/cli-1.1.21-eqmp9rz1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-er4j34m5.mjs +4 -0
- package/dist/chunks/cli-1.1.21-eray52nd.mjs +5426 -0
- package/dist/chunks/cli-1.1.21-ev8srpeg.mjs +18 -0
- package/dist/chunks/cli-1.1.21-exwxjwrp.mjs +17 -0
- package/dist/chunks/cli-1.1.21-f3caatgb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-fbxz5jg5.mjs +21 -0
- package/dist/chunks/cli-1.1.21-fdf1j366.mjs +3 -0
- package/dist/chunks/cli-1.1.21-fn4xyb5w.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ftenq1jj.mjs +24 -0
- package/dist/chunks/cli-1.1.21-fyryzam5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-g2fr5c6z.mjs +3 -0
- package/dist/chunks/cli-1.1.21-g6wtm4qg.mjs +206 -0
- package/dist/chunks/cli-1.1.21-g7ve83cr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-g9rmmx1z.mjs +6 -0
- package/dist/chunks/cli-1.1.21-gg6ksnw9.mjs +2 -0
- package/dist/chunks/cli-1.1.21-gyh1fxbr.mjs +20 -0
- package/dist/chunks/cli-1.1.21-h2y2n4jq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-h82yh3wp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-hdc9e0dr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-hjkr35qk.mjs +2 -0
- package/dist/chunks/cli-1.1.21-hmex7wtk.mjs +4 -0
- package/dist/chunks/cli-1.1.21-hn93q5ch.mjs +1 -0
- package/dist/chunks/cli-1.1.21-j0qbp8ym.mjs +2 -0
- package/dist/chunks/cli-1.1.21-j5f9b05q.mjs +2 -0
- package/dist/chunks/cli-1.1.21-jkqtb9j1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-jmrjkgt7.mjs +2 -0
- package/dist/chunks/cli-1.1.21-jqy3a4ze.mjs +9 -0
- package/dist/chunks/cli-1.1.21-kc7af745.mjs +5 -0
- package/dist/chunks/cli-1.1.21-kf8s641e.mjs +2 -0
- package/dist/chunks/cli-1.1.21-kkaftzqq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-krwdkyza.mjs +18 -0
- package/dist/chunks/cli-1.1.21-kv15mvd0.mjs +3 -0
- package/dist/chunks/cli-1.1.21-m53y3ydn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-m7dy7yxc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-m84cxaww.mjs +2 -0
- package/dist/chunks/cli-1.1.21-mqxc9x6p.mjs +3 -0
- package/dist/chunks/cli-1.1.21-mysvm055.mjs +8 -0
- package/dist/chunks/cli-1.1.21-n00fkex6.mjs +15 -0
- package/dist/chunks/cli-1.1.21-nh0wz4ab.mjs +2 -0
- package/dist/chunks/cli-1.1.21-nqzn2wyp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ns0xhhjk.mjs +2 -0
- package/dist/chunks/cli-1.1.21-pbxjvmxd.mjs +2 -0
- package/dist/chunks/cli-1.1.21-phnkc3q1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-pq9par9t.mjs +2 -0
- package/dist/chunks/cli-1.1.21-pqweg9t6.mjs +3 -0
- package/dist/chunks/cli-1.1.21-q2k4myze.mjs +2 -0
- package/dist/chunks/cli-1.1.21-q2xyk8fc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qgc6dd5n.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qj7gkh71.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qs47skyh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qvxw9ea2.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qxx08ev5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qz8ykx4a.mjs +2 -0
- package/dist/chunks/cli-1.1.21-r90yap4s.mjs +4 -0
- package/dist/chunks/cli-1.1.21-rb0ytqxh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-rtcccwys.mjs +2 -0
- package/dist/chunks/cli-1.1.21-rvm9rmen.mjs +2 -0
- package/dist/chunks/cli-1.1.21-rwr3npv8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-s076czd6.mjs +60 -0
- package/dist/chunks/cli-1.1.21-sa93ge05.mjs +2 -0
- package/dist/chunks/cli-1.1.21-sk1w1xc8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-sqrqvfx9.mjs +2 -0
- package/dist/chunks/cli-1.1.21-srp2gqhn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-st3azfy2.mjs +2 -0
- package/dist/chunks/cli-1.1.21-syphtp6b.mjs +2 -0
- package/dist/chunks/cli-1.1.21-t4e7t3gb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-tf5jnyct.mjs +2 -0
- package/dist/chunks/cli-1.1.21-tgkmdth7.mjs +3 -0
- package/dist/chunks/cli-1.1.21-tjgcqqx5.mjs +12 -0
- package/dist/chunks/cli-1.1.21-v8edsbtk.mjs +24 -0
- package/dist/chunks/cli-1.1.21-vb6krv5p.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vbewc9m8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vgqvfdjj.mjs +45 -0
- package/dist/chunks/cli-1.1.21-vhz2g6dh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vpc12nrb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vqyps5tc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vtnh7am3.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vtrbe9na.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vyzdf2h8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-w17d43nx.mjs +2 -0
- package/dist/chunks/cli-1.1.21-wermyahx.mjs +2 -0
- package/dist/chunks/cli-1.1.21-wq125rgf.mjs +2 -0
- package/dist/chunks/cli-1.1.21-wwrjy8z7.mjs +2 -0
- package/dist/chunks/cli-1.1.21-x34spqyp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-x652vc6g.mjs +7 -0
- package/dist/chunks/cli-1.1.21-xa36je2k.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xc1ka519.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xds4bha6.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xg5fsk6h.mjs +6 -0
- package/dist/chunks/cli-1.1.21-xkd51fv8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xngg1p8f.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xrh2trhz.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xsjr5sq9.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xtdgxynh.mjs +9 -0
- package/dist/chunks/cli-1.1.21-xtysnd33.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xx8dx3jd.mjs +4 -0
- package/dist/chunks/cli-1.1.21-y0d1dgzh.mjs +58 -0
- package/dist/chunks/cli-1.1.21-ybbcrjyr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ym854mnb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ymepfykz.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ypkp1djh.mjs +5 -0
- package/dist/chunks/cli-1.1.21-yt2eqsfh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ytgz6a2f.mjs +2 -0
- package/dist/chunks/cli-1.1.21-yx5x54tp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-yxj3mby7.mjs +2 -0
- package/dist/chunks/cli-1.1.21-yzg6k72r.mjs +2 -0
- package/dist/chunks/cli-1.1.21-z008y1nv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-z3qkwz5y.mjs +2 -0
- package/dist/chunks/cli-1.1.21-z6tzkkrz.mjs +2 -0
- package/dist/chunks/cli-1.1.21-zmkcqsqx.mjs +42 -0
- package/dist/chunks/cli-1.1.21-zyz9s3k0.mjs +3 -0
- package/dist/chunks/client-1.1.21-2z9qpd9x.mjs +1 -0
- package/dist/chunks/color-1.1.21-hx6pdrvg.mjs +1 -0
- package/dist/chunks/compact-1.1.21-nwq0kqfv.mjs +3 -0
- package/dist/chunks/config-1.1.21-6a9bh364.mjs +1 -0
- package/dist/chunks/config-1.1.21-mk64wy1s.mjs +1 -0
- package/dist/chunks/constants-1.1.21-6t9m2kc1.mjs +1 -0
- package/dist/chunks/context-1.1.21-0q6bzccr.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.21-4hsfsph7.mjs +1 -0
- package/dist/chunks/conversation-1.1.21-7b7x9kge.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.21-h7jcrbjr.mjs +1 -0
- package/dist/chunks/copy-1.1.21-733m4ede.mjs +9 -0
- package/dist/chunks/cost-1.1.21-wygsny1s.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.21-xbfgy7b5.mjs +1 -0
- package/dist/chunks/createSession-1.1.21-mz06dkby.mjs +1 -0
- package/dist/chunks/debug-1.1.21-1mr7a9zd.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.21-vax6c0kp.mjs +1534 -0
- package/dist/chunks/desktop-1.1.21-pgp4t084.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.21-4kgqz7gj.mjs +1 -0
- package/dist/chunks/detection-1.1.21-fpdqjz2w.mjs +1 -0
- package/dist/chunks/diff-1.1.21-eh8phe15.mjs +1 -0
- package/dist/chunks/doctor-1.1.21-qsk3dp6v.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.21-vk3kxvax.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.21-hhk47ba3.mjs +1 -0
- package/dist/chunks/effort-1.1.21-ekeecb10.mjs +13 -0
- package/dist/chunks/engine-1.1.21-d6pnpzs9.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.21-45xt8y53.mjs +1 -0
- package/dist/chunks/envUtils-1.1.21-602cy0p0.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.21-sdkr95ba.mjs +1 -0
- package/dist/chunks/environments-1.1.21-xc2zd8j5.mjs +1 -0
- package/dist/chunks/errors-1.1.21-zpsc24qr.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.21-wktrh3tf.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.21-h0jd5fma.mjs +1 -0
- package/dist/chunks/exit-1.1.21-s6bxy0s5.mjs +1 -0
- package/dist/chunks/explorer-1.1.21-yecddj8m.mjs +1 -0
- package/dist/chunks/export-1.1.21-b5aa7w8q.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.21-ccmxd1ga.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.21-jysky3gv.mjs +1 -0
- package/dist/chunks/fast-1.1.21-wdpp74vz.mjs +1 -0
- package/dist/chunks/feedback-1.1.21-gc3be80r.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.21-cs1b38yg.mjs +1 -0
- package/dist/chunks/git-1.1.21-ncfwpbjz.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.21-qya4z4p9.mjs +1 -0
- package/dist/chunks/goal-1.1.21-a70wv2cb.mjs +4 -0
- package/dist/chunks/growthbook-1.1.21-hmscgg3x.mjs +1 -0
- package/dist/chunks/headless-1.1.21-dwdnz8rt.mjs +2 -0
- package/dist/chunks/heapdump-1.1.21-tvazwzf0.mjs +6 -0
- package/dist/chunks/help-1.1.21-c9hbdjta.mjs +1 -0
- package/dist/chunks/hookChains-1.1.21-acyv2xry.mjs +3 -0
- package/dist/chunks/hooks-1.1.21-cfmmnnah.mjs +1 -0
- package/dist/chunks/hooks-1.1.21-w12e5h5b.mjs +79 -0
- package/dist/chunks/ide-1.1.21-wywpj723.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.21-yhb521r3.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.21-kk58cty9.mjs +1 -0
- package/dist/chunks/index-1.1.21-3b6xa2yf.mjs +1 -0
- package/dist/chunks/index-1.1.21-3d6h7ke1.mjs +1 -0
- package/dist/chunks/index-1.1.21-57kd6ptp.mjs +1 -0
- package/dist/chunks/index-1.1.21-593vrygw.mjs +23 -0
- package/dist/chunks/index-1.1.21-5fmfkm8y.mjs +9 -0
- package/dist/chunks/index-1.1.21-6zxs2rfg.mjs +1 -0
- package/dist/chunks/index-1.1.21-8bhdk6jc.mjs +5 -0
- package/dist/chunks/index-1.1.21-adb7btws.mjs +1 -0
- package/dist/chunks/index-1.1.21-etcjfd99.mjs +1 -0
- package/dist/chunks/index-1.1.21-fy80jkp2.mjs +1 -0
- package/dist/chunks/index-1.1.21-hbxv4pgp.mjs +1 -0
- package/dist/chunks/index-1.1.21-hytfcvqs.mjs +1 -0
- package/dist/chunks/index-1.1.21-m0a3fv04.mjs +30 -0
- package/dist/chunks/index-1.1.21-m167t33s.mjs +1 -0
- package/dist/chunks/index-1.1.21-q5vrbm1a.mjs +1 -0
- package/dist/chunks/index-1.1.21-s1aj62xz.mjs +1 -0
- package/dist/chunks/index-1.1.21-srxg6mfj.mjs +1 -0
- package/dist/chunks/index-1.1.21-vcbqyp49.mjs +1 -0
- package/dist/chunks/index-1.1.21-wqh7rgwt.mjs +2 -0
- package/dist/chunks/index-1.1.21-xc8hadvs.mjs +9 -0
- package/dist/chunks/index-1.1.21-y0mjkxt4.mjs +1 -0
- package/dist/chunks/index-1.1.21-zn4zb4j6.mjs +2 -0
- package/dist/chunks/index-1.1.21-zphh9zyt.mjs +1 -0
- package/dist/chunks/init-1.1.21-3rsjrj70.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.21-t8zgkgkq.mjs +1 -0
- package/dist/chunks/ink-1.1.21-zrg02gjq.mjs +1 -0
- package/dist/chunks/insights-1.1.21-08rs6ycg.mjs +870 -0
- package/dist/chunks/install-1.1.21-fvsrnj75.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.21-kbd8kwxx.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.21-pvac1nvj.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.21-3ah0jawp.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.21-y8fy1vbg.mjs +1 -0
- package/dist/chunks/keybindings-1.1.21-wmvt9cka.mjs +2 -0
- package/dist/chunks/knowledge-1.1.21-z92hhppb.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.21-cv8x9bkm.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.21-kwpyjgm3.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.21-m59wf0fn.mjs +1 -0
- package/dist/chunks/log-1.1.21-xwc604af.mjs +1 -0
- package/dist/chunks/main-1.1.21-mpr5depp.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.21-nk3htdmq.mjs +1 -0
- package/dist/chunks/mcp-1.1.21-e7spj6dg.mjs +1 -0
- package/dist/chunks/mcp-1.1.21-mv23tsxc.mjs +17 -0
- package/dist/chunks/mcp-1.1.21-wa8c077q.mjs +4 -0
- package/dist/chunks/mcpb-1.1.21-bv8pwy9m.mjs +1 -0
- package/dist/chunks/memory-1.1.21-gqa797mn.mjs +72 -0
- package/dist/chunks/model-1.1.21-3dg8jye0.mjs +1 -0
- package/dist/chunks/model-1.1.21-3x98v8x4.mjs +2 -0
- package/dist/chunks/node-1.1.21-zxmyqm2z.mjs +14 -0
- package/dist/chunks/oauth-1.1.21-4ffdtf1q.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.21-9p741891.mjs +14 -0
- package/dist/chunks/output-style-1.1.21-kxvx8zbe.mjs +1 -0
- package/dist/chunks/package-ZOVFJE7Z-1.1.21-myehvasc.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.21-dtjr5vb7.mjs +1 -0
- package/dist/chunks/parser-1.1.21-jaqdwq7t.mjs +1 -0
- package/dist/chunks/passes-1.1.21-g830qx07.mjs +1 -0
- package/dist/chunks/permissions-1.1.21-ec5a6xxt.mjs +3 -0
- package/dist/chunks/permissions-1.1.21-qdday4sh.mjs +1 -0
- package/dist/chunks/plan-1.1.21-f5qe7hem.mjs +1 -0
- package/dist/chunks/plist-1.1.21-y82gjgzs.mjs +1 -0
- package/dist/chunks/plugin-1.1.21-0kfwxmv2.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.21-f5ddb5rc.mjs +1 -0
- package/dist/chunks/plugins-1.1.21-exphk1gb.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.21-jhp4m01m.mjs +2 -0
- package/dist/chunks/print-1.1.21-rcjs5pc4.mjs +57 -0
- package/dist/chunks/process-1.1.21-03zz92gq.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.21-zey1mfgx.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.21-cwxbh5pw.mjs +9 -0
- package/dist/chunks/prompt-1.1.21-49amsrvt.mjs +1 -0
- package/dist/chunks/prompt-1.1.21-gv2b1rk5.mjs +1 -0
- package/dist/chunks/prompts-1.1.21-hggxct4d.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.21-e974kgtb.mjs +13 -0
- package/dist/chunks/provider-1.1.21-xnprbehk.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.21-b4tnf9te.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.21-0n0739n4.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.21-s59gtr3x.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.21-wb1mef7h.mjs +26 -0
- package/dist/chunks/registry-1.1.21-knz7xa0h.mjs +1 -0
- package/dist/chunks/release-notes-1.1.21-mvr373q4.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.21-b4czg147.mjs +2 -0
- package/dist/chunks/remote-env-1.1.21-dbnxeqkg.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.21-fr3w35kv.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.21-5fvz5bsw.mjs +1 -0
- package/dist/chunks/rename-1.1.21-6rvag2s4.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.21-tay6v7n4.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.21-nzx71pts.mjs +1 -0
- package/dist/chunks/resume-1.1.21-mp3a9npp.mjs +2 -0
- package/dist/chunks/rewind-1.1.21-njh0btq2.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.21-7j3b02hm.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.21-d1v7f1sh.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.21-1vd13wkq.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.21-c7fw2ksr.mjs +1 -0
- package/dist/chunks/session-1.1.21-9gpkxas1.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.21-w4676wtk.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.21-ecwm1cfg.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.21-kan90ps9.mjs +1 -0
- package/dist/chunks/settings-1.1.21-4s7ew4vh.mjs +1 -0
- package/dist/chunks/setup-1.1.21-nmfqd6pa.mjs +12 -0
- package/dist/chunks/sinks-1.1.21-grwc3mac.mjs +1 -0
- package/dist/chunks/skills-1.1.21-c7mykz5q.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.21-mtr244kh.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.21-k1569a6r.mjs +1 -0
- package/dist/chunks/state-1.1.21-006s6xsy.mjs +1 -0
- package/dist/chunks/stats-1.1.21-bdpn78b9.mjs +6 -0
- package/dist/chunks/status-1.1.21-dkepakb3.mjs +1 -0
- package/dist/chunks/stickers-1.1.21-xk8yr9yt.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.21-tjx2d81b.mjs +1 -0
- package/dist/chunks/tasks-1.1.21-9qx5fz1q.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.21-pnhycdw4.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.21-279f713t.mjs +1 -0
- package/dist/chunks/teleport-1.1.21-t3yfsxqf.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.21-6t0x22pz.mjs +1 -0
- package/dist/chunks/theme-1.1.21-qp0w8xbb.mjs +1 -0
- package/dist/chunks/thinkback-1.1.21-my7w4nms.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.21-67cnrtz7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.21-njaz40qd.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.21-7b0wbg1q.mjs +1 -0
- package/dist/chunks/tools-1.1.21-zaawccjz.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.21-2h0kxwkb.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.21-tajysy6v.mjs +69 -0
- package/dist/chunks/types-1.1.21-dpz3pqyf.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.21-3r3a34tb.mjs +4 -0
- package/dist/chunks/update-1.1.21-v9n06gej.mjs +72 -0
- package/dist/chunks/upgrade-1.1.21-f40x8myx.mjs +1 -0
- package/dist/chunks/upload-1.1.21-x63yx03n.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.21-4d1nmmca.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.21-f8egwk04.mjs +1 -0
- package/dist/chunks/usage-1.1.21-ajfcrtj1.mjs +1 -0
- package/dist/chunks/util-1.1.21-raqpgawk.mjs +1 -0
- package/dist/chunks/utils-1.1.21-ae7844cz.mjs +1 -0
- package/dist/chunks/vim-1.1.21-stgjbrez.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.21-3mrb2p44.mjs +13 -0
- package/dist/chunks/watcher-1.1.21-71vsydsx.mjs +1 -0
- package/dist/chunks/wiki-1.1.21-m8wt2ppx.mjs +132 -0
- package/dist/chunks/workflows-1.1.21-j7gtgean.mjs +1 -0
- package/dist/chunks/worktree-1.1.21-acv1xtvb.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.21-2sg0072j.mjs +1 -0
- package/dist/chunks/wrapper-1.1.21-zbvep84d.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.19-ap09svyk.mjs +0 -1
- package/dist/chunks/App-1.1.19-k77n3357.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.19-tcembk4t.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.19-m4nrahdt.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.19-taks8xn7.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.19-yme7vhwa.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.19-tfvmz7pe.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.19-zkq642rw.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.19-2d75g9t9.mjs +0 -6
- package/dist/chunks/Doctor-1.1.19-0h26y250.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.19-664kb4w5.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.19-yebbvfbc.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.19-69vb23j7.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.19-xd8y62c2.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.19-1629rwte.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.19-jpbdr4ek.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.19-gsjnpy2f.mjs +0 -1
- package/dist/chunks/REPL-1.1.19-pqppw8hp.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.19-gvqa5kzm.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.19-jqd47gb8.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.19-m9xykegt.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.19-4x4m771g.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.19-4ywpbgq0.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.19-znn3cy0j.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.19-z4htsqk6.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.19-fqjjhqxh.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.19-sgb7b5wy.mjs +0 -1
- package/dist/chunks/add-dir-1.1.19-y55kbgfe.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.19-cfvc6wt9.mjs +0 -1
- package/dist/chunks/agents-1.1.19-hc4xvq4r.mjs +0 -110
- package/dist/chunks/agents-1.1.19-k8kx3pej.mjs +0 -3
- package/dist/chunks/api-1.1.19-gbh2sz3k.mjs +0 -1
- package/dist/chunks/asciicast-1.1.19-6mnps2vx.mjs +0 -1
- package/dist/chunks/assistant-1.1.19-vmkknmbc.mjs +0 -1
- package/dist/chunks/auth-1.1.19-h46w2e1a.mjs +0 -1
- package/dist/chunks/auth-1.1.19-s68ybx6f.mjs +0 -1
- package/dist/chunks/autoMode-1.1.19-qpevvt9x.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.19-63yyncht.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.19-vxn3t7f7.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.19-tg6rqb4x.mjs +0 -1
- package/dist/chunks/branch-1.1.19-e4gkb2sb.mjs +0 -4
- package/dist/chunks/bridge-1.1.19-zwf5vbc6.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.19-wc27ha2s.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.19-6gq8j1d7.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.19-yzzr33jg.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.19-xdqatsm3.mjs +0 -1
- package/dist/chunks/btw-1.1.19-qkfvd0ms.mjs +0 -1
- package/dist/chunks/buddy-1.1.19-08xe7ppf.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.19-w4a9xacm.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.19-exn70h4b.mjs +0 -4
- package/dist/chunks/caches-1.1.19-d4jfvwhp.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.19-kxx2an1b.mjs +0 -1
- package/dist/chunks/claudemd-1.1.19-xsbhz7tg.mjs +0 -1
- package/dist/chunks/clear-1.1.19-a1znba6q.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.19-ahv4wsvx.mjs +0 -1
- package/dist/chunks/cli-1.1.19-00q9c51a.mjs +0 -2
- package/dist/chunks/cli-1.1.19-00zv4s06.mjs +0 -2
- package/dist/chunks/cli-1.1.19-0cyysv3s.mjs +0 -2
- package/dist/chunks/cli-1.1.19-0m8cwm30.mjs +0 -2
- package/dist/chunks/cli-1.1.19-0n5vcvqz.mjs +0 -2
- package/dist/chunks/cli-1.1.19-0s56yqjm.mjs +0 -2
- package/dist/chunks/cli-1.1.19-0zq6911y.mjs +0 -2
- package/dist/chunks/cli-1.1.19-10jx9qt3.mjs +0 -2
- package/dist/chunks/cli-1.1.19-126eyddd.mjs +0 -2
- package/dist/chunks/cli-1.1.19-1mqhgz4n.mjs +0 -2
- package/dist/chunks/cli-1.1.19-25szxvwt.mjs +0 -2
- package/dist/chunks/cli-1.1.19-29wgse8t.mjs +0 -2
- package/dist/chunks/cli-1.1.19-2cb4p1hk.mjs +0 -2
- package/dist/chunks/cli-1.1.19-2jkn8w89.mjs +0 -2
- package/dist/chunks/cli-1.1.19-2rbw0277.mjs +0 -2
- package/dist/chunks/cli-1.1.19-2rnpr99c.mjs +0 -1
- package/dist/chunks/cli-1.1.19-2xxxjdpp.mjs +0 -2
- package/dist/chunks/cli-1.1.19-35evt5gy.mjs +0 -2
- package/dist/chunks/cli-1.1.19-38ya9kd8.mjs +0 -2
- package/dist/chunks/cli-1.1.19-3e9krkhy.mjs +0 -2
- package/dist/chunks/cli-1.1.19-3ep6p0sf.mjs +0 -2
- package/dist/chunks/cli-1.1.19-3jjgtf8t.mjs +0 -2
- package/dist/chunks/cli-1.1.19-3q0sj4zp.mjs +0 -3
- package/dist/chunks/cli-1.1.19-3tzh16np.mjs +0 -4
- package/dist/chunks/cli-1.1.19-3wwc3q32.mjs +0 -2
- package/dist/chunks/cli-1.1.19-3xpqyp64.mjs +0 -7
- package/dist/chunks/cli-1.1.19-48a6gxnh.mjs +0 -2
- package/dist/chunks/cli-1.1.19-4ba4a8jg.mjs +0 -9
- package/dist/chunks/cli-1.1.19-4dp1vkze.mjs +0 -2
- package/dist/chunks/cli-1.1.19-4hek4kyb.mjs +0 -2
- package/dist/chunks/cli-1.1.19-4n6cth1a.mjs +0 -2
- package/dist/chunks/cli-1.1.19-53hanqff.mjs +0 -2
- package/dist/chunks/cli-1.1.19-5a8wm97m.mjs +0 -2
- package/dist/chunks/cli-1.1.19-5eb8a4wn.mjs +0 -2
- package/dist/chunks/cli-1.1.19-5kaw3aa5.mjs +0 -2
- package/dist/chunks/cli-1.1.19-5xy2q2yt.mjs +0 -2
- package/dist/chunks/cli-1.1.19-5z5xyy4e.mjs +0 -34
- package/dist/chunks/cli-1.1.19-61nar796.mjs +0 -4
- package/dist/chunks/cli-1.1.19-61tem8qm.mjs +0 -2
- package/dist/chunks/cli-1.1.19-6jvzyjts.mjs +0 -3
- package/dist/chunks/cli-1.1.19-6mq64vhw.mjs +0 -3
- package/dist/chunks/cli-1.1.19-6pp1614z.mjs +0 -4
- package/dist/chunks/cli-1.1.19-6smqyzzn.mjs +0 -50
- package/dist/chunks/cli-1.1.19-779zeaga.mjs +0 -2
- package/dist/chunks/cli-1.1.19-7djbq218.mjs +0 -3
- package/dist/chunks/cli-1.1.19-7rmk4fz4.mjs +0 -2
- package/dist/chunks/cli-1.1.19-7s1yy832.mjs +0 -2
- package/dist/chunks/cli-1.1.19-7sfdatrg.mjs +0 -12
- package/dist/chunks/cli-1.1.19-7v3pjgvw.mjs +0 -5
- package/dist/chunks/cli-1.1.19-7zdwszrb.mjs +0 -2
- package/dist/chunks/cli-1.1.19-82vfm05a.mjs +0 -2
- package/dist/chunks/cli-1.1.19-89n0ppp5.mjs +0 -2
- package/dist/chunks/cli-1.1.19-8dpft679.mjs +0 -2
- package/dist/chunks/cli-1.1.19-8zwh2ky5.mjs +0 -2
- package/dist/chunks/cli-1.1.19-93bb0mpz.mjs +0 -2
- package/dist/chunks/cli-1.1.19-946kz0h0.mjs +0 -2
- package/dist/chunks/cli-1.1.19-96rdwb5m.mjs +0 -2
- package/dist/chunks/cli-1.1.19-99dfxebe.mjs +0 -2
- package/dist/chunks/cli-1.1.19-9a8d2pxp.mjs +0 -2
- package/dist/chunks/cli-1.1.19-9dkavmxz.mjs +0 -2
- package/dist/chunks/cli-1.1.19-9kbnb3tc.mjs +0 -2
- package/dist/chunks/cli-1.1.19-9nfxc159.mjs +0 -3
- package/dist/chunks/cli-1.1.19-9vf7tt9g.mjs +0 -2
- package/dist/chunks/cli-1.1.19-a26wdy1v.mjs +0 -24
- package/dist/chunks/cli-1.1.19-a32dnq28.mjs +0 -2
- package/dist/chunks/cli-1.1.19-a5hfs685.mjs +0 -45
- package/dist/chunks/cli-1.1.19-a6e1antc.mjs +0 -15
- package/dist/chunks/cli-1.1.19-a75p9zey.mjs +0 -2
- package/dist/chunks/cli-1.1.19-ac73knxp.mjs +0 -2
- package/dist/chunks/cli-1.1.19-acez5n0m.mjs +0 -24
- package/dist/chunks/cli-1.1.19-aj7yfbb6.mjs +0 -2
- package/dist/chunks/cli-1.1.19-awkva6qc.mjs +0 -24
- package/dist/chunks/cli-1.1.19-b7fbqawk.mjs +0 -2
- package/dist/chunks/cli-1.1.19-bg1d8zv9.mjs +0 -2
- package/dist/chunks/cli-1.1.19-bmy2183w.mjs +0 -2
- package/dist/chunks/cli-1.1.19-bxvvef3z.mjs +0 -2
- package/dist/chunks/cli-1.1.19-c8xs9vjb.mjs +0 -2
- package/dist/chunks/cli-1.1.19-cb7496nq.mjs +0 -5
- package/dist/chunks/cli-1.1.19-cc266ybe.mjs +0 -2
- package/dist/chunks/cli-1.1.19-cfgdvk8n.mjs +0 -12
- package/dist/chunks/cli-1.1.19-cjq368e9.mjs +0 -24
- package/dist/chunks/cli-1.1.19-cma77m08.mjs +0 -2
- package/dist/chunks/cli-1.1.19-cq5hegwz.mjs +0 -6
- package/dist/chunks/cli-1.1.19-csfx7v0e.mjs +0 -2
- package/dist/chunks/cli-1.1.19-d00hzr89.mjs +0 -2
- package/dist/chunks/cli-1.1.19-d1qdwt16.mjs +0 -2
- package/dist/chunks/cli-1.1.19-d2x1fpvn.mjs +0 -3
- package/dist/chunks/cli-1.1.19-d7wb13f8.mjs +0 -2
- package/dist/chunks/cli-1.1.19-dq0a7g9x.mjs +0 -2
- package/dist/chunks/cli-1.1.19-dt84yfk2.mjs +0 -206
- package/dist/chunks/cli-1.1.19-dw8jwdzq.mjs +0 -3
- package/dist/chunks/cli-1.1.19-dzbss10b.mjs +0 -3
- package/dist/chunks/cli-1.1.19-e4krk6kp.mjs +0 -2
- package/dist/chunks/cli-1.1.19-e5k83shq.mjs +0 -17
- package/dist/chunks/cli-1.1.19-ec5kkxdm.mjs +0 -2
- package/dist/chunks/cli-1.1.19-edv500a7.mjs +0 -25
- package/dist/chunks/cli-1.1.19-esk8qemt.mjs +0 -3
- package/dist/chunks/cli-1.1.19-eyhpgp73.mjs +0 -4
- package/dist/chunks/cli-1.1.19-f1g12hnb.mjs +0 -2
- package/dist/chunks/cli-1.1.19-f1vb0eyp.mjs +0 -2
- package/dist/chunks/cli-1.1.19-f6m8mqsf.mjs +0 -2
- package/dist/chunks/cli-1.1.19-fgfwa8xc.mjs +0 -2
- package/dist/chunks/cli-1.1.19-fqwvhznj.mjs +0 -2
- package/dist/chunks/cli-1.1.19-ftnf2s7k.mjs +0 -6
- package/dist/chunks/cli-1.1.19-g1bp4mfb.mjs +0 -2
- package/dist/chunks/cli-1.1.19-g70qb326.mjs +0 -2
- package/dist/chunks/cli-1.1.19-grvgykf5.mjs +0 -58
- package/dist/chunks/cli-1.1.19-gvdrxej7.mjs +0 -6
- package/dist/chunks/cli-1.1.19-gw9jb8fv.mjs +0 -2
- package/dist/chunks/cli-1.1.19-h5psdt4j.mjs +0 -2
- package/dist/chunks/cli-1.1.19-h6a1zywh.mjs +0 -2
- package/dist/chunks/cli-1.1.19-h6nqzwdx.mjs +0 -8
- package/dist/chunks/cli-1.1.19-hdmxb06r.mjs +0 -2
- package/dist/chunks/cli-1.1.19-hph7gbkv.mjs +0 -42
- package/dist/chunks/cli-1.1.19-hqbspnvc.mjs +0 -5419
- package/dist/chunks/cli-1.1.19-hr45csak.mjs +0 -3
- package/dist/chunks/cli-1.1.19-j9kyrhvv.mjs +0 -3
- package/dist/chunks/cli-1.1.19-jn7xm69z.mjs +0 -2
- package/dist/chunks/cli-1.1.19-k4gwmyp2.mjs +0 -17
- package/dist/chunks/cli-1.1.19-k5svbvzd.mjs +0 -2
- package/dist/chunks/cli-1.1.19-kc4rvbe3.mjs +0 -18
- package/dist/chunks/cli-1.1.19-kjbxevhz.mjs +0 -2
- package/dist/chunks/cli-1.1.19-kjhw0mpy.mjs +0 -6
- package/dist/chunks/cli-1.1.19-kxz28gf8.mjs +0 -21
- package/dist/chunks/cli-1.1.19-m8w4as34.mjs +0 -16
- package/dist/chunks/cli-1.1.19-m9vwd2bt.mjs +0 -2
- package/dist/chunks/cli-1.1.19-mam509fm.mjs +0 -2
- package/dist/chunks/cli-1.1.19-mn9sb0en.mjs +0 -2
- package/dist/chunks/cli-1.1.19-mqs96k5w.mjs +0 -4
- package/dist/chunks/cli-1.1.19-mrft54r6.mjs +0 -2
- package/dist/chunks/cli-1.1.19-n24w651m.mjs +0 -3
- package/dist/chunks/cli-1.1.19-n5xxe310.mjs +0 -133
- package/dist/chunks/cli-1.1.19-nb1256fg.mjs +0 -4
- package/dist/chunks/cli-1.1.19-nqznsj8y.mjs +0 -2
- package/dist/chunks/cli-1.1.19-nrpwj6d0.mjs +0 -3
- package/dist/chunks/cli-1.1.19-p1nzrjj5.mjs +0 -25
- package/dist/chunks/cli-1.1.19-p8pd4mmb.mjs +0 -2
- package/dist/chunks/cli-1.1.19-pdmgnq2h.mjs +0 -39
- package/dist/chunks/cli-1.1.19-pn1pyg9c.mjs +0 -2
- package/dist/chunks/cli-1.1.19-q2b2zy0e.mjs +0 -2
- package/dist/chunks/cli-1.1.19-q5kbe656.mjs +0 -2
- package/dist/chunks/cli-1.1.19-q7cjyz1z.mjs +0 -2
- package/dist/chunks/cli-1.1.19-qb3sg611.mjs +0 -2
- package/dist/chunks/cli-1.1.19-qvzf4mzn.mjs +0 -2
- package/dist/chunks/cli-1.1.19-qw2a73hz.mjs +0 -2
- package/dist/chunks/cli-1.1.19-r3km7nzk.mjs +0 -2
- package/dist/chunks/cli-1.1.19-r4qc48rf.mjs +0 -2
- package/dist/chunks/cli-1.1.19-rk4mqvc5.mjs +0 -2
- package/dist/chunks/cli-1.1.19-rkxy1dsw.mjs +0 -2
- package/dist/chunks/cli-1.1.19-ry92fd54.mjs +0 -7
- package/dist/chunks/cli-1.1.19-s3zhxkk4.mjs +0 -2
- package/dist/chunks/cli-1.1.19-sbrpsrtp.mjs +0 -4
- package/dist/chunks/cli-1.1.19-shgmqysk.mjs +0 -2
- package/dist/chunks/cli-1.1.19-shgqfcam.mjs +0 -2
- package/dist/chunks/cli-1.1.19-snq43w01.mjs +0 -6
- package/dist/chunks/cli-1.1.19-swfswrx1.mjs +0 -2
- package/dist/chunks/cli-1.1.19-t7yahhjv.mjs +0 -4
- package/dist/chunks/cli-1.1.19-t87ew64x.mjs +0 -2
- package/dist/chunks/cli-1.1.19-t9xz3682.mjs +0 -20
- package/dist/chunks/cli-1.1.19-tar53fbc.mjs +0 -15
- package/dist/chunks/cli-1.1.19-tefbgf43.mjs +0 -2
- package/dist/chunks/cli-1.1.19-tm3821yd.mjs +0 -2
- package/dist/chunks/cli-1.1.19-tqv8yds0.mjs +0 -2
- package/dist/chunks/cli-1.1.19-tw6zn01k.mjs +0 -2
- package/dist/chunks/cli-1.1.19-v35x8svk.mjs +0 -15
- package/dist/chunks/cli-1.1.19-v619rbr5.mjs +0 -59
- package/dist/chunks/cli-1.1.19-vbq3h0rr.mjs +0 -2
- package/dist/chunks/cli-1.1.19-vfed8ert.mjs +0 -2
- package/dist/chunks/cli-1.1.19-vgfqexte.mjs +0 -4
- package/dist/chunks/cli-1.1.19-vpabfve5.mjs +0 -6
- package/dist/chunks/cli-1.1.19-vr8jf7k6.mjs +0 -2
- package/dist/chunks/cli-1.1.19-vv09y4gs.mjs +0 -2
- package/dist/chunks/cli-1.1.19-vx87jjbs.mjs +0 -18
- package/dist/chunks/cli-1.1.19-vyqgdds6.mjs +0 -2
- package/dist/chunks/cli-1.1.19-w9tb5j4s.mjs +0 -2
- package/dist/chunks/cli-1.1.19-wrgbrnhw.mjs +0 -9
- package/dist/chunks/cli-1.1.19-wtkads83.mjs +0 -2
- package/dist/chunks/cli-1.1.19-wzm0j7nd.mjs +0 -133
- package/dist/chunks/cli-1.1.19-x1grwt9b.mjs +0 -2
- package/dist/chunks/cli-1.1.19-x522f12c.mjs +0 -2
- package/dist/chunks/cli-1.1.19-x6xnsxay.mjs +0 -2
- package/dist/chunks/cli-1.1.19-x86k1gy8.mjs +0 -2
- package/dist/chunks/cli-1.1.19-x8set46s.mjs +0 -2
- package/dist/chunks/cli-1.1.19-x9jccx03.mjs +0 -4
- package/dist/chunks/cli-1.1.19-xnas5w2g.mjs +0 -2
- package/dist/chunks/cli-1.1.19-xst2kbax.mjs +0 -2
- package/dist/chunks/cli-1.1.19-xvrj0zyj.mjs +0 -2
- package/dist/chunks/cli-1.1.19-y6p80wj3.mjs +0 -3
- package/dist/chunks/cli-1.1.19-ybe27dz9.mjs +0 -66
- package/dist/chunks/cli-1.1.19-ykspd2ax.mjs +0 -2
- package/dist/chunks/cli-1.1.19-ykvwaeht.mjs +0 -2
- package/dist/chunks/cli-1.1.19-yrjfmdg0.mjs +0 -2
- package/dist/chunks/cli-1.1.19-ys9280nx.mjs +0 -2
- package/dist/chunks/cli-1.1.19-yw33djbn.mjs +0 -2
- package/dist/chunks/cli-1.1.19-z9t89h8r.mjs +0 -2
- package/dist/chunks/cli-1.1.19-zcbfxmsm.mjs +0 -2
- package/dist/chunks/cli-1.1.19-zdb14mt2.mjs +0 -2
- package/dist/chunks/cli-1.1.19-zebz0x46.mjs +0 -2
- package/dist/chunks/cli-1.1.19-zg8m3n8n.mjs +0 -2
- package/dist/chunks/cli-1.1.19-zm9nhjfe.mjs +0 -2
- package/dist/chunks/cli-1.1.19-ztvzhgye.mjs +0 -2
- package/dist/chunks/cli-1.1.19-ztxdhvw3.mjs +0 -2
- package/dist/chunks/cli-1.1.19-zv4hb0hf.mjs +0 -2
- package/dist/chunks/client-1.1.19-rydegw5h.mjs +0 -1
- package/dist/chunks/color-1.1.19-p5265vaz.mjs +0 -1
- package/dist/chunks/compact-1.1.19-7c9mxrm8.mjs +0 -3
- package/dist/chunks/config-1.1.19-2wsgrxvp.mjs +0 -1
- package/dist/chunks/config-1.1.19-d62j9tgx.mjs +0 -1
- package/dist/chunks/constants-1.1.19-cyxrtszj.mjs +0 -1
- package/dist/chunks/context-1.1.19-mtt1t5p4.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.19-xry25hh6.mjs +0 -1
- package/dist/chunks/conversation-1.1.19-y6cahyhg.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.19-esh8mxyx.mjs +0 -1
- package/dist/chunks/copy-1.1.19-tyf8daxj.mjs +0 -9
- package/dist/chunks/cost-1.1.19-pvrac5v6.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.19-8jd28zhc.mjs +0 -1
- package/dist/chunks/createSession-1.1.19-88gw4fqs.mjs +0 -1
- package/dist/chunks/debug-1.1.19-xz3040cz.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.19-x39zq6wr.mjs +0 -1534
- package/dist/chunks/desktop-1.1.19-a40h3fh1.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.19-g0rbffr6.mjs +0 -1
- package/dist/chunks/detection-1.1.19-kzpx83pk.mjs +0 -1
- package/dist/chunks/diff-1.1.19-g76zmzb1.mjs +0 -1
- package/dist/chunks/doctor-1.1.19-03zspk7d.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.19-df18kr26.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.19-n9y2y9sm.mjs +0 -1
- package/dist/chunks/effort-1.1.19-503r3dqe.mjs +0 -13
- package/dist/chunks/engine-1.1.19-0ad61bvx.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.19-qf1fj44h.mjs +0 -1
- package/dist/chunks/envUtils-1.1.19-8en4zy66.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.19-91hc6n75.mjs +0 -1
- package/dist/chunks/environments-1.1.19-tfjfkh09.mjs +0 -1
- package/dist/chunks/errors-1.1.19-fs48fz9y.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.19-pbb6kk50.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.19-m6am19yr.mjs +0 -1
- package/dist/chunks/exit-1.1.19-mqpwd363.mjs +0 -1
- package/dist/chunks/explorer-1.1.19-epqv5k1e.mjs +0 -1
- package/dist/chunks/export-1.1.19-t8tpvak9.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.19-r9kte59s.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.19-xnxm4sqt.mjs +0 -1
- package/dist/chunks/fast-1.1.19-c4n0rr8a.mjs +0 -1
- package/dist/chunks/feedback-1.1.19-7k5rya63.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.19-5bjmyd6a.mjs +0 -1
- package/dist/chunks/git-1.1.19-1njw7gwq.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.19-k4csmysh.mjs +0 -1
- package/dist/chunks/goal-1.1.19-e08g4net.mjs +0 -4
- package/dist/chunks/growthbook-1.1.19-gw9m906y.mjs +0 -1
- package/dist/chunks/headless-1.1.19-gckc9qf1.mjs +0 -2
- package/dist/chunks/heapdump-1.1.19-cy0bczwr.mjs +0 -6
- package/dist/chunks/help-1.1.19-bbfsbt36.mjs +0 -1
- package/dist/chunks/hookChains-1.1.19-n01ssw8c.mjs +0 -3
- package/dist/chunks/hooks-1.1.19-488gkyjk.mjs +0 -1
- package/dist/chunks/hooks-1.1.19-b2x6yc66.mjs +0 -79
- package/dist/chunks/ide-1.1.19-zf9hpj81.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.19-1m270wr0.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.19-h4bsnn75.mjs +0 -1
- package/dist/chunks/index-1.1.19-06ccpd87.mjs +0 -1
- package/dist/chunks/index-1.1.19-263v6qeb.mjs +0 -1
- package/dist/chunks/index-1.1.19-2d944pv5.mjs +0 -1
- package/dist/chunks/index-1.1.19-7ngy3yfc.mjs +0 -9
- package/dist/chunks/index-1.1.19-apzfwtnm.mjs +0 -1
- package/dist/chunks/index-1.1.19-efdm8cp5.mjs +0 -30
- package/dist/chunks/index-1.1.19-exbss9tj.mjs +0 -1
- package/dist/chunks/index-1.1.19-f53qyqj8.mjs +0 -2
- package/dist/chunks/index-1.1.19-fae0sgd8.mjs +0 -5
- package/dist/chunks/index-1.1.19-g4rv8gvj.mjs +0 -2
- package/dist/chunks/index-1.1.19-ha3e4f70.mjs +0 -1
- package/dist/chunks/index-1.1.19-ht9s8yra.mjs +0 -9
- package/dist/chunks/index-1.1.19-j9awq55c.mjs +0 -1
- package/dist/chunks/index-1.1.19-jdvmsx9x.mjs +0 -1
- package/dist/chunks/index-1.1.19-ks262nbe.mjs +0 -1
- package/dist/chunks/index-1.1.19-mppepmze.mjs +0 -23
- package/dist/chunks/index-1.1.19-nthw1gda.mjs +0 -1
- package/dist/chunks/index-1.1.19-rs8fazy9.mjs +0 -1
- package/dist/chunks/index-1.1.19-sze2q9g5.mjs +0 -1
- package/dist/chunks/index-1.1.19-vkfm4msr.mjs +0 -1
- package/dist/chunks/index-1.1.19-vs2nyqte.mjs +0 -1
- package/dist/chunks/index-1.1.19-z8fcr2ec.mjs +0 -1
- package/dist/chunks/index-1.1.19-zy7mntdp.mjs +0 -1
- package/dist/chunks/init-1.1.19-8d53tmw6.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.19-p00njb6f.mjs +0 -1
- package/dist/chunks/ink-1.1.19-vr4g8jdg.mjs +0 -1
- package/dist/chunks/insights-1.1.19-6ag4d7qh.mjs +0 -870
- package/dist/chunks/install-1.1.19-74g8qyvc.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.19-3nj645m2.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.19-sw02tcfh.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.19-fshq5kr2.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.19-npmh2sbc.mjs +0 -1
- package/dist/chunks/keybindings-1.1.19-xy665r7j.mjs +0 -2
- package/dist/chunks/knowledge-1.1.19-e4pdfkhx.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.19-fktnyx5h.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.19-j4732ykz.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.19-99a4nfjq.mjs +0 -1
- package/dist/chunks/log-1.1.19-y3spcye6.mjs +0 -1
- package/dist/chunks/main-1.1.19-06jy3aye.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.19-19k3jdqh.mjs +0 -1
- package/dist/chunks/mcp-1.1.19-833sdc7d.mjs +0 -17
- package/dist/chunks/mcp-1.1.19-x0sfjzjt.mjs +0 -1
- package/dist/chunks/mcp-1.1.19-z5x59bca.mjs +0 -4
- package/dist/chunks/mcpb-1.1.19-bbswp853.mjs +0 -1
- package/dist/chunks/memory-1.1.19-d1ke4kha.mjs +0 -72
- package/dist/chunks/model-1.1.19-sm0ftpna.mjs +0 -1
- package/dist/chunks/model-1.1.19-v68fjcdh.mjs +0 -2
- package/dist/chunks/node-1.1.19-nj9qe6mk.mjs +0 -12
- package/dist/chunks/oauth-1.1.19-y016e4dk.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.19-njr80kze.mjs +0 -14
- package/dist/chunks/output-style-1.1.19-rj9tfcg1.mjs +0 -1
- package/dist/chunks/package-KQCMZM5L-1.1.19-4f1z2hmg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.19-qtk1xf04.mjs +0 -1
- package/dist/chunks/parser-1.1.19-sfrfy1dm.mjs +0 -1
- package/dist/chunks/passes-1.1.19-nhfrcsrb.mjs +0 -1
- package/dist/chunks/permissions-1.1.19-bfjnq5mz.mjs +0 -1
- package/dist/chunks/permissions-1.1.19-vzcjg874.mjs +0 -3
- package/dist/chunks/plan-1.1.19-qzr3m454.mjs +0 -1
- package/dist/chunks/plist-1.1.19-19wsvxjw.mjs +0 -1
- package/dist/chunks/plugin-1.1.19-p0h9mbar.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.19-7pvtzbb1.mjs +0 -1
- package/dist/chunks/plugins-1.1.19-xrbe4y5a.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.19-wfp4vavy.mjs +0 -2
- package/dist/chunks/print-1.1.19-rzw2njmz.mjs +0 -57
- package/dist/chunks/process-1.1.19-k7h4qsz0.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.19-p1ffejkb.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.19-gy6nfdzs.mjs +0 -9
- package/dist/chunks/prompt-1.1.19-9aq4jr0c.mjs +0 -1
- package/dist/chunks/prompt-1.1.19-kkwb835d.mjs +0 -1
- package/dist/chunks/prompts-1.1.19-qq19kp1k.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.19-6n3sh10m.mjs +0 -13
- package/dist/chunks/provider-1.1.19-46f6x4wt.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.19-xxzvjngj.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.19-t3qsn8f5.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.19-j7xrp805.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.19-v2jjs3tt.mjs +0 -26
- package/dist/chunks/registry-1.1.19-7chtcyjj.mjs +0 -1
- package/dist/chunks/release-notes-1.1.19-pbbxph7n.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.19-qgvazhrx.mjs +0 -2
- package/dist/chunks/remote-env-1.1.19-4ftd6zk8.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.19-w92h77yd.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.19-e5nd7ypy.mjs +0 -1
- package/dist/chunks/rename-1.1.19-zmextayk.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.19-4vqnj6br.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.19-s2btrsvw.mjs +0 -1
- package/dist/chunks/resume-1.1.19-jn7pe69d.mjs +0 -2
- package/dist/chunks/rewind-1.1.19-rahxdd24.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.19-hjwkw6vt.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.19-hjwsqxd5.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.19-4aqxxq3m.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.19-x2n1fkv0.mjs +0 -1
- package/dist/chunks/session-1.1.19-je5j810m.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.19-t595d3pg.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.19-bng1xsd6.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.19-6agd7cfq.mjs +0 -1
- package/dist/chunks/settings-1.1.19-cpxbjwr6.mjs +0 -1
- package/dist/chunks/setup-1.1.19-11b5cjgj.mjs +0 -12
- package/dist/chunks/sinks-1.1.19-m4ce6s8b.mjs +0 -1
- package/dist/chunks/skills-1.1.19-scwgh73s.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.19-j0kpxw4n.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.19-k05gx3h1.mjs +0 -1
- package/dist/chunks/state-1.1.19-r1dtdp9g.mjs +0 -1
- package/dist/chunks/stats-1.1.19-zwc97973.mjs +0 -6
- package/dist/chunks/status-1.1.19-8m7tf3e1.mjs +0 -1
- package/dist/chunks/stickers-1.1.19-51p3tyxv.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.19-bq634ryk.mjs +0 -1
- package/dist/chunks/tasks-1.1.19-xtpcttgb.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.19-37de1g3x.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.19-0zaw34nq.mjs +0 -1
- package/dist/chunks/teleport-1.1.19-1yrce0fg.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.19-n3qgcbse.mjs +0 -1
- package/dist/chunks/theme-1.1.19-qfd87sgp.mjs +0 -1
- package/dist/chunks/thinkback-1.1.19-gss5am06.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.19-7j20scs3.mjs +0 -1
- package/dist/chunks/toolPool-1.1.19-tmtwkgcj.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.19-01pt7axx.mjs +0 -1
- package/dist/chunks/tools-1.1.19-1y8gx9m2.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.19-d1avnq7v.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.19-q8rxrnz3.mjs +0 -69
- package/dist/chunks/types-1.1.19-3n28bh66.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.19-vhhfbsfg.mjs +0 -4
- package/dist/chunks/update-1.1.19-xzwgsapn.mjs +0 -72
- package/dist/chunks/upgrade-1.1.19-5ydc5rb9.mjs +0 -1
- package/dist/chunks/upload-1.1.19-evxky0ry.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.19-6t7vnxjf.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.19-zgpfdrf1.mjs +0 -1
- package/dist/chunks/usage-1.1.19-f61vnt3h.mjs +0 -1
- package/dist/chunks/util-1.1.19-yqzpdqqe.mjs +0 -1
- package/dist/chunks/utils-1.1.19-hhq6836h.mjs +0 -1
- package/dist/chunks/vim-1.1.19-k2aqex53.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.19-e3ar1gjj.mjs +0 -13
- package/dist/chunks/watcher-1.1.19-09ahtfef.mjs +0 -1
- package/dist/chunks/wiki-1.1.19-h6tfdmnw.mjs +0 -132
- package/dist/chunks/workflows-1.1.19-kgd61yya.mjs +0 -1
- package/dist/chunks/worktree-1.1.19-8vn5pmy9.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.19-je6hz46c.mjs +0 -1
- package/dist/chunks/wrapper-1.1.19-dn4wk1mg.mjs +0 -7
- /package/dist/chunks/{cli-1.1.19-4tssw0qf.mjs → cli-1.1.21-7snn7kbs.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.19-jepkkjbh.mjs → cli-1.1.21-7sx1arjq.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.19-mnfgg84d.mjs → cli-1.1.21-cx7tkkx6.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.19-j2p355hg.mjs → cli-1.1.21-ftamxg3e.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.19-caqq41md.mjs → cli-1.1.21-rte0df0y.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.19-er0hdy0x.mjs → cli-1.1.21-srd8n2bc.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r4 as V,s4 as q}from"./cli-1.1.19-2xxxjdpp.mjs";import{B8 as _,Q7 as H,Q8 as D,R7 as P,q8 as W,s8 as x,v8 as N}from"./cli-1.1.19-m8w4as34.mjs";import{bfa as X,wfa as K}from"./cli-1.1.19-dt84yfk2.mjs";import{Sja as Z,Yja as U}from"./cli-1.1.19-q5kbe656.mjs";import{Nla as G,Vla as I}from"./cli-1.1.19-5eb8a4wn.mjs";import{Ksa as j,ssa as $}from"./cli-1.1.19-awkva6qc.mjs";import{kta as Y}from"./cli-1.1.19-cc266ybe.mjs";function C(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",J=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${J})`}function v(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function y(){return`Claudin-User (${V()})`}function f(){if(N()){let J=W();if(!J?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${J.accessToken}`,"anthropic-beta":Z}}}let z=P();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function b(z,J){try{return await z()}catch(F){if(!$.isAxiosError(F))throw F;let L=F.response?.status;if(!(L===401||J?.also403Revoked&&L===403&&typeof F.response?.data==="string"&&F.response.data.includes("OAuth token has been revoked")))throw F;let M=W()?.accessToken;if(!M)throw F;return await x(M),await z()}}var B=Y(()=>{j();U();D();q()});function A(){if(G(process.env.DISABLE_COST_WARNINGS))return!1;if(N())return!1;let J=H(),F=P()!==null;if(!J.hasToken&&!F)return!1;let L=X(),Q=L.oauthAccount?.organizationRole,M=L.oauthAccount?.workspaceRole;if(!Q||!M)return!1;return["admin","billing"].includes(Q)||["workspace_admin","workspace_billing"].includes(M)}function g(){if(w!==null)return w;if(!N())return!1;let z=_();if(z==="max"||z==="pro")return!0;let F=X().oauthAccount?.organizationRole;return!!F&&["admin","billing","owner","primary_owner"].includes(F)}var w=null;var m=Y(()=>{D();K();I()});
|
|
2
|
-
export{C as h4,v as i4,y as j4,f as k4,b as l4,B as m4,A as n4,g as o4,m as p4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kta as K}from"./cli-1.1.19-cc266ybe.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
2
|
-
export{M as ela,N as fla,Q as gla,R as hla,S as ila,L as jla};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ZM as L,hN as h,qN as y,rN as S,xN as w}from"./cli-1.1.19-hqbspnvc.mjs";import{DZ as l,H1 as B,a1 as U,c1 as D,g1 as v}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as G,e4 as H,f4 as W}from"./cli-1.1.19-25szxvwt.mjs";import{gta as C,kta as M}from"./cli-1.1.19-cc266ybe.mjs";function T(z){let q=u.c(26),{scope:A,parsingErrors:Q,warnings:R}=z,K=Q.length>0,X=R.length>0;if(!K&&!X)return null;let V;if(q[0]!==K||q[1]!==X)V=(K||X)&&H(D,{color:K?"error":"warning",children:["[",K?"Failed to parse":"Contains warnings","]"," "]}),q[0]=K,q[1]=X,q[2]=V;else V=q[2];let I;if(q[3]!==A)I=S(A),q[3]=A,q[4]=I;else I=q[4];let J;if(q[5]!==I)J=G(D,{children:I}),q[5]=I,q[6]=J;else J=q[6];let Y;if(q[7]!==V||q[8]!==J)Y=H(U,{children:[V,J]}),q[7]=V,q[8]=J,q[9]=Y;else Y=q[9];let P;if(q[10]===Symbol.for("react.memo_cache_sentinel"))P=G(D,{dimColor:!0,children:"Location: "}),q[10]=P;else P=q[10];let Z;if(q[11]!==A)Z=y(A),q[11]=A,q[12]=Z;else Z=q[12];let F;if(q[13]!==Z)F=H(U,{children:[P,G(D,{dimColor:!0,children:Z})]}),q[13]=Z,q[14]=F;else F=q[14];let O;if(q[15]!==Q)O=Q.map(E),q[15]=Q,q[16]=O;else O=q[16];let b;if(q[17]!==R)b=R.map(m),q[17]=R,q[18]=b;else b=q[18];let k;if(q[19]!==O||q[20]!==b)k=H(U,{marginLeft:1,flexDirection:"column",children:[O,b]}),q[19]=O,q[20]=b,q[21]=k;else k=q[21];let d;if(q[22]!==k||q[23]!==Y||q[24]!==F)d=H(U,{flexDirection:"column",marginTop:1,children:[Y,F,k]}),q[22]=k,q[23]=Y,q[24]=F,q[25]=d;else d=q[25];return d}function m(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"warning",children:"[Warning]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`warning-${q}`)}function E(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"error",children:"[Error]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`error-${q}`)}function x(){let z=u.c(6),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q={scope:"user",config:L("user")},z[0]=q;else q=z[0];let A;if(z[1]===Symbol.for("react.memo_cache_sentinel"))A={scope:"project",config:L("project")},z[1]=A;else A=z[1];let Q;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Q={scope:"local",config:L("local")},z[2]=Q;else Q=z[2];let R;if(z[3]===Symbol.for("react.memo_cache_sentinel"))R=[q,A,Q,{scope:"enterprise",config:L("enterprise")}],z[3]=R;else R=z[3];let K=R,X=K.some(j),V=K.some(_);if(!X&&!V)return null;let I;if(z[4]===Symbol.for("react.memo_cache_sentinel"))I=G(D,{bold:!0,children:"MCP Config Diagnostics"}),z[4]=I;else I=z[4];let J;if(z[5]===Symbol.for("react.memo_cache_sentinel"))J=H(U,{flexDirection:"column",marginTop:1,marginBottom:1,children:[I,G(U,{marginTop:1,children:H(D,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",G(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),K.map(f)]}),z[5]=J;else J=z[5];return J}function f(z){let{scope:q,config:A}=z;return G(T,{scope:q,parsingErrors:N(A.errors,"fatal"),warnings:N(A.errors,"warning")},q)}function _(z){let{config:q}=z;return N(q.errors,"warning").length>0}function j(z){let{config:q}=z;return N(q.errors,"fatal").length>0}function N(z,q){return z.filter((A)=>A.mcpErrorMetadata?.severity===q)}var u;var p=M(()=>{h();w();B();W();u=C(l(),1)});
|
|
2
|
-
export{x as Fg,p as Gg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ao as T,bo as Cq,ky as Pq,oy as uq}from"./cli-1.1.19-hqbspnvc.mjs";import{eZ as Uq,fZ as Iq,iZ as kq}from"./cli-1.1.19-5z5xyy4e.mjs";import{DZ as aq,H1 as hq,a1 as L,c1 as O}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as J,e4 as Q,f4 as vq}from"./cli-1.1.19-25szxvwt.mjs";import{X5 as bq,Y5 as Mq,p6 as Sq}from"./cli-1.1.19-m8w4as34.mjs";import{Iba as Nq,Kba as Bq,O$ as Xq,P$ as jq,bfa as Rq,wfa as fq}from"./cli-1.1.19-dt84yfk2.mjs";import{mia as nq}from"./cli-1.1.19-x6xnsxay.mjs";import{gta as yq,kta as Gq}from"./cli-1.1.19-cc266ybe.mjs";function dq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function eq(Y,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return Y.length>0&&!/^\s/.test(Y)&&!Y.startsWith("\x1B")}var Wq=Gq(()=>{kq();fq();Bq()});function V(Y){return Y.replace(/\+/g," + ")}function LH(Y){let q=Eq.c(99),{dimColor:H,fixedWidth:Dq,gap:x,paddingX:l}=Y,m=T("app:toggleTranscript","Global","ctrl+o"),p;if(q[0]!==m)p=V(m),q[0]=m,q[1]=p;else p=q[1];let d=p,e=T("app:toggleTodos","Global","ctrl+t"),B;if(q[2]!==e)B=V(e),q[2]=e,q[3]=B;else B=q[3];let s=B,i=T("chat:undo","Chat","ctrl+_"),f;if(q[4]!==i)f=V(i),q[4]=i,q[5]=f;else f=q[5];let r=f,$=T("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=V($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=T("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=V(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Hq=T("chat:modelPicker","Chat","alt+p"),n;if(q[10]!==Hq)n=V(Hq),q[10]=Hq,q[11]=n;else n=q[11];let Jq=n,Lq=T("chat:fastMode","Chat","alt+o"),j;if(q[12]!==Lq)j=V(Lq),q[12]=Lq,q[13]=j;else j=q[13];let Oq=j,Qq=T("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Qq)S=V(Qq),q[14]=Qq,q[15]=S;else S=q[15];let Tq=S,Vq=T("app:toggleTerminal","Global","meta+j"),a;if(q[16]!==Vq)a=V(Vq),q[16]=Vq,q[17]=a;else a=q[17];let Fq=a,Yq=T("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Yq)h=V(Yq),q[18]=Yq,q[19]=h;else h=q[19];let Zq=h,gq=V(T("chat:increaseEffort","Chat","shift+right")),_q=V(T("chat:openDiff","Chat","ctrl+g")),pq=V(T("chat:openExplorer","Chat","ctrl+e")),C;if(q[20]!==H||q[21]!==Fq)C=null,q[20]=H,q[21]=Fq,q[22]=C;else C=q[22];let wq=C,zq=Dq?28:void 0,Z;if(q[23]!==H)Z=J(L,{children:J(O,{dimColor:H,children:"! for bash mode"})}),q[23]=H,q[24]=Z;else Z=q[24];let w;if(q[25]!==H)w=J(L,{children:J(O,{dimColor:H,children:"/ for commands"})}),q[25]=H,q[26]=w;else w=q[26];let z;if(q[27]!==H)z=J(L,{children:J(O,{dimColor:H,children:"@ for file paths"})}),q[27]=H,q[28]=z;else z=q[28];let A;if(q[29]!==H)A=J(L,{children:J(O,{dimColor:H,children:"& for background"})}),q[29]=H,q[30]=A;else A=q[30];let D;if(q[31]!==H)D=J(L,{children:J(O,{dimColor:H,children:"/btw for side question"})}),q[31]=H,q[32]=D;else D=q[32];let F;if(q[33]!==zq||q[34]!==Z||q[35]!==w||q[36]!==z||q[37]!==A||q[38]!==D)F=Q(L,{flexDirection:"column",width:zq,children:[Z,w,z,A,D,J(L,{children:Q(O,{dimColor:H,children:[pq," for file explorer"]})}),J(L,{children:Q(O,{dimColor:H,children:[_q," for diff reviewer"]})})]}),q[33]=zq,q[34]=Z,q[35]=w,q[36]=z,q[37]=A,q[38]=D,q[39]=F;else F=q[39];let Aq=Dq?35:void 0,G;if(q[40]!==H)G=J(L,{children:J(O,{dimColor:H,children:"double tap esc to clear input"})}),q[40]=H,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==H)N=J(L,{children:Q(O,{dimColor:H,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=H,q[44]=N;else N=q[44];let R;if(q[45]!==H||q[46]!==d)R=J(L,{children:Q(O,{dimColor:H,children:[d," for verbose output"]})}),q[45]=H,q[46]=d,q[47]=R;else R=q[47];let U;if(q[48]!==H||q[49]!==s)U=J(L,{children:Q(O,{dimColor:H,children:[s," to toggle tasks"]})}),q[48]=H,q[49]=s,q[50]=U;else U=q[50];let u;if(q[51]===Symbol.for("react.memo_cache_sentinel"))u=Kq(),q[51]=u;else u=q[51];let I;if(q[52]!==H)I=J(L,{children:J(O,{dimColor:H,children:u})}),q[52]=H,q[53]=I;else I=q[53];let K;if(q[54]!==Aq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==wq)K=Q(L,{flexDirection:"column",width:Aq,children:[G,N,R,U,wq,I]}),q[54]=Aq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=wq,q[61]=K;else K=q[61];let W;if(q[62]!==H||q[63]!==r)W=J(L,{children:Q(O,{dimColor:H,children:[r," to undo"]})}),q[62]=H,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==H)v=Xq()!=="windows"&&J(L,{children:J(O,{dimColor:H,children:"ctrl + z to suspend"})}),q[65]=H,q[66]=v;else v=q[66];let X;if(q[67]!==H||q[68]!==Zq)X=J(L,{children:Q(O,{dimColor:H,children:[Zq," to paste images"]})}),q[67]=H,q[68]=Zq,q[69]=X;else X=q[69];let b;if(q[70]!==H||q[71]!==Jq)b=J(L,{children:Q(O,{dimColor:H,children:[Jq," to switch model"]})}),q[70]=H,q[71]=Jq,q[72]=b;else b=q[72];let M;if(q[73]!==H||q[74]!==Oq)M=bq()&&Mq()&&J(L,{children:Q(O,{dimColor:H,children:[Oq," to toggle fast mode"]})}),q[73]=H,q[74]=Oq,q[75]=M;else M=q[75];let P;if(q[76]!==H||q[77]!==o)P=J(L,{children:Q(O,{dimColor:H,children:[o," to stash prompt"]})}),q[76]=H,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==H||q[80]!==Tq)E=J(L,{children:Q(O,{dimColor:H,children:[Tq," to edit in $EDITOR"]})}),q[79]=H,q[80]=Tq,q[81]=E;else E=q[81];let g;if(q[82]!==H)g=Pq()&&J(L,{children:J(O,{dimColor:H,children:"/keybindings to customize"})}),q[82]=H,q[83]=g;else g=q[83];let _;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)_=Q(L,{flexDirection:"column",children:[W,v,X,b,J(L,{children:Q(O,{dimColor:H,children:[gq," to change effort"]})}),M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=_;else _=q[92];let c;if(q[93]!==x||q[94]!==l||q[95]!==F||q[96]!==K||q[97]!==_)c=Q(L,{paddingX:l,flexDirection:"row",gap:x,children:[F,K,_]}),q[93]=x,q[94]=l,q[95]=F,q[96]=K,q[97]=_,q[98]=c;else c=q[98];return c}var Eq;var cq=Gq(()=>{hq();jq();uq();Cq();nq();Sq();Wq();vq();Eq=yq(aq(),1)});
|
|
2
|
-
export{dq as wf,eq as xf,Wq as yf,LH as zf,cq as Af};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$i as H,bj as m}from"./cli-1.1.19-7zdwszrb.mjs";import{cj as k,dj as y}from"./cli-1.1.19-aj7yfbb6.mjs";import{o4 as G,p4 as f}from"./cli-1.1.19-4dp1vkze.mjs";import{D4 as R,w4 as X,y4 as Y}from"./cli-1.1.19-3jjgtf8t.mjs";import{F4 as B,G4 as C}from"./cli-1.1.19-6jvzyjts.mjs";import{B8 as w,Q8 as E}from"./cli-1.1.19-m8w4as34.mjs";import{Wga as Q,_ea as S,bfa as j,cha as D,wfa as x}from"./cli-1.1.19-dt84yfk2.mjs";import{Xja as V,Yja as b}from"./cli-1.1.19-q5kbe656.mjs";import{Ksa as I,ssa as W}from"./cli-1.1.19-awkva6qc.mjs";import{kta as Z}from"./cli-1.1.19-cc266ybe.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=w(),N=L==="team"||L==="enterprise";if(!G()&&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 B(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();m();y();E();f();C();x();D()});
|
|
2
|
-
export{i as Yi,A as Zi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Xra as M,Yra as Y}from"./cli-1.1.19-f1vb0eyp.mjs";import{kta as W}from"./cli-1.1.19-cc266ybe.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDIN_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
|
|
2
|
-
export{$ as Ila,N as Jla,X as Kla,_ as Lla,j as Mla,U as Nla,I as Ola,S as Pla,T as Qla,c as Rla,L as Sla,w as Tla,z as Ula,k as Vla};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ita as j}from"./cli-1.1.19-cc266ybe.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.8"});
|
|
2
|
-
export{Lt as g4};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{H1 as Aq,_0 as z,e1 as Bq,f1 as xq}from"./cli-1.1.19-v619rbr5.mjs";import{k9 as H,l9 as Rq}from"./cli-1.1.19-kjhw0mpy.mjs";import{$aa as $q,Bea as l,Dea as Gq,Iba as W,Kba as jq,Maa as p,O$ as Yq,O_ as G,P$ as wq,Q_ as o,Taa as zq,Wga as v,Yaa as Zq,_ea as _,aba as Mq,bfa as R,cha as a,hfa as N,ifa as m,wfa as b}from"./cli-1.1.19-dt84yfk2.mjs";import{jja as T,lja as Wq}from"./cli-1.1.19-mrft54r6.mjs";import{Fka as Qq,Gka as Xq,Kka as _q,Oka as c,Ska as Hq}from"./cli-1.1.19-cq5hegwz.mjs";import{Fla as E,Hla as Uq}from"./cli-1.1.19-eyhpgp73.mjs";import{Xra as s,Yra as Lq}from"./cli-1.1.19-f1vb0eyp.mjs";import{kta as A}from"./cli-1.1.19-cc266ybe.mjs";function h(){let q=l(T(),c().existsSync)!==null,J=p(T());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:J},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:q,isCompletable:!0,isEnabled:!J}]}function I(){return h().filter(({isCompletable:q,isEnabled:J})=>q&&J).every(({isComplete:q})=>q)}var y=A(()=>{Wq();zq();Hq();Gq()});function i(){if(N().hasCompletedProjectOnboarding)return;if(I())m((q)=>({...q,hasCompletedProjectOnboarding:!0}))}var lq;var n=A(()=>{Lq();b();y();y();lq=s(()=>{let q=N();if(q.hasCompletedProjectOnboarding||q.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!I()})});import{stat as r}from"fs/promises";import{homedir as Vq}from"os";import{join as vq}from"path";function Oq(q){_((J)=>({...J,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:q}))}function U(){_((q)=>({...q,appleTerminalSetupInProgress:!1}))}function Fq(){let q=R();return{inProgress:q.appleTerminalSetupInProgress??!1,backupPath:q.appleTerminalBackupPath||null}}function w(){return vq(Vq(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let q=w(),J=`${q}.bak`;try{let{code:K}=await G("defaults",["export","com.apple.Terminal",q]);if(K!==0)return null;try{await r(q)}catch{return null}return await G("defaults",["export","com.apple.Terminal",J]),Oq(J),J}catch(K){return v(K),null}}async function e(){let{inProgress:q,backupPath:J}=Fq();if(!q)return{status:"no_backup"};if(!J)return U(),{status:"no_backup"};try{await r(J)}catch{return U(),{status:"no_backup"}}try{let{code:K}=await G("defaults",["import","com.apple.Terminal",J]);if(K!==0)return{status:"failed",backupPath:J};return await G("killall",["cfprefsd"]),U(),{status:"restored"}}catch(K){return v(Error(`Failed to restore Terminal.app settings with: ${K}`)),U(),{status:"failed",backupPath:J}}}var qq=A(()=>{b();o();a()});import{randomBytes as k}from"crypto";import{copyFile as g,mkdir as f,readFile as u,writeFile as P}from"fs/promises";import{homedir as d,platform as S}from"os";import{dirname as Iq,join as O}from"path";import{pathToFileURL as Sq}from"url";function Dq(){let q=process.env.VSCODE_GIT_ASKPASS_MAIN??"",J=process.env.PATH??"";return q.includes(".vscode-server")||q.includes(".cursor-server")||q.includes(".windsurf-server")||J.includes(".vscode-server")||J.includes(".cursor-server")||J.includes(".windsurf-server")}function FJ(){if(!W.terminal||!(W.terminal in D))return null;return D[W.terminal]??null}function L(q){if(!Bq())return q;return`\x1B]8;;${Sq(q).href}\x07${q}\x1B]8;;\x07`}function Eq(){return S()==="darwin"&&W.terminal==="Apple_Terminal"||W.terminal==="vscode"||W.terminal==="cursor"||W.terminal==="windsurf"||W.terminal==="alacritty"||W.terminal==="zed"}async function Tq(q){let J="";switch(W.terminal){case"Apple_Terminal":J=await yq(q);break;case"vscode":J=await C("VSCode",q);break;case"cursor":J=await C("Cursor",q);break;case"windsurf":J=await C("Windsurf",q);break;case"alacritty":J=await Nq(q);break;case"zed":J=await bq(q);break;case null:break}return _((K)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(W.terminal??"")){if(K.shiftEnterKeyBindingInstalled===!0)return K;return{...K,shiftEnterKeyBindingInstalled:!0}}else if(W.terminal==="Apple_Terminal"){if(K.optionAsMetaKeyInstalled===!0)return K;return{...K,optionAsMetaKeyInstalled:!0}}return K}),i(),J}function UJ(){return R().shiftEnterKeyBindingInstalled===!0}function _J(){return R().hasUsedBackslashReturn===!0}function RJ(){if(!R().hasUsedBackslashReturn)_((J)=>({...J,hasUsedBackslashReturn:!0}))}async function wJ(q,J,K){if(W.terminal&&W.terminal in D){let X=`Shift+Enter is natively supported in ${D[W.terminal]}.
|
|
2
|
-
|
|
3
|
-
No configuration needed. Just use Shift+Enter to add newlines.`;return q(X),null}if(!Eq()){let X=W.terminal||"your current terminal",Y=Yq(),B="";if(Y==="macos")B=` • macOS: Apple Terminal
|
|
4
|
-
`;else if(Y==="windows")B=` • Windows: Windows Terminal
|
|
5
|
-
`;let Z=`Terminal setup cannot be run from ${X}.
|
|
6
|
-
|
|
7
|
-
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
-
${H.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
-
|
|
10
|
-
To set up the shortcut (optional):
|
|
11
|
-
1. Exit tmux/screen temporarily
|
|
12
|
-
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
-
${B} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
-
• Other: Alacritty
|
|
15
|
-
3. Return to tmux/screen - settings will persist
|
|
16
|
-
|
|
17
|
-
${H.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return q(Z),null}let $=await Tq(J.options.theme);return q($),null}async function C(q="VSCode",J){if(Dq())return`${z("warning",J)(`Cannot install keybindings from a remote ${q} session.`)}${Q}${Q}${q} keybindings must be installed on your local machine, not the remote server.${Q}${Q}To install the Shift+Enter keybinding:${Q}1. Open ${q} on your local machine (not connected to remote)${Q}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${Q}3. Add this keybinding (the file must be a JSON array):${Q}${Q}${H.dim(`[
|
|
18
|
-
{
|
|
19
|
-
"key": "shift+enter",
|
|
20
|
-
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
-
"args": { "text": "\\u001b\\r" },
|
|
22
|
-
"when": "terminalFocus"
|
|
23
|
-
}
|
|
24
|
-
]`)}${Q}`;let K=q==="VSCode"?"Code":q,$=O(d(),S()==="win32"?O("AppData","Roaming",K,"User"):S()==="darwin"?O("Library","Application Support",K,"User"):O(".config",K,"User")),X=O($,"keybindings.json");try{await f($,{recursive:!0});let Y="[]",B=[],Z=!1;try{Y=await u(X,{encoding:"utf-8"}),Z=!0,B=Zq(Y)??[]}catch(V){if(!E(V))throw V}if(Z){let V=k(4).toString("hex"),x=`${X}.${V}.bak`;try{await g(X,x)}catch{return`${z("warning",J)(`Error backing up existing ${q} terminal keybindings. Bailing out.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(x)}`)}${Q}`}}if(B.find((V)=>V.key==="shift+enter"&&V.command==="workbench.action.terminal.sendSequence"&&V.when==="terminalFocus"))return`${z("warning",J)(`Found existing ${q} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let j=$q(Y,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await P(X,j,{encoding:"utf-8"}),`${z("success",J)(`Installed ${q} terminal Shift+Enter key binding`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Y){throw v(Y),Error(`Failed to install ${q} terminal Shift+Enter key binding`)}}async function Jq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':useOptionAsMetaKey bool true`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':useOptionAsMetaKey true`,w()]);if(K!==0)return v(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${q}`)),!1}return!0}async function Kq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':Bell bool false`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':Bell false`,w()]);if(K!==0)return v(Error(`Failed to disable audio bell for Terminal.app profile: ${q}`)),!1}return!0}async function yq(q){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:K,code:$}=await G("defaults",["read","com.apple.Terminal","Default Window Settings"]);if($!==0||!K.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:X,code:Y}=await G("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(Y!==0||!X.trim())throw Error("Failed to read startup Terminal.app profile");let B=!1,Z=K.trim(),F=await Jq(Z),M=await Kq(Z);if(F||M)B=!0;let j=X.trim();if(j!==Z){let V=await Jq(j),x=await Kq(j);if(V||x)B=!0}if(!B)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await G("killall",["cfprefsd"]),U(),`${z("success",q)("Configured Terminal.app settings:")}${Q}${z("success",q)('- Enabled "Use Option as Meta key"')}${Q}${z("success",q)("- Switched to visual bell")}${Q}${H.dim("Option+Enter will now enter a newline.")}${Q}${H.dim("You must restart Terminal.app for changes to take effect.",q)}${Q}`}catch(J){v(J);let K=await e(),$="Failed to enable Option as Meta key for Terminal.app.";if(K.status==="restored")throw Error(`${$} Your settings have been restored from backup.`);else if(K.status==="failed")throw Error(`${$} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${K.backupPath}`);else throw Error(`${$} No backup was available to restore from.`)}}async function Nq(q){let K=[],$=process.env.XDG_CONFIG_HOME;if($)K.push(O($,"alacritty","alacritty.toml"));else K.push(O(d(),".config","alacritty","alacritty.toml"));if(S()==="win32"){let Z=process.env.APPDATA;if(Z)K.push(O(Z,"alacritty","alacritty.toml"))}let X=null,Y="",B=!1;for(let Z of K)try{Y=await u(Z,{encoding:"utf-8"}),X=Z,B=!0;break}catch(F){if(!E(F))throw F}if(!X)X=K[0]??null;if(!X)throw Error("No valid config path found for Alacritty");try{if(B){if(Y.includes('mods = "Shift"')&&Y.includes('key = "Return"'))return`${z("warning",q)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let F=k(4).toString("hex"),M=`${X}.${F}.bak`;try{await g(X,M)}catch{return`${z("warning",q)("Error backing up existing Alacritty config. Bailing out.")}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(M)}`)}${Q}`}}else await f(Iq(X),{recursive:!0});let Z=Y;if(Y&&!Y.endsWith(`
|
|
25
|
-
`))Z+=`
|
|
26
|
-
`;return Z+=`
|
|
27
|
-
[[keyboard.bindings]]
|
|
28
|
-
key = "Return"
|
|
29
|
-
mods = "Shift"
|
|
30
|
-
chars = "\\u001B\\r"
|
|
31
|
-
`,await P(X,Z,{encoding:"utf-8"}),`${z("success",q)("Installed Alacritty Shift+Enter key binding")}${Q}${z("success",q)("You may need to restart Alacritty for changes to take effect")}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Z){throw v(Z),Error("Failed to install Alacritty Shift+Enter key binding")}}async function bq(q){let J=O(d(),".config","zed"),K=O(J,"keymap.json");try{await f(J,{recursive:!0});let $="[]",X=!1;try{$=await u(K,{encoding:"utf-8"}),X=!0}catch(B){if(!E(B))throw B}if(X){if($.includes("shift-enter"))return`${z("warning",q)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(K)}`)}${Q}`;let B=k(4).toString("hex"),Z=`${K}.${B}.bak`;try{await g(K,Z)}catch{return`${z("warning",q)("Error backing up existing Zed keymap. Bailing out.")}${Q}${H.dim(`See ${L(K)}`)}${Q}${H.dim(`Backup path: ${L(Z)}`)}${Q}`}}let Y;try{if(Y=Xq($),!Array.isArray(Y))Y=[]}catch{Y=[]}return Y.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await P(K,Qq(Y,null,2)+`
|
|
32
|
-
`,{encoding:"utf-8"}),`${z("success",q)("Installed Zed Shift+Enter key binding")}${Q}${H.dim(`See ${L(K)}`)}${Q}`}catch($){throw v($),Error("Failed to install Zed Shift+Enter key binding")}}var Q=`
|
|
33
|
-
`,D;var Cq=A(()=>{Rq();xq();Aq();n();qq();b();jq();Uq();o();Mq();a();wq();_q();D={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
-
export{i as ZY,n as _Y,e as $Y,qq as aZ,FJ as bZ,Eq as cZ,Tq as dZ,UJ as eZ,_J as fZ,RJ as gZ,wJ as hZ,Cq as iZ};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{fta as Z}from"./cli-1.1.19-e5k83shq.mjs";import{ita as Y,lta as O}from"./cli-1.1.19-cc266ybe.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
-
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
-
export{ye as _sa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ed as x,Fd as o}from"./cli-1.1.19-d00hzr89.mjs";import{GL as R,JL as i,MD as M,MM as W,PM as t,SD as l,hv as Z,nv as v,rp as Y,sz as $,tp as g,tz as d,uL as O,vL as a,wA as K,xz as y,yA as m,zz as u}from"./cli-1.1.19-hqbspnvc.mjs";import{Wga as X,cha as h}from"./cli-1.1.19-dt84yfk2.mjs";import{ala as I,dla as c}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as V,Hla as f}from"./cli-1.1.19-eyhpgp73.mjs";import{Fna as U,yra as _}from"./cli-1.1.19-gw9jb8fv.mjs";import{kta as C}from"./cli-1.1.19-cc266ybe.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
|
|
2
|
-
export{Lj as Ad,p as Bd};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{O_ as Q,Q_ as M,bfa as P,wfa as R}from"./cli-1.1.19-dt84yfk2.mjs";import{ala as G,dla as C}from"./cli-1.1.19-cq5hegwz.mjs";import{kta as j}from"./cli-1.1.19-cc266ybe.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function k(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function U(q){let z=q.split(`
|
|
2
|
-
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of k()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function B(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return U(J)}async function N(){for(let q of v)if(await _(q))return q;return null}async function f(){if(Z!==void 0)return Z;try{let q=await B();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await N();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await f();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var m=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
-
export{g as E4,w as F4,m as G4};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{bX as Q,gX as w}from"./cli-1.1.19-9nfxc159.mjs";import{A2 as x,C2 as j}from"./cli-1.1.19-ztvzhgye.mjs";import{$ha as K,mia as Y}from"./cli-1.1.19-x6xnsxay.mjs";import{cja as k,eja as Z,fja as M,gja as $}from"./cli-1.1.19-ybe27dz9.mjs";import{kta as X}from"./cli-1.1.19-cc266ybe.mjs";async function W(){let q=await K("tengu_bridge_repl_v2_config",J),H=y().safeParse(q);return H.success?H.data:J}async function p(){let q=await W();if(q.min_version&&x("99.0.0",q.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${q.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function A(){if(!Q())return!1;return(await W()).should_show_app_upgrade_message}var J,y;var P=X(()=>{Z();Y();$();j();w();J={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},y=M(()=>k.object({init_retry_max_attempts:k.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:k.number().int().min(100).default(500),init_retry_jitter_fraction:k.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:k.number().int().min(500).default(4000),http_timeout_ms:k.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:k.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:k.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:k.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:k.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:k.number().int().min(500).max(2000).default(1500),connect_timeout_ms:k.number().int().min(5000).max(60000).default(15000),min_version:k.string().refine((q)=>{try{return x(q,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:k.boolean().default(!1)}))});
|
|
3
|
-
export{J as ec,W as fc,p as gc,A as hc,P as ic};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{GS as jJ,HS as $V,Yo as IJ,_o as pJ,gj as cJ,hS as UJ,nL as DJ,oL as BJ,pL as lJ}from"./cli-1.1.19-hqbspnvc.mjs";import{M$ as mJ,P_ as p,Q_ as fJ,V$ as qJ,Wga as G,Z$ as gJ,Zda as m,bfa as YJ,cha as dJ,j$ as WJ,kea as uJ,o$ as l,wfa as hJ}from"./cli-1.1.19-dt84yfk2.mjs";import{jja as U,lja as PJ}from"./cli-1.1.19-mrft54r6.mjs";import{Zja as f,aka as SJ}from"./cli-1.1.19-bg1d8zv9.mjs";import{Oka as VJ,Ska as bJ,ala as Q,dla as kJ}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as JJ,Hla as yJ}from"./cli-1.1.19-eyhpgp73.mjs";import{vna as AJ,wna as zJ}from"./cli-1.1.19-gw9jb8fv.mjs";import{gta as wJ,kta as _J}from"./cli-1.1.19-cc266ybe.mjs";class c{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],q=-1/0,{paths:I,lowerPaths:A,charBits:F,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((F[M]&$)!==$)continue;let B=Z?I[M]:A[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let N=1;N<Y;N++){if(E=B.indexOf(X[N],h+1),E===-1)continue J;y[N]=E;let K=E-h-1;if(K===0)u+=4;else C+=3+K*1;h=E}if(H.length===W&&_+u-C<=q)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let N=1;N<Y;N++)T+=HJ(S,y[N],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((N,K)=>N.fuzzScore-K.fuzzScore),q=H[0].fuzzScore}else if(T>q){let N=0,K=H.length;while(N<K){let d=N+K>>1;if(H[d].fuzzScore<T)N=d+1;else K=d}H.splice(N,0,{path:S,fuzzScore:T}),H.shift(),q=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!x)x=new c;return x}function vV(){x=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function FJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!x||L.length===0)return;let W=await KJ(J),Z=[...L,...$J,...XJ,...J,...W],V=FJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await x.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=xJ.default(),_=!1,H=X.flatMap((A)=>Y.map((F)=>O.join(A,F))),q=await Promise.all(H.map((A)=>V.readFile(A,{encoding:"utf8"}).catch(()=>null)));for(let[A,F]of q.entries()){if(F===null)continue;$.add(F),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[A]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await p(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
|
|
2
|
-
`).filter(Boolean),H=OJ(_,V,Y),q=await EJ(V,Y);if(q){let A=H.length;H=q.filter(H),Q(`[FileIndex] applied ignore patterns: ${A} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let A=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],F=R;k=p(l(),A,{timeout:1e4,cwd:V}).then(async(j)=>{if(F!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
|
|
3
|
-
`).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function KJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],q=await KJ(H);XJ=q;let I=[...q,...H],A=FJ(I);if(A!==r)await W.loadFromFileListAsync(I).done,r=A,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function NJ(){if(v)return;let J=sJ();if(x){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return NJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;NJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=x?VV(x,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var xJ,x=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();pJ();uJ();zJ();xJ=wJ(cJ(),1);ZJ=AJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
|
|
4
|
-
export{c as mi,MJ as ni,jV as oi,vV as pi,RV as qi,GV as ri,NJ as si,CV as ti,LV as ui,ZV as vi};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{uc as y2,vc as iq}from"./cli-1.1.19-hdmxb06r.mjs";import{Bc as aq,wc as h4,xc as i0,yc as h0,zc as X2}from"./cli-1.1.19-3ep6p0sf.mjs";import{Cc as _0,Fc as nq}from"./cli-1.1.19-fqwvhznj.mjs";import{$p as lz,Aq as Z2,BG as S,CG as a2,Cq as Sz,Cr as N2,DG as pq,Dr as xq,SG as Vz,TG as Yq,UG as Xz,VG as yz,WG as Kz,XG as Wq,Yp as gz,Zp as xz,_p as cz,aq as $2,ay as V2,bq as G0,cq as L4,cy as lq,dq as pz,eq as vz,fq as Oq,gq as I4,hx as G2,iq as tz,ix as Y2,jq as J2,jx as W2,kx as m2,lq as rz,lx as cq,oI as o4,oq as jz,pI as i2,pq as bq,qq as Oz,rG as L0,rI as vq,rq as Uz,sG as s4,sI as dq,sq as Iz,tq as Pz,uq as J0,vq as b4,wq as Hq,xq as P4,zq as Tz}from"./cli-1.1.19-hqbspnvc.mjs";import{BY as a,DY as fq,PY as R2,QY as gq}from"./cli-1.1.19-d7wb13f8.mjs";import{H1 as l4,a1 as w,c1 as N}from"./cli-1.1.19-v619rbr5.mjs";import{I2 as p4,J2 as v4,K2 as d4,L2 as n4,M2 as a4,N2 as n2,Q2 as i4,U2 as t4,V2 as Q2,W2 as r4}from"./cli-1.1.19-a75p9zey.mjs";import{c4 as N0,d4 as $,e4 as y,f4 as x0}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as U0}from"./cli-1.1.19-5kaw3aa5.mjs";import{F4 as p0,G4 as Fz}from"./cli-1.1.19-6jvzyjts.mjs";import{O6 as a0,W4 as c4,Y4 as d2,f7 as Cq}from"./cli-1.1.19-m8w4as34.mjs";import{$fa as Gz,Afa as t0,Bfa as n,Dfa as v,Efa as n0,Ega as Aq,Gfa as P0,Hfa as w4,Ifa as R0,Jfa as Q0,Nfa as $0,Ofa as B4,Qfa as j4,Ufa as x4,Zfa as X4,_fa as Nz,aga as c0,bga as y4,cga as Yz,dga as V4,ega as Wz,fga as mz,gga as Gq,hga as O4,iga as Hz,jga as U4,lga as Lz,nga as q2,oga as r0,x_ as F0,xfa as z2,y_ as Sq,yfa as M0,zfa as kq}from"./cli-1.1.19-dt84yfk2.mjs";import{Pla as t,Vla as l0}from"./cli-1.1.19-5eb8a4wn.mjs";import{gta as O0,hta as Tq,kta as d}from"./cli-1.1.19-cc266ybe.mjs";function r2(z,q=G4,R){let J=n().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(J){if(!Q0(J.id,{provider:"openai",name:J.name,baseUrl:R||J.baseUrl,model:J.model||q,apiKey:z,extras:{...J.extras,githubToken:z}}))return{mode:"failed"};return $0(J.id),{mode:"updated"}}if(!R0({provider:"openai",name:"GitHub Copilot",baseUrl:R||t2,model:q,apiKey:z,extras:{githubToken:z}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function e4({onDone:z,onBack:q,onChangeAPIKey:R}){let J=i4()?.trim()?"already-authed":"menu",[G,m]=i.useState(J),[_,b]=i.useState(null),[M,K]=i.useState(""),[L,P]=i.useState(0),[U,k]=i.useState(null),h=i.useCallback(async(f,D=G4,Z0,I)=>{let p=t4(f,Z0,I?.enterpriseDomain);if(!p.success){b(p.warning??"Could not save token to secure storage."),m("error");return}if(r2(f,D,I?.baseUrl).mode==="failed"){b("Could not save the GitHub Copilot provider profile."),m("error");return}c4(),R?.(),z("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[R,z]),X=i.useCallback(async(f)=>{m("device-busy"),b(null),k(null);try{let D=await v4({domain:f});k({user_code:D.user_code,verification_uri:D.verification_uri}),await n4(D.verification_uri);let Z0=await d4(D.device_code,{initialInterval:D.interval,timeoutSeconds:D.expires_in,domain:f}),I=await a4(Z0,{domain:f});await h(I.token,G4,Z0,{baseUrl:I.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:f})}catch(D){b(D instanceof Error?D.message:String(D)),m("error")}},[h]);if(G==="already-authed")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot"}),$(N,{children:"You are already signed in to GitHub Copilot."}),$(N,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),$(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"back"}],onChange:(D)=>{if(D==="sign-in-again"){X();return}if(D==="enterprise"){m("enterprise-domain");return}if(q){q();return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="enterprise-domain")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Enterprise sign-in"}),$(N,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:">"}),$(L0,{value:M,onChange:K,onSubmit:()=>{let D=p4(M);if(!D){X();return}X(D)},onExit:()=>m(J),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:L,onChangeCursorOffset:P})]}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(G==="error"&&_)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",children:_}),$(S,{options:[{label:q?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(D)=>{if(D==="back"){if(q){q();return}m("menu"),b(null);return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="device-busy")return y(w,{flexDirection:"column",gap:1,children:[$(N,{children:"GitHub Copilot sign-in"}),U?y(N0,{children:[y(N,{children:["Enter code ",$(N,{bold:!0,children:U.user_code})," at"," ",U.verification_uri]}),$(N,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):$(N,{dimColor:!0,children:"Requesting device code from GitHub..."}),$(o4,{})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot setup"}),$(N,{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."}),$(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(f)=>{if(f==="cancel"){if(q){q();return}z("GitHub onboard cancelled",{display:"system"});return}if(f==="enterprise"){m("enterprise-domain");return}X()}})]})}var i,G4="github:copilot",t2="https://api.githubcopilot.com";var zz=d(()=>{a2();i2();s4();l4();n2();r4();d2();x4();x0();i=O0(U0(),1)});function Rz(z){return[z.name,z.family??"",...z.families??[],z.parameterSize??"",z.quantizationLevel??""].join(" ").toLowerCase()}function I0(z,q){return q.some((R)=>z.includes(R))}function zq(z){return!I0(Rz(z),qz)}function qq(z){return z.find(zq)??null}function Y4(z){let R=`${z.parameterSize??""} ${z.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(R?.[1])return Number(R[1]);if(typeof z.sizeBytes==="number"&&z.sizeBytes>0)return Number((z.sizeBytes/1e9).toFixed(1));return null}function Rq(z){return(z.quantizationLevel??z.name).toLowerCase()}function Qq(z,q,R){if(z===null)return R.push("unknown size"),0;if(q==="latency"){if(z<=4)return R.push("tiny model for low latency"),32;if(z<=8)return R.push("small model for fast responses"),26;if(z<=14)return R.push("mid-sized model with acceptable latency"),16;if(z<=24)return R.push("larger model may be slower"),8;return R.push("large model likely slower locally"),z<=40?0:-8}if(q==="coding"){if(z>=7&&z<=14)return R.push("strong coding size tier"),24;if(z>14&&z<=34)return R.push("large coding-capable size tier"),28;if(z>34)return R.push("very large model with higher quality potential"),18;return R.push("compact model may trade off coding depth"),12}if(z>=7&&z<=14)return R.push("great balanced size tier"),26;if(z>=3&&z<7)return R.push("compact balanced size tier"),18;if(z>14&&z<=24)return R.push("high quality balanced size tier"),20;if(z>24)return R.push("large model for quality-first usage"),10;return R.push("very small model for general usage"),8}function $q(z,q,R){let J=Rq(z);if(J.includes("q4"))return R.push("efficient Q4 quantization"),q==="latency"?8:4;if(J.includes("q5"))return R.push("balanced Q5 quantization"),q==="latency"?6:5;if(J.includes("q8"))return R.push("higher quality Q8 quantization"),q==="latency"?2:5;return 0}function Jq(z,q,R){if(q.score!==z.score)return q.score-z.score;let J=Y4(z)??Number.POSITIVE_INFINITY,G=Y4(q)??Number.POSITIVE_INFINITY;if(R==="latency")return J-G;if(R==="coding")return G-J;let m=14;return Math.abs(J-m)-Math.abs(G-m)}function W4(z,q){return z.map((R)=>{let J=Rz(R),G=[],m=0;if(I0(J,qz))m-=40,G.push("not a chat-first model");if(I0(J,s2))m+=q==="coding"?24:q==="balanced"?10:4,G.push("coding-oriented model family");if(I0(J,o2))m+=q==="latency"?4:q==="coding"?6:8,G.push("strong general-purpose model family");if(I0(J,e2))m+=q==="latency"?2:6,G.push("chat/instruct tuned");if(J.includes("vision")||J.includes("vl"))m-=2,G.push("vision model adds extra overhead");m+=Qq(Y4(R),q,G),m+=$q(R,q,G);let _=G.slice(0,3).join(", ");return{...R,score:m,reasons:G,summary:_}}).sort((R,J)=>Jq(R,J,q))}function Qz(z,q){return qq(W4(z,q))}var s2,o2,e2,qz;var $z=d(()=>{s2=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],o2=["llama","qwen","mistral","gemma","phi","deepseek"],e2=["instruct","chat","assistant"],qz=["embed","embedding","rerank","bge","whisper"]});function Nq(z){let q=z.toLowerCase();return Zq.some((R)=>q.includes(R))}function m4(z){try{let q=new URL(z);if(q.username)q.username="redacted";if(q.password)q.password="redacted";for(let R of q.searchParams.keys())if(Nq(R))q.searchParams.set(R,"redacted");return q.toString()}catch{return z.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 Zq;var Jz=d(()=>{Zq=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function mq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URL(`${X4}/oauth/authorize`);return R.searchParams.append("response_type","code"),R.searchParams.append("client_id",y4()),R.searchParams.append("redirect_uri",q),R.searchParams.append("scope",Nz),R.searchParams.append("code_challenge",z.codeChallenge),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("id_token_add_organizations","true"),R.searchParams.append("codex_cli_simplified_flow","true"),R.searchParams.append("state",z.state),R.searchParams.append("originator",Gz),R.toString()}function Vq(){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 Xq(z){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>${Wz(z)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function Zz(){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 yq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URLSearchParams({grant_type:"authorization_code",code:z.authorizationCode,redirect_uri:q,client_id:y4(),code_verifier:z.codeVerifier}),J=await fetch(`${X4}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:R,signal:z.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(K.trim()?`Codex OAuth token exchange failed (${J.status}): ${K.trim()}`:`Codex OAuth token exchange failed with status ${J.status}.`)}let G=await J.json(),m=c0(G.access_token),_=c0(G.refresh_token);if(!m||!_)throw Error("Codex OAuth completed, but the token response was missing credentials.");let b=c0(G.id_token);return{apiKey:b?await mz(b).catch(()=>{return}):void 0,accessToken:m,refreshToken:_,idToken:b,accountId:V4(b)??V4(m)}}class K4{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(z){let q=Xz(),R=Yz(),J=new Vz("/auth/callback");this.authCodeListener=J,this.port=null;try{let G=await J.start(R);this.port=G;let m=Kz(),_=await yz(q),b=mq({port:G,codeChallenge:_,state:m});try{let M=await J.waitForAuthorization(m,async()=>{await z(b)}),K=new AbortController;this.tokenExchangeAbortController=K;let L;try{L=await yq({authorizationCode:M,codeVerifier:q,port:G,signal:K.signal})}finally{if(this.tokenExchangeAbortController===K)this.tokenExchangeAbortController=null}if(this.authCodeListener!==J)throw this.buildCancellationError();return J.handleSuccessRedirect([],(P)=>{P.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),P.end(Vq())}),L}catch(M){let K=this.authCodeListener===J?M:this.buildCancellationError();if(J.hasPendingResponse()){let L=K instanceof Error&&K.message==="Codex OAuth flow was cancelled.";J.handleErrorRedirect((P)=>{P.writeHead(L?200:400,{"Content-Type":"text/html; charset=utf-8"}),P.end(L?Zz():Xq(K instanceof Error?K.message:String(K)))})}throw K}finally{this.cleanup()}}catch(G){let m=G instanceof Error?G.message:String(G);if(m.includes("EADDRINUSE")||m.includes(String(R)))throw Error(`Codex OAuth needs localhost:${R} for its callback. Close any app already using that port and try again.`);throw G}}cleanup(){let z=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(z),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end(Zz())});this.authCodeListener?.cancelPendingAuthorization(z),this.authCodeListener=null,this.port=null}}var bz=d(()=>{Yq();Wq();Gq()});function Kq(){return new K4}function Mz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Kq,J=z.deps?.openBrowser??p0,G=z.deps?.saveCodexCredentials??Hz,m=z.deps?.isBareMode??t,[_,b]=v0.useState({state:"starting"});return v0.useEffect(()=>{if(m()){b({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startOAuthFlow(async(L)=>{if(M)return;b({state:"waiting",authUrl:L,browserOpened:null});let P=await J(L);if(M)return;b({state:"waiting",authUrl:L,browserOpened:P})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=G({apiKey:L.apiKey,accessToken:L.accessToken,refreshToken:L.refreshToken,idToken:L.idToken,accountId:L.accountId,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;b({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,m,q,J,G]),_}var v0;var _z=d(()=>{bz();Fz();Lz();l0();v0=O0(U0(),1)});function Ez(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":jz()}}function Bz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function _q(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function wq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(Uz,{method:"POST",headers:Ez(),body:new URLSearchParams({client_id:b4(),scope:Pz}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`xAI device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=J0(G.device_code),_=J0(G.user_code),b=J0(G.verification_uri);if(!m||!_||!b)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:J0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:Dz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:hz/1000}}async function Bq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??_q,G=q?.now??(()=>Date.now()),m=Bz(z.expires_in,Dz),_=G()+m,b=Math.max(Bz(z.interval,hz),Lq);while(G()<_){if(q?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let M=await R(Oz,{method:"POST",headers:Ez(),body:new URLSearchParams({grant_type:Iz,client_id:b4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=J0(U.access_token),h=J0(U.refresh_token);if(!k||!h)throw Error("xAI OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:3600;return{accessToken:k,refreshToken:h,idToken:J0(U.id_token),expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Fq,Mq),await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(K.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`xAI device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("xAI device authorization timed out.")}class H4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await wq({signal:q.signal});return await z(R),await Bq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var hz=5000,Lq=1000,Fq=5000,Mq=60000,Dz=300000,wz=3000;var uz=d(()=>{bq();Hq()});function jq(){return new H4}function kz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??jq,J=z.deps?.saveXaiCredentials??Tz,G=z.deps?.isBareMode??t,[m,_]=d0.useState({state:"starting"});return d0.useEffect(()=>{if(G()){_({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let b=!1,M=R();return M.startDeviceFlow(async(K)=>{if(b)return;_({state:"waiting",userCode:K.user_code,verificationUri:K.verification_uri,verificationUriComplete:K.verification_uri_complete})}).then(async(K)=>{if(b)return;await q(K,(P)=>{let U=J({accessToken:K.accessToken,refreshToken:K.refreshToken,idToken:K.idToken,expiresAt:K.expiresAt,profileId:P?.profileId});if(!U.success)throw Error(U.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((K)=>{if(b)return;_({state:"error",message:K instanceof Error?K.message:String(K)})}),()=>{b=!0,M.cleanup()}},[R,G,q,J]),m}var d0;var Az=d(()=>{uz();l0();Sz();d0=O0(U0(),1)});async function az(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":lz,...await vz()}}function fz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function hq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function Dq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(gz,{method:"POST",headers:await az(),body:new URLSearchParams({client_id:L4()}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`Kimi device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=G0(G.device_code),_=G0(G.user_code),b=G0(G.verification_uri);if(!m||!_||!b)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:G0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:nz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:dz/1000}}async function Eq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??hq,G=q?.now??(()=>Date.now()),m=fz(z.expires_in,nz),_=G()+m,b=Math.max(fz(z.interval,dz),Uq);while(G()<_){if(q?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let M=await R(xz,{method:"POST",headers:await az(),body:new URLSearchParams({grant_type:cz,client_id:L4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=G0(U.access_token),h=G0(U.refresh_token);if(!k||!h)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:900;return{accessToken:k,refreshToken:h,expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Iq,Pq),await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(K.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`Kimi device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("Kimi device authorization timed out.")}class F4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await Dq({signal:q.signal});return await z(R),await Eq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var dz=5000,Uq=1000,Iq=5000,Pq=60000,nz=1800000,Cz=3000;var iz=d(()=>{Oq();pz()});function uq(){return new F4}function sz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??uq,J=z.deps?.saveKimiCredentials??tz,G=z.deps?.isBareMode??t,[m,_]=Y0.useState({state:"starting"}),b=Y0.useRef(!1);return Y0.useEffect(()=>{if(G()){_({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startDeviceFlow(async(L)=>{if(M)return;_({state:"waiting",userCode:L.user_code,verificationUri:L.verification_uri,verificationUriComplete:L.verification_uri_complete})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=J({accessToken:L.accessToken,refreshToken:L.refreshToken,expiresAt:L.expiresAt,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;_({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,G,q,J]),Y0.useEffect(()=>{if(m.state!=="waiting")return;if(b.current)return;let M=m.verificationUriComplete??m.verificationUri;if(!M)return;b.current=!0,p0(M).catch(()=>{})},[m]),m}var Y0;var oz=d(()=>{iz();Fz();l0();rz();Y0=O0(U0(),1)});function R1(z){return{name:z.name,baseUrl:z.baseUrl,model:z.model,apiKey:z.apiKey??""}}function Q1(z){let q=t0(z);return{name:q.name,baseUrl:q.baseUrl,model:q.model,apiKey:q.apiKey??""}}function $1(z){let q={};for(let R of z.split(/\r?\n/)){let J=R.trim();if(!J)continue;let G=J.indexOf(":");if(G<=0)continue;let m=J.slice(0,G).trim(),_=J.slice(G+1).trim();if(m&&_)q[m]=_}return q}function J1(z){if(!z)return"";return Object.entries(z).map(([q,R])=>`${q}: ${R}`).join(`
|
|
49
|
-
`)}function Z1(z,q){let R={},J=z.awsRegion?.trim();if(J)R.awsRegion=J;let G=z.gcpProject?.trim();if(G)R.gcpProject=G;let m=z.gcpRegion?.trim();if(m)R.gcpRegion=m;let _=z.azureResource?.trim();if(_)R.azureResource=_;let b=$1(q);if(Object.keys(b).length>0)R.customHeaders=b;return Object.keys(R).length>0?R:void 0}function G1(z,q){let R=q?" (active)":"",J=z.apiKey?"key set":"no key",G=z.provider==="anthropic"?"anthropic":"openai-compatible",m=z2(z.model),_=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${G} · ${z.baseUrl} · ${_} · ${J}${R}`}function Y1(z,q){if(z.state==="unreachable")return`Could not reach Atomic Chat at ${m4(q)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(z.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 W1(z,q){if(z.state==="unreachable")return`Could not reach Ollama at ${m4(q)}. Start Ollama first, or enter the endpoint manually.`;if(z.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(z.state==="generation_failed"){let R=z.probeModel??"the selected model",J=z.detail?` Details: ${z.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${R}.${J} Run "ollama run ${R}" once and retry, or enter details manually.`}return""}function _4(z,q){if(!q)return;return z.find((R)=>R.id===q)}function ez(z,q){return Boolean(z&&q&&z.id===q)}function m1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===D4&&!R.apiKey)}function V1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===r0&&!R.apiKey)}function X1(z,q){return z.find((R)=>R.provider==="anthropic"&&R.baseUrl===q&&!R.apiKey)}function y1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=Mz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Codex OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Codex OAuth"}),$(N,{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."}),J.state==="starting"?$(N,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):J.browserOpened===!1?y(N0,{children:[$(N,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),$(N,{children:J.authUrl})]}):J.browserOpened===!0?y(N0,{children:[$(N,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),$(N,{children:J.authUrl})]}):$(N,{dimColor:!0,children:"Opening your browser..."}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function K1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=kz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"xAI OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function b1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=sz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from Kimi..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function P8({mode:z,onDone:q}){let R=V2(),[J,G]=H.useState([]),[m,_]=H.useState(),[b,M]=H.useState(),[K,L]=H.useState(!1),[P,U]=H.useState(),k=H.useRef(0),[h,X]=H.useState(z==="first-run"?"select-preset":"menu"),[m0,f]=H.useState(null),[D,Z0]=H.useState("openai"),[I,p]=H.useState(()=>Q1("ollama")),[D0,E0]=H.useState({}),[E4,s0]=H.useState(""),[K2,b2]=H.useState(0),[H2,L2]=H.useState(0),[o0,u4]=H.useState(null),[V0,w0]=H.useState(0),[X0,r]=H.useState(0),[F2,s]=H.useState(0),[T4,u]=H.useState(),[y0,B]=H.useState(),[M2,_2]=H.useState(),[S4,u0]=H.useState(!1),[B0,j0]=H.useState(),[o,T0]=H.useState({state:"idle"}),[e,S0]=H.useState({state:"idle"}),[z0,e0]=H.useState({state:"idle"}),[w2,B2]=H.useState(!0),[j2,l]=H.useState(!1),z4=H.useRef(!1),[q4,R4]=H.useState(()=>h0()),[k4,O2]=H.useState(()=>X2());H.useEffect(()=>{queueMicrotask(()=>{let Q=n(),Z=v()?.id;G(Q),_(Z),M(n0()),U(w4()),L(P0()),B2(!1)})},[]);let K0=W0[X0]??W0[0],k0=K0.key,U2=I[k0],Q4=J.length>0,A0=Q4,A4=H.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...q4?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:P?`Currently: ${J.find((Q)=>Q.id===P)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!A0},{value:"activate-project",label:"Set active provider (Project)",description:b?`Currently: ${J.find((Q)=>Q.id===b)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!A0},...K?[{value:"clear-project-override",label:"Clear project provider override",description:b?"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:!Q4},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!A0},...S4?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[A0,Q4,S4,q4,P,b,J]),$4=H.useCallback(()=>{if(t()){k.current+=1,u0(!1),j0(void 0);return}let Q=++k.current;(async()=>{let Z=await O4();if(Q!==k.current)return;u0(Boolean(Z?.apiKey||Z?.accessToken||Z?.refreshToken||Z?.idToken)),j0(Z?.profileId)})()},[]);H.useEffect(()=>{return $4(),()=>{k.current+=1}},[$4]),H.useEffect(()=>{if(h!=="select-ollama-model")return;let Q=!1;return T0({state:"loading"}),(async()=>{let Z=await m2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)T0({state:"unavailable",message:W1(Z,I.baseUrl)});return}let Y=W4(Z.models,"balanced"),W=Qz(Z.models,"balanced");if(!Q)T0({state:"ready",defaultValue:W?.name??Y[0]?.name,options:Y.map((V)=>({label:V.name,value:V.name,description:V.summary}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-atomic-chat-model")return;let Q=!1;return S0({state:"loading"}),(async()=>{let Z=await W2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)S0({state:"unavailable",message:Y1(Z,I.baseUrl)});return}if(!Q)S0({state:"ready",defaultValue:Z.models[0],options:Z.models.map((Y)=>({label:Y,value:Y}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-openai-model")return;let Q=!1;return e0({state:"loading"}),(async()=>{let Z=await G2({baseUrl:I.baseUrl,apiKey:I.apiKey||void 0});if(Q)return;if(!Z||Z.length===0){e0({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:Y,defaultValue:W}=Y2(Z,I.model);e0({state:"ready",options:Y,defaultValue:W})})(),()=>{Q=!0}},[I.baseUrl,I.apiKey,h]);function A(){if(z4.current)return;z4.current=!0,queueMicrotask(()=>{let Q=n();G(Q),_(v()?.id),M(n0()),U(w4()),L(P0()),$4(),z4.current=!1})}function b0(){return null}function J4(Q){if(Q.activationWarning)return`${Q.prefix}. Saved for next startup. Warning: ${Q.warnings.join("; ")}.`;if(Q.warnings.length>0)return`${Q.prefix}. Claudin switched to it for this session with warnings: ${Q.warnings.join("; ")}.`;return`${Q.prefix}. Claudin switched to it for this session.`}async function Z4(Q){if(Q?.accessToken&&Q.accountId)return null;let Z=await O4();if(!Z)return"stored Codex OAuth credentials could not be loaded";if(!Z.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function C4(){N2()}async function I2(Q){let Z="provider";l(!0),u("Activating provider...");try{await new Promise((q0)=>queueMicrotask(q0));let Y=P0(),W=$0(Q);if(!W){B("Could not change active provider."),l(!1),O();return}let V=Y?v()??W:W,F=M0(V.model)||a0();if(!Y)R((q0)=>({...q0,mainLoopModel:F,mainLoopModelForSession:null}));Z=W.name;let j=b0(),E=ez(W,B0),x=E?await Z4():null;A();let c=Y&&V.id!==W.id?` (project override still active — this project keeps using ${V.name}; use "Clear project provider override" to apply the new default here)`:"",C=E?J4({prefix:`Active provider: ${W.name}${c}`,activationWarning:x,warnings:[x,j?`could not clear startup provider override (${j})`:null].filter((q0)=>Boolean(q0))}):j?`Active provider: ${W.name}${c}. Warning: could not clear startup provider override (${j}).`:`Active provider: ${W.name}${c}`;u(C),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:F,message:`Provider switched to ${W.name} (${F})`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish activating ${Z}: ${W}`),O()}}async function P2(){l(!0),u("Clearing project provider override...");try{await new Promise((Z)=>queueMicrotask(Z)),B4(null),A();let Q=v();if(Q){let Z=M0(Q.model)||a0();_0(),R((Y)=>({...Y,mainLoopModel:Z,mainLoopModelForSession:null})),u(`Project override cleared. Using global default: ${Q.name}.`),l(!1),q({action:"activated",activeProfileId:Q.id,activeProviderName:Q.name,activeProviderModel:Z,message:`Project override cleared — using ${Q.name} (${Z})`}),O()}else u("Project provider override cleared. No global default set."),l(!1),q({action:"saved",message:"Project provider override cleared. No global default set."}),O()}catch(Q){A(),u(void 0),l(!1);let Z=Q instanceof Error?Q.message:String(Q);B(`Could not clear project provider override: ${Z}`),O()}}async function h2(Q){let Z="provider";l(!0),u("Setting provider for this project...");try{await new Promise((C)=>queueMicrotask(C));let Y=n0(),W=B4(Q);if(!W){B("Could not set project provider override."),l(!1),O();return}let V=M0(W.model)||a0();if(Y===W.id)_0();R((C)=>({...C,mainLoopModel:V,mainLoopModelForSession:null})),Z=W.name;let F=b0(),j=ez(W,B0),E=j?await Z4():null;A();let x=`Active provider for this project: ${W.name}. Other projects keep the global default.`,c=j?J4({prefix:x,activationWarning:E,warnings:[E,F?`could not clear startup provider override (${F})`:null].filter((C)=>Boolean(C))}):F?`${x} Warning: could not clear startup provider override (${F}).`:x;u(c),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:V,message:`Provider switched to ${W.name} (${V}) for this project`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish setting ${Z} for this project: ${W}`),O()}}function O(){_2("done"),X("menu")}function C0(Q){q({action:"cancelled",message:Q})}function f4(Q){let Z=t0(Q),Y={name:Z.name,baseUrl:Z.baseUrl,model:Z.model,apiKey:Z.apiKey??""};if(f(null),Z0(Z.provider??"openai"),p(Y),E0({}),s0(""),u4(Q),r(0),w0(0),s(Y.name.length),B(void 0),Q==="ollama"){T0({state:"loading"}),X("select-ollama-model");return}if(Q==="atomic-chat"){S0({state:"loading"}),X("select-atomic-chat-model");return}if(Q==="anthropic"){X("anthropic-auth-choice");return}if(Q==="bedrock"||Q==="vertex"||Q==="foundry"){X("cloud-extras");return}X("form")}function D2(Q){let Z=J.find((W)=>W.id===Q);if(!Z)return;let Y=R1(Z);f(Q),Z0(Z.provider??"openai"),p(Y),E0({awsRegion:Z.extras?.awsRegion,gcpProject:Z.extras?.gcpProject,gcpRegion:Z.extras?.gcpRegion,azureResource:Z.extras?.azureResource}),s0(J1(Z.extras?.customHeaders)),u4(null),r(0),w0(0),s(Y.name.length),B(void 0),X("form")}function f0(Q=I){let Z=Z1(D0,E4),Y={provider:D,name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:Q.apiKey,extras:Z},W=m0?Q0(m0,Y):R0(Y,{makeActive:!0});if(!W){B("Could not save provider. Fill all required fields.");return}let V=v()?.id===W.id;if(V)_0(),R((c)=>({...c,mainLoopModel:M0(W.model),mainLoopModelForSession:null}));let F=V?b0():null;A();let j=!m0&&P0()&&!V,E=j?v()?.name??"override target":null,x=m0?`Updated provider: ${W.name}`:j?`Added provider: ${W.name} (now global default — project keeps using ${E}; use "Clear project provider override" to apply here)`:`Added provider: ${W.name} (now active)`;if(u(F?`${x}. Warning: could not clear startup provider override (${F}).`:x),z==="first-run"){q({action:"saved",activeProfileId:W.id,message:`Provider configured: ${W.name}`});return}f(null),r(0),B(void 0),O()}function E2(){if(e.state==="loading"||e.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),$(N,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(e.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Atomic Chat setup"}),$(N,{dimColor:!0,children:e.message}),$(S,{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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),$(N,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),$(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function u2(){if(o.state==="loading"||o.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Ollama"}),$(N,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(o.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Ollama setup"}),$(N,{dimColor:!0,children:o.message}),$(S,{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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Ollama model"}),$(N,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),$(S,{options:o.options,defaultValue:o.defaultValue,defaultFocusValue:o.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,o.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function H0(Q){let Z=W0.findIndex((Y)=>Y.key===Q);r(Z<0?0:Z),s(I[Q].length),B(void 0),X("form")}function T2(){if(z0.state==="loading"||z0.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Fetching models"}),$(N,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),$(N,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(z0.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:z0.message}),$(S,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(Y)=>{if(Y==="manual"){H0("model");return}H0("apiKey")},onCancel:()=>H0("apiKey"),visibleOptionCount:2})]});let Q=[...z0.options,{value:M4,label:"Enter a model id manually",description:"Type an id the provider did not list"}],Z=z0.defaultValue??M4;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),$(S,{options:Q,defaultValue:Z,defaultFocusValue:Z,inlineDescriptions:!0,visibleOptionCount:Math.min(8,Q.length),onChange:(Y)=>{if(Y===M4){H0("model");return}let W={...I,model:Y};p(W),g4(W)},onCancel:()=>H0("apiKey")}),$(N,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function g4(Q){if(o0==="anthropic"||o0==="custom"){p(Q),X("custom-headers");return}f0(Q)}function S2(Q){let Z=Q.trim();if(!K0.optional&&Z.length===0){B(`${K0.label} is required.`);return}let Y={...I,[k0]:Z};if(p(Y),B(void 0),X0<W0.length-1){let W=X0+1,V=W0[W]?.key??"name";if(V==="model"&&!tq.has(D)&&Y.baseUrl.trim().length>0){X("select-openai-model");return}r(W),s(Y[V].length);return}g4(Y)}function k2(){if(B(void 0),X0>0){let Q=X0-1,Z=W0[Q]?.key??"name";r(Q),s(I[Z].length);return}if(z==="first-run"){X("select-preset");return}O()}a("confirm:no",k2,{context:"Settings",isActive:h==="form"}),a("confirm:no",()=>H0("model"),{context:"Settings",isActive:h==="select-openai-model"&&(z0.state==="loading"||z0.state==="idle")});function A2(){if(B(void 0),V0>0){w0(V0-1);return}X("select-preset")}a("confirm:no",A2,{context:"Settings",isActive:h==="cloud-extras"}),a("confirm:no",()=>X("form"),{context:"Settings",isActive:h==="custom-headers"}),a("confirm:no",()=>X("select-preset"),{context:"Settings",isActive:h==="anthropic-auth-choice"||h==="anthropic-oauth"||h==="kimi-auth-choice"}),a("confirm:no",()=>X("kimi-auth-choice"),{context:"Settings",isActive:h==="kimi-oauth"});function C2(){let Q=!t(),Z=[...q4?[{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"},...Q?[{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",description:"API key or Kimi Code OAuth sign-in"},{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"},...z==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:z==="first-run"?"Set up provider":"Choose provider preset"}),$(N,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),$(S,{options:Z,onChange:(Y)=>{if(Y==="skip"){C0("Provider setup skipped");return}if(Y==="codex-oauth"){X("codex-oauth");return}if(Y==="xai-oauth"){X("xai-oauth");return}if(Y==="moonshotai"){X("kimi-auth-choice");return}if(Y==="github-onboard"){X("github-onboard");return}if(Y==="import-legacy"){(async()=>{let W=await h4({force:!0});R4(h0()),A();let V=i0(W);if(W.errors.length>0){B(V);return}let F=v();if(z==="first-run"&&F){q({action:"saved",activeProfileId:F.id,activeProviderName:F.name,activeProviderModel:F.model,message:V});return}if(u(V),B(void 0),z==="manage")O()})();return}f4(Y)},onCancel:()=>{if(z==="first-run"){C0("Provider setup skipped");return}O()},visibleOptionCount:Math.min(13,Z.length)})]})}function f2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),$(S,{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:(Q)=>{if(Q==="oauth"){X("anthropic-oauth");return}if(Q==="apiKey"){X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function g2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),$(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){X("kimi-oauth");return}if(Q==="apiKey"){f4("moonshotai");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function x2(){let Q=(dq(),Tq(vq)).ConsoleOAuthFlow;return $(w,{flexDirection:"column",gap:1,children:$(Q,{mode:"login",onDone:()=>{let Z=t0("anthropic"),Y={provider:"anthropic",name:Z.name,baseUrl:Z.baseUrl,model:Z.model},W=X1(n(),Z.baseUrl),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("OAuth completed, but the Anthropic profile could not be saved."),X("select-preset");return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("OAuth completed, but the Anthropic profile could not be set as the startup provider."),X("select-preset");return}let j=`Anthropic OAuth configured: ${F.name}`;if(A(),z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}})})}function c2(){let Q=o0;if(Q!=="bedrock"&&Q!=="vertex"&&Q!=="foundry")return null;let Z=N1[Q],Y=Z[V0]??Z[0],W=D0[Y.key]??"";function V(F){let j=F.trim();if(j.length===0){B(`${Y.label} is required.`);return}let E={...D0,[Y.key]:j};if(E0(E),B(void 0),V0<Z.length-1){w0(V0+1);return}w0(0),X("form")}return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:`${Q==="bedrock"?"AWS Bedrock":Q==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),$(N,{dimColor:!0,children:Y.helpText}),y(N,{dimColor:!0,children:["Step ",V0+1," of ",Z.length,": ",Y.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:W,onChange:(F)=>E0((j)=>({...j,[Y.key]:F})),onSubmit:V,focus:!0,showCursor:!0,placeholder:`${Y.placeholder}${F0.ellipsis}`,columns:80,cursorOffset:K2,onChangeCursorOffset:b2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function l2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(N,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",$(N,{children:"Header: Value"}),". Leave empty to skip."]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:E4,onChange:s0,onSubmit:()=>f0(I),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:H2,onChangeCursorOffset:L2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function p2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:m0?"Edit provider profile":"Create provider profile"}),$(N,{dimColor:!0,children:K0.helpText}),y(N,{dimColor:!0,children:["Provider type:"," ",D==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(N,{dimColor:!0,children:["Step ",X0+1," of ",W0.length,": ",K0.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:U2,onChange:(Q)=>p((Z)=>({...Z,[k0]:Q})),onSubmit:S2,focus:!0,showCursor:!0,placeholder:`${K0.placeholder}${F0.ellipsis}`,mask:k0==="apiKey"?"*":void 0,columns:80,cursorOffset:F2,onChangeCursorOffset:s})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function v2(){let Q=J.length>0,Z=Q;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Provider manager"}),$(N,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),T4&&$(N,{children:T4}),$(w,{flexDirection:"column",children:J.length===0?$(N,{dimColor:!0,children:"No provider profiles configured yet."}):J.map((Y)=>y(N,{dimColor:!0,children:["- ",Y.name,": ",G1(Y,Y.id===m)]},Y.id))}),$(S,{options:A4,onChange:(Y)=>{switch(B(void 0),Y){case"add":X("select-preset");break;case"import-legacy":{(async()=>{let W=await h4({force:!0});if(R4(h0()),A(),W.errors.length>0)B(i0(W));else u(i0(W))})();break}case"activate":if(Z)X("select-active");break;case"activate-project":if(Z)X("select-active-project");break;case"clear-project-override":P2();break;case"edit":if(Q)X("select-edit");break;case"delete":if(Z)X("select-delete");break;case"logout-codex-oauth":{let W=U4();if(!W.success){B(W.warning??"Could not clear Codex OAuth credentials.");break}u0(!1),j0(void 0);let V=_4(n(),B0),F=null;if(V){let j=j4(V.id);if(!j.removed){B("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),A();break}C4(),F=j.activeProfileId?b0():null}A(),u(F?`Codex OAuth logged out. Warning: could not clear startup provider override (${F}).`:"Codex OAuth logged out.");break}default:C0("Provider manager closed");break}},onCancel:()=>C0("Provider manager closed"),defaultFocusValue:M2,visibleOptionCount:A4.length})]})}function g0(Q,Z,Y){let W=J.map((V)=>{let F=[];if(V.id===m)F.push("active");if(b&&V.id===b)F.push("this project");if(P&&V.id===P)F.push("global default");let j=F.length>0?` (${F.join(", ")})`:"";return{value:V.id,label:`${V.name}${j}`,description:`${V.provider==="anthropic"?"anthropic":"openai-compatible"} · ${V.baseUrl} · ${V.model}`}});if(W.length===0)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(N,{dimColor:!0,children:Z}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>O(),onCancel:()=>O(),visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(S,{options:W,onChange:Y,onCancel:()=>O(),visibleOptionCount:Math.min(10,Math.max(2,W.length))})]})}let T;switch(h){case"select-preset":T=C2();break;case"select-ollama-model":T=u2();break;case"select-openai-model":T=T2();break;case"select-atomic-chat-model":T=E2();break;case"codex-oauth":T=$(y1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:rq,baseUrl:q2,model:sq,apiKey:""},W=_4(n(),B0),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Codex OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Codex OAuth login finished, but the provider could not be set as the startup provider."),O();return}Z({profileId:V.id});let j=b0(),E=await Z4(Q);u0(!0),j0(V.id),A();let x=[E,j?`could not clear startup provider override (${j})`:null].filter((C)=>Boolean(C)),c=J4({prefix:"Codex OAuth configured",activationWarning:E,warnings:x});if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:c});return}u(c),B(void 0),O()}});break;case"xai-oauth":T=$(K1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:oq,baseUrl:r0,model:eq,apiKey:""},W=V1(n(),P4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("xAI OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("xAI OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="xAI / Grok configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"kimi-auth-choice":T=g2();break;case"kimi-oauth":T=$(b1,{onBack:()=>X("kimi-auth-choice"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:z1,baseUrl:D4,model:q1,apiKey:""},W=m1(n(),I4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Kimi Code OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="Kimi Code configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"github-onboard":T=$(e4,{onDone:(Q)=>{if(Q)u(Q),B(void 0);A(),O()},onBack:()=>X("select-preset"),onChangeAPIKey:A});break;case"anthropic-auth-choice":T=f2();break;case"anthropic-oauth":T=x2();break;case"cloud-extras":T=c2();break;case"custom-headers":T=l2();break;case"form":T=p2();break;case"select-active":T=g0("Set active provider (Global)","No providers available. Add one first.",(Q)=>{I2(Q)});break;case"select-active-project":T=g0("Set active provider (Project)","No providers available. Add one first.",(Q)=>{h2(Q)});break;case"select-edit":T=g0("Edit provider","No providers available. Add one first.",(Q)=>{D2(Q)});break;case"select-delete":T=g0("Delete provider","No providers available. Add one first.",(Q)=>{let Z=J.find((C)=>C.id===Q),Y=Z?.provider==="openai"&&Z?.extras?.githubToken!==void 0,W=_4(J,B0)?.id===Q,V=P4()?.profileId,F=Z?.provider==="openai"&&Z.baseUrl===r0&&!Z.apiKey&&V===Q,j=I4()?.profileId,E=Z?.provider==="openai"&&Z.baseUrl===D4&&!Z.apiKey&&j===Q,x=v()?.id===Q,c=j4(Q);if(!c.removed)B("Could not delete provider.");else{let C=[];if(W){let g=U4();if(!g.success)C.push(g.warning??"could not clear Codex OAuth credentials");else j0(void 0);C4()}if(Y){let g=Q2();if(!g.success)C.push(g.warning??"could not clear GitHub Copilot token")}if(F){let g=Z2();if(!g.success)C.push(g.warning??"could not clear xAI OAuth credentials")}if(E){let g=J2();if(!g.success)C.push(g.warning??"could not clear Kimi Code OAuth credentials")}let q0=c.activeProfileId?b0():null;if(q0)C.push(`could not clear startup provider override (${q0})`);if(A(),x){let g=v();if(g)_0(),R((N4)=>({...N4,mainLoopModel:M0(g.model),mainLoopModelForSession:null}));else _0(),R((N4)=>({...N4,mainLoopModel:null,mainLoopModelForSession:null}))}u(C.length>0?`Provider deleted. Warning: ${C.join("; ")}.`:"Provider deleted")}O()});break;case"menu":default:T=v2();break}return y(R2,{color:"permission",children:[$(y2,{enabled:k4,onDismiss:(Q)=>{R4(h0()),O2(!1),A();let Z=v();if(Q==="migrated"&&z==="first-run"&&Z)q({action:"saved",activeProfileId:Z.id,activeProviderName:Z.name,activeProviderModel:Z.model})}}),k4?null:w2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Loading providers..."}),$(N,{dimColor:!0,children:"Reading provider profiles from disk."})]}):j2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Activating provider..."}),$(N,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):T]})}var H,W0,M4="\x00__manual__",tq,rq="Codex OAuth",sq="codexplan",oq="xAI / Grok (OAuth)",eq="grok-4",z1="Moonshot AI",q1,D4="https://api.kimi.com/coding/v1",N1;var H1=d(()=>{Sq();zz();Aq();l4();fq();lq();nq();Lz();l0();kq();Cq();xq();x4();r4();cq();$z();Jz();pq();gq();iq();s4();_z();Az();oz();Sz();rz();pz();aq();x0();H=O0(U0(),1),W0=[{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:"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},{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.'}],tq=new Set(["anthropic","bedrock","vertex","foundry"]),q1=$2;N1={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{m4 as pc,Jz as qc,$1 as rc,P8 as sc,H1 as tc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{pb as d}from"./cli-1.1.19-caqq41md.mjs";import{AK as f,Ez as C,Fz as D,JT as Vj,Kz as Gj,Lk as $,Mk as n,Ol as P,Ot as h,Pl as R,Qt as qj,Rm as E,Sm as e,UT as F,Uk as v,Vk as r,XE as Jj,bT as m,cT as S,ck as O,dT as A,eS as Qj,ek as o,ev as k,fU as Xj,gD as I,hD as Hj,hm as s,hv as V,nv as zj,oT as c,ov as w,pv as Bj,um as y,vT as p,wT as X,zm as t}from"./cli-1.1.19-hqbspnvc.mjs";import{NV as jj,yV as W}from"./cli-1.1.19-c8xs9vjb.mjs";import{OX as x,RX as Kj}from"./cli-1.1.19-cjq368e9.mjs";import{_6 as T,f7 as u}from"./cli-1.1.19-m8w4as34.mjs";import{jja as Z,lja as i}from"./cli-1.1.19-mrft54r6.mjs";import{ala as b,dla as l}from"./cli-1.1.19-cq5hegwz.mjs";import{Cna as _,Hna as Y,Moa as M,Ooa as N,Uqa as K,yra as g,zna as U}from"./cli-1.1.19-gw9jb8fv.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();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=w().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(),!C(Q))D(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 Pa,Pj as Qa,Rj as Ra,Ej as Sa,gj as Ta,lj as Ua};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{C2 as N,x2 as S,y2 as D}from"./cli-1.1.19-ztvzhgye.mjs";import{Wga as X,_ea as B,bfa as O,cha as E,wea as H,wfa as d,xea as P}from"./cli-1.1.19-dt84yfk2.mjs";import{Hla as f,zla as U}from"./cli-1.1.19-eyhpgp73.mjs";import{Kla as W,Vla as b}from"./cli-1.1.19-5eb8a4wn.mjs";import{opa as T,yra as M}from"./cli-1.1.19-gw9jb8fv.mjs";import{Ksa as y,ssa as j}from"./cli-1.1.19-awkva6qc.mjs";import{gta as R,kta as p}from"./cli-1.1.19-cc266ybe.mjs";import{mkdir as G,readFile as m,writeFile as _}from"fs/promises";import{dirname as F,join as u}from"path";function I(){return u(W(),"cache","changelog.md")}async function Jq(){let J=O();if(!J.cachedChangelog)return;let q=I();try{await G(F(q),{recursive:!0}),await _(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}B(({cachedChangelog:Y,...z})=>z)}async function C(){if(T())return;if(H())return;let J=await j.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=I();await G(F(Y),{recursive:!0}),await _(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();B((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=I();try{let q=await m(J,"utf-8");return $=q,q}catch{return $="",""}}function A(){return $??""}function L(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
|
|
2
|
-
`);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let x=K.slice(1).filter((k)=>k.trim().startsWith("- ")).map((k)=>k.trim().substring(2).trim()).filter(Boolean);if(x.length>0)q[Z]=x}return q}catch(q){return X(U(q)),{}}}function l(J,q,Y=A()){try{let z=L(Y),K=w.coerce(J),Q=q?w.coerce(q):null;if(!Q||K&&D(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||D(Z,Q.version)).sort(([Z],[x])=>D(Z,x)?-1:1).flatMap(([Z,x])=>x).filter(Boolean).slice(0,V)}catch(z){return X(U(z)),[]}return[]}function Kq(J=A()){try{let q=L(J);return Object.keys(q).sort((z,K)=>D(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return X(U(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>X(U(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var w,V=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var c=p(()=>{y();M();d();b();f();E();P();N();w=R(S(),1)});
|
|
3
|
-
export{zq as cf,Jq as df,C as ef,h as ff,Kq as gf,Qq as hf,c as if};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$F as i,_F as L,aG as l,bG as E,cG as c,dG as w,eG as O,iG as y,jG as e}from"./cli-1.1.19-hqbspnvc.mjs";import{nY as x,oY as s}from"./cli-1.1.19-d7wb13f8.mjs";import{DZ as C,H1 as K,R0 as S,S0 as r,a1 as k,c1 as V,w1 as Q}from"./cli-1.1.19-v619rbr5.mjs";import{c4 as Y,d4 as P,e4 as v,f4 as _}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as t}from"./cli-1.1.19-5kaw3aa5.mjs";import{gta as p,kta as q}from"./cli-1.1.19-cc266ybe.mjs";function X1(J){let b=j.c(17),{query:$,placeholder:I,isFocused:W,isTerminalFocused:Z,prefix:N,width:H,cursorOffset:A,borderless:U}=J,G=I===void 0?"Search…":I,h=N===void 0?"⌕":N,m=U===void 0?!1:U,B=A??$.length,D=m?void 0:"round",g=W?"suggestion":void 0,d=!W,F=m?0:1,T=!W,X;if(b[0]!==W||b[1]!==Z||b[2]!==B||b[3]!==G||b[4]!==$)X=W?P(Y,{children:$?Z?v(Y,{children:[P(V,{children:$.slice(0,B)}),P(V,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&P(V,{children:$.slice(B+1)})]}):P(V,{children:$}):Z?v(Y,{children:[P(V,{inverse:!0,children:G.charAt(0)}),P(V,{dimColor:!0,children:G.slice(1)})]}):P(V,{dimColor:!0,children:G})}):$?P(V,{children:$}):P(V,{children:G}),b[0]=W,b[1]=Z,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=v(V,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let z;if(b[10]!==M||b[11]!==D||b[12]!==g||b[13]!==d||b[14]!==F||b[15]!==H)z=P(k,{flexShrink:0,borderStyle:D,borderColor:g,borderDimColor:d,paddingX:F,width:H,children:M}),b[10]=M,b[11]=D,b[12]=g,b[13]=d,b[14]=F,b[15]=H,b[16]=z;else z=b[16];return z}var j;var u=q(()=>{K();_();j=p(C(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function V1({isActive:J,onExit:b,onCancel:$,onExitUp:I,columns:W,passthroughCtrlKeys:Z=[],initialQuery:N="",backspaceExitsOnEmpty:H=!0}){let{columns:A}=x(),U=W??A,[G,h]=R.useState(N),[m,B]=R.useState(N.length),D=R.useCallback((d)=>{h(d),B(d.length)},[]),g=(d)=>{if(!J)return;let F=y.fromText(G,U,m);if(d.ctrl&&Z.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),I)I();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();L(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();L(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();L(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();L(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=i();if(T.length>0){let X=F.offset,M=F.insert(T);E(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:z}=T,f=G.slice(0,M),a=G.slice(M+z),n=f+X+a,o=M+X.length;w(X.length),h(n),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{g(new S(T.keypress))},{isActive:J}),{query:G,setQuery:D,cursorOffset:m,handleKeyDown:g}}var R,b1;var B1=q(()=>{r();K();e();s();R=p(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
|
|
2
|
-
export{X1 as th,u as uh,V1 as vh,B1 as wh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kta as B}from"./cli-1.1.19-cc266ybe.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
|
|
2
|
-
export{F as Ji,C as Ki};
|