@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,3 +0,0 @@
|
|
|
1
|
-
import{Pg as p,Qg as Aq}from"./cli-1.1.19-0zq6911y.mjs";import{JT as bq,LS as l,NS as Rq,xT as a}from"./cli-1.1.19-hqbspnvc.mjs";import{DZ as Zq,H1 as yq,a1 as j,c1 as K,w1 as c}from"./cli-1.1.19-v619rbr5.mjs";import{C2 as e,x2 as t,z2 as L}from"./cli-1.1.19-ztvzhgye.mjs";import{d4 as B,e4 as M,f4 as S}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as Yq}from"./cli-1.1.19-5kaw3aa5.mjs";import{F4 as $,G4 as Gq}from"./cli-1.1.19-6jvzyjts.mjs";import{O_ as y,Q_ as o,Taa as s,waa as m}from"./cli-1.1.19-dt84yfk2.mjs";import{jja as w,lja as r}from"./cli-1.1.19-mrft54r6.mjs";import{ala as U,dla as n}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as D,Hla as Xq}from"./cli-1.1.19-eyhpgp73.mjs";import{yra as i,zna as T}from"./cli-1.1.19-gw9jb8fv.mjs";import{gta as I,kta as h}from"./cli-1.1.19-cc266ybe.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return m("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await y("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await y("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await y("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>V.coerce(W)!==null).sort((W,P)=>{let A=V.coerce(W),R=V.coerce(P);return A.compare(R)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function v(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=V.coerce(q);if(!z||!L(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(U(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await y("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await y("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await y("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await y("cmd",["/c","start","",H]);return z===0}return!1}async function k(){let H=T();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var V,Hq="1.1.2396";var x=h(()=>{i();r();n();o();s();e();V=I(t(),1)});function Vq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function kq(H){let q=d.c(20),{onDone:z}=H,[Q,Y]=G.useState("checking"),[W,P]=G.useState(null),[A,R]=G.useState(""),b;if(q[0]!==W||q[1]!==z||q[2]!==Q)b=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")$(Vq()).catch(Kq),z(`Starting download. Re-run /desktop once you’ve installed the app.
|
|
2
|
-
Learn more at ${u}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${u}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=b;else b=q[3];c(b);let O,E;if(q[4]!==z)O=()=>{(async function(){Y("checking");let X=await v();if(X.status==="not-installed"){R("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){R(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await a(),Y("opening");let f=await k();if(!f.success){P(f.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Bq,500,z)})().catch((Z)=>{P(D(Z)),Y("error")})},E=[z],q[4]=z,q[5]=O,q[6]=E;else O=q[5],E=q[6];if(G.useEffect(O,E),Q==="error"){let J;if(q[7]!==W)J=M(K,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=B(K,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=M(j,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==A)J=B(K,{children:A}),q[12]=A,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=B(K,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=M(j,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let N=C[Q],F;if(q[18]!==N)F=B(p,{message:N}),q[18]=N,q[19]=F;else F=q[19];return F}async function Bq(H){H("Session transferred to Claude Desktop",{display:"system"}),await l(0,"other")}function Kq(){}var d,G,u="https://clau.de/desktop";var Pq=h(()=>{yq();Gq();x();Xq();Rq();bq();Aq();S();d=I(Zq(),1),G=I(Yq(),1)});
|
|
3
|
-
export{kq as Ng,Pq as Og};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Gc as v,Hc as m,Ic as Vk}from"./cli-1.1.19-pn1pyg9c.mjs";import{CF as Gk,IS as r,JS as kk,KO as o,MG as n,MO as t,NG as w,NS as Dk,OG as i,PO as Tk,RG as Lk,TO as e,UO as Ck,Yn as p,ZA as s,Zn as jk,_A as zk,tF as g,uF as a,yz as l,zz as wk}from"./cli-1.1.19-hqbspnvc.mjs";import{Z4 as L,d5 as Jk,x5 as f,z5 as Ok}from"./cli-1.1.19-m8w4as34.mjs";import{W8 as u,X8 as Ik,f9 as d,i9 as Mk}from"./cli-1.1.19-cfgdvk8n.mjs";import{j_ as S,o_ as _k}from"./cli-1.1.19-m9vwd2bt.mjs";import{Hga as _,J_ as K,Kga as Hk,L_ as Zk,Q$ as P,U$ as $k,Uda as D,bfa as U,ffa as b,kea as Kk,ofa as c,wfa as $}from"./cli-1.1.19-dt84yfk2.mjs";import{Eha as J,Iha as Yk}from"./cli-1.1.19-nb1256fg.mjs";import{Xja as G,Yja as Bk}from"./cli-1.1.19-q5kbe656.mjs";import{ala as B,dka as O,dla as C,fka as Rk}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as Y,Hla as Xk,ula as h}from"./cli-1.1.19-eyhpgp73.mjs";import{Nla as E,Vla as Wk}from"./cli-1.1.19-5eb8a4wn.mjs";import{Yoa as F,_oa as y,opa as V,yra as j}from"./cli-1.1.19-gw9jb8fv.mjs";import{Xra as A,Yra as Qk}from"./cli-1.1.19-f1vb0eyp.mjs";import{lta as W}from"./cli-1.1.19-cc266ybe.mjs";Yk();j();$();Qk();j();j();wk();Ok();Gk();Lk();Bk();Hk();Jk();var z=!1;function T(){if(z)return;if(z=!0,L()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDIN_CLIENT_CERT||process.env.CLAUDIN_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||G().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();C();Kk();function x(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=U()?.env,Q=D("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();C();_k();Zk();jk();Wk();Xk();Dk();Vk();Ik();Tk();Mk();Ck();zk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(v(),x(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1.1.19-5bjmyd6a.mjs"),import("./growthbook-1.1.19-gw9m906y.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),f(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),w())n();if(a())g();J("init_after_remote_settings_check"),c();let Q=Date.now();B("[init] configureGlobalMTLS starting"),u(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),d(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),T(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-1.1.19-6t7vnxjf.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-1.1.19-bq634ryk.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-1.1.19-37de1g3x.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(V()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
|
|
2
|
-
`),kk(1);return}return import("./InvalidConfigDialog-1.1.19-69vb23j7.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(w()){if(V()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),m(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await Uk()}catch(k){throw I=!1,k}}async function Uk(){let{initializeTelemetry:k}=await import("./instrumentation-1.1.19-fshq5kr2.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
|
|
3
|
-
export{Yq as _,Zq as $};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d4 as w,f4 as F}from"./cli-1.1.19-25szxvwt.mjs";import{lta as D}from"./cli-1.1.19-cc266ybe.mjs";F();var z,B;function O(q,v){z=q,B=v}async function Q(q,v,G,H){let J=z??import("./App-1.1.19-k77n3357.mjs"),K=B??import("./REPL-1.1.19-pqppw8hp.mjs");z=void 0,B=void 0;let[{App:M},{REPL:N}]=await Promise.all([J,K]);await H(q,w(M,{...v,children:w(N,{...G})}))}
|
|
2
|
-
export{O as bb,Q as cb};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{D7 as x,J7 as K}from"./cli-1.1.19-m8w4as34.mjs";import{Zda as w,kea as J}from"./cli-1.1.19-dt84yfk2.mjs";import{aia as v,mia as I}from"./cli-1.1.19-x6xnsxay.mjs";import{Nla as q,Vla as G}from"./cli-1.1.19-5eb8a4wn.mjs";import{kta as z}from"./cli-1.1.19-cc266ybe.mjs";function W(h){return h.type==="advisor_tool_result"||h.type==="server_tool_use"&&h.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDIN_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let h=j();return k()&&!N()&&h.baseModel&&h.advisorModel?{baseModel:h.baseModel,advisorModel:h.advisorModel}:void 0}function Z(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function $(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(h){let b=h.iterations;if(!b)return[];return b.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
|
|
2
|
-
|
|
3
|
-
You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
|
|
4
|
-
|
|
5
|
-
Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
|
|
6
|
-
|
|
7
|
-
Also call advisor:
|
|
8
|
-
- When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
|
|
9
|
-
- When stuck -- errors recurring, approach not converging, results that don't fit.
|
|
10
|
-
- When considering a change of approach.
|
|
11
|
-
|
|
12
|
-
On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
|
|
13
|
-
|
|
14
|
-
Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
|
|
15
|
-
|
|
16
|
-
If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
|
|
17
|
-
export{W as aV,k as bV,N as cV,X as dV,Z as eV,$ as fV,B as gV,D as hV,F as iV,O as jV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Lo as j,Mo as m,Mp as l,No as Xq,Op as Rq,Pp as i,Qp as Aq,gp as D,lp as Zq}from"./cli-1.1.19-hqbspnvc.mjs";import{Fca as u,Hca as g,Kca as h,Lca as n,Qca as vq,Wga as L,cha as Qq}from"./cli-1.1.19-dt84yfk2.mjs";import{cja as d,eja as Uq}from"./cli-1.1.19-ybe27dz9.mjs";import{Fka as P,Gka as v,Kka as f,Oka as M,Ska as y,ala as V,dla as e}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as W,Bla as O,Cla as C,Hla as N}from"./cli-1.1.19-eyhpgp73.mjs";import{Ksa as qq,ssa as p}from"./cli-1.1.19-awkva6qc.mjs";import{kta as E}from"./cli-1.1.19-cc266ybe.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:J,ref:X}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=E(()=>{N();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as xq}from"fs/promises";import{join as Jq}from"path";function c(){return Jq(D(),Kq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==_)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${_})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=D();await M().mkdir(Q);let B=P(Z,null,2);await xq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){L(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${w}`);let Z=performance.now();try{let q=await p.get(w,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return j("install_counts",w,"success",performance.now()-Z),q.data.plugins}catch(q){throw j("install_counts",w,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),j("install_counts",w,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:_,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return L(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var _=1,Kq="install-counts-cache.json",w="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=E(()=>{qq();e();N();y();Qq();f();Xq();Zq()});import{readdir as wq,readFile as A,stat as Iq}from"fs/promises";import*as H from"path";function jq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Eq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function S(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(K&&typeof K==="object"){let X=K;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let X=K,Y=Object.keys(X).filter((x)=>Mq.has(x));if(Y.length>0){let x={...X};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claudin "+"ignores it at load time."});z=x}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claudin accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(K&&typeof K==="object"){let X=K;if(Array.isArray(X.plugins))X.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Eq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(K);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((J,U)=>{if(X.plugins.filter((R)=>R.name===J.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(Q),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(x,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function Nq(Z,q,$){let Q=[],B=[],K=q.match(i);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=K[1]||"",G;try{G=l(z)}catch(J){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let J=X.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=X.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function _q(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await wq(Z,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let K=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(K)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,K]of $){let z=await o(K,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(x){if(C(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await _q(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await Iq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await k(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await S(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(jq(Z)){case"plugin":return S(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=v(B);if(Array.isArray(K.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return S(Z)}}}var Mq;var Lq=E(()=>{Uq();N();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
-
export{Fq as id,r as jd,nq as kd,lq as ld,Oq as md,QQ as nd,XQ as od,Lq as pd};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{wJ as Q,zJ as F}from"./cli-1.1.19-hqbspnvc.mjs";import{ala as b,dla as y}from"./cli-1.1.19-cq5hegwz.mjs";import{Cla as x,Hla as f}from"./cli-1.1.19-eyhpgp73.mjs";import{Kla as w,Vla as R}from"./cli-1.1.19-5eb8a4wn.mjs";import{Dna as $,Gna as j,yra as K}from"./cli-1.1.19-gw9jb8fv.mjs";import{kta as v}from"./cli-1.1.19-cc266ybe.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
|
|
2
|
-
|
|
3
|
-
`:"",B=k===G?`
|
|
4
|
-
|
|
5
|
-
${c}`:"";return`Scheduled loop tick.
|
|
6
|
-
|
|
7
|
-
${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
|
|
8
|
-
|
|
9
|
-
If .claudin/loop.md exists, read it and follow it.
|
|
10
|
-
Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
|
|
11
|
-
Otherwise:
|
|
12
|
-
- continue any unfinished work from the conversation
|
|
13
|
-
- tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
|
|
14
|
-
- run cleanup passes such as bug hunts or simplification when nothing else is pending
|
|
15
|
-
|
|
16
|
-
Do not start new initiatives outside that scope.
|
|
17
|
-
Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
|
|
18
|
-
export{Y as di,G as ei,D as fi,g as gi,M as hi,U as ii};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jta as Q,kta as U}from"./cli-1.1.19-cc266ybe.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
|
|
2
|
-
export{K as Tsa,w as Usa,L as Vsa};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{kta as I}from"./cli-1.1.19-cc266ybe.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+H,K=J+1,J=$.indexOf(`
|
|
4
|
-
`,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
|
|
5
|
-
`);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
|
|
6
|
-
export{q1 as j9,Y1 as k9,X1 as l9};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{OE as L,PE as Y,eS as C,qs as K,rk as J,rs as X,uK as O}from"./cli-1.1.19-hqbspnvc.mjs";import{kta as V}from"./cli-1.1.19-cc266ybe.mjs";function N(z){let y=[],D=z.matchAll(Z);for(let v of D)if(v.index!==void 0)y.push({word:v[0],start:v.index,end:v.index+v[0].length});return y}async function W({question:z,cacheSafeParams:y}){let D=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
|
|
2
|
-
|
|
3
|
-
IMPORTANT CONTEXT:
|
|
4
|
-
- You are a separate, lightweight agent spawned to answer this one question
|
|
5
|
-
- The main agent is NOT interrupted - it continues working independently in the background
|
|
6
|
-
- You share the conversation context but are a completely separate instance
|
|
7
|
-
- Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
|
|
8
|
-
|
|
9
|
-
CRITICAL CONSTRAINTS:
|
|
10
|
-
- You have NO tools available - you cannot read files, run commands, search, or take any actions
|
|
11
|
-
- This is a one-off response - there will be no follow-up turns
|
|
12
|
-
- You can ONLY provide information based on what you already know from the conversation context
|
|
13
|
-
- NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
|
|
14
|
-
- If you don't know the answer, say so - do not offer to look it up or investigate
|
|
15
|
-
|
|
16
|
-
Simply answer the question with the information you have.</system-reminder>
|
|
17
|
-
|
|
18
|
-
${z}`,v=await L({promptMessages:[O({content:D})],cacheSafeParams:y,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:$(v.messages),usage:v.totalUsage}}function $(z){let y=z.flatMap((v)=>v.type==="assistant"?v.message.content:[]);if(y.length>0){let v=J(y,`
|
|
19
|
-
|
|
20
|
-
`).trim();if(v)return v;let G=y.find((H)=>H.type==="tool_use");if(G)return`(The model tried to call ${"name"in G?G.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let D=z.find((v)=>v.type==="system"&&("subtype"in v)&&v.subtype==="api_error");if(D)return`(API error: ${K(D.error)})`;return null}var Z;var w=V(()=>{X();Y();C();Z=/^\/btw\b/gi});
|
|
21
|
-
export{N as Wh,W as Xh,w as Yh};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{g9 as P5,i9 as R7}from"./cli-1.1.19-cfgdvk8n.mjs";import{k9 as A,l9 as r8}from"./cli-1.1.19-kjhw0mpy.mjs";import{C9 as a2,E9 as D7}from"./cli-1.1.19-w9tb5j4s.mjs";import{B_ as H0,C_ as H1,Cba as M1,Dba as p7,Dfa as $4,Ega as s2,Hga as L,Kga as J0,N_ as v2,Q_ as o8,Qba as z2,Sfa as B4,Uda as P,Uea as c,Ufa as J4,Wda as x5,Wga as k,Xfa as N5,Yfa as $Z,Zda as N,Zea as n2,_ea as S,b$ as P2,bfa as D,cha as n0,d$ as e8,fca as x8,hfa as e1,kea as x0,oda as o1,r_ as A4,s_ as t,t_ as K5,tea as s4,u_ as D0,v_ as C4,vea as ZZ,vga as l2,w_ as s5,wea as S1,wfa as $0,xda as B8,xea as m7,yfa as Z4,yga as G4,zfa as G8}from"./cli-1.1.19-dt84yfk2.mjs";import{aia as S0,cia as h4,mia as T1}from"./cli-1.1.19-x6xnsxay.mjs";import{Qja as A2,Rja as l4,Sja as B0,Uja as G7,Vja as H7,Xja as U,Yja as h0}from"./cli-1.1.19-q5kbe656.mjs";import{Zja as x,aka as z5}from"./cli-1.1.19-bg1d8zv9.mjs";import{Gka as U2,Kka as a8,Oka as n5,Ska as S7,ala as z,cla as m0,dla as Z0}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as g,Cla as z1,Hla as x1}from"./cli-1.1.19-eyhpgp73.mjs";import{Kla as N2,Nla as K,Pla as u,Rla as v5,Vla as d}from"./cli-1.1.19-5eb8a4wn.mjs";import{$pa as j5,Moa as r1,Mpa as X1,Npa as V1,Opa as W1,Ppa as j1,Qoa as y4,Voa as y0,Woa as Z5,opa as C,vna as Y0,vpa as I1,wna as D1,yoa as d1,yra as Q0}from"./cli-1.1.19-gw9jb8fv.mjs";import{Xra as h,Yra as t0}from"./cli-1.1.19-f1vb0eyp.mjs";import{Ksa as Y5,ssa as v}from"./cli-1.1.19-awkva6qc.mjs";import{hta as _0,jta as c5,kta as R,lta as r}from"./cli-1.1.19-cc266ybe.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.19-06ccpd87.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.19-apzfwtnm.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function sZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.19-06ccpd87.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.19-apzfwtnm.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function rZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,aZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});aZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,_5,y5,h5,I5,T5,M5,S5,l0,s0,a0,U0,f5,A5,C5,v0,d2;var u5=R(()=>{O5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},_5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},y5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},h5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},I5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},S5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},s0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},a0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},U0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f5={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},C5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},v0={haiku35:_5,haiku45:y5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:U0,fable5:f5},d2=Object.fromEntries(Object.entries(v0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var O0={};c5(O0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>_7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>y7});function P0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=P0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=P0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=P0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&P0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function _7(Z){return e0(Z)?.model.limit.output}function y7(Z){e=Z,z0=Z?P0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var E0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function W$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(E0(),_0(O0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function j$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function z$(){return W()}function x$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=v0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=v0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function D$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(v0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function k$(Z){return Z}function N$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function y$(){let $=D().oauthAccount?.accountUuid,J=I0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();h0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,C$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,C$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function d$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",l$="effort-2025-11-24",s$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",a$="extended-cache-ttl-2025-04-11",r$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",_1="thinking-token-count-2026-05-13",y1="token-efficient-tools-2026-03-28",o$="afk-mode-2026-01-31",e$="advisor-tool-2026-03-01",o5,ZJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),ZJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function KJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function LJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??f0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function kJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function NJ(){R0={status:"active"}}function UJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function PJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function OJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function _J(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function yJ(){if(S1())return;if(!I())return;if(M0)return z("Fast mode prefetch in progress, returning in-flight promise"),M0;let Z=I0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{M0=null}}return M0=Y(),M0}var FJ="Opus 5",R0,Z2=!1,C1,u1,DJ,bJ,g1,vJ,E,$2,EJ,a7=30000,h1=0,M0=null;var p1=R(()=>{Y5();h0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),DJ=C1.subscribe,bJ=u1.subscribe;g1=Y0(),vJ=g1.subscribe;E={status:"pending"},$2=Y0(),EJ=$2.subscribe});function J8(Z){for(let $ of $8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(U0.firstParty)]??n}function Q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function Y8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(U0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=J8(Z);if(Y)return Y;return q8(Z,J),Y2[b(f0())]??Z8}return Q}function q8(Z,$){x("",{model:Z,shortName:$}),d1()}function X8(Z,$){let J=Y8(Z,$);return Q8(J,$)}function AJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return X8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var F0,m1,n,r7,i1,o7,e7,Z8,$8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();F0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},r7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},o7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},e7={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z8=n,$8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];Y2={[F(_5.firstParty)]:o7,[F(y5.firstParty)]:e7,[F(E5.firstParty)]:F0,[F(O5.firstParty)]:F0,[F(h5.firstParty)]:F0,[F(I5.firstParty)]:F0,[F(A5.firstParty)]:F0,[F(C5.firstParty)]:F0,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(U0.firstParty)]:n,[F(f5.firstParty)]:r7}});function p(Z){return V8.includes(Z)}function K0(Z){return W8.includes(Z)}var V8,W8;var W2=R(()=>{V8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];W8=["sonnet","opus","haiku"]});function j8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function z8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!K0(Y)||!l1(Y,q))return!0}for(let X of q)if(K0(X)&&!l1(X,q)&&j8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!K0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!K0(X)&&!p(X)){if(z8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function W3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function j3(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=L0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function z3(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function H8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function x3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function f0(){let Z=L0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(f0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function R8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?w8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function B3(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function G3(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function w8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(_()&&f()===null)return!1;return!0}function H3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(E0(),_0(O0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R3(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return H8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&K8(Y)&&L8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function w3(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function K8(Z){return F8.includes(Z)}function L8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function F3(Z){if(Z===null){if(_())return`Default (${R8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function K3(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function L3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function D3(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var F8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();G8();Q5();t1();x0();i();x8();a1();W2();B8();p5();F8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function k3(){}var V4=()=>{};function N8(Z,$={}){if($.isPro??(k8.test(Z)||W4.has(Z)))return!1;if(D8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(b8);return Q?Number.parseFloat(Q[1])>5.4:!1}function U3(){return w5.filter((Z)=>N8(Z.id,{isPro:Z.isPro}))}var w5,D8,W4,b8,k8,j4,z4;var x4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],D8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),b8=/^gpt-(\d+\.\d+)/,k8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>T8,getDiscoveredContextWindow:()=>U8,discoverOpenAICompatibleModelOptions:()=>F4});function U8(Z){return R4.get(Z)}function v8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function P8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function O8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(P8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function E8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function _8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function y8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function h8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${y8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function I8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=v8(),$=O8(Z),J=await h8(E8(Z),$);if(J.length>0)return J;let Q=_8(Z);if(Q)return I8(Q,$);return[]}function T8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),_0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(M8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(E0(),_0(O0));return J(Z)}catch{return}}function N4(Z){let $=b4(S8,A8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(E0(),_0(O0));return J(Z)}catch{return}}var M8,S8,f8,A8;var U4=R(()=>{J0();x4();M8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...j4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},S8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...z4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},f8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),A8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function i3(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),C8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(T0)&&x2(Z))return 1e6;if(p8(Z))return 1e6;return R2}function p8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function t3(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function n3(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=u8,J=g8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,C8,m3=20000,u8=32000,g8=64000,c3=8000,d3=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();C8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var m8,P4;var O4=R(()=>{t0();i();m8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of m8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function c8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function x9(Z){if(!Z||Z.length===0)return;if(_()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=c8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function d8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function i8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function t8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function B9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function G9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function H9(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function R9(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),n8.cache?.clear?.()}var I4,w2,T4,n8;var S4=R(()=>{t0();T1();Q0();e5();h0();o();B2();d();w0();O4();i();x0();I4=[T0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(W5);if(_())$.push(B0);if(l(Z))$.push(T0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(_1);let q=i8(Z);if(_4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&X)$.push(U1);if(Y&&V)$.push(y1);if(Q==="vertex"&&d8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),n8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as l8}from"child_process";function f4(Z){return new Promise(($)=>{l8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:s8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function D9(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function b9(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var s8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function U9(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var uZ={};c5(uZ,{validateForceLoginOrg:()=>CZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>vZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>bZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>kZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>zZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>hZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>_Z,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>IZ,isCustomApiKeyApproved:()=>UZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>_,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>_2,isAnthropicAuthEnabled:()=>N0,is1PApiCustomer:()=>EZ,hasProfileScope:()=>q0,hasOpusAccess:()=>yZ,hasAnthropicApiKeyAuth:()=>XZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>MZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>VZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>I0,getAccountInformation:()=>AZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>DZ,clearAwsCredentialsCache:()=>RZ,clearApiKeyHelperCache:()=>jZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as JZ,stat as QZ}from"fs/promises";import{join as YZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function N0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function I0(){let{key:Z}=c0();return Z}function XZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function _2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y2(){return(N()||{}).awsCredentialExport}function h2(){let Z=y2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return qZ}function VZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!m)m={promise:i4(Z,!1,b0),startedAt:null};return y.value}if(m)return m.promise;return m={promise:i4(Z,!0,b0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await WZ(Z);if(J!==b0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)m=null}}async function WZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return y?.value??null}function jZ(){b0++,y=null,m=null}function zZ(Z){if(e4()&&!c())return;$7(Z)}async function BZ(){let Z=E2();if(!Z)return!1;if(_2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:GZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function HZ(){let Z=y2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function RZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(wZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function KZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:LZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function DZ(){M2.cache.clear()}function bZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function kZ(){let Z=E2(),$=y2();if(!Z&&!$)return;if(_2()||h2()){if(!c()&&!C())return}j0(),B()}function NZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!NZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
|
|
2
|
-
`;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function UZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function vZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!k0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),D0()}async function PZ(){try{let{mtimeMs:Z}=await QZ(YZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=OZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function OZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await PZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),D0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await JZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),D0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),D0(),!0}catch(V){k(V),w.cache?.clear?.(),D0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function _(){if(!N0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function EZ(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(_())return!1;return!0}function b5(){return N0()?D().oauthAccount:void 0}function _Z(){let $=b5()?.billingType;if(!_()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function yZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!N0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function hZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function IZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!N0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){switch(f()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function MZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||TZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function SZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=f();return _()&&Z!==null&&SZ(Z)}function AZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(_())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function CZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!N0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
-
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
-
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
-
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
-
Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
-
different organization than required by this machine's managed settings.
|
|
8
|
-
|
|
9
|
-
Required organization: ${Z}
|
|
10
|
-
Token organization: ${q}
|
|
11
|
-
|
|
12
|
-
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
|
|
13
|
-
but this machine requires organization ${Z}.
|
|
14
|
-
|
|
15
|
-
Please log in with the correct organization: claude auth login`}}var qZ=300000,y=null,m=null,b0=0,xZ=3600000,GZ=180000,j0,wZ=5000,FZ=3600000,LZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,TZ=1740000,x7;var o=R(()=>{r8();H1();t0();h0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();o8();ZZ();n0();e8();$Z();g4();s5();x0();p4();a8();d4();j0=P2(async()=>{let Z=await BZ(),$=await HZ();if(Z||$)await K1();return $},xZ);M2=P2(async()=>{return await KZ()},FZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function k0(Z){return Boolean(Z?.includes(A2))}function gZ(Z){return Z?.split(" ").filter(Boolean)??[]}function HQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function RQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=gZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await pZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function wQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function FQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function pZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function KQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function LQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!_()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();h0();o();$0();Z0();t5()});
|
|
16
|
-
export{D9 as H4,b9 as I4,g4 as J4,C2 as K4,u2 as L4,sZ as M4,aZ as N4,w7 as O4,L7 as P4,rZ as Q4,c2 as R4,l0 as S4,U0 as T4,v0 as U4,u5 as V4,i5 as W4,v7 as X4,E0 as Y4,W as Z4,W$ as _4,h7 as $4,j$ as a5,z$ as b5,x$ as c5,i as d5,B as e5,D$ as f5,Q5 as g5,k$ as h5,N$ as i5,Y1 as j5,y$ as k5,G0 as l5,t5 as m5,k0 as n5,gZ as o5,HQ as p5,RQ as q5,a4 as r5,wQ as s5,FQ as t5,g0 as u5,pZ as v5,KQ as w5,LQ as x5,B7 as y5,r4 as z5,C$ as A5,g7 as B5,q1 as C5,G1 as D5,V5 as E5,w1 as F5,d$ as G5,L1 as H5,M as I5,b1 as J5,T0 as K5,N1 as L5,U1 as M5,l$ as N5,s$ as O5,O1 as P5,a$ as Q5,r$ as R5,E1 as S5,o$ as T5,e$ as U5,ZJ as V5,e5 as W5,I as X5,f1 as Y5,d7 as Z5,FJ as _5,KJ as $5,LJ as a6,A1 as b6,DJ as c6,bJ as d6,i7 as e6,kJ as f6,NJ as g6,UJ as h6,vJ as i6,PJ as j6,l7 as k6,OJ as l6,EJ as m6,_J as n6,yJ as o6,p1 as p6,F0 as q6,r7 as r6,o7 as s6,e7 as t6,q2 as u6,X8 as v6,AJ as w6,V2 as x6,t1 as y6,V8 as z6,W2 as A6,s1 as B6,a1 as C6,W3 as D6,j3 as E6,B5 as F6,j2 as G6,z3 as H6,H8 as I6,X0 as J6,A0 as K6,Q4 as L6,x3 as M6,f0 as N6,Y4 as O6,F as P6,b as Q6,R8 as R6,B3 as S6,G3 as T6,w8 as U6,J2 as V6,H3 as W6,q4 as X6,X4 as Y6,R3 as Z6,T as _6,w3 as $6,L8 as a7,F3 as b7,K3 as c7,L3 as d7,D3 as e7,w0 as f7,k3 as g7,V4 as h7,U3 as i7,x4 as j7,F4 as k7,T8 as l7,L4 as m7,m3 as n7,c3 as o7,d3 as p7,V0 as q7,l as r7,i3 as s7,p8 as t7,t3 as u7,n3 as v7,B2 as w7,P4 as x7,O4 as y7,x9 as z7,t8 as A7,B9 as B7,G9 as C7,_4 as D7,H9 as E7,T4 as F7,n8 as G7,R9 as H7,M4 as I7,S4 as J7,L2 as K7,p4 as L7,U9 as M7,c4 as N7,d4 as O7,N0 as P7,O2 as Q7,I0 as R7,XZ as S7,c0 as T7,s as U7,_2 as V7,h2 as W7,Z7 as X7,VZ as Y7,$7 as Z7,b2 as _7,jZ as $7,zZ as a8,J7 as b8,j0 as c8,RZ as d8,T2 as e8,Q7 as f8,Y7 as g8,M2 as h8,DZ as i8,bZ as j8,kZ as k8,U5 as l8,S2 as m8,UZ as n8,vZ as o8,X7 as p8,w as q8,f2 as r8,Q2 as s8,p0 as t8,d0 as u8,_ as v8,q0 as w8,EZ as x8,b5 as y8,_Z as z8,yZ as A8,f as B8,H5 as C8,hZ as D8,R5 as E8,IZ as F8,G2 as G8,V7 as H8,W7 as I8,k5 as J8,z7 as K8,MZ as L8,fZ as M8,AZ as N8,CZ as O8,uZ as P8,o as Q8};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{M$ as $,w$ as T}from"./cli-1.1.19-dt84yfk2.mjs";import{jja as J,lja as Y}from"./cli-1.1.19-mrft54r6.mjs";import{ala as E,dla as X}from"./cli-1.1.19-cq5hegwz.mjs";import{kta as V}from"./cli-1.1.19-cc266ybe.mjs";function j(){B.clear()}async function P(){let q=await Z();if(!q)return null;if(q.host!=="github.com")return null;return`${q.owner}/${q.name}`}async function Z(){let q=J();if(B.has(q))return B.get(q)??null;try{let x=await T();if(E(`Git remote URL: ${x}`),!x)return E("No git remote URL found"),B.set(q,null),null;let z=Q(x);return E(`Parsed repository: ${z?`${z.host}/${z.owner}/${z.name}`:null} from URL: ${x}`),B.set(q,z),z}catch(x){return E(`Error detecting repository: ${x}`),B.set(q,null),null}}function S(){let q=B.get(J());if(!q||q.host!=="github.com")return null;return`${q.owner}/${q.name}`}function Q(q){let x=q.trim(),z=x.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]){if(!O(z[1]))return null;return{host:z[1],owner:z[2],name:z[3]}}let A=x.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],K=A[2],N=K.split(":")[0]??"";if(!O(N))return null;return{host:I==="https"||I==="http"?K:N,owner:A[3],name:A[4]}}return null}function D(q){let x=q.trim(),z=Q(x);if(z){if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}if(!x.includes("://")&&!x.includes("@")&&x.includes("/")){let A=x.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${x}`),null}function O(q){if(!q.includes("."))return!1;let x=q.split(".").pop();if(!x)return!1;return/^[a-zA-Z]+$/.test(x)}var B;var _=V(()=>{Y();X();$();B=new Map});
|
|
2
|
-
export{j as i_,P as j_,Z as k_,S as l_,Q as m_,D as n_,_ as o_};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{qR as x,tR as B}from"./cli-1.1.19-hqbspnvc.mjs";import{kta as z}from"./cli-1.1.19-cc266ybe.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
|
|
2
|
-
export{G as Cg,H as Dg,A as Eg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Jh as e,Mh as fq}from"./cli-1.1.19-qb3sg611.mjs";import{Nh as t,Ph as Hq}from"./cli-1.1.19-946kz0h0.mjs";import{BG as n,CG as Mq,QO as o,RO as s,SO as Oq,co as S,do as Nq,eo as g,fo as Vq,go as $,ho as Wq,ko as i,lo as Yq,rG as r,sG as kq}from"./cli-1.1.19-hqbspnvc.mjs";import{BY as u,DY as Zq}from"./cli-1.1.19-d7wb13f8.mjs";import{DZ as Qq,H1 as Xq,a1 as M,c1 as F,u1 as c,v1 as Uq}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as L,e4 as R,f4 as l}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as Lq}from"./cli-1.1.19-5kaw3aa5.mjs";import{x_ as a,y_ as Jq}from"./cli-1.1.19-dt84yfk2.mjs";import{gta as d,kta as Gq}from"./cli-1.1.19-cc266ybe.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claudin will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${a.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let _;if(q[6]===Symbol.for("react.memo_cache_sentinel"))_=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=_;else _=q[6];let zq=_,m;if(q[7]!==X||q[8]!==N)m=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=m;else m=q[9];let K=m,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=d(Qq(),1),H=d(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
2
|
-
export{lq as Hh,Fq as Ih};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{$E as k,Ap as G,Dp as a,Qn as R,Rn as BJ,aF as HJ,nt as D,ot as hJ}from"./cli-1.1.19-hqbspnvc.mjs";import{B8 as $J,Q8 as bJ,q8 as ZJ}from"./cli-1.1.19-m8w4as34.mjs";import{Uda as WJ,aaa as C,baa as GJ,caa as h,daa as FJ,eaa as u,faa as kJ,kea as jJ}from"./cli-1.1.19-dt84yfk2.mjs";import{aia as x,mia as gJ}from"./cli-1.1.19-x6xnsxay.mjs";import{cja as q,eja as s,fja as Y,gja as r}from"./cli-1.1.19-ybe27dz9.mjs";import{Jja as M,Oja as yJ}from"./cli-1.1.19-mrft54r6.mjs";import{Cka as l,Dka as TJ,mka as o,nka as CJ,wka as n,xka as EJ}from"./cli-1.1.19-cq5hegwz.mjs";import{Yma as c,Zma as OJ,ana as H,bna as F,cna as I,cra as QJ,dna as YJ,ema as g,ena as P,fma as zJ,fna as XJ,gma as A,hma as wJ,sma as f,tma as PJ,yra as mJ}from"./cli-1.1.19-gw9jb8fv.mjs";import{Hra as K,Ira as DJ}from"./cli-1.1.19-f1vb0eyp.mjs";import{kta as B}from"./cli-1.1.19-cc266ybe.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
|
|
2
|
-
${Q}
|
|
3
|
-
</${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
|
|
4
|
-
export{NQ as Of,_J as Pf,JJ as Qf,bQ as Rf,uQ as Sf,cJ as Tf,iQ as Uf,oJ as Vf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Fna as z,Jna as F,yra as I}from"./cli-1.1.19-gw9jb8fv.mjs";import{kta as E}from"./cli-1.1.19-cc266ybe.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="channel",h="fork-boilerplate",l="Your directive: ",w,c;var N=E(()=>{w=["help","-h","--help"],c=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
|
|
2
|
-
export{U as hja,K as ija,V as jja,W as kja,M as lja,Y as mja,Z as nja,$ as oja,j as pja,q as qja,B as rja,L as sja,R as tja,_ as uja,b as vja,x as wja,A as xja,T as yja,k as zja,p as Aja,u as Bja,v as Cja,y as Dja,f as Eja,C as Fja,S as Gja,O as Hja,m as Ija,g as Jja,h as Kja,l as Lja,w as Mja,c as Nja,N as Oja};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{L as k}from"./cli-1.1.19-mnfgg84d.mjs";import{Nga as $,Oga as F,Uga as z,Vga as H,cha as P}from"./cli-1.1.19-dt84yfk2.mjs";import{Fka as O,Kka as N,Oka as V,Ska as C,ala as X,bka as _,cka as A,dka as B,dla as E,fka as L}from"./cli-1.1.19-cq5hegwz.mjs";import{yra as w,zna as Z}from"./cli-1.1.19-gw9jb8fv.mjs";import{Ksa as y,ssa as q}from"./cli-1.1.19-awkva6qc.mjs";y();w();A();F();L();E();C();P();N();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
|
|
2
|
-
`)},flush:K.flush,dispose:K.dispose}}var R=new Map;function W(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function v(G,K){}function f(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=f(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),v(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(U)}function M(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){M(),k()}
|
|
3
|
-
export{e as J};
|