@claudiolabs/claudio 0.1.14 → 0.2.0
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-0.2.0-g1wqt0s3.mjs +1 -0
- package/dist/chunks/App-0.2.0-ntfv12g0.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.2.0-2ymsvey5.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.2.0-8jec5v9r.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.2.0-xvmknjn1.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.2.0-1cpe3m5c.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.2.0-851aysqd.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.2.0-v4515qqc.mjs +1 -0
- package/dist/chunks/{DiffDialog-0.1.14-wtx2wmbs.mjs → DiffDialog-0.2.0-kyhr5jh0.mjs} +1 -1
- package/dist/chunks/Doctor-0.2.0-ck3enc4g.mjs +1 -0
- package/dist/chunks/Grove-0.2.0-79c6g758.mjs +1 -0
- package/dist/chunks/ITermBackend-0.2.0-ez3ahe49.mjs +1 -0
- package/dist/chunks/InProcessTransport-0.2.0-9d5e65zk.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.2.0-mfrg36s6.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.2.0-n08wkb0d.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.2.0-9anh130m.mjs +1 -0
- package/dist/chunks/Onboarding-0.2.0-2468pvay.mjs +1 -0
- package/dist/chunks/ProviderManager-0.2.0-cjpn5dkk.mjs +1 -0
- package/dist/chunks/REPL-0.2.0-q3fd5jfy.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.2.0-3ff000x5.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.2.0-b51pr6s3.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.2.0-c3znpb7p.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.2.0-5wckmrvx.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.2.0-wdc9sxcv.mjs +1 -0
- package/dist/chunks/{TmuxBackend-0.1.14-175xkeyy.mjs → TmuxBackend-0.2.0-mkbxpe3a.mjs} +1 -1
- package/dist/chunks/ToolSearchTool-0.2.0-k7dvhq3e.mjs +1 -0
- package/dist/chunks/TrustDialog-0.2.0-xywdgnw5.mjs +1 -0
- package/dist/chunks/activeProvider-0.2.0-6yja1haw.mjs +1 -0
- package/dist/chunks/add-dir-0.2.0-qg5z82ke.mjs +1 -0
- package/dist/chunks/agents-0.2.0-2j995rg8.mjs +3 -0
- package/dist/chunks/agents-0.2.0-mzww8vhq.mjs +110 -0
- package/dist/chunks/api-0.2.0-rfc17a1j.mjs +1 -0
- package/dist/chunks/asciicast-0.2.0-25ban1yy.mjs +1 -0
- package/dist/chunks/assistant-0.2.0-wt3sz6f5.mjs +1 -0
- package/dist/chunks/auth-0.2.0-p1v8yq4y.mjs +1 -0
- package/dist/chunks/auth-0.2.0-sh12qb2q.mjs +1 -0
- package/dist/chunks/{autoMode-0.1.14-jxse6h16.mjs → autoMode-0.2.0-vzqmqetr.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.2.0-8d72paf3.mjs +1 -0
- package/dist/chunks/branch-0.2.0-vhf49enf.mjs +4 -0
- package/dist/chunks/bridgePointer-0.2.0-br2r89v9.mjs +1 -0
- package/dist/chunks/{btw-0.1.14-j1cexrtn.mjs → btw-0.2.0-qtwstg74.mjs} +1 -1
- package/dist/chunks/{buddy-0.1.14-r4nmfbke.mjs → buddy-0.2.0-5a9wzpm1.mjs} +1 -1
- package/dist/chunks/cacache-0.2.0-nps3what.mjs +1 -0
- package/dist/chunks/{cache-probe-0.1.14-zfb6aw4f.mjs → cache-probe-0.2.0-9d3hfar7.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.14-15eahew3.mjs → cacheStats-0.2.0-rbr7a1xq.mjs} +1 -1
- package/dist/chunks/caches-0.2.0-jsvyz7k9.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.2.0-ca7jbnc4.mjs +1 -0
- package/dist/chunks/claudemd-0.2.0-yt6b83v9.mjs +1 -0
- package/dist/chunks/clear-0.2.0-5e6fb269.mjs +1 -0
- package/dist/chunks/clearTerminal-0.2.0-c21vszkv.mjs +1 -0
- package/dist/chunks/cli-0.2.0-087sjqr6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0cjgm41a.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0fwa4agt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0nmdgd3g.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0vvkn4c2.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-ta3w93yb.mjs → cli-0.2.0-13sc1gtx.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-16yt5fwn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-1br2y5jr.mjs +2 -0
- package/dist/chunks/cli-0.2.0-1mbgzd60.mjs +2 -0
- package/dist/chunks/cli-0.2.0-1vczhepy.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-ba919tmj.mjs → cli-0.2.0-24bbrvmx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-d1edbjh4.mjs → cli-0.2.0-280a64s9.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-2c2rdf9b.mjs +2 -0
- package/dist/chunks/cli-0.2.0-2crrewfg.mjs +5 -0
- package/dist/chunks/{cli-0.1.14-wymtdw5f.mjs → cli-0.2.0-2edwgzmj.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-2ppczk6v.mjs +2 -0
- package/dist/chunks/cli-0.2.0-35xeqadb.mjs +2 -0
- package/dist/chunks/cli-0.2.0-362nfwm4.mjs +5 -0
- package/dist/chunks/cli-0.2.0-3abr1pjj.mjs +2 -0
- package/dist/chunks/cli-0.2.0-3ttrh2tj.mjs +2 -0
- package/dist/chunks/cli-0.2.0-3y7hn5v2.mjs +2 -0
- package/dist/chunks/cli-0.2.0-41524wt1.mjs +2 -0
- package/dist/chunks/cli-0.2.0-46m4vcs3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-48sfjp31.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4hy8176k.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4phx745d.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4s3ve9jw.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4t9h5c71.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4vbz1xrx.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4ve4asjv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-514cx7c7.mjs +3 -0
- package/dist/chunks/cli-0.2.0-55mg69qb.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-yphht6rx.mjs → cli-0.2.0-5a2sf5g7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-heevc19y.mjs → cli-0.2.0-5rm5wnp9.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-69bn5730.mjs +2 -0
- package/dist/chunks/cli-0.2.0-6dbn4mn2.mjs +2 -0
- package/dist/chunks/cli-0.2.0-6en16pc3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-6scx1ptz.mjs +4 -0
- package/dist/chunks/cli-0.2.0-6y2zbjr4.mjs +2 -0
- package/dist/chunks/cli-0.2.0-715a2z01.mjs +2 -0
- package/dist/chunks/cli-0.2.0-7xs4mtmq.mjs +2 -0
- package/dist/chunks/cli-0.2.0-7zpdrxbp.mjs +2 -0
- package/dist/chunks/cli-0.2.0-82kqh5xm.mjs +2 -0
- package/dist/chunks/cli-0.2.0-847azgnr.mjs +2 -0
- package/dist/chunks/cli-0.2.0-8hbq2p5t.mjs +2 -0
- package/dist/chunks/cli-0.2.0-8wnt08ky.mjs +12 -0
- package/dist/chunks/cli-0.2.0-98h2e6bt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9ez4c6sj.mjs +6 -0
- package/dist/chunks/{cli-0.1.14-yfc7weqn.mjs → cli-0.2.0-9fckzgpc.mjs} +11 -11
- package/dist/chunks/cli-0.2.0-9jj1kcbc.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9n89mtk3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9n8cdk9p.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9t5wq1kd.mjs +2 -0
- package/dist/chunks/cli-0.2.0-am2e345h.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-as1s0b0t.mjs → cli-0.2.0-amhtcvq4.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-ar569zh3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-arwyxqyx.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-qzcceap6.mjs → cli-0.2.0-asc68d4g.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-aw44dqmt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-b1tfb8fj.mjs +2 -0
- package/dist/chunks/cli-0.2.0-b8a7b102.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-qn4ftczz.mjs → cli-0.2.0-b8hs09nv.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-473sgexj.mjs → cli-0.2.0-bd59jfmr.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-bs742fy1.mjs +2 -0
- package/dist/chunks/cli-0.2.0-c3qvrk8y.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-seq2fm2d.mjs → cli-0.2.0-c7ea0dry.mjs} +2 -2
- package/dist/chunks/{cli-0.1.14-nprcbhwn.mjs → cli-0.2.0-cabza42m.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-ccwfmwcq.mjs +2 -0
- package/dist/chunks/cli-0.2.0-crn0mjsc.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-j5sbzwhy.mjs → cli-0.2.0-cs8e9514.mjs} +842 -972
- package/dist/chunks/cli-0.2.0-cst46q1r.mjs +2 -0
- package/dist/chunks/cli-0.2.0-d4ajkte5.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-stv1d0q3.mjs → cli-0.2.0-da216rmz.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-daxqaqx9.mjs +2 -0
- package/dist/chunks/cli-0.2.0-dsa5edrn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-dtsxeqwx.mjs +17 -0
- package/dist/chunks/cli-0.2.0-e184jeam.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-2mzb5ath.mjs → cli-0.2.0-e9xwjcb3.mjs} +2 -2
- package/dist/chunks/{cli-0.1.14-ftjxb57b.mjs → cli-0.2.0-eaeff4m6.mjs} +3 -3
- package/dist/chunks/cli-0.2.0-emdrfb4f.mjs +2 -0
- package/dist/chunks/cli-0.2.0-eyswa898.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-nxphqjb4.mjs → cli-0.2.0-ezgpj8e5.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-f0ec18e0.mjs +2 -0
- package/dist/chunks/cli-0.2.0-f5rgr2bw.mjs +5 -0
- package/dist/chunks/cli-0.2.0-f63v4pa4.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-kmsvd61a.mjs → cli-0.2.0-f7tp61b0.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-fanwxcjn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-fgsp4dtv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-fknhewrw.mjs +2 -0
- package/dist/chunks/cli-0.2.0-fr785r3y.mjs +2 -0
- package/dist/chunks/cli-0.2.0-frar6zbv.mjs +6 -0
- package/dist/chunks/{cli-0.1.14-0nhaxy76.mjs → cli-0.2.0-frwsdnhe.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-fy5rnmc5.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-2f7s5xbd.mjs → cli-0.2.0-g2h1t6ke.mjs} +4 -4
- package/dist/chunks/cli-0.2.0-g4kznbnn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-g86682ye.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gby7sqgg.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-wgatq2fj.mjs → cli-0.2.0-gjtwz4v6.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-gmq4bxtp.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gngqqtnd.mjs +4 -0
- package/dist/chunks/cli-0.2.0-gpc69j0z.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gsw60zfe.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gy72dze8.mjs +2 -0
- package/dist/chunks/cli-0.2.0-h2wnach8.mjs +16 -0
- package/dist/chunks/cli-0.2.0-h9tvrrx9.mjs +2 -0
- package/dist/chunks/cli-0.2.0-hg1xg9nq.mjs +2 -0
- package/dist/chunks/cli-0.2.0-hw4ce6k6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-hzzgbj9r.mjs +2 -0
- package/dist/chunks/cli-0.2.0-j71ct7m7.mjs +2 -0
- package/dist/chunks/cli-0.2.0-jna42sz6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-jsrrpd02.mjs +2 -0
- package/dist/chunks/cli-0.2.0-k0aa6s39.mjs +2 -0
- package/dist/chunks/cli-0.2.0-k2tq4knj.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-we6s7jfg.mjs → cli-0.2.0-k438c5g3.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-k7cxbyxg.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-3m63hy2a.mjs → cli-0.2.0-kg83sjcw.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-kgs4hedc.mjs +2 -0
- package/dist/chunks/cli-0.2.0-krxmhdq4.mjs +2 -0
- package/dist/chunks/cli-0.2.0-m5s0ha7v.mjs +3 -0
- package/dist/chunks/cli-0.2.0-m81s8n1j.mjs +2 -0
- package/dist/chunks/cli-0.2.0-mg45dmsv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-mhpecwq3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-mne4f86b.mjs +7 -0
- package/dist/chunks/cli-0.2.0-mstcexpv.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-0kzzfe41.mjs → cli-0.2.0-ncjme2vj.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-ndz9dbxz.mjs +2 -0
- package/dist/chunks/cli-0.2.0-p0dd7k39.mjs +4 -0
- package/dist/chunks/cli-0.2.0-p19kyd3z.mjs +4 -0
- package/dist/chunks/cli-0.2.0-p2jewnbn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-p46nxmgy.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pa834vt3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pdb8evy6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pfja1jsa.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pt145sac.mjs +3 -0
- package/dist/chunks/cli-0.2.0-ptwysnj7.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pw3er14v.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pxy1f4ky.mjs +2 -0
- package/dist/chunks/cli-0.2.0-q1fz4qmd.mjs +2 -0
- package/dist/chunks/cli-0.2.0-q822fesk.mjs +2 -0
- package/dist/chunks/cli-0.2.0-qcr87znh.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-rc5yd94n.mjs → cli-0.2.0-qdcyy0k1.mjs} +3 -3
- package/dist/chunks/cli-0.2.0-qnd8v5pt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-qw0kz7z3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-r15zg9jv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-r3f7ephj.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-k9jcmxtd.mjs → cli-0.2.0-rwdy3dtq.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-dntkrp1j.mjs → cli-0.2.0-s02v5abf.mjs} +5 -5
- package/dist/chunks/{cli-0.1.14-jpe9sxch.mjs → cli-0.2.0-s130pb2c.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-s919r7gy.mjs +2 -0
- package/dist/chunks/cli-0.2.0-sh26pc92.mjs +2 -0
- package/dist/chunks/cli-0.2.0-sj380wma.mjs +2 -0
- package/dist/chunks/cli-0.2.0-stn798t9.mjs +9 -0
- package/dist/chunks/cli-0.2.0-t0j5fnc5.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-3xj419mp.mjs → cli-0.2.0-teqjxyws.mjs} +1 -1
- package/dist/chunks/{cli-0.1.14-nkza93de.mjs → cli-0.2.0-v8kqgxs0.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-vdhcg4g4.mjs +2 -0
- package/dist/chunks/cli-0.2.0-vejekjsb.mjs +2 -0
- package/dist/chunks/cli-0.2.0-vjcy5y97.mjs +4 -0
- package/dist/chunks/cli-0.2.0-vjnmd5ey.mjs +2 -0
- package/dist/chunks/cli-0.2.0-wc6ydzff.mjs +2 -0
- package/dist/chunks/cli-0.2.0-wmfpk06g.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-6cjjzttb.mjs → cli-0.2.0-wmstwkhw.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-wqzmxfnd.mjs +2 -0
- package/dist/chunks/cli-0.2.0-wwwmxcwz.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-hxvzvfr2.mjs → cli-0.2.0-x221h2yq.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-xdmw2spe.mjs +4 -0
- package/dist/chunks/cli-0.2.0-xmf20rrm.mjs +2 -0
- package/dist/chunks/cli-0.2.0-xwrvt7rw.mjs +2 -0
- package/dist/chunks/cli-0.2.0-y1q43eac.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-canpypsb.mjs → cli-0.2.0-y6g66sm5.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-y93dcrnm.mjs +2 -0
- package/dist/chunks/cli-0.2.0-y9bxbkxm.mjs +2 -0
- package/dist/chunks/{cli-0.1.14-hvfg45y0.mjs → cli-0.2.0-ykvda8xj.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-z1j2k2y8.mjs +2 -0
- package/dist/chunks/cli-0.2.0-zdr99w6n.mjs +2 -0
- package/dist/chunks/cli-0.2.0-zhq243rp.mjs +5 -0
- package/dist/chunks/cli-0.2.0-zxm7fqen.mjs +2 -0
- package/dist/chunks/client-0.2.0-qtv4epf8.mjs +1 -0
- package/dist/chunks/color-0.2.0-287d7bh5.mjs +1 -0
- package/dist/chunks/compact-0.2.0-qd4qye1t.mjs +3 -0
- package/dist/chunks/config-0.2.0-2fafd18t.mjs +1 -0
- package/dist/chunks/config-0.2.0-rm6w636d.mjs +1 -0
- package/dist/chunks/{context-0.1.14-hyykwj83.mjs → context-0.2.0-k3gcs0rz.mjs} +1 -1
- package/dist/chunks/context-noninteractive-0.2.0-k88gx3fk.mjs +1 -0
- package/dist/chunks/conversation-0.2.0-7c5rr3m8.mjs +1 -0
- package/dist/chunks/{copy-0.1.14-kp76nh7r.mjs → copy-0.2.0-adh6xrdj.mjs} +1 -1
- package/dist/chunks/cost-0.2.0-mnj9rgcz.mjs +1 -0
- package/dist/chunks/createSession-0.2.0-9g9gw88m.mjs +1 -0
- package/dist/chunks/desktop-0.2.0-8f8qkdkf.mjs +1 -0
- package/dist/chunks/detectRepository-0.2.0-349d15w3.mjs +1 -0
- package/dist/chunks/detection-0.2.0-bwykm3rz.mjs +1 -0
- package/dist/chunks/diff-0.2.0-9vymm8d8.mjs +1 -0
- package/dist/chunks/doctor-0.2.0-rxs4z5h9.mjs +1 -0
- package/dist/chunks/earlyInput-0.2.0-693jvbhz.mjs +1 -0
- package/dist/chunks/{effort-0.1.14-d9xmff2t.mjs → effort-0.2.0-v3ery43s.mjs} +1 -1
- package/dist/chunks/environmentSelection-0.2.0-51bq9j0p.mjs +1 -0
- package/dist/chunks/environments-0.2.0-f16b46v6.mjs +1 -0
- package/dist/chunks/exit-0.2.0-gxsz2644.mjs +1 -0
- package/dist/chunks/export-0.2.0-3tnxr36f.mjs +2 -0
- package/dist/chunks/extra-usage-0.2.0-7rhvw0qy.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.2.0-6jn1b44v.mjs +1 -0
- package/dist/chunks/fast-0.2.0-m1ebwhxs.mjs +1 -0
- package/dist/chunks/feedback-0.2.0-n6jvewnr.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.2.0-20cb3z2a.mjs +1 -0
- package/dist/chunks/git-0.2.0-c4ee3tsv.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.2.0-cdvezs97.mjs +1 -0
- package/dist/chunks/growthbook-0.2.0-att0j7gv.mjs +1 -0
- package/dist/chunks/heapdump-0.2.0-78f6h5zs.mjs +6 -0
- package/dist/chunks/help-0.2.0-dtcb464y.mjs +1 -0
- package/dist/chunks/hookChains-0.2.0-svw4xjh6.mjs +3 -0
- package/dist/chunks/{hooks-0.1.14-jy9bt7s6.mjs → hooks-0.2.0-4hvw5w19.mjs} +1 -1
- package/dist/chunks/hooks-0.2.0-hw6zwnp8.mjs +1 -0
- package/dist/chunks/{ide-0.1.14-0ar60k4r.mjs → ide-0.2.0-3a10v8p7.mjs} +1 -1
- package/dist/chunks/image-processor-napi-0.2.0-8t8g5777.mjs +1 -0
- package/dist/chunks/index-0.2.0-0f0aw7rx.mjs +1 -0
- package/dist/chunks/index-0.2.0-1pr9vtkj.mjs +9 -0
- package/dist/chunks/index-0.2.0-2dyw5tmn.mjs +1 -0
- package/dist/chunks/index-0.2.0-728crm0q.mjs +1 -0
- package/dist/chunks/index-0.2.0-7gpqav46.mjs +2 -0
- package/dist/chunks/{index-0.1.14-y3aj57xa.mjs → index-0.2.0-7wttyxdg.mjs} +1 -1
- package/dist/chunks/index-0.2.0-b33awb2n.mjs +1 -0
- package/dist/chunks/{index-0.1.14-hqphn8m5.mjs → index-0.2.0-b71emahw.mjs} +1 -1
- package/dist/chunks/index-0.2.0-czy0090x.mjs +1 -0
- package/dist/chunks/index-0.2.0-dactt0mw.mjs +1 -0
- package/dist/chunks/index-0.2.0-f8nnmapf.mjs +1 -0
- package/dist/chunks/{index-0.1.14-8v5xwttx.mjs → index-0.2.0-h3z86gdx.mjs} +2 -2
- package/dist/chunks/index-0.2.0-jrzrpfvk.mjs +1 -0
- package/dist/chunks/index-0.2.0-mny50v93.mjs +1 -0
- package/dist/chunks/index-0.2.0-nhw2r534.mjs +1 -0
- package/dist/chunks/index-0.2.0-p27jjyjb.mjs +1 -0
- package/dist/chunks/index-0.2.0-pf79ppar.mjs +1 -0
- package/dist/chunks/index-0.2.0-tamm1gme.mjs +1 -0
- package/dist/chunks/index-0.2.0-tj7rwkwq.mjs +1 -0
- package/dist/chunks/{index-0.1.14-dmbjzapt.mjs → index-0.2.0-v2mzpt7h.mjs} +1 -1
- package/dist/chunks/index-0.2.0-w1m3v2y0.mjs +9 -0
- package/dist/chunks/index-0.2.0-z8m5wd19.mjs +1 -0
- package/dist/chunks/initReplBridge-0.2.0-5abnx6wk.mjs +1 -0
- package/dist/chunks/ink-0.2.0-v2d1zzt6.mjs +1 -0
- package/dist/chunks/{insights-0.1.14-9n58d9t8.mjs → insights-0.2.0-5q6x53j1.mjs} +1 -1
- package/dist/chunks/install-0.2.0-0vhcv1w2.mjs +1 -0
- package/dist/chunks/{install-github-app-0.1.14-kmetkgdq.mjs → install-github-app-0.2.0-xcxxtxzh.mjs} +1 -1
- package/dist/chunks/install-slack-app-0.2.0-12qw49ga.mjs +1 -0
- package/dist/chunks/{instrumentation-0.1.14-fsgk97cp.mjs → instrumentation-0.2.0-rfc7gt94.mjs} +1 -1
- package/dist/chunks/interactiveHelpers-0.2.0-69j5avm0.mjs +1 -0
- package/dist/chunks/keybindings-0.2.0-r9ensjdz.mjs +2 -0
- package/dist/chunks/knowledge-0.2.0-r222df23.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.2.0-wrpffsg4.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.2.0-4wkq3ar6.mjs +1 -0
- package/dist/chunks/lsp-0.2.0-vyrfqxg7.mjs +1 -0
- package/dist/chunks/main-0.2.0-r3wv26vg.mjs +1 -0
- package/dist/chunks/managedEnv-0.2.0-t6y3d3hp.mjs +1 -0
- package/dist/chunks/mcp-0.2.0-8rxg4gkx.mjs +1 -0
- package/dist/chunks/{mcp-0.1.14-dmtc9tjr.mjs → mcp-0.2.0-anen8fv7.mjs} +3 -3
- package/dist/chunks/mcp-0.2.0-brdssfg7.mjs +4 -0
- package/dist/chunks/mcpServer-0.2.0-816p5gfy.mjs +1 -0
- package/dist/chunks/mcpb-0.2.0-pte54tfe.mjs +1 -0
- package/dist/chunks/memory-0.2.0-vxnsyq72.mjs +3 -0
- package/dist/chunks/{mobile-0.1.14-bwjnmpy0.mjs → mobile-0.2.0-npn2rcmr.mjs} +1 -1
- package/dist/chunks/model-0.2.0-ajjp4znr.mjs +1 -0
- package/dist/chunks/model-0.2.0-dsy2yzwq.mjs +2 -0
- package/dist/chunks/oauth-0.2.0-xfb7vgc2.mjs +1 -0
- package/dist/chunks/{openaiShim-0.1.14-jv6416m8.mjs → openaiShim-0.2.0-5rabbqwx.mjs} +1 -1
- package/dist/chunks/output-style-0.2.0-0tea3sgj.mjs +1 -0
- package/dist/chunks/package-WSP46L7M-0.2.0-54rp856z.mjs +1 -0
- package/dist/chunks/parser-0.2.0-vxksd2kb.mjs +1 -0
- package/dist/chunks/passes-0.2.0-kb6z71d5.mjs +1 -0
- package/dist/chunks/permissions-0.2.0-pvq85gdj.mjs +3 -0
- package/dist/chunks/plan-0.2.0-nc7dtaj1.mjs +1 -0
- package/dist/chunks/plist-0.2.0-veq45ed0.mjs +1 -0
- package/dist/chunks/plugin-0.2.0-q0ehrvv3.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.2.0-cnkhwj3j.mjs +1 -0
- package/dist/chunks/{plugins-0.1.14-4tggkexv.mjs → plugins-0.2.0-s45nc253.mjs} +2 -2
- package/dist/chunks/{print-0.1.14-m719w2yp.mjs → print-0.2.0-e9ckvtwf.mjs} +4 -4
- package/dist/chunks/privacy-settings-0.2.0-e9qgq22a.mjs +1 -0
- package/dist/chunks/process-0.2.0-5q69t7tp.mjs +1 -0
- package/dist/chunks/processBashCommand-0.2.0-n1qzbvn8.mjs +1 -0
- package/dist/chunks/{processSlashCommand-0.1.14-7w1v93bg.mjs → processSlashCommand-0.2.0-phzfkm35.mjs} +1 -1
- package/dist/chunks/prompt-0.2.0-8tvc5hkt.mjs +1 -0
- package/dist/chunks/prompt-0.2.0-znq97v28.mjs +1 -0
- package/dist/chunks/prompts-0.2.0-43x4r8s1.mjs +1 -0
- package/dist/chunks/provider-0.2.0-hdw0f0gf.mjs +2 -0
- package/dist/chunks/providerProfiles-0.2.0-fxf0kwk5.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.2.0-6gs96kga.mjs +1 -0
- package/dist/chunks/registry-0.2.0-qn6vn1a0.mjs +1 -0
- package/dist/chunks/release-notes-0.2.0-n7d001cj.mjs +5 -0
- package/dist/chunks/reload-plugins-0.2.0-z66hj6gv.mjs +2 -0
- package/dist/chunks/{remote-env-0.1.14-jyc0gkhb.mjs → remote-env-0.2.0-tb94ty2j.mjs} +1 -1
- package/dist/chunks/remoteBridgeCore-0.2.0-tggkxmb3.mjs +1 -0
- package/dist/chunks/remoteSession-0.2.0-e5ph1zn5.mjs +1 -0
- package/dist/chunks/rename-0.2.0-1a2tr4rh.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.2.0-58503tj0.mjs +1 -0
- package/dist/chunks/resume-0.2.0-nbs1aptk.mjs +2 -0
- package/dist/chunks/rewind-0.2.0-9vcza7j6.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.2.0-rvjkxzab.mjs +1 -0
- package/dist/chunks/{sandbox-toggle-0.1.14-jz6x02qp.mjs → sandbox-toggle-0.2.0-0hc6gk75.mjs} +1 -1
- package/dist/chunks/session-0.2.0-2mjsp1sz.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.2.0-mmvc7bkc.mjs +1 -0
- package/dist/chunks/sessionStorage-0.2.0-69fq3tpm.mjs +1 -0
- package/dist/chunks/setup-0.2.0-06edanfh.mjs +5 -0
- package/dist/chunks/sinks-0.2.0-wja94cem.mjs +1 -0
- package/dist/chunks/skills-0.2.0-3z33tjhh.mjs +1 -0
- package/dist/chunks/startupProfiler-0.2.0-rsbrxr2e.mjs +1 -0
- package/dist/chunks/state-0.2.0-cqgytazz.mjs +1 -0
- package/dist/chunks/{stats-0.1.14-rr3tpwqw.mjs → stats-0.2.0-916qgsak.mjs} +1 -1
- package/dist/chunks/status-0.2.0-qpr1a3ep.mjs +1 -0
- package/dist/chunks/stickers-0.2.0-s40586dt.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.2.0-8kaz087n.mjs +1 -0
- package/dist/chunks/tasks-0.2.0-kyab838f.mjs +1 -0
- package/dist/chunks/teamHelpers-0.2.0-r08wn3az.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.2.0-ew1rr6e3.mjs +1 -0
- package/dist/chunks/teleport-0.2.0-m7dva816.mjs +1 -0
- package/dist/chunks/terminalSetup-0.2.0-28qz91bk.mjs +1 -0
- package/dist/chunks/theme-0.2.0-t6hf3219.mjs +1 -0
- package/dist/chunks/thinkback-0.2.0-s3ggf62w.mjs +1 -0
- package/dist/chunks/thinkback-play-0.2.0-bh4h025z.mjs +1 -0
- package/dist/chunks/toolPool-0.2.0-cb20byyb.mjs +1 -0
- package/dist/chunks/toolSearch-0.2.0-2b8zp823.mjs +1 -0
- package/dist/chunks/trustedDevice-0.2.0-bm94scqy.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.14-nw2rtcyd.mjs → turndown.cjs-0.2.0-deg6aa1p.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.14-9twnt5bp.mjs → ultrareviewCommand-0.2.0-zw0s8h8q.mjs} +1 -1
- package/dist/chunks/{update-0.1.14-9dhep94r.mjs → update-0.2.0-7s5194yn.mjs} +11 -11
- package/dist/chunks/upgrade-0.2.0-qwr6an4v.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.14-sc0x4n7b.mjs → upstreamproxy-0.2.0-xm05d4w5.mjs} +1 -1
- package/dist/chunks/usage-0.2.0-mp3vm726.mjs +1 -0
- package/dist/chunks/util-0.2.0-dbnnzv2b.mjs +1 -0
- package/dist/chunks/utils-0.2.0-memk8639.mjs +1 -0
- package/dist/chunks/vim-0.2.0-twpbq41v.mjs +1 -0
- package/dist/chunks/watcher-0.2.0-cfz0cgxt.mjs +1 -0
- package/dist/chunks/{wiki-0.1.14-s3exyf45.mjs → wiki-0.2.0-v5sdh8vv.mjs} +1 -1
- package/dist/chunks/worktree-0.2.0-cgeqcbwb.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.2.0-hb1hv05w.mjs +1 -0
- package/dist/chunks/wrapper-0.2.0-661tvhay.mjs +7 -0
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.14-cdr5h1g4.mjs +0 -1
- package/dist/chunks/App-0.1.14-pg2tqqjz.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.14-e86h3nff.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.14-tf848k8v.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.14-ftdkaf8h.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.14-d45z21x5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.14-dzhpgrhm.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.14-y2v8vg76.mjs +0 -1
- package/dist/chunks/Doctor-0.1.14-rhryp3qj.mjs +0 -1
- package/dist/chunks/Grove-0.1.14-4pt83x25.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.14-xtdr5bmp.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.14-wdqgcpb4.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.14-rx2djmka.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.14-nhkj2max.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.14-f6hf3ymp.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.14-1rddgg2b.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.14-2d77t0cr.mjs +0 -1
- package/dist/chunks/REPL-0.1.14-rz1jsayd.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.14-79hg5s2w.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.14-sbjnsz3c.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.14-411m3y24.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.14-v6ytg24w.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.14-8wfa8twy.mjs +0 -1
- package/dist/chunks/ToolSearchTool-0.1.14-rpbvvb5j.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.14-zvmfmtg5.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.14-5cpywex1.mjs +0 -1
- package/dist/chunks/add-dir-0.1.14-q700x1tp.mjs +0 -1
- package/dist/chunks/agents-0.1.14-nm4k11re.mjs +0 -3
- package/dist/chunks/agents-0.1.14-pjr42t23.mjs +0 -111
- package/dist/chunks/api-0.1.14-v09922m9.mjs +0 -1
- package/dist/chunks/asciicast-0.1.14-kgp9j4z6.mjs +0 -1
- package/dist/chunks/assistant-0.1.14-yt6v1sjy.mjs +0 -1
- package/dist/chunks/auth-0.1.14-vg6ez70v.mjs +0 -1
- package/dist/chunks/auth-0.1.14-vj6095mm.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.14-bh13ez8a.mjs +0 -1
- package/dist/chunks/branch-0.1.14-r5tt7cec.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.14-2w1wvxgt.mjs +0 -1
- package/dist/chunks/cacache-0.1.14-3vw5qkqs.mjs +0 -1
- package/dist/chunks/caches-0.1.14-et2zg3m5.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.14-0df0z4v6.mjs +0 -1
- package/dist/chunks/claudemd-0.1.14-exzt8psa.mjs +0 -1
- package/dist/chunks/clear-0.1.14-62gnxkg3.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.14-5p1j5sbv.mjs +0 -1
- package/dist/chunks/cli-0.1.14-08ambmnj.mjs +0 -2
- package/dist/chunks/cli-0.1.14-0a8ckx07.mjs +0 -2
- package/dist/chunks/cli-0.1.14-0ctjta81.mjs +0 -5
- package/dist/chunks/cli-0.1.14-0x3m90bk.mjs +0 -2
- package/dist/chunks/cli-0.1.14-16jrehc2.mjs +0 -2
- package/dist/chunks/cli-0.1.14-1g5jq0j8.mjs +0 -2
- package/dist/chunks/cli-0.1.14-1shkmy81.mjs +0 -2
- package/dist/chunks/cli-0.1.14-1xkst5wv.mjs +0 -2
- package/dist/chunks/cli-0.1.14-244fknyr.mjs +0 -2
- package/dist/chunks/cli-0.1.14-25ta9abj.mjs +0 -2
- package/dist/chunks/cli-0.1.14-28exj8zm.mjs +0 -2
- package/dist/chunks/cli-0.1.14-2e2jfccr.mjs +0 -2
- package/dist/chunks/cli-0.1.14-373staaj.mjs +0 -2
- package/dist/chunks/cli-0.1.14-39y8qfj7.mjs +0 -2
- package/dist/chunks/cli-0.1.14-3scecgzx.mjs +0 -6
- package/dist/chunks/cli-0.1.14-3w7fbjhy.mjs +0 -2
- package/dist/chunks/cli-0.1.14-3yj4dkmn.mjs +0 -2
- package/dist/chunks/cli-0.1.14-3zj4s594.mjs +0 -2
- package/dist/chunks/cli-0.1.14-42sm5vzr.mjs +0 -2
- package/dist/chunks/cli-0.1.14-442a367x.mjs +0 -2
- package/dist/chunks/cli-0.1.14-4mde8z7h.mjs +0 -2
- package/dist/chunks/cli-0.1.14-4tmbgg29.mjs +0 -2
- package/dist/chunks/cli-0.1.14-4wdh3k7y.mjs +0 -2
- package/dist/chunks/cli-0.1.14-59axynr8.mjs +0 -2
- package/dist/chunks/cli-0.1.14-5brvxst8.mjs +0 -2
- package/dist/chunks/cli-0.1.14-5e5kkjam.mjs +0 -2
- package/dist/chunks/cli-0.1.14-5rp4y3q2.mjs +0 -2
- package/dist/chunks/cli-0.1.14-5te1nbdc.mjs +0 -2
- package/dist/chunks/cli-0.1.14-68wbwy40.mjs +0 -4
- package/dist/chunks/cli-0.1.14-71m91842.mjs +0 -2
- package/dist/chunks/cli-0.1.14-71sp86jb.mjs +0 -2
- package/dist/chunks/cli-0.1.14-77ha4n58.mjs +0 -2
- package/dist/chunks/cli-0.1.14-7zjhrz42.mjs +0 -5
- package/dist/chunks/cli-0.1.14-7zz7abpc.mjs +0 -2
- package/dist/chunks/cli-0.1.14-86gckvrm.mjs +0 -2
- package/dist/chunks/cli-0.1.14-893g12wf.mjs +0 -2
- package/dist/chunks/cli-0.1.14-8fr10t94.mjs +0 -17
- package/dist/chunks/cli-0.1.14-90zkq8jm.mjs +0 -2
- package/dist/chunks/cli-0.1.14-9b8kspnd.mjs +0 -2
- package/dist/chunks/cli-0.1.14-9evp0ewn.mjs +0 -2
- package/dist/chunks/cli-0.1.14-9gem156t.mjs +0 -2
- package/dist/chunks/cli-0.1.14-9kxzs20h.mjs +0 -2
- package/dist/chunks/cli-0.1.14-9vc52dnj.mjs +0 -2
- package/dist/chunks/cli-0.1.14-a15xdexp.mjs +0 -12
- package/dist/chunks/cli-0.1.14-a6kwmqhz.mjs +0 -16
- package/dist/chunks/cli-0.1.14-a9ytrehs.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ab0rxxvk.mjs +0 -2
- package/dist/chunks/cli-0.1.14-adz0gnzy.mjs +0 -2
- package/dist/chunks/cli-0.1.14-aky5tegx.mjs +0 -2
- package/dist/chunks/cli-0.1.14-akz49g5v.mjs +0 -2
- package/dist/chunks/cli-0.1.14-as9nq99n.mjs +0 -2
- package/dist/chunks/cli-0.1.14-bat0c779.mjs +0 -2
- package/dist/chunks/cli-0.1.14-bgqm4vsk.mjs +0 -2
- package/dist/chunks/cli-0.1.14-c0bv9eha.mjs +0 -4
- package/dist/chunks/cli-0.1.14-c4v2kfdn.mjs +0 -2
- package/dist/chunks/cli-0.1.14-cdby401e.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ch9c9c38.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ckjcet41.mjs +0 -2
- package/dist/chunks/cli-0.1.14-cp2pada5.mjs +0 -2
- package/dist/chunks/cli-0.1.14-d483gd53.mjs +0 -2
- package/dist/chunks/cli-0.1.14-d4zkffre.mjs +0 -2
- package/dist/chunks/cli-0.1.14-dcgxqsyp.mjs +0 -2
- package/dist/chunks/cli-0.1.14-dq7jkw1n.mjs +0 -2
- package/dist/chunks/cli-0.1.14-dqads3y3.mjs +0 -2
- package/dist/chunks/cli-0.1.14-dt11hwkv.mjs +0 -2
- package/dist/chunks/cli-0.1.14-dw74ppax.mjs +0 -2
- package/dist/chunks/cli-0.1.14-dz2jvye2.mjs +0 -2
- package/dist/chunks/cli-0.1.14-e40hm9sd.mjs +0 -2
- package/dist/chunks/cli-0.1.14-edjtfw4q.mjs +0 -2
- package/dist/chunks/cli-0.1.14-efhhkgkx.mjs +0 -2
- package/dist/chunks/cli-0.1.14-eq0gbnpg.mjs +0 -2
- package/dist/chunks/cli-0.1.14-fdpfr31f.mjs +0 -2
- package/dist/chunks/cli-0.1.14-fhfj87ej.mjs +0 -2
- package/dist/chunks/cli-0.1.14-fmgz6tx2.mjs +0 -5
- package/dist/chunks/cli-0.1.14-fmmxw3gj.mjs +0 -2
- package/dist/chunks/cli-0.1.14-fspxpmh7.mjs +0 -2
- package/dist/chunks/cli-0.1.14-g5q2xqp3.mjs +0 -2
- package/dist/chunks/cli-0.1.14-gdm27acz.mjs +0 -2
- package/dist/chunks/cli-0.1.14-harz1d9d.mjs +0 -2
- package/dist/chunks/cli-0.1.14-hjktwgtk.mjs +0 -2
- package/dist/chunks/cli-0.1.14-hkaqyhx1.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +0 -2
- package/dist/chunks/cli-0.1.14-jbn4ywda.mjs +0 -6
- package/dist/chunks/cli-0.1.14-jf8019sb.mjs +0 -2
- package/dist/chunks/cli-0.1.14-jnfs73kb.mjs +0 -2
- package/dist/chunks/cli-0.1.14-k8nwm06m.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ka0xhrv6.mjs +0 -2
- package/dist/chunks/cli-0.1.14-kcrsww4s.mjs +0 -2
- package/dist/chunks/cli-0.1.14-khtq9cgy.mjs +0 -2
- package/dist/chunks/cli-0.1.14-kn1f2x94.mjs +0 -2
- package/dist/chunks/cli-0.1.14-kpsh76mj.mjs +0 -2
- package/dist/chunks/cli-0.1.14-kt6sq4nr.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ktz3cgwa.mjs +0 -2
- package/dist/chunks/cli-0.1.14-kv650aha.mjs +0 -2
- package/dist/chunks/cli-0.1.14-m75ce5ve.mjs +0 -2
- package/dist/chunks/cli-0.1.14-m7khgn2k.mjs +0 -2
- package/dist/chunks/cli-0.1.14-m7xchegb.mjs +0 -2
- package/dist/chunks/cli-0.1.14-mgcmwvcn.mjs +0 -4
- package/dist/chunks/cli-0.1.14-mngn74ga.mjs +0 -2
- package/dist/chunks/cli-0.1.14-mx9yse7m.mjs +0 -2
- package/dist/chunks/cli-0.1.14-nmmtd1d6.mjs +0 -2
- package/dist/chunks/cli-0.1.14-nnr43nyg.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ntq8w1ss.mjs +0 -2
- package/dist/chunks/cli-0.1.14-nzsj259d.mjs +0 -2
- package/dist/chunks/cli-0.1.14-qe5zyvfh.mjs +0 -2
- package/dist/chunks/cli-0.1.14-qyx55m6c.mjs +0 -3
- package/dist/chunks/cli-0.1.14-r00mjm41.mjs +0 -2
- package/dist/chunks/cli-0.1.14-r46jh9af.mjs +0 -2
- package/dist/chunks/cli-0.1.14-r5qyt63x.mjs +0 -2
- package/dist/chunks/cli-0.1.14-rtstk94r.mjs +0 -2
- package/dist/chunks/cli-0.1.14-s9m1y93w.mjs +0 -2
- package/dist/chunks/cli-0.1.14-sb7dm65b.mjs +0 -2
- package/dist/chunks/cli-0.1.14-sn1rf71y.mjs +0 -2
- package/dist/chunks/cli-0.1.14-svqkx41a.mjs +0 -2
- package/dist/chunks/cli-0.1.14-t3fga5je.mjs +0 -2
- package/dist/chunks/cli-0.1.14-tkb5t0xv.mjs +0 -2
- package/dist/chunks/cli-0.1.14-tqexnkmz.mjs +0 -2
- package/dist/chunks/cli-0.1.14-tyv29sz9.mjs +0 -2
- package/dist/chunks/cli-0.1.14-v2acyy7r.mjs +0 -4
- package/dist/chunks/cli-0.1.14-v9q1cxjy.mjs +0 -2
- package/dist/chunks/cli-0.1.14-vp1kn532.mjs +0 -7
- package/dist/chunks/cli-0.1.14-w3rwfr1d.mjs +0 -2
- package/dist/chunks/cli-0.1.14-w6nzk5dc.mjs +0 -2
- package/dist/chunks/cli-0.1.14-w8efvbh6.mjs +0 -2
- package/dist/chunks/cli-0.1.14-whe4bxfr.mjs +0 -2
- package/dist/chunks/cli-0.1.14-wwehdfwx.mjs +0 -9
- package/dist/chunks/cli-0.1.14-wz5yr49j.mjs +0 -2
- package/dist/chunks/cli-0.1.14-x88ypr2r.mjs +0 -2
- package/dist/chunks/cli-0.1.14-xp6rc33g.mjs +0 -2
- package/dist/chunks/cli-0.1.14-y2wxptpk.mjs +0 -2
- package/dist/chunks/cli-0.1.14-y55hrwdp.mjs +0 -3
- package/dist/chunks/cli-0.1.14-y56629hj.mjs +0 -5
- package/dist/chunks/cli-0.1.14-yagh75p5.mjs +0 -2
- package/dist/chunks/cli-0.1.14-ydm3fwx1.mjs +0 -2
- package/dist/chunks/cli-0.1.14-yxce1bdc.mjs +0 -3
- package/dist/chunks/cli-0.1.14-yxq1tr3a.mjs +0 -2
- package/dist/chunks/cli-0.1.14-z0ckw2hb.mjs +0 -2
- package/dist/chunks/cli-0.1.14-z8j2n955.mjs +0 -2
- package/dist/chunks/cli-0.1.14-zjqt3r89.mjs +0 -2
- package/dist/chunks/cli-0.1.14-zq66y0mv.mjs +0 -2
- package/dist/chunks/cli-0.1.14-zrmretjp.mjs +0 -4
- package/dist/chunks/cli-0.1.14-zs4vmj7z.mjs +0 -4
- package/dist/chunks/client-0.1.14-3t6sfwha.mjs +0 -1
- package/dist/chunks/color-0.1.14-65rf0ap9.mjs +0 -1
- package/dist/chunks/compact-0.1.14-mx9ng433.mjs +0 -3
- package/dist/chunks/config-0.1.14-1v5v86ax.mjs +0 -1
- package/dist/chunks/config-0.1.14-76vavy7t.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.14-24qfm7b9.mjs +0 -1
- package/dist/chunks/conversation-0.1.14-mkc1cd5a.mjs +0 -1
- package/dist/chunks/cost-0.1.14-3d4g5gqm.mjs +0 -1
- package/dist/chunks/createSession-0.1.14-8599rbgg.mjs +0 -1
- package/dist/chunks/desktop-0.1.14-bx4eky6b.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.14-8yam7kv4.mjs +0 -1
- package/dist/chunks/detection-0.1.14-vz5bqsc0.mjs +0 -1
- package/dist/chunks/diff-0.1.14-e4pm39ee.mjs +0 -1
- package/dist/chunks/doctor-0.1.14-22fc2q8y.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.14-997vtdw4.mjs +0 -1
- package/dist/chunks/environmentSelection-0.1.14-fn5p85z5.mjs +0 -1
- package/dist/chunks/environments-0.1.14-7napbg6g.mjs +0 -1
- package/dist/chunks/exit-0.1.14-v8j7rsfw.mjs +0 -1
- package/dist/chunks/export-0.1.14-qpt72paa.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.14-tmwgn4dh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.14-b2pdph8q.mjs +0 -1
- package/dist/chunks/fast-0.1.14-q1tyk3k8.mjs +0 -1
- package/dist/chunks/feedback-0.1.14-qhk5ek0b.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.14-78y09nr6.mjs +0 -1
- package/dist/chunks/git-0.1.14-zvsa13gk.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.14-r30t00rx.mjs +0 -1
- package/dist/chunks/growthbook-0.1.14-dcdeqgyq.mjs +0 -1
- package/dist/chunks/heapdump-0.1.14-tj7w79dt.mjs +0 -6
- package/dist/chunks/help-0.1.14-gk9s0stg.mjs +0 -1
- package/dist/chunks/hookChains-0.1.14-wng6tzfd.mjs +0 -3
- package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +0 -1
- package/dist/chunks/image-processor-napi-0.1.14-p1r3vkb0.mjs +0 -1
- package/dist/chunks/index-0.1.14-071xy8v4.mjs +0 -1
- package/dist/chunks/index-0.1.14-1mttyja2.mjs +0 -2
- package/dist/chunks/index-0.1.14-272zxs9n.mjs +0 -1
- package/dist/chunks/index-0.1.14-2v6wa4p4.mjs +0 -1
- package/dist/chunks/index-0.1.14-2x59va64.mjs +0 -1
- package/dist/chunks/index-0.1.14-3m7vrt91.mjs +0 -1
- package/dist/chunks/index-0.1.14-4hv4f8g9.mjs +0 -1
- package/dist/chunks/index-0.1.14-ac13h1t1.mjs +0 -1
- package/dist/chunks/index-0.1.14-g5kkm9ng.mjs +0 -1
- package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +0 -1
- package/dist/chunks/index-0.1.14-ksa4vdak.mjs +0 -9
- package/dist/chunks/index-0.1.14-mzhk0gvs.mjs +0 -1
- package/dist/chunks/index-0.1.14-qrykb444.mjs +0 -9
- package/dist/chunks/index-0.1.14-qvap58wt.mjs +0 -1
- package/dist/chunks/index-0.1.14-vygpnv88.mjs +0 -1
- package/dist/chunks/index-0.1.14-wjc5jkvz.mjs +0 -1
- package/dist/chunks/index-0.1.14-yjw9017n.mjs +0 -1
- package/dist/chunks/index-0.1.14-zgwbnfqh.mjs +0 -1
- package/dist/chunks/initReplBridge-0.1.14-qe820gff.mjs +0 -1
- package/dist/chunks/ink-0.1.14-kxs7ygns.mjs +0 -1
- package/dist/chunks/install-0.1.14-1zyjez10.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.14-64534gsm.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.1.14-ca4bp7gy.mjs +0 -1
- package/dist/chunks/keybindings-0.1.14-zk3nyh0h.mjs +0 -2
- package/dist/chunks/knowledge-0.1.14-f7w4damb.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.14-md40mt17.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.14-d998c7wf.mjs +0 -1
- package/dist/chunks/lsp-0.1.14-cks4jevz.mjs +0 -1
- package/dist/chunks/main-0.1.14-94wst05h.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.14-tvr9zhbp.mjs +0 -1
- package/dist/chunks/mcp-0.1.14-3tzc0agq.mjs +0 -1
- package/dist/chunks/mcp-0.1.14-tepbr987.mjs +0 -4
- package/dist/chunks/mcpServer-0.1.14-0mvs3bcw.mjs +0 -1
- package/dist/chunks/mcpb-0.1.14-ffa57420.mjs +0 -1
- package/dist/chunks/memory-0.1.14-cgx518q9.mjs +0 -3
- package/dist/chunks/model-0.1.14-rq2dkze7.mjs +0 -2
- package/dist/chunks/model-0.1.14-zg566cz0.mjs +0 -1
- package/dist/chunks/oauth-0.1.14-gftadks2.mjs +0 -1
- package/dist/chunks/output-style-0.1.14-v41ce6t5.mjs +0 -1
- package/dist/chunks/package-WSP46L7M-0.1.14-xy3ej2c4.mjs +0 -1
- package/dist/chunks/parser-0.1.14-jr4b3as9.mjs +0 -1
- package/dist/chunks/passes-0.1.14-0jjh5wg5.mjs +0 -1
- package/dist/chunks/permissions-0.1.14-hh0d709r.mjs +0 -3
- package/dist/chunks/plan-0.1.14-kxb7xax2.mjs +0 -1
- package/dist/chunks/plist-0.1.14-ssqtjjq9.mjs +0 -1
- package/dist/chunks/plugin-0.1.14-01jhhdd3.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.14-zjwy126p.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +0 -1
- package/dist/chunks/process-0.1.14-vgdgd7sq.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.14-d3xsyk5f.mjs +0 -1
- package/dist/chunks/prompt-0.1.14-30e7kfkx.mjs +0 -1
- package/dist/chunks/prompt-0.1.14-brtd9j19.mjs +0 -1
- package/dist/chunks/prompts-0.1.14-bv9qxc0a.mjs +0 -1
- package/dist/chunks/provider-0.1.14-xs34vy3w.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.14-068kvwwx.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.14-2ftxh15k.mjs +0 -1
- package/dist/chunks/registry-0.1.14-ad3na7g6.mjs +0 -1
- package/dist/chunks/release-notes-0.1.14-b7e554an.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.14-3w9v6nw6.mjs +0 -2
- package/dist/chunks/remoteBridgeCore-0.1.14-8kt4ffzy.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.14-ppejxt7n.mjs +0 -1
- package/dist/chunks/rename-0.1.14-tx9dpgk1.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.14-gsqgzdev.mjs +0 -1
- package/dist/chunks/resume-0.1.14-7sda36n0.mjs +0 -2
- package/dist/chunks/rewind-0.1.14-zba66at0.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.14-k97fyzcg.mjs +0 -1
- package/dist/chunks/session-0.1.14-5qsfxmey.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.14-mgx78eqm.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.14-sz2medpp.mjs +0 -1
- package/dist/chunks/setup-0.1.14-f13rnmdg.mjs +0 -5
- package/dist/chunks/sinks-0.1.14-bkyqa9eq.mjs +0 -1
- package/dist/chunks/skills-0.1.14-1vvr60ph.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.14-sabjns03.mjs +0 -1
- package/dist/chunks/state-0.1.14-rj00ry6n.mjs +0 -1
- package/dist/chunks/status-0.1.14-d4fcn5sn.mjs +0 -1
- package/dist/chunks/stickers-0.1.14-s9x2bdhp.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.14-spqyrvd7.mjs +0 -1
- package/dist/chunks/tasks-0.1.14-yje1cmy8.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.14-zv908fgk.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.14-natmxyx5.mjs +0 -1
- package/dist/chunks/teleport-0.1.14-np0wrxrm.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.14-dzsstmk7.mjs +0 -1
- package/dist/chunks/theme-0.1.14-202es8wd.mjs +0 -1
- package/dist/chunks/thinkback-0.1.14-k4krnzrn.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.14-nn1v84ja.mjs +0 -1
- package/dist/chunks/toolPool-0.1.14-4etecef4.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.14-q506jg4k.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.14-qq8dmccd.mjs +0 -1
- package/dist/chunks/upgrade-0.1.14-4nr1rdba.mjs +0 -1
- package/dist/chunks/usage-0.1.14-sbaqxx8h.mjs +0 -1
- package/dist/chunks/util-0.1.14-vfg50acy.mjs +0 -1
- package/dist/chunks/utils-0.1.14-heqqycdx.mjs +0 -1
- package/dist/chunks/vim-0.1.14-z71303w7.mjs +0 -1
- package/dist/chunks/watcher-0.1.14-h1wk07kt.mjs +0 -1
- package/dist/chunks/worktree-0.1.14-5486fw5t.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.14-xn1mf8hc.mjs +0 -1
- package/dist/chunks/wrapper-0.1.14-a4mesaeh.mjs +0 -7
- /package/dist/chunks/{cli-0.1.14-tsth8deg.mjs → cli-0.2.0-4tn02vgd.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.14-et8yewbf.mjs → cli-0.2.0-50cf7d1p.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.14-cahvg3jq.mjs → cli-0.2.0-dgenwca0.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.14-nbvvdkk2.mjs → cli-0.2.0-rnpcefe5.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bma as M}from"./cli-0.1.14-qn4ftczz.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
-
export{W as $ca,Q as ada,K as bda,X as cda,Y as dda,Z as eda,y as fda,G as gda,h as hda,w as ida};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{Hr as r,Ir as Xq,Ru as x,Su as s,Tu as C,Vu as n,Wu as $,Yu as Zq,iv as o,kv as Mq,rt as d,st as Yq,wj as E,xj as Uq}from"./cli-0.1.14-j5sbzwhy.mjs";import{AU as N,CU as U,GU as V,QS as Jq,WU as a,fV as Qq}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as u,EV as J,FV as X,GV as g}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as zq}from"./cli-0.1.14-harz1d9d.mjs";import{yea as w,zea as qq}from"./cli-0.1.14-t3fga5je.mjs";import{Zla as i,bma as t}from"./cli-0.1.14-qn4ftczz.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
|
|
2
|
-
| \\ \\
|
|
3
|
-
| NEW TERMS \\__\\
|
|
4
|
-
| |
|
|
5
|
-
| ---------- |
|
|
6
|
-
| ---------- |
|
|
7
|
-
| ---------- |
|
|
8
|
-
| ---------- |
|
|
9
|
-
| ---------- |
|
|
10
|
-
| |
|
|
11
|
-
|______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
|
|
12
|
-
export{kq as rc,_q as sc,Aq as tc};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{Q3 as R2,S3 as u4}from"./cli-0.1.14-rc5yd94n.mjs";import{U3 as h,V3 as jZ}from"./cli-0.1.14-jbn4ywda.mjs";import{$4 as s0,K4 as O}from"./cli-0.1.14-stv1d0q3.mjs";import{$8 as P1,$_ as e,A6 as X5,C6 as WZ,Eaa as M1,Gaa as I8,Haa as V4,Iaa as i,Jaa as q2,Kaa as K0,Laa as q4,Maa as I2,N8 as Y1,O8 as e4,Paa as x2,Q$ as d,Qaa as GZ,U$ as M,V5 as X1,W5 as r4,X$ as F,X_ as b,Z_ as Q2,_5 as K,a$ as C,d6 as c0,i6 as x0,j$ as q0,j6 as u5,k6 as Q5,l9 as U8,mba as A1,n6 as qZ,oaa as W0,q_ as E1,qaa as k1,raa as _8,s$ as K4,sba as y8,u$ as zZ,vba as D,yba as V0,z_ as O8}from"./cli-0.1.14-2f7s5xbd.mjs";import{ada as H5,bda as L4,cda as z0,eda as h4,fda as f4,hda as N,ida as b0}from"./cli-0.1.14-9vc52dnj.mjs";import{Ida as Q1,wda as k0,yda as Z4}from"./cli-0.1.14-z8j2n955.mjs";import{yea as j,zea as J2}from"./cli-0.1.14-t3fga5je.mjs";import{Yea as p,_ea as M5,cfa as A5,ffa as J5,ifa as VZ,mfa as k2,qfa as t4,wfa as z,yfa as f0,zfa as j0}from"./cli-0.1.14-2mzb5ath.mjs";import{Afa as $5,Dfa as L,Ffa as u,Hfa as H2,Kfa as F4,Nfa as g}from"./cli-0.1.14-s9m1y93w.mjs";import{Gia as b1,Gja as y5,Hja as T5,Ija as C5,Jja as S5,Kia as e1,Pia as O0,Qia as t0,Vja as $2,ija as f,mla as r,pja as J1,sia as R1,tha as $0,uha as n5}from"./cli-0.1.14-r46jh9af.mjs";import{Lla as y,Mla as m0}from"./cli-0.1.14-akz49g5v.mjs";import{_la as m8,ama as S1,bma as B,cma as o}from"./cli-0.1.14-qn4ftczz.mjs";function R5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:V,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){V(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,V)=>{$.push({args:X,resolve:Y,reject:V,context:this}),Q()})}}var w5=()=>{};function L5(Z,$){return Z.find((J)=>J.includes($))??null}async function K5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=H2(),J=L(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await R2(),...J&&{requestHandler:new(await import("./index-0.1.14-vygpnv88.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.1.14-qvap58wt.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await X0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function Y3(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=H2(),J=L(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await R2(),...J&&{requestHandler:new(await import("./index-0.1.14-vygpnv88.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.1.14-qvap58wt.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await X0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function g4(Z){return Z.startsWith("anthropic.")}function m4(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function c4(Z){let $=m4(Z);for(let J of p4)if($.startsWith(`${J}.anthropic.`))return J;return}function q3(Z,$){let J=c4(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(g4(Z))return`${$}.${Z}`;return Z}var F5,V3,p4;var D5=B(()=>{m0();n();g();c0();u4();F5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw K(X),X}});V3=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let V=Y.modelArn.lastIndexOf("/");return V>=0?Y.modelArn.substring(V+1):Y.modelArn}catch($){return K($),null}});p4=["us","eu","apac","global"]});var w2,F2,L2,K2,D2,N2,U2,O2,_2,d0,n0,b2,Y0,z3,N5;var P2=B(()=>{w2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},F2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},L2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},K2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},D2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},N2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},U2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},O2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},d0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},n0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},b2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},Y0={haiku35:L2,haiku45:K2,sonnet35:F2,sonnet37:w2,sonnet40:D2,sonnet45:N2,sonnet46:b2,opus40:U2,opus41:O2,opus45:_2,opus46:d0,opus47:n0},z3=Object.values(Y0).map((Z)=>Z.firstParty),N5=Object.fromEntries(Object.entries(Y0).map(([Z,$])=>[$.firstParty,Z]))});function q(){let Z=D();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function x3(){return q()==="firstParty"}function B3(Z){let $=D();if($?.transport!=="github_copilot")return!1;return(Z?.trim()||$.model?.trim()||"").toLowerCase().includes("claude-")}function H3(){return q()}function R3(){let Z=D();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var t=B(()=>{V0()});function i0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of O5)J[Q]=Y0[Q][$];return J}async function d4(){let Z=i0("bedrock"),$;try{$=await F5()}catch(Q){return K(Q),Z}if(!$?.length)return Z;let J={};for(let Q of O5){let X=Y0[Q].firstParty;J[Q]=L5($,X)||Z[Q]}return J}function U5(Z){let $=e().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=N5[Q];if(Y&&X)J[Y]=X}return J}function l0(Z){let $;try{$=e().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function n4(){if(O0()!==null)return;if(q()!=="bedrock"){t0(i0(q()));return}_5()}function H(){let Z=O0();if(Z===null)return n4(),U5(i0(q()));return U5(Z)}async function _3(){if(O0()!==null)return;if(q()!=="bedrock"){t0(i0(q()));return}await _5()}var O5,_5;var a0=B(()=>{r();c0();w5();q0();D5();P2();t();O5=Object.keys(Y0);_5=R5(async()=>{if(O0()!==null)return;try{let Z=await d4();t0(Z)}catch(Z){K(Z)}})});function v3(){if(L(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=_0(),J=Z0()!==null;if(!$.hasToken&&!J)return!1;let Q=F(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function I3(){if(b5!==null)return b5;if(!U())return!1;let Z=v();if(Z==="max"||Z==="pro")return!0;let J=F().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var b5=null;var P5=B(()=>{n();W0();g()});function S3(Z){return Z}function M3(){return!1}function E5(){return null}function k5(){return!1}var v5=B(()=>{P5()});async function m3(){let $=F().oauthAccount?.accountUuid,J=Z0();if(!$||!J)return;let Q=`${N().BASE_API_URL}/api/claude_cli_profile`;try{return(await O.get(Q,{headers:{"x-api-key":J,"anthropic-beta":z0},params:{account_uuid:$},timeout:1e4})).data}catch(X){K(X)}}async function G0(Z){let $=`${N().BASE_API_URL}/api/oauth/profile`;try{return(await O.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){K(J)}}var E2=B(()=>{s0();b0();n();W0();c0()});import{mkdirSync as i4,writeFileSync as l4}from"fs";function o4(Z,$,J){if(!L(process.env.CLAUDE_CODE_REMOTE))return;try{i4(o0,{recursive:!0,mode:448}),l4(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function I5(Z,$){try{let Q=k2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!M5(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function h5({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let V=process.env[Z];if(!V){let G=I5($,J);return X(G),G}let W=parseInt(V,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${V}`,{level:"error"}),X(null),null;try{let G=k2(),x=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(x,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),o4($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let x=I5($,J);return X(x),x}}function r0(){return h5({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:a4,label:"OAuth token",getCached:y5,setCached:T5})}function v2(){return h5({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:s4,label:"API key",getCached:C5,setCached:S5})}var o0="/home/claude/.claude/remote",a4,s4,s3;var f5=B(()=>{r();j0();g();A5();t4();a4=`${o0}/.oauth_token`,s4=`${o0}/.api_key`,s3=`${o0}/.session_ingress_token`});async function g5(){if(process.platform==="darwin"){let Z=i();if((await x0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function e0(Z){return Z.slice(-20)}var p5=B(()=>{u5();I2()});function J9(Z){return Z?.name==="CredentialsProviderError"}function m5(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function y2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function c5(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var d5=B(()=>{j0()});class S{static instance=null;status={isAuthenticating:!1,output:[]};changed=$0();static getInstance(){if(!S.instance)S.instance=new S;return S.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(S.instance)S.instance.changed.clear(),S.instance=null}}var t5=B(()=>{n5()});var Z2="claude-code-20250219",i5="interleaved-thinking-2025-05-14",P0="context-1m-2025-08-07",l5="context-management-2025-06-27",a5="structured-outputs-2025-12-15",T2="web-search-2025-03-05",s5="advanced-tool-use-2025-11-20",o5="tool-search-tool-2025-10-19",V9="effort-2025-11-24",q9="task-budgets-2026-03-13",r5="prompt-caching-scope-2026-01-05",W9="fast-mode-2026-02-01",e5="redact-thinking-2026-02-12",Z1="token-efficient-tools-2026-03-28",z9="afk-mode-2026-01-31",G9="advisor-tool-2026-03-01",C2,j9;var S2=B(()=>{C2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),j9=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(q()!=="firstParty")return!1;return!L(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function V1(){if(!A())return!1;return $8()===null}function Z8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function $8(){if(q()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=k0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!Y1()&&k0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&$2()&&!J1()){if(!b("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(L(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=Z8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function v9(){return"opus"+(I0()?"[1m]":"")}function I9(Z){if(!A())return!1;if(!V1())return!1;if(!q1(Z))return!1;let $=e();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function q1(Z){if(!A())return!1;let $=Z??v0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function J8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(A()&&!M2)z("Fast mode cooldown expired, re-enabling fast mode"),M2=!0,z1.emit();B0={status:"active"}}return B0}function C9(Z,$){if(!A())return;B0={status:"cooldown",resetAt:Z,reason:$},M2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),W1.emit(Z,$)}function S9(){B0={status:"active"}}function M9(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},Q2("userSettings",{fastMode:void 0}),M((Z)=>({...Z,penguinModeOrgEnabled:!1})),A2.emit(!1)}function Q8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function X8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function h9(Z){let $=Q8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!X8(Z))Q2("userSettings",{fastMode:void 0}),M((J)=>({...J,penguinModeOrgEnabled:!1}));G1.emit($)}function Y8(){return J8().status==="cooldown"}function f9(Z,$){let J=A()&&V1()&&!!$&&q1(Z);if(J&&Y8())return"cooldown";if(J)return"on";return"off"}async function V8(Z){let $=`${N().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":z0}:{"x-api-key":Z.apiKey};return(await O.get($,{headers:J})).data}function g9(){if(!A())return;if(k.status!=="pending")return;k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function p9(){if(X1())return;if(!A())return;if(E0)return z("Fast mode prefetch in progress, returning in-flight promise"),E0;let Z=Z0();if(!(w()?.accessToken&&J0())&&!Z){k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-$1<q8){z("Skipping fast mode prefetch, fetched recently");return}$1=J;let Q=async()=>{let Y=w(),V=Y?.accessToken&&J0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!V)throw Error("No auth available");return V8(V)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(O.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let x=w()?.accessToken;if(x)await h2(x),Y=await Q();else throw W}else throw W}let V=k.status!=="pending"?k.status==="enabled":F().penguinModeOrgEnabled;if(k=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},V!==Y.enabled){if(!Y.enabled)Q2("userSettings",{fastMode:void 0});M((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),A2.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{E0=null}}return E0=X(),E0}var k9="Opus 4.7",B0,M2=!1,W1,z1,y9,T9,G1,A9,k,A2,u9,q8=30000,$1=0,E0=null;var j1=B(()=>{s0();b0();Q1();r();J2();n();e4();W0();j0();g();H0();t();r4();q0();n5();B0={status:"active"},W1=$0(),z1=$0(),y9=W1.subscribe,T9=z1.subscribe;G1=$0(),A9=G1.subscribe;k={status:"pending"},A2=$0(),u9=A2.subscribe});function B8(Z){for(let $ of x8)if($.pattern.test(Z))return $.cost;return}function f2(Z){if(A()&&Z)return W8;return T0}function H8(Z,$){return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function R8(Z,$){let J=P(Z);if(J===_(d0.firstParty)||J===_(n0.firstParty)){let X=$.speed==="fast";return f2(X)}let Q=B1[J];if(!Q){let X=B8(Z);if(X)return X;return w8(Z,J),B1[P(v0())]??j8}return Q}function w8(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),R1()}function F8(Z,$){let J=R8(Z,$);return H8(J,$)}function l9(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return F8(Z,J)}function H1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function w1(Z){return`${H1(Z.inputTokens)}/${H1(Z.outputTokens)} per Mtok`}var y0,x1,T0,W8,z8,G8,j8,x8,B1;var F1=B(()=>{J2();r();j1();P2();H0();y0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheReadTokens:0.3,webSearchRequests:0.01},x1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheReadTokens:1.5,webSearchRequests:0.01},T0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheReadTokens:0.5,webSearchRequests:0.01},W8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheReadTokens:3,webSearchRequests:0.01},z8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheReadTokens:0.08,webSearchRequests:0.01},G8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.1,webSearchRequests:0.01},j8=T0,x8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];B1={[_(L2.firstParty)]:z8,[_(K2.firstParty)]:G8,[_(F2.firstParty)]:y0,[_(w2.firstParty)]:y0,[_(D2.firstParty)]:y0,[_(N2.firstParty)]:y0,[_(b2.firstParty)]:y0,[_(U2.firstParty)]:x1,[_(O2.firstParty)]:x1,[_(_2.firstParty)]:T0,[_(d0.firstParty)]:T0,[_(n0.firstParty)]:T0}});function m(Z){return L8.includes(Z)}function R0(Z){return K8.includes(Z)}var L8,K8;var u2=B(()=>{L8=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];K8=["sonnet","opus","haiku"]});function D8(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function L1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function N8(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(L1(J,$))return!0;if(!$.startsWith("claude-")&&L1(J,`claude-${$}`))return!0;return!1}function K1(Z,$){for(let J of $){if(R0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function D1(Z){let $=C()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=l0(Z).trim().toLowerCase(),Y=J.map((V)=>V.trim().toLowerCase());if(Y.includes(X)){if(!R0(X)||!K1(X,Y))return!0}for(let V of Y)if(R0(V)&&!K1(V,Y)&&D8(X,V))return!0;if(m(X)){let V=T(X).toLowerCase();if(Y.includes(V))return!0}for(let V of Y)if(!R0(V)&&m(V)){if(T(V).toLowerCase()===X)return!0}for(let V of Y)if(!R0(V)&&!m(V)){if(N8(X,V))return!0}return!1}var N1=B(()=>{q0();u2();H0();a0()});function J$(){return Object.values(U1)}var U1,g2;var O1=B(()=>{U1={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g2=Object.fromEntries(Object.values(U1).map((Z)=>[Z.id,Z.name]))});function m2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function F0(){let Z=D();if(!Z?.model)return;return k1(Z.model)}function K$(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"codexspark";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return v1()}function D$(Z){return Z===H().opus40||Z===H().opus41||Z===H().opus45||Z===H().opus46||Z===H().opus47}function p2(){let Z,$=b1();if($!==void 0)Z=$;else{let J=C()||{},Q=m2(J.model);Z=F0()||Q||void 0}if(Z&&!D1(Z))return;return Z}function N$(){let Z=p2();if(Z!==void 0&&Z!==null)return T(Z);return I1()}function b8(){return w0()}function w0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.5-pro";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.7";if(q()!=="firstParty")return H().opus46;return H().opus47}function C0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"mistral-medium-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5";if(q()!=="firstParty")return H().sonnet45;return H().sonnet46}function v1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=F0();if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return H().haiku45}function U$(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(p2()==="opusplan"&&$==="plan"&&!Q)return w0();if(p2()==="haiku"&&$==="plan")return C0();return J}function v0(){let Z=F0();if(q()==="github"){let $=C()||{};return m2($.model)||Z||"github:copilot"}if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(X2())return w0()+(I0()?"[1m]":"");if(Y2())return w0()+(I0()?"[1m]":"");return C0()}function I1(){return T(v0())}function _(Z){if(Z=Z.toLowerCase(),Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function P(Z){return _(l0(Z))}function P8(Z=!1){if(X2()||Y2()){if(I0())return`Opus 4.7 with 1M context · Most capable for complex work${Z?_1(!0):""}`;return`Opus 4.7 · Most capable for complex work${Z?_1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function O$(Z){if(Z==="opusplan")return"Opus 4.7 in plan mode, else Sonnet 4.6";return T1(T(Z))}function _1(Z){if(q()!=="firstParty")return"";let $=w1(f2(Z));return` ·${Z?` (${P1})`:""} ${$}`}function I0(){if(L0()||n2()||q()!=="firstParty")return!1;if(U()&&v()===null)return!1;return!0}function _$(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return E1(Z);return T1(Z)}function y1(Z){if(q()==="openai"||q()==="gemini"||q()==="codex"||q()==="github"){if(g2[Z])return g2[Z];return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case H().opus47:return"Opus 4.7";case H().opus47+"[1m]":return"Opus 4.7 (1M context)";case H().opus46:return"Opus 4.6";case H().opus46+"[1m]":return"Opus 4.6 (1M context)";case H().opus45:return"Opus 4.5";case H().opus41:return"Opus 4.1";case H().opus40:return"Opus 4";case H().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case H().sonnet46:return"Sonnet 4.6";case H().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case H().sonnet45:return"Sonnet 4.5";case H().sonnet40:return"Sonnet 4";case H().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case H().sonnet37:return"Sonnet 3.7";case H().sonnet35:return"Sonnet 3.5";case H().haiku45:return"Haiku 4.5";case H().haiku35:return"Haiku 3.5";default:return null}}function T1(Z){let $=y1(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function b$(Z){let $=y1(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=m2(Z);if(!$)return C0();let J=$.toLowerCase(),Q=l(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return C0()+(Q?"[1m]":"");case"sonnet":return C0()+(Q?"[1m]":"");case"haiku":return v1()+(Q?"[1m]":"");case"opus":return w0()+(Q?"[1m]":"");case"best":return b8();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(q()==="firstParty"&&k8(X)&&v8())return w0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function P$(Z,$){if(l(Z)||!l($))return Z;if(c2(T(Z)))return Z+"[1m]";return Z}function k8(Z){return E8.includes(Z)}function v8(){return!L(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function E$(Z){if(Z===null){if(U())return`Default (${P8()})`;return`Default (${I1()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function k$(Z){if(q()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=P(Z);if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function v$(Z){return Z.replace(/\[(1|2)m\]/gi,"")}var E8;var H0=B(()=>{r();V0();n();d2();g();_8();a0();F1();q0();t();U8();N1();u2();O8();O1();E8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function t2(Z){return}async function y$(){}var C1=()=>{};var p1={};S1(p1,{prefetchOpenAICompatibleModels:()=>p8,getDiscoveredContextWindow:()=>T8,discoverOpenAICompatibleModelOptions:()=>g1});function T8(Z){return f1.get(Z)}function C8(){return(D()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function u1(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function S8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function M8(Z){let $=D()?.apiKey?.trim();if(!$)return{};if(S8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(u1(Z))J["api-key"]=$;return J}function A8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&u1(Z)?(Y)=>{try{let V=new URL(Y);return V.searchParams.set("api-version",Q),V.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function h8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function f8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function u8(Z,$){let J=new Set;for(let Q of Z)try{let X=await O.get(Q,{headers:$,timeout:h1}),Y=[];for(let V of X.data?.data??[]){let W=V.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=V.name?.trim()||W,x=V.context_length??null;if(x&&x>0)f1.set(W,x);let R=x?` · ${f8(x)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((V,W)=>{let G=String(V.value).split("/")[0]??"",x=String(W.value).split("/")[0]??"",R=G.localeCompare(x);return R!==0?R:String(V.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function g8(Z,$){try{let J=await O.get(Z,{headers:$,timeout:h1}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function g1(){if(q()!=="openai")return[];let Z=C8(),$=M8(Z),J=await u8(A8(Z),$);if(J.length>0)return J;let Q=h8(Z);if(Q)return g8(Q,$);return[]}function p8(){if(S0)return S0;return S0=(async()=>{if(!A1()?.startsWith("openai:"))return;try{let $=await g1();if($.length>0)M1($)}catch{}finally{S0=null}})(),S0}var h1=5000,f1,S0=null;var m1=B(()=>{s0();V0();y8();j0();t();I8();f1=new Map});function d1(Z,$,J){let Q=D()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=c1($,J);if(X!==void 0)return X;return c1(Z,J)}function c1(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function n1(Z){let $=d1(c8,n8,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(m1(),m8(p1));return J(Z)}catch{return}}function t1(Z){return d1(d8,t8,Z)}var c8,d8,n8,t8;var i1=B(()=>{V0();c8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},d8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},n8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),t8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function l1(){let Z=D()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function L0(){return L(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(L0())return!1;return/\[1m\]/i.test(Z)}function c2(Z){if(L0())return!1;let $=P(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")}function o$(Z,$){if(l(Z))return 1e6;if(l1()){let Q=n1(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),i8}let J=t2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>i2&&L0())return i2;return J.max_input_tokens}if($?.includes(P0)&&c2(Z))return 1e6;if(s8(Z))return 1e6;return i2}function s8(Z){if(L0())return!1;if(l(Z))return!1;if(!P(Z).includes("sonnet-4-6"))return!1;return F().clientDataCache?.coral_reef_sonnet==="true"}function r$(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function o8(Z){let $,J;if(l1()){let Y=t1(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=P(Z);if(Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=l8,J=a8;let X=t2(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}function e$(Z){return o8(Z).upperLimit-1}var i2=200000,i8,l$=20000,l8=32000,a8=64000,a$=8000,s$=64000;var d2=B(()=>{S2();V0();W0();g();H0();C1();i1();i8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var r8,a1;var s1=B(()=>{m0();t();r8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],a1=y((Z,$)=>{if(q()==="firstParty")return;let J=Z.toLowerCase();for(let Q of r8){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((V)=>V.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function e8(Z){let $=[],J=[];for(let Q of Z)if($4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function FJ(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=e8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${$4.join(", ")}`);return $.length>0?$:void 0}function o1(Z){let $=a1(Z,"interleaved_thinking");if($!==void 0)return $;let J=P(Z),Q=q();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function ZZ(Z){let $=P(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function $Z(Z){let $=P(Z),J=q();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function JZ(Z){let $=P(Z),J=q();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-haiku-4-5")}function LJ(Z){let $=P(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function KJ(){let Z=q();if(Z==="vertex"||Z==="bedrock")return o5;return s5}function r1(){return(q()==="firstParty"||q()==="foundry")&&!L(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function DJ(){return q()==="firstParty"&&!L(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function NJ(Z,$){let J=[...J4(Z)];if($?.isAgenticQuery){if(!J.includes(Z2))J.push(Z2)}let Q=e1();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function Q4(){l2.cache?.clear?.(),J4.cache?.clear?.(),QZ.cache?.clear?.()}var $4,l2,J4,QZ;var X4=B(()=>{m0();Q1();r();S2();b0();n();d2();g();H0();s1();t();q0();$4=[P0];l2=y((Z)=>{let $=[],J=P(Z).includes("haiku"),Q=q(),X=r1();if(!J)$.push(Z2);if(U())$.push(z0);if(l(Z))$.push(P0);if(!L(process.env.DISABLE_INTERLEAVED_THINKING)&&o1(Z))$.push(i5);if(X&&o1(Z)&&!f()&&e().showThinkingSummaries!==!0)$.push(e5);let Y=$Z(Z);if(r1()&&Y)$.push(l5);let V=Z4("tengu_tool_pear"),W=!V&&(L(process.env.CLAUDE_CODE_JSON_TOOL_USE)||k0("tengu_amber_json_tools",!1));if(X&&JZ(Z)&&V)$.push(a5);if(X&&W)$.push(Z1);if(Q==="vertex"&&ZZ(Z))$.push(T2);if(Q==="foundry")$.push(T2);if(X)$.push(r5);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),J4=y((Z)=>{let $=l2(Z);if(q()==="bedrock")return $.filter((J)=>!C2.has(J));return $}),QZ=y((Z)=>{return l2(Z).filter((J)=>C2.has(J))})});import{execFile as XZ}from"child_process";function Y4(Z){return new Promise(($)=>{XZ("security",["find-generic-password","-a",q2(),"-w","-s",Z],{encoding:"utf-8",timeout:YZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function PJ(){if(process.platform!=="darwin"||V2||u())return;let Z=Y4(i(V4)),$=Y4(i());V2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)q4(J.stdout);if(!Q.timedOut)a2={stdout:Q.stdout}})}async function EJ(){if(V2)await V2}function W4(){return a2}function s2(){a2=null}var YZ=1e4,a2=null,V2=null;var z4=B(()=>{g();I2()});function o2(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,x)=>{W?.removeEventListener("abort",G),x()},Z,$,V,Q);function V(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",V,{once:!0}),J?.unref)Y.unref()})}var G4=()=>{};function IJ(){return j4}function x4(){j4.clear()}var j4;var B4=B(()=>{j4=new Map});var aZ={};S1(aZ,{validateForceLoginOrg:()=>lZ,saveOAuthTokensIfNeeded:()=>I4,saveApiKey:()=>x5,removeApiKey:()=>MZ,refreshGcpCredentialsIfNeeded:()=>j5,refreshGcpAuth:()=>k4,refreshAwsAuth:()=>P4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>yZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>TZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>DZ,isUsing3PServices:()=>j2,isTeamSubscriber:()=>pZ,isTeamPremiumSubscriber:()=>Y2,isProSubscriber:()=>n2,isOverageProvisioningAllowed:()=>uZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>S4,isMaxSubscriber:()=>X2,isGcpAuthRefreshFromProjectSettings:()=>G5,isEnterpriseSubscriber:()=>mZ,isCustomApiKeyApproved:()=>SZ,isConsumerSubscriber:()=>tZ,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>W5,isAwsAuthRefreshFromProjectSettings:()=>V5,isAnthropicAuthEnabled:()=>U0,is1PApiCustomer:()=>fZ,hasProfileScope:()=>J0,hasOpusAccess:()=>gZ,hasAnthropicApiKeyAuth:()=>wZ,handleOAuth401Error:()=>h2,getSubscriptionType:()=>v,getSubscriptionName:()=>T4,getRateLimitTier:()=>y4,getOtelHeadersFromHelper:()=>dZ,getOauthAccountInfo:()=>G2,getConfiguredApiKeyHelper:()=>a,getClaudeAIOAuthTokensAsync:()=>h0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>_0,getApiKeyHelperElapsedMs:()=>FZ,getApiKeyFromConfigOrMacOSKeychain:()=>B2,getApiKeyFromApiKeyHelperCached:()=>e2,getApiKeyFromApiKeyHelper:()=>b4,getAnthropicApiKeyWithSource:()=>u0,getAnthropicApiKey:()=>Z0,getAccountInformation:()=>iZ,clearOAuthTokenCache:()=>B5,clearGcpCredentialsCache:()=>IZ,clearAwsCredentialsCache:()=>bZ,clearApiKeyHelperCache:()=>KZ,checkGcpCredentialsValid:()=>E4,checkAndRefreshOAuthTokenIfNeeded:()=>g0,calculateApiKeyHelperTTL:()=>_4});import{exec as U4}from"child_process";import{mkdir as xZ,stat as BZ}from"fs/promises";import{join as HZ}from"path";function z2(){return L(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function U0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=j2(),J=(C()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=u0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!z2()||Y&&!z2())}function _0(){if(u()){if(a())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!z2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(r0()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(a()&&!z2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(N0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function Z0(){let{key:Z}=u0();return Z}function wZ(){try{let{key:Z,source:$}=u0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function u0(Z={}){let $=(()=>{let V=D();if(V?.transport!=="anthropic")return;let W=V.apiKey?.trim();return W&&W.length>0?W:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(a())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:e2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=F4()?void 0:$;if($2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(L(process.env.CI)){let V=v2();if(V)return{key:V,source:"ANTHROPIC_API_KEY"};if(!j2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!j2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&F().customApiKeyResponses?.approved?.includes(e0(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=v2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(a()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:e2(),source:"apiKeyHelper"}}let Y=B2();if(Y)return Y;return{key:null,source:"none"}}function a(){if(u())return b("flagSettings")?.apiKeyHelper;return(C()||{}).apiKeyHelper}function O4(){let Z=a();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function Y5(){return(C()||{}).awsAuthRefresh}function V5(){let Z=Y5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function q5(){return(C()||{}).awsCredentialExport}function W5(){let Z=q5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function _4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return RZ}function FZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function b4(Z){if(!a())return null;let $=_4();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:H4(Z,!1,D0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:H4(Z,!0,D0),startedAt:Date.now()},c.promise}async function H4(Z,$,J){try{let Q=await LZ(Z);if(J!==D0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==D0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===D0)c=null}}async function LZ(Z){let $=a();if(!$)return null;if(O4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("apiKeyHelper invoked before trust check",Y),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await x0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function e2(){return I?.value??null}function KZ(){D0++,I=null,c=null}function DZ(Z){if(O4()&&!d())return;b4(Z)}async function UZ(){let Z=Y5();if(!Z)return!1;if(V5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsAuthRefresh invoked before trust check",J),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await y2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return P4(Z)}}function P4(Z){z("Running AWS auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=U4(Z,{timeout:OZ});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudio/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function _Z(){let Z=q5();if(!Z)return null;if(W5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsCredentialExport invoked before trust check",J),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await y2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await x0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=J5($.stdout.trim());if(!m5(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudio/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function bZ(){X0.cache.clear()}function z5(){return(C()||{}).gcpAuthRefresh}function G5(){let Z=z5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function E4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=o2(PZ).then(()=>{throw new M4("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function kZ(){let Z=z5();if(!Z)return!1;if(G5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("gcpAuthRefresh invoked before trust check",J),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await E4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return k4(Z)}function k4(Z){z("Running GCP auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=U4(Z,{timeout:vZ});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudio/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function IZ(){j5.cache.clear()}function yZ(){if(!z5())return;if(G5()){if(!d()&&!f())return}j5()}function TZ(){let Z=Y5(),$=q5();if(!Z&&!$)return;if(V5()||W5()){if(!d()&&!f())return}X0(),H()}function CZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function x5(Z){if(!CZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await v4();let $=!1;if(process.platform==="darwin")try{let Q=i(),X=q2(),Y=Buffer.from(Z,"utf-8").toString("hex"),V=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
|
|
2
|
-
`;await x0("security",["-i"],{input:V,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){K(Q),j("tengu_api_key_keychain_error",{error:p(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=e0(Z);M((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),B2.cache.clear?.(),s2()}function SZ(Z){let $=F(),J=e0(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function MZ(){await v4(),M((Z)=>({...Z,primaryApiKey:void 0})),B2.cache.clear?.(),s2()}async function v4(){try{await g5()}catch(Z){K(Z)}}function I4(Z){if(!N0(Z.scopes))return j("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return j("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=x2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)j("tengu_oauth_tokens_saved",{storageBackend:J});else j("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),Q4(),x4(),Y}catch(Q){return K(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function B5(){w.cache?.clear?.(),K0()}async function AZ(){try{let{mtimeMs:Z}=await BZ(HZ($5(),".credentials.json"));if(Z!==R4)R4=Z,B5()}catch{w.cache?.clear?.()}}function h2(Z){let $=r2.get(Z);if($)return $;let J=hZ(Z).finally(()=>{r2.delete(Z)});return r2.set(Z,J),J}async function hZ(Z){B5();let $=await h0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return g0(0,!0)}async function h0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||r0())return w();try{let J=(await x2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return K(Z),null}}function g0(Z=0,$=!1){if(Z===0&&!$){if(M0)return M0;return M0=Z5(Z,$).finally(()=>{M0=null}),M0}return Z5(Z,$)}async function Z5(Z,$){await AZ();let Q=w();if(!$){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!N0(Q.scopes))return!1;w.cache?.clear?.(),K0();let X=await h0();if(!X?.refreshToken||!A0(X.expiresAt))return!1;let Y=$5();await xZ(Y,{recursive:!0});let V;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),V=await K4(Y),j("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return j("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await o2(1000+Math.random()*1000),Z5(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return K(W),j("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),K0();let W=await h0();if(!W?.refreshToken||!A0(W.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let G=await D4(W.refreshToken,{scopes:N0(W.scopes)?void 0:W.scopes});return I4(G),w.cache?.clear?.(),K0(),!0}catch(W){K(W),w.cache?.clear?.(),K0();let G=await h0();if(G&&!A0(G.expiresAt))return j("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{j("tengu_oauth_token_refresh_lock_releasing",{}),await V(),j("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!U0())return!1;return N0(w()?.scopes)}function J0(){return w()?.scopes?.includes(L4)??!1}function fZ(){{let Z=D()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function G2(){return U0()?F().oauthAccount:void 0}function uZ(){let $=G2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function gZ(){let Z=v();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function v(){if(k5())return E5();if(!U0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function X2(){return v()==="max"}function pZ(){return v()==="team"}function Y2(){return v()==="team"&&y4()==="default_claude_max_5x"}function mZ(){return v()==="enterprise"}function n2(){return v()==="pro"}function y4(){if(!U0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function T4(){switch(v()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function j2(){let Z=D()?.transport;if(!Z)return!1;return Z!=="anthropic"}function C4(){return(C()||{}).otelHeadersHelper}function S4(){let Z=C4();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function dZ(){let Z=C4();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||cZ.toString());if(W2&&Date.now()-w4<$)return W2;if(S4()){if(!d())return{}}try{let J=Q5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=J5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return W2=Q,w4=Date.now(),W2}catch(J){throw K(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function nZ(Z){return Z==="max"||Z==="pro"}function tZ(){let Z=v();return U()&&Z!==null&&nZ(Z)}function iZ(){if(q()!=="firstParty")return;let{source:$}=_0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=T4();else J.tokenSource=$;let{key:Q,source:X}=u0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let V=G2()?.organizationName;if(V)J.organization=V}let Y=G2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function lZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!U0())return{valid:!0};let Z=b("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await g0();let $=w();if(!$)return{valid:!0};let{source:J}=_0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await G0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
-
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
-
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
-
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
-
Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
-
different organization than required by this machine's managed settings.
|
|
8
|
-
|
|
9
|
-
Required organization: ${Z}
|
|
10
|
-
Token organization: ${Y}
|
|
11
|
-
|
|
12
|
-
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
|
|
13
|
-
but this machine requires organization ${Z}.
|
|
14
|
-
|
|
15
|
-
Please log in with the correct organization: claude auth login`}}var RZ=300000,I=null,c=null,D0=0,NZ=3600000,OZ=180000,X0,PZ=5000,EZ=3600000,vZ=180000,j5,B2,w,R4=0,r2,M0=null,W2=null,w4=0,cZ=1740000,M4;var n=B(()=>{jZ();u5();m0();b0();J2();a0();t();r();V0();v5();N4();E2();f5();p5();d5();t5();X4();W0();j0();g();A5();qZ();zZ();c0();WZ();GZ();z4();I2();q0();G4();VZ();B4();X0=X5(async()=>{let Z=await UZ(),$=await _Z();if(Z||$)await c5();return $},NZ);j5=X5(async()=>{return await kZ()},EZ);B2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=W4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=i();try{let Q=Q5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){K(Q)}}}let Z=F();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=r0();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=x2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return K($),null}});r2=new Map;M4=class M4 extends Error{}});function N0(Z){return Boolean(Z?.includes(H5))}function sZ(Z){return Z?.split(" ").filter(Boolean)??[]}function DQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:V,loginHint:W,loginMethod:G}){let x=X?N().CLAUDE_AI_AUTHORIZE_URL:N().CONSOLE_AUTHORIZE_URL,R=new URL(x);R.searchParams.append("code","true"),R.searchParams.append("client_id",N().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?N().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let Q0=Y?[H5]:f4;if(R.searchParams.append("scope",Q0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),V)R.searchParams.append("orgUUID",V);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function NQ(Z,$,J,Q,X=!1,Y){let V={grant_type:"authorization_code",code:Z,redirect_uri:X?N().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:N().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)V.expires_in=Y;let W=await O.post(N().TOKEN_URL,V,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return j("tengu_oauth_token_exchange_success",{}),W.data}async function D4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:N().CLIENT_ID,scope:(($?.length)?$:h4).join(" ")};try{let Q=await O.post(N().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:V=Z,expires_in:W}=X,G=Date.now()+W*1000,x=sZ(X.scope);j("tengu_oauth_token_refresh_success",{});let R=F(),Q0=w(),E=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&Q0?.subscriptionType!=null&&Q0?.rateLimitTier!=null?null:await oZ(Y);if(E&&R.oauthAccount){let s={};if(E.displayName!==void 0)s.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")s.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)s.billingType=E.billingType;if(E.accountCreatedAt!==void 0)s.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)s.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(s).length>0)M((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...s}:p0.oauthAccount}))}return{accessToken:Y,refreshToken:V,expiresAt:G,scopes:x,subscriptionType:E?.subscriptionType??Q0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??Q0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=O.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function UQ(Z){let $=await O.get(N().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!F().oauthAccount)throw Error("OAuth account information not found in config");M((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function OQ(Z){try{let $=await O.post(N().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await x5(J),j("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw j("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function A0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function oZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return j("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function _Q(){let $=F().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!J0())return null;let X=(await G0(J))?.organization?.uuid;if(!X)return null;return X}async function bQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!F().oauthAccount)A4({accountUuid:Z,emailAddress:$,organizationUuid:J})}await g0();let X=F();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!J0())return!1;let Y=w();if(Y?.accessToken){let V=await G0(Y.accessToken);if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return A4({accountUuid:V.account.uuid,emailAddress:V.account.email,organizationUuid:V.organization.uuid,displayName:V.account.display_name||void 0,hasExtraUsageEnabled:V.organization.has_extra_usage_enabled??!1,billingType:V.organization.billing_type??void 0,accountCreatedAt:V.account.created_at,subscriptionCreatedAt:V.organization.subscription_created_at??void 0}),!0}}return!1}function A4({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:V,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:V,subscriptionCreatedAt:W};if(Q)G.displayName=Q;M((x)=>{if(x.oauthAccount?.accountUuid===G.accountUuid&&x.oauthAccount?.emailAddress===G.emailAddress&&x.oauthAccount?.organizationUuid===G.organizationUuid&&x.oauthAccount?.displayName===G.displayName&&x.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&x.oauthAccount?.billingType===G.billingType&&x.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&x.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return x;return{...x,oauthAccount:G}})}var N4=B(()=>{s0();J2();b0();n();W0();j0();E2()});
|
|
16
|
-
export{R5 as uZ,w5 as vZ,Y3 as wZ,V3 as xZ,g4 as yZ,c4 as zZ,q3 as AZ,D5 as BZ,d0 as CZ,n0 as DZ,Y0 as EZ,P2 as FZ,q as GZ,x3 as HZ,B3 as IZ,H3 as JZ,R3 as KZ,t as LZ,H as MZ,_3 as NZ,a0 as OZ,v3 as PZ,I3 as QZ,P5 as RZ,S3 as SZ,M3 as TZ,v5 as UZ,m3 as VZ,G0 as WZ,E2 as XZ,N0 as YZ,sZ as ZZ,DQ as _Z,NQ as $Z,D4 as a0,UQ as b0,OQ as c0,A0 as d0,oZ as e0,_Q as f0,bQ as g0,A4 as h0,N4 as i0,s3 as j0,o4 as k0,I5 as l0,f5 as m0,e0 as n0,p5 as o0,J9 as p0,d5 as q0,S as r0,t5 as s0,P0 as t0,l5 as u0,a5 as v0,V9 as w0,q9 as x0,r5 as y0,W9 as z0,e5 as A0,z9 as B0,G9 as C0,j9 as D0,S2 as E0,A as F0,V1 as G0,$8 as H0,k9 as I0,v9 as J0,I9 as K0,q1 as L0,y9 as M0,T9 as N0,J8 as O0,C9 as P0,S9 as Q0,M9 as R0,A9 as S0,h9 as T0,Y8 as U0,f9 as V0,u9 as W0,g9 as X0,p9 as Y0,j1 as Z0,y0 as _0,z8 as $0,G8 as a1,f2 as b1,F8 as c1,l9 as d1,w1 as e1,F1 as f1,L8 as g1,u2 as h1,D1 as i1,N1 as j1,J$ as k1,O1 as l1,K$ as m1,D$ as n1,p2 as o1,N$ as p1,b8 as q1,w0 as r1,C0 as s1,v1 as t1,U$ as u1,v0 as v1,I1 as w1,_ as x1,P as y1,P8 as z1,O$ as A1,_1 as B1,I0 as C1,_$ as D1,y1 as E1,T1 as F1,b$ as G1,T as H1,P$ as I1,v8 as J1,E$ as K1,k$ as L1,v$ as M1,H0 as N1,y$ as O1,C1 as P1,g1 as Q1,p8 as R1,m1 as S1,l$ as T1,a$ as U1,s$ as V1,L0 as W1,l as X1,o$ as Y1,s8 as Z1,r$ as _1,o8 as $1,e$ as a2,d2 as b2,a1 as c2,s1 as d2,FJ as e2,JZ as f2,LJ as g2,KJ as h2,r1 as i2,DJ as j2,J4 as k2,QZ as l2,NJ as m2,Q4 as n2,X4 as o2,PJ as p2,EJ as q2,z4 as r2,o2 as s2,G4 as t2,IJ as u2,x4 as v2,B4 as w2,U0 as x2,_0 as y2,Z0 as z2,wZ as A2,u0 as B2,a as C2,V5 as D2,W5 as E2,_4 as F2,FZ as G2,b4 as H2,e2 as I2,KZ as J2,DZ as K2,P4 as L2,X0 as M2,bZ as N2,G5 as O2,E4 as P2,k4 as Q2,j5 as R2,IZ as S2,yZ as T2,TZ as U2,B2 as V2,x5 as W2,SZ as X2,MZ as Y2,I4 as Z2,w as _2,B5 as $2,h2 as a3,h0 as b3,g0 as c3,U as d3,J0 as e3,fZ as f3,G2 as g3,uZ as h3,gZ as i3,v as j3,X2 as k3,pZ as l3,Y2 as m3,mZ as n3,n2 as o3,y4 as p3,T4 as q3,j2 as r3,S4 as s3,dZ as t3,tZ as u3,iZ as v3,lZ as w3,aZ as x3,n as y3};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kp as W,Np as P,_H as U,kH as Y,ul as Q,vl as I}from"./cli-0.1.14-j5sbzwhy.mjs";import{Dca as B,Eca as H,_ca as f}from"./cli-0.1.14-cdby401e.mjs";import{Oda as J,Pda as F}from"./cli-0.1.14-mgcmwvcn.mjs";import{mla as $,vha as v}from"./cli-0.1.14-r46jh9af.mjs";import{bma as Z}from"./cli-0.1.14-qn4ftczz.mjs";import{randomUUID as V}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??V(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:w(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function X(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function w(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:G(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:X(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${B}>`)||h.content.includes(`<${H}>`)))return[z(h.content,h.uuid)];return[];default:return[]}})}function z(j,h){let x=J(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function G(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var R=Z(()=>{$();f();I();F();U();P()});
|
|
2
|
-
export{S as Sc,X as Tc,w as Uc,r as Vc,z as Wc,T as Xc,R as Yc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Vg as M,Wg as W,sJ as O,tJ as P,uJ as Q,vJ as U,yJ as X}from"./cli-0.1.14-j5sbzwhy.mjs";import{bma as V}from"./cli-0.1.14-qn4ftczz.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
-
export{F as Oe,$ as Pe};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{S6 as Q,g7 as _}from"./cli-0.1.14-2f7s5xbd.mjs";import{vca as I,wca as V}from"./cli-0.1.14-cdby401e.mjs";import{wfa as B,zfa as X}from"./cli-0.1.14-2mzb5ath.mjs";import{bma as T}from"./cli-0.1.14-qn4ftczz.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{V();X();_();A=new Map});
|
|
2
|
-
export{j as D4,P as E4,Y as F4,S as G4,O as H4,D as I4,Z as J4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bma as F}from"./cli-0.1.14-qn4ftczz.mjs";function V(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function A(q,z){let B=q;for(let J of z){if(B==null||typeof B!=="object")return;B=B[J]}return B}function L(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let K=q.toLowerCase();return K.includes("localhost")||K.includes("127.0.0.1")||K.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let J=B.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);if(J){let K=Number(J[1]),Q=Number(J[2]);if(K===10)return!0;if(K===172&&Q>=16&&Q<=31)return!0;if(K===192&&Q===168)return!0;if(K===127)return!0;if(K===169&&Q===254)return!0;if(K===100&&Q>=64&&Q<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||/^fc[0-9a-f]{0,2}:/.test(B)||/^fd[0-9a-f]{0,2}:/.test(B))return!0;return!1}function O(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(L(B))return"self-hosted";let J=B.toLowerCase();if(J.includes(":11434"))return"ollama";if(J.includes("moonshot")||J.includes("kimi"))return"kimi";if(J.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function f(q){if(!q||typeof q!=="object")return 0;let z=q,B=V(z.cache_read_input_tokens);if(B>0)return B;let J=V(A(q,["input_tokens_details","cached_tokens"]))||V(A(q,["prompt_tokens_details","cached_tokens"]));if(J>0)return J;let K=V(z.cached_tokens);if(K>0)return K;let Q=V(z.prompt_cache_hit_tokens);if(Q>0)return Q;let W=V(z.cached_content_token_count);if(W>0)return W;return 0}function Y(q){let z=f(q),B=q??{},J=V(B.input_tokens)||V(B.prompt_tokens),K=J>=z?J-z:J,Q=V(B.output_tokens)||V(B.completion_tokens);return{input_tokens:K,output_tokens:Q,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function k(q,z){if(!q||typeof q!=="object")return $;let B=q,J=V(B.cache_read_input_tokens),K=V(B.cache_creation_input_tokens),Q=V(B.input_tokens);if(z==="copilot"||z==="ollama")return $;if(z==="self-hosted"&&J===0&&K===0)return $;let W=J+K+Q;return{read:J,created:K,total:W,hitRate:W>0?Math.min(1,J/W):null,supported:!0}}function _(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${j(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${j(q.read)}`,`created=${j(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function j(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(/\.0$/,"")}k`;return`${(q/1e6).toFixed(1).replace(/\.0$/,"")}m`}function X(q,z){if(!q.supported&&!z.supported)return $;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,J=q.created+z.created,K=q.total+z.total;return{read:B,created:J,total:K,hitRate:K>0?B/K:null,supported:!0}}var $;var H=F(()=>{$={read:0,created:0,total:0,hitRate:null,supported:!1}});function D(q){return{currentTurn:Z,session:Z,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function S(q,z){G.currentTurn=X(G.currentTurn,q),G.session=X(G.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(G.history[G.historyWriteIdx]=B,G.historyWriteIdx=(G.historyWriteIdx+1)%G.historyMax,G.historySize<G.historyMax)G.historySize++}function M(){G.currentTurn=Z}function E(){G.currentTurn=Z,G.session=Z,G.history=Array(G.historyMax),G.historyWriteIdx=0,G.historySize=0}function w(){return G.currentTurn}function P(){return G.session}function T(){if(G.historySize<G.historyMax)return G.history.slice(0,G.historySize);let q=G.history.slice(G.historyWriteIdx),z=G.history.slice(0,G.historyWriteIdx);return q.concat(z)}var y=500,Z,G;var x=F(()=>{H();Z={read:0,created:0,total:0,hitRate:null,supported:!1};G=D(y)});
|
|
2
|
-
export{O as dS,Y as eS,k as fS,_ as gS,I as hS,H as iS,S as jS,M as kS,E as lS,w as mS,P as nS,T as oS,x as pS};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bma as V}from"./cli-0.1.14-qn4ftczz.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
|
|
2
|
-
export{b as nla,T as ola,K as pla,z as qla,B as rla,x as sla,k as tla,m as ula,G as vla,O as wla,y as xla,l as yla,o as zla,i as Ala,D as Bla,R as Cla,U0 as Dla,E0 as Ela,I0 as Fla,D0 as Gla,x0 as Hla,O0 as Ila,M as Jla,p0 as Kla,j6 as Lla,nq as Mla};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hr as S,Ir as $q,Pu as u,Qu as Wq,XA as c,XJ as h,YA as T,YJ as a,ZA as Vq,_J as Iq,aB as r,bB as Fq,iv as g,kv as _q,uj as m,vj as Xq,wj as V,xj as Yq}from"./cli-0.1.14-j5sbzwhy.mjs";import{ER as p,FR as zq}from"./cli-0.1.14-dqads3y3.mjs";import{CS as j,DS as Qq,ES as d,GS as Zq,qS as w,rS as Nq}from"./cli-0.1.14-w6nzk5dc.mjs";import{$S as y,AU as J,CU as N,ZS as v,_S as H,fV as Lq}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as _,EV as q,FV as G,GV as B}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as Jq}from"./cli-0.1.14-harz1d9d.mjs";import{Z_ as b,j$ as Gq}from"./cli-0.1.14-2f7s5xbd.mjs";import{Zla as e,bma as qq}from"./cli-0.1.14-qn4ftczz.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=h((L)=>L.settings.syntaxHighlightingDisabled??!1),E=a();j("ThemePicker",!0);let W=m("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);d("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=p($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else u(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(g,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Oq,{patch:Aq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(S,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Oq,Aq;var Uq=qq(()=>{zq();Nq();Lq();Qq();Zq();Xq();Iq();Wq();Gq();_q();$q();Yq();Vq();Fq();B();Q=e(Jq(),1),Oq=r,Aq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
-
export{mq as Ff,Uq as Gf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{LV as K,NV as Z}from"./cli-0.1.14-jf8019sb.mjs";import{OV as J,QV as Y}from"./cli-0.1.14-d4zkffre.mjs";import{_2 as D,d0 as B,d3 as F,e3 as G,i0 as W,y3 as X}from"./cli-0.1.14-a6kwmqhz.mjs";import{$4 as V,K4 as z}from"./cli-0.1.14-stv1d0q3.mjs";import{hda as y,ida as Q}from"./cli-0.1.14-9vc52dnj.mjs";import{bma as N}from"./cli-0.1.14-qn4ftczz.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
|
|
2
|
-
export{P as Lg,_ as Mg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$J as L,aK as M,qw as z,rw as h,uh as J,vh as Z}from"./cli-0.1.14-j5sbzwhy.mjs";import{QS as X}from"./cli-0.1.14-seq2fm2d.mjs";import{HV as W}from"./cli-0.1.14-harz1d9d.mjs";import{Oka as H,mla as V}from"./cli-0.1.14-r46jh9af.mjs";import{Zla as D,bma as U}from"./cli-0.1.14-qn4ftczz.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{M();V();h();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
-
export{v as Ke,A as Le};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{fd as w,gd as _,hd as D,id as L,jd as A,kd as h,ld as y}from"./cli-0.1.14-zrmretjp.mjs";import{DG as X,EG as O,Pu as j,Qu as I,Wj as R,Zj as b,pu as W,su as V,uu as C}from"./cli-0.1.14-j5sbzwhy.mjs";import{_5 as U,d6 as M,e6 as K,f6 as N}from"./cli-0.1.14-2f7s5xbd.mjs";import{yea as Q,zea as S}from"./cli-0.1.14-t3fga5je.mjs";import{Yea as B,cfa as v}from"./cli-0.1.14-2mzb5ath.mjs";import{Pfa as x,Tfa as F}from"./cli-0.1.14-whe4bxfr.mjs";N();v();I();M();O();b();F();C();S();y();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${K.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};Q("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await w(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await _(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${K.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);Q("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await L(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await A();if(!z.success)throw Error(z.message);console.log(`${K.tick} ${z.message}`),Q("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await h(z,J);if(!q.success)throw Error(q.message);if(x(`${K.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await j(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as k,a as l,i as m,u as n,n as o,r as p};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Dfa as w,Nfa as F}from"./cli-0.1.14-s9m1y93w.mjs";import{bma as D}from"./cli-0.1.14-qn4ftczz.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
|
|
2
|
-
export{Q as HP,V as IP,L as JP};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bha as z,Fha as B,mla as H}from"./cli-0.1.14-r46jh9af.mjs";import{bma as x}from"./cli-0.1.14-qn4ftczz.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
|
|
2
|
-
export{Q as tca,J as uca,R as vca,K as wca,U as xca,V as yca,W as zca,X as Aca,Y as Bca,Z as Cca,$ as Dca,j as Eca,q as Fca,A as Gca,G as Hca,L as Ica,_ as Jca,b as Kca,k as Lca,p as Mca,v as Nca,C as Oca,O as Pca,y as Qca,S as Rca,f as Sca,m as Tca,u as Uca,h as Vca,l as Wca,w as Xca,g as Yca,d as Zca,M as _ca};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BR as ZJ,jR as YJ,nR as DJ,rR as CJ,sR as c,tR as vJ}from"./cli-0.1.14-4mde8z7h.mjs";import{fX as SJ,mX as TJ}from"./cli-0.1.14-71m91842.mjs";import{K6 as xJ,Q7 as yJ,_5 as p,d6 as jJ,g7 as NJ,m6 as OJ,n6 as FJ,s$ as S,u$ as wJ}from"./cli-0.1.14-2f7s5xbd.mjs";import{oca as R,qca as VJ,rca as w,sca as XJ}from"./cli-0.1.14-kmsvd61a.mjs";import{Yea as W,Zea as C,cfa as e,efa as v,ffa as y,ifa as JJ,wfa as G,zfa as QJ}from"./cli-0.1.14-2mzb5ath.mjs";import{Afa as s,Bfa as I,Dfa as t,Nfa as a}from"./cli-0.1.14-s9m1y93w.mjs";import{Bka as L,ija as i,mla as m,tha as r,uha as MJ,vha as d}from"./cli-0.1.14-r46jh9af.mjs";import{bma as T,cma as BJ}from"./cli-0.1.14-qn4ftczz.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();yJ();QJ();a();e();XJ();wJ();jJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!vJ())return;let V=Q??c(),X=CJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==SJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.1.14-ad3na7g6.mjs"),import("./detection-0.1.14-vz5bqsc0.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
-
export{HQ as KP,UQ as LP,BQ as MP,fJ as NP,OQ as OP,xQ as PP,CQ as QP,_J as RP,E as SP,bJ as TP,vQ as UP,O as VP,j as WP,SQ as XP,h as YP,AQ as ZP,zQ as _P,MQ as $P,HJ as aQ,n as bQ,UJ as cQ,oQ as dQ,zJ as eQ,nQ as fQ,u as gQ,F as hQ,H as iQ,kJ as jQ,rJ as kQ,kQ as lQ,rQ as mQ,dQ as nQ,iQ as oQ,mQ as pQ,dJ as qQ,sQ as rQ,tQ as sQ,aQ as tQ,eQ as uQ,JV as vQ,QV as wQ,sJ as xQ,tJ as yQ};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l6 as z,n6 as G}from"./cli-0.1.14-2f7s5xbd.mjs";import{bma as D}from"./cli-0.1.14-qn4ftczz.mjs";function H(k){let g;try{g=new URL(k)}catch(A){throw Error(`Invalid URL format: ${k}`)}if(g.protocol!=="http:"&&g.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${g.protocol}`)}async function K(k){try{let g=process.platform;if(g==="win32"){let{code:C}=await z("explorer",[k]);return C===0}let A=g==="darwin"?"open":"xdg-open",{code:B}=await z(A,[k]);return B===0}catch(g){return!1}}async function L(k){try{H(k);let g=process.env.BROWSER,A=process.platform;if(A==="win32"){if(g){let{code:C}=await z(g,[`"${k}"`]);return C===0}let{code:B}=await z("rundll32",["url,OpenURL",k],{});return B===0}else{let B=g||(A==="darwin"?"open":"xdg-open"),{code:C}=await z(B,[k]);return C===0}}catch(g){return!1}}var I=D(()=>{G()});
|
|
2
|
-
export{K as bW,L as cW,I as dW};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kd as j,ld as E}from"./cli-0.1.14-zrmretjp.mjs";import{CG as f,Wj as W,Zj as v,eG as X,gG as Y,pG as Z,rG as w,vG as _,yG as $}from"./cli-0.1.14-j5sbzwhy.mjs";import{K9 as S,X9 as A,_5 as Q,d6 as T,daa as V,oaa as N}from"./cli-0.1.14-2f7s5xbd.mjs";import{Yea as L,cfa as K,wfa as B,zfa as R}from"./cli-0.1.14-2mzb5ath.mjs";import{bma as y}from"./cli-0.1.14-qn4ftczz.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:S(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(V()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){Q(q)}})()}var J=null,G=null;var U=y(()=>{E();N();R();K();T();f();w();v();A()});
|
|
2
|
-
export{d as _b,P as $b,t as ac,U as bc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bma as s}from"./cli-0.1.14-qn4ftczz.mjs";function o(){return"claude-code/99.0.0"}function c(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudio/0.1.14 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
-
export{o as OV,c as PV,r as QV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{hc as x,ic as o}from"./cli-0.1.14-1shkmy81.mjs";import{AF as O,BF as a,Bz as y,Cl as Y,Cz as u,Il as g,Lz as K,MF as R,Nz as m,PF as i,Qy as $,SG as W,VG as t,Wy as d,rq as Z,tB as M,tq as v,uB as l}from"./cli-0.1.14-j5sbzwhy.mjs";import{_5 as X,d6 as h}from"./cli-0.1.14-2f7s5xbd.mjs";import{Yea as V,cfa as f,wfa as I,zfa as c}from"./cli-0.1.14-2mzb5ath.mjs";import{Bha as U,mla as _}from"./cli-0.1.14-r46jh9af.mjs";import{bma as C}from"./cli-0.1.14-qn4ftczz.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),M();let G=await W(),[E,F]=await Promise.all([O(),Y(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Z(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await y(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),K();let N=!1;try{await $()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();m();o();g();c();f();h();i();a();d();u();v();l();t()});
|
|
2
|
-
export{Lj as dc,p as ec};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{aW as m}from"./cli-0.1.14-1xkst5wv.mjs";import{g3 as K,y3 as $}from"./cli-0.1.14-a6kwmqhz.mjs";import{U$ as Q,W5 as W,X$ as J,d6 as X,oaa as Z}from"./cli-0.1.14-2f7s5xbd.mjs";import{ida as Y}from"./cli-0.1.14-9vc52dnj.mjs";import{bma as V}from"./cli-0.1.14-qn4ftczz.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{Y();$();Z();X();W();m()});
|
|
2
|
-
export{y as Hg,G as Ig,U as Jg,w as Kg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FS as x,GS as d}from"./cli-0.1.14-w6nzk5dc.mjs";import{RU as y,SU as g}from"./cli-0.1.14-seq2fm2d.mjs";import{HV as S}from"./cli-0.1.14-harz1d9d.mjs";import{VV as w,XV as F,aW as t}from"./cli-0.1.14-1xkst5wv.mjs";import{d3 as m,g3 as W,j3 as b,y3 as s}from"./cli-0.1.14-a6kwmqhz.mjs";import{$4 as n,K4 as U}from"./cli-0.1.14-stv1d0q3.mjs";import{U$ as E,V5 as P,W5 as a,X$ as L,_5 as f,d6 as o,oaa as r}from"./cli-0.1.14-2f7s5xbd.mjs";import{hda as A,ida as i}from"./cli-0.1.14-9vc52dnj.mjs";import{wfa as G,zfa as u}from"./cli-0.1.14-2mzb5ath.mjs";import{Zla as k,bma as K}from"./cli-0.1.14-qn4ftczz.mjs";function v(z,N,J){let Q=Z.useRef(0),V=Z.useRef(void 0),X=Z.useCallback(()=>{if(V.current)clearTimeout(V.current),V.current=void 0},[]);return Z.useEffect(()=>{return()=>{X()}},[X]),Z.useCallback(()=>{let Y=Date.now();if(Y-Q.current<=T&&V.current!==void 0)X(),z(!1),N();else J?.(),z(!0),X(),V.current=setTimeout((j,H)=>{j(!1),H.current=void 0},T,z,V);Q.current=Y},[z,N,J,X])}var Z,T=800;var R=K(()=>{Z=k(S(),1)});function C(z,N,J,Q=!0){let{exit:V}=y(),[X,Y]=$.useState({pending:!1,keyName:null}),q=$.useMemo(()=>J??V,[J,V]),M=v((_)=>Y({pending:_,keyName:"Ctrl-C"}),q),j=v((_)=>Y({pending:_,keyName:"Ctrl-D"}),q),H=$.useCallback(()=>{if(N?.())return;M()},[M,N]),O=$.useCallback(()=>{j()},[j]),c=$.useMemo(()=>({"app:interrupt":H,"app:exit":O}),[H,O]);return z(c,{context:"Global",isActive:Q}),X}var $;var I=K(()=>{g();R();$=k(S(),1)});function Gz(z,N,J){return C(x,N,z,J)}var l=K(()=>{d();I()});async function e(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/eligibility`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:5000})).data}async function vz(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/redemptions`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:1e4})).data}function p(){return!!(W()?.organizationUuid&&m()&&b()==="max")}function Az(){if(!p())return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=W()?.organizationUuid;if(!z)return{eligible:!1,needsRefresh:!1,hasCache:!1};let J=L().passesEligibilityCache?.[z];if(!J)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Q,timestamp:V}=J,Y=Date.now()-V>h;return{eligible:Q,needsRefresh:Y,hasCache:!0}}function Uz(z){let N=zz[z.currency]??`${z.currency} `,J=z.amount_minor_units/100,Q=J%1===0?J.toString():J.toFixed(2);return`${N}${Q}`}function wz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.referrer_reward??null}function Fz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.remaining_passes??null}async function D(){if(B)return G("Passes: Reusing in-flight eligibility fetch"),B;let z=W()?.organizationUuid;if(!z)return null;return B=(async()=>{try{let N=await e(),J={...N,timestamp:Date.now()};return E((Q)=>({...Q,passesEligibilityCache:{...Q.passesEligibilityCache,[z]:J}})),G(`Passes eligibility cached for org ${z}: ${N.eligible}`),N}catch(N){return G("Failed to fetch and cache passes eligibility"),f(N),null}finally{B=null}})(),B}async function Jz(){if(!p())return null;let z=W()?.organizationUuid;if(!z)return null;let J=L().passesEligibilityCache?.[z],Q=Date.now();if(!J)return G("Passes: No cache, fetching eligibility in background (command unavailable this session)"),D(),null;if(Q-J.timestamp>h){G("Passes: Cache stale, returning cached data and refreshing in background"),D();let{timestamp:Y,...q}=J;return q}G("Passes: Using fresh cached eligibility data");let{timestamp:V,...X}=J;return X}async function Oz(){if(P())return;Jz()}var h=86400000,B=null,zz;var Nz=K(()=>{n();i();s();r();u();o();a();t();zz={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{v as CR,R as DR,Gz as ER,l as FR,vz as GR,Az as HR,Uz as IR,wz as JR,Fz as KR,Jz as LR,Oz as MR,Nz as NR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ae as _,be as v}from"./cli-0.1.14-hvfg45y0.mjs";import{Sf as Z,Uf as P}from"./cli-0.1.14-v9q1cxjy.mjs";import{WJ as Y,_J as A,pj as V,rj as C}from"./cli-0.1.14-j5sbzwhy.mjs";import{AS as X,DS as K}from"./cli-0.1.14-w6nzk5dc.mjs";import{EV as H,GV as Q}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as W}from"./cli-0.1.14-harz1d9d.mjs";import{Oda as L,Pda as U}from"./cli-0.1.14-mgcmwvcn.mjs";import{Zla as B,bma as M}from"./cli-0.1.14-qn4ftczz.mjs";function x({children:q}){let{bindings:D}=V(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(X,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function y(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function b(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let T=(w)=>Z(H(Y,{children:H(x,{children:H(_,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=y(w);for(let w=0;w<N;w+=I){let O=await T([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await b(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var j=M(()=>{U();v();K();C();A();P();Q();J=B(W(),1)});
|
|
2
|
-
export{l as ob,j as pb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nI as Q,oI as $}from"./cli-0.1.14-j5sbzwhy.mjs";import{gga as V,gha as W,hga as P,hha as E}from"./cli-0.1.14-r46jh9af.mjs";import{bma as L}from"./cli-0.1.14-qn4ftczz.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
|
|
2
|
-
export{v as Ib,C as Jb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bg as f,gg as c}from"./cli-0.1.14-zs4vmj7z.mjs";import{hg as F,jg as s}from"./cli-0.1.14-canpypsb.mjs";import{AE as x,Ay as d,Az as C,BE as i,Ch as Y,Dh as A,FA as j,GA as n,Tt as E,Vt as m,Wh as Z,bm as U,cm as p,fL as u,hA as b,hi as P,iA as h,ii as _,ji as $,ki as B,li as N,mi as D,nJ as R,pJ as l,pL as t,px as L,ux as S,wF as G,wr as V,xr as g,zF as o,zy as M,zz as W}from"./cli-0.1.14-j5sbzwhy.mjs";import{D4 as Q,J4 as k}from"./cli-0.1.14-adz0gnzy.mjs";import{R7 as X,S7 as v,q6 as O,x6 as I}from"./cli-0.1.14-2f7s5xbd.mjs";import{Ika as J,Uka as K,mla as T}from"./cli-0.1.14-r46jh9af.mjs";import{bma as y,cma as w}from"./cli-0.1.14-qn4ftczz.mjs";function Mq(H=new Set){let z=H.size>0;if(N.cache.clear?.(),B.cache.clear?.(),$.cache.clear?.(),Y.cache.clear?.(),f(),u(),!z)U();if(_(null),K(null),x(),G(),Z("session_start"),E(),X.clear(),M(),!z)L();if(Q(),R(),!z)V();J(H),O(),j(),W(),F(),b(),import("./utils-0.1.14-heqqycdx.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-0.1.14-rpbvvb5j.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-0.1.14-md40mt17.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-0.1.14-30e7kfkx.mjs").then(({clearPromptCache:q})=>q())}var r=y(()=>{T();t();A();D();c();S();g();p();d();i();C();s();n();o();l();P();k();I();v();m();h()});
|
|
2
|
-
export{Mq as _f,r as $f};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{rY as N,sY as k,tY as F,vY as U,wY as p}from"./cli-0.1.14-wz5yr49j.mjs";import{B3 as L,C3 as M,F3 as O,H3 as P,P3 as x,R3 as H,S3 as V}from"./cli-0.1.14-rc5yd94n.mjs";import{D8 as I,F8 as b,X$ as Z,X_ as X,a$ as Y,j$ as D,oaa as K}from"./cli-0.1.14-2f7s5xbd.mjs";import{Dfa as $,Nfa as G}from"./cli-0.1.14-s9m1y93w.mjs";k();M();K();G();p();P();V();b();D();function A(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:j,...m}=q;return m}function R(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}var W;function _(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return _(R(A(q)))}var h=["userSettings","flagSettings","policySettings"];function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function o(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}
|
|
2
|
-
export{S as oY,o as pY};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BR as h,qR as U}from"./cli-0.1.14-4mde8z7h.mjs";import{$R as y,cS as p}from"./cli-0.1.14-zjqt3r89.mjs";import{TW as B,XW as F}from"./cli-0.1.14-jpe9sxch.mjs";import{i7 as K,k7 as f}from"./cli-0.1.14-2f7s5xbd.mjs";import{Cea as _,Eea as D,Yea as G,afa as A,cfa as P,efa as N,ffa as H,ifa as b,wfa as J,zfa as I}from"./cli-0.1.14-2mzb5ath.mjs";import{Afa as $,Nfa as C}from"./cli-0.1.14-s9m1y93w.mjs";import{Bha as Z,mla as w,vha as X,zha as Y}from"./cli-0.1.14-r46jh9af.mjs";import{bma as W}from"./cli-0.1.14-qn4ftczz.mjs";import{chmod as S,mkdir as j,readdir as m,readFile as c,unlink as M,writeFile as O}from"fs/promises";import{join as L}from"path";function Q(){return L($(),"sessions")}function u(){return}async function Eq(){if(U()!=null)return!1;let q=u()??"interactive",E=Q(),x=L(E,`${process.pid}.json`);_(async()=>{try{await M(x)}catch{}});try{return await j(E,{recursive:!0,mode:448}),await S(E,448),await O(x,N({pid:process.pid,sessionId:X(),cwd:Z(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),Y((z)=>{T({sessionId:z})}),!0}catch(z){return J(`[concurrentSessions] register failed: ${G(z)}`),!1}}async function T(q){let E=L(Q(),`${process.pid}.json`);try{let x=H(await c(E,"utf8"));await O(E,N({...x,...q}))}catch(x){J(`[concurrentSessions] updatePidFile failed: ${G(x)}`)}}async function Gq(q){if(!q)return;await T({name:q})}async function R(q){await T({bridgeSessionId:q})}async function Jq(){let q=Q(),E;try{E=await m(q)}catch(z){if(!A(z))J(`[concurrentSessions] readdir failed: ${G(z)}`);return 0}let x=0;for(let z of E){if(!/^\d+\.json$/.test(z))continue;let V=parseInt(z.slice(0,-5),10);if(V===process.pid){x++;continue}if(B(V))x++;else if(K()!=="wsl")M(L(q,z)).catch(()=>{})}return x}var k=W(()=>{w();D();I();C();P();F();f();b();h()});function Tq(q){v=q,R(g()??null).catch(()=>{})}function l(){return v}function g(){let q=l();return q?y(q.bridgeSessionId):void 0}var v=null;var a=W(()=>{k();p()});
|
|
2
|
-
export{Eq as aR,Gq as bR,R as cR,Jq as dR,k as eR,Tq as fR,l as gR,g as hR,a as iR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Gb as z,Hb as K}from"./cli-0.1.14-r5qyt63x.mjs";import{JC as w,KC as J}from"./cli-0.1.14-j5sbzwhy.mjs";import{HV as H}from"./cli-0.1.14-harz1d9d.mjs";import{Zla as E,bma as G}from"./cli-0.1.14-qn4ftczz.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 Cb,N as Db};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hk as J,Uk as K,_k as Q}from"./cli-0.1.14-j5sbzwhy.mjs";import{a9 as z,b9 as B,c9 as q,d9 as C,l9 as P}from"./cli-0.1.14-2f7s5xbd.mjs";import{bma as N}from"./cli-0.1.14-qn4ftczz.mjs";function A(k,w){if(!J(w))return;let x=K(w,k);return`${Y(x)} ${x} · /effort`}function Y(k){switch(k){case"low":return z;case"medium":return B;case"high":return q;case"max":return C;default:return q}}var Z=N(()=>{P();Q()});
|
|
2
|
-
export{A as Cf,Y as Df,Z as Ef};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hg as R,Jg as y,Kg as v}from"./cli-0.1.14-dq7jkw1n.mjs";import{CU as K,QS as c,fV as E}from"./cli-0.1.14-seq2fm2d.mjs";import{DV as O,EV as N,FV as M,GV as U}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as G}from"./cli-0.1.14-harz1d9d.mjs";import{X$ as L,oaa as b}from"./cli-0.1.14-2f7s5xbd.mjs";import{Wda as Z,gea as W}from"./cli-0.1.14-mgcmwvcn.mjs";import{zea as p}from"./cli-0.1.14-t3fga5je.mjs";import{Zla as F,bma as j}from"./cli-0.1.14-qn4ftczz.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
|
|
2
|
-
export{f as mf,r as nf,n as of,l as pf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{CU as K,QS as Z,fV as k}from"./cli-0.1.14-seq2fm2d.mjs";import{FV as J,GV as H}from"./cli-0.1.14-hjktwgtk.mjs";import{e6 as v,f6 as Y}from"./cli-0.1.14-2f7s5xbd.mjs";import{Zla as V,bma as X}from"./cli-0.1.14-qn4ftczz.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
-
export{N as Qf,C as Rf};
|