@claudiolabs/claudin 1.1.22 → 1.1.24
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.24-qv4fnna8.mjs +1 -0
- package/dist/chunks/App-1.1.24-say2rpmy.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.24-gm23618e.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.24-86rnm17k.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.24-xpvbmbs3.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.24-er5kqrm5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.24-vqcj9ryy.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.24-nxtt3gvy.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.24-cn4z7xcf.mjs +6 -0
- package/dist/chunks/Doctor-1.1.24-nq687w3y.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.24-aajhejtf.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.24-t998qy29.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.24-r5a5gmqd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.24-pfhn03af.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.24-bdj4skrs.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.24-2fjwdtrt.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.24-hk5fjxsy.mjs +1 -0
- package/dist/chunks/REPL-1.1.24-c424ewnm.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.24-6vrvymt3.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.24-4bnhs3c5.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.24-2my71fq7.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.24-jk3wwkbf.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.24-j2b1t7n2.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.24-xtsgfdrz.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.24-v916xcsm.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.24-334mbya2.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.24-ha5w75qf.mjs +1 -0
- package/dist/chunks/add-dir-1.1.24-5ddz7jxk.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.24-zyfmeacn.mjs +1 -0
- package/dist/chunks/agents-1.1.24-3nesz6hb.mjs +110 -0
- package/dist/chunks/agents-1.1.24-7vbfmsmd.mjs +3 -0
- package/dist/chunks/api-1.1.24-dkqpat59.mjs +1 -0
- package/dist/chunks/asciicast-1.1.24-d40wfrpr.mjs +1 -0
- package/dist/chunks/assistant-1.1.24-jj35h9kw.mjs +1 -0
- package/dist/chunks/auth-1.1.24-e4nfc4rk.mjs +1 -0
- package/dist/chunks/auth-1.1.24-fjhrv05m.mjs +1 -0
- package/dist/chunks/autoMode-1.1.24-tdgcdezx.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.24-qdp17k5x.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.24-zp05t0xp.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.24-hcarqdg1.mjs +1 -0
- package/dist/chunks/branch-1.1.24-3df7e69c.mjs +4 -0
- package/dist/chunks/bridge-1.1.24-2ybb995s.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.24-7y8hnb44.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.24-4z88m0dk.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.24-5vh38zjk.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.24-e431wg6e.mjs +1 -0
- package/dist/chunks/btw-1.1.24-c9cx5x03.mjs +1 -0
- package/dist/chunks/buddy-1.1.24-sbda0mvf.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.24-qxe2hv8y.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.24-8rgatdb3.mjs +4 -0
- package/dist/chunks/caches-1.1.24-zj2axnpf.mjs +1 -0
- package/dist/chunks/cd-1.1.24-f7dgvfpq.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.24-7ws7tbt6.mjs +1 -0
- package/dist/chunks/claudemd-1.1.24-71y4hxrm.mjs +1 -0
- package/dist/chunks/clear-1.1.24-njwpqwdd.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.24-f6wcsvqq.mjs +1 -0
- package/dist/chunks/cli-1.1.24-0jwj33ps.mjs +2 -0
- package/dist/chunks/cli-1.1.24-0qefwnmv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-0zt6ghdg.mjs +2 -0
- package/dist/chunks/cli-1.1.24-12hfxy63.mjs +12 -0
- package/dist/chunks/cli-1.1.24-14842nvc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-190psky8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1kpad5gy.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1m0md9q7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1mx8wjec.mjs +2 -0
- package/dist/chunks/cli-1.1.24-228jgyfg.mjs +2 -0
- package/dist/chunks/cli-1.1.24-241znxsf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-25bjk4fa.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2d5h000x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2g0372f8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2md121ma.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2qkkzsk3.mjs +5456 -0
- package/dist/chunks/cli-1.1.24-2yjpqx2j.mjs +2 -0
- package/dist/chunks/cli-1.1.24-308y9m4j.mjs +2 -0
- package/dist/chunks/cli-1.1.24-32h2wd2e.mjs +3 -0
- package/dist/chunks/cli-1.1.24-36c9cxby.mjs +25 -0
- package/dist/chunks/cli-1.1.24-3cgaxth4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-3n53gv32.mjs +2 -0
- package/dist/chunks/cli-1.1.24-3n6e2e3w.mjs +12 -0
- package/dist/chunks/cli-1.1.24-3w12t3c9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-47657dtc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4cre60p8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4p3bjzm5.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4t3rdp3k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4wpk3xd9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-58gfq4p1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5jpkct15.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5pkkmh85.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5r5ayhj5.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5vw5z579.mjs +2 -0
- package/dist/chunks/cli-1.1.24-64d8tfjb.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6gj496xe.mjs +4 -0
- package/dist/chunks/cli-1.1.24-6hqn628p.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6mm894jd.mjs +5 -0
- package/dist/chunks/cli-1.1.24-6pgc4c5x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6ptbgma9.mjs +6 -0
- package/dist/chunks/cli-1.1.24-6rneem3p.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6tjp5zv1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-707k0kc7.mjs +133 -0
- package/dist/chunks/cli-1.1.24-7ae9t2qz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ahqssha.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ax9c4aj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ga8r482.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ht46b9h.mjs +4 -0
- package/dist/chunks/cli-1.1.24-7m3kth8w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7qe2p4yb.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ymj1nkq.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8d439hr1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8fbhkz2k.mjs +7 -0
- package/dist/chunks/cli-1.1.24-8n6b217h.mjs +50 -0
- package/dist/chunks/cli-1.1.24-8nrya8sx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8s7nf1y6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8xvf355a.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8yspjjkp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8zb03vbp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-92s2r0nt.mjs +2 -0
- package/dist/chunks/cli-1.1.24-93bhcjrs.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9414cm38.mjs +2 -0
- package/dist/chunks/cli-1.1.24-985tmwb6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-98nyrm5c.mjs +3 -0
- package/dist/chunks/cli-1.1.24-9dnr05fm.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9grm6x6h.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9jq4gf5s.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9tw7bj9k.mjs +58 -0
- package/dist/chunks/cli-1.1.24-a33s2dcr.mjs +2 -0
- package/dist/chunks/cli-1.1.24-a6q6r9em.mjs +2 -0
- package/dist/chunks/cli-1.1.24-aaym95m1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-abyr5pge.mjs +2 -0
- package/dist/chunks/cli-1.1.24-agq0y77k.mjs +9 -0
- package/dist/chunks/cli-1.1.24-awf7k3ez.mjs +4 -0
- package/dist/chunks/cli-1.1.24-b3nksc62.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bd6f0h85.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bhe5cv5z.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bjbqxwc9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bnm1yphs.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bnyxg0c8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bph6jjd7.mjs +4 -0
- package/dist/chunks/cli-1.1.24-bskn8qpc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c0j54zba.mjs +25 -0
- package/dist/chunks/cli-1.1.24-c1c7arb3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c7007hz6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c80wbwvr.mjs +2 -0
- package/dist/chunks/cli-1.1.24-chach6xd.mjs +39 -0
- package/dist/chunks/cli-1.1.24-cjkjb1w0.mjs +4 -0
- package/dist/chunks/cli-1.1.24-ctw3hzrp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-d371v1bp.mjs +42 -0
- package/dist/chunks/cli-1.1.24-dt22ehz1.mjs +18 -0
- package/dist/chunks/cli-1.1.24-dw6eynz7.mjs +16 -0
- package/dist/chunks/cli-1.1.24-e21q73az.mjs +2 -0
- package/dist/chunks/cli-1.1.24-e960m296.mjs +2 -0
- package/dist/chunks/cli-1.1.24-eh4c00hd.mjs +4 -0
- package/dist/chunks/cli-1.1.24-ex7hr389.mjs +3 -0
- package/dist/chunks/cli-1.1.24-ez9nx0pe.mjs +133 -0
- package/dist/chunks/cli-1.1.24-f0pc1fm3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-f2exw52y.mjs +2 -0
- package/dist/chunks/cli-1.1.24-f942w88t.mjs +2 -0
- package/dist/chunks/cli-1.1.24-fkkcnvap.mjs +18 -0
- package/dist/chunks/cli-1.1.24-fqh8r338.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ftgtm0ys.mjs +2 -0
- package/dist/chunks/cli-1.1.24-fwb0d06k.mjs +34 -0
- package/dist/chunks/cli-1.1.24-gb39akdj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-gbya20sv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ghegqjt7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-gm25g2rw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hbp5ttza.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hbvsy3cq.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hhgxzt7m.mjs +4 -0
- package/dist/chunks/cli-1.1.24-hmzgqyyq.mjs +24 -0
- package/dist/chunks/cli-1.1.24-hty94kzp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jetxd54w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jm1y3v0c.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jm2wjmkx.mjs +3 -0
- package/dist/chunks/cli-1.1.24-jnksvjkj.mjs +3 -0
- package/dist/chunks/cli-1.1.24-jrvf41s6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-k1dhj122.mjs +2 -0
- package/dist/chunks/cli-1.1.24-k2cach52.mjs +2 -0
- package/dist/chunks/cli-1.1.24-kfzxwy9d.mjs +2 -0
- package/dist/chunks/cli-1.1.24-m6pr9whf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-m70g3zj4.mjs +21 -0
- package/dist/chunks/cli-1.1.24-m8jww9mz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-mgndv90z.mjs +24 -0
- package/dist/chunks/cli-1.1.24-mwva78xt.mjs +2 -0
- package/dist/chunks/cli-1.1.24-myqjptqw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-n18majmw.mjs +8 -0
- package/dist/chunks/cli-1.1.24-n5vwxtj6.mjs +3 -0
- package/dist/chunks/cli-1.1.24-n7r6kv9g.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ne1bt8jx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nhr9sjgz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nhz403dg.mjs +3 -0
- package/dist/chunks/cli-1.1.24-nrfpn2q3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nsggarp4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nv8d7bav.mjs +2 -0
- package/dist/chunks/cli-1.1.24-p2a545ga.mjs +3 -0
- package/dist/chunks/cli-1.1.24-p71y388t.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pe23qamd.mjs +206 -0
- package/dist/chunks/cli-1.1.24-pgkt8y4z.mjs +6 -0
- package/dist/chunks/cli-1.1.24-pqkmk87x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pqrtr5rf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-prprq6xe.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pt8vrhq3.mjs +6 -0
- package/dist/chunks/cli-1.1.24-q9qfp0ng.mjs +2 -0
- package/dist/chunks/cli-1.1.24-qn608pma.mjs +2 -0
- package/dist/chunks/cli-1.1.24-qt5m4501.mjs +26 -0
- package/dist/chunks/cli-1.1.24-s0dcztj8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-s241cgaj.mjs +3 -0
- package/dist/chunks/cli-1.1.24-sa4ycqpk.mjs +2 -0
- package/dist/chunks/cli-1.1.24-sdsp22c3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-skqekybx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-sm5pzkcb.mjs +17 -0
- package/dist/chunks/cli-1.1.24-sv60tfze.mjs +2 -0
- package/dist/chunks/cli-1.1.24-swr2gr8m.mjs +9 -0
- package/dist/chunks/cli-1.1.24-t811r68k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-tbzjj2e8.mjs +24 -0
- package/dist/chunks/cli-1.1.24-tpafhmrw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-tvhfdndb.mjs +15 -0
- package/dist/chunks/cli-1.1.24-tyxhhrt7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-v322mn8d.mjs +6 -0
- package/dist/chunks/cli-1.1.24-vandpwa9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vf59rwy3.mjs +60 -0
- package/dist/chunks/cli-1.1.24-vg493phv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vmd44jz3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vprvwjs1.mjs +3 -0
- package/dist/chunks/cli-1.1.24-vvnnh8xs.mjs +17 -0
- package/dist/chunks/cli-1.1.24-vwmxvbv9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vz1y844w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-w4yh1rwm.mjs +2 -0
- package/dist/chunks/cli-1.1.24-w828y1cd.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wf4vw9fr.mjs +4 -0
- package/dist/chunks/cli-1.1.24-wjy2ctev.mjs +3 -0
- package/dist/chunks/cli-1.1.24-wmzctccq.mjs +4 -0
- package/dist/chunks/cli-1.1.24-wr42vnqf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wshydefj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ww5zft49.mjs +20 -0
- package/dist/chunks/cli-1.1.24-wx6qsawc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wygwske9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x19qr19f.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x1wayra7.mjs +7 -0
- package/dist/chunks/cli-1.1.24-x77tmaf2.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x7j3vdgw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x8cd4qb4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-xcmmqx6c.mjs +1 -0
- package/dist/chunks/cli-1.1.24-xdhm369m.mjs +15 -0
- package/dist/chunks/cli-1.1.24-xmtasnec.mjs +2 -0
- package/dist/chunks/cli-1.1.24-xyb7vhk3.mjs +3 -0
- package/dist/chunks/cli-1.1.24-y0p1ztq1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y4gprept.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y4pvshdf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y55w7gqd.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yadxqz7j.mjs +4 -0
- package/dist/chunks/cli-1.1.24-yay2cxmw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yh801h84.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ymqwnn04.mjs +5 -0
- package/dist/chunks/cli-1.1.24-yp46sbt0.mjs +6 -0
- package/dist/chunks/cli-1.1.24-ys3jea4v.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yz19vhn7.mjs +45 -0
- package/dist/chunks/cli-1.1.24-yz5bzn1k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yzfk4k7c.mjs +2 -0
- package/dist/chunks/cli-1.1.24-z2byr0bb.mjs +3 -0
- package/dist/chunks/cli-1.1.24-z5t424fy.mjs +15 -0
- package/dist/chunks/cli-1.1.24-zc49jxpp.mjs +24 -0
- package/dist/chunks/cli-1.1.24-zey4mks2.mjs +6 -0
- package/dist/chunks/cli-1.1.24-zjc9nfba.mjs +66 -0
- package/dist/chunks/cli-1.1.24-znb9n8xc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-zqsb8jf1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-zzy8r310.mjs +3 -0
- package/dist/chunks/client-1.1.24-04048dd4.mjs +1 -0
- package/dist/chunks/color-1.1.24-c0gzcmgh.mjs +1 -0
- package/dist/chunks/compact-1.1.24-191dct4e.mjs +3 -0
- package/dist/chunks/config-1.1.24-0gw6ge6e.mjs +1 -0
- package/dist/chunks/config-1.1.24-ndcrhj7n.mjs +1 -0
- package/dist/chunks/constants-1.1.24-tbk9zrcf.mjs +1 -0
- package/dist/chunks/context-1.1.24-m2nks3pf.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.24-fpjb3z40.mjs +1 -0
- package/dist/chunks/conversation-1.1.24-1fhfrjjb.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.24-7gr1sjfz.mjs +1 -0
- package/dist/chunks/copy-1.1.24-cp9c2gz7.mjs +9 -0
- package/dist/chunks/cost-1.1.24-n2977gae.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.24-mnvhz35z.mjs +1 -0
- package/dist/chunks/createSession-1.1.24-jmw71620.mjs +1 -0
- package/dist/chunks/debug-1.1.24-fbfn7n50.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.24-2sn9h6p5.mjs +1534 -0
- package/dist/chunks/desktop-1.1.24-scm6c1n6.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.24-pegwcpzf.mjs +1 -0
- package/dist/chunks/detection-1.1.24-0k1tkgs4.mjs +1 -0
- package/dist/chunks/diff-1.1.24-0jvr5nbq.mjs +1 -0
- package/dist/chunks/doctor-1.1.24-ek4hj124.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.24-rkkj1qaa.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.24-0jq2yety.mjs +1 -0
- package/dist/chunks/effort-1.1.24-pj04350n.mjs +13 -0
- package/dist/chunks/engine-1.1.24-d8ghs7v2.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.24-0sz4c3p3.mjs +1 -0
- package/dist/chunks/envUtils-1.1.24-x72tjbvh.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.24-kdf8c1wj.mjs +1 -0
- package/dist/chunks/environments-1.1.24-4f4e4q0j.mjs +1 -0
- package/dist/chunks/errors-1.1.24-e9mdyym2.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.24-k8gqpgm6.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.24-nf306f2h.mjs +1 -0
- package/dist/chunks/exit-1.1.24-dvx9hpkk.mjs +1 -0
- package/dist/chunks/explorer-1.1.24-jwyvpptp.mjs +1 -0
- package/dist/chunks/export-1.1.24-wjaf1p5p.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.24-29n7nt5d.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.24-y28scbnf.mjs +1 -0
- package/dist/chunks/fast-1.1.24-b97zvms4.mjs +1 -0
- package/dist/chunks/feedback-1.1.24-6epgxnyy.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.24-z3cng876.mjs +1 -0
- package/dist/chunks/git-1.1.24-g44mqdr1.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.24-xys028w7.mjs +1 -0
- package/dist/chunks/goal-1.1.24-g5h8tqdv.mjs +4 -0
- package/dist/chunks/growthbook-1.1.24-sp4nsdp2.mjs +1 -0
- package/dist/chunks/headless-1.1.24-xjc45ts1.mjs +2 -0
- package/dist/chunks/heapdump-1.1.24-k9vdtkem.mjs +6 -0
- package/dist/chunks/help-1.1.24-4pb60ggc.mjs +1 -0
- package/dist/chunks/hookChains-1.1.24-fgx8qw71.mjs +3 -0
- package/dist/chunks/hooks-1.1.24-gy3rfx2s.mjs +79 -0
- package/dist/chunks/hooks-1.1.24-qvh9gx4b.mjs +1 -0
- package/dist/chunks/ide-1.1.24-ecb37fdx.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.24-3bf65p63.mjs +1 -0
- package/dist/chunks/import-1.1.24-bpnr0awz.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.24-h4st0drb.mjs +1 -0
- package/dist/chunks/index-1.1.24-1qfnahpf.mjs +5 -0
- package/dist/chunks/index-1.1.24-2c5tqanw.mjs +1 -0
- package/dist/chunks/index-1.1.24-3pkassck.mjs +1 -0
- package/dist/chunks/index-1.1.24-4gnpx2tt.mjs +30 -0
- package/dist/chunks/index-1.1.24-5kf8n97z.mjs +1 -0
- package/dist/chunks/index-1.1.24-7nn95an1.mjs +2 -0
- package/dist/chunks/index-1.1.24-8005ram7.mjs +1 -0
- package/dist/chunks/index-1.1.24-80m0ydka.mjs +2 -0
- package/dist/chunks/index-1.1.24-931bwhyw.mjs +9 -0
- package/dist/chunks/index-1.1.24-a3t3jmq6.mjs +1 -0
- package/dist/chunks/index-1.1.24-bvewx84q.mjs +1 -0
- package/dist/chunks/index-1.1.24-hvxes6d7.mjs +1 -0
- package/dist/chunks/index-1.1.24-j4v31wtc.mjs +1 -0
- package/dist/chunks/index-1.1.24-jt13vzsz.mjs +1 -0
- package/dist/chunks/index-1.1.24-k9m56w47.mjs +1 -0
- package/dist/chunks/index-1.1.24-ksthp5f5.mjs +1 -0
- package/dist/chunks/index-1.1.24-p0dh0w23.mjs +1 -0
- package/dist/chunks/index-1.1.24-qzv3z9d8.mjs +1 -0
- package/dist/chunks/index-1.1.24-ry33qapt.mjs +23 -0
- package/dist/chunks/index-1.1.24-wrwbr5my.mjs +1 -0
- package/dist/chunks/index-1.1.24-x476ts8e.mjs +1 -0
- package/dist/chunks/index-1.1.24-yz1p3g13.mjs +1 -0
- package/dist/chunks/index-1.1.24-zpd6455g.mjs +9 -0
- package/dist/chunks/init-1.1.24-t8nj0b2a.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.24-0rrs2446.mjs +1 -0
- package/dist/chunks/ink-1.1.24-n7wnynts.mjs +1 -0
- package/dist/chunks/insights-1.1.24-brh3tfms.mjs +870 -0
- package/dist/chunks/install-1.1.24-bnszrzxv.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.24-5rgjevwd.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.24-yh7a017r.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.24-v7zemczf.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.24-b7xw2wrx.mjs +1 -0
- package/dist/chunks/keybindings-1.1.24-31h2q3ex.mjs +2 -0
- package/dist/chunks/knowledge-1.1.24-8nq0v4s7.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.24-a6axfzxn.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.24-k6dhs78a.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.24-kv2hvbav.mjs +1 -0
- package/dist/chunks/log-1.1.24-gv1f1hxb.mjs +1 -0
- package/dist/chunks/main-1.1.24-e2ntxz1f.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.24-rfa63jew.mjs +1 -0
- package/dist/chunks/mcp-1.1.24-3a5demcw.mjs +4 -0
- package/dist/chunks/mcp-1.1.24-5patw3xq.mjs +17 -0
- package/dist/chunks/mcp-1.1.24-jcnn5rdj.mjs +1 -0
- package/dist/chunks/mcpb-1.1.24-b7zrasgt.mjs +1 -0
- package/dist/chunks/memory-1.1.24-dvn88stz.mjs +72 -0
- package/dist/chunks/model-1.1.24-jqp66a34.mjs +1 -0
- package/dist/chunks/model-1.1.24-pxgrw9n0.mjs +2 -0
- package/dist/chunks/node-1.1.24-9kx9ct5c.mjs +15 -0
- package/dist/chunks/oauth-1.1.24-5v87662s.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.24-29jaq53v.mjs +14 -0
- package/dist/chunks/output-style-1.1.24-vt1w07zs.mjs +1 -0
- package/dist/chunks/package-SHMK2LJE-1.1.24-bz44pm49.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.24-e5ppdssa.mjs +1 -0
- package/dist/chunks/parser-1.1.24-r4f154gw.mjs +1 -0
- package/dist/chunks/passes-1.1.24-znx7myf5.mjs +1 -0
- package/dist/chunks/permissions-1.1.24-djrvvvz7.mjs +3 -0
- package/dist/chunks/permissions-1.1.24-v5xhwsne.mjs +1 -0
- package/dist/chunks/plan-1.1.24-vhaqffge.mjs +1 -0
- package/dist/chunks/plist-1.1.24-a5racx0y.mjs +1 -0
- package/dist/chunks/plugin-1.1.24-a97brm8r.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.24-md4nbg2a.mjs +1 -0
- package/dist/chunks/plugins-1.1.24-mza746hr.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.24-n8ztas45.mjs +2 -0
- package/dist/chunks/print-1.1.24-3xs40xg6.mjs +57 -0
- package/dist/chunks/process-1.1.24-7znk7nvb.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.24-454rvsw5.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.24-8k5m3gk9.mjs +9 -0
- package/dist/chunks/prompt-1.1.24-bk6dfj1e.mjs +1 -0
- package/dist/chunks/prompt-1.1.24-vvcbfmdp.mjs +1 -0
- package/dist/chunks/prompts-1.1.24-b6ebw0vv.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.24-n1vv96tn.mjs +13 -0
- package/dist/chunks/provider-1.1.24-t07b1cf0.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.24-pnze1322.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.24-6atsq725.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.24-awx453hm.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.24-es1k3f52.mjs +26 -0
- package/dist/chunks/registry-1.1.24-f8gdvha6.mjs +1 -0
- package/dist/chunks/release-notes-1.1.24-wc0ns08n.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.24-n65zs7m1.mjs +2 -0
- package/dist/chunks/remote-env-1.1.24-edv7k83f.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.24-skqbqsp7.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.24-y4nvb00c.mjs +1 -0
- package/dist/chunks/rename-1.1.24-5h35tqzj.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.24-y59d2vsb.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.24-3fh8y1wc.mjs +1 -0
- package/dist/chunks/resume-1.1.24-mbmqkywe.mjs +2 -0
- package/dist/chunks/rewind-1.1.24-7d2yrzwh.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.24-32jzw8gf.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.24-tr01e02n.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.24-n544gb1b.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.24-3jt7dn2v.mjs +1 -0
- package/dist/chunks/session-1.1.24-5gj3f8bf.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.24-qdssyy70.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.24-j2d90dxq.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.24-jk2064js.mjs +1 -0
- package/dist/chunks/settings-1.1.24-xb5xvwd4.mjs +1 -0
- package/dist/chunks/setup-1.1.24-wdr88mhm.mjs +12 -0
- package/dist/chunks/sinks-1.1.24-zbp12cks.mjs +1 -0
- package/dist/chunks/skills-1.1.24-fs0fj8pg.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.24-sm8szq0q.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.24-mc3ted4v.mjs +1 -0
- package/dist/chunks/state-1.1.24-5c4debwf.mjs +1 -0
- package/dist/chunks/stats-1.1.24-0bt4qf8n.mjs +6 -0
- package/dist/chunks/status-1.1.24-abhqj5mw.mjs +1 -0
- package/dist/chunks/stickers-1.1.24-zh8qjsyy.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.24-gp4ayqrk.mjs +1 -0
- package/dist/chunks/tasks-1.1.24-1cxy0tgz.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.24-5bb9mm83.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.24-nb3dp4e3.mjs +1 -0
- package/dist/chunks/teleport-1.1.24-c7prtcv6.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.24-sfx4nye5.mjs +1 -0
- package/dist/chunks/theme-1.1.24-x6419d8v.mjs +1 -0
- package/dist/chunks/thinkback-1.1.24-f315phwt.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.24-79eppsfc.mjs +1 -0
- package/dist/chunks/toolPool-1.1.24-8yd82av5.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.24-jmqktrq1.mjs +1 -0
- package/dist/chunks/tools-1.1.24-5fm8t3kw.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.24-w4sh0m0v.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.24-h4ea8fek.mjs +69 -0
- package/dist/chunks/types-1.1.24-5xkkfxsk.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.24-aqb6hpdg.mjs +4 -0
- package/dist/chunks/update-1.1.24-der2v1xy.mjs +72 -0
- package/dist/chunks/upgrade-1.1.24-grzzzksq.mjs +1 -0
- package/dist/chunks/upload-1.1.24-tjetbg6e.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.24-19aj3b1w.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.24-xm0gtc5y.mjs +1 -0
- package/dist/chunks/usage-1.1.24-69x06f48.mjs +1 -0
- package/dist/chunks/util-1.1.24-1ea4gbm5.mjs +1 -0
- package/dist/chunks/utils-1.1.24-sr136rh9.mjs +1 -0
- package/dist/chunks/vim-1.1.24-e90y2xp6.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.24-wfk9enxd.mjs +13 -0
- package/dist/chunks/watcher-1.1.24-tcqfrpkm.mjs +1 -0
- package/dist/chunks/wiki-1.1.24-aevd508s.mjs +132 -0
- package/dist/chunks/workflows-1.1.24-4wkmgpjr.mjs +1 -0
- package/dist/chunks/worktree-1.1.24-2vf4mmjm.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.24-s2v499tv.mjs +1 -0
- package/dist/chunks/wrapper-1.1.24-arr1pkz0.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.22-4ba6sbn1.mjs +0 -1
- package/dist/chunks/App-1.1.22-2m11r40p.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.22-zp1y1218.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.22-s95rx0gk.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.22-5qa3134t.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.22-m5fc6nej.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.22-bnv9d1h5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.22-g92az35d.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.22-9ccdds3r.mjs +0 -6
- package/dist/chunks/Doctor-1.1.22-1gc86nqw.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.22-z6sndn27.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.22-gb09bshz.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.22-52wjx92m.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.22-q6j91dba.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.22-z6x86qa5.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.22-05vxshwk.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.22-zh99bzde.mjs +0 -1
- package/dist/chunks/REPL-1.1.22-2c229abh.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.22-jp1q8573.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.22-s20kx6cz.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.22-036phq5k.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.22-2fpx0v36.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.22-q9xh6c1x.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.22-shtyh6x1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.22-hwnb32mw.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.22-tx9d7tzw.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.22-qd5cmwvf.mjs +0 -1
- package/dist/chunks/add-dir-1.1.22-be3sb4ed.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.22-rm5akk7n.mjs +0 -1
- package/dist/chunks/agents-1.1.22-ad8hknzy.mjs +0 -3
- package/dist/chunks/agents-1.1.22-c8hb8sst.mjs +0 -110
- package/dist/chunks/api-1.1.22-b74pv1bc.mjs +0 -1
- package/dist/chunks/asciicast-1.1.22-qz35a5k4.mjs +0 -1
- package/dist/chunks/assistant-1.1.22-mqc1g16y.mjs +0 -1
- package/dist/chunks/auth-1.1.22-hwjcqvy4.mjs +0 -1
- package/dist/chunks/auth-1.1.22-pwa369jw.mjs +0 -1
- package/dist/chunks/autoMode-1.1.22-3by2zax3.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.22-e4mn7cas.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.22-ng881g40.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.22-hxy5jpcq.mjs +0 -1
- package/dist/chunks/branch-1.1.22-akcs4dk5.mjs +0 -4
- package/dist/chunks/bridge-1.1.22-rttgyvkn.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.22-gtqyk17c.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.22-tfhha37q.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.22-mt52dzzq.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.22-bqaet342.mjs +0 -1
- package/dist/chunks/btw-1.1.22-y44fbm0x.mjs +0 -1
- package/dist/chunks/buddy-1.1.22-1jzcjwyr.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.22-wmckr2fj.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.22-rzg950xm.mjs +0 -4
- package/dist/chunks/caches-1.1.22-kabyzmmd.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.22-7mafzt35.mjs +0 -1
- package/dist/chunks/claudemd-1.1.22-genp8cn4.mjs +0 -1
- package/dist/chunks/clear-1.1.22-ta3shrbf.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.22-hvkervt4.mjs +0 -1
- package/dist/chunks/cli-1.1.22-00s47593.mjs +0 -4
- package/dist/chunks/cli-1.1.22-01xfy12n.mjs +0 -18
- package/dist/chunks/cli-1.1.22-01yb5we4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0553cn3c.mjs +0 -3
- package/dist/chunks/cli-1.1.22-073y3gd5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-07prh801.mjs +0 -2
- package/dist/chunks/cli-1.1.22-08c4ym21.mjs +0 -2
- package/dist/chunks/cli-1.1.22-09eb3077.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0h7jejsr.mjs +0 -3
- package/dist/chunks/cli-1.1.22-0n0cxg2p.mjs +0 -4
- package/dist/chunks/cli-1.1.22-0x96ahhc.mjs +0 -4
- package/dist/chunks/cli-1.1.22-1099x9x2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-12vfd6j1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1npmfnxb.mjs +0 -50
- package/dist/chunks/cli-1.1.22-1tqdha8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1vrzwj7y.mjs +0 -2
- package/dist/chunks/cli-1.1.22-22735g9w.mjs +0 -2
- package/dist/chunks/cli-1.1.22-261r450y.mjs +0 -60
- package/dist/chunks/cli-1.1.22-265a4qpa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2bdf1etb.mjs +0 -4
- package/dist/chunks/cli-1.1.22-2getjsf5.mjs +0 -6
- package/dist/chunks/cli-1.1.22-2mahjtgk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2nwmyakz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2rqykpy1.mjs +0 -18
- package/dist/chunks/cli-1.1.22-2t3fhfjv.mjs +0 -133
- package/dist/chunks/cli-1.1.22-2tctx2yg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2wh33kpx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2y82t3pd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2yxd7hfb.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2zhxvvkx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-33jc9czg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-35fe0h6z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3ehpcpz4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3h20fb9d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3jyydg5h.mjs +0 -206
- package/dist/chunks/cli-1.1.22-3nmtk1bh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3r3tadt1.mjs +0 -4
- package/dist/chunks/cli-1.1.22-3thczx3s.mjs +0 -133
- package/dist/chunks/cli-1.1.22-3xjx3y13.mjs +0 -2
- package/dist/chunks/cli-1.1.22-41aseceq.mjs +0 -3
- package/dist/chunks/cli-1.1.22-4227vtcf.mjs +0 -24
- package/dist/chunks/cli-1.1.22-48gjx3j7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4g11fbx3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4ph3xqne.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4pmfh5v2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5afprdre.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5dcmb4h9.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5mzq5mc4.mjs +0 -24
- package/dist/chunks/cli-1.1.22-5vkvwgh1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-619cwdw8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6bxa25n5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6gd42s2a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6k5nt5wc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6khex7bz.mjs +0 -34
- package/dist/chunks/cli-1.1.22-6vtb75g8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-73mzmb6a.mjs +0 -3
- package/dist/chunks/cli-1.1.22-796yez98.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7dha9j2p.mjs +0 -3
- package/dist/chunks/cli-1.1.22-7rm6jw0h.mjs +0 -17
- package/dist/chunks/cli-1.1.22-7rv96st9.mjs +0 -4
- package/dist/chunks/cli-1.1.22-7xwf9v6n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7zv5k6p0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-87m0b80d.mjs +0 -8
- package/dist/chunks/cli-1.1.22-8cxdckv7.mjs +0 -39
- package/dist/chunks/cli-1.1.22-8fwvxw5t.mjs +0 -2
- package/dist/chunks/cli-1.1.22-8zvpve6x.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9283mpm5.mjs +0 -4
- package/dist/chunks/cli-1.1.22-9affzgn1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9b6k45hn.mjs +0 -3
- package/dist/chunks/cli-1.1.22-9dr01ge1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9jjvp1h1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9t3wxp9c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9xhwr18a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-a4bc88qq.mjs +0 -2
- package/dist/chunks/cli-1.1.22-an1qn05v.mjs +0 -3
- package/dist/chunks/cli-1.1.22-as4a7add.mjs +0 -5
- package/dist/chunks/cli-1.1.22-as944wt5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b3bpnsqk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b7axxc6j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b81ce6x4.mjs +0 -15
- package/dist/chunks/cli-1.1.22-bfc0nw13.mjs +0 -3
- package/dist/chunks/cli-1.1.22-bj4bsta6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bnse4r9s.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bv3a0vaa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bxfemtrx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-byxwkfrj.mjs +0 -3
- package/dist/chunks/cli-1.1.22-c07z4d74.mjs +0 -2
- package/dist/chunks/cli-1.1.22-c1h1wfjn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ca6d1erw.mjs +0 -6
- package/dist/chunks/cli-1.1.22-ccg6dy3s.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ccp7e8qv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ckvf3pt3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ctbmc0bv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-cvfsmaqt.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d1w2ky89.mjs +0 -6
- package/dist/chunks/cli-1.1.22-d7cmcmfd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d990gcrg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d9y8qqg3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ddq8axpw.mjs +0 -12
- package/dist/chunks/cli-1.1.22-df129qms.mjs +0 -5
- package/dist/chunks/cli-1.1.22-df9q1a85.mjs +0 -2
- package/dist/chunks/cli-1.1.22-djkeg65n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-dpqknw7z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e25bz2ew.mjs +0 -9
- package/dist/chunks/cli-1.1.22-e5sxpgah.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e5wx36qr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-eagkxr30.mjs +0 -9
- package/dist/chunks/cli-1.1.22-eddrkydn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-emmr10wb.mjs +0 -21
- package/dist/chunks/cli-1.1.22-eqtbpc0r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-erbhk4p7.mjs +0 -4
- package/dist/chunks/cli-1.1.22-f0wja05z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-f9ntxarz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fetzhxhh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fwhfqwwn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gkryz2d0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gpt102mm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-grjw9tnm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gwhdvfge.mjs +0 -24
- package/dist/chunks/cli-1.1.22-gyhxg2db.mjs +0 -2
- package/dist/chunks/cli-1.1.22-h3m1whqm.mjs +0 -6
- package/dist/chunks/cli-1.1.22-hgwxyksg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hhmq1rbn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hjxaqntc.mjs +0 -45
- package/dist/chunks/cli-1.1.22-hqbf8xt0.mjs +0 -3
- package/dist/chunks/cli-1.1.22-hv3m9qnv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j6xg80k8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j7qc1g0f.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jdz4rqbp.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jech3kdr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jrhx2z2p.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jvrjpdd1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jz426kr2.mjs +0 -66
- package/dist/chunks/cli-1.1.22-jzvqt2pv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-k3xv38bj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-kphdet4j.mjs +0 -58
- package/dist/chunks/cli-1.1.22-kqk323ja.mjs +0 -2
- package/dist/chunks/cli-1.1.22-m41t95z0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mdapyzp3.mjs +0 -6
- package/dist/chunks/cli-1.1.22-mdttpxs6.mjs +0 -24
- package/dist/chunks/cli-1.1.22-mw0jpevk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mxqz88pc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-n0px7a23.mjs +0 -3
- package/dist/chunks/cli-1.1.22-n2jecp35.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nstgtysk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nsydz2bd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nv9q4jrr.mjs +0 -26
- package/dist/chunks/cli-1.1.22-nxv6yayj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-pgrcj1gs.mjs +0 -12
- package/dist/chunks/cli-1.1.22-q622p3vr.mjs +0 -16
- package/dist/chunks/cli-1.1.22-q76mjgec.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qmk7mm5m.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qq7q7v3n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qzc4h0w2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r0v2mak7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r7dnq81v.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r9n3fz01.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rd5zdpvh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rma08k7m.mjs +0 -3
- package/dist/chunks/cli-1.1.22-rsp3340r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rtn7nhkb.mjs +0 -1
- package/dist/chunks/cli-1.1.22-s2n02sky.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s5qhs3ds.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s6e60cqc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sema6yh6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-skpsy2jm.mjs +0 -17
- package/dist/chunks/cli-1.1.22-ss970cxc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-swvmx131.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sy41x518.mjs +0 -2
- package/dist/chunks/cli-1.1.22-tag23y0b.mjs +0 -25
- package/dist/chunks/cli-1.1.22-tkg7zwpn.mjs +0 -20
- package/dist/chunks/cli-1.1.22-tt24grn6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v260dy3k.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v2q2pts1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v8pzx6jk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vdsszncw.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vesjdg08.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vnmyjmjg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vp1eed3p.mjs +0 -7
- package/dist/chunks/cli-1.1.22-vwdxbs23.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vwv40zm1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-w09pyst3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-waqb850v.mjs +0 -15
- package/dist/chunks/cli-1.1.22-wbpdne8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xm1rhe1d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xmb0wn88.mjs +0 -42
- package/dist/chunks/cli-1.1.22-xmy1w9q2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xpvyrpxz.mjs +0 -7
- package/dist/chunks/cli-1.1.22-xxwfawkh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xygngqfs.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xzrnmekb.mjs +0 -3
- package/dist/chunks/cli-1.1.22-y0t8rezv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y3te45vg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y4rj8ced.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ya408d88.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yegp0d0j.mjs +0 -6
- package/dist/chunks/cli-1.1.22-yhgxca73.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yjv63n10.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yqbnqsen.mjs +0 -3
- package/dist/chunks/cli-1.1.22-yr5y8074.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yy4d5xbz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yzk40k6c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-z5g00tpb.mjs +0 -25
- package/dist/chunks/cli-1.1.22-zcrvxkff.mjs +0 -15
- package/dist/chunks/cli-1.1.22-zfg31zpg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zmt5pksy.mjs +0 -5426
- package/dist/chunks/cli-1.1.22-znq4fk8a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zsc0cmye.mjs +0 -2
- package/dist/chunks/client-1.1.22-wq8vw6a1.mjs +0 -1
- package/dist/chunks/color-1.1.22-qk5z13ac.mjs +0 -1
- package/dist/chunks/compact-1.1.22-rb84pjhg.mjs +0 -3
- package/dist/chunks/config-1.1.22-0p9ep18d.mjs +0 -1
- package/dist/chunks/config-1.1.22-5mngav76.mjs +0 -1
- package/dist/chunks/constants-1.1.22-kjrh13hv.mjs +0 -1
- package/dist/chunks/context-1.1.22-dw2er614.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.22-znhpxryw.mjs +0 -1
- package/dist/chunks/conversation-1.1.22-awv74gk2.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.22-m6ccr26v.mjs +0 -1
- package/dist/chunks/copy-1.1.22-7b5mhaaj.mjs +0 -9
- package/dist/chunks/cost-1.1.22-dt2gz43e.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.22-a42r8ywe.mjs +0 -1
- package/dist/chunks/createSession-1.1.22-ddd5ddkv.mjs +0 -1
- package/dist/chunks/debug-1.1.22-qraa5by9.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.22-ctnqgj01.mjs +0 -1534
- package/dist/chunks/desktop-1.1.22-wg1hxyyk.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.22-pn2g27hr.mjs +0 -1
- package/dist/chunks/detection-1.1.22-s8r50ft4.mjs +0 -1
- package/dist/chunks/diff-1.1.22-6sdsv83f.mjs +0 -1
- package/dist/chunks/doctor-1.1.22-cj56pasy.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.22-ezjhg329.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.22-k4tqtjbb.mjs +0 -1
- package/dist/chunks/effort-1.1.22-eztddah9.mjs +0 -13
- package/dist/chunks/engine-1.1.22-6wrga0yh.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.22-9jm3xgge.mjs +0 -1
- package/dist/chunks/envUtils-1.1.22-7qb9fr3c.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.22-4xy91rp5.mjs +0 -1
- package/dist/chunks/environments-1.1.22-ke6dvmrb.mjs +0 -1
- package/dist/chunks/errors-1.1.22-rgsmtg01.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.22-xv4kj009.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.22-m7ndjwpq.mjs +0 -1
- package/dist/chunks/exit-1.1.22-m0bm4f9d.mjs +0 -1
- package/dist/chunks/explorer-1.1.22-jsrgxmw0.mjs +0 -1
- package/dist/chunks/export-1.1.22-s0m4af77.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.22-9sdr6tyh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.22-9k857j7m.mjs +0 -1
- package/dist/chunks/fast-1.1.22-3w3eg6gc.mjs +0 -1
- package/dist/chunks/feedback-1.1.22-7jr2gbzj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.22-08zb6ajr.mjs +0 -1
- package/dist/chunks/git-1.1.22-m66s3f9x.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.22-2r1deqm3.mjs +0 -1
- package/dist/chunks/goal-1.1.22-60jn1knb.mjs +0 -4
- package/dist/chunks/growthbook-1.1.22-jnddje2q.mjs +0 -1
- package/dist/chunks/headless-1.1.22-jc8xk2dj.mjs +0 -2
- package/dist/chunks/heapdump-1.1.22-h87tv4ay.mjs +0 -6
- package/dist/chunks/help-1.1.22-hkgcwycs.mjs +0 -1
- package/dist/chunks/hookChains-1.1.22-hjjsdtfz.mjs +0 -3
- package/dist/chunks/hooks-1.1.22-d51y91pz.mjs +0 -79
- package/dist/chunks/hooks-1.1.22-knpyhzjq.mjs +0 -1
- package/dist/chunks/ide-1.1.22-0tqwa732.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.22-6qd4v6hf.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.22-gvb5zry4.mjs +0 -1
- package/dist/chunks/index-1.1.22-19x2126b.mjs +0 -30
- package/dist/chunks/index-1.1.22-28fcrc19.mjs +0 -9
- package/dist/chunks/index-1.1.22-2ea02rg7.mjs +0 -1
- package/dist/chunks/index-1.1.22-2rc4s1ea.mjs +0 -1
- package/dist/chunks/index-1.1.22-33ka1vh2.mjs +0 -1
- package/dist/chunks/index-1.1.22-3sbe52mk.mjs +0 -1
- package/dist/chunks/index-1.1.22-3ze6s7jh.mjs +0 -1
- package/dist/chunks/index-1.1.22-45fydkr4.mjs +0 -1
- package/dist/chunks/index-1.1.22-4jyb49wh.mjs +0 -5
- package/dist/chunks/index-1.1.22-53bbsdht.mjs +0 -23
- package/dist/chunks/index-1.1.22-6dbeceeq.mjs +0 -1
- package/dist/chunks/index-1.1.22-8dntbh7a.mjs +0 -1
- package/dist/chunks/index-1.1.22-8kjk15ba.mjs +0 -1
- package/dist/chunks/index-1.1.22-an0gp01d.mjs +0 -1
- package/dist/chunks/index-1.1.22-cnbxnqdc.mjs +0 -1
- package/dist/chunks/index-1.1.22-fpsntg6z.mjs +0 -1
- package/dist/chunks/index-1.1.22-fv3cwfqb.mjs +0 -1
- package/dist/chunks/index-1.1.22-hjp106ay.mjs +0 -1
- package/dist/chunks/index-1.1.22-njczpq0j.mjs +0 -9
- package/dist/chunks/index-1.1.22-zeprwv8d.mjs +0 -2
- package/dist/chunks/index-1.1.22-zmmyfbe7.mjs +0 -1
- package/dist/chunks/index-1.1.22-zssja3p2.mjs +0 -2
- package/dist/chunks/index-1.1.22-zw38mh26.mjs +0 -1
- package/dist/chunks/init-1.1.22-xnq27h0g.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.22-y1d60qz3.mjs +0 -1
- package/dist/chunks/ink-1.1.22-k48q879m.mjs +0 -1
- package/dist/chunks/insights-1.1.22-a1cvbm3p.mjs +0 -870
- package/dist/chunks/install-1.1.22-jbzmqsdp.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.22-8a3hpgxj.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.22-rt6z32mx.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.22-z450bn0g.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.22-6ks3mty3.mjs +0 -1
- package/dist/chunks/keybindings-1.1.22-g9y42jd0.mjs +0 -2
- package/dist/chunks/knowledge-1.1.22-9pnvwgtc.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.22-qt6jab06.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.22-sq4k9pva.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.22-vshz13qp.mjs +0 -1
- package/dist/chunks/log-1.1.22-e7ksty3v.mjs +0 -1
- package/dist/chunks/main-1.1.22-6td1g6n1.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.22-htj06t2x.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-18h7drd2.mjs +0 -17
- package/dist/chunks/mcp-1.1.22-ezfae103.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-s120rv95.mjs +0 -4
- package/dist/chunks/mcpb-1.1.22-vm6h475e.mjs +0 -1
- package/dist/chunks/memory-1.1.22-e0tx5g0m.mjs +0 -72
- package/dist/chunks/model-1.1.22-jpnba4j9.mjs +0 -2
- package/dist/chunks/model-1.1.22-ptaehfsq.mjs +0 -1
- package/dist/chunks/node-1.1.22-n2j0h224.mjs +0 -14
- package/dist/chunks/oauth-1.1.22-xryjmqvy.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.22-5g2mvrb0.mjs +0 -14
- package/dist/chunks/output-style-1.1.22-15avrxe6.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.22-74v22202.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.22-th9g7k2v.mjs +0 -1
- package/dist/chunks/parser-1.1.22-f76s0696.mjs +0 -1
- package/dist/chunks/passes-1.1.22-5067sbnv.mjs +0 -1
- package/dist/chunks/permissions-1.1.22-jq3s11rr.mjs +0 -3
- package/dist/chunks/permissions-1.1.22-yjbnyvja.mjs +0 -1
- package/dist/chunks/plan-1.1.22-a0v77tas.mjs +0 -1
- package/dist/chunks/plist-1.1.22-stjt7ne7.mjs +0 -1
- package/dist/chunks/plugin-1.1.22-ccc18w6d.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.22-6w6xqk0q.mjs +0 -1
- package/dist/chunks/plugins-1.1.22-14tg96p5.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.22-w8y973hr.mjs +0 -2
- package/dist/chunks/print-1.1.22-fj5my0gp.mjs +0 -57
- package/dist/chunks/process-1.1.22-5ehjyzp9.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.22-rfx8p83z.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.22-zz4rg3b9.mjs +0 -9
- package/dist/chunks/prompt-1.1.22-1k2zk0wc.mjs +0 -1
- package/dist/chunks/prompt-1.1.22-dnwycjh5.mjs +0 -1
- package/dist/chunks/prompts-1.1.22-4p4a5se6.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.22-cs8w65fv.mjs +0 -13
- package/dist/chunks/provider-1.1.22-bn5s7tah.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.22-pymtgbvs.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.22-c7c5hbxa.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.22-w2qffppm.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.22-ab4qb34w.mjs +0 -26
- package/dist/chunks/registry-1.1.22-nsm8d8eb.mjs +0 -1
- package/dist/chunks/release-notes-1.1.22-8x23myzn.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.22-ak7jhwx7.mjs +0 -2
- package/dist/chunks/remote-env-1.1.22-x7trmcqx.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.22-hbz0g8ya.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.22-f6jb57v7.mjs +0 -1
- package/dist/chunks/rename-1.1.22-xe35q0k0.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.22-fhwjkdxg.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.22-vv0a8mm6.mjs +0 -1
- package/dist/chunks/resume-1.1.22-2sa8hbck.mjs +0 -2
- package/dist/chunks/rewind-1.1.22-9p74phfv.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.22-d6srkssk.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.22-g8m5b1gg.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.22-xfg2fsw2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.22-dtc44mq5.mjs +0 -1
- package/dist/chunks/session-1.1.22-3tjyetra.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.22-33mn13e8.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.22-d3bejz9v.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.22-j74sh7m1.mjs +0 -1
- package/dist/chunks/settings-1.1.22-nkarfvpa.mjs +0 -1
- package/dist/chunks/setup-1.1.22-qcehqed4.mjs +0 -12
- package/dist/chunks/sinks-1.1.22-cq9rny33.mjs +0 -1
- package/dist/chunks/skills-1.1.22-ekjpttza.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.22-9fngk9y1.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.22-d1k95rad.mjs +0 -1
- package/dist/chunks/state-1.1.22-jwyx08g8.mjs +0 -1
- package/dist/chunks/stats-1.1.22-gbms572d.mjs +0 -6
- package/dist/chunks/status-1.1.22-k6tz1204.mjs +0 -1
- package/dist/chunks/stickers-1.1.22-0p5wcv91.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.22-8nw03e6a.mjs +0 -1
- package/dist/chunks/tasks-1.1.22-j3tvhmzv.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.22-9h9wz2vt.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.22-az279j20.mjs +0 -1
- package/dist/chunks/teleport-1.1.22-x65tzb7k.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.22-mgtn4k1h.mjs +0 -1
- package/dist/chunks/theme-1.1.22-ytcpmqf6.mjs +0 -1
- package/dist/chunks/thinkback-1.1.22-r3tqf574.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.22-gy5pmk8r.mjs +0 -1
- package/dist/chunks/toolPool-1.1.22-enzkj5fj.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.22-nks2rxm6.mjs +0 -1
- package/dist/chunks/tools-1.1.22-vngj7bpe.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.22-521tzk05.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.22-thexftmp.mjs +0 -69
- package/dist/chunks/types-1.1.22-jp8m10f1.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.22-tjrn8agz.mjs +0 -4
- package/dist/chunks/update-1.1.22-n10ztshv.mjs +0 -72
- package/dist/chunks/upgrade-1.1.22-e0pjbtcd.mjs +0 -1
- package/dist/chunks/upload-1.1.22-e00jdttg.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.22-1qmxkbg7.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.22-jj7mv0bn.mjs +0 -1
- package/dist/chunks/usage-1.1.22-s54ykz8x.mjs +0 -1
- package/dist/chunks/util-1.1.22-wntx1394.mjs +0 -1
- package/dist/chunks/utils-1.1.22-wmew7b5j.mjs +0 -1
- package/dist/chunks/vim-1.1.22-qddsv4he.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.22-1z60qm0a.mjs +0 -13
- package/dist/chunks/watcher-1.1.22-100q2zbm.mjs +0 -1
- package/dist/chunks/wiki-1.1.22-akk70ycq.mjs +0 -132
- package/dist/chunks/workflows-1.1.22-ed33rwny.mjs +0 -1
- package/dist/chunks/worktree-1.1.22-f3b1rr0f.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.22-taeyewr8.mjs +0 -1
- package/dist/chunks/wrapper-1.1.22-hayqq9zr.mjs +0 -7
- /package/dist/chunks/{cli-1.1.22-ws6y62na.mjs → cli-1.1.24-k5cs55nk.mjs} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{g9 as P5,i9 as R7}from"./cli-1.1.22-ddq8axpw.mjs";import{k9 as A,l9 as r8}from"./cli-1.1.22-yegp0d0j.mjs";import{C9 as a2,E9 as D7}from"./cli-1.1.22-6bxa25n5.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.22-3jyydg5h.mjs";import{aia as S0,cia as h4,mia as T1}from"./cli-1.1.22-dpqknw7z.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.22-y4rj8ced.mjs";import{Zja as x,aka as z5}from"./cli-1.1.22-s5qhs3ds.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.22-ca6d1erw.mjs";import{Ala as g,Cla as z1,Hla as x1}from"./cli-1.1.22-3r3tadt1.mjs";import{Kla as N2,Nla as K,Pla as u,Rla as v5,Vla as d}from"./cli-1.1.22-265a4qpa.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.22-v260dy3k.mjs";import{Xra as h,Yra as t0}from"./cli-1.1.22-j7qc1g0f.mjs";import{Bsa as v,Tsa as Y5}from"./cli-1.1.22-gwhdvfge.mjs";import{qta as _0,sta as c5,tta as R,uta as r}from"./cli-1.1.22-w09pyst3.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.22-2rc4s1ea.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.22-an0gp01d.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.22-2rc4s1ea.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.22-an0gp01d.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 p,Xi as z}from"./cli-1.1.22-4g11fbx3.mjs";import{Yi as q,Zi as A}from"./cli-1.1.22-6k5nt5wc.mjs";import{d4 as k,f4 as h}from"./cli-1.1.22-vwdxbs23.mjs";import{tta as y}from"./cli-1.1.22-w09pyst3.mjs";async function G(b,v){let f=await q();if(f.type==="message")return b(f.value),null;return k(p,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(w)=>{v.onChangeAPIKey(),b(w?"Login successful":"Login interrupted")}})}var B=y(()=>{z();A();h()});
|
|
2
|
-
export{G as Ui,B as Vi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zh as Vq,_h as fq}from"./cli-1.1.22-nsydz2bd.mjs";import{CY as o,DY as pq,JY as Qq,LY as Uq,MY as Hq,nY as Pq,oY as mq}from"./cli-1.1.22-bv3a0vaa.mjs";import{DZ as Sq,H1 as Wq,a1 as M,c1 as g}from"./cli-1.1.22-261r450y.mjs";import{d4 as Z,e4 as F,f4 as Jq}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as _q}from"./cli-1.1.22-c07z4d74.mjs";import{hha as s,iha as jq}from"./cli-1.1.22-erbhk4p7.mjs";import{pta as Lq,tta as wq}from"./cli-1.1.22-w09pyst3.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
|
|
2
|
-
export{lq as xh,oq as yh,sq as zh,aq as Ah,Tq as Bh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D4 as Z}from"./cli-1.1.22-mw0jpevk.mjs";import{Q8 as Y,y8 as F}from"./cli-1.1.22-q622p3vr.mjs";import{_ea as N,bfa as B,cha as X,wfa as W,xea as V}from"./cli-1.1.22-3jyydg5h.mjs";import{Yja as Q}from"./cli-1.1.22-y4rj8ced.mjs";import{tta as P}from"./cli-1.1.22-w09pyst3.mjs";function E(){let w=F()?.organizationUuid;if(!w)return null;let z=B().overageCreditGrantCache?.[w];if(!z)return null;if(Date.now()-z.timestamp>$)return null;return z.info}function U(){let w=F()?.organizationUuid;if(!w)return;let z=B().overageCreditGrantCache;if(!z||!(w in z))return;N((J)=>{let K={...J.overageCreditGrantCache};return delete K[w],{...J,overageCreditGrantCache:K}})}function _(w){if(w.amount_minor_units==null||!w.currency)return null;if(w.currency.toUpperCase()==="USD"){let z=w.amount_minor_units/100;return Number.isInteger(z)?`$${z}`:`$${z.toFixed(2)}`}return null}var $=3600000;var k=P(()=>{Q();Y();W();X();V();Z()});
|
|
2
|
-
export{E as _i,U as $i,_ as aj,k as bj};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BG as h,DG as v,ko as R,lo as r}from"./cli-1.1.22-zmt5pksy.mjs";import{DZ as p,H1 as E,a1 as U,c1 as F,g1 as I}from"./cli-1.1.22-261r450y.mjs";import{d4 as Z,e4 as L,f4 as N}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as j}from"./cli-1.1.22-c07z4d74.mjs";import{Wda as B,kea as S}from"./cli-1.1.22-3jyydg5h.mjs";import{Zja as H,aka as b}from"./cli-1.1.22-s5qhs3ds.mjs";import{pta as P,tta as A}from"./cli-1.1.22-w09pyst3.mjs";function l(d){let f=O.c(18),{onAccept:J,onDecline:q,declineExits:m}=d,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];T.default.useEffect(x,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(C){f:switch(C){case"accept":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let k=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=L(U,{flexDirection:"column",gap:1,children:[Z(F,{children:u}),Z(I,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let y=m?"No, exit":"No, go back",w;if(f[7]!==y)w=[...W,X,{label:y,value:"decline"}],f[7]=y,f[8]=w;else w=f[8];let z;if(f[9]!==k)z=(M)=>k(M),f[9]=k,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(h,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=L(R,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function x(){H("",{})}var O,T,u="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";var g=A(()=>{b();E();S();v();r();N();O=P(p(),1),T=P(j(),1)});
|
|
2
|
-
export{u as fd,l as gd,g as hd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as B}from"./cli-1.1.22-w09pyst3.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{ZM as L,hN as h,qN as y,rN as S,xN as w}from"./cli-1.1.22-zmt5pksy.mjs";import{DZ as l,H1 as B,a1 as U,c1 as D,g1 as v}from"./cli-1.1.22-261r450y.mjs";import{d4 as G,e4 as H,f4 as W}from"./cli-1.1.22-vwdxbs23.mjs";import{pta as C,tta as M}from"./cli-1.1.22-w09pyst3.mjs";function T(z){let q=u.c(26),{scope:A,parsingErrors:Q,warnings:R}=z,K=Q.length>0,X=R.length>0;if(!K&&!X)return null;let V;if(q[0]!==K||q[1]!==X)V=(K||X)&&H(D,{color:K?"error":"warning",children:["[",K?"Failed to parse":"Contains warnings","]"," "]}),q[0]=K,q[1]=X,q[2]=V;else V=q[2];let I;if(q[3]!==A)I=S(A),q[3]=A,q[4]=I;else I=q[4];let J;if(q[5]!==I)J=G(D,{children:I}),q[5]=I,q[6]=J;else J=q[6];let Y;if(q[7]!==V||q[8]!==J)Y=H(U,{children:[V,J]}),q[7]=V,q[8]=J,q[9]=Y;else Y=q[9];let P;if(q[10]===Symbol.for("react.memo_cache_sentinel"))P=G(D,{dimColor:!0,children:"Location: "}),q[10]=P;else P=q[10];let Z;if(q[11]!==A)Z=y(A),q[11]=A,q[12]=Z;else Z=q[12];let F;if(q[13]!==Z)F=H(U,{children:[P,G(D,{dimColor:!0,children:Z})]}),q[13]=Z,q[14]=F;else F=q[14];let O;if(q[15]!==Q)O=Q.map(E),q[15]=Q,q[16]=O;else O=q[16];let b;if(q[17]!==R)b=R.map(m),q[17]=R,q[18]=b;else b=q[18];let k;if(q[19]!==O||q[20]!==b)k=H(U,{marginLeft:1,flexDirection:"column",children:[O,b]}),q[19]=O,q[20]=b,q[21]=k;else k=q[21];let d;if(q[22]!==k||q[23]!==Y||q[24]!==F)d=H(U,{flexDirection:"column",marginTop:1,children:[Y,F,k]}),q[22]=k,q[23]=Y,q[24]=F,q[25]=d;else d=q[25];return d}function m(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"warning",children:"[Warning]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`warning-${q}`)}function E(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"error",children:"[Error]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`error-${q}`)}function x(){let z=u.c(6),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q={scope:"user",config:L("user")},z[0]=q;else q=z[0];let A;if(z[1]===Symbol.for("react.memo_cache_sentinel"))A={scope:"project",config:L("project")},z[1]=A;else A=z[1];let Q;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Q={scope:"local",config:L("local")},z[2]=Q;else Q=z[2];let R;if(z[3]===Symbol.for("react.memo_cache_sentinel"))R=[q,A,Q,{scope:"enterprise",config:L("enterprise")}],z[3]=R;else R=z[3];let K=R,X=K.some(j),V=K.some(_);if(!X&&!V)return null;let I;if(z[4]===Symbol.for("react.memo_cache_sentinel"))I=G(D,{bold:!0,children:"MCP Config Diagnostics"}),z[4]=I;else I=z[4];let J;if(z[5]===Symbol.for("react.memo_cache_sentinel"))J=H(U,{flexDirection:"column",marginTop:1,marginBottom:1,children:[I,G(U,{marginTop:1,children:H(D,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",G(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),K.map(f)]}),z[5]=J;else J=z[5];return J}function f(z){let{scope:q,config:A}=z;return G(T,{scope:q,parsingErrors:N(A.errors,"fatal"),warnings:N(A.errors,"warning")},q)}function _(z){let{config:q}=z;return N(q.errors,"warning").length>0}function j(z){let{config:q}=z;return N(q.errors,"fatal").length>0}function N(z,q){return z.filter((A)=>A.mcpErrorMetadata?.severity===q)}var u;var p=M(()=>{h();w();B();W();u=C(l(),1)});
|
|
2
|
-
export{x as Fg,p as Gg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ao as T,bo as Cq,ky as Pq,oy as uq}from"./cli-1.1.22-zmt5pksy.mjs";import{eZ as Uq,fZ as Iq,iZ as kq}from"./cli-1.1.22-6khex7bz.mjs";import{DZ as aq,H1 as hq,a1 as L,c1 as O}from"./cli-1.1.22-261r450y.mjs";import{d4 as J,e4 as Q,f4 as vq}from"./cli-1.1.22-vwdxbs23.mjs";import{X5 as bq,Y5 as Mq,p6 as Sq}from"./cli-1.1.22-q622p3vr.mjs";import{Iba as Nq,Kba as Bq,O$ as Xq,P$ as jq,bfa as Rq,wfa as fq}from"./cli-1.1.22-3jyydg5h.mjs";import{mia as nq}from"./cli-1.1.22-dpqknw7z.mjs";import{pta as yq,tta as Gq}from"./cli-1.1.22-w09pyst3.mjs";function dq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function eq(Y,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return Y.length>0&&!/^\s/.test(Y)&&!Y.startsWith("\x1B")}var Wq=Gq(()=>{kq();fq();Bq()});function V(Y){return Y.replace(/\+/g," + ")}function LH(Y){let q=Eq.c(99),{dimColor:H,fixedWidth:Dq,gap:x,paddingX:l}=Y,m=T("app:toggleTranscript","Global","ctrl+o"),p;if(q[0]!==m)p=V(m),q[0]=m,q[1]=p;else p=q[1];let d=p,e=T("app:toggleTodos","Global","ctrl+t"),B;if(q[2]!==e)B=V(e),q[2]=e,q[3]=B;else B=q[3];let s=B,i=T("chat:undo","Chat","ctrl+_"),f;if(q[4]!==i)f=V(i),q[4]=i,q[5]=f;else f=q[5];let r=f,$=T("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=V($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=T("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=V(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Hq=T("chat:modelPicker","Chat","alt+p"),n;if(q[10]!==Hq)n=V(Hq),q[10]=Hq,q[11]=n;else n=q[11];let Jq=n,Lq=T("chat:fastMode","Chat","alt+o"),j;if(q[12]!==Lq)j=V(Lq),q[12]=Lq,q[13]=j;else j=q[13];let Oq=j,Qq=T("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Qq)S=V(Qq),q[14]=Qq,q[15]=S;else S=q[15];let Tq=S,Vq=T("app:toggleTerminal","Global","meta+j"),a;if(q[16]!==Vq)a=V(Vq),q[16]=Vq,q[17]=a;else a=q[17];let Fq=a,Yq=T("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Yq)h=V(Yq),q[18]=Yq,q[19]=h;else h=q[19];let Zq=h,gq=V(T("chat:increaseEffort","Chat","shift+right")),_q=V(T("chat:openDiff","Chat","ctrl+g")),pq=V(T("chat:openExplorer","Chat","ctrl+e")),C;if(q[20]!==H||q[21]!==Fq)C=null,q[20]=H,q[21]=Fq,q[22]=C;else C=q[22];let wq=C,zq=Dq?28:void 0,Z;if(q[23]!==H)Z=J(L,{children:J(O,{dimColor:H,children:"! for bash mode"})}),q[23]=H,q[24]=Z;else Z=q[24];let w;if(q[25]!==H)w=J(L,{children:J(O,{dimColor:H,children:"/ for commands"})}),q[25]=H,q[26]=w;else w=q[26];let z;if(q[27]!==H)z=J(L,{children:J(O,{dimColor:H,children:"@ for file paths"})}),q[27]=H,q[28]=z;else z=q[28];let A;if(q[29]!==H)A=J(L,{children:J(O,{dimColor:H,children:"& for background"})}),q[29]=H,q[30]=A;else A=q[30];let D;if(q[31]!==H)D=J(L,{children:J(O,{dimColor:H,children:"/btw for side question"})}),q[31]=H,q[32]=D;else D=q[32];let F;if(q[33]!==zq||q[34]!==Z||q[35]!==w||q[36]!==z||q[37]!==A||q[38]!==D)F=Q(L,{flexDirection:"column",width:zq,children:[Z,w,z,A,D,J(L,{children:Q(O,{dimColor:H,children:[pq," for file explorer"]})}),J(L,{children:Q(O,{dimColor:H,children:[_q," for diff reviewer"]})})]}),q[33]=zq,q[34]=Z,q[35]=w,q[36]=z,q[37]=A,q[38]=D,q[39]=F;else F=q[39];let Aq=Dq?35:void 0,G;if(q[40]!==H)G=J(L,{children:J(O,{dimColor:H,children:"double tap esc to clear input"})}),q[40]=H,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==H)N=J(L,{children:Q(O,{dimColor:H,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=H,q[44]=N;else N=q[44];let R;if(q[45]!==H||q[46]!==d)R=J(L,{children:Q(O,{dimColor:H,children:[d," for verbose output"]})}),q[45]=H,q[46]=d,q[47]=R;else R=q[47];let U;if(q[48]!==H||q[49]!==s)U=J(L,{children:Q(O,{dimColor:H,children:[s," to toggle tasks"]})}),q[48]=H,q[49]=s,q[50]=U;else U=q[50];let u;if(q[51]===Symbol.for("react.memo_cache_sentinel"))u=Kq(),q[51]=u;else u=q[51];let I;if(q[52]!==H)I=J(L,{children:J(O,{dimColor:H,children:u})}),q[52]=H,q[53]=I;else I=q[53];let K;if(q[54]!==Aq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==wq)K=Q(L,{flexDirection:"column",width:Aq,children:[G,N,R,U,wq,I]}),q[54]=Aq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=wq,q[61]=K;else K=q[61];let W;if(q[62]!==H||q[63]!==r)W=J(L,{children:Q(O,{dimColor:H,children:[r," to undo"]})}),q[62]=H,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==H)v=Xq()!=="windows"&&J(L,{children:J(O,{dimColor:H,children:"ctrl + z to suspend"})}),q[65]=H,q[66]=v;else v=q[66];let X;if(q[67]!==H||q[68]!==Zq)X=J(L,{children:Q(O,{dimColor:H,children:[Zq," to paste images"]})}),q[67]=H,q[68]=Zq,q[69]=X;else X=q[69];let b;if(q[70]!==H||q[71]!==Jq)b=J(L,{children:Q(O,{dimColor:H,children:[Jq," to switch model"]})}),q[70]=H,q[71]=Jq,q[72]=b;else b=q[72];let M;if(q[73]!==H||q[74]!==Oq)M=bq()&&Mq()&&J(L,{children:Q(O,{dimColor:H,children:[Oq," to toggle fast mode"]})}),q[73]=H,q[74]=Oq,q[75]=M;else M=q[75];let P;if(q[76]!==H||q[77]!==o)P=J(L,{children:Q(O,{dimColor:H,children:[o," to stash prompt"]})}),q[76]=H,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==H||q[80]!==Tq)E=J(L,{children:Q(O,{dimColor:H,children:[Tq," to edit in $EDITOR"]})}),q[79]=H,q[80]=Tq,q[81]=E;else E=q[81];let g;if(q[82]!==H)g=Pq()&&J(L,{children:J(O,{dimColor:H,children:"/keybindings to customize"})}),q[82]=H,q[83]=g;else g=q[83];let _;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)_=Q(L,{flexDirection:"column",children:[W,v,X,b,J(L,{children:Q(O,{dimColor:H,children:[gq," to change effort"]})}),M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=_;else _=q[92];let c;if(q[93]!==x||q[94]!==l||q[95]!==F||q[96]!==K||q[97]!==_)c=Q(L,{paddingX:l,flexDirection:"row",gap:x,children:[F,K,_]}),q[93]=x,q[94]=l,q[95]=F,q[96]=K,q[97]=_,q[98]=c;else c=q[98];return c}var Eq;var cq=Gq(()=>{hq();jq();uq();Cq();nq();Sq();Wq();vq();Eq=yq(aq(),1)});
|
|
2
|
-
export{dq as wf,eq as xf,Wq as yf,LH as zf,cq as Af};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{lta as n}from"./cli-1.1.22-skpsy2jm.mjs";import{rta as r}from"./cli-1.1.22-w09pyst3.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
-
export{i as h_};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{ita as x,kta as y,ota as C}from"./cli-1.1.22-skpsy2jm.mjs";import{rta as k}from"./cli-1.1.22-w09pyst3.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
|
|
2
|
-
`));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
|
|
3
|
-
export{MF as g_};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hc as k,Ic as P}from"./cli-1.1.22-zsc0cmye.mjs";import{Oc as O,Pc as A,Qc as f}from"./cli-1.1.22-07prh801.mjs";import{$7 as U,Q8 as E,d8 as V,i8 as j}from"./cli-1.1.22-q622p3vr.mjs";import{Dfa as I,Ufa as h,Wga as K,_ea as N,bfa as J,cha as b,ifa as Y,jca as X,kca as H,qca as x,wfa as G}from"./cli-1.1.22-3jyydg5h.mjs";import{Hla as L,zla as F}from"./cli-1.1.22-3r3tadt1.mjs";import{Ooa as W,yra as T}from"./cli-1.1.22-v260dy3k.mjs";import{tta as y}from"./cli-1.1.22-w09pyst3.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
|
|
2
|
-
export{d as Cc,l as Dc,S as Ec,u as Fc};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cja as q,eja as A,fja as x,gja as B}from"./cli-1.1.22-jz426kr2.mjs";import{Kka as J}from"./cli-1.1.22-ca6d1erw.mjs";import{Hla as G}from"./cli-1.1.22-3r3tadt1.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v3 as y,z3 as V}from"./cli-1.1.22-mxqz88pc.mjs";import{Iba as q,Kba as Q,O_ as p,Q_ as K}from"./cli-1.1.22-3jyydg5h.mjs";import{tta as J}from"./cli-1.1.22-w09pyst3.mjs";function g(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function F(){return W||null}async function P(){return(await p(y,["-V"])).code===0}function l(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function w(){return(await p(Y,["session","list"])).code===0}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
|
|
2
|
-
export{g as k3,D as l3,F as m3,P as n3,l as o3,Y as p3,w as q3,Z as r3};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{sta as n,tta as o}from"./cli-1.1.22-w09pyst3.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
|
|
2
|
-
export{i as Zja,c as _ja,p as $ja,u as aka};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{F4 as M,G4 as D}from"./cli-1.1.22-0553cn3c.mjs";import{Bfa as F,Hga as S,Jfa as _,Kga as p,Ufa as l,Xfa as L,Yfa as c}from"./cli-1.1.22-3jyydg5h.mjs";import{Pla as Y,Vla as m}from"./cli-1.1.22-265a4qpa.mjs";import{tta as B}from"./cli-1.1.22-w09pyst3.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:T}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||E}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,j=J?.scope?.trim()||C,$=j===C?[j]:[j,C],z="Device code request failed.",y=b(R(J?.domain));for(let V of $){let W=await Z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let x=await W.text().catch(()=>"");z=`Device code request failed: ${W.status} ${x}`;let k=/invalid_scope/i.test(x);if(V!==C&&k)continue;throw new q(z)}let X=await W.json(),N=X.device_code,K=X.user_code,w=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof w!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:w,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(z)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let j=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,z=Q?.fetchImpl??fetch,y=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(j*1000);continue}if(N==="slow_down"){j=typeof X.interval==="number"?X.interval:j+5,await P(j*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},j=Z.fetchImpl??fetch,$=h(R(Z.domain)),z=await j($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!z.ok){let K=await z.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${z.status} ${K}`)}let y=await z.json(),V=y.token,W=y.expires_at,X=y.refresh_in,N=y.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var E="Iv1.b507a08c87ecfe98",T="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{D();u={"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"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function g(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),z=$+"=".repeat((4-$.length%4)%4),y=Buffer.from(z,"base64").toString("utf8"),V=JSON.parse(y);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function jJ(){if(!g())return;if(Y())return;if(a())return}async function yJ(){if(!g())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,j=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!j&&!$)return!1;if((j?d(j):"expired")==="valid")return!1;if(!$)return!1;let y=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:y});if(!n(V.token,$,y).success)return!1;let X=F().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)_(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let j=J.trim();if(!j)return{success:!1,warning:"Token is empty."};let $=L(),z=$.read()||{},y=z[U],V=Q?.trim(),W={accessToken:j};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(y?.oauthAccessToken?.trim())W.oauthAccessToken=y.oauthAccessToken.trim();let N=Z?.trim()||y?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...z,[U]:W};return $.update(X)}function zJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
|
|
2
|
-
export{R as I2,r as J2,o as K2,e as L2,I as M2,O as N2,U as O2,VJ as P2,a as Q2,WJ as R2,jJ as S2,yJ as T2,n as U2,zJ as V2,s as W2};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{UV as f,VV as h,jW as u}from"./cli-1.1.22-v8pzx6jk.mjs";import{aY as C,mY as d}from"./cli-1.1.22-vnmyjmjg.mjs";import{B4 as w,D4 as F}from"./cli-1.1.22-mw0jpevk.mjs";import{Z4 as O,d5 as i}from"./cli-1.1.22-q622p3vr.mjs";import{U8 as x,X8 as v,c9 as M,d9 as A,i9 as I}from"./cli-1.1.22-ddq8axpw.mjs";import{Wga as K,cha as j}from"./cli-1.1.22-3jyydg5h.mjs";import{Xja as R,Yja as _}from"./cli-1.1.22-y4rj8ced.mjs";import{Fka as X,Gka as P,Kka as T,ala as J,dla as W}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as y,Hla as p}from"./cli-1.1.22-3r3tadt1.mjs";import{uta as q}from"./cli-1.1.22-w09pyst3.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.22-hayqq9zr.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
|
|
2
|
-
export{N as Ka,$z as La,Xz as Ma,xz as Na,Uz as Oa};
|