@claudiolabs/claudin 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.22-4ba6sbn1.mjs +1 -0
- package/dist/chunks/App-1.1.22-2m11r40p.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.22-zp1y1218.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.22-s95rx0gk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.22-5qa3134t.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.22-m5fc6nej.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.22-bnv9d1h5.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.22-g92az35d.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.22-9ccdds3r.mjs +6 -0
- package/dist/chunks/Doctor-1.1.22-1gc86nqw.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.22-z6sndn27.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.22-gb09bshz.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.22-52wjx92m.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.22-q6j91dba.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.22-z6x86qa5.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.22-05vxshwk.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.22-zh99bzde.mjs +1 -0
- package/dist/chunks/REPL-1.1.22-2c229abh.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.22-jp1q8573.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.22-s20kx6cz.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.22-036phq5k.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.22-2fpx0v36.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.22-q9xh6c1x.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.22-shtyh6x1.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.22-hwnb32mw.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.22-tx9d7tzw.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.22-qd5cmwvf.mjs +1 -0
- package/dist/chunks/add-dir-1.1.22-be3sb4ed.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.22-rm5akk7n.mjs +1 -0
- package/dist/chunks/agents-1.1.22-ad8hknzy.mjs +3 -0
- package/dist/chunks/agents-1.1.22-c8hb8sst.mjs +110 -0
- package/dist/chunks/api-1.1.22-b74pv1bc.mjs +1 -0
- package/dist/chunks/asciicast-1.1.22-qz35a5k4.mjs +1 -0
- package/dist/chunks/assistant-1.1.22-mqc1g16y.mjs +1 -0
- package/dist/chunks/auth-1.1.22-hwjcqvy4.mjs +1 -0
- package/dist/chunks/auth-1.1.22-pwa369jw.mjs +1 -0
- package/dist/chunks/autoMode-1.1.22-3by2zax3.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.22-e4mn7cas.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.22-ng881g40.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.22-hxy5jpcq.mjs +1 -0
- package/dist/chunks/branch-1.1.22-akcs4dk5.mjs +4 -0
- package/dist/chunks/bridge-1.1.22-rttgyvkn.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.22-gtqyk17c.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.22-tfhha37q.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.22-mt52dzzq.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.22-bqaet342.mjs +1 -0
- package/dist/chunks/btw-1.1.22-y44fbm0x.mjs +1 -0
- package/dist/chunks/buddy-1.1.22-1jzcjwyr.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.22-wmckr2fj.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.22-rzg950xm.mjs +4 -0
- package/dist/chunks/caches-1.1.22-kabyzmmd.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.22-7mafzt35.mjs +1 -0
- package/dist/chunks/claudemd-1.1.22-genp8cn4.mjs +1 -0
- package/dist/chunks/clear-1.1.22-ta3shrbf.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.22-hvkervt4.mjs +1 -0
- package/dist/chunks/cli-1.1.22-00s47593.mjs +4 -0
- package/dist/chunks/cli-1.1.22-01xfy12n.mjs +18 -0
- package/dist/chunks/cli-1.1.22-01yb5we4.mjs +2 -0
- package/dist/chunks/cli-1.1.22-0553cn3c.mjs +3 -0
- package/dist/chunks/cli-1.1.22-073y3gd5.mjs +2 -0
- package/dist/chunks/cli-1.1.22-07prh801.mjs +2 -0
- package/dist/chunks/cli-1.1.22-09eb3077.mjs +2 -0
- package/dist/chunks/cli-1.1.22-0h7jejsr.mjs +3 -0
- package/dist/chunks/cli-1.1.22-0n0cxg2p.mjs +4 -0
- package/dist/chunks/cli-1.1.22-0x96ahhc.mjs +4 -0
- package/dist/chunks/cli-1.1.22-1099x9x2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-12vfd6j1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-1npmfnxb.mjs +50 -0
- package/dist/chunks/cli-1.1.22-1tqdha8j.mjs +2 -0
- package/dist/chunks/cli-1.1.22-1vrzwj7y.mjs +2 -0
- package/dist/chunks/cli-1.1.22-22735g9w.mjs +2 -0
- package/dist/chunks/cli-1.1.22-261r450y.mjs +60 -0
- package/dist/chunks/cli-1.1.22-265a4qpa.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2bdf1etb.mjs +4 -0
- package/dist/chunks/cli-1.1.22-2getjsf5.mjs +6 -0
- package/dist/chunks/cli-1.1.22-2mahjtgk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2nwmyakz.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2rqykpy1.mjs +18 -0
- package/dist/chunks/cli-1.1.22-2t3fhfjv.mjs +133 -0
- package/dist/chunks/cli-1.1.22-2tctx2yg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2wh33kpx.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2y82t3pd.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2yxd7hfb.mjs +2 -0
- package/dist/chunks/cli-1.1.22-2zhxvvkx.mjs +2 -0
- package/dist/chunks/cli-1.1.22-33jc9czg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-35fe0h6z.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3ehpcpz4.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3h20fb9d.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3jyydg5h.mjs +206 -0
- package/dist/chunks/cli-1.1.22-3nmtk1bh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-3r3tadt1.mjs +4 -0
- package/dist/chunks/cli-1.1.22-3thczx3s.mjs +133 -0
- package/dist/chunks/cli-1.1.22-3xjx3y13.mjs +2 -0
- package/dist/chunks/cli-1.1.22-41aseceq.mjs +3 -0
- package/dist/chunks/cli-1.1.22-4227vtcf.mjs +24 -0
- package/dist/chunks/cli-1.1.22-48gjx3j7.mjs +2 -0
- package/dist/chunks/cli-1.1.22-4g11fbx3.mjs +2 -0
- package/dist/chunks/cli-1.1.22-4ph3xqne.mjs +2 -0
- package/dist/chunks/cli-1.1.22-4pmfh5v2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-5afprdre.mjs +2 -0
- package/dist/chunks/cli-1.1.22-5dcmb4h9.mjs +2 -0
- package/dist/chunks/cli-1.1.22-5mzq5mc4.mjs +24 -0
- package/dist/chunks/cli-1.1.22-5vkvwgh1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-619cwdw8.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6bxa25n5.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6gd42s2a.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6k5nt5wc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-6khex7bz.mjs +34 -0
- package/dist/chunks/cli-1.1.22-6vtb75g8.mjs +2 -0
- package/dist/chunks/cli-1.1.22-73mzmb6a.mjs +3 -0
- package/dist/chunks/cli-1.1.22-796yez98.mjs +2 -0
- package/dist/chunks/cli-1.1.22-7dha9j2p.mjs +3 -0
- package/dist/chunks/cli-1.1.22-7rm6jw0h.mjs +17 -0
- package/dist/chunks/cli-1.1.22-7rv96st9.mjs +4 -0
- package/dist/chunks/cli-1.1.22-7xwf9v6n.mjs +2 -0
- package/dist/chunks/cli-1.1.22-7zv5k6p0.mjs +2 -0
- package/dist/chunks/cli-1.1.22-87m0b80d.mjs +8 -0
- package/dist/chunks/cli-1.1.22-8cxdckv7.mjs +39 -0
- package/dist/chunks/cli-1.1.22-8fwvxw5t.mjs +2 -0
- package/dist/chunks/cli-1.1.22-8zvpve6x.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9283mpm5.mjs +4 -0
- package/dist/chunks/cli-1.1.22-9affzgn1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9b6k45hn.mjs +3 -0
- package/dist/chunks/cli-1.1.22-9dr01ge1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9jjvp1h1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9t3wxp9c.mjs +2 -0
- package/dist/chunks/cli-1.1.22-9xhwr18a.mjs +2 -0
- package/dist/chunks/cli-1.1.22-a4bc88qq.mjs +2 -0
- package/dist/chunks/cli-1.1.22-an1qn05v.mjs +3 -0
- package/dist/chunks/cli-1.1.22-as4a7add.mjs +5 -0
- package/dist/chunks/cli-1.1.22-b3bpnsqk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-b7axxc6j.mjs +2 -0
- package/dist/chunks/cli-1.1.22-b81ce6x4.mjs +15 -0
- package/dist/chunks/cli-1.1.22-bfc0nw13.mjs +3 -0
- package/dist/chunks/cli-1.1.22-bj4bsta6.mjs +2 -0
- package/dist/chunks/cli-1.1.22-bnse4r9s.mjs +2 -0
- package/dist/chunks/cli-1.1.22-bv3a0vaa.mjs +2 -0
- package/dist/chunks/cli-1.1.22-bxfemtrx.mjs +2 -0
- package/dist/chunks/cli-1.1.22-byxwkfrj.mjs +3 -0
- package/dist/chunks/cli-1.1.22-c07z4d74.mjs +2 -0
- package/dist/chunks/cli-1.1.22-c1h1wfjn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ca6d1erw.mjs +6 -0
- package/dist/chunks/cli-1.1.22-ccp7e8qv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ckvf3pt3.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ctbmc0bv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-cvfsmaqt.mjs +2 -0
- package/dist/chunks/cli-1.1.22-d1w2ky89.mjs +6 -0
- package/dist/chunks/cli-1.1.22-d7cmcmfd.mjs +2 -0
- package/dist/chunks/cli-1.1.22-d990gcrg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-d9y8qqg3.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ddq8axpw.mjs +12 -0
- package/dist/chunks/cli-1.1.22-df129qms.mjs +5 -0
- package/dist/chunks/cli-1.1.22-df9q1a85.mjs +2 -0
- package/dist/chunks/cli-1.1.22-djkeg65n.mjs +2 -0
- package/dist/chunks/cli-1.1.22-dpqknw7z.mjs +2 -0
- package/dist/chunks/cli-1.1.22-e25bz2ew.mjs +9 -0
- package/dist/chunks/cli-1.1.22-e5sxpgah.mjs +2 -0
- package/dist/chunks/cli-1.1.22-e5wx36qr.mjs +2 -0
- package/dist/chunks/cli-1.1.22-eagkxr30.mjs +9 -0
- package/dist/chunks/cli-1.1.22-eddrkydn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-emmr10wb.mjs +21 -0
- package/dist/chunks/cli-1.1.22-eqtbpc0r.mjs +2 -0
- package/dist/chunks/cli-1.1.22-erbhk4p7.mjs +4 -0
- package/dist/chunks/cli-1.1.22-f0wja05z.mjs +2 -0
- package/dist/chunks/cli-1.1.22-f9ntxarz.mjs +2 -0
- package/dist/chunks/cli-1.1.22-fetzhxhh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-fwhfqwwn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-gkryz2d0.mjs +2 -0
- package/dist/chunks/cli-1.1.22-gpt102mm.mjs +2 -0
- package/dist/chunks/cli-1.1.22-grjw9tnm.mjs +2 -0
- package/dist/chunks/cli-1.1.22-gwhdvfge.mjs +24 -0
- package/dist/chunks/cli-1.1.22-gyhxg2db.mjs +2 -0
- package/dist/chunks/cli-1.1.22-h3m1whqm.mjs +6 -0
- package/dist/chunks/cli-1.1.22-hgwxyksg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-hhmq1rbn.mjs +2 -0
- package/dist/chunks/cli-1.1.22-hjxaqntc.mjs +45 -0
- package/dist/chunks/cli-1.1.22-hqbf8xt0.mjs +3 -0
- package/dist/chunks/cli-1.1.22-hv3m9qnv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-j6xg80k8.mjs +2 -0
- package/dist/chunks/cli-1.1.22-j7qc1g0f.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jdz4rqbp.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jech3kdr.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jrhx2z2p.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jvrjpdd1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-jz426kr2.mjs +66 -0
- package/dist/chunks/cli-1.1.22-jzvqt2pv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-k3xv38bj.mjs +2 -0
- package/dist/chunks/cli-1.1.22-kphdet4j.mjs +58 -0
- package/dist/chunks/cli-1.1.22-m41t95z0.mjs +2 -0
- package/dist/chunks/cli-1.1.22-mdapyzp3.mjs +6 -0
- package/dist/chunks/cli-1.1.22-mdttpxs6.mjs +24 -0
- package/dist/chunks/cli-1.1.22-mw0jpevk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-mxqz88pc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-n0px7a23.mjs +3 -0
- package/dist/chunks/cli-1.1.22-n2jecp35.mjs +2 -0
- package/dist/chunks/cli-1.1.22-nstgtysk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-nsydz2bd.mjs +2 -0
- package/dist/chunks/cli-1.1.22-nxv6yayj.mjs +2 -0
- package/dist/chunks/cli-1.1.22-pgrcj1gs.mjs +12 -0
- package/dist/chunks/cli-1.1.22-q622p3vr.mjs +16 -0
- package/dist/chunks/cli-1.1.22-q76mjgec.mjs +2 -0
- package/dist/chunks/cli-1.1.22-qmk7mm5m.mjs +2 -0
- package/dist/chunks/cli-1.1.22-qq7q7v3n.mjs +2 -0
- package/dist/chunks/cli-1.1.22-qzc4h0w2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-r0v2mak7.mjs +2 -0
- package/dist/chunks/cli-1.1.22-r7dnq81v.mjs +2 -0
- package/dist/chunks/cli-1.1.22-r9n3fz01.mjs +2 -0
- package/dist/chunks/cli-1.1.22-rd5zdpvh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-rma08k7m.mjs +3 -0
- package/dist/chunks/cli-1.1.22-rsp3340r.mjs +2 -0
- package/dist/chunks/cli-1.1.22-rtn7nhkb.mjs +1 -0
- package/dist/chunks/cli-1.1.22-s2n02sky.mjs +2 -0
- package/dist/chunks/cli-1.1.22-s5qhs3ds.mjs +2 -0
- package/dist/chunks/cli-1.1.22-s6e60cqc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-sema6yh6.mjs +2 -0
- package/dist/chunks/cli-1.1.22-skpsy2jm.mjs +17 -0
- package/dist/chunks/cli-1.1.22-ss970cxc.mjs +2 -0
- package/dist/chunks/cli-1.1.22-swvmx131.mjs +2 -0
- package/dist/chunks/cli-1.1.22-sy41x518.mjs +2 -0
- package/dist/chunks/cli-1.1.22-tag23y0b.mjs +25 -0
- package/dist/chunks/cli-1.1.22-tkg7zwpn.mjs +20 -0
- package/dist/chunks/cli-1.1.22-tt24grn6.mjs +2 -0
- package/dist/chunks/cli-1.1.22-v260dy3k.mjs +2 -0
- package/dist/chunks/cli-1.1.22-v2q2pts1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-v8pzx6jk.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vdsszncw.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vesjdg08.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vnmyjmjg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vp1eed3p.mjs +7 -0
- package/dist/chunks/cli-1.1.22-vwdxbs23.mjs +2 -0
- package/dist/chunks/cli-1.1.22-vwv40zm1.mjs +2 -0
- package/dist/chunks/cli-1.1.22-waqb850v.mjs +15 -0
- package/dist/chunks/cli-1.1.22-wbpdne8j.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xm1rhe1d.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xmb0wn88.mjs +42 -0
- package/dist/chunks/cli-1.1.22-xmy1w9q2.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xpvyrpxz.mjs +7 -0
- package/dist/chunks/cli-1.1.22-xxwfawkh.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xygngqfs.mjs +2 -0
- package/dist/chunks/cli-1.1.22-xzrnmekb.mjs +3 -0
- package/dist/chunks/cli-1.1.22-y0t8rezv.mjs +2 -0
- package/dist/chunks/cli-1.1.22-y3te45vg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-y4rj8ced.mjs +2 -0
- package/dist/chunks/cli-1.1.22-ya408d88.mjs +4 -0
- package/dist/chunks/cli-1.1.22-yegp0d0j.mjs +6 -0
- package/dist/chunks/cli-1.1.22-yhgxca73.mjs +2 -0
- package/dist/chunks/cli-1.1.22-yjv63n10.mjs +2 -0
- package/dist/chunks/cli-1.1.22-yqbnqsen.mjs +3 -0
- package/dist/chunks/cli-1.1.22-yr5y8074.mjs +4 -0
- package/dist/chunks/cli-1.1.22-yy4d5xbz.mjs +2 -0
- package/dist/chunks/cli-1.1.22-yzk40k6c.mjs +2 -0
- package/dist/chunks/cli-1.1.22-z5g00tpb.mjs +25 -0
- package/dist/chunks/cli-1.1.22-zcrvxkff.mjs +15 -0
- package/dist/chunks/cli-1.1.22-zfg31zpg.mjs +2 -0
- package/dist/chunks/cli-1.1.22-zmt5pksy.mjs +5426 -0
- package/dist/chunks/cli-1.1.22-znq4fk8a.mjs +2 -0
- package/dist/chunks/cli-1.1.22-zsc0cmye.mjs +2 -0
- package/dist/chunks/client-1.1.22-wq8vw6a1.mjs +1 -0
- package/dist/chunks/color-1.1.22-qk5z13ac.mjs +1 -0
- package/dist/chunks/compact-1.1.22-rb84pjhg.mjs +3 -0
- package/dist/chunks/config-1.1.22-0p9ep18d.mjs +1 -0
- package/dist/chunks/config-1.1.22-5mngav76.mjs +1 -0
- package/dist/chunks/constants-1.1.22-kjrh13hv.mjs +1 -0
- package/dist/chunks/context-1.1.22-dw2er614.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.22-znhpxryw.mjs +1 -0
- package/dist/chunks/conversation-1.1.22-awv74gk2.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.22-m6ccr26v.mjs +1 -0
- package/dist/chunks/copy-1.1.22-7b5mhaaj.mjs +9 -0
- package/dist/chunks/cost-1.1.22-dt2gz43e.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.22-a42r8ywe.mjs +1 -0
- package/dist/chunks/createSession-1.1.22-ddd5ddkv.mjs +1 -0
- package/dist/chunks/debug-1.1.22-qraa5by9.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.22-ctnqgj01.mjs +1534 -0
- package/dist/chunks/desktop-1.1.22-wg1hxyyk.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.22-pn2g27hr.mjs +1 -0
- package/dist/chunks/detection-1.1.22-s8r50ft4.mjs +1 -0
- package/dist/chunks/diff-1.1.22-6sdsv83f.mjs +1 -0
- package/dist/chunks/doctor-1.1.22-cj56pasy.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.22-ezjhg329.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.22-k4tqtjbb.mjs +1 -0
- package/dist/chunks/effort-1.1.22-eztddah9.mjs +13 -0
- package/dist/chunks/engine-1.1.22-6wrga0yh.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.22-9jm3xgge.mjs +1 -0
- package/dist/chunks/envUtils-1.1.22-7qb9fr3c.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.22-4xy91rp5.mjs +1 -0
- package/dist/chunks/environments-1.1.22-ke6dvmrb.mjs +1 -0
- package/dist/chunks/errors-1.1.22-rgsmtg01.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.22-xv4kj009.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.22-m7ndjwpq.mjs +1 -0
- package/dist/chunks/exit-1.1.22-m0bm4f9d.mjs +1 -0
- package/dist/chunks/explorer-1.1.22-jsrgxmw0.mjs +1 -0
- package/dist/chunks/export-1.1.22-s0m4af77.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.22-9sdr6tyh.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.22-9k857j7m.mjs +1 -0
- package/dist/chunks/fast-1.1.22-3w3eg6gc.mjs +1 -0
- package/dist/chunks/feedback-1.1.22-7jr2gbzj.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.22-08zb6ajr.mjs +1 -0
- package/dist/chunks/git-1.1.22-m66s3f9x.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.22-2r1deqm3.mjs +1 -0
- package/dist/chunks/goal-1.1.22-60jn1knb.mjs +4 -0
- package/dist/chunks/growthbook-1.1.22-jnddje2q.mjs +1 -0
- package/dist/chunks/headless-1.1.22-jc8xk2dj.mjs +2 -0
- package/dist/chunks/heapdump-1.1.22-h87tv4ay.mjs +6 -0
- package/dist/chunks/help-1.1.22-hkgcwycs.mjs +1 -0
- package/dist/chunks/hookChains-1.1.22-hjjsdtfz.mjs +3 -0
- package/dist/chunks/hooks-1.1.22-d51y91pz.mjs +79 -0
- package/dist/chunks/hooks-1.1.22-knpyhzjq.mjs +1 -0
- package/dist/chunks/ide-1.1.22-0tqwa732.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.22-6qd4v6hf.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.22-gvb5zry4.mjs +1 -0
- package/dist/chunks/index-1.1.22-19x2126b.mjs +30 -0
- package/dist/chunks/index-1.1.22-28fcrc19.mjs +9 -0
- package/dist/chunks/index-1.1.22-2ea02rg7.mjs +1 -0
- package/dist/chunks/index-1.1.22-2rc4s1ea.mjs +1 -0
- package/dist/chunks/index-1.1.22-33ka1vh2.mjs +1 -0
- package/dist/chunks/index-1.1.22-3sbe52mk.mjs +1 -0
- package/dist/chunks/index-1.1.22-3ze6s7jh.mjs +1 -0
- package/dist/chunks/index-1.1.22-45fydkr4.mjs +1 -0
- package/dist/chunks/index-1.1.22-4jyb49wh.mjs +5 -0
- package/dist/chunks/index-1.1.22-53bbsdht.mjs +23 -0
- package/dist/chunks/index-1.1.22-6dbeceeq.mjs +1 -0
- package/dist/chunks/index-1.1.22-8dntbh7a.mjs +1 -0
- package/dist/chunks/index-1.1.22-8kjk15ba.mjs +1 -0
- package/dist/chunks/index-1.1.22-an0gp01d.mjs +1 -0
- package/dist/chunks/index-1.1.22-cnbxnqdc.mjs +1 -0
- package/dist/chunks/index-1.1.22-fpsntg6z.mjs +1 -0
- package/dist/chunks/index-1.1.22-fv3cwfqb.mjs +1 -0
- package/dist/chunks/index-1.1.22-hjp106ay.mjs +1 -0
- package/dist/chunks/index-1.1.22-njczpq0j.mjs +9 -0
- package/dist/chunks/index-1.1.22-zeprwv8d.mjs +2 -0
- package/dist/chunks/index-1.1.22-zmmyfbe7.mjs +1 -0
- package/dist/chunks/index-1.1.22-zssja3p2.mjs +2 -0
- package/dist/chunks/index-1.1.22-zw38mh26.mjs +1 -0
- package/dist/chunks/init-1.1.22-xnq27h0g.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.22-y1d60qz3.mjs +1 -0
- package/dist/chunks/ink-1.1.22-k48q879m.mjs +1 -0
- package/dist/chunks/insights-1.1.22-a1cvbm3p.mjs +870 -0
- package/dist/chunks/install-1.1.22-jbzmqsdp.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.22-8a3hpgxj.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.22-rt6z32mx.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.22-z450bn0g.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.22-6ks3mty3.mjs +1 -0
- package/dist/chunks/keybindings-1.1.22-g9y42jd0.mjs +2 -0
- package/dist/chunks/knowledge-1.1.22-9pnvwgtc.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.22-qt6jab06.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.22-sq4k9pva.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.22-vshz13qp.mjs +1 -0
- package/dist/chunks/log-1.1.22-e7ksty3v.mjs +1 -0
- package/dist/chunks/main-1.1.22-6td1g6n1.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.22-htj06t2x.mjs +1 -0
- package/dist/chunks/mcp-1.1.22-18h7drd2.mjs +17 -0
- package/dist/chunks/mcp-1.1.22-ezfae103.mjs +1 -0
- package/dist/chunks/mcp-1.1.22-s120rv95.mjs +4 -0
- package/dist/chunks/mcpb-1.1.22-vm6h475e.mjs +1 -0
- package/dist/chunks/memory-1.1.22-e0tx5g0m.mjs +72 -0
- package/dist/chunks/model-1.1.22-jpnba4j9.mjs +2 -0
- package/dist/chunks/model-1.1.22-ptaehfsq.mjs +1 -0
- package/dist/chunks/node-1.1.22-n2j0h224.mjs +14 -0
- package/dist/chunks/oauth-1.1.22-xryjmqvy.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.22-5g2mvrb0.mjs +14 -0
- package/dist/chunks/output-style-1.1.22-15avrxe6.mjs +1 -0
- package/dist/chunks/package-ZOVFJE7Z-1.1.22-74v22202.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.22-th9g7k2v.mjs +1 -0
- package/dist/chunks/parser-1.1.22-f76s0696.mjs +1 -0
- package/dist/chunks/passes-1.1.22-5067sbnv.mjs +1 -0
- package/dist/chunks/permissions-1.1.22-jq3s11rr.mjs +3 -0
- package/dist/chunks/permissions-1.1.22-yjbnyvja.mjs +1 -0
- package/dist/chunks/plan-1.1.22-a0v77tas.mjs +1 -0
- package/dist/chunks/plist-1.1.22-stjt7ne7.mjs +1 -0
- package/dist/chunks/plugin-1.1.22-ccc18w6d.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.22-6w6xqk0q.mjs +1 -0
- package/dist/chunks/plugins-1.1.22-14tg96p5.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.22-w8y973hr.mjs +2 -0
- package/dist/chunks/print-1.1.22-fj5my0gp.mjs +57 -0
- package/dist/chunks/process-1.1.22-5ehjyzp9.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.22-rfx8p83z.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.22-zz4rg3b9.mjs +9 -0
- package/dist/chunks/prompt-1.1.22-1k2zk0wc.mjs +1 -0
- package/dist/chunks/prompt-1.1.22-dnwycjh5.mjs +1 -0
- package/dist/chunks/prompts-1.1.22-4p4a5se6.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.22-cs8w65fv.mjs +13 -0
- package/dist/chunks/provider-1.1.22-bn5s7tah.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.22-pymtgbvs.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.22-c7c5hbxa.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.22-w2qffppm.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.22-ab4qb34w.mjs +26 -0
- package/dist/chunks/registry-1.1.22-nsm8d8eb.mjs +1 -0
- package/dist/chunks/release-notes-1.1.22-8x23myzn.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.22-ak7jhwx7.mjs +2 -0
- package/dist/chunks/remote-env-1.1.22-x7trmcqx.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.22-hbz0g8ya.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.22-f6jb57v7.mjs +1 -0
- package/dist/chunks/rename-1.1.22-xe35q0k0.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.22-fhwjkdxg.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.22-vv0a8mm6.mjs +1 -0
- package/dist/chunks/resume-1.1.22-2sa8hbck.mjs +2 -0
- package/dist/chunks/rewind-1.1.22-9p74phfv.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.22-d6srkssk.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.22-g8m5b1gg.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.22-xfg2fsw2.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.22-dtc44mq5.mjs +1 -0
- package/dist/chunks/session-1.1.22-3tjyetra.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.22-33mn13e8.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.22-d3bejz9v.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.22-j74sh7m1.mjs +1 -0
- package/dist/chunks/settings-1.1.22-nkarfvpa.mjs +1 -0
- package/dist/chunks/setup-1.1.22-qcehqed4.mjs +12 -0
- package/dist/chunks/sinks-1.1.22-cq9rny33.mjs +1 -0
- package/dist/chunks/skills-1.1.22-ekjpttza.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.22-9fngk9y1.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.22-d1k95rad.mjs +1 -0
- package/dist/chunks/state-1.1.22-jwyx08g8.mjs +1 -0
- package/dist/chunks/stats-1.1.22-gbms572d.mjs +6 -0
- package/dist/chunks/status-1.1.22-k6tz1204.mjs +1 -0
- package/dist/chunks/stickers-1.1.22-0p5wcv91.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.22-8nw03e6a.mjs +1 -0
- package/dist/chunks/tasks-1.1.22-j3tvhmzv.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.22-9h9wz2vt.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.22-az279j20.mjs +1 -0
- package/dist/chunks/teleport-1.1.22-x65tzb7k.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.22-mgtn4k1h.mjs +1 -0
- package/dist/chunks/theme-1.1.22-ytcpmqf6.mjs +1 -0
- package/dist/chunks/thinkback-1.1.22-r3tqf574.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.22-gy5pmk8r.mjs +1 -0
- package/dist/chunks/toolPool-1.1.22-enzkj5fj.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.22-nks2rxm6.mjs +1 -0
- package/dist/chunks/tools-1.1.22-vngj7bpe.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.22-521tzk05.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.22-thexftmp.mjs +69 -0
- package/dist/chunks/types-1.1.22-jp8m10f1.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.22-tjrn8agz.mjs +4 -0
- package/dist/chunks/update-1.1.22-n10ztshv.mjs +72 -0
- package/dist/chunks/upgrade-1.1.22-e0pjbtcd.mjs +1 -0
- package/dist/chunks/upload-1.1.22-e00jdttg.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.22-1qmxkbg7.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.22-jj7mv0bn.mjs +1 -0
- package/dist/chunks/usage-1.1.22-s54ykz8x.mjs +1 -0
- package/dist/chunks/util-1.1.22-wntx1394.mjs +1 -0
- package/dist/chunks/utils-1.1.22-wmew7b5j.mjs +1 -0
- package/dist/chunks/vim-1.1.22-qddsv4he.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.22-1z60qm0a.mjs +13 -0
- package/dist/chunks/watcher-1.1.22-100q2zbm.mjs +1 -0
- package/dist/chunks/wiki-1.1.22-akk70ycq.mjs +132 -0
- package/dist/chunks/workflows-1.1.22-ed33rwny.mjs +1 -0
- package/dist/chunks/worktree-1.1.22-f3b1rr0f.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.22-taeyewr8.mjs +1 -0
- package/dist/chunks/wrapper-1.1.22-hayqq9zr.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.21-enrxqdsb.mjs +0 -1
- package/dist/chunks/App-1.1.21-x1hrya65.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.21-q3rfm86r.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.21-djjt8wjf.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.21-8rxzv91c.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.21-2mv1yf69.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.21-qk8b7h6c.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.21-26vykmpr.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.21-3xgr69zd.mjs +0 -6
- package/dist/chunks/Doctor-1.1.21-yv90ebbh.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.21-xbb9damr.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.21-vghjz16w.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.21-s80vswk4.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.21-vcrwctz5.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.21-dx1ga7w0.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.21-v9s07bhb.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.21-r9zcajjp.mjs +0 -1
- package/dist/chunks/REPL-1.1.21-6jn26haf.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.21-s9pjbbba.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.21-e2efafxn.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.21-sbtxsq9w.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.21-jbdthnzv.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.21-rg1e4ya1.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.21-th8y0yfa.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.21-ns92ypnd.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.21-tk81657g.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.21-8b6473mc.mjs +0 -1
- package/dist/chunks/add-dir-1.1.21-y2qcrtjr.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.21-0c6btjcc.mjs +0 -1
- package/dist/chunks/agents-1.1.21-1t7q92hk.mjs +0 -3
- package/dist/chunks/agents-1.1.21-jppr4jq8.mjs +0 -110
- package/dist/chunks/api-1.1.21-g8sbqk15.mjs +0 -1
- package/dist/chunks/asciicast-1.1.21-bvqngtzz.mjs +0 -1
- package/dist/chunks/assistant-1.1.21-1zc3dwty.mjs +0 -1
- package/dist/chunks/auth-1.1.21-65a9bbnh.mjs +0 -1
- package/dist/chunks/auth-1.1.21-f0ghh3mq.mjs +0 -1
- package/dist/chunks/autoMode-1.1.21-n2a8t9t3.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.21-9fx83p2j.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.21-52ky9ghk.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.21-j6t4h3jn.mjs +0 -1
- package/dist/chunks/branch-1.1.21-71gampws.mjs +0 -4
- package/dist/chunks/bridge-1.1.21-d1gzs1zz.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.21-9pps44qe.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.21-50r8crvp.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.21-e92yewh9.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.21-ckngyn7x.mjs +0 -1
- package/dist/chunks/btw-1.1.21-aqj4z7z7.mjs +0 -1
- package/dist/chunks/buddy-1.1.21-74rtch74.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.21-a8ne39rt.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.21-pw082ztb.mjs +0 -4
- package/dist/chunks/caches-1.1.21-7s65hxx4.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.21-0fp1r8xs.mjs +0 -1
- package/dist/chunks/claudemd-1.1.21-q4k3d1km.mjs +0 -1
- package/dist/chunks/clear-1.1.21-9jjttvr0.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.21-jr9rxdmx.mjs +0 -1
- package/dist/chunks/cli-1.1.21-03kdy8xc.mjs +0 -2
- package/dist/chunks/cli-1.1.21-04brya8b.mjs +0 -2
- package/dist/chunks/cli-1.1.21-0dp6e2at.mjs +0 -2
- package/dist/chunks/cli-1.1.21-0etv5x2s.mjs +0 -2
- package/dist/chunks/cli-1.1.21-0g1a3shp.mjs +0 -2
- package/dist/chunks/cli-1.1.21-0mn9qshg.mjs +0 -2
- package/dist/chunks/cli-1.1.21-0n54q1mb.mjs +0 -12
- package/dist/chunks/cli-1.1.21-0sqcznka.mjs +0 -4
- package/dist/chunks/cli-1.1.21-0w4y6zch.mjs +0 -2
- package/dist/chunks/cli-1.1.21-15f55e7j.mjs +0 -2
- package/dist/chunks/cli-1.1.21-1a9968t0.mjs +0 -3
- package/dist/chunks/cli-1.1.21-1h90n4wy.mjs +0 -2
- package/dist/chunks/cli-1.1.21-1hdfkyjv.mjs +0 -2
- package/dist/chunks/cli-1.1.21-1mhmk0z3.mjs +0 -2
- package/dist/chunks/cli-1.1.21-1mxg753a.mjs +0 -2
- package/dist/chunks/cli-1.1.21-1y508j57.mjs +0 -2
- package/dist/chunks/cli-1.1.21-27a8sw98.mjs +0 -2
- package/dist/chunks/cli-1.1.21-29jp27ks.mjs +0 -2
- package/dist/chunks/cli-1.1.21-2b91fkp9.mjs +0 -66
- package/dist/chunks/cli-1.1.21-2cj3wv9s.mjs +0 -3
- package/dist/chunks/cli-1.1.21-2cqbdmfj.mjs +0 -2
- package/dist/chunks/cli-1.1.21-2gsy9rkt.mjs +0 -7
- package/dist/chunks/cli-1.1.21-2nezc8rm.mjs +0 -2
- package/dist/chunks/cli-1.1.21-2txzm68v.mjs +0 -2
- package/dist/chunks/cli-1.1.21-2zvrsnnb.mjs +0 -15
- package/dist/chunks/cli-1.1.21-36nmjsvc.mjs +0 -3
- package/dist/chunks/cli-1.1.21-3g5qq5vn.mjs +0 -2
- package/dist/chunks/cli-1.1.21-3n2szerd.mjs +0 -2
- package/dist/chunks/cli-1.1.21-3v1e2mge.mjs +0 -3
- package/dist/chunks/cli-1.1.21-3x0d0qkq.mjs +0 -2
- package/dist/chunks/cli-1.1.21-4010086n.mjs +0 -39
- package/dist/chunks/cli-1.1.21-4jzagkc6.mjs +0 -2
- package/dist/chunks/cli-1.1.21-4ka4k9j1.mjs +0 -2
- package/dist/chunks/cli-1.1.21-4s3mz86q.mjs +0 -2
- package/dist/chunks/cli-1.1.21-510h0rfd.mjs +0 -2
- package/dist/chunks/cli-1.1.21-5bxzgpbd.mjs +0 -16
- package/dist/chunks/cli-1.1.21-5jkvz9tr.mjs +0 -2
- package/dist/chunks/cli-1.1.21-5srfgw0e.mjs +0 -2
- package/dist/chunks/cli-1.1.21-5znk8g89.mjs +0 -2
- package/dist/chunks/cli-1.1.21-61eyxvr8.mjs +0 -2
- package/dist/chunks/cli-1.1.21-6drn6rpn.mjs +0 -2
- package/dist/chunks/cli-1.1.21-71yrrgxv.mjs +0 -2
- package/dist/chunks/cli-1.1.21-72p8ma2g.mjs +0 -2
- package/dist/chunks/cli-1.1.21-76ttz1tt.mjs +0 -2
- package/dist/chunks/cli-1.1.21-7bq44n89.mjs +0 -2
- package/dist/chunks/cli-1.1.21-7fymk48z.mjs +0 -2
- package/dist/chunks/cli-1.1.21-7gxr15wj.mjs +0 -2
- package/dist/chunks/cli-1.1.21-7q6ajew6.mjs +0 -6
- package/dist/chunks/cli-1.1.21-8022a544.mjs +0 -3
- package/dist/chunks/cli-1.1.21-811zr6vq.mjs +0 -15
- package/dist/chunks/cli-1.1.21-87rs5rvq.mjs +0 -2
- package/dist/chunks/cli-1.1.21-89hqsfpf.mjs +0 -2
- package/dist/chunks/cli-1.1.21-8db7fdfr.mjs +0 -133
- package/dist/chunks/cli-1.1.21-8f3dmt8c.mjs +0 -2
- package/dist/chunks/cli-1.1.21-8mbdp47n.mjs +0 -34
- package/dist/chunks/cli-1.1.21-8p4zm65z.mjs +0 -4
- package/dist/chunks/cli-1.1.21-8w2yv4xp.mjs +0 -3
- package/dist/chunks/cli-1.1.21-92zh5twv.mjs +0 -2
- package/dist/chunks/cli-1.1.21-93zvwec9.mjs +0 -6
- package/dist/chunks/cli-1.1.21-9fnv418t.mjs +0 -24
- package/dist/chunks/cli-1.1.21-9jq126pc.mjs +0 -2
- package/dist/chunks/cli-1.1.21-9za692z5.mjs +0 -2
- package/dist/chunks/cli-1.1.21-a6pwx2r1.mjs +0 -2
- package/dist/chunks/cli-1.1.21-aa0dfxt3.mjs +0 -17
- package/dist/chunks/cli-1.1.21-admbc6bh.mjs +0 -2
- package/dist/chunks/cli-1.1.21-adykpnkk.mjs +0 -2
- package/dist/chunks/cli-1.1.21-an07xgtv.mjs +0 -25
- package/dist/chunks/cli-1.1.21-arjp8fch.mjs +0 -50
- package/dist/chunks/cli-1.1.21-as9g92fa.mjs +0 -4
- package/dist/chunks/cli-1.1.21-atvca4b4.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ayg2p1x9.mjs +0 -133
- package/dist/chunks/cli-1.1.21-b7q4e2tp.mjs +0 -2
- package/dist/chunks/cli-1.1.21-b7y0x2mz.mjs +0 -3
- package/dist/chunks/cli-1.1.21-b92n11f5.mjs +0 -2
- package/dist/chunks/cli-1.1.21-badssmqg.mjs +0 -25
- package/dist/chunks/cli-1.1.21-bbnxyfz6.mjs +0 -4
- package/dist/chunks/cli-1.1.21-bc6x1hhj.mjs +0 -2
- package/dist/chunks/cli-1.1.21-bjdtgm9x.mjs +0 -2
- package/dist/chunks/cli-1.1.21-bp86y1rn.mjs +0 -2
- package/dist/chunks/cli-1.1.21-c27qrh9k.mjs +0 -2
- package/dist/chunks/cli-1.1.21-cb82p9ss.mjs +0 -24
- package/dist/chunks/cli-1.1.21-ccarwr2t.mjs +0 -2
- package/dist/chunks/cli-1.1.21-cdk96yzq.mjs +0 -2
- package/dist/chunks/cli-1.1.21-cgspbjjg.mjs +0 -2
- package/dist/chunks/cli-1.1.21-cqsmyvsx.mjs +0 -6
- package/dist/chunks/cli-1.1.21-dvkgw1dj.mjs +0 -4
- package/dist/chunks/cli-1.1.21-e28mvxq4.mjs +0 -2
- package/dist/chunks/cli-1.1.21-e4qvgw9g.mjs +0 -4
- package/dist/chunks/cli-1.1.21-e8cbfmn6.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ekphtr04.mjs +0 -6
- package/dist/chunks/cli-1.1.21-eqmp9rz1.mjs +0 -2
- package/dist/chunks/cli-1.1.21-er4j34m5.mjs +0 -4
- package/dist/chunks/cli-1.1.21-eray52nd.mjs +0 -5426
- package/dist/chunks/cli-1.1.21-ev8srpeg.mjs +0 -18
- package/dist/chunks/cli-1.1.21-exwxjwrp.mjs +0 -17
- package/dist/chunks/cli-1.1.21-f3caatgb.mjs +0 -2
- package/dist/chunks/cli-1.1.21-fbxz5jg5.mjs +0 -21
- package/dist/chunks/cli-1.1.21-fdf1j366.mjs +0 -3
- package/dist/chunks/cli-1.1.21-fn4xyb5w.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ftenq1jj.mjs +0 -24
- package/dist/chunks/cli-1.1.21-fyryzam5.mjs +0 -2
- package/dist/chunks/cli-1.1.21-g2fr5c6z.mjs +0 -3
- package/dist/chunks/cli-1.1.21-g6wtm4qg.mjs +0 -206
- package/dist/chunks/cli-1.1.21-g7ve83cr.mjs +0 -2
- package/dist/chunks/cli-1.1.21-g9rmmx1z.mjs +0 -6
- package/dist/chunks/cli-1.1.21-gg6ksnw9.mjs +0 -2
- package/dist/chunks/cli-1.1.21-gyh1fxbr.mjs +0 -20
- package/dist/chunks/cli-1.1.21-h2y2n4jq.mjs +0 -2
- package/dist/chunks/cli-1.1.21-h82yh3wp.mjs +0 -2
- package/dist/chunks/cli-1.1.21-hdc9e0dr.mjs +0 -2
- package/dist/chunks/cli-1.1.21-hjkr35qk.mjs +0 -2
- package/dist/chunks/cli-1.1.21-hmex7wtk.mjs +0 -4
- package/dist/chunks/cli-1.1.21-hn93q5ch.mjs +0 -1
- package/dist/chunks/cli-1.1.21-j0qbp8ym.mjs +0 -2
- package/dist/chunks/cli-1.1.21-j5f9b05q.mjs +0 -2
- package/dist/chunks/cli-1.1.21-jkqtb9j1.mjs +0 -2
- package/dist/chunks/cli-1.1.21-jmrjkgt7.mjs +0 -2
- package/dist/chunks/cli-1.1.21-jqy3a4ze.mjs +0 -9
- package/dist/chunks/cli-1.1.21-kc7af745.mjs +0 -5
- package/dist/chunks/cli-1.1.21-kf8s641e.mjs +0 -2
- package/dist/chunks/cli-1.1.21-kkaftzqq.mjs +0 -2
- package/dist/chunks/cli-1.1.21-krwdkyza.mjs +0 -18
- package/dist/chunks/cli-1.1.21-kv15mvd0.mjs +0 -3
- package/dist/chunks/cli-1.1.21-m53y3ydn.mjs +0 -2
- package/dist/chunks/cli-1.1.21-m7dy7yxc.mjs +0 -2
- package/dist/chunks/cli-1.1.21-m84cxaww.mjs +0 -2
- package/dist/chunks/cli-1.1.21-mqxc9x6p.mjs +0 -3
- package/dist/chunks/cli-1.1.21-mysvm055.mjs +0 -8
- package/dist/chunks/cli-1.1.21-n00fkex6.mjs +0 -15
- package/dist/chunks/cli-1.1.21-nh0wz4ab.mjs +0 -2
- package/dist/chunks/cli-1.1.21-nqzn2wyp.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ns0xhhjk.mjs +0 -2
- package/dist/chunks/cli-1.1.21-pbxjvmxd.mjs +0 -2
- package/dist/chunks/cli-1.1.21-phnkc3q1.mjs +0 -2
- package/dist/chunks/cli-1.1.21-pq9par9t.mjs +0 -2
- package/dist/chunks/cli-1.1.21-pqweg9t6.mjs +0 -3
- package/dist/chunks/cli-1.1.21-q2k4myze.mjs +0 -2
- package/dist/chunks/cli-1.1.21-q2xyk8fc.mjs +0 -2
- package/dist/chunks/cli-1.1.21-qgc6dd5n.mjs +0 -2
- package/dist/chunks/cli-1.1.21-qj7gkh71.mjs +0 -2
- package/dist/chunks/cli-1.1.21-qs47skyh.mjs +0 -2
- package/dist/chunks/cli-1.1.21-qvxw9ea2.mjs +0 -2
- package/dist/chunks/cli-1.1.21-qxx08ev5.mjs +0 -2
- package/dist/chunks/cli-1.1.21-qz8ykx4a.mjs +0 -2
- package/dist/chunks/cli-1.1.21-r90yap4s.mjs +0 -4
- package/dist/chunks/cli-1.1.21-rb0ytqxh.mjs +0 -2
- package/dist/chunks/cli-1.1.21-rtcccwys.mjs +0 -2
- package/dist/chunks/cli-1.1.21-rvm9rmen.mjs +0 -2
- package/dist/chunks/cli-1.1.21-rwr3npv8.mjs +0 -2
- package/dist/chunks/cli-1.1.21-s076czd6.mjs +0 -60
- package/dist/chunks/cli-1.1.21-sa93ge05.mjs +0 -2
- package/dist/chunks/cli-1.1.21-sk1w1xc8.mjs +0 -2
- package/dist/chunks/cli-1.1.21-sqrqvfx9.mjs +0 -2
- package/dist/chunks/cli-1.1.21-srp2gqhn.mjs +0 -2
- package/dist/chunks/cli-1.1.21-st3azfy2.mjs +0 -2
- package/dist/chunks/cli-1.1.21-syphtp6b.mjs +0 -2
- package/dist/chunks/cli-1.1.21-t4e7t3gb.mjs +0 -2
- package/dist/chunks/cli-1.1.21-tf5jnyct.mjs +0 -2
- package/dist/chunks/cli-1.1.21-tgkmdth7.mjs +0 -3
- package/dist/chunks/cli-1.1.21-tjgcqqx5.mjs +0 -12
- package/dist/chunks/cli-1.1.21-v8edsbtk.mjs +0 -24
- package/dist/chunks/cli-1.1.21-vb6krv5p.mjs +0 -2
- package/dist/chunks/cli-1.1.21-vbewc9m8.mjs +0 -2
- package/dist/chunks/cli-1.1.21-vgqvfdjj.mjs +0 -45
- package/dist/chunks/cli-1.1.21-vhz2g6dh.mjs +0 -2
- package/dist/chunks/cli-1.1.21-vpc12nrb.mjs +0 -2
- package/dist/chunks/cli-1.1.21-vqyps5tc.mjs +0 -2
- package/dist/chunks/cli-1.1.21-vtnh7am3.mjs +0 -2
- package/dist/chunks/cli-1.1.21-vtrbe9na.mjs +0 -2
- package/dist/chunks/cli-1.1.21-vyzdf2h8.mjs +0 -2
- package/dist/chunks/cli-1.1.21-w17d43nx.mjs +0 -2
- package/dist/chunks/cli-1.1.21-wermyahx.mjs +0 -2
- package/dist/chunks/cli-1.1.21-wq125rgf.mjs +0 -2
- package/dist/chunks/cli-1.1.21-wwrjy8z7.mjs +0 -2
- package/dist/chunks/cli-1.1.21-x34spqyp.mjs +0 -2
- package/dist/chunks/cli-1.1.21-x652vc6g.mjs +0 -7
- package/dist/chunks/cli-1.1.21-xa36je2k.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xc1ka519.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xds4bha6.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xg5fsk6h.mjs +0 -6
- package/dist/chunks/cli-1.1.21-xkd51fv8.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xngg1p8f.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xrh2trhz.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xsjr5sq9.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xtdgxynh.mjs +0 -9
- package/dist/chunks/cli-1.1.21-xtysnd33.mjs +0 -2
- package/dist/chunks/cli-1.1.21-xx8dx3jd.mjs +0 -4
- package/dist/chunks/cli-1.1.21-y0d1dgzh.mjs +0 -58
- package/dist/chunks/cli-1.1.21-ybbcrjyr.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ym854mnb.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ymepfykz.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ypkp1djh.mjs +0 -5
- package/dist/chunks/cli-1.1.21-yt2eqsfh.mjs +0 -2
- package/dist/chunks/cli-1.1.21-ytgz6a2f.mjs +0 -2
- package/dist/chunks/cli-1.1.21-yx5x54tp.mjs +0 -2
- package/dist/chunks/cli-1.1.21-yxj3mby7.mjs +0 -2
- package/dist/chunks/cli-1.1.21-yzg6k72r.mjs +0 -2
- package/dist/chunks/cli-1.1.21-z008y1nv.mjs +0 -2
- package/dist/chunks/cli-1.1.21-z3qkwz5y.mjs +0 -2
- package/dist/chunks/cli-1.1.21-z6tzkkrz.mjs +0 -2
- package/dist/chunks/cli-1.1.21-zmkcqsqx.mjs +0 -42
- package/dist/chunks/cli-1.1.21-zyz9s3k0.mjs +0 -3
- package/dist/chunks/client-1.1.21-2z9qpd9x.mjs +0 -1
- package/dist/chunks/color-1.1.21-hx6pdrvg.mjs +0 -1
- package/dist/chunks/compact-1.1.21-nwq0kqfv.mjs +0 -3
- package/dist/chunks/config-1.1.21-6a9bh364.mjs +0 -1
- package/dist/chunks/config-1.1.21-mk64wy1s.mjs +0 -1
- package/dist/chunks/constants-1.1.21-6t9m2kc1.mjs +0 -1
- package/dist/chunks/context-1.1.21-0q6bzccr.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.21-4hsfsph7.mjs +0 -1
- package/dist/chunks/conversation-1.1.21-7b7x9kge.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.21-h7jcrbjr.mjs +0 -1
- package/dist/chunks/copy-1.1.21-733m4ede.mjs +0 -9
- package/dist/chunks/cost-1.1.21-wygsny1s.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.21-xbfgy7b5.mjs +0 -1
- package/dist/chunks/createSession-1.1.21-mz06dkby.mjs +0 -1
- package/dist/chunks/debug-1.1.21-1mr7a9zd.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.21-vax6c0kp.mjs +0 -1534
- package/dist/chunks/desktop-1.1.21-pgp4t084.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.21-4kgqz7gj.mjs +0 -1
- package/dist/chunks/detection-1.1.21-fpdqjz2w.mjs +0 -1
- package/dist/chunks/diff-1.1.21-eh8phe15.mjs +0 -1
- package/dist/chunks/doctor-1.1.21-qsk3dp6v.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.21-vk3kxvax.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.21-hhk47ba3.mjs +0 -1
- package/dist/chunks/effort-1.1.21-ekeecb10.mjs +0 -13
- package/dist/chunks/engine-1.1.21-d6pnpzs9.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.21-45xt8y53.mjs +0 -1
- package/dist/chunks/envUtils-1.1.21-602cy0p0.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.21-sdkr95ba.mjs +0 -1
- package/dist/chunks/environments-1.1.21-xc2zd8j5.mjs +0 -1
- package/dist/chunks/errors-1.1.21-zpsc24qr.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.21-wktrh3tf.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.21-h0jd5fma.mjs +0 -1
- package/dist/chunks/exit-1.1.21-s6bxy0s5.mjs +0 -1
- package/dist/chunks/explorer-1.1.21-yecddj8m.mjs +0 -1
- package/dist/chunks/export-1.1.21-b5aa7w8q.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.21-ccmxd1ga.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.21-jysky3gv.mjs +0 -1
- package/dist/chunks/fast-1.1.21-wdpp74vz.mjs +0 -1
- package/dist/chunks/feedback-1.1.21-gc3be80r.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.21-cs1b38yg.mjs +0 -1
- package/dist/chunks/git-1.1.21-ncfwpbjz.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.21-qya4z4p9.mjs +0 -1
- package/dist/chunks/goal-1.1.21-a70wv2cb.mjs +0 -4
- package/dist/chunks/growthbook-1.1.21-hmscgg3x.mjs +0 -1
- package/dist/chunks/headless-1.1.21-dwdnz8rt.mjs +0 -2
- package/dist/chunks/heapdump-1.1.21-tvazwzf0.mjs +0 -6
- package/dist/chunks/help-1.1.21-c9hbdjta.mjs +0 -1
- package/dist/chunks/hookChains-1.1.21-acyv2xry.mjs +0 -3
- package/dist/chunks/hooks-1.1.21-cfmmnnah.mjs +0 -1
- package/dist/chunks/hooks-1.1.21-w12e5h5b.mjs +0 -79
- package/dist/chunks/ide-1.1.21-wywpj723.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.21-yhb521r3.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.21-kk58cty9.mjs +0 -1
- package/dist/chunks/index-1.1.21-3b6xa2yf.mjs +0 -1
- package/dist/chunks/index-1.1.21-3d6h7ke1.mjs +0 -1
- package/dist/chunks/index-1.1.21-57kd6ptp.mjs +0 -1
- package/dist/chunks/index-1.1.21-593vrygw.mjs +0 -23
- package/dist/chunks/index-1.1.21-5fmfkm8y.mjs +0 -9
- package/dist/chunks/index-1.1.21-6zxs2rfg.mjs +0 -1
- package/dist/chunks/index-1.1.21-8bhdk6jc.mjs +0 -5
- package/dist/chunks/index-1.1.21-adb7btws.mjs +0 -1
- package/dist/chunks/index-1.1.21-etcjfd99.mjs +0 -1
- package/dist/chunks/index-1.1.21-fy80jkp2.mjs +0 -1
- package/dist/chunks/index-1.1.21-hbxv4pgp.mjs +0 -1
- package/dist/chunks/index-1.1.21-hytfcvqs.mjs +0 -1
- package/dist/chunks/index-1.1.21-m0a3fv04.mjs +0 -30
- package/dist/chunks/index-1.1.21-m167t33s.mjs +0 -1
- package/dist/chunks/index-1.1.21-q5vrbm1a.mjs +0 -1
- package/dist/chunks/index-1.1.21-s1aj62xz.mjs +0 -1
- package/dist/chunks/index-1.1.21-srxg6mfj.mjs +0 -1
- package/dist/chunks/index-1.1.21-vcbqyp49.mjs +0 -1
- package/dist/chunks/index-1.1.21-wqh7rgwt.mjs +0 -2
- package/dist/chunks/index-1.1.21-xc8hadvs.mjs +0 -9
- package/dist/chunks/index-1.1.21-y0mjkxt4.mjs +0 -1
- package/dist/chunks/index-1.1.21-zn4zb4j6.mjs +0 -2
- package/dist/chunks/index-1.1.21-zphh9zyt.mjs +0 -1
- package/dist/chunks/init-1.1.21-3rsjrj70.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.21-t8zgkgkq.mjs +0 -1
- package/dist/chunks/ink-1.1.21-zrg02gjq.mjs +0 -1
- package/dist/chunks/insights-1.1.21-08rs6ycg.mjs +0 -870
- package/dist/chunks/install-1.1.21-fvsrnj75.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.21-kbd8kwxx.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.21-pvac1nvj.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.21-3ah0jawp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.21-y8fy1vbg.mjs +0 -1
- package/dist/chunks/keybindings-1.1.21-wmvt9cka.mjs +0 -2
- package/dist/chunks/knowledge-1.1.21-z92hhppb.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.21-cv8x9bkm.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.21-kwpyjgm3.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.21-m59wf0fn.mjs +0 -1
- package/dist/chunks/log-1.1.21-xwc604af.mjs +0 -1
- package/dist/chunks/main-1.1.21-mpr5depp.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.21-nk3htdmq.mjs +0 -1
- package/dist/chunks/mcp-1.1.21-e7spj6dg.mjs +0 -1
- package/dist/chunks/mcp-1.1.21-mv23tsxc.mjs +0 -17
- package/dist/chunks/mcp-1.1.21-wa8c077q.mjs +0 -4
- package/dist/chunks/mcpb-1.1.21-bv8pwy9m.mjs +0 -1
- package/dist/chunks/memory-1.1.21-gqa797mn.mjs +0 -72
- package/dist/chunks/model-1.1.21-3dg8jye0.mjs +0 -1
- package/dist/chunks/model-1.1.21-3x98v8x4.mjs +0 -2
- package/dist/chunks/node-1.1.21-zxmyqm2z.mjs +0 -14
- package/dist/chunks/oauth-1.1.21-4ffdtf1q.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.21-9p741891.mjs +0 -14
- package/dist/chunks/output-style-1.1.21-kxvx8zbe.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.21-myehvasc.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.21-dtjr5vb7.mjs +0 -1
- package/dist/chunks/parser-1.1.21-jaqdwq7t.mjs +0 -1
- package/dist/chunks/passes-1.1.21-g830qx07.mjs +0 -1
- package/dist/chunks/permissions-1.1.21-ec5a6xxt.mjs +0 -3
- package/dist/chunks/permissions-1.1.21-qdday4sh.mjs +0 -1
- package/dist/chunks/plan-1.1.21-f5qe7hem.mjs +0 -1
- package/dist/chunks/plist-1.1.21-y82gjgzs.mjs +0 -1
- package/dist/chunks/plugin-1.1.21-0kfwxmv2.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.21-f5ddb5rc.mjs +0 -1
- package/dist/chunks/plugins-1.1.21-exphk1gb.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.21-jhp4m01m.mjs +0 -2
- package/dist/chunks/print-1.1.21-rcjs5pc4.mjs +0 -57
- package/dist/chunks/process-1.1.21-03zz92gq.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.21-zey1mfgx.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.21-cwxbh5pw.mjs +0 -9
- package/dist/chunks/prompt-1.1.21-49amsrvt.mjs +0 -1
- package/dist/chunks/prompt-1.1.21-gv2b1rk5.mjs +0 -1
- package/dist/chunks/prompts-1.1.21-hggxct4d.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.21-e974kgtb.mjs +0 -13
- package/dist/chunks/provider-1.1.21-xnprbehk.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.21-b4tnf9te.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.21-0n0739n4.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.21-s59gtr3x.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.21-wb1mef7h.mjs +0 -26
- package/dist/chunks/registry-1.1.21-knz7xa0h.mjs +0 -1
- package/dist/chunks/release-notes-1.1.21-mvr373q4.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.21-b4czg147.mjs +0 -2
- package/dist/chunks/remote-env-1.1.21-dbnxeqkg.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.21-fr3w35kv.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.21-5fvz5bsw.mjs +0 -1
- package/dist/chunks/rename-1.1.21-6rvag2s4.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.21-tay6v7n4.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.21-nzx71pts.mjs +0 -1
- package/dist/chunks/resume-1.1.21-mp3a9npp.mjs +0 -2
- package/dist/chunks/rewind-1.1.21-njh0btq2.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.21-7j3b02hm.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.21-d1v7f1sh.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.21-1vd13wkq.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.21-c7fw2ksr.mjs +0 -1
- package/dist/chunks/session-1.1.21-9gpkxas1.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.21-w4676wtk.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.21-ecwm1cfg.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.21-kan90ps9.mjs +0 -1
- package/dist/chunks/settings-1.1.21-4s7ew4vh.mjs +0 -1
- package/dist/chunks/setup-1.1.21-nmfqd6pa.mjs +0 -12
- package/dist/chunks/sinks-1.1.21-grwc3mac.mjs +0 -1
- package/dist/chunks/skills-1.1.21-c7mykz5q.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.21-mtr244kh.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.21-k1569a6r.mjs +0 -1
- package/dist/chunks/state-1.1.21-006s6xsy.mjs +0 -1
- package/dist/chunks/stats-1.1.21-bdpn78b9.mjs +0 -6
- package/dist/chunks/status-1.1.21-dkepakb3.mjs +0 -1
- package/dist/chunks/stickers-1.1.21-xk8yr9yt.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.21-tjx2d81b.mjs +0 -1
- package/dist/chunks/tasks-1.1.21-9qx5fz1q.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.21-pnhycdw4.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.21-279f713t.mjs +0 -1
- package/dist/chunks/teleport-1.1.21-t3yfsxqf.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.21-6t0x22pz.mjs +0 -1
- package/dist/chunks/theme-1.1.21-qp0w8xbb.mjs +0 -1
- package/dist/chunks/thinkback-1.1.21-my7w4nms.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.21-67cnrtz7.mjs +0 -1
- package/dist/chunks/toolPool-1.1.21-njaz40qd.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.21-7b0wbg1q.mjs +0 -1
- package/dist/chunks/tools-1.1.21-zaawccjz.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.21-2h0kxwkb.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.21-tajysy6v.mjs +0 -69
- package/dist/chunks/types-1.1.21-dpz3pqyf.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.21-3r3a34tb.mjs +0 -4
- package/dist/chunks/update-1.1.21-v9n06gej.mjs +0 -72
- package/dist/chunks/upgrade-1.1.21-f40x8myx.mjs +0 -1
- package/dist/chunks/upload-1.1.21-x63yx03n.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.21-4d1nmmca.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.21-f8egwk04.mjs +0 -1
- package/dist/chunks/usage-1.1.21-ajfcrtj1.mjs +0 -1
- package/dist/chunks/util-1.1.21-raqpgawk.mjs +0 -1
- package/dist/chunks/utils-1.1.21-ae7844cz.mjs +0 -1
- package/dist/chunks/vim-1.1.21-stgjbrez.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.21-3mrb2p44.mjs +0 -13
- package/dist/chunks/watcher-1.1.21-71vsydsx.mjs +0 -1
- package/dist/chunks/wiki-1.1.21-m8wt2ppx.mjs +0 -132
- package/dist/chunks/workflows-1.1.21-j7gtgean.mjs +0 -1
- package/dist/chunks/worktree-1.1.21-acv1xtvb.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.21-2sg0072j.mjs +0 -1
- package/dist/chunks/wrapper-1.1.21-zbvep84d.mjs +0 -7
- /package/dist/chunks/{cli-1.1.21-srd8n2bc.mjs → cli-1.1.22-08c4ym21.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.21-rte0df0y.mjs → cli-1.1.22-as944wt5.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.21-cx7tkkx6.mjs → cli-1.1.22-ccg6dy3s.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.21-7snn7kbs.mjs → cli-1.1.22-kqk323ja.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.21-ftamxg3e.mjs → cli-1.1.22-nv9q4jrr.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.21-13kr6en7.mjs → cli-1.1.22-w09pyst3.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.21-7sx1arjq.mjs → cli-1.1.22-ws6y62na.mjs} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{g9 as P5,i9 as R7}from"./cli-1.1.21-tjgcqqx5.mjs";import{k9 as A,l9 as r8}from"./cli-1.1.21-xg5fsk6h.mjs";import{C9 as a2,E9 as D7}from"./cli-1.1.21-61eyxvr8.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.21-g6wtm4qg.mjs";import{aia as S0,cia as h4,mia as T1}from"./cli-1.1.21-4ka4k9j1.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.21-g7ve83cr.mjs";import{Zja as x,aka as z5}from"./cli-1.1.21-qj7gkh71.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.21-7q6ajew6.mjs";import{Ala as g,Cla as z1,Hla as x1}from"./cli-1.1.21-xx8dx3jd.mjs";import{Kla as N2,Nla as K,Pla as u,Rla as v5,Vla as d}from"./cli-1.1.21-atvca4b4.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.21-hdc9e0dr.mjs";import{Xra as h,Yra as t0}from"./cli-1.1.21-c27qrh9k.mjs";import{Bsa as v,Tsa as Y5}from"./cli-1.1.21-cb82p9ss.mjs";import{qta as _0,sta as c5,tta as R,uta as r}from"./cli-1.1.21-13kr6en7.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.21-s1aj62xz.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.21-3b6xa2yf.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.21-s1aj62xz.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.21-3b6xa2yf.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{Wi as W,Xi as E}from"./cli-1.1.21-ns0xhhjk.mjs";import{d4 as U,f4 as J}from"./cli-1.1.21-7bq44n89.mjs";import{F4 as V,G4 as B}from"./cli-1.1.21-mqxc9x6p.mjs";import{Q8 as $,l5 as N,m5 as _,q8 as Q,v8 as R}from"./cli-1.1.21-5bxzgpbd.mjs";import{Wga as K,cha as Z}from"./cli-1.1.21-g6wtm4qg.mjs";import{tta as Y}from"./cli-1.1.21-13kr6en7.mjs";async function C(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var F=Y(()=>{_();$();B();Z();E();J()});
|
|
2
|
-
export{C as $b,F as ac};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{sd as t,td as DJ}from"./cli-1.1.21-a6pwx2r1.mjs";import{ki as r,li as IJ}from"./cli-1.1.21-y0d1dgzh.mjs";import{BE as o,CE as xJ,JT as bJ,Km as m,Mj as p,NF as a,OF as LJ,Qm as wJ,Xn as JJ,eS as h,em as g,hm as UJ,mH as s,oE as YJ,oz as c,pz as MJ,qH as yJ,rH as l,sH as TJ,sO as $J,um as d,vE as jJ,wE as PJ,wx as XJ,zm as _J}from"./cli-1.1.21-eray52nd.mjs";import{BV as u,CV as f,NV as BJ}from"./cli-1.1.21-yx5x54tp.mjs";import{f7 as QJ}from"./cli-1.1.21-5bxzgpbd.mjs";import{Nga as A,Oga as NJ,Wga as U,Zda as I,cha as k,jea as D,kea as zJ,taa as KJ}from"./cli-1.1.21-g6wtm4qg.mjs";import{mia as GJ}from"./cli-1.1.21-4ka4k9j1.mjs";import{Zja as b,aka as C}from"./cli-1.1.21-qj7gkh71.mjs";import{Kka as qJ,Oka as W,Ska as VJ,ala as y,dla as WJ}from"./cli-1.1.21-7q6ajew6.mjs";import{Hla as e}from"./cli-1.1.21-xx8dx3jd.mjs";import{Kla as _,Vla as ZJ}from"./cli-1.1.21-atvca4b4.mjs";import{Goa as H,ppa as F,yra as S}from"./cli-1.1.21-hdc9e0dr.mjs";import{qta as CJ}from"./cli-1.1.21-13kr6en7.mjs";xJ();IJ();S();GJ();C();KJ();h();QJ();qJ();$J();JJ();k();e();h();XJ();YJ();function j(){}S();C();NJ();WJ();ZJ();VJ();MJ();k();LJ();_J();bJ();TJ();BJ();zJ();wJ();UJ();import{join as Z}from"path";var AJ=30;function N(){let q=((I()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function i(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function vJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function P(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(vJ(K.name)<J)if(await W().unlink(Z(X,K.name)),q)$.messages++;else $.errors++}catch(Y){U(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")U(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await P(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Q)=>Q.isDirectory()&&Q.name.startsWith("mcp-logs-")).map((Q)=>Z($,Q.name));for(let Q of Y)G=i(G,await P(Q,J,!0)),await V(Q,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")U(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function FJ(){let X=N(),J={messages:0,errors:0},q=p(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Z(q,K.name),Q;try{Q=await $.readdir(Y)}catch{J.errors++;continue}for(let z of Q)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await w(Z(Y,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Z(Y,z.name),B=Z(L,m),O;try{O=await $.readdir(B)}catch{await V(L,$);continue}for(let M of O)if(M.isFile())try{if(await w(Z(B,M.name),X,$))J.messages++}catch{J.errors++}else if(M.isDirectory()){let T=Z(B,M.name),R;try{R=await $.readdir(T)}catch{continue}for(let E of R){if(!E.isFile())continue;try{if(await w(Z(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(B,$),await V(L,$)}await V(Y,$)}return J}async function x(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Q of Y){if(!Q.isFile()||!Q.name.endsWith(J))continue;try{if(await w(Z(X,Q.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function OJ(){let X=d(),J=await x(X,".md"),q=Z(_(),"plans");if(q!==X){let $=await x(q,".md");return i(J,$)}return J}async function RJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));await Promise.all(Y.map(async(Q)=>{try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){U($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));for(let Q of Y)try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){U($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Z(_(),"tasks"),G=f(u()),K;try{K=await q.readdir($)}catch{return J}for(let Y of K){if(!Y.isDirectory()||Y.name===G)continue;let Q=Z($,Y.name);try{if(await hJ(Q,q)<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){U($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Z(X,G.name));if(K>q)q=K}catch{}}return q}async function SJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Z(_(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Z($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function n(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){y("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await FJ(),await OJ(),await RJ(),await EJ(),await kJ(),await SJ(),await c(),await a(N());let J=await g(N());if(J>0)b("",{removed:J})}yJ();DJ();var pJ=(PJ(),CJ(jJ));var v=600000;function mX(){r(),j(),pJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await n();if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}await s()}setTimeout(J,v).unref()}
|
|
2
|
-
export{mX as Va};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BG as I,DG as _,ko as T,lo as j}from"./cli-1.1.21-eray52nd.mjs";import{DZ as S,H1 as g,a1 as P,c1 as J,g1 as C}from"./cli-1.1.21-s076czd6.mjs";import{d4 as G,e4 as H,f4 as R}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as v}from"./cli-1.1.21-phnkc3q1.mjs";import{ifa as B,wfa as h}from"./cli-1.1.21-g6wtm4qg.mjs";import{Zja as W,aka as D}from"./cli-1.1.21-qj7gkh71.mjs";import{pta as f,tta as p}from"./cli-1.1.21-13kr6en7.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
|
|
2
|
-
export{l as Tg,r as Ug};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as o}from"./cli-1.1.21-13kr6en7.mjs";var t=3,n=1,i=32,_="generativelanguage.googleapis.com",s,c="api.kimi.com",p,r,a,E;var e=o(()=>{s=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),r=new Set(["api.deepseek.com"]),a={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
|
|
2
|
-
export{t as u9,n as v9,i as w9,_ as x9,s as y9,c as z9,p as A9,r as B9,a as C9,E as D9,e as E9};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as j}from"./cli-1.1.21-13kr6en7.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
-
export{q as s3,A as t3,B as u3,D as v3,F as w3,G as x3,H as y3,k as z3};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as B}from"./cli-1.1.21-13kr6en7.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
|
|
2
|
-
export{K as Fi,L as Gi,M as Hi,G as Ii};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r4 as V,s4 as q}from"./cli-1.1.21-adykpnkk.mjs";import{B8 as _,Q7 as H,Q8 as D,R7 as P,q8 as W,s8 as x,v8 as N}from"./cli-1.1.21-5bxzgpbd.mjs";import{bfa as X,wfa as K}from"./cli-1.1.21-g6wtm4qg.mjs";import{Sja as Z,Yja as U}from"./cli-1.1.21-g7ve83cr.mjs";import{Nla as G,Vla as I}from"./cli-1.1.21-atvca4b4.mjs";import{Bsa as $,Tsa as j}from"./cli-1.1.21-cb82p9ss.mjs";import{tta as Y}from"./cli-1.1.21-13kr6en7.mjs";function C(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",J=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${J})`}function v(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function y(){return`Claudin-User (${V()})`}function f(){if(N()){let J=W();if(!J?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${J.accessToken}`,"anthropic-beta":Z}}}let z=P();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function b(z,J){try{return await z()}catch(F){if(!$.isAxiosError(F))throw F;let L=F.response?.status;if(!(L===401||J?.also403Revoked&&L===403&&typeof F.response?.data==="string"&&F.response.data.includes("OAuth token has been revoked")))throw F;let M=W()?.accessToken;if(!M)throw F;return await x(M),await z()}}var B=Y(()=>{j();U();D();q()});function A(){if(G(process.env.DISABLE_COST_WARNINGS))return!1;if(N())return!1;let J=H(),F=P()!==null;if(!J.hasToken&&!F)return!1;let L=X(),Q=L.oauthAccount?.organizationRole,M=L.oauthAccount?.workspaceRole;if(!Q||!M)return!1;return["admin","billing"].includes(Q)||["workspace_admin","workspace_billing"].includes(M)}function g(){if(w!==null)return w;if(!N())return!1;let z=_();if(z==="max"||z==="pro")return!0;let F=X().oauthAccount?.organizationRole;return!!F&&["admin","billing","owner","primary_owner"].includes(F)}var w=null;var m=Y(()=>{D();K();I()});
|
|
2
|
-
export{C as h4,v as i4,y as j4,f as k4,b as l4,B as m4,A as n4,g as o4,m as p4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kf as UG,Lf as RG,Nf as PJ}from"./cli-1.1.21-1y508j57.mjs";import{$x as LG,BG as QG,DG as uG,HN as qJ,IN as CG,KN as VJ,PN as mJ,_M as WJ,ay as XJ,co as h,cy as cG,do as jG,eO as mG,eo as p,fo as MG,go as r,hN as jJ,ho as WG,iN as HJ,iO as pJ,kN as fG,ko as BG,lN as hG,lo as EJ,mN as TG,nN as dG,oI as JG,pI as ZJ,qN as NG,rG as YJ,sG as CJ,xN as iG}from"./cli-1.1.21-eray52nd.mjs";import{BY as zG,DY as TJ,GY as wG,HY as QJ,nY as LJ,oY as hJ}from"./cli-1.1.21-wermyahx.mjs";import{CZ as AJ,DZ as bG,H1 as VG,MZ as DG,_0 as m,a1 as Y,c1 as Q,g1 as FG,w1 as JJ,xZ as GJ}from"./cli-1.1.21-s076czd6.mjs";import{c4 as n,d4 as L,e4 as X,f4 as a}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as $G}from"./cli-1.1.21-phnkc3q1.mjs";import{F4 as AG,G4 as dJ}from"./cli-1.1.21-mqxc9x6p.mjs";import{Q8 as gJ,y8 as eG}from"./cli-1.1.21-5bxzgpbd.mjs";import{$ga as sG,Yca as yG,Zca as IG,_ca as KJ,cha as _J,oda as kG,pda as zJ,x_ as S,xda as pG,y_ as rG}from"./cli-1.1.21-g6wtm4qg.mjs";import{Xja as gG,Yja as SJ}from"./cli-1.1.21-g7ve83cr.mjs";import{Zja as C,aka as bJ}from"./cli-1.1.21-qj7gkh71.mjs";import{Ala as HG,Hla as tG}from"./cli-1.1.21-xx8dx3jd.mjs";import{pta as e,tta as GG}from"./cli-1.1.21-13kr6en7.mjs";function KG(J){let G=oG.c(9),{serverToolsCount:Z,serverPromptsCount:z,serverResourcesCount:q}=J,H;if(G[0]!==z||G[1]!==q||G[2]!==Z){if(H=[],Z>0)H.push("tools");if(q>0)H.push("resources");if(z>0)H.push("prompts");G[0]=z,G[1]=q,G[2]=Z,G[3]=H}else H=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==H)W=H.length>0?L(r,{children:H}):"none",G[5]=H,G[6]=W;else W=G[6];let D;if(G[7]!==W)D=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=D;else D=G[8];return D}var oG;var SG=GG(()=>{VG();WG();a();oG=e(bG(),1)});function EG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function PG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var _G=()=>{};function OL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),{columns:D}=LJ(),[I,U]=E.default.useState(!1),[$,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=XJ(),[O,K]=E.default.useState(null),[P,w]=E.useState(!1),N=E.useRef(null),[g,j]=E.useState(!1),[c,T]=E.useState(null),[A,y]=E.useState(!1),[u,i]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),B=E.useRef(!1),[xG,XG]=E.useState(""),[DJ,wJ]=E.useState(0),[aG,nG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let YG=J.isAuthenticated||J.client.type==="connected"&&G>0,ZG=UG(),MJ=E.default.useCallback(async()=>{j(!1),T(null),w(!0);try{let V=await ZG(J.name),F=V.client.type==="connected";if(C("",{success:F}),F)q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){C("",{success:!1}),q?.(PG(V,J.name))}finally{w(!1)}},[ZG,J.name,q]),fJ=E.default.useCallback(async()=>{await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"needs-auth"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),C("",{}),q?.(`Disconnected from ${J.name}.`),y(!1),i(null),v(!1)},[J.name,J.config,J.scope,f,q]);zG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),zG("confirm:no",()=>{j(!1),T(null)},{context:"Confirmation",isActive:g}),zG("confirm:no",()=>{y(!1),i(null),v(!1)},{context:"Confirmation",isActive:A}),JJ((V,F)=>{if(F.return&&g)MJ();if(F.return&&A)if(l)fJ();else{let M=`${gG().CLAUDE_AI_ORIGIN}/settings/connectors`;i(M),v(!0),AG(M)}if(V==="c"&&!o){let M=O||c||u;if(M)GJ(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let NJ=kG(String(J.name)),UJ=fG(_.commands,J.name).length,lG=RG(),RJ=E.default.useCallback(async()=>{let V=gG().CLAUDE_AI_ORIGIN,M=eG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let qG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${qG}?product_surface=${t}`}else d=`${V}/settings/connectors`;T(d),j(!0),C("",{}),await AG(d)},[J.config]),OJ=E.default.useCallback(()=>{y(!0),C("",{})},[]),yJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{if(await lG(J.name),J.config.type==="claudeai-proxy")C("",{new_state:V?"disabled":"enabled"});z()}catch(F){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${HG(F)}`)}},[J.client.type,J.config.type,J.name,lG,z,q]),IJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await CG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await VJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{nG(()=>M)}}),C("",{wasAuthenticated:J.isAuthenticated});let F=await ZG(J.name);if(F.client.type==="connected"){let M=YG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(F.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else sG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof qJ))R(F.message)}finally{U(!1),N.current=null,nG(null),XG("")}},[J.isAuthenticated,J.config,J.name,q,ZG,YG]),BJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await CG(J.name,J.config),C("",{}),await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"failed"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:O})]}),I&&O&&aG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(YJ,{value:xG,onChange:XG,onSubmit:(F)=>{aG(F.trim()),XG("")},cursorOffset:DJ,onChangeCursorOffset:wJ,columns:D-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),l?X(n,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),u&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:u})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(n,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(YG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!YG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[NJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[m("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),YG?X(Q,{children:[m("success",k)(S.tick)," authenticated"]}):X(Q,{children:[m("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(J.scope)})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:UJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),$&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",$]})}),b.length>0&&L(Y,{marginTop:1,children:L(QG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await IJ();break;case"clear-auth":await BJ();break;case"claudeai-auth":await RJ();break;case"claudeai-clear-auth":OJ();break;case"reconnectMcpServer":w(!0);try{let F=await ZG(J.name);if(J.config.type==="claudeai-proxy")C("",{success:F.client.type==="connected"});let{message:M}=EG(F,J.name);q?.(M)}catch(F){if(J.config.type==="claudeai-proxy")C("",{success:!1});q?.(PG(F,J.name))}finally{w(!1)}break;case"toggle-enabled":await yJ();break;case"back":z();break}},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $J=GG(()=>{rG();bJ();SJ();QJ();hJ();AJ();VG();TJ();mJ();pJ();PJ();iG();cG();gJ();dJ();tG();_J();pG();MG();uG();WG();jG();ZJ();CJ();SG();_G();a();E=e($G(),1)});function iL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),D=LG((P)=>P.mcp),I=UG(),U=RG(),[$,R]=OG.useState(!1),_=OG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),z()}catch(w){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${HG(w)}`)}},[J.client.type,J.name,U,z,q]),f=kG(String(J.name)),O=fG(D.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(WJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:D.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(QG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let w=await I(J.name),{message:N}=EG(w,J.name);q?.(N)}catch(w){q?.(PG(w,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")z()},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var OG;var cJ=GG(()=>{rG();QJ();VG();jJ();PJ();iG();cG();tG();pG();MG();uG();WG();jG();ZJ();SG();_G();a();OG=e($G(),1)});function tL(J){let G=FJ.c(44),{tool:Z,server:z,onBack:q}=J,[H,k]=vG.default.useState(""),W,D;if(G[0]!==z.name||G[1]!==Z){D=yG(Z.name,z.name);let s=Z.userFacingName?Z.userFacingName({}):D;W=IG(s),G[0]=z.name,G[1]=Z,G[2]=W,G[3]=D}else W=G[2],D=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let $=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];vG.default.useEffect(K,P);let w;if(G[13]!==$)w=$&&L(Q,{color:"success",children:" [read-only]"}),G[13]=$,G[14]=w;else w=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let j;if(G[19]!==I||G[20]!==w||G[21]!==N||G[22]!==g)j=X(n,{children:[I,w,N,g]}),G[19]=I,G[20]=w,G[21]=N,G[22]=g,G[23]=j;else j=G[23];let c=j,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==D)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:D})]}),G[25]=D,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let u;if(G[28]!==Z.name)u=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=u;else u=G[29];let i;if(G[30]!==H)i=H&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:H})]}),G[30]=H,G[31]=i;else i=G[31];let l;if(G[32]!==Z.inputJSONSchema)l=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((s)=>{let[x,B]=s,XG=Z.inputJSONSchema?.required?.includes(x);return X(Q,{children:["• ",x,XG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},x)})})]}),G[32]=Z.inputJSONSchema,G[33]=l;else l=G[33];let v;if(G[34]!==A||G[35]!==u||G[36]!==i||G[37]!==l)v=X(Y,{flexDirection:"column",children:[A,u,i,l]}),G[34]=A,G[35]=u,G[36]=i,G[37]=l,G[38]=v;else v=G[38];let o;if(G[39]!==q||G[40]!==z.name||G[41]!==v||G[42]!==c)o=L(BG,{title:c,subtitle:z.name,onCancel:q,inputGuide:uJ,children:v}),G[39]=q,G[40]=z.name,G[41]=v,G[42]=c,G[43]=o;else o=G[43];return o}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FJ,vG;var iJ=GG(()=>{VG();KJ();MG();EJ();a();FJ=e(bG(),1),vG=e($G(),1)});function PQ(J){let G=kJ.c(21),{server:Z,onSelectTool:z,onBack:q}=J,H=LG(xJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==H||G[2]!==Z.name)K=HJ(H,Z.name),G[1]=H,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,D;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,w)=>{let N=yG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,j=IG(g),c=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(c)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:j,value:w.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":c?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];D=W.map(K),G[4]=Z.name,G[5]=W,G[6]=D}else D=G[6];let I=D,U=`Tools for ${Z.name}`,$=W.length,R;if(G[9]!==W.length)R=zJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${$} ${R}`,f;if(G[11]!==q||G[12]!==z||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(QG,{options:I,onChange:(K)=>{let P=parseInt(K),w=W[P];if(w)z(w,P)},onCancel:q}),G[11]=q,G[12]=z,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(BG,{title:U,subtitle:_,onCancel:q,inputGuide:vJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function vJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xJ(J){return J.mcp.tools}var kJ;var aJ=GG(()=>{VG();KJ();iG();cG();pG();MG();uG();WG();EJ();jG();a();kJ=e(bG(),1)});
|
|
2
|
-
export{OL as Bf,$J as Cf,iL as Df,cJ as Ef,tL as Ff,iJ as Gf,PQ as Hf,aJ as If};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as l}from"./cli-1.1.21-13kr6en7.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
|
|
2
|
-
export{u as c4,E as d4,a as e4,c as f4};
|
|
@@ -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.21-eray52nd.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.21-g6wtm4qg.mjs";import{cja as d,eja as Uq}from"./cli-1.1.21-2b91fkp9.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.21-7q6ajew6.mjs";import{Ala as W,Bla as O,Cla as C,Hla as N}from"./cli-1.1.21-xx8dx3jd.mjs";import{Bsa as p,Tsa as qq}from"./cli-1.1.21-cb82p9ss.mjs";import{tta as E}from"./cli-1.1.21-13kr6en7.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,2 +0,0 @@
|
|
|
1
|
-
import{Vu as R,Wu as T,Xu as $,qx as U,rx as V,ux as f}from"./cli-1.1.21-eray52nd.mjs";import{B6 as Q,C6 as _}from"./cli-1.1.21-5bxzgpbd.mjs";import{Wga as G,cha as Z,dba as L,kba as Y}from"./cli-1.1.21-g6wtm4qg.mjs";import{tta as X}from"./cli-1.1.21-13kr6en7.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
-
export{O as Rc,S as Sc,I as Tc,N as Uc,P as Vc,h as Wc};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{gla as ZX,jla as y8}from"./cli-1.1.21-bc6x1hhj.mjs";import{Bla as r,Hla as R8}from"./cli-1.1.21-xx8dx3jd.mjs";import{Kla as $X,Nla as NJ,Vla as j8}from"./cli-1.1.21-atvca4b4.mjs";import{Ama as w,Bma as kQ,Ema as yJ,Fma as OX,Gma as h,Hma as vJ,Ima as tJ,Jma as hX,Kma as hJ,Lma as wX,Mma as y,Nma as OJ,Oma as gQ,Pma as m6,Sma as O,Tma as GJ,Wla as dQ,Xla as P6,ama as qJ,bma as oX,ema as eJ,fma as fX,gma as fQ,hma as T6,ima as $Q,jma as cX,mma as JQ,nma as pX,oma as g,pma as oJ,qma as n,rma as LQ,uma as pQ,vma as v6,yma as l,yra as sQ,zma as wQ,zna as XX}from"./cli-1.1.21-hdc9e0dr.mjs";import{Ara as CX,Fra as cJ,Gra as TX,Hra as HJ,Ira as J6,Lra as L,Mra as XJ,Rra as LJ,Sra as zX,Xra as V,Yra as xJ,zra as SJ}from"./cli-1.1.21-c27qrh9k.mjs";import{sta as uJ,tta as U,vta as N,wta as W}from"./cli-1.1.21-13kr6en7.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
|
|
2
|
-
`)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDIN_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
|
|
3
|
-
`);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
|
|
4
|
-
`))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
|
|
5
|
-
`;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDIN_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDIN_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
|
|
6
|
-
export{zJ as bka,BJ as cka,IJ as dka,r8 as eka,CJ as fka,e as gka,_J as hka,m as ika,JJ as jka,j as kka,QJ as lka,R as mka,k as nka,_ as oka,d as pka,$J as qka,lJ as rka,iJ as ska,rJ as tka,b as uka,ZJ as vka,ZQ as wka,YQ as xka,BQ as yka,IQ as zka,RQ as Aka,AQ as Bka,nQ as Cka,lQ as Dka,E as Eka,KJ as Fka,I8 as Gka,C8 as Hka,F8 as Ika,V8 as Jka,UJ as Kka,JX as Lka,H1 as Mka,G1 as Nka,s as Oka,K1 as Pka,U1 as Qka,N1 as Rka,QX as Ska,g8 as Tka,T as Uka,L1 as Vka,b8 as Wka,GX as Xka,KX as Yka,_1 as Zka,S1 as _ka,O1 as $ka,D8 as ala,UX as bla,w1 as cla,aQ as dla};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{A2 as k,C2 as w}from"./cli-1.1.21-2cqbdmfj.mjs";import{Q8 as v,w8 as j}from"./cli-1.1.21-5bxzgpbd.mjs";import{aia as d,lia as h,mia as s}from"./cli-1.1.21-4ka4k9j1.mjs";import{Vla as q}from"./cli-1.1.21-atvca4b4.mjs";import{tta as p}from"./cli-1.1.21-13kr6en7.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
-
export{x as _W,O as $W,P as aX,Q as bX,R as cX,U as dX,W as eX,X as fX,z as gX};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{C2 as VJ,z2 as qJ}from"./cli-1.1.21-2cqbdmfj.mjs";import{Bba as U,Dba as E,Iba as ZJ,Kba as TJ,O$ as YJ,P$ as jJ,P_ as W,Q_ as f,Wga as q,Zda as $J,_ea as w,cha as u,kea as AJ,wfa as m}from"./cli-1.1.21-g6wtm4qg.mjs";import{Zja as F,aka as xJ}from"./cli-1.1.21-qj7gkh71.mjs";import{Fka as b,Gka as x,Kka as P,Oka as y,Ska as D,ala as K,dla as NJ}from"./cli-1.1.21-7q6ajew6.mjs";import{Bla as M,Cla as B,Fla as n,Hla as T,kla as QJ}from"./cli-1.1.21-xx8dx3jd.mjs";import{Kla as O,Vla as k}from"./cli-1.1.21-atvca4b4.mjs";import{tta as j}from"./cli-1.1.21-13kr6en7.mjs";import{access as d,chmod as BJ,writeFile as GJ}from"fs/promises";import{homedir as h}from"os";import{join as v}from"path";function A(){return v(O(),"local")}function RJ(J=h()){return v(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([v(Y,"local"),RJ(Q)]))}function c(J){return[v(J,"node_modules",".bin","claudin"),v(J,"node_modules",".bin","claude")]}function _J(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return v(A(),"claudin")}function rJ(){return _J(U())}async function I(J,Q,Y){try{return await GJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await y().mkdir(J),await I(v(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
|
|
2
|
-
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await BJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return w(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=j(()=>{E();m();k();T();f();D();u();P()});import{open as MJ,readFile as yJ,stat as UJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await yJ(J,{encoding:"utf8"})).split(`
|
|
3
|
-
`)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
-
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function wJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await wJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await UJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=j(()=>{T();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=U();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=x(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!B(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let R=await r(J),_=R?await e(R):null;if(_&&X===_)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let N=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(N.code!==0){q(new G(`Failed to refresh the ${Z} global install at ${$}: ${N.stdout} ${N.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!B(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!B(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function vJ(){return H(O(),".update.lock")}async function DJ(){let J=y(),Q=vJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!B($))return q($),!1}}catch(Y){if(!B(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=y(),Q=vJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(B(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=x(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return x(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new G("Another process is currently installing an update")),F("",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("",{currentVersion:"99.0.0"}),console.error(`
|
|
5
|
-
Error: Windows NPM detected in WSL
|
|
6
|
-
|
|
7
|
-
You're running Claudin in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
-
This configuration is not supported for updates.
|
|
9
|
-
|
|
10
|
-
To fix this issue:
|
|
11
|
-
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
-
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
-
3. Try updating again with 'claudin update'
|
|
14
|
-
`),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",R=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(R.code!==0){let _=new G(`Failed to install new version of claude: ${R.stdout} ${R.stderr}`);return q(_),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),w((_)=>({..._,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,FJ=4096,IJ,JJ=300000;var dJ=j(()=>{xJ();E();m();NJ();TJ();k();T();f();D();u();jJ();VJ();AJ();o();P();G=class G extends QJ{};IJ=/ENOENT/i});
|
|
15
|
-
export{rJ as uU,JQ as vU,QQ as wU,YQ as xU,ZQ as yU,g as zU,S as AU,a as BU,L as CU,l as DU,wJ as EU,HQ as FU,o as GU,zJ as HU,HJ as IU,IQ as JU,kQ as KU,bQ as LU,PQ as MU,vJ as NU,mJ as OU,DQ as PU,fQ as QU,EQ as RU,mQ as SU,uQ as TU,dQ as UU,dJ as VU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{K as F}from"./cli-1.1.21-cx7tkkx6.mjs";import{U as k}from"./cli-1.1.21-mysvm055.mjs";import{_a as x}from"./cli-1.1.21-hmex7wtk.mjs";import{$a as O}from"./cli-1.1.21-ym854mnb.mjs";import{Vo as G,Wo as U,Zo as L,_o as d,jU as b,kU as p}from"./cli-1.1.21-eray52nd.mjs";import{$U as u,YU as R}from"./cli-1.1.21-sqrqvfx9.mjs";import{Q8 as m,Z4 as Y,d5 as D,g7 as j,h7 as z,j8 as w,k8 as E}from"./cli-1.1.21-5bxzgpbd.mjs";import{Hga as $,Kga as M,wea as X,xea as B}from"./cli-1.1.21-g6wtm4qg.mjs";import{jja as _,lja as I}from"./cli-1.1.21-fyryzam5.mjs";import{ala as K,dla as y}from"./cli-1.1.21-7q6ajew6.mjs";import{Ala as V,Hla as v}from"./cli-1.1.21-xx8dx3jd.mjs";import{Nla as J,Pla as N,Vla as C}from"./cli-1.1.21-atvca4b4.mjs";import{Bsa as W,Tsa as A}from"./cli-1.1.21-cb82p9ss.mjs";C();u();p();M();m();d();I();A();y();v();D();B();var T=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let S of P.server.remotes??[]){let Q=h(S.url);if(Q)H.add(Q)}T=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}z();U();function Xq(){if(J(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||N())return;R(),b(),k(),x();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))E();if(q==="vertex"&&!J(process.env.CLAUDIN_SKIP_VERTEX_AUTH))w();if(L(_(),AbortSignal.timeout(3000),[]),F(),Z(),j(),G.initialize(),!N())O.initialize()}
|
|
2
|
-
export{Xq as I};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Nla as z,Vla as J}from"./cli-1.1.21-atvca4b4.mjs";import{tta as F}from"./cli-1.1.21-13kr6en7.mjs";function V(b){D=b}function W(){let b=D?.()??{};if(!z(process.env.CLAUDIN_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let q={...process.env,...b};for(let w of L)delete q[w],delete q[`INPUT_${w}`];return q}var L,D;var M=F(()=>{J();L=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
|
|
2
|
-
export{V as rV,W as sV,M as tV};
|