@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,3 +0,0 @@
|
|
|
1
|
-
import{tta as z}from"./cli-1.1.22-w09pyst3.mjs";import{execFile as B}from"child_process";import{promisify as E}from"util";async function N(v){try{let{stdout:q}=await G("git",["worktree","list","--porcelain"],{cwd:v,timeout:5000});if(!q)return[];return q.split(`
|
|
2
|
-
`).filter((j)=>j.startsWith("worktree ")).map((j)=>j.slice(9).normalize("NFC"))}catch{return[]}}var G;var H=z(()=>{G=E(B)});
|
|
3
|
-
export{N as GW,H as HW};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{ota as Z}from"./cli-1.1.22-skpsy2jm.mjs";import{rta as Y,uta as O}from"./cli-1.1.22-w09pyst3.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
-
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
-
export{ye as hta};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Tg as nJ,Ug as tY}from"./cli-1.1.22-1099x9x2.mjs";import{Vg as aJ,Wg as sJ,Xg as s0,Zg as qX}from"./cli-1.1.22-gpt102mm.mjs";import{$g as sX}from"./cli-1.1.22-nstgtysk.mjs";import{nh as a0,oh as aY,ph as lJ,qh as sY}from"./cli-1.1.22-xmy1w9q2.mjs";import{rh as iJ,sh as oY}from"./cli-1.1.22-gkryz2d0.mjs";import{th as rJ,uh as eY,vh as oJ,wh as ZX}from"./cli-1.1.22-9t3wxp9c.mjs";import{Ah as cJ,Bh as dJ,xh as VY,yh as O0}from"./cli-1.1.22-qmk7mm5m.mjs";import{cj as JY,dj as rX}from"./cli-1.1.22-yzk40k6c.mjs";import{$x as EZ,AH as gq,Am as ZY,BG as iZ,BH as mq,BN as sZ,Bm as lX,CG as fY,CH as pq,CN as Qq,DG as iq,DH as LY,Go as dY,Hz as Aq,Im as qY,Iz as bZ,JT as hY,Jm as nX,Kz as aX,Mj as bQ,Pj as Oq,Qy as oX,TT as qQ,Tp as bJ,UP as vQ,Uj as wX,Up as uY,VI as xJ,WI as lY,ZP as _X,ay as vJ,bU as JQ,by as gJ,cU as QQ,co as PZ,cy as yq,do as cY,eo as T,fU as YX,fo as cZ,go as qZ,ho as E0,ko as uZ,lL as o0,lo as g0,mL as nY,mT as uq,qL as U0,rG as JJ,rL as aq,ro as r0,sG as jY,sL as sq,tH as Tq,tL as tq,uH as jq,vH as $q,vo as _J,wH as wq,xH as _q,yH as bq,zH as vq}from"./cli-1.1.22-zmt5pksy.mjs";import{lV as mJ,mV as pJ,qV as iY}from"./cli-1.1.22-djkeg65n.mjs";import{_W as uJ,gX as rY}from"./cli-1.1.22-41aseceq.mjs";import{BY as b,CY as wJ,DY as lZ,GY as XY,HY as qG,JY as dZ,KY as T0,MY as M0,PY as GY,QY as JG,nY as RZ,oY as X0}from"./cli-1.1.22-bv3a0vaa.mjs";import{$Z as n0,DZ as $Z,G0 as $J,H1 as SZ,MZ as xZ,NZ as TJ,SZ as f0,UZ as iX,a0 as jJ,a1 as U,c1 as K,e0 as xY,m1 as eQ}from"./cli-1.1.22-261r450y.mjs";import{c4 as WZ,d4 as G,e4 as z,f4 as x}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as FZ}from"./cli-1.1.22-c07z4d74.mjs";import{r4 as CQ,s4 as kX}from"./cli-1.1.22-4pmfh5v2.mjs";import{$5 as l0,B8 as tQ,E5 as nZ,F5 as mY,Q6 as Pq,Q8 as uX,V6 as fJ,X5 as Y0,Y5 as i0,Z4 as sQ,_5 as CJ,b6 as SJ,b7 as k0,d5 as dX,f7 as yJ,g6 as hJ,p6 as pY}from"./cli-1.1.22-q622p3vr.mjs";import{k9 as KZ,l9 as OJ}from"./cli-1.1.22-yegp0d0j.mjs";import{Aga as zQ,Ega as GX,Hga as wZ,Kga as EJ,Uda as d0,Wda as ZZ,Wga as MZ,Zda as u0,_ea as y,bfa as f,cfa as RJ,cha as I0,hfa as BJ,hga as GQ,ica as PJ,jca as AJ,kca as LJ,kea as gY,kga as VQ,lca as MJ,lfa as UJ,lga as XX,mfa as kJ,nga as KQ,qca as vY,uga as HQ,wfa as IJ,wga as WQ,x_ as CZ,y_ as v0}from"./cli-1.1.22-3jyydg5h.mjs";import{rha as D0,sha as LZ,tha as aQ,yha as S0,zha as Jq}from"./cli-1.1.22-erbhk4p7.mjs";import{Rha as NJ}from"./cli-1.1.22-8zvpve6x.mjs";import{aia as FJ,mia as bY}from"./cli-1.1.22-dpqknw7z.mjs";import{jja as L0,lja as fq}from"./cli-1.1.22-j6xg80k8.mjs";import{Zja as S,aka as _Y}from"./cli-1.1.22-s5qhs3ds.mjs";import{Kka as cX,ala as _Z,dla as qq}from"./cli-1.1.22-ca6d1erw.mjs";import{Fla as Dq,Hla as $X}from"./cli-1.1.22-3r3tadt1.mjs";import{Nla as zJ,Pla as XQ,Vla as DJ}from"./cli-1.1.22-265a4qpa.mjs";import{Apa as WJ,Koa as oQ,Qna as uQ,Rna as iQ,Una as lQ,moa as nQ,noa as rQ,yra as hq,zna as Sq,zoa as Nq,zpa as c0}from"./cli-1.1.22-v260dy3k.mjs";import{pta as d,tta as r}from"./cli-1.1.22-w09pyst3.mjs";function MY(){let q=Sq(),Q=uq(q)??G(K,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"1.1.22"},{label:"Session name",value:Q},{label:"Session ID",value:q},{label:"cwd",value:L0()},...gq(),...mq()]}function RY({mainLoopModel:q,mcp:Z,theme:Q,context:Y}){return[{label:"Model",value:pq(q)},...jq(Z.clients,Y.options.ideInstallationStatus,Q),...$q(Z.clients,Q),...Tq(),..._q()]}async function xq(){return[...await bq(),...await vq(),...await wq()]}function BY(q){let Z=R0.c(8),{value:Q}=q;if(Array.isArray(Q)){let Y;if(Z[0]!==Q){let W;if(Z[2]!==Q.length)W=(D,N)=>z(K,{children:[D,N<Q.length-1?",":""]},N),Z[2]=Q.length,Z[3]=W;else W=Z[3];Y=Q.map(W),Z[0]=Q,Z[1]=Y}else Y=Z[1];let V;if(Z[4]!==Y)V=G(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:Y}),Z[4]=Y,Z[5]=V;else V=Z[5];return V}if(typeof Q==="string"){let Y;if(Z[6]!==Q)Y=G(K,{children:Q}),Z[6]=Q,Z[7]=Y;else Y=Z[7];return Y}return Q}function cq(q){let Z=R0.c(20),{context:Q,diagnosticsPromise:Y}=q,V=EZ(EY),W=EZ(IY),[D]=xZ(),N;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))N=MY(),Z[0]=N;else N=Z[0];let L;if(Z[1]!==Q||Z[2]!==V||Z[3]!==W||Z[4]!==D)L=RY({mainLoopModel:V,mcp:W,theme:D,context:Q}),Z[1]=Q,Z[2]=V,Z[3]=W,Z[4]=D,Z[5]=L;else L=Z[5];let M;if(Z[6]!==L)M=[N,L],Z[6]=L,Z[7]=M;else M=Z[7];let H=M,O=dZ()?1:void 0,F;if(Z[8]!==H)F=H.map(UY),Z[8]=H,Z[9]=F;else F=Z[9];let P;if(Z[10]!==Y)P=G(B0.Suspense,{fallback:null,children:G(CY,{promise:Y})}),Z[10]=Y,Z[11]=P;else P=Z[11];let R;if(Z[12]!==O||Z[13]!==F||Z[14]!==P)R=z(U,{flexDirection:"column",gap:1,flexGrow:O,children:[F,P]}),Z[12]=O,Z[13]=F,Z[14]=P,Z[15]=R;else R=Z[15];let I;if(Z[16]===Symbol.for("react.memo_cache_sentinel"))I=G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),Z[16]=I;else I=Z[16];let k;if(Z[17]!==O||Z[18]!==R)k=z(U,{flexDirection:"column",flexGrow:O,children:[R,I]}),Z[17]=O,Z[18]=R,Z[19]=k;else k=Z[19];return k}function UY(q,Z){return q.length>0&&G(U,{flexDirection:"column",children:q.map(kY)},Z)}function kY(q,Z){let{label:Q,value:Y}=q;return z(U,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&z(K,{bold:!0,children:[Q,":"]}),G(BY,{value:Y})]},Z)}function IY(q){return q.mcp}function EY(q){return q.mainLoopModel}function CY(q){let Z=R0.c(5),{promise:Q}=q,Y=B0.use(Q);if(Y.length===0)return null;let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=G(K,{bold:!0,children:"System Diagnostics"}),Z[0]=V;else V=Z[0];let W;if(Z[1]!==Y)W=Y.map(SY),Z[1]=Y,Z[2]=W;else W=Z[2];let D;if(Z[3]!==W)D=z(U,{flexDirection:"column",paddingBottom:1,children:[V,W]}),Z[3]=W,Z[4]=D;else D=Z[4];return D}function SY(q,Z){return z(U,{flexDirection:"row",gap:1,paddingX:1,children:[G(K,{color:"error",children:CZ.warning}),typeof q==="string"?G(K,{wrap:"wrap",children:q}):q]},Z)}var R0,B0;var dq=r(()=>{v0();hq();M0();SZ();yq();fq();hY();LY();cZ();x();R0=d($Z(),1),B0=d(FZ(),1)});function nq(q){let Z=lq.c(17),{currentVersion:Q,onChoice:Y}=q,V;if(Z[0]!==Y)V=function(k){Y(k)},Z[0]=Y,Z[1]=V;else V=Z[1];let W=V,D;if(Z[2]!==Y)D=function(){Y("cancel")},Z[2]=Y,Z[3]=D;else D=Z[3];let N=D,L;if(Z[4]!==Q)L=z(K,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),Z[4]=Q,Z[5]=L;else L=Z[5];let M;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))M=G(K,{dimColor:!0,children:"How would you like to handle this?"}),Z[6]=M;else M=Z[6];let H;if(Z[7]===Symbol.for("react.memo_cache_sentinel"))H={label:"Allow possible downgrade to stable version",value:"downgrade"},Z[7]=H;else H=Z[7];let O=`Stay on current version (${Q}) until stable catches up`,F;if(Z[8]!==O)F=[H,{label:O,value:"stay"}],Z[8]=O,Z[9]=F;else F=Z[9];let P;if(Z[10]!==W||Z[11]!==F)P=G(iZ,{options:F,onChange:W}),Z[10]=W,Z[11]=F,Z[12]=P;else P=Z[12];let R;if(Z[13]!==N||Z[14]!==L||Z[15]!==P)R=z(uZ,{title:"Switch to Stable Channel",onCancel:N,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[L,M,P]}),Z[13]=N,Z[14]=L,Z[15]=P,Z[16]=R;else R=Z[16];return R}var lq;var rq=r(()=>{SZ();iq();g0();x();lq=d($Z(),1)});function oq(q){return Object.entries(q).map(([Z,Q])=>({label:Q?.name??yY,value:Z,description:Q?.description??TY}))}function ZJ(q){let Z=eq.c(16),{initialStyle:Q,onComplete:Y,onCancel:V,isStandaloneCommand:W}=q,D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D=[],Z[0]=D;else D=Z[0];let[N,L]=q0.useState(D),[M,H]=q0.useState(!0),O,F;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))O=()=>{sq(L0()).then((u)=>{let m=oq(u);L(m),H(!1)}).catch(()=>{let u=oq(aq);L(u),H(!1)})},F=[],Z[1]=O,Z[2]=F;else O=Z[1],F=Z[2];q0.useEffect(O,F);let P;if(Z[3]!==Y)P=(u)=>{Y(u)},Z[3]=Y,Z[4]=P;else P=Z[4];let R=P,I=!W,k=!W,_;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))_=G(U,{marginTop:1,children:G(K,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),Z[5]=_;else _=Z[5];let t;if(Z[6]!==R||Z[7]!==Q||Z[8]!==M||Z[9]!==N)t=z(U,{flexDirection:"column",gap:1,children:[_,M?G(K,{dimColor:!0,children:"Loading output styles…"}):G(iZ,{options:N,onChange:R,visibleOptionCount:10,defaultValue:Q})]}),Z[6]=R,Z[7]=Q,Z[8]=M,Z[9]=N,Z[10]=t;else t=Z[10];let w;if(Z[11]!==V||Z[12]!==I||Z[13]!==k||Z[14]!==t)w=G(uZ,{title:"Preferred output style",onCancel:V,hideInputGuide:I,hideBorder:k,children:t}),Z[11]=V,Z[12]=I,Z[13]=k,Z[14]=t,Z[15]=w;else w=Z[15];return w}var eq,q0,yY="Default",TY="Claudin completes coding tasks efficiently and provides concise responses";var qJ=r(()=>{tq();SZ();fq();fY();g0();x();eq=d($Z(),1),q0=d(FZ(),1)});function YJ(q){let Z=QJ.c(13),{initialLanguage:Q,onComplete:Y,onCancel:V}=q,[W,D]=m0.useState(Q),[N,L]=m0.useState((Q??"").length),M;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))M={context:"Settings"},Z[0]=M;else M=Z[0];b("confirm:no",V,M);let H;if(Z[1]!==W||Z[2]!==Y)H=function(){let w=W?.trim();Y(w||void 0)},Z[1]=W,Z[2]=Y,Z[3]=H;else H=Z[3];let O=H,F;if(Z[4]===Symbol.for("react.memo_cache_sentinel"))F=G(K,{children:"Enter your preferred response and voice language:"}),Z[4]=F;else F=Z[4];let P;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))P=G(K,{children:CZ.pointer}),Z[5]=P;else P=Z[5];let R=W??"",I;if(Z[6]!==N||Z[7]!==O||Z[8]!==R)I=z(U,{flexDirection:"row",gap:1,children:[P,G(JJ,{value:R,onChange:D,onSubmit:O,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${CZ.ellipsis}`,columns:60,cursorOffset:N,onChangeCursorOffset:L})]}),Z[6]=N,Z[7]=O,Z[8]=R,Z[9]=I;else I=Z[9];let k;if(Z[10]===Symbol.for("react.memo_cache_sentinel"))k=G(K,{dimColor:!0,children:"Leave empty for default (English)"}),Z[10]=k;else k=Z[10];let _;if(Z[11]!==I)_=z(U,{flexDirection:"column",gap:1,children:[F,I,k]}),Z[11]=I,Z[12]=_;else _=Z[12];return _}var QJ,m0;var XJ=r(()=>{v0();SZ();lZ();jY();x();QJ=d($Z(),1),m0=d(FZ(),1)});function GJ(q,{grouped:Z=!0}={}){if(!Z)return q.map((W)=>({kind:"setting",id:W.id,item:W}));let Q=new Map;for(let W of q){let D=Q.get(W.id);if(D)D.push(W);else Q.set(W.id,[W])}let Y=[],V=(W,D)=>{if(D.length===0)return;if(Y.length>0)Y.push({kind:"spacer",id:`spacer:${W.id}`});Y.push({kind:"header",id:`header:${W.id}`,label:W.label});for(let N of D)Y.push({kind:"setting",id:N.id,item:N})};for(let W of $Y){let D=[];for(let N of W.settingIds){let L=Q.get(N);if(!L)continue;D.push(...L),Q.delete(N)}V(W,D)}return V(wY,[...Q.values()].flat()),Y}function hZ(q){return q?.kind==="setting"}function Q0(q){return q.findIndex((Z)=>hZ(Z))}function p0(q){for(let Z=q.length-1;Z>=0;Z--)if(hZ(q[Z]))return Z;return-1}function J0(q,Z,Q){for(let Y=Z+Q;Y>=0&&Y<q.length;Y+=Q)if(hZ(q[Y]))return Y;return hZ(q[Z])?Z:Q0(q)}function VJ(q,Z,Q){if(Q===1){for(let V=Z+1;V<q.length;V++)if(q[V]?.kind==="header")return J0(q,V,1);return p0(q)}let Y=-1;for(let V=Z-1;V>=0;V--)if(q[V]?.kind==="header"){Y=V;break}for(let V=Y-1;V>=0;V--)if(q[V]?.kind==="header")return J0(q,V,1);return Q0(q)}function x0(q){return q.reduce((Z,Q)=>hZ(Q)?Z+1:Z,0)}var $Y,wY;var KJ=r(()=>{$Y=[{id:"model",label:"Model & thinking",settingIds:["model","thinkingEnabled","fastMode","outputStyle","language","autoCompactEnabled"]},{id:"agents",label:"Agents & workflows",settingIds:["autoBackgroundAgentsEnabled","workflowsDefaultBackground","teammateMode","teammateDefaultModel"]},{id:"tools",label:"Tools & permissions",settingIds:["defaultPermissionMode","useAutoModeDuringPlan","bashOutputFilterEnabled","bashOutputFilterCapEnabled","toolResultSummarizerEnabled","repeatedFailureHintEnabled","fileCheckpointingEnabled","respectGitignore"]},{id:"interface",label:"Interface",settingIds:["theme","defaultView","verbose","showTurnDuration","collapseFileWritesEnabled","showCacheStats","spinnerTipsEnabled","prefersReducedMotion","prStatusFooterEnabled","promptSuggestionEnabled","editorMode","inlineImagesMode"]},{id:"terminal",label:"Terminal",settingIds:["terminalRenderer","frameRate","terminalProgressBarEnabled","showStatusInTerminalTab","copyOnSelect","copyFullResponse"]},{id:"notifications",label:"Notifications",settingIds:["notifChannel","taskCompleteNotifEnabled","inputNeededNotifEnabled","agentPushNotifEnabled"]},{id:"integrations",label:"Integrations",settingIds:["diffTool","autoConnectIde","autoInstallIdeExtension","remoteControlAtStartup"]},{id:"context",label:"Context & privacy",settingIds:["thinkingHistoryRedactionEnabled","narrationHistoryRedactionEnabled","showExternalIncludesDialog"]},{id:"updates",label:"Updates & account",settingIds:["autoUpdatesChannel","apiKey"]}],wY={id:"other",label:"Other",settingIds:[]}});function eJ({onClose:q,context:Z,setTabsHidden:Q,onIsSearchModeChange:Y,contentHeight:V}){let{headerFocused:W,focusHeader:D}=cJ(),N=dZ(),[,L]=xZ(),M=TJ(),[H,O]=v.useState(f()),F=l.useRef(f()),[P,R]=v.useState(u0()),I=l.useRef(u0()),[k,_]=v.useState(P?.outputStyle||U0),t=l.useRef(k),[w,u]=v.useState(P?.language),m=l.useRef(w),[j,QZ]=v.useState(0),[o,YZ]=v.useState(0),[n,zZ]=v.useState(!0),jZ=$J(),[e]=v.useState(()=>n0()),{rows:vZ,columns:XZ}=RZ(),F0=Math.max(24,Math.min(44,XZ-18)),C=V??Math.min(Math.floor(vZ*0.8),30),p=Math.max(5,C-10),BZ=EZ((J)=>J.mainLoopModel),N0=EZ((J)=>J.verbose),gZ=EZ((J)=>J.thinkingEnabled),mZ=EZ((J)=>Y0()?J.fastMode:!1),pZ=EZ((J)=>J.promptSuggestionEnabled),j0=!1,GZ=vJ(),[tZ,E]=v.useState({}),$=l.useRef(gZ),[a]=v.useState(()=>d0("localSettings")),[VZ]=v.useState(()=>d0("userSettings")),HZ=l.useRef(M),eZ=gJ(),[UZ]=v.useState(()=>{let J=eZ.getState();return{mainLoopModel:J.mainLoopModel,mainLoopModelForSession:J.mainLoopModelForSession,verbose:J.verbose,thinkingEnabled:J.thinkingEnabled,fastMode:J.fastMode,promptSuggestionEnabled:J.promptSuggestionEnabled,isBriefOnly:J.isBriefOnly,replBridgeEnabled:J.replBridgeEnabled,replBridgeOutboundOnly:J.replBridgeOutboundOnly,settings:J.settings}}),[$0]=v.useState(()=>c0()),NZ=l.useRef(!1),[HY,Z0]=v.useState(!1),[i,g]=v.useState(null),{query:kZ,setQuery:P0,cursorOffset:WY}=oJ({isActive:n&&i===null&&!W,onExit:()=>zZ(!1),onExitUp:D,passthroughCtrlKeys:["c","d"]}),Mq=n&&!W;l.useEffect(()=>{Y?.(Mq)},[Mq,Y]);let zY=_J(Z.options.mcpClients),DY=!zJ(process.env.CLAUDIN_DISABLE_FILE_CHECKPOINTING),Rq=l.use(qQ(!0)),OY=QQ(Rq),IZ=kJ();function Bq(J){S("",{from_model:BZ,to_model:J}),GZ((A)=>({...A,mainLoopModel:J,mainLoopModelForSession:null})),E((A)=>{let B=k0(J)+(lJ(J,!1,fJ())?" · Billed as extra usage":"");if("model"in A){let{model:h,...DZ}=A;return{...DZ,model:B}}return{...A,model:B}})}function FY(J){y((X)=>({...X,verbose:J})),O({...f(),verbose:J}),GZ((X)=>({...X,verbose:J})),E((X)=>{if("verbose"in X){let{verbose:A,...B}=X;return B}return{...X,verbose:J}})}let w0=[{id:"autoCompactEnabled",label:"Auto-compact",value:H.autoCompactEnabled,type:"boolean",onChange(J){y((X)=>({...X,autoCompactEnabled:J})),O({...f(),autoCompactEnabled:J}),S("",{enabled:J})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:H.thinkingHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,thinkingHistoryRedactionEnabled:J})),O({...f(),thinkingHistoryRedactionEnabled:J}),S("claudin_thinking_history_redaction_setting_changed",{enabled:J})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:H.narrationHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,narrationHistoryRedactionEnabled:J})),O({...f(),narrationHistoryRedactionEnabled:J}),S("claudin_narration_history_redaction_setting_changed",{enabled:J})}},{id:"showCacheStats",label:"Cache stats display",value:H.showCacheStats,options:["off","compact","full"],type:"enum",onChange(J){let X=J==="off"||J==="compact"||J==="full"?J:"compact";y((A)=>({...A,showCacheStats:X})),O({...f(),showCacheStats:X}),S("",{mode:X})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:H.toolResultSummarizerEnabled,type:"boolean",onChange(J){y((X)=>({...X,toolResultSummarizerEnabled:J})),O({...f(),toolResultSummarizerEnabled:J}),S("claudin_tool_result_summarizer_setting_changed",{enabled:J})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:H.bashOutputFilterEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,bashOutputFilterEnabled:J})),O({...f(),bashOutputFilterEnabled:J}),S("claudin_bash_output_filter_setting_changed",{enabled:J})}},{id:"bashOutputFilterCapEnabled",label:"Bash output line cap",value:H.bashOutputFilterCapEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,bashOutputFilterCapEnabled:J})),O({...f(),bashOutputFilterCapEnabled:J}),S("claudin_bash_output_filter_cap_setting_changed",{enabled:J})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:H.autoBackgroundAgentsEnabled===!0,type:"boolean",onChange(J){y((X)=>({...X,autoBackgroundAgentsEnabled:J})),O({...f(),autoBackgroundAgentsEnabled:J}),S("claudin_auto_background_agents_setting_changed",{enabled:J})}},{id:"repeatedFailureHintEnabled",label:"Repeated-failure hint",value:H.repeatedFailureHintEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,repeatedFailureHintEnabled:J})),O({...f(),repeatedFailureHintEnabled:J}),S("claudin_repeated_failure_hint_setting_changed",{enabled:J})}},{id:"collapseFileWritesEnabled",label:"Collapse file writes",value:H.collapseFileWritesEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,collapseFileWritesEnabled:J})),O({...f(),collapseFileWritesEnabled:J}),S("claudin_collapse_file_writes_setting_changed",{enabled:J})}},{id:"workflowsDefaultBackground",label:"Workflows run in background",value:H.workflowsDefaultBackground===!0,type:"boolean",onChange(J){y((X)=>({...X,workflowsDefaultBackground:J})),O({...f(),workflowsDefaultBackground:J})}},{id:"inlineImagesMode",label:"Inline terminal images",value:H.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(J){let X=J==="auto"||J==="enable"||J==="disable"?J:"auto";y((A)=>({...A,inlineImagesMode:X})),O({...f(),inlineImagesMode:X}),S("claudin_inline_images_setting_changed",{mode:X})}},{id:"spinnerTipsEnabled",label:"Show tips",value:P?.spinnerTipsEnabled??!0,type:"boolean",onChange(J){ZZ("localSettings",{spinnerTipsEnabled:J}),R((X)=>({...X,spinnerTipsEnabled:J})),S("",{enabled:J})}},{id:"prefersReducedMotion",label:"Reduce motion",value:P?.prefersReducedMotion??!1,type:"boolean",onChange(J){ZZ("localSettings",{prefersReducedMotion:J}),R((X)=>({...X,prefersReducedMotion:J})),GZ((X)=>({...X,settings:{...X.settings,prefersReducedMotion:J}})),S("",{enabled:J})}},{id:"thinkingEnabled",label:"Thinking mode",value:gZ??!0,type:"boolean",onChange(J){GZ((X)=>({...X,thinkingEnabled:J})),ZZ("userSettings",{alwaysThinkingEnabled:J?void 0:!1}),S("",{enabled:J})}},...Y0()&&i0()?[{id:"fastMode",label:`Fast mode (${CJ} only)`,value:!!mZ,type:"boolean",onChange(J){if(hJ(),ZZ("userSettings",{fastMode:J?!0:void 0}),J)GZ((X)=>({...X,mainLoopModel:l0(),mainLoopModelForSession:null,fastMode:!0})),E((X)=>({...X,model:l0(),"Fast mode":"ON"}));else GZ((X)=>({...X,fastMode:!1})),E((X)=>({...X,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:pZ,type:"boolean",onChange(J){GZ((X)=>({...X,promptSuggestionEnabled:J})),ZZ("userSettings",{promptSuggestionEnabled:J?void 0:!1})}},...DY?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:H.fileCheckpointingEnabled,type:"boolean",onChange(J){y((X)=>({...X,fileCheckpointingEnabled:J})),O({...f(),fileCheckpointingEnabled:J}),S("",{enabled:J})}}]:[],{id:"verbose",label:"Verbose output",value:N0,type:"boolean",onChange:FY},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:H.terminalProgressBarEnabled,type:"boolean",onChange(J){y((X)=>({...X,terminalProgressBarEnabled:J})),O({...f(),terminalProgressBarEnabled:J}),S("",{enabled:J})}},...FJ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:H.showStatusInTerminalTab??!1,type:"boolean",onChange(J){y((X)=>({...X,showStatusInTerminalTab:J})),O({...f(),showStatusInTerminalTab:J}),S("",{enabled:J})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:H.showTurnDuration,type:"boolean",onChange(J){y((X)=>({...X,showTurnDuration:J})),O({...f(),showTurnDuration:J}),S("",{enabled:J})}},{id:"defaultPermissionMode",label:"Default permission mode",value:P?.permissions?.defaultMode||"default",options:(()=>{let J=["default","plan"],X=NJ,A=["bypassPermissions"];return[...J,...X.filter((B)=>!J.includes(B)&&!A.includes(B))]})(),type:"enum",onChange(J){let X=LJ(J),A=PJ(X)?AJ(X):X,B=ZZ("userSettings",{permissions:{...P?.permissions,defaultMode:A}});if(B.error){MZ(B.error);return}R((h)=>({...h,permissions:{...h?.permissions,defaultMode:A}})),E((h)=>({...h,defaultPermissionMode:J})),S("",{setting:"defaultPermissionMode",value:J})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:P?.useAutoModeDuringPlan??!0,type:"boolean",onChange(J){ZZ("userSettings",{useAutoModeDuringPlan:J}),R((X)=>({...X,useAutoModeDuringPlan:J})),GZ((X)=>{let A=o0(X.toolPermissionContext);if(A===X.toolPermissionContext)return X;return{...X,toolPermissionContext:A}}),E((X)=>({...X,"Use auto mode during plan":J}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:H.respectGitignore,type:"boolean",onChange(J){y((X)=>({...X,respectGitignore:J})),O({...f(),respectGitignore:J}),S("",{enabled:J})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy)",searchText:"Always copy full response skip /copy picker",value:H.copyFullResponse,type:"boolean",onChange(J){y((X)=>({...X,copyFullResponse:J})),O({...f(),copyFullResponse:J}),S("",{setting:"copyFullResponse",value:String(J)})}},...e?[{id:"copyOnSelect",label:"Copy on select",value:H.copyOnSelect??!0,type:"boolean",onChange(J){y((X)=>({...X,copyOnSelect:J})),O({...f(),copyOnSelect:J}),S("",{setting:"copyOnSelect",value:String(J)})}}]:[],{id:"terminalRenderer",label:jJ()?"Terminal UI renderer (env)":"Terminal UI renderer",searchText:"terminal ui renderer fullscreen flicker-free alt-screen",value:n0()?"fullscreen":"default",options:["default","fullscreen"],type:"enum",onChange(J){let X=J==="fullscreen";y((A)=>({...A,flickerFreeMode:X})),O({...f(),flickerFreeMode:X}),S("",{setting:"flickerFreeMode",value:String(X)})}},{id:"frameRate",label:sJ()?`Frame rate (env, ${s0()}fps)`:`Frame rate (${s0()}fps)`,searchText:"frame rate fps animation smoothness gpu terminal refresh",value:H.renderFrameRate??"auto",options:[...aJ],type:"enum",onChange(J){y((X)=>({...X,renderFrameRate:J})),O({...f(),renderFrameRate:J}),S("",{setting:"renderFrameRate",value:String(J)})}},IZ?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:P?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:M,type:"managedEnum",onChange:L},{id:"notifChannel",label:"Notifications",value:H.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(J){y((X)=>({...X,preferredNotifChannel:J})),O({...f(),preferredNotifChannel:J})}},{id:"outputStyle",label:"Output style",value:k,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:H.editorMode==="emacs"?"normal":H.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(J){y((X)=>({...X,editorMode:J})),O({...f(),editorMode:J}),S("",{mode:J,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:H.prStatusFooterEnabled??!0,type:"boolean",onChange(J){y((X)=>{if(X.prStatusFooterEnabled===J)return X;return{...X,prStatusFooterEnabled:J}}),O({...f(),prStatusFooterEnabled:J}),S("",{enabled:J})}},{id:"model",label:"Model",value:BZ===null?"Default (recommended)":BZ,type:"managedEnum",onChange:Bq},...zY?[{id:"diffTool",label:"Diff tool",value:H.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(J){y((X)=>({...X,diffTool:J})),O({...f(),diffTool:J}),S("",{tool:J,source:"config_panel"})}}]:[],...!r0()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:H.autoConnectIde??!1,type:"boolean",onChange(J){y((X)=>({...X,autoConnectIde:J})),O({...f(),autoConnectIde:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...r0()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:H.autoInstallIdeExtension??!0,type:"boolean",onChange(J){y((X)=>({...X,autoInstallIdeExtension:J})),O({...f(),autoInstallIdeExtension:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...bJ()?(()=>{let J=mJ();return[{id:"teammateMode",label:J?`Teammate mode [overridden: ${J}]`:"Teammate mode",value:H.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(A){if(A!=="auto"&&A!=="tmux"&&A!=="in-process")return;pJ(A),y((B)=>({...B,teammateMode:A})),O({...f(),teammateMode:A}),S("",{mode:A})}},{id:"teammateDefaultModel",label:"Default teammate model",value:HJ(H.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...uJ()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:H.remoteControlAtStartup===void 0?"default":String(H.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(J){if(J==="default")y((A)=>{if(A.remoteControlAtStartup===void 0)return A;let B={...A};return delete B.remoteControlAtStartup,B}),O({...f(),remoteControlAtStartup:void 0});else{let A=J==="true";y((B)=>{if(B.remoteControlAtStartup===A)return B;return{...B,remoteControlAtStartup:A}}),O({...f(),remoteControlAtStartup:A})}let X=RJ();GZ((A)=>{if(A.replBridgeEnabled===X&&!A.replBridgeOutboundOnly)return A;return{...A,replBridgeEnabled:X,replBridgeOutboundOnly:!1}})}}]:[],...OY?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(BJ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let J=wZ(),X=J?.transport==="anthropic"?J.apiKey?.trim():void 0;if(!X)return[];return[{id:"apiKey",label:z(K,{children:["Use custom API key:"," ",G(K,{bold:!0,children:nZ(X)})]}),searchText:"Use custom API key",value:Boolean(H.customApiKeyResponses?.approved?.includes(nZ(X))),type:"boolean",onChange(A){y((B)=>{let h={...B};if(!h.customApiKeyResponses)h.customApiKeyResponses={approved:[],rejected:[]};if(!h.customApiKeyResponses.approved)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[]};if(!h.customApiKeyResponses.rejected)h.customApiKeyResponses={...h.customApiKeyResponses,rejected:[]};{let DZ=nZ(X);if(A)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[...(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),DZ],rejected:(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ)};else h.customApiKeyResponses={...h.customApiKeyResponses,approved:(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),rejected:[...(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ),DZ]}}return h}),O(f())}}]})()],Uq=l.useMemo(()=>{if(!kZ)return w0;let J=kZ.toLowerCase();return w0.filter((X)=>{if(X.id.toLowerCase().includes(J))return!0;return("searchText"in X?X.searchText:X.label).toLowerCase().includes(J)})},[w0,kZ]),s=l.useMemo(()=>GJ(Uq,{grouped:kZ===""}),[Uq,kZ]),kq=x0(s.slice(0,o)),Iq=x0(s.slice(o+p));l.useEffect(()=>{if(j>=s.length){let J=Math.max(0,p0(s));QZ(J),YZ(Math.max(0,J-p+1));return}if(!hZ(s[j])){let J=Math.max(0,J0(s,j,1));QZ(J),YZ((X)=>J>=X+p?J-p+1:X);return}YZ((J)=>{if(j<J)return j;if(j>=J+p)return j-p+1;return J})},[s,j,p]);let _0=v.useCallback((J)=>{YZ((X)=>{if(J<X)return J;if(J>=X+p)return J-p+1;return X})},[p]),NY=v.useCallback(()=>{if(i!==null)return;let J=Object.entries(tZ).map(([OZ,Cq])=>{return S("",{key:OZ,value:Cq}),`Set ${OZ} to ${KZ.bold(Cq)}`}),X=wZ(),B=X?.transport==="anthropic"?X.apiKey?.trim():void 0,h=Boolean(B&&F.current.customApiKeyResponses?.approved?.includes(nZ(B))),DZ=Boolean(B&&H.customApiKeyResponses?.approved?.includes(nZ(B)));if(h!==DZ)J.push(`${DZ?"Enabled":"Disabled"} custom API key`),S("",{key:"env.ANTHROPIC_API_KEY",value:DZ});if(H.theme!==F.current.theme)J.push(`Set theme to ${KZ.bold(H.theme)}`);if(H.preferredNotifChannel!==F.current.preferredNotifChannel)J.push(`Set notifications to ${KZ.bold(H.preferredNotifChannel)}`);if(k!==t.current)J.push(`Set output style to ${KZ.bold(k)}`);if(w!==m.current)J.push(`Set response language to ${KZ.bold(w??"Default (English)")}`);if(H.editorMode!==F.current.editorMode)J.push(`Set editor mode to ${KZ.bold(H.editorMode||"emacs")}`);if(H.diffTool!==F.current.diffTool)J.push(`Set diff tool to ${KZ.bold(H.diffTool)}`);if(H.autoConnectIde!==F.current.autoConnectIde)J.push(`${H.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(H.autoInstallIdeExtension!==F.current.autoInstallIdeExtension)J.push(`${H.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(H.autoCompactEnabled!==F.current.autoCompactEnabled)J.push(`${H.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(H.thinkingHistoryRedactionEnabled!==F.current.thinkingHistoryRedactionEnabled)J.push(`${H.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(H.narrationHistoryRedactionEnabled!==F.current.narrationHistoryRedactionEnabled)J.push(`${H.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(H.toolResultSummarizerEnabled!==F.current.toolResultSummarizerEnabled)J.push(`${H.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(H.autoBackgroundAgentsEnabled!==F.current.autoBackgroundAgentsEnabled)J.push(`${H.autoBackgroundAgentsEnabled===!0?"Enabled":"Disabled"} auto-background agents`);if(H.workflowsDefaultBackground!==F.current.workflowsDefaultBackground)J.push(`${H.workflowsDefaultBackground===!0?"Enabled":"Disabled"} workflows run in background`);if(H.bashOutputFilterEnabled!==F.current.bashOutputFilterEnabled)J.push(`${H.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(H.bashOutputFilterCapEnabled!==F.current.bashOutputFilterCapEnabled)J.push(`${H.bashOutputFilterCapEnabled!==!1?"Enabled":"Disabled"} bash output line cap`);if(H.repeatedFailureHintEnabled!==F.current.repeatedFailureHintEnabled)J.push(`${H.repeatedFailureHintEnabled!==!1?"Enabled":"Disabled"} repeated-failure hint`);if(H.collapseFileWritesEnabled!==F.current.collapseFileWritesEnabled)J.push(`${H.collapseFileWritesEnabled!==!1?"Enabled":"Disabled"} collapse file writes`);if(H.respectGitignore!==F.current.respectGitignore)J.push(`${H.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(H.copyFullResponse!==F.current.copyFullResponse)J.push(`${H.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(H.copyOnSelect!==F.current.copyOnSelect)J.push(`${H.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(H.flickerFreeMode!==F.current.flickerFreeMode)J.push(`Set terminal UI renderer to ${KZ.bold(H.flickerFreeMode?"fullscreen":"default")}`);if(H.renderFrameRate!==F.current.renderFrameRate)J.push(`Set frame rate to ${KZ.bold(H.renderFrameRate??"auto")} (applies on restart)`);if(H.terminalProgressBarEnabled!==F.current.terminalProgressBarEnabled)J.push(`${H.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(H.showStatusInTerminalTab!==F.current.showStatusInTerminalTab)J.push(`${H.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(H.showTurnDuration!==F.current.showTurnDuration)J.push(`${H.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(H.remoteControlAtStartup!==F.current.remoteControlAtStartup){let OZ=H.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${H.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;J.push(OZ)}if(P?.autoUpdatesChannel!==I.current?.autoUpdatesChannel)J.push(`Set auto-update channel to ${KZ.bold(P?.autoUpdatesChannel??"latest")}`);if(J.length>0)q(J.join(`
|
|
2
|
-
`));else q("Config dialog dismissed",{display:"system"})},[i,tZ,H,BZ,k,w,P?.autoUpdatesChannel,Y0()?P?.fastMode:void 0,q]),Eq=v.useCallback(()=>{if(M!==HZ.current)L(HZ.current);y(()=>F.current);let J=a;ZZ("localSettings",{spinnerTipsEnabled:J?.spinnerTipsEnabled,prefersReducedMotion:J?.prefersReducedMotion,defaultView:J?.defaultView,outputStyle:J?.outputStyle});let X=VZ;ZZ("userSettings",{alwaysThinkingEnabled:X?.alwaysThinkingEnabled,fastMode:X?.fastMode,promptSuggestionEnabled:X?.promptSuggestionEnabled,autoUpdatesChannel:X?.autoUpdatesChannel,minimumVersion:X?.minimumVersion,language:X?.language,...{useAutoModeDuringPlan:X?.useAutoModeDuringPlan},syntaxHighlightingDisabled:X?.syntaxHighlightingDisabled,permissions:X?.permissions===void 0?void 0:{...X.permissions,defaultMode:X.permissions.defaultMode}});let A=UZ;if(GZ((B)=>({...B,mainLoopModel:A.mainLoopModel,mainLoopModelForSession:A.mainLoopModelForSession,verbose:A.verbose,thinkingEnabled:A.thinkingEnabled,fastMode:A.fastMode,promptSuggestionEnabled:A.promptSuggestionEnabled,isBriefOnly:A.isBriefOnly,replBridgeEnabled:A.replBridgeEnabled,replBridgeOutboundOnly:A.replBridgeOutboundOnly,settings:A.settings,toolPermissionContext:o0(B.toolPermissionContext)})),c0()!==$0)WJ($0)},[M,L,a,VZ,UZ,$0,GZ]),PY=v.useCallback(()=>{if(i!==null)return;if(NZ.current)Eq();q("Config dialog dismissed",{display:"system"})},[i,Eq,q]);b("confirm:no",PY,{context:"Settings",isActive:i===null&&!n&&!W}),b("settings:close",NY,{context:"Settings",isActive:i===null&&!n&&!W});let b0=v.useCallback(()=>{let J=s[j];if(!hZ(J))return;let X=J.item;if(!X.onChange)return;if(X.type==="boolean"){if(NZ.current=!0,X.onChange(!X.value),X.id==="thinkingEnabled"){if(!X.value===$.current)Z0(!1);else if(Z.messages.some((h)=>h.type==="assistant"))Z0(!0)}return}if(X.id==="theme"||X.id==="model"||X.id==="teammateDefaultModel"||X.id==="showExternalIncludesDialog"||X.id==="outputStyle"||X.id==="language")switch(X.id){case"theme":g("Theme"),Q(!0);return;case"model":g("Model"),Q(!0);return;case"teammateDefaultModel":g("TeammateModel"),Q(!0);return;case"showExternalIncludesDialog":g("ExternalIncludes"),Q(!0);return;case"outputStyle":g("OutputStyle"),Q(!0);return;case"language":g("Language"),Q(!0);return}if(X.id==="autoUpdatesChannel"){if(IZ){g("EnableAutoUpdates"),Q(!0);return}if((P?.autoUpdatesChannel??"latest")==="latest")g("ChannelDowngrade"),Q(!0);else NZ.current=!0,ZZ("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((B)=>({...B,autoUpdatesChannel:"latest",minimumVersion:void 0})),S("",{channel:"latest"});return}if(X.type==="enum"){NZ.current=!0;let B=(X.options.indexOf(X.value)+1)%X.options.length;X.onChange(X.options[B]);return}},[IZ,s,j,P?.autoUpdatesChannel,Q]),A0=(J)=>{Z0(!1);let X=J0(s,j,J);if(X<0)return;QZ(X),_0(X)};wJ({"select:previous":()=>{let J=Q0(s);if(J<0||j<=J)Z0(!1),zZ(!0),YZ(0);else A0(-1)},"select:next":()=>A0(1),"scroll:lineUp":()=>A0(-1),"scroll:lineDown":()=>A0(1),"select:accept":b0,"settings:search":()=>{zZ(!0),P0("")}},{context:"Settings",isActive:i===null&&!n&&!W});let AY=v.useCallback((J)=>{if(i!==null)return;if(W)return;if(n){if(J.key==="escape"){if(J.preventDefault(),kZ.length>0)P0("");else zZ(!1);return}if(J.key==="return"||J.key==="down"||J.key==="wheeldown")J.preventDefault(),zZ(!1),QZ(Math.max(0,Q0(s))),YZ(0);return}if(J.key==="left"||J.key==="right"||J.key==="tab"){J.preventDefault(),b0();return}if(J.key==="["||J.key==="]"){J.preventDefault();let X=VJ(s,j,J.key==="["?-1:1);if(X>=0)Z0(!1),QZ(X),_0(X);return}if(J.ctrl||J.meta)return;if(J.key==="j"||J.key==="k"||J.key==="/")return;if(J.key.length===1&&J.key!==" ")J.preventDefault(),zZ(!0),P0(J.key)},[i,W,n,kZ,P0,b0,s,j,_0]);return G(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:AY,children:i==="Theme"?z(WZ,{children:[G(iJ,{onThemeSelect:(J)=>{NZ.current=!0,L(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),G(U,{children:G(K,{dimColor:!0,italic:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"select"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):i==="Model"?z(WZ,{children:[G(a0,{initial:BZ,onSelect:(J,X)=>{NZ.current=!0,Bq(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},showFastModeNotice:Y0()?mZ&&SJ(BZ)&&i0():!1}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="TeammateModel"?z(WZ,{children:[G(a0,{initial:H.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(J,X)=>{if(g(null),Q(!1),H.teammateDefaultModel===void 0&&J===null)return;NZ.current=!0,y((A)=>A.teammateDefaultModel===J?A:{...A,teammateDefaultModel:J}),O({...f(),teammateDefaultModel:J}),E((A)=>({...A,teammateDefaultModel:HJ(J)})),S("",{model:J})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="ExternalIncludes"?z(WZ,{children:[G(nJ,{onDone:()=>{g(null),Q(!1)},externalIncludes:JQ(Rq)}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):i==="OutputStyle"?z(WZ,{children:[G(ZJ,{initialStyle:k,onComplete:(J)=>{NZ.current=!0,_(J??U0),g(null),Q(!1),ZZ("localSettings",{outputStyle:J}),S("",{style:J??U0,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="Language"?z(WZ,{children:[G(YJ,{initialLanguage:w,onComplete:(J)=>{NZ.current=!0,u(J),g(null),Q(!1),ZZ("userSettings",{language:J}),S("",{language:J??"default",source:"config_panel"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):i==="EnableAutoUpdates"?G(uZ,{title:"Enable Auto-Updates",onCancel:()=>{g(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:IZ?.type!=="config"?z(WZ,{children:[G(K,{children:IZ?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),IZ?.type==="env"&&z(K,{dimColor:!0,children:["Unset ",IZ.envVar," to re-enable auto-updates."]})]}):G(iZ,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(J)=>{NZ.current=!0,g(null),Q(!1),y((X)=>({...X,autoUpdates:!0})),O({...f(),autoUpdates:!0}),ZZ("userSettings",{autoUpdatesChannel:J,minimumVersion:void 0}),R((X)=>({...X,autoUpdatesChannel:J,minimumVersion:void 0})),S("",{channel:J})}})}):i==="ChannelDowngrade"?G(nq,{currentVersion:"99.0.0",onChoice:(J)=>{if(g(null),Q(!1),J==="cancel")return;NZ.current=!0;let X={autoUpdatesChannel:"stable"};if(J==="stay")X.minimumVersion="99.0.0";ZZ("userSettings",X),R((A)=>({...A,...X})),S("",{channel:"stable",minimum_version_set:J==="stay"})}}):z(U,{flexDirection:"column",gap:1,marginY:N?void 0:1,children:[G(rJ,{query:kZ,isFocused:n&&!W,isTerminalFocused:jZ,cursorOffset:WY,placeholder:"Search settings…"}),G(U,{flexDirection:"column",children:s.length===0?z(K,{dimColor:!0,italic:!0,children:['No settings match "',kZ,'"']}):z(WZ,{children:[kq>0&&z(K,{dimColor:!0,children:[CZ.arrowUp," ",kq," more above"]}),s.slice(o,o+p).map((J,X)=>{let A=o+X;if(J.kind==="spacer")return G(K,{children:" "},J.id);if(J.kind==="header")return z(K,{dimColor:!0,children:[" ",J.label]},J.id);let B=J.item,h=A===j&&!W&&!n;return G(l.Fragment,{children:z(U,{children:[G(U,{width:F0,flexShrink:0,paddingRight:1,children:z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:[h?CZ.pointer:" "," ",B.label]})}),G(U,{children:B.type==="boolean"?z(WZ,{children:[G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()}),HY&&B.id==="thinkingEnabled"&&z(K,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):B.id==="theme"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:JX[B.value.toString()]??B.value.toString()}):B.id==="notifChannel"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:G(QX,{value:B.value.toString()})}):B.id==="defaultPermissionMode"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:MJ(B.value)}):B.id==="autoUpdatesChannel"&&IZ?z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:["disabled"," ",z(K,{dimColor:!0,children:["(",UJ(IZ),")"]})]}):G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()})},h?"selected":"unselected")]})},B.id)}),Iq>0&&z(K,{dimColor:!0,children:[CZ.arrowDown," ",Iq," more below"]})]})}),W?G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"←/→ tab",action:"switch"}),G(PZ,{shortcut:"↓",action:"return"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):n?G(K,{dimColor:!0,children:z(qZ,{children:[G(K,{children:"Type to filter"}),G(PZ,{shortcut:"Enter/↓",action:"select"}),G(PZ,{shortcut:"↑",action:"tabs"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),G(T,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),G(T,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function HJ(q){if(q===void 0)return k0(xJ());if(q===null)return"Default (leader's model)";return k0(q)}function QX(q){let Z=tJ.c(4),{value:Q}=q;switch(Q){case"auto":return"Auto";case"iterm2":{let Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["iTerm2 ",G(K,{dimColor:!0,children:"(OSC 9)"})]}),Z[0]=Y;else Y=Z[0];return Y}case"terminal_bell":{let Y;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Terminal Bell ",G(K,{dimColor:!0,children:"(\\a)"})]}),Z[1]=Y;else Y=Z[1];return Y}case"kitty":{let Y;if(Z[2]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Kitty ",G(K,{dimColor:!0,children:"(OSC 99)"})]}),Z[2]=Y;else Y=Z[2];return Y}case"ghostty":{let Y;if(Z[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Ghostty ",G(K,{dimColor:!0,children:"(OSC 777)"})]}),Z[3]=Y;else Y=Z[3];return Y}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return Q}}var tJ,l,v,JX;var ZQ=r(()=>{SZ();lZ();v0();IJ();mY();EJ();IJ();OJ();vY();nY();I0();_Y();rY();oY();yq();aY();yJ();sY();tY();rq();g0();iq();qJ();XJ();YX();cY();cZ();E0();dJ();M0();eY();dY();gY();hq();tq();DJ();bY();uY();iY();lY();ZX();X0();pY();xY();qX();KJ();x();tJ=d($Z(),1),l=d(FZ(),1),v=d(FZ(),1);JX={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function V0(q){return typeof q==="object"&&q!==null}function AZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function rZ(q){return typeof q==="number"&&Number.isFinite(q)?q:void 0}function t0(q){return typeof q==="boolean"?q:void 0}function e0(q){let Z=rZ(q);if(Z===void 0)return;return new Date(Z*1000).toISOString()}function C0(q){if(!V0(q))return;let Z=rZ(q.used_percent)??rZ(q.usedPercent);if(Z===void 0)return;let Q=rZ(q.window_minutes)??rZ(q.windowDurationMins)??(()=>{let V=rZ(q.limit_window_seconds);return V===void 0?void 0:Math.round(V/60)})(),Y=e0(q.resets_at)??e0(q.resetsAt)??e0(q.reset_at);return{usedPercent:Z,windowMinutes:Q,resetsAt:Y}}function DQ(q){if(!V0(q))return;let Z=t0(q.has_credits)??t0(q.hasCredits)??!1,Q=t0(q.unlimited)??!1,Y=AZ(q.balance);if(!Z&&!Q&&!Y)return;return{hasCredits:Z,unlimited:Q,balance:Y}}function G0(q,Z){if(!V0(q))return;let Q=AZ(q.limit_name)??AZ(q.limitName)??AZ(q.limit_id)??AZ(q.limitId)??Z,Y=C0(q.primary)??C0(q.primary_window),V=C0(q.secondary)??C0(q.secondary_window),W=DQ(q.credits);if(!Y&&!V&&!W)return;return{limitName:Q,primary:Y,secondary:V,credits:W}}function Zq(q,Z="codex"){if(Array.isArray(q))return q.map((Q,Y)=>G0(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!V0(q))return[];return Object.entries(q).map(([Q,Y])=>G0(Y,Q)).filter((Q)=>Q!==void 0)}function VX(q){let Z=AZ(q.plan_type)??AZ(q.planType),Q=[],Y=DQ(q.credits),V=G0(q.rate_limit,"codex");if(V)V.credits??=Y,Q.push(V);else if(Y)Q.push({limitName:"codex",credits:Y});let W=G0(q.code_review_rate_limit,"code review");if(W)Q.push(W);return Q.push(...Zq(q.additional_rate_limits??q.additionalRateLimits,"additional")),{planType:Z,snapshots:Q}}function KX(q){if(Array.isArray(q))return{snapshots:Zq(q)};if(!V0(q))return{snapshots:[]};if("rate_limit"in q||"code_review_rate_limit"in q||"additional_rate_limits"in q||"credits"in q)return VX(q);let Z=q.rate_limits??q.rateLimits??q.rate_limits_by_limit_id??q.rateLimitsByLimitId;if(Z!==void 0)return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Zq(Z)};let Q=G0(q,"codex");return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Q?[Q]:[]}}function oZ(q){if(!q)return q;return q[0].toUpperCase()+q.slice(1)}function YQ(q,Z){if(q===void 0||q<=0)return Z;if(q===10080)return"weekly";if(q%1440===0)return`${q/1440}d`;if(q%60===0)return`${q/60}h`;return`${q}m`}function HX(q){let Z=q?.trim();if(!Z)return;let Q=Number.parseInt(Z,10);if(Number.isFinite(Q)&&`${Q}`===Z&&Q>0)return`${Q}`;let Y=Number.parseFloat(Z);if(Number.isFinite(Y)&&Y>0)return`${Math.round(Y)}`;return}function WX(q){if(!q?.hasCredits)return;if(q.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let Z=HX(q.balance);if(!Z)return;return{kind:"text",label:"Credits",value:`${Z} credits`}}function OQ(q){let Z=[];for(let Q of q){let Y=Q.limitName.trim()||"codex",V=WX(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||V!==void 0))continue;let D=Y.toLowerCase()!=="codex",N=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),L=D&&N===1;if(D&&!L)Z.push({kind:"text",label:`${oZ(Y)} limit`,value:""});if(Q.primary){let M=oZ(YQ(Q.primary.windowMinutes,"5h"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let M=oZ(YQ(Q.secondary.windowMinutes,"weekly"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(V)Z.push(V)}return Z}function FQ(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>oZ(Z.toLowerCase())).join(" ")}function zX(q=KQ){return new URL("/backend-api/wham/usage",q).toString()}async function NQ(){let q=await VQ().catch(async(V)=>{return _Z(`[codex] access token refresh failed before usage fetch: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await GQ()}}),Z=WQ();if(!HQ(Z.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=zQ({storedCredentials:q.credentials});if(!Q.apiKey){let V=XQ()?"":", choose Codex OAuth in /provider",W=Q.authPath?`${V} or place a Codex auth.json at ${Q.authPath}`:V;throw Error(`Codex auth is required. Set CODEX_API_KEY${W}.`)}if(!Q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let Y=await fetch(zX(Z.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q.apiKey}`,"chatgpt-account-id":Q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!Y.ok){let V=await Y.text().catch(()=>"unknown error");throw Error(`Codex usage error ${Y.status}: ${V}`)}return KX(await Y.json())}var PQ=r(()=>{XX();qq();DJ();GX()});function DX({label:q,usedPercent:Z,resetsAt:Q,maxWidth:Y}){let V=Math.max(0,Math.min(100,Z)),W=`${Math.floor(V)}% used`,D=Q?`Resets ${S0(Q,!0,!0)}`:void 0;if(Y>=62)return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:q}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:V/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]}),D?G(K,{dimColor:!0,children:D}):null]});return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),D?z(WZ,{children:[G(K,{children:" "}),z(K,{dimColor:!0,children:["· ",D]})]}):null]}),G(sZ,{ratio:V/100,width:Y,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]})}function OX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function LQ(){let[q,Z]=aZ.useState(null),[Q,Y]=aZ.useState(null),[V,W]=aZ.useState(!0),{columns:D}=RZ(),N=D-2,L=Math.min(N,80),M=AQ.useCallback(async()=>{W(!0),Y(null);try{Z(await NQ())}catch(F){MZ(F),Y(F instanceof Error?F.message:"Failed to load Codex usage")}finally{W(!1)}},[]);if(aZ.useEffect(()=>{M()},[M]),b("settings:retry",()=>{M()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading Codex usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let H=OQ(q.snapshots),O=FQ(q.planType);return z(U,{flexDirection:"column",gap:1,width:"100%",children:[O?z(K,{dimColor:!0,children:["Plan: ",O]}):null,H.length===0?G(K,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,H.map((F,P)=>F.kind==="window"?G(DX,{label:F.label,usedPercent:F.usedPercent,resetsAt:F.resetsAt,maxWidth:L},`${F.label}-${P}`):G(OX,{label:F.label,value:F.value},`${F.label}-${P}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var AQ,aZ;var MQ=r(()=>{X0();SZ();lZ();PQ();Jq();I0();cZ();E0();Qq();x();AQ=d(FZ(),1),aZ=d(FZ(),1)});var K0="https://api.minimax.io/v1",H0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var Yq=()=>{};function fZ(q){return typeof q==="object"&&q!==null}function JZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function Gq(q){if(typeof q==="number"&&Number.isFinite(q))return q;if(typeof q==="string"&&q.trim()){let Z=Number.parseFloat(q);if(Number.isFinite(Z))return Z}return}function h0(q){return Math.max(0,Math.min(100,Math.round(q)))}function FX(q){if(typeof q==="string"){let Y=Date.parse(q);return Number.isNaN(Y)?q:new Date(Y).toISOString()}let Z=Gq(q);if(Z===void 0)return;let Q=Z>1000000000000?Z:Z*1000;return new Date(Q).toISOString()}function NX(q,Z){let Q=Gq(q);if(/remains?_time/i.test(Z)&&Q!==void 0){let Y=Q>604800?Q:Q*1000;return new Date(Date.now()+Y).toISOString()}return FX(q)}function W0(q,Z){for(let Q of Z){let Y=Gq(q[Q]);if(Y!==void 0)return Y}return}function PX(q,Z){for(let Q of Z)if(q[Q]!==void 0)return NX(q[Q],Q);return}function z0(q,Z){return Z.some((Q)=>q[Q]!==void 0)}function UQ(q){return q?q[0].toUpperCase()+q.slice(1):q}function AX(q){if(!q)return"MiniMax";let Z=q.trim();if(!Z)return"MiniMax";if(/[A-Z]/.test(Z))return Z;return Z.split(/[_\s-]+/).filter(Boolean).map((Q)=>UQ(Q.toLowerCase())).join(" ")}function LX(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>UQ(Z.toLowerCase())).join(" ")}function kQ(q,Z){let Q=W0(q,Z.percentKeys),Y=W0(q,Z.remainingPercentKeys),V=W0(q,Z.totalKeys),W=W0(q,Z.remainingKeys),D=W0(q,Z.usedKeys),N=V!==void 0&&D!==void 0?V-D:W,L;if(V!==void 0&&V>0&&D!==void 0)L=h0(D/V*100);else if(V!==void 0&&V>0&&W!==void 0)L=h0((V-W)/V*100);else if(Q!==void 0)L=h0(Q);else if(Y!==void 0)L=h0(100-Y);if(L===void 0)return;return{label:Z.label,usedPercent:L,remaining:N,total:V,resetsAt:PX(q,Z.resetKeys)}}function MX(q){let Z=JZ(q.label)??JZ(q.name)??JZ(q.window_name)??JZ(q.windowName)??"Limit";return kQ(q,{label:Z,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function BX(q){if(z0(q,RX))return!0;return IQ.some((Z)=>z0(q,Z.totalKeys)||z0(q,Z.remainingKeys)||z0(q,Z.usedKeys)||z0(q,Z.percentKeys))}function Xq(q,Z){if(!fZ(q))return;let Q=IQ.map((V)=>kQ(q,V)).filter((V)=>V!==void 0);if(Q.length===0){let V=MX(q);if(V)Q.push(V)}if(Q.length===0)return;return{limitName:JZ(q.limit_name)??JZ(q.limitName)??JZ(q.model_name)??JZ(q.modelName)??JZ(q.name)??Z,windows:Q}}function RQ(q,Z="MiniMax"){if(Array.isArray(q))return q.map((Q,Y)=>Xq(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!fZ(q))return[];if(BX(q)){let Q=Xq(q,Z);return Q?[Q]:[]}return Object.entries(q).map(([Q,Y])=>Xq(Y,Q)).filter((Q)=>Q!==void 0)}function BQ(q=H0,Z){return{availability:"unknown",planType:Z,snapshots:[],message:q}}function Vq(q){if(!fZ(q))return BQ();let Z=LX(JZ(q.plan_type)??JZ(q.planType)??JZ(q.subscription_type)??JZ(q.subscriptionType)??JZ(q.plan_name)??JZ(q.planName)),Y=[q.data,q.result,q.model_remains,q.modelRemains,q.remains,q.usage,q.quotas,q.models,fZ(q.data)?q.data.model_remains:void 0,fZ(q.data)?q.data.modelRemains:void 0,fZ(q.data)?q.data.models:void 0,fZ(q.data)?q.data.quotas:void 0,fZ(q.data)?q.data.remains:void 0].flatMap((W)=>RQ(W)).filter((W,D,N)=>{let L=`${W.limitName}:${W.windows.map((M)=>M.label).join("|")}`;return N.findIndex((M)=>`${M.limitName}:${M.windows.map((H)=>H.label).join("|")}`===L)===D});if(Y.length>0)return{availability:"available",planType:Z,snapshots:Y};let V=RQ(q);if(V.length>0)return{availability:"available",planType:Z,snapshots:V};return BQ(void 0,Z)}function UX(q){if(q.remaining===void 0||q.total===void 0||q.total<=0)return;return`${q.remaining}/${q.total} remaining`}function Kq(q){let Z=[];for(let Q of q){let Y=AX(Q.limitName),V=Y.toLowerCase()!=="minimax",W=V&&Q.windows.length===1;if(V&&!W)Z.push({kind:"text",label:`${Y} quota`,value:""});for(let D of Q.windows)Z.push({kind:"window",label:W?`${Y} ${D.label}`:D.label,usedPercent:D.usedPercent,resetsAt:D.resetsAt,extraSubtext:UX(D)})}return Z}var IQ,RX;var Hq=r(()=>{Yq();IQ=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],RX=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function IX(q){return q.replace(/\/+$/,"")}function EX(q=wZ()?.baseUrl??K0){let Z=q.trim();return Z?IX(Z):K0}function CX(q){let Z=q??wZ()?.baseUrl;if(!Z?.trim())return{baseUrl:K0,usedDefault:!0};return{baseUrl:EX(Z),usedDefault:!1}}function EQ(q){return{availability:"unknown",snapshots:[],message:q}}function SQ(q){let{baseUrl:Z,usedDefault:Q}=CX(q);try{let Y=new URL(`${Z}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}catch{if(Q){let Y=new URL(`${K0}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}throw Error(`MiniMax usage base URL is invalid: ${Z}`)}}async function Wq(){let q=wZ()?.apiKey;if(!q)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let Z=SQ(),Q=[],Y=null;for(let V of Z){let W;try{W=await fetch(V,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q}`,"Content-Type":"application/json","User-Agent":CQ()},signal:AbortSignal.timeout(5000)})}catch(N){_Z(`[minimax] usage request failed for ${V}: ${N instanceof Error?N.message:String(N)}`,{level:"warn"}),Y=N instanceof Error?N:Error(String(N));continue}if(!W.ok){let N=await W.text().catch(()=>"");if([400,401,403,404].includes(W.status)){Q.push({status:W.status,body:N});continue}Y=Error(`MiniMax usage error ${W.status}: ${N||"unknown error"}`);continue}let D=Vq(await W.json());if(D.availability==="available")return D}if(Q.length>0){let V=Q[Q.length-1];return _Z(`[minimax] usage endpoint returned non-fatal status ${V.status}: ${V.body}`,{level:"warn"}),EQ(H0)}if(Y)throw Y;return EQ(H0)}var hQ=r(()=>{EJ();qq();kX();Yq();Hq()});var fQ=r(()=>{Hq();hQ()});function fX(q){let Z=Math.max(1,Math.ceil(q/60000)),Q=Math.floor(Z/1440),Y=Math.floor(Z%1440/60),V=Z%60;if(Q>0)return Y>0?`${Q}d ${Y}h`:`${Q}d`;if(Y>0)return V>0?`${Y}h ${V}m`:`${Y}h`;return`${V}m`}function yX(q,Z){if(!q)return;let Q=Date.parse(q);if(!Number.isFinite(Q))return;let Y=Q-Z;if(Y<=0)return"Resetting now";return`Resets in ${fX(Y)}`}function TX({label:q,usedPercent:Z,resetsAt:Q,extraSubtext:Y,maxWidth:V,nowMs:W}){let D=Math.max(0,Math.min(100,Z)),N=`${Math.floor(D)}% used`,L=yX(Q,W),M=[N,Y].filter((H)=>Boolean(H));return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),L?z(K,{dimColor:!0,children:[" · ",L]}):null]}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:D/100,width:Math.min(hX,Math.max(1,V)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),M.length>0?G(K,{dimColor:!0,children:M.join(" · ")}):null]})]})}function jX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function TQ(){let[q,Z]=yZ.useState(null),[Q,Y]=yZ.useState(null),[V,W]=yZ.useState(!0),[D,N]=yZ.useState(()=>Date.now()),{columns:L}=RZ(),M=L-2,H=Math.min(M,80),O=yQ.useCallback(async()=>{W(!0),Y(null);try{Z(await Wq())}catch(P){MZ(P),Y(P instanceof Error?P.message:"Failed to load MiniMax usage")}finally{W(!1)}},[]);if(yZ.useEffect(()=>{O()},[O]),yZ.useEffect(()=>{let P=setInterval(()=>{N(Date.now())},SX);return()=>clearInterval(P)},[]),b("settings:retry",()=>{O()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading MiniMax usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let F=q.availability==="available"?Kq(q.snapshots):[];return z(U,{flexDirection:"column",gap:1,width:"100%",children:[q.planType?z(K,{dimColor:!0,children:["Plan: ",q.planType]}):null,q.availability==="unknown"?G(K,{dimColor:!0,children:q.message}):F.length===0?G(K,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,F.map((P,R)=>P.kind==="window"?G(TX,{label:P.label,usedPercent:P.usedPercent,resetsAt:P.resetsAt,extraSubtext:P.extraSubtext,maxWidth:H,nowMs:D},`${P.label}-${R}`):G(jX,{label:P.label,value:P.value},`${P.label}-${R}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var yQ,yZ,SX=30000,hX=18;var jQ=r(()=>{X0();SZ();lZ();fQ();I0();cZ();E0();Qq();x();yQ=d(FZ(),1),yZ=d(FZ(),1)});function $Q({providerLabel:q}){return z(U,{flexDirection:"column",gap:1,children:[z(K,{dimColor:!0,children:["Usage details are not currently available for ",q,"."]}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var wQ=r(()=>{SZ();cZ();x()});import{readdir as gQ,readFile as mQ}from"fs/promises";import{join as zq}from"path";async function _Q(q,Z){let Q;try{Q=await mQ(q,"utf-8")}catch(V){if(!Dq(V))_Z(`usageContribution: skip ${q}: ${String(V)}`);return 0}if(Q.length>Oq)return 0;let Y=0;for(let V of Q.split(`
|
|
3
|
-
`)){if(!V)continue;let W;try{W=JSON.parse(V)}catch{continue}if(W.type!=="assistant")continue;if(!W.timestamp)continue;let D=Date.parse(W.timestamp);if(Number.isNaN(D)||D<Z)continue;let N=W.message?.usage;if(!N)continue;Y+=(N.input_tokens??0)+(N.output_tokens??0)+(N.cache_creation_input_tokens??0)+(N.cache_read_input_tokens??0)}return Y}async function pQ(q){let Z;try{Z=await gQ(q,{withFileTypes:!0})}catch(Y){if(Dq(Y))return[];throw Y}let Q=[];for(let Y of Z){let V=zq(q,Y.name);if(Y.isDirectory())Q.push(...await pQ(V));else if(Y.isFile()&&pX.test(Y.name))Q.push(V)}return Q}async function xX(q){let Z=q.replace(/\.jsonl$/,".meta.json");try{let Q=await mQ(Z,"utf-8");return JSON.parse(Q).agentType||"subagent"}catch{return"subagent"}}async function Fq(q){let Z=Date.now()-bX[q],Q={window:q,totalTokens:0,sessionCount:0,subagentHeavyPct:0,agentBreakdown:[]},Y=bQ(),V;try{V=await gQ(Y,{withFileTypes:!0})}catch{return Q}let W=V.filter((O)=>O.isDirectory()).map((O)=>zq(Y,O.name)),D=0,N=0,L=0,M=new Map;for(let O=0;O<W.length;O++){let F=W[O],P=await vQ(F);for(let[R,I]of P){if(I.mtime<Z)continue;let k=I.size>Oq?0:await _Q(I.path,Z),_=0,t=zq(F,R,"subagents");for(let u of await pQ(t)){let m=await _Q(u,Z);if(m<=0)continue;_+=m;let j=await xX(u);M.set(j,(M.get(j)??0)+m)}let w=k+_;if(w<=0)continue;if(L++,D+=w,_/w>vX)N+=w}if(O%10===9)await new Promise((R)=>setImmediate(R))}if(D===0)return Q;let H=[...M.entries()].map(([O,F])=>({agentType:O,tokens:F,pct:F/D*100})).filter((O)=>O.tokens/D>=gX).sort((O,F)=>F.tokens-O.tokens).slice(0,mX);return{window:q,totalTokens:D,sessionCount:L,subagentHeavyPct:N/D*100,agentBreakdown:H}}var bX,vX=0.5,gX=0.05,mX=5,pX;var xQ=r(()=>{qq();$X();wX();_X();bX={day:86400000,week:604800000},pX=/^agent-.*\.jsonl$/});function cQ(q){let{title:Z,totalCost:Q,apiDuration:Y,wallDuration:V,linesAdded:W,linesRemoved:D,modelUsage:N,unknownCost:L,bytesSaved:M}=q,H=Object.entries(N);if(Q===0&&H.length===0&&W===0&&D===0)return null;let O={};for(let[P,R]of H){let I=Pq(P);if(!O[I])O[I]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let k=O[I];k.inputTokens+=R.inputTokens,k.outputTokens+=R.outputTokens,k.cacheReadInputTokens+=R.cacheReadInputTokens,k.cacheCreationInputTokens+=R.cacheCreationInputTokens,k.webSearchRequests+=R.webSearchRequests,k.costUSD+=R.costUSD}let F=Object.entries(O);return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:Z}),z(K,{children:[G(K,{children:"Total cost: "}),G(K,{children:bZ(Q)}),L&&G(K,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),z(K,{children:["Total duration (API): ",D0(Y)]}),z(K,{children:["Total duration (wall): ",D0(V)]}),z(K,{children:["Total code changes: ",W," ",W===1?"line":"lines"," added, ",D," ",D===1?"line":"lines"," removed"]}),M!==void 0&&M>0&&z(K,{children:["Context tokens saved: ~",aQ(M/ZY)," tokens"]}),F.length>0&&G(K,{children:"Usage by model:"}),F.map(([P,R])=>{let I=`${LZ(R.inputTokens)} input, ${LZ(R.outputTokens)} output`;if(R.cacheReadInputTokens>0)I+=`, ${LZ(R.cacheReadInputTokens)} cache read`;if(R.cacheCreationInputTokens>0)I+=`, ${LZ(R.cacheCreationInputTokens)} cache write`;if(R.webSearchRequests>0)I+=`, ${LZ(R.webSearchRequests)} web search`;return I+=` (${bZ(R.costUSD)})`,z(K,{children:[`${P}:`.padStart(21)," ",I]},P)})]})}function dQ(q={}){let Z=q.view??"global",[,Q]=c.useReducer((D)=>D+1,0);c.useEffect(()=>{let D=setInterval(()=>Q(),1000);return()=>clearInterval(D)},[]);let Y=Nq();if(Z==="session"){let D=uQ(),N=oQ(),L=nQ(),M=rQ();return G(cQ,{title:"Current session",totalCost:D,apiDuration:iQ(),wallDuration:lQ(),linesAdded:L,linesRemoved:M,modelUsage:N,unknownCost:Y,bytesSaved:qY()})}let V=Aq();if(!(V.totalCost!==0||Object.keys(V.modelUsage).length>0||V.totalLinesAdded!==0||V.totalLinesRemoved!==0))return null;return z(U,{flexDirection:"column",gap:1,children:[G(cQ,{title:"Project total (all sessions)",totalCost:V.totalCost,apiDuration:V.totalAPIDuration,wallDuration:V.totalDuration,linesAdded:V.totalLinesAdded,linesRemoved:V.totalLinesRemoved,modelUsage:V.modelUsage,unknownCost:Y}),G(K,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function Lq(q={}){if((q.view??"global")==="session")return G(U,{flexDirection:"column",gap:1,width:"100%",children:G(dQ,{view:"session"})});let Q=sQ();if(Q==="firstParty")return G(ZG,{});let Y;if(Q==="codex")Y=G(LQ,{});else if(Q==="minimax")Y=G(TQ,{});else{let V={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[Q]??"this provider";Y=G($Q,{providerLabel:V})}return z(U,{flexDirection:"column",gap:1,width:"100%",children:[G(dQ,{view:"global"}),Y,G(eX,{})]})}function eX(){let[q,Z]=c.useState("day"),[Q,Y]=c.useState(null),[V,W]=c.useState(!0),D=y0.useCallback(async(M)=>{W(!0);try{Y(await Fq(M))}catch(H){MZ(H),Y(null)}finally{W(!1)}},[]);c.useEffect(()=>{D(q)},[D,q]),b("settings:usageDay",()=>Z("day"),{context:"Settings",isActive:!0}),b("settings:usageWeek",()=>Z("week"),{context:"Settings",isActive:!0});let N=q==="day"?"last 24h":"last week",L=Q?.agentBreakdown[0];return z(U,{flexDirection:"column",width:"100%",children:[G(K,{bold:!0,children:"What's driving your token usage?"}),G(K,{dimColor:!0,children:"Approximate, based on local sessions on this machine — does not include other devices."}),G(K,{dimColor:!0,children:`${N[0].toUpperCase()}${N.slice(1)} · a characteristic of your usage, not a full breakdown`}),V&&!Q?G(K,{dimColor:!0,children:"Analyzing local sessions…"}):!Q||Q.totalTokens===0?G(K,{dimColor:!0,children:`No local session activity in the ${N}.`}):z(U,{flexDirection:"column",marginTop:1,children:[Q.subagentHeavyPct>=5&&z(U,{flexDirection:"column",children:[G(K,{children:`${Math.round(Q.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`}),G(K,{dimColor:!0,children:QY})]}),L&&G(U,{flexDirection:"column",marginTop:Q.subagentHeavyPct>=5?1:0,children:G(K,{children:`${Math.round(L.pct)}% of your token usage came from subagents under '${L.agentType}'.`})}),Q.agentBreakdown.length>0&&z(U,{flexDirection:"column",marginTop:1,children:[z(K,{children:[G(K,{children:"Subagents".padEnd(24)}),G(K,{children:"% of usage"})]}),Q.agentBreakdown.map((M)=>z(K,{children:[G(K,{children:M.agentType.padEnd(24)}),G(K,{children:`${Math.round(M.pct)}%`})]},M.agentType))]})]}),G(K,{dimColor:!0,children:"d to day · w to week"})]})}function ZG(){let q=xZ(),Z=RZ(),{columns:Q}=Z,{rows:Y}=T0(Z),V=Math.min(Math.max(20,Q-2),80),W=Math.min(50,Math.max(20,V-14)),D=Math.max(15,Math.min(Math.floor(Y*0.8),30)),N=Math.max(5,D-3),[L,M]=c.useState(null),[H,O]=c.useState(null),[F,P]=c.useState(!0),[R,I]=c.useState("day"),[k,_]=c.useState(null),[t,w]=c.useState(!0),[u,m]=c.useState(0),[,j]=c.useReducer((E)=>E+1,0),QZ=y0.useCallback(async()=>{P(!0),O(null);try{M(await JY())}catch(E){MZ(E),O(E?.message||"Failed to load usage data")}finally{P(!1)}},[]),o=y0.useCallback(async(E)=>{w(!0);try{_(await Fq(E))}catch($){MZ($),_(null)}finally{w(!1)}},[]);c.useEffect(()=>{QZ()},[QZ]),c.useEffect(()=>{o(R)},[o,R]),c.useEffect(()=>{let E=setInterval(()=>j(),1000);return()=>clearInterval(E)},[]);let YZ=()=>m((E)=>Math.max(0,E-1)),n=()=>m((E)=>E+1),zZ=()=>m((E)=>Math.max(0,E-N)),jZ=()=>m((E)=>E+N),e={context:"Settings",isActive:!0};b("select:previous",YZ,e),b("select:next",n,e),b("scroll:lineUp",YZ,e),b("scroll:lineDown",n,e),b("scroll:pageUp",zZ,e),b("scroll:pageDown",jZ,e),b("settings:usageDay",()=>I("day"),e),b("settings:usageWeek",()=>I("week"),e),b("settings:retry",()=>{QZ(),o(R)},{context:"Settings",isActive:!!H&&!F});let vZ=(E)=>KZ.bold(E),XZ=(E)=>KZ.dim(E),F0=(E)=>{let $=Math.min(1,Math.max(0,E)),a=Math.floor($*W),VZ="█".repeat(a),HZ=" ".repeat(Math.max(0,W-a));return f0(VZ,q.rate_limit_fill,"foreground")+f0(HZ,q.rate_limit_empty,"background")},C=[],p=Aq();C.push(vZ("Project total (all sessions)")),C.push("Total cost: "+bZ(p.totalCost)+(Nq()?XZ(" (costs may be inaccurate)"):"")),C.push("Total duration (API): "+D0(p.totalAPIDuration)),C.push("Total duration (wall): "+D0(p.totalDuration)),C.push(`Total code changes: ${p.totalLinesAdded} ${p.totalLinesAdded===1?"line":"lines"} added, ${p.totalLinesRemoved} ${p.totalLinesRemoved===1?"line":"lines"} removed`);let BZ={};for(let[E,$]of Object.entries(p.modelUsage)){let a=Pq(E),VZ=BZ[a]??={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};VZ.inputTokens+=$.inputTokens,VZ.outputTokens+=$.outputTokens,VZ.cacheReadInputTokens+=$.cacheReadInputTokens,VZ.cacheCreationInputTokens+=$.cacheCreationInputTokens,VZ.webSearchRequests+=$.webSearchRequests,VZ.costUSD+=$.costUSD}let N0=Object.entries(BZ);if(N0.length>0)C.push("Usage by model:");for(let[E,$]of N0){let a=`${LZ($.inputTokens)} input, ${LZ($.outputTokens)} output`;if($.cacheReadInputTokens>0)a+=`, ${LZ($.cacheReadInputTokens)} cache read`;if($.cacheCreationInputTokens>0)a+=`, ${LZ($.cacheCreationInputTokens)} cache write`;if($.webSearchRequests>0)a+=`, ${LZ($.webSearchRequests)} web search`;a+=` (${bZ($.costUSD)})`,C.push(`${`${E}:`.padStart(21)} ${a}`)}if(C.push(XZ("Aggregated across all sessions in this project — includes the current session live.")),C.push(""),F&&!L)C.push(XZ("Loading usage data…"));else if(H)C.push(f0(`Could not load rate-limit data: ${H}`,q.error,"foreground")),C.push(XZ("(cost/usage totals above are unaffected) · r to retry"));else if(L){let E=tQ(),$=E==="max"||E==="team"||E===null,a=[["Current session",L.five_hour],["Current week (all models)",L.seven_day],...$?[["Current week (Sonnet only)",L.seven_day_sonnet]]:[]];if(!a.some(([,eZ])=>eZ))C.push(XZ("/usage is only available for subscription plans."));let VZ=!0;for(let[eZ,UZ]of a){if(!UZ||UZ.utilization===null)continue;if(!VZ)C.push("");if(VZ=!1,C.push(vZ(eZ)),C.push(`${F0(UZ.utilization/100)} ${Math.floor(UZ.utilization)}% used`),UZ.resets_at)C.push(XZ(`Resets ${S0(UZ.resets_at,!0,!0)}`))}let HZ=L.extra_usage;if(HZ?.is_enabled&&typeof HZ.used_credits==="number"&&typeof HZ.utilization==="number"&&HZ.monthly_limit!=null)C.push(""),C.push(vZ("Extra usage")),C.push(`${F0(HZ.utilization/100)} ${Math.floor(HZ.utilization)}% used`),C.push(XZ(`${bZ(HZ.used_credits/100,2)} / ${bZ(HZ.monthly_limit/100,2)} spent`))}C.push("");let gZ=R==="day"?"last 24h":"last week";if(C.push(vZ("What's driving your token usage?")),C.push(XZ("Approximate, based on local sessions on this machine — does not include other devices.")),C.push(XZ(`${gZ[0].toUpperCase()}${gZ.slice(1)} · a characteristic of your usage, not a full breakdown`)),t&&!k)C.push(XZ("Analyzing local sessions…"));else if(!k||k.totalTokens===0)C.push(XZ(`No local session activity in the ${gZ}.`));else{if(k.subagentHeavyPct>=5)C.push(""),C.push(`${Math.round(k.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`),C.push(XZ(QY));let E=k.agentBreakdown[0];if(E)C.push(""),C.push(`${Math.round(E.pct)}% of your token usage came from subagents under '${E.agentType}'.`);if(k.agentBreakdown.length>0){C.push(""),C.push("Subagents".padEnd(24)+"% of usage");for(let $ of k.agentBreakdown)C.push($.agentType.padEnd(24)+`${Math.round($.pct)}%`)}}let mZ=Math.max(0,C.length-N);if(u>mZ)m(mZ);let pZ=Math.min(u,mZ),j0=C.slice(pZ,pZ+N),GZ=pZ,tZ=C.length-(pZ+j0.length);return z(U,{flexDirection:"column",width:"100%",children:[G(K,{dimColor:!0,children:GZ>0?`↑ ${GZ} more above`:" "}),G(eQ,{lines:j0,width:V}),G(K,{dimColor:!0,children:tZ>0?`↓ ${tZ} more below`:" "}),G(K,{dimColor:!0,children:"↑↓ scroll · d to day · w to week · Esc to close"})]})}var tX,y0,c,QY="Each subagent runs its own requests. Be deliberate about spawning them — and consider a cheaper model for simpler subagents.";var YY=r(()=>{oX();aX();yJ();Jq();nX();lX();uX();OJ();X0();SZ();iX();M0();lZ();rX();Jq();I0();dX();cX();cZ();E0();Qq();sX();MQ();jQ();wQ();xQ();x();tX=d($Z(),1),y0=d(FZ(),1),c=d(FZ(),1)});function N9(q){let Z=KY.c(25),{onClose:Q,context:Y,defaultTab:V}=q,[W,D]=TZ.useState(V),[N,L]=TZ.useState(!1),[M,H]=TZ.useState(!1),[O,F]=TZ.useState(!1),P=dZ(),{rows:R}=T0(RZ()),I=P?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[k]=TZ.useState(QG);XY();let _;if(Z[0]!==Q||Z[1]!==N)_=()=>{if(N)return;Q("Status dialog dismissed",{display:"system"})},Z[0]=Q,Z[1]=N,Z[2]=_;else _=Z[2];let t=_,w=!N&&!(W==="Config"&&M)&&!(W==="Gates"&&O),u;if(Z[3]!==w)u={context:"Settings",isActive:w},Z[3]=w,Z[4]=u;else u=Z[4];b("confirm:no",t,u);let m;if(Z[5]!==Y||Z[6]!==k)m=G(O0,{title:"Status",children:G(cq,{context:Y,diagnosticsPromise:k})},"status"),Z[5]=Y,Z[6]=k,Z[7]=m;else m=Z[7];let j;if(Z[8]!==I||Z[9]!==Y||Z[10]!==Q)j=G(O0,{title:"Config",children:G(TZ.Suspense,{fallback:null,children:G(eJ,{context:Y,onClose:Q,setTabsHidden:L,onIsSearchModeChange:H,contentHeight:I})})},"config"),Z[8]=I,Z[9]=Y,Z[10]=Q,Z[11]=j;else j=Z[11];let QZ;if(Z[12]===Symbol.for("react.memo_cache_sentinel"))QZ=[G(O0,{title:"Usage",children:G(Lq,{view:"global"})},"usage"),G(O0,{title:"Session",children:G(Lq,{view:"session"})},"session")],Z[12]=QZ;else QZ=Z[12];let o;if(Z[13]!==I)o=[],Z[13]=I,Z[14]=o;else o=Z[14];let YZ;if(Z[15]!==m||Z[16]!==j||Z[17]!==o)YZ=[m,j,...QZ,...o],Z[15]=m,Z[16]=j,Z[17]=o,Z[18]=YZ;else YZ=Z[18];let n=YZ,zZ=V!=="Config"&&V!=="Gates",jZ=N||P?void 0:I,e;if(Z[19]!==W||Z[20]!==jZ||Z[21]!==zZ||Z[22]!==n||Z[23]!==N)e=G(GY,{color:"permission",children:G(VY,{color:"permission",selectedTab:W,onTabChange:D,hidden:N,initialHeaderFocused:zZ,contentHeight:jZ,children:n})}),Z[19]=W,Z[20]=jZ,Z[21]=zZ,Z[22]=n,Z[23]=N,Z[24]=e;else e=Z[24];return e}function QG(){return xq().catch(YG)}function YG(){return[]}var KY,TZ;var XG=r(()=>{lZ();qG();X0();M0();JG();dJ();dq();ZQ();YY();x();KY=d($Z(),1),TZ=d(FZ(),1)});
|
|
4
|
-
export{N9 as Rg,XG as Sg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BG as I,DG as _,ko as T,lo as j}from"./cli-1.1.22-zmt5pksy.mjs";import{DZ as S,H1 as g,a1 as P,c1 as J,g1 as C}from"./cli-1.1.22-261r450y.mjs";import{d4 as G,e4 as H,f4 as R}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as v}from"./cli-1.1.22-c07z4d74.mjs";import{ifa as B,wfa as h}from"./cli-1.1.22-3jyydg5h.mjs";import{Zja as W,aka as D}from"./cli-1.1.22-s5qhs3ds.mjs";import{pta as f,tta as p}from"./cli-1.1.22-w09pyst3.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
|
|
2
|
-
export{l as Tg,r as Ug};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{hX as H,jX as M}from"./cli-1.1.22-7xwf9v6n.mjs";import{Uda as B,Zda as D,bba as y,kba as K,kea as L}from"./cli-1.1.22-3jyydg5h.mjs";import{tta as J}from"./cli-1.1.22-w09pyst3.mjs";async function Z(){let b=await H();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let x=D()?.remote?.defaultEnvironmentId,z=b.find((q)=>q.kind!=="bridge")??b[0],A=null;if(x){let q=b.find((k)=>k.environment_id===x);if(q){z=q;for(let k=y.length-1;k>=0;k--){let w=y[k];if(!w||w==="flagSettings")continue;if(B(w)?.remote?.defaultEnvironmentId===x){A=w;break}}}}return{availableEnvironments:b,selectedEnvironment:z,selectedEnvironmentSource:A}}var P=J(()=>{K();L();M()});
|
|
2
|
-
export{Z as Zb,P as _b};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{uc as y2,vc as iq}from"./cli-1.1.22-df9q1a85.mjs";import{Bc as aq,wc as h4,xc as i0,yc as h0,zc as X2}from"./cli-1.1.22-nxv6yayj.mjs";import{Cc as _0,Fc as nq}from"./cli-1.1.22-rsp3340r.mjs";import{$p as lz,Aq as Z2,BG as S,CG as a2,Cq as Sz,Cr as N2,DG as pq,Dr as xq,SG as Vz,TG as Yq,UG as Xz,VG as yz,WG as Kz,XG as Wq,Yp as gz,Zp as xz,_p as cz,aq as $2,ay as V2,bq as G0,cq as L4,cy as lq,dq as pz,eq as vz,fq as Oq,gq as I4,hx as G2,iq as tz,ix as Y2,jq as J2,jx as W2,kx as m2,lq as rz,lx as cq,oI as o4,oq as jz,pI as i2,pq as bq,qq as Oz,rG as L0,rI as vq,rq as Uz,sG as s4,sI as dq,sq as Iz,tq as Pz,uq as J0,vq as b4,wq as Hq,xq as P4,zq as Tz}from"./cli-1.1.22-zmt5pksy.mjs";import{BY as a,DY as fq,PY as R2,QY as gq}from"./cli-1.1.22-bv3a0vaa.mjs";import{H1 as l4,a1 as w,c1 as N}from"./cli-1.1.22-261r450y.mjs";import{I2 as p4,J2 as v4,K2 as d4,L2 as n4,M2 as a4,N2 as n2,Q2 as i4,U2 as t4,V2 as Q2,W2 as r4}from"./cli-1.1.22-s6e60cqc.mjs";import{c4 as N0,d4 as $,e4 as y,f4 as x0}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as U0}from"./cli-1.1.22-c07z4d74.mjs";import{F4 as p0,G4 as Fz}from"./cli-1.1.22-0553cn3c.mjs";import{O6 as a0,W4 as c4,Y4 as d2,f7 as Cq}from"./cli-1.1.22-q622p3vr.mjs";import{$fa as Gz,Afa as t0,Bfa as n,Dfa as v,Efa as n0,Ega as Aq,Gfa as P0,Hfa as w4,Ifa as R0,Jfa as Q0,Nfa as $0,Ofa as B4,Qfa as j4,Ufa as x4,Zfa as X4,_fa as Nz,aga as c0,bga as y4,cga as Yz,dga as V4,ega as Wz,fga as mz,gga as Gq,hga as O4,iga as Hz,jga as U4,lga as Lz,nga as q2,oga as r0,x_ as F0,xfa as z2,y_ as Sq,yfa as M0,zfa as kq}from"./cli-1.1.22-3jyydg5h.mjs";import{Pla as t,Vla as l0}from"./cli-1.1.22-265a4qpa.mjs";import{pta as O0,qta as Tq,tta as d}from"./cli-1.1.22-w09pyst3.mjs";function r2(z,q=G4,R){let J=n().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(J){if(!Q0(J.id,{provider:"openai",name:J.name,baseUrl:R||J.baseUrl,model:J.model||q,apiKey:z,extras:{...J.extras,githubToken:z}}))return{mode:"failed"};return $0(J.id),{mode:"updated"}}if(!R0({provider:"openai",name:"GitHub Copilot",baseUrl:R||t2,model:q,apiKey:z,extras:{githubToken:z}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function e4({onDone:z,onBack:q,onChangeAPIKey:R}){let J=i4()?.trim()?"already-authed":"menu",[G,m]=i.useState(J),[_,b]=i.useState(null),[M,K]=i.useState(""),[L,P]=i.useState(0),[U,k]=i.useState(null),h=i.useCallback(async(f,D=G4,Z0,I)=>{let p=t4(f,Z0,I?.enterpriseDomain);if(!p.success){b(p.warning??"Could not save token to secure storage."),m("error");return}if(r2(f,D,I?.baseUrl).mode==="failed"){b("Could not save the GitHub Copilot provider profile."),m("error");return}c4(),R?.(),z("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[R,z]),X=i.useCallback(async(f)=>{m("device-busy"),b(null),k(null);try{let D=await v4({domain:f});k({user_code:D.user_code,verification_uri:D.verification_uri}),await n4(D.verification_uri);let Z0=await d4(D.device_code,{initialInterval:D.interval,timeoutSeconds:D.expires_in,domain:f}),I=await a4(Z0,{domain:f});await h(I.token,G4,Z0,{baseUrl:I.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:f})}catch(D){b(D instanceof Error?D.message:String(D)),m("error")}},[h]);if(G==="already-authed")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot"}),$(N,{children:"You are already signed in to GitHub Copilot."}),$(N,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),$(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"back"}],onChange:(D)=>{if(D==="sign-in-again"){X();return}if(D==="enterprise"){m("enterprise-domain");return}if(q){q();return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="enterprise-domain")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Enterprise sign-in"}),$(N,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:">"}),$(L0,{value:M,onChange:K,onSubmit:()=>{let D=p4(M);if(!D){X();return}X(D)},onExit:()=>m(J),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:L,onChangeCursorOffset:P})]}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(G==="error"&&_)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",children:_}),$(S,{options:[{label:q?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(D)=>{if(D==="back"){if(q){q();return}m("menu"),b(null);return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="device-busy")return y(w,{flexDirection:"column",gap:1,children:[$(N,{children:"GitHub Copilot sign-in"}),U?y(N0,{children:[y(N,{children:["Enter code ",$(N,{bold:!0,children:U.user_code})," at"," ",U.verification_uri]}),$(N,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):$(N,{dimColor:!0,children:"Requesting device code from GitHub..."}),$(o4,{})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot setup"}),$(N,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),$(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(f)=>{if(f==="cancel"){if(q){q();return}z("GitHub onboard cancelled",{display:"system"});return}if(f==="enterprise"){m("enterprise-domain");return}X()}})]})}var i,G4="github:copilot",t2="https://api.githubcopilot.com";var zz=d(()=>{a2();i2();s4();l4();n2();r4();d2();x4();x0();i=O0(U0(),1)});function Rz(z){return[z.name,z.family??"",...z.families??[],z.parameterSize??"",z.quantizationLevel??""].join(" ").toLowerCase()}function I0(z,q){return q.some((R)=>z.includes(R))}function zq(z){return!I0(Rz(z),qz)}function qq(z){return z.find(zq)??null}function Y4(z){let R=`${z.parameterSize??""} ${z.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(R?.[1])return Number(R[1]);if(typeof z.sizeBytes==="number"&&z.sizeBytes>0)return Number((z.sizeBytes/1e9).toFixed(1));return null}function Rq(z){return(z.quantizationLevel??z.name).toLowerCase()}function Qq(z,q,R){if(z===null)return R.push("unknown size"),0;if(q==="latency"){if(z<=4)return R.push("tiny model for low latency"),32;if(z<=8)return R.push("small model for fast responses"),26;if(z<=14)return R.push("mid-sized model with acceptable latency"),16;if(z<=24)return R.push("larger model may be slower"),8;return R.push("large model likely slower locally"),z<=40?0:-8}if(q==="coding"){if(z>=7&&z<=14)return R.push("strong coding size tier"),24;if(z>14&&z<=34)return R.push("large coding-capable size tier"),28;if(z>34)return R.push("very large model with higher quality potential"),18;return R.push("compact model may trade off coding depth"),12}if(z>=7&&z<=14)return R.push("great balanced size tier"),26;if(z>=3&&z<7)return R.push("compact balanced size tier"),18;if(z>14&&z<=24)return R.push("high quality balanced size tier"),20;if(z>24)return R.push("large model for quality-first usage"),10;return R.push("very small model for general usage"),8}function $q(z,q,R){let J=Rq(z);if(J.includes("q4"))return R.push("efficient Q4 quantization"),q==="latency"?8:4;if(J.includes("q5"))return R.push("balanced Q5 quantization"),q==="latency"?6:5;if(J.includes("q8"))return R.push("higher quality Q8 quantization"),q==="latency"?2:5;return 0}function Jq(z,q,R){if(q.score!==z.score)return q.score-z.score;let J=Y4(z)??Number.POSITIVE_INFINITY,G=Y4(q)??Number.POSITIVE_INFINITY;if(R==="latency")return J-G;if(R==="coding")return G-J;let m=14;return Math.abs(J-m)-Math.abs(G-m)}function W4(z,q){return z.map((R)=>{let J=Rz(R),G=[],m=0;if(I0(J,qz))m-=40,G.push("not a chat-first model");if(I0(J,s2))m+=q==="coding"?24:q==="balanced"?10:4,G.push("coding-oriented model family");if(I0(J,o2))m+=q==="latency"?4:q==="coding"?6:8,G.push("strong general-purpose model family");if(I0(J,e2))m+=q==="latency"?2:6,G.push("chat/instruct tuned");if(J.includes("vision")||J.includes("vl"))m-=2,G.push("vision model adds extra overhead");m+=Qq(Y4(R),q,G),m+=$q(R,q,G);let _=G.slice(0,3).join(", ");return{...R,score:m,reasons:G,summary:_}}).sort((R,J)=>Jq(R,J,q))}function Qz(z,q){return qq(W4(z,q))}var s2,o2,e2,qz;var $z=d(()=>{s2=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],o2=["llama","qwen","mistral","gemma","phi","deepseek"],e2=["instruct","chat","assistant"],qz=["embed","embedding","rerank","bge","whisper"]});function Nq(z){let q=z.toLowerCase();return Zq.some((R)=>q.includes(R))}function m4(z){try{let q=new URL(z);if(q.username)q.username="redacted";if(q.password)q.password="redacted";for(let R of q.searchParams.keys())if(Nq(R))q.searchParams.set(R,"redacted");return q.toString()}catch{return z.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Zq;var Jz=d(()=>{Zq=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function mq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URL(`${X4}/oauth/authorize`);return R.searchParams.append("response_type","code"),R.searchParams.append("client_id",y4()),R.searchParams.append("redirect_uri",q),R.searchParams.append("scope",Nz),R.searchParams.append("code_challenge",z.codeChallenge),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("id_token_add_organizations","true"),R.searchParams.append("codex_cli_simplified_flow","true"),R.searchParams.append("state",z.state),R.searchParams.append("originator",Gz),R.toString()}function Vq(){return`<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Codex Login Complete</title>
|
|
6
|
-
<style>
|
|
7
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
-
p { margin: 0 0 10px; }
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<h1>Codex login complete</h1>
|
|
14
|
-
<p>You can return to Claudin now.</p>
|
|
15
|
-
<p>Claudin will finish activating your new Codex OAuth login.</p>
|
|
16
|
-
</body>
|
|
17
|
-
</html>`}function Xq(z){return`<!doctype html>
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<head>
|
|
20
|
-
<meta charset="utf-8" />
|
|
21
|
-
<title>Codex Login Failed</title>
|
|
22
|
-
<style>
|
|
23
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
-
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
-
p { margin: 0 0 10px; }
|
|
26
|
-
</style>
|
|
27
|
-
</head>
|
|
28
|
-
<body>
|
|
29
|
-
<h1>Codex login failed</h1>
|
|
30
|
-
<p>${Wz(z)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function Zz(){return`<!doctype html>
|
|
34
|
-
<html lang="en">
|
|
35
|
-
<head>
|
|
36
|
-
<meta charset="utf-8" />
|
|
37
|
-
<title>Codex Login Cancelled</title>
|
|
38
|
-
<style>
|
|
39
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
-
p { margin: 0 0 10px; }
|
|
42
|
-
</style>
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<h1>Codex login cancelled</h1>
|
|
46
|
-
<p>You can close this window and retry in Claudin.</p>
|
|
47
|
-
</body>
|
|
48
|
-
</html>`}async function yq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URLSearchParams({grant_type:"authorization_code",code:z.authorizationCode,redirect_uri:q,client_id:y4(),code_verifier:z.codeVerifier}),J=await fetch(`${X4}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:R,signal:z.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(K.trim()?`Codex OAuth token exchange failed (${J.status}): ${K.trim()}`:`Codex OAuth token exchange failed with status ${J.status}.`)}let G=await J.json(),m=c0(G.access_token),_=c0(G.refresh_token);if(!m||!_)throw Error("Codex OAuth completed, but the token response was missing credentials.");let b=c0(G.id_token);return{apiKey:b?await mz(b).catch(()=>{return}):void 0,accessToken:m,refreshToken:_,idToken:b,accountId:V4(b)??V4(m)}}class K4{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(z){let q=Xz(),R=Yz(),J=new Vz("/auth/callback");this.authCodeListener=J,this.port=null;try{let G=await J.start(R);this.port=G;let m=Kz(),_=await yz(q),b=mq({port:G,codeChallenge:_,state:m});try{let M=await J.waitForAuthorization(m,async()=>{await z(b)}),K=new AbortController;this.tokenExchangeAbortController=K;let L;try{L=await yq({authorizationCode:M,codeVerifier:q,port:G,signal:K.signal})}finally{if(this.tokenExchangeAbortController===K)this.tokenExchangeAbortController=null}if(this.authCodeListener!==J)throw this.buildCancellationError();return J.handleSuccessRedirect([],(P)=>{P.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),P.end(Vq())}),L}catch(M){let K=this.authCodeListener===J?M:this.buildCancellationError();if(J.hasPendingResponse()){let L=K instanceof Error&&K.message==="Codex OAuth flow was cancelled.";J.handleErrorRedirect((P)=>{P.writeHead(L?200:400,{"Content-Type":"text/html; charset=utf-8"}),P.end(L?Zz():Xq(K instanceof Error?K.message:String(K)))})}throw K}finally{this.cleanup()}}catch(G){let m=G instanceof Error?G.message:String(G);if(m.includes("EADDRINUSE")||m.includes(String(R)))throw Error(`Codex OAuth needs localhost:${R} for its callback. Close any app already using that port and try again.`);throw G}}cleanup(){let z=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(z),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end(Zz())});this.authCodeListener?.cancelPendingAuthorization(z),this.authCodeListener=null,this.port=null}}var bz=d(()=>{Yq();Wq();Gq()});function Kq(){return new K4}function Mz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Kq,J=z.deps?.openBrowser??p0,G=z.deps?.saveCodexCredentials??Hz,m=z.deps?.isBareMode??t,[_,b]=v0.useState({state:"starting"});return v0.useEffect(()=>{if(m()){b({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startOAuthFlow(async(L)=>{if(M)return;b({state:"waiting",authUrl:L,browserOpened:null});let P=await J(L);if(M)return;b({state:"waiting",authUrl:L,browserOpened:P})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=G({apiKey:L.apiKey,accessToken:L.accessToken,refreshToken:L.refreshToken,idToken:L.idToken,accountId:L.accountId,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;b({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,m,q,J,G]),_}var v0;var _z=d(()=>{bz();Fz();Lz();l0();v0=O0(U0(),1)});function Ez(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":jz()}}function Bz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function _q(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function wq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(Uz,{method:"POST",headers:Ez(),body:new URLSearchParams({client_id:b4(),scope:Pz}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`xAI device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=J0(G.device_code),_=J0(G.user_code),b=J0(G.verification_uri);if(!m||!_||!b)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:J0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:Dz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:hz/1000}}async function Bq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??_q,G=q?.now??(()=>Date.now()),m=Bz(z.expires_in,Dz),_=G()+m,b=Math.max(Bz(z.interval,hz),Lq);while(G()<_){if(q?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let M=await R(Oz,{method:"POST",headers:Ez(),body:new URLSearchParams({grant_type:Iz,client_id:b4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=J0(U.access_token),h=J0(U.refresh_token);if(!k||!h)throw Error("xAI OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:3600;return{accessToken:k,refreshToken:h,idToken:J0(U.id_token),expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Fq,Mq),await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(K.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`xAI device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("xAI device authorization timed out.")}class H4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await wq({signal:q.signal});return await z(R),await Bq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var hz=5000,Lq=1000,Fq=5000,Mq=60000,Dz=300000,wz=3000;var uz=d(()=>{bq();Hq()});function jq(){return new H4}function kz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??jq,J=z.deps?.saveXaiCredentials??Tz,G=z.deps?.isBareMode??t,[m,_]=d0.useState({state:"starting"});return d0.useEffect(()=>{if(G()){_({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let b=!1,M=R();return M.startDeviceFlow(async(K)=>{if(b)return;_({state:"waiting",userCode:K.user_code,verificationUri:K.verification_uri,verificationUriComplete:K.verification_uri_complete})}).then(async(K)=>{if(b)return;await q(K,(P)=>{let U=J({accessToken:K.accessToken,refreshToken:K.refreshToken,idToken:K.idToken,expiresAt:K.expiresAt,profileId:P?.profileId});if(!U.success)throw Error(U.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((K)=>{if(b)return;_({state:"error",message:K instanceof Error?K.message:String(K)})}),()=>{b=!0,M.cleanup()}},[R,G,q,J]),m}var d0;var Az=d(()=>{uz();l0();Sz();d0=O0(U0(),1)});async function az(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":lz,...await vz()}}function fz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function hq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function Dq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(gz,{method:"POST",headers:await az(),body:new URLSearchParams({client_id:L4()}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`Kimi device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=G0(G.device_code),_=G0(G.user_code),b=G0(G.verification_uri);if(!m||!_||!b)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:G0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:nz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:dz/1000}}async function Eq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??hq,G=q?.now??(()=>Date.now()),m=fz(z.expires_in,nz),_=G()+m,b=Math.max(fz(z.interval,dz),Uq);while(G()<_){if(q?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let M=await R(xz,{method:"POST",headers:await az(),body:new URLSearchParams({grant_type:cz,client_id:L4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=G0(U.access_token),h=G0(U.refresh_token);if(!k||!h)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:900;return{accessToken:k,refreshToken:h,expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Iq,Pq),await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(K.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`Kimi device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("Kimi device authorization timed out.")}class F4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await Dq({signal:q.signal});return await z(R),await Eq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var dz=5000,Uq=1000,Iq=5000,Pq=60000,nz=1800000,Cz=3000;var iz=d(()=>{Oq();pz()});function uq(){return new F4}function sz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??uq,J=z.deps?.saveKimiCredentials??tz,G=z.deps?.isBareMode??t,[m,_]=Y0.useState({state:"starting"}),b=Y0.useRef(!1);return Y0.useEffect(()=>{if(G()){_({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startDeviceFlow(async(L)=>{if(M)return;_({state:"waiting",userCode:L.user_code,verificationUri:L.verification_uri,verificationUriComplete:L.verification_uri_complete})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=J({accessToken:L.accessToken,refreshToken:L.refreshToken,expiresAt:L.expiresAt,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;_({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,G,q,J]),Y0.useEffect(()=>{if(m.state!=="waiting")return;if(b.current)return;let M=m.verificationUriComplete??m.verificationUri;if(!M)return;b.current=!0,p0(M).catch(()=>{})},[m]),m}var Y0;var oz=d(()=>{iz();Fz();l0();rz();Y0=O0(U0(),1)});function R1(z){return{name:z.name,baseUrl:z.baseUrl,model:z.model,apiKey:z.apiKey??""}}function Q1(z){let q=t0(z);return{name:q.name,baseUrl:q.baseUrl,model:q.model,apiKey:q.apiKey??""}}function $1(z){let q={};for(let R of z.split(/\r?\n/)){let J=R.trim();if(!J)continue;let G=J.indexOf(":");if(G<=0)continue;let m=J.slice(0,G).trim(),_=J.slice(G+1).trim();if(m&&_)q[m]=_}return q}function J1(z){if(!z)return"";return Object.entries(z).map(([q,R])=>`${q}: ${R}`).join(`
|
|
49
|
-
`)}function Z1(z,q){let R={},J=z.awsRegion?.trim();if(J)R.awsRegion=J;let G=z.gcpProject?.trim();if(G)R.gcpProject=G;let m=z.gcpRegion?.trim();if(m)R.gcpRegion=m;let _=z.azureResource?.trim();if(_)R.azureResource=_;let b=$1(q);if(Object.keys(b).length>0)R.customHeaders=b;return Object.keys(R).length>0?R:void 0}function G1(z,q){let R=q?" (active)":"",J=z.apiKey?"key set":"no key",G=z.provider==="anthropic"?"anthropic":"openai-compatible",m=z2(z.model),_=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${G} · ${z.baseUrl} · ${_} · ${J}${R}`}function Y1(z,q){if(z.state==="unreachable")return`Could not reach Atomic Chat at ${m4(q)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(z.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function W1(z,q){if(z.state==="unreachable")return`Could not reach Ollama at ${m4(q)}. Start Ollama first, or enter the endpoint manually.`;if(z.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(z.state==="generation_failed"){let R=z.probeModel??"the selected model",J=z.detail?` Details: ${z.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${R}.${J} Run "ollama run ${R}" once and retry, or enter details manually.`}return""}function _4(z,q){if(!q)return;return z.find((R)=>R.id===q)}function ez(z,q){return Boolean(z&&q&&z.id===q)}function m1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===D4&&!R.apiKey)}function V1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===r0&&!R.apiKey)}function X1(z,q){return z.find((R)=>R.provider==="anthropic"&&R.baseUrl===q&&!R.apiKey)}function y1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=Mz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Codex OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Codex OAuth"}),$(N,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),J.state==="starting"?$(N,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):J.browserOpened===!1?y(N0,{children:[$(N,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),$(N,{children:J.authUrl})]}):J.browserOpened===!0?y(N0,{children:[$(N,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),$(N,{children:J.authUrl})]}):$(N,{dimColor:!0,children:"Opening your browser..."}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function K1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=kz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"xAI OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function b1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=sz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from Kimi..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function P8({mode:z,onDone:q}){let R=V2(),[J,G]=H.useState([]),[m,_]=H.useState(),[b,M]=H.useState(),[K,L]=H.useState(!1),[P,U]=H.useState(),k=H.useRef(0),[h,X]=H.useState(z==="first-run"?"select-preset":"menu"),[m0,f]=H.useState(null),[D,Z0]=H.useState("openai"),[I,p]=H.useState(()=>Q1("ollama")),[D0,E0]=H.useState({}),[E4,s0]=H.useState(""),[K2,b2]=H.useState(0),[H2,L2]=H.useState(0),[o0,u4]=H.useState(null),[V0,w0]=H.useState(0),[X0,r]=H.useState(0),[F2,s]=H.useState(0),[T4,u]=H.useState(),[y0,B]=H.useState(),[M2,_2]=H.useState(),[S4,u0]=H.useState(!1),[B0,j0]=H.useState(),[o,T0]=H.useState({state:"idle"}),[e,S0]=H.useState({state:"idle"}),[z0,e0]=H.useState({state:"idle"}),[w2,B2]=H.useState(!0),[j2,l]=H.useState(!1),z4=H.useRef(!1),[q4,R4]=H.useState(()=>h0()),[k4,O2]=H.useState(()=>X2());H.useEffect(()=>{queueMicrotask(()=>{let Q=n(),Z=v()?.id;G(Q),_(Z),M(n0()),U(w4()),L(P0()),B2(!1)})},[]);let K0=W0[X0]??W0[0],k0=K0.key,U2=I[k0],Q4=J.length>0,A0=Q4,A4=H.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...q4?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:P?`Currently: ${J.find((Q)=>Q.id===P)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!A0},{value:"activate-project",label:"Set active provider (Project)",description:b?`Currently: ${J.find((Q)=>Q.id===b)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!A0},...K?[{value:"clear-project-override",label:"Clear project provider override",description:b?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!Q4},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!A0},...S4?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[A0,Q4,S4,q4,P,b,J]),$4=H.useCallback(()=>{if(t()){k.current+=1,u0(!1),j0(void 0);return}let Q=++k.current;(async()=>{let Z=await O4();if(Q!==k.current)return;u0(Boolean(Z?.apiKey||Z?.accessToken||Z?.refreshToken||Z?.idToken)),j0(Z?.profileId)})()},[]);H.useEffect(()=>{return $4(),()=>{k.current+=1}},[$4]),H.useEffect(()=>{if(h!=="select-ollama-model")return;let Q=!1;return T0({state:"loading"}),(async()=>{let Z=await m2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)T0({state:"unavailable",message:W1(Z,I.baseUrl)});return}let Y=W4(Z.models,"balanced"),W=Qz(Z.models,"balanced");if(!Q)T0({state:"ready",defaultValue:W?.name??Y[0]?.name,options:Y.map((V)=>({label:V.name,value:V.name,description:V.summary}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-atomic-chat-model")return;let Q=!1;return S0({state:"loading"}),(async()=>{let Z=await W2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)S0({state:"unavailable",message:Y1(Z,I.baseUrl)});return}if(!Q)S0({state:"ready",defaultValue:Z.models[0],options:Z.models.map((Y)=>({label:Y,value:Y}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-openai-model")return;let Q=!1;return e0({state:"loading"}),(async()=>{let Z=await G2({baseUrl:I.baseUrl,apiKey:I.apiKey||void 0});if(Q)return;if(!Z||Z.length===0){e0({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:Y,defaultValue:W}=Y2(Z,I.model);e0({state:"ready",options:Y,defaultValue:W})})(),()=>{Q=!0}},[I.baseUrl,I.apiKey,h]);function A(){if(z4.current)return;z4.current=!0,queueMicrotask(()=>{let Q=n();G(Q),_(v()?.id),M(n0()),U(w4()),L(P0()),$4(),z4.current=!1})}function b0(){return null}function J4(Q){if(Q.activationWarning)return`${Q.prefix}. Saved for next startup. Warning: ${Q.warnings.join("; ")}.`;if(Q.warnings.length>0)return`${Q.prefix}. Claudin switched to it for this session with warnings: ${Q.warnings.join("; ")}.`;return`${Q.prefix}. Claudin switched to it for this session.`}async function Z4(Q){if(Q?.accessToken&&Q.accountId)return null;let Z=await O4();if(!Z)return"stored Codex OAuth credentials could not be loaded";if(!Z.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function C4(){N2()}async function I2(Q){let Z="provider";l(!0),u("Activating provider...");try{await new Promise((q0)=>queueMicrotask(q0));let Y=P0(),W=$0(Q);if(!W){B("Could not change active provider."),l(!1),O();return}let V=Y?v()??W:W,F=M0(V.model)||a0();if(!Y)R((q0)=>({...q0,mainLoopModel:F,mainLoopModelForSession:null}));Z=W.name;let j=b0(),E=ez(W,B0),x=E?await Z4():null;A();let c=Y&&V.id!==W.id?` (project override still active — this project keeps using ${V.name}; use "Clear project provider override" to apply the new default here)`:"",C=E?J4({prefix:`Active provider: ${W.name}${c}`,activationWarning:x,warnings:[x,j?`could not clear startup provider override (${j})`:null].filter((q0)=>Boolean(q0))}):j?`Active provider: ${W.name}${c}. Warning: could not clear startup provider override (${j}).`:`Active provider: ${W.name}${c}`;u(C),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:F,message:`Provider switched to ${W.name} (${F})`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish activating ${Z}: ${W}`),O()}}async function P2(){l(!0),u("Clearing project provider override...");try{await new Promise((Z)=>queueMicrotask(Z)),B4(null),A();let Q=v();if(Q){let Z=M0(Q.model)||a0();_0(),R((Y)=>({...Y,mainLoopModel:Z,mainLoopModelForSession:null})),u(`Project override cleared. Using global default: ${Q.name}.`),l(!1),q({action:"activated",activeProfileId:Q.id,activeProviderName:Q.name,activeProviderModel:Z,message:`Project override cleared — using ${Q.name} (${Z})`}),O()}else u("Project provider override cleared. No global default set."),l(!1),q({action:"saved",message:"Project provider override cleared. No global default set."}),O()}catch(Q){A(),u(void 0),l(!1);let Z=Q instanceof Error?Q.message:String(Q);B(`Could not clear project provider override: ${Z}`),O()}}async function h2(Q){let Z="provider";l(!0),u("Setting provider for this project...");try{await new Promise((C)=>queueMicrotask(C));let Y=n0(),W=B4(Q);if(!W){B("Could not set project provider override."),l(!1),O();return}let V=M0(W.model)||a0();if(Y===W.id)_0();R((C)=>({...C,mainLoopModel:V,mainLoopModelForSession:null})),Z=W.name;let F=b0(),j=ez(W,B0),E=j?await Z4():null;A();let x=`Active provider for this project: ${W.name}. Other projects keep the global default.`,c=j?J4({prefix:x,activationWarning:E,warnings:[E,F?`could not clear startup provider override (${F})`:null].filter((C)=>Boolean(C))}):F?`${x} Warning: could not clear startup provider override (${F}).`:x;u(c),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:V,message:`Provider switched to ${W.name} (${V}) for this project`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish setting ${Z} for this project: ${W}`),O()}}function O(){_2("done"),X("menu")}function C0(Q){q({action:"cancelled",message:Q})}function f4(Q){let Z=t0(Q),Y={name:Z.name,baseUrl:Z.baseUrl,model:Z.model,apiKey:Z.apiKey??""};if(f(null),Z0(Z.provider??"openai"),p(Y),E0({}),s0(""),u4(Q),r(0),w0(0),s(Y.name.length),B(void 0),Q==="ollama"){T0({state:"loading"}),X("select-ollama-model");return}if(Q==="atomic-chat"){S0({state:"loading"}),X("select-atomic-chat-model");return}if(Q==="anthropic"){X("anthropic-auth-choice");return}if(Q==="bedrock"||Q==="vertex"||Q==="foundry"){X("cloud-extras");return}X("form")}function D2(Q){let Z=J.find((W)=>W.id===Q);if(!Z)return;let Y=R1(Z);f(Q),Z0(Z.provider??"openai"),p(Y),E0({awsRegion:Z.extras?.awsRegion,gcpProject:Z.extras?.gcpProject,gcpRegion:Z.extras?.gcpRegion,azureResource:Z.extras?.azureResource}),s0(J1(Z.extras?.customHeaders)),u4(null),r(0),w0(0),s(Y.name.length),B(void 0),X("form")}function f0(Q=I){let Z=Z1(D0,E4),Y={provider:D,name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:Q.apiKey,extras:Z},W=m0?Q0(m0,Y):R0(Y,{makeActive:!0});if(!W){B("Could not save provider. Fill all required fields.");return}let V=v()?.id===W.id;if(V)_0(),R((c)=>({...c,mainLoopModel:M0(W.model),mainLoopModelForSession:null}));let F=V?b0():null;A();let j=!m0&&P0()&&!V,E=j?v()?.name??"override target":null,x=m0?`Updated provider: ${W.name}`:j?`Added provider: ${W.name} (now global default — project keeps using ${E}; use "Clear project provider override" to apply here)`:`Added provider: ${W.name} (now active)`;if(u(F?`${x}. Warning: could not clear startup provider override (${F}).`:x),z==="first-run"){q({action:"saved",activeProfileId:W.id,message:`Provider configured: ${W.name}`});return}f(null),r(0),B(void 0),O()}function E2(){if(e.state==="loading"||e.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),$(N,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(e.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Atomic Chat setup"}),$(N,{dimColor:!0,children:e.message}),$(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),$(N,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),$(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function u2(){if(o.state==="loading"||o.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Ollama"}),$(N,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(o.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Ollama setup"}),$(N,{dimColor:!0,children:o.message}),$(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Ollama model"}),$(N,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),$(S,{options:o.options,defaultValue:o.defaultValue,defaultFocusValue:o.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,o.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function H0(Q){let Z=W0.findIndex((Y)=>Y.key===Q);r(Z<0?0:Z),s(I[Q].length),B(void 0),X("form")}function T2(){if(z0.state==="loading"||z0.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Fetching models"}),$(N,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),$(N,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(z0.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:z0.message}),$(S,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(Y)=>{if(Y==="manual"){H0("model");return}H0("apiKey")},onCancel:()=>H0("apiKey"),visibleOptionCount:2})]});let Q=[...z0.options,{value:M4,label:"Enter a model id manually",description:"Type an id the provider did not list"}],Z=z0.defaultValue??M4;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),$(S,{options:Q,defaultValue:Z,defaultFocusValue:Z,inlineDescriptions:!0,visibleOptionCount:Math.min(8,Q.length),onChange:(Y)=>{if(Y===M4){H0("model");return}let W={...I,model:Y};p(W),g4(W)},onCancel:()=>H0("apiKey")}),$(N,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function g4(Q){if(o0==="anthropic"||o0==="custom"){p(Q),X("custom-headers");return}f0(Q)}function S2(Q){let Z=Q.trim();if(!K0.optional&&Z.length===0){B(`${K0.label} is required.`);return}let Y={...I,[k0]:Z};if(p(Y),B(void 0),X0<W0.length-1){let W=X0+1,V=W0[W]?.key??"name";if(V==="model"&&!tq.has(D)&&Y.baseUrl.trim().length>0){X("select-openai-model");return}r(W),s(Y[V].length);return}g4(Y)}function k2(){if(B(void 0),X0>0){let Q=X0-1,Z=W0[Q]?.key??"name";r(Q),s(I[Z].length);return}if(z==="first-run"){X("select-preset");return}O()}a("confirm:no",k2,{context:"Settings",isActive:h==="form"}),a("confirm:no",()=>H0("model"),{context:"Settings",isActive:h==="select-openai-model"&&(z0.state==="loading"||z0.state==="idle")});function A2(){if(B(void 0),V0>0){w0(V0-1);return}X("select-preset")}a("confirm:no",A2,{context:"Settings",isActive:h==="cloud-extras"}),a("confirm:no",()=>X("form"),{context:"Settings",isActive:h==="custom-headers"}),a("confirm:no",()=>X("select-preset"),{context:"Settings",isActive:h==="anthropic-auth-choice"||h==="anthropic-oauth"||h==="kimi-auth-choice"}),a("confirm:no",()=>X("kimi-auth-choice"),{context:"Settings",isActive:h==="kimi-oauth"});function C2(){let Q=!t(),Z=[...q4?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...Q?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...z==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:z==="first-run"?"Set up provider":"Choose provider preset"}),$(N,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),$(S,{options:Z,onChange:(Y)=>{if(Y==="skip"){C0("Provider setup skipped");return}if(Y==="codex-oauth"){X("codex-oauth");return}if(Y==="xai-oauth"){X("xai-oauth");return}if(Y==="moonshotai"){X("kimi-auth-choice");return}if(Y==="github-onboard"){X("github-onboard");return}if(Y==="import-legacy"){(async()=>{let W=await h4({force:!0});R4(h0()),A();let V=i0(W);if(W.errors.length>0){B(V);return}let F=v();if(z==="first-run"&&F){q({action:"saved",activeProfileId:F.id,activeProviderName:F.name,activeProviderModel:F.model,message:V});return}if(u(V),B(void 0),z==="manage")O()})();return}f4(Y)},onCancel:()=>{if(z==="first-run"){C0("Provider setup skipped");return}O()},visibleOptionCount:Math.min(13,Z.length)})]})}function f2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),$(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){X("anthropic-oauth");return}if(Q==="apiKey"){X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function g2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),$(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){X("kimi-oauth");return}if(Q==="apiKey"){f4("moonshotai");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function x2(){let Q=(dq(),Tq(vq)).ConsoleOAuthFlow;return $(w,{flexDirection:"column",gap:1,children:$(Q,{mode:"login",onDone:()=>{let Z=t0("anthropic"),Y={provider:"anthropic",name:Z.name,baseUrl:Z.baseUrl,model:Z.model},W=X1(n(),Z.baseUrl),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("OAuth completed, but the Anthropic profile could not be saved."),X("select-preset");return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("OAuth completed, but the Anthropic profile could not be set as the startup provider."),X("select-preset");return}let j=`Anthropic OAuth configured: ${F.name}`;if(A(),z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}})})}function c2(){let Q=o0;if(Q!=="bedrock"&&Q!=="vertex"&&Q!=="foundry")return null;let Z=N1[Q],Y=Z[V0]??Z[0],W=D0[Y.key]??"";function V(F){let j=F.trim();if(j.length===0){B(`${Y.label} is required.`);return}let E={...D0,[Y.key]:j};if(E0(E),B(void 0),V0<Z.length-1){w0(V0+1);return}w0(0),X("form")}return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:`${Q==="bedrock"?"AWS Bedrock":Q==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),$(N,{dimColor:!0,children:Y.helpText}),y(N,{dimColor:!0,children:["Step ",V0+1," of ",Z.length,": ",Y.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:W,onChange:(F)=>E0((j)=>({...j,[Y.key]:F})),onSubmit:V,focus:!0,showCursor:!0,placeholder:`${Y.placeholder}${F0.ellipsis}`,columns:80,cursorOffset:K2,onChangeCursorOffset:b2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function l2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(N,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",$(N,{children:"Header: Value"}),". Leave empty to skip."]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:E4,onChange:s0,onSubmit:()=>f0(I),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:H2,onChangeCursorOffset:L2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function p2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:m0?"Edit provider profile":"Create provider profile"}),$(N,{dimColor:!0,children:K0.helpText}),y(N,{dimColor:!0,children:["Provider type:"," ",D==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(N,{dimColor:!0,children:["Step ",X0+1," of ",W0.length,": ",K0.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:U2,onChange:(Q)=>p((Z)=>({...Z,[k0]:Q})),onSubmit:S2,focus:!0,showCursor:!0,placeholder:`${K0.placeholder}${F0.ellipsis}`,mask:k0==="apiKey"?"*":void 0,columns:80,cursorOffset:F2,onChangeCursorOffset:s})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function v2(){let Q=J.length>0,Z=Q;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Provider manager"}),$(N,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),T4&&$(N,{children:T4}),$(w,{flexDirection:"column",children:J.length===0?$(N,{dimColor:!0,children:"No provider profiles configured yet."}):J.map((Y)=>y(N,{dimColor:!0,children:["- ",Y.name,": ",G1(Y,Y.id===m)]},Y.id))}),$(S,{options:A4,onChange:(Y)=>{switch(B(void 0),Y){case"add":X("select-preset");break;case"import-legacy":{(async()=>{let W=await h4({force:!0});if(R4(h0()),A(),W.errors.length>0)B(i0(W));else u(i0(W))})();break}case"activate":if(Z)X("select-active");break;case"activate-project":if(Z)X("select-active-project");break;case"clear-project-override":P2();break;case"edit":if(Q)X("select-edit");break;case"delete":if(Z)X("select-delete");break;case"logout-codex-oauth":{let W=U4();if(!W.success){B(W.warning??"Could not clear Codex OAuth credentials.");break}u0(!1),j0(void 0);let V=_4(n(),B0),F=null;if(V){let j=j4(V.id);if(!j.removed){B("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),A();break}C4(),F=j.activeProfileId?b0():null}A(),u(F?`Codex OAuth logged out. Warning: could not clear startup provider override (${F}).`:"Codex OAuth logged out.");break}default:C0("Provider manager closed");break}},onCancel:()=>C0("Provider manager closed"),defaultFocusValue:M2,visibleOptionCount:A4.length})]})}function g0(Q,Z,Y){let W=J.map((V)=>{let F=[];if(V.id===m)F.push("active");if(b&&V.id===b)F.push("this project");if(P&&V.id===P)F.push("global default");let j=F.length>0?` (${F.join(", ")})`:"";return{value:V.id,label:`${V.name}${j}`,description:`${V.provider==="anthropic"?"anthropic":"openai-compatible"} · ${V.baseUrl} · ${V.model}`}});if(W.length===0)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(N,{dimColor:!0,children:Z}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>O(),onCancel:()=>O(),visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(S,{options:W,onChange:Y,onCancel:()=>O(),visibleOptionCount:Math.min(10,Math.max(2,W.length))})]})}let T;switch(h){case"select-preset":T=C2();break;case"select-ollama-model":T=u2();break;case"select-openai-model":T=T2();break;case"select-atomic-chat-model":T=E2();break;case"codex-oauth":T=$(y1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:rq,baseUrl:q2,model:sq,apiKey:""},W=_4(n(),B0),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Codex OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Codex OAuth login finished, but the provider could not be set as the startup provider."),O();return}Z({profileId:V.id});let j=b0(),E=await Z4(Q);u0(!0),j0(V.id),A();let x=[E,j?`could not clear startup provider override (${j})`:null].filter((C)=>Boolean(C)),c=J4({prefix:"Codex OAuth configured",activationWarning:E,warnings:x});if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:c});return}u(c),B(void 0),O()}});break;case"xai-oauth":T=$(K1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:oq,baseUrl:r0,model:eq,apiKey:""},W=V1(n(),P4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("xAI OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("xAI OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="xAI / Grok configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"kimi-auth-choice":T=g2();break;case"kimi-oauth":T=$(b1,{onBack:()=>X("kimi-auth-choice"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:z1,baseUrl:D4,model:q1,apiKey:""},W=m1(n(),I4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Kimi Code OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="Kimi Code configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"github-onboard":T=$(e4,{onDone:(Q)=>{if(Q)u(Q),B(void 0);A(),O()},onBack:()=>X("select-preset"),onChangeAPIKey:A});break;case"anthropic-auth-choice":T=f2();break;case"anthropic-oauth":T=x2();break;case"cloud-extras":T=c2();break;case"custom-headers":T=l2();break;case"form":T=p2();break;case"select-active":T=g0("Set active provider (Global)","No providers available. Add one first.",(Q)=>{I2(Q)});break;case"select-active-project":T=g0("Set active provider (Project)","No providers available. Add one first.",(Q)=>{h2(Q)});break;case"select-edit":T=g0("Edit provider","No providers available. Add one first.",(Q)=>{D2(Q)});break;case"select-delete":T=g0("Delete provider","No providers available. Add one first.",(Q)=>{let Z=J.find((C)=>C.id===Q),Y=Z?.provider==="openai"&&Z?.extras?.githubToken!==void 0,W=_4(J,B0)?.id===Q,V=P4()?.profileId,F=Z?.provider==="openai"&&Z.baseUrl===r0&&!Z.apiKey&&V===Q,j=I4()?.profileId,E=Z?.provider==="openai"&&Z.baseUrl===D4&&!Z.apiKey&&j===Q,x=v()?.id===Q,c=j4(Q);if(!c.removed)B("Could not delete provider.");else{let C=[];if(W){let g=U4();if(!g.success)C.push(g.warning??"could not clear Codex OAuth credentials");else j0(void 0);C4()}if(Y){let g=Q2();if(!g.success)C.push(g.warning??"could not clear GitHub Copilot token")}if(F){let g=Z2();if(!g.success)C.push(g.warning??"could not clear xAI OAuth credentials")}if(E){let g=J2();if(!g.success)C.push(g.warning??"could not clear Kimi Code OAuth credentials")}let q0=c.activeProfileId?b0():null;if(q0)C.push(`could not clear startup provider override (${q0})`);if(A(),x){let g=v();if(g)_0(),R((N4)=>({...N4,mainLoopModel:M0(g.model),mainLoopModelForSession:null}));else _0(),R((N4)=>({...N4,mainLoopModel:null,mainLoopModelForSession:null}))}u(C.length>0?`Provider deleted. Warning: ${C.join("; ")}.`:"Provider deleted")}O()});break;case"menu":default:T=v2();break}return y(R2,{color:"permission",children:[$(y2,{enabled:k4,onDismiss:(Q)=>{R4(h0()),O2(!1),A();let Z=v();if(Q==="migrated"&&z==="first-run"&&Z)q({action:"saved",activeProfileId:Z.id,activeProviderName:Z.name,activeProviderModel:Z.model})}}),k4?null:w2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Loading providers..."}),$(N,{dimColor:!0,children:"Reading provider profiles from disk."})]}):j2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Activating provider..."}),$(N,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):T]})}var H,W0,M4="\x00__manual__",tq,rq="Codex OAuth",sq="codexplan",oq="xAI / Grok (OAuth)",eq="grok-4",z1="Moonshot AI",q1,D4="https://api.kimi.com/coding/v1",N1;var H1=d(()=>{Sq();zz();Aq();l4();fq();lq();nq();Lz();l0();kq();Cq();xq();x4();r4();cq();$z();Jz();pq();gq();iq();s4();_z();Az();oz();Sz();rz();pz();aq();x0();H=O0(U0(),1),W0=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],tq=new Set(["anthropic","bedrock","vertex","foundry"]),q1=$2;N1={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
|
|
50
|
-
export{m4 as pc,Jz as qc,$1 as rc,P8 as sc,H1 as tc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$c as z,ad as K}from"./cli-1.1.22-jdz4rqbp.mjs";import{PK as w,RK as J}from"./cli-1.1.22-zmt5pksy.mjs";import{g4 as H}from"./cli-1.1.22-c07z4d74.mjs";import{pta as E,tta as G}from"./cli-1.1.22-w09pyst3.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
|
|
2
|
-
export{V as Xc,N as Yc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$x as C,cy as X}from"./cli-1.1.22-zmt5pksy.mjs";import{g4 as W}from"./cli-1.1.22-c07z4d74.mjs";import{N6 as I,_6 as J,f7 as V}from"./cli-1.1.22-q622p3vr.mjs";import{Tha as H,mia as T}from"./cli-1.1.22-dpqknw7z.mjs";import{pta as P,tta as Q}from"./cli-1.1.22-w09pyst3.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
|
|
2
|
-
export{v as dd,Y as ed};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$x as S,ay as Pq,cy as uq,ko as Hq,lo as _q}from"./cli-1.1.22-zmt5pksy.mjs";import{CY as Yq,DY as jq}from"./cli-1.1.22-bv3a0vaa.mjs";import{$0 as Cq,DZ as n,H1 as a,JZ as o,KZ as Oq,_0 as M,a1 as G,c1 as W,g1 as kq}from"./cli-1.1.22-261r450y.mjs";import{c4 as Kq,d4 as V,e4 as H,f4 as j}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as Aq}from"./cli-1.1.22-c07z4d74.mjs";import{$5 as Vq,X5 as Qq,Z5 as g,_5 as u,b6 as T,e6 as Wq,g6 as Xq,o6 as Zq,p6 as hq,u6 as r,x6 as $,y6 as Dq}from"./cli-1.1.22-q622p3vr.mjs";import{k9 as l,l9 as Bq}from"./cli-1.1.22-yegp0d0j.mjs";import{Qba as f,Wda as Jq,bfa as s,fca as Nq,kea as Iq,wfa as Rq}from"./cli-1.1.22-3jyydg5h.mjs";import{rha as zq,zha as Lq}from"./cli-1.1.22-erbhk4p7.mjs";import{Zja as m,aka as Uq}from"./cli-1.1.22-s5qhs3ds.mjs";import{pta as x,tta as i}from"./cli-1.1.22-w09pyst3.mjs";function e(z){let q=t.c(2),{cooldown:J}=z;if(J){let X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=V(W,{color:"promptBorder",dimColor:!0,children:f}),q[0]=X;else X=q[0];return X}let Q;if(q[1]===Symbol.for("react.memo_cache_sentinel"))Q=V(W,{color:"fastMode",children:f}),q[1]=Q;else Q=q[1];return Q}function _(z=!0,q=!1){if(!z)return f;let J=o(s().theme);if(q)return l.dim(M("promptBorder",J)(f));return M("fastMode",J)(f)}var t;var qq=i(()=>{Bq();Nq();a();Rq();Oq();Cq();j();t=x(n(),1)});function b(z,q){if(Xq(),Jq("userSettings",{fastMode:z?!0:void 0}),z)q((J)=>{let Q=!T(J.mainLoopModel);return{...J,...Q?{mainLoopModel:Vq(),mainLoopModelForSession:null}:{},fastMode:!0}});else q((J)=>({...J,fastMode:!1}))}function mq(z){let q=wq.c(30),{onDone:J,unavailableReason:Q}=z,X=S(Fq),k=S(vq),Y=Pq(),[Z,fq]=yq.useState(k??!1),B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=Wq(),q[0]=B;else B=q[0];let N=B,d=N.status==="cooldown",K=Q!==null,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=$(r(!0)),q[1]=R;else R=q[1];let p=R,O;if(q[2]!==Z||q[3]!==K||q[4]!==X||q[5]!==J||q[6]!==Y)O=function(){if(K)return;if(b(Z,Y),m("",{enabled:Z,source:"picker"}),Z){let F=_(Z),Gq=!T(X)?` · model set to ${u}`:"";J(`${F} Fast mode ON${Gq} · ${p}`)}else Y(cq),J("Fast mode OFF")},q[2]=Z,q[3]=K,q[4]=X,q[5]=J,q[6]=Y,q[7]=O;else O=q[7];let c=O,C;if(q[8]!==k||q[9]!==K||q[10]!==J||q[11]!==Y)C=function(){if(K){if(k)b(!1,Y);J("Fast mode OFF",{display:"system"});return}let F=k?`${_()} Kept Fast mode ON`:"Kept Fast mode OFF";J(F,{display:"system"})},q[8]=k,q[9]=K,q[10]=J,q[11]=Y,q[12]=C;else C=q[12];let v=C,U;if(q[13]!==K)U=function(){if(K)return;fq(Tq)},q[13]=K,q[14]=U;else U=q[14];let P=U,L;if(q[15]!==c||q[16]!==P)L={"confirm:yes":c,"confirm:nextField":P,"confirm:next":P,"confirm:previous":P,"confirm:cycleMode":P,"confirm:toggle":P},q[15]=c,q[16]=P,q[17]=L;else L=q[17];let I;if(q[18]===Symbol.for("react.memo_cache_sentinel"))I={context:"Confirmation"},q[18]=I;else I=q[18];Yq(L,I);let h;if(q[19]===Symbol.for("react.memo_cache_sentinel"))h=H(W,{children:[V(e,{cooldown:d})," Fast mode (research preview)"]}),q[19]=h;else h=q[19];let Eq=h,w;if(q[20]!==K)w=(E)=>E.pending?H(W,{children:["Press ",E.keyName," again to exit"]}):K?V(W,{children:"Esc to cancel"}):V(W,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),q[20]=K,q[21]=w;else w=q[21];let y;if(q[22]!==Z||q[23]!==Q)y=Q?V(G,{marginLeft:2,children:V(W,{color:"error",children:Q})}):H(Kq,{children:[V(G,{flexDirection:"column",gap:0,marginLeft:2,children:H(G,{flexDirection:"row",gap:2,children:[V(W,{bold:!0,children:"Fast mode"}),V(W,{color:Z?"fastMode":void 0,bold:Z,children:Z?"ON ":"OFF"}),V(W,{dimColor:!0,children:p})]})}),d&&N.status==="cooldown"&&V(G,{marginLeft:2,children:H(W,{color:"warning",children:[N.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",zq(N.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),q[22]=Z,q[23]=Q,q[24]=y;else y=q[24];let D;if(q[25]===Symbol.for("react.memo_cache_sentinel"))D=H(W,{dimColor:!0,children:["Learn more:"," ",V(kq,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),q[25]=D;else D=q[25];let A;if(q[26]!==v||q[27]!==y||q[28]!==w)A=H(Hq,{title:Eq,subtitle:`High-speed mode for ${u}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:v,color:"fastMode",inputGuide:w,children:[y,D]}),q[26]=v,q[27]=y,q[28]=w,q[29]=A;else A=q[29];return A}function Tq(z){return!z}function cq(z){return{...z,fastMode:!1}}function vq(z){return z.fastMode}function Fq(z){return z.mainLoopModel}async function Mq(z,q,J){let Q=g();if(Q)return`Fast mode unavailable: ${Q}`;let{mainLoopModel:X}=q();if(b(z,J),m("",{enabled:z,source:"shortcut"}),z){let k=_(!0),Y=!T(X)?` · model set to ${u}`:"",Z=$(r(!0));return`${k} Fast mode ON${Y} · ${Z}`}else return"Fast mode OFF"}async function Qz(z,q,J){if(!Qq())return null;await Zq();let Q=J?.trim().toLowerCase();if(Q==="on"||Q==="off"){let k=await Mq(Q==="on",q.getAppState,q.setAppState);return z(k),null}let X=g();return m("",{unavailable_reason:X??""}),V(mq,{onDone:z,unavailableReason:X})}var wq,yq;var xq=i(()=>{_q();qq();a();jq();Uq();uq();hq();Lq();Dq();Iq();j();wq=x(n(),1),yq=x(Aq(),1)});
|
|
2
|
-
export{_ as fe,qq as ge,mq as he,Qz as ie,xq as je};
|