@claudiolabs/claudin 1.1.27 → 1.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.28-hdgcephe.mjs +1 -0
- package/dist/chunks/App-1.1.28-rdhr58j6.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.28-dn460p70.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.28-k16de89c.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.28-19td2te8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.28-011pgh7b.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.28-ych5693j.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.28-7p5bx0b5.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.28-nkct57y5.mjs +6 -0
- package/dist/chunks/Doctor-1.1.28-xerfvzx5.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.28-ne9ftnxx.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.28-07enf929.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.28-mcsd53vd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.28-rmrgfzbv.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.28-w5mh2w2b.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.28-7q9nc8c9.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.28-08ytr6ma.mjs +1 -0
- package/dist/chunks/REPL-1.1.28-pxy1ag0k.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.28-b2pk1nan.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.28-xa772x92.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.28-6x6ca6kq.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.28-vy7p3j3e.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.28-egnv67by.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.28-y1ss2e0h.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.28-7w099741.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.28-49aey2f6.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.28-gw9e23bc.mjs +1 -0
- package/dist/chunks/add-dir-1.1.28-5j989gf2.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.28-hxk0wpj5.mjs +1 -0
- package/dist/chunks/agents-1.1.28-3yth9sa4.mjs +110 -0
- package/dist/chunks/agents-1.1.28-4qdh001q.mjs +3 -0
- package/dist/chunks/api-1.1.28-znpy0eyy.mjs +1 -0
- package/dist/chunks/asciicast-1.1.28-r6dsend4.mjs +1 -0
- package/dist/chunks/assistant-1.1.28-16hn1f6b.mjs +1 -0
- package/dist/chunks/auth-1.1.28-bw7dane8.mjs +1 -0
- package/dist/chunks/auth-1.1.28-ht6j3ag3.mjs +1 -0
- package/dist/chunks/autoMode-1.1.28-nyaf1s0s.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.28-sjjeha2m.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.28-070wmr6y.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.28-y5mjznxx.mjs +1 -0
- package/dist/chunks/branch-1.1.28-5d97ysjr.mjs +4 -0
- package/dist/chunks/bridge-1.1.28-62qv0wgq.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.28-m986jcxg.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.28-0fs5tkxx.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.28-pyr5gvmx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.28-wpzz2yca.mjs +1 -0
- package/dist/chunks/btw-1.1.28-p1tk901s.mjs +1 -0
- package/dist/chunks/buddy-1.1.28-thrnzpdp.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.28-bb4xsnev.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.28-9p9fmxas.mjs +4 -0
- package/dist/chunks/caches-1.1.28-t6dq2xtp.mjs +1 -0
- package/dist/chunks/cd-1.1.28-84z1kqam.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.28-3x0y2w87.mjs +1 -0
- package/dist/chunks/claudemd-1.1.28-skmb6ar5.mjs +1 -0
- package/dist/chunks/clear-1.1.28-78f1rnc5.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.28-sx5qqtxb.mjs +1 -0
- package/dist/chunks/cli-1.1.28-01g60h7m.mjs +2 -0
- package/dist/chunks/cli-1.1.28-040xb4f8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-0c0kb6x2.mjs +24 -0
- package/dist/chunks/cli-1.1.28-0njtm2nf.mjs +60 -0
- package/dist/chunks/cli-1.1.28-0vgve5rw.mjs +24 -0
- package/dist/chunks/cli-1.1.28-12g8qyfk.mjs +58 -0
- package/dist/chunks/cli-1.1.28-130w2y17.mjs +50 -0
- package/dist/chunks/cli-1.1.28-13j6r7pz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-14abe08r.mjs +4 -0
- package/dist/chunks/cli-1.1.28-1jd8x2af.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1mscaejt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1q409efb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1rrn1mhr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1vrff9a3.mjs +5 -0
- package/dist/chunks/cli-1.1.28-2arzkhzs.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2dafhgjv.mjs +34 -0
- package/dist/chunks/cli-1.1.28-2esp2ssp.mjs +6 -0
- package/dist/chunks/cli-1.1.28-2q7dztmb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2wem9fnx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2ykcw73j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2zhmwh7t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-30yw5q4z.mjs +4 -0
- package/dist/chunks/cli-1.1.28-347ygvzg.mjs +6 -0
- package/dist/chunks/cli-1.1.28-36891pwy.mjs +2 -0
- package/dist/chunks/cli-1.1.28-36y6830c.mjs +2 -0
- package/dist/chunks/cli-1.1.28-37rkgevh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3bj091x6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3fssr567.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3p6j7k4a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4kda7s33.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4kxqqtpz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4mpm44jj.mjs +9 -0
- package/dist/chunks/cli-1.1.28-4qh42y9g.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4sx3zr2c.mjs +3 -0
- package/dist/chunks/cli-1.1.28-58rs1ja0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-5edzsdcr.mjs +6 -0
- package/dist/chunks/cli-1.1.28-5y1xeh89.mjs +206 -0
- package/dist/chunks/cli-1.1.28-638dshxx.mjs +42 -0
- package/dist/chunks/cli-1.1.28-6bc84c0n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-6x9c71q9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-6y7vtevf.mjs +17 -0
- package/dist/chunks/cli-1.1.28-75thpvfa.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7amn29ks.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7e3nqd5c.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7fz4fqgd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7g65bppm.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7nye6zs7.mjs +4 -0
- package/dist/chunks/cli-1.1.28-7pmtq82j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7vvtkeeh.mjs +25 -0
- package/dist/chunks/cli-1.1.28-7x94aewp.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7zpfvkxq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-81p0zmxc.mjs +2 -0
- package/dist/chunks/cli-1.1.28-83k0knzj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8ahmbnjh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8avwqt1z.mjs +4 -0
- package/dist/chunks/cli-1.1.28-8jrfznkw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8v2vx373.mjs +2 -0
- package/dist/chunks/cli-1.1.28-943993zt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-94sk1z8g.mjs +5 -0
- package/dist/chunks/cli-1.1.28-95fs05hq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-9e74kqtd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-9s4pee5a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-a00k75hj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-a79xcdg3.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ad15rvp0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ak2bzv1v.mjs +16 -0
- package/dist/chunks/cli-1.1.28-atrbc4s7.mjs +2 -0
- package/dist/chunks/cli-1.1.28-avxe0zxq.mjs +15 -0
- package/dist/chunks/cli-1.1.28-b2jq83aj.mjs +15 -0
- package/dist/chunks/cli-1.1.28-be8cxh1e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bfs5hmfp.mjs +3 -0
- package/dist/chunks/cli-1.1.28-bqtpnyqr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-brh6rw23.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bsqgt8m4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bwbz3v3j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bwgr7j8z.mjs +2 -0
- package/dist/chunks/cli-1.1.28-by5acg3a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-c9nh8cpr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-cb5wemmj.mjs +7 -0
- package/dist/chunks/cli-1.1.28-cfq2wwx5.mjs +2 -0
- package/dist/chunks/cli-1.1.28-cyrrpdkd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-d5h3kve6.mjs +24 -0
- package/dist/chunks/cli-1.1.28-davs3ve8.mjs +58 -0
- package/dist/chunks/cli-1.1.28-denmqz0s.mjs +2 -0
- package/dist/chunks/cli-1.1.28-dqsxqszf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-dy3tnnyd.mjs +3 -0
- package/dist/chunks/cli-1.1.28-e2mfhtpx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-egskcwa5.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ek683x01.mjs +2 -0
- package/dist/chunks/cli-1.1.28-epzkhgww.mjs +2 -0
- package/dist/chunks/cli-1.1.28-erqn7gwg.mjs +6 -0
- package/dist/chunks/cli-1.1.28-es8var4t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ev0gfjgf.mjs +24 -0
- package/dist/chunks/cli-1.1.28-evvcbjb6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f0vrbk1t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f1n8p9v2.mjs +12 -0
- package/dist/chunks/cli-1.1.28-f3rdt4zg.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f8av9yzr.mjs +39 -0
- package/dist/chunks/cli-1.1.28-fetsedc8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ffy07rnm.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fjbefwwe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fnd6z5bq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fv1twt9b.mjs +8 -0
- package/dist/chunks/cli-1.1.28-h00s5n5y.mjs +2 -0
- package/dist/chunks/cli-1.1.28-h7p3dmnv.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hb02sa63.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hkfays5k.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hx5j3q23.mjs +17 -0
- package/dist/chunks/cli-1.1.28-hxbkncxe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hyd7kkyr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-j5m0kc75.mjs +3 -0
- package/dist/chunks/cli-1.1.28-j6nysca9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-jqnzq23v.mjs +3 -0
- package/dist/chunks/cli-1.1.28-jr3jtfkf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-jwg70mjs.mjs +2 -0
- package/dist/chunks/cli-1.1.28-k0ewezmj.mjs +20 -0
- package/dist/chunks/cli-1.1.28-k10f3f7z.mjs +3 -0
- package/dist/chunks/cli-1.1.28-k7pnt9ba.mjs +2 -0
- package/dist/chunks/cli-1.1.28-kaddwxsy.mjs +2 -0
- package/dist/chunks/cli-1.1.28-kc8f0nz7.mjs +3 -0
- package/dist/chunks/cli-1.1.28-khcgtk4a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-knfg26kb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-m6k4d2wx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mdexghj2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mk8zwqb2.mjs +4 -0
- package/dist/chunks/cli-1.1.28-mkm05wf9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mpjz8znf.mjs +3 -0
- package/dist/chunks/cli-1.1.28-mqmy0gy0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mvkxhjmj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mx413hqd.mjs +3 -0
- package/dist/chunks/cli-1.1.28-n2jx5w3n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-n7v87yyn.mjs +2 -0
- package/dist/chunks/cli-1.1.28-n8d1x31e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-neqd5cwa.mjs +2 -0
- package/dist/chunks/cli-1.1.28-nq2qxnzx.mjs +10 -0
- package/dist/chunks/cli-1.1.28-nqjbqqb6.mjs +4 -0
- package/dist/chunks/cli-1.1.28-nyvjfkx6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-p11zcjmv.mjs +2 -0
- package/dist/chunks/cli-1.1.28-pabfwpqr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-pdxwmetp.mjs +25 -0
- package/dist/chunks/cli-1.1.28-pfnc9p9n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-prd0t983.mjs +9 -0
- package/dist/chunks/cli-1.1.28-pykx8k1j.mjs +4 -0
- package/dist/chunks/cli-1.1.28-q14qmewe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-q43r6snq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-q6dv65zx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qb921m5a.mjs +3 -0
- package/dist/chunks/cli-1.1.28-qf1qq8t0.mjs +3 -0
- package/dist/chunks/cli-1.1.28-qhqkr80z.mjs +45 -0
- package/dist/chunks/cli-1.1.28-qj312jgw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qjn28vhw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qrx5ata3.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qvpamm5s.mjs +4 -0
- package/dist/chunks/cli-1.1.28-qvr8rkg2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qzg6n6hj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-r81y1681.mjs +3 -0
- package/dist/chunks/cli-1.1.28-rbjeq16x.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rbne7wtq.mjs +4 -0
- package/dist/chunks/cli-1.1.28-rez81jab.mjs +6 -0
- package/dist/chunks/cli-1.1.28-rq49kn4q.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rt0aect8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rwfwz209.mjs +2 -0
- package/dist/chunks/cli-1.1.28-s1pbcd86.mjs +3 -0
- package/dist/chunks/cli-1.1.28-s2pcpdyc.mjs +2 -0
- package/dist/chunks/cli-1.1.28-s6w8jb6z.mjs +2 -0
- package/dist/chunks/cli-1.1.28-smb1frk6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ss8nzmnb.mjs +12 -0
- package/dist/chunks/cli-1.1.28-sx3mmc5d.mjs +2 -0
- package/dist/chunks/cli-1.1.28-sz8sgxj4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-t5yawarz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-tt0c354s.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v1p12e3g.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v5r7bmzh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v5ypq0r2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v6ewa1y0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vctvnrwx.mjs +133 -0
- package/dist/chunks/cli-1.1.28-vf3j29kt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vgfss8e4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vje1ac31.mjs +7 -0
- package/dist/chunks/cli-1.1.28-vphadsag.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vyzp74xh.mjs +3 -0
- package/dist/chunks/cli-1.1.28-w0kxa99b.mjs +2 -0
- package/dist/chunks/cli-1.1.28-w6cd3j36.mjs +20 -0
- package/dist/chunks/cli-1.1.28-wew8jymx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wmyy1pdj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wvj52k91.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wze93r29.mjs +2 -0
- package/dist/chunks/cli-1.1.28-x04zkwy5.mjs +18 -0
- package/dist/chunks/cli-1.1.28-x0ypcq4e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-x13sctb2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-xv2tg10n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-y173v5ak.mjs +133 -0
- package/dist/chunks/cli-1.1.28-y4k1f7he.mjs +2 -0
- package/dist/chunks/cli-1.1.28-y5w3ev7m.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yaa1gft3.mjs +15 -0
- package/dist/chunks/cli-1.1.28-ypzyse5q.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yv5gzenz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yyk292aq.mjs +6 -0
- package/dist/chunks/cli-1.1.28-z4kzjv3v.mjs +21 -0
- package/dist/chunks/cli-1.1.28-z5mbbt38.mjs +2 -0
- package/dist/chunks/cli-1.1.28-zarbrcn7.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ze1j03ww.mjs +1 -0
- package/dist/chunks/cli-1.1.28-zhftjycn.mjs +5553 -0
- package/dist/chunks/cli-1.1.28-zqpvgqxf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-zv9zfwz9.mjs +2 -0
- package/dist/chunks/client-1.1.28-59t63af8.mjs +1 -0
- package/dist/chunks/color-1.1.28-gmbrq89g.mjs +1 -0
- package/dist/chunks/compact-1.1.28-14hmkmd6.mjs +3 -0
- package/dist/chunks/config-1.1.28-b69ey9g1.mjs +1 -0
- package/dist/chunks/config-1.1.28-cryax439.mjs +1 -0
- package/dist/chunks/constants-1.1.28-63cv4s6z.mjs +1 -0
- package/dist/chunks/context-1.1.28-09kfp2sa.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.28-h9279pbh.mjs +1 -0
- package/dist/chunks/conversation-1.1.28-qnj7ywxq.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.28-yjrmx9z1.mjs +1 -0
- package/dist/chunks/copy-1.1.28-az1n9y3n.mjs +9 -0
- package/dist/chunks/cost-1.1.28-507xt42s.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.28-m9ecjhc1.mjs +1 -0
- package/dist/chunks/createSession-1.1.28-gbrmw9ad.mjs +1 -0
- package/dist/chunks/debug-1.1.28-k9m06yz6.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.28-4sxh2jyw.mjs +1534 -0
- package/dist/chunks/desktop-1.1.28-ycc1hv5c.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.28-mxrqqjv6.mjs +1 -0
- package/dist/chunks/detection-1.1.28-06p2mev8.mjs +1 -0
- package/dist/chunks/diff-1.1.28-d9a2n60t.mjs +1 -0
- package/dist/chunks/doctor-1.1.28-qef12k2p.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.28-v5rq4x27.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.28-xr89w719.mjs +1 -0
- package/dist/chunks/effort-1.1.28-yjbwr68r.mjs +13 -0
- package/dist/chunks/engine-1.1.28-yv6qdcgp.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.28-tpjzc2ar.mjs +1 -0
- package/dist/chunks/envUtils-1.1.28-n17cxj8h.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.28-c7vj172q.mjs +1 -0
- package/dist/chunks/environments-1.1.28-08b7gpg6.mjs +1 -0
- package/dist/chunks/errors-1.1.28-eysc80qa.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.28-gk1ma509.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.28-4nc53n56.mjs +1 -0
- package/dist/chunks/exit-1.1.28-7rjnfzc2.mjs +1 -0
- package/dist/chunks/explorer-1.1.28-hf7jvkfg.mjs +1 -0
- package/dist/chunks/export-1.1.28-3xgdy7gr.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.28-6wkgsscs.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.28-03hnqa8n.mjs +1 -0
- package/dist/chunks/fast-1.1.28-gf0rb9by.mjs +1 -0
- package/dist/chunks/feedback-1.1.28-dvdyq5v7.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.28-rd6eskzg.mjs +1 -0
- package/dist/chunks/git-1.1.28-ktf61jaz.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.28-re8t0b2z.mjs +1 -0
- package/dist/chunks/goal-1.1.28-s7n55rqn.mjs +4 -0
- package/dist/chunks/growthbook-1.1.28-jcs0qzz8.mjs +1 -0
- package/dist/chunks/headless-1.1.28-yzfk04g2.mjs +2 -0
- package/dist/chunks/heapdump-1.1.28-hgfac8pe.mjs +6 -0
- package/dist/chunks/help-1.1.28-yhrv28x1.mjs +1 -0
- package/dist/chunks/hookChains-1.1.28-9y5pz734.mjs +3 -0
- package/dist/chunks/hooks-1.1.28-pwy1h39c.mjs +79 -0
- package/dist/chunks/hooks-1.1.28-xhtrbwa5.mjs +1 -0
- package/dist/chunks/ide-1.1.28-27vb56tk.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.28-b092deny.mjs +1 -0
- package/dist/chunks/import-1.1.28-bqs6ebec.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.28-0jb4nc2j.mjs +1 -0
- package/dist/chunks/index-1.1.28-0p3tfhd7.mjs +23 -0
- package/dist/chunks/index-1.1.28-30ges9rx.mjs +1 -0
- package/dist/chunks/index-1.1.28-3kg2kmpd.mjs +1 -0
- package/dist/chunks/index-1.1.28-76ztpb54.mjs +1 -0
- package/dist/chunks/index-1.1.28-a6fzpa8n.mjs +1 -0
- package/dist/chunks/index-1.1.28-ac1sbem8.mjs +9 -0
- package/dist/chunks/index-1.1.28-axnrgqkq.mjs +1 -0
- package/dist/chunks/index-1.1.28-b5b1qact.mjs +1 -0
- package/dist/chunks/index-1.1.28-bqm5cnw1.mjs +1 -0
- package/dist/chunks/index-1.1.28-bt937784.mjs +1 -0
- package/dist/chunks/index-1.1.28-bxtzy977.mjs +2 -0
- package/dist/chunks/index-1.1.28-dgnx1m4x.mjs +9 -0
- package/dist/chunks/index-1.1.28-dtfxav1q.mjs +1 -0
- package/dist/chunks/index-1.1.28-gk3v69b8.mjs +1 -0
- package/dist/chunks/index-1.1.28-m2nnkj3d.mjs +1 -0
- package/dist/chunks/index-1.1.28-qk8rhq5n.mjs +1 -0
- package/dist/chunks/index-1.1.28-vgc6r0g0.mjs +1 -0
- package/dist/chunks/index-1.1.28-w2a4k4md.mjs +2 -0
- package/dist/chunks/index-1.1.28-wajajmmp.mjs +1 -0
- package/dist/chunks/index-1.1.28-xaw4tf13.mjs +30 -0
- package/dist/chunks/index-1.1.28-y7jd8m9f.mjs +1 -0
- package/dist/chunks/index-1.1.28-ymg3kz4x.mjs +5 -0
- package/dist/chunks/index-1.1.28-z85wbmey.mjs +1 -0
- package/dist/chunks/init-1.1.28-vt168swt.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.28-vtkc85kf.mjs +1 -0
- package/dist/chunks/ink-1.1.28-8bcvzs97.mjs +1 -0
- package/dist/chunks/insights-1.1.28-hcccjwbm.mjs +870 -0
- package/dist/chunks/install-1.1.28-azeaj14w.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.28-jr58yj7c.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.28-ca73e004.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.28-v5fj6zfn.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.28-k8pjx51r.mjs +1 -0
- package/dist/chunks/keybindings-1.1.28-szefym9t.mjs +2 -0
- package/dist/chunks/knowledge-1.1.28-twc2bf6q.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.28-swqk1ppm.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.28-gvzkk593.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.28-j5fvzh5b.mjs +1 -0
- package/dist/chunks/log-1.1.28-744tvnnz.mjs +1 -0
- package/dist/chunks/main-1.1.28-ngd4qj24.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.28-v3t5y08t.mjs +1 -0
- package/dist/chunks/mcp-1.1.28-bjtwbjwv.mjs +17 -0
- package/dist/chunks/mcp-1.1.28-k0p4t3rs.mjs +1 -0
- package/dist/chunks/mcp-1.1.28-pxxge6kd.mjs +4 -0
- package/dist/chunks/mcpb-1.1.28-rjvsf8d4.mjs +1 -0
- package/dist/chunks/memory-1.1.28-437zyh3m.mjs +77 -0
- package/dist/chunks/model-1.1.28-1weg50dg.mjs +2 -0
- package/dist/chunks/model-1.1.28-qbnnaa17.mjs +1 -0
- package/dist/chunks/node-1.1.28-f9q7m0bb.mjs +15 -0
- package/dist/chunks/node-1.1.28-q18jbvyv.mjs +1 -0
- package/dist/chunks/oauth-1.1.28-nv1bmgrh.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.28-qt0bgn0p.mjs +14 -0
- package/dist/chunks/output-style-1.1.28-xpmnvzvz.mjs +1 -0
- package/dist/chunks/package-OS7RONXY-1.1.28-s8fma63p.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.28-9e7g8r3q.mjs +1 -0
- package/dist/chunks/parser-1.1.28-hahczgmc.mjs +1 -0
- package/dist/chunks/passes-1.1.28-73vxd2mh.mjs +1 -0
- package/dist/chunks/permissions-1.1.28-4dzfyh6m.mjs +1 -0
- package/dist/chunks/permissions-1.1.28-mh27xg9k.mjs +3 -0
- package/dist/chunks/plan-1.1.28-awnhzrk0.mjs +1 -0
- package/dist/chunks/plist-1.1.28-yf5fjx19.mjs +1 -0
- package/dist/chunks/plugin-1.1.28-m9j8cnkz.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.28-w4yvsmat.mjs +1 -0
- package/dist/chunks/plugins-1.1.28-rgr19gwa.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.28-bq157gz5.mjs +2 -0
- package/dist/chunks/print-1.1.28-g8smjzce.mjs +57 -0
- package/dist/chunks/process-1.1.28-tk5w2b0a.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.28-0a601ws2.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.28-2mq2y7nd.mjs +9 -0
- package/dist/chunks/prompt-1.1.28-tj8v37yx.mjs +1 -0
- package/dist/chunks/prompt-1.1.28-x4mxe7n2.mjs +1 -0
- package/dist/chunks/prompts-1.1.28-z2rx5cb6.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.28-cvce24s6.mjs +13 -0
- package/dist/chunks/provider-1.1.28-wd0k9dj9.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.28-ansdm0bp.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.28-xkpar3nj.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.28-kv8762wq.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.28-464hjqs0.mjs +26 -0
- package/dist/chunks/registry-1.1.28-a9wz892f.mjs +1 -0
- package/dist/chunks/release-notes-1.1.28-3dsn738r.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.28-8kfgxbx6.mjs +2 -0
- package/dist/chunks/remote-env-1.1.28-x46beyd7.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.28-1pr9890h.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.28-0dbsb9gr.mjs +1 -0
- package/dist/chunks/rename-1.1.28-m7z3qe6s.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.28-h8cn3e2b.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.28-dc94xnm0.mjs +1 -0
- package/dist/chunks/resume-1.1.28-mr6necqk.mjs +2 -0
- package/dist/chunks/rewind-1.1.28-dk5z09nd.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.28-g6c2bc4a.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.28-2r5z099n.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.28-9gkyj8zg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.28-mvyww40e.mjs +1 -0
- package/dist/chunks/session-1.1.28-8xwfxnzq.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.28-6twnc7gm.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.28-w6yt6st1.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.28-rfvff5qy.mjs +1 -0
- package/dist/chunks/settings-1.1.28-b3wrgfej.mjs +1 -0
- package/dist/chunks/setup-1.1.28-6vt58sg8.mjs +12 -0
- package/dist/chunks/sinks-1.1.28-rdvsx829.mjs +1 -0
- package/dist/chunks/skills-1.1.28-b53h2c2v.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.28-mk4vmdef.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.28-0p8x3xh5.mjs +1 -0
- package/dist/chunks/state-1.1.28-fd27gqw0.mjs +1 -0
- package/dist/chunks/stats-1.1.28-fmezsyc4.mjs +1 -0
- package/dist/chunks/status-1.1.28-67a4bkc3.mjs +1 -0
- package/dist/chunks/stickers-1.1.28-0g68m8nd.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.28-548a2kyv.mjs +1 -0
- package/dist/chunks/tasks-1.1.28-h3xfz4f4.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.28-4twfmqhf.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.28-7p6f8wg0.mjs +1 -0
- package/dist/chunks/teleport-1.1.28-zdrc7v25.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.28-fbkk7v65.mjs +1 -0
- package/dist/chunks/theme-1.1.28-tj36fh0f.mjs +1 -0
- package/dist/chunks/thinkback-1.1.28-x1bq9k3h.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.28-3jdfk2q7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.28-fpt8xrnv.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.28-mvqt18a8.mjs +1 -0
- package/dist/chunks/tools-1.1.28-a9t3fc6d.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.28-9e0gqehg.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.28-dhs0afg7.mjs +69 -0
- package/dist/chunks/types-1.1.28-51fcbp8c.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.28-d4ca5c58.mjs +4 -0
- package/dist/chunks/update-1.1.28-t9v2gpbh.mjs +72 -0
- package/dist/chunks/upgrade-1.1.28-12174ed0.mjs +1 -0
- package/dist/chunks/upload-1.1.28-whe18m8m.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.28-bnjrek99.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.28-0gh9dbnj.mjs +1 -0
- package/dist/chunks/usage-1.1.28-6m1bv4x5.mjs +1 -0
- package/dist/chunks/util-1.1.28-cvpx898d.mjs +1 -0
- package/dist/chunks/utils-1.1.28-ztac8cf7.mjs +1 -0
- package/dist/chunks/vim-1.1.28-rrv9qbr2.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.28-rtznty0c.mjs +13 -0
- package/dist/chunks/watcher-1.1.28-7v4bd9pm.mjs +1 -0
- package/dist/chunks/wiki-1.1.28-m0y2n8rc.mjs +132 -0
- package/dist/chunks/workflows-1.1.28-k9wt163q.mjs +1 -0
- package/dist/chunks/worktree-1.1.28-5bjehwgc.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.28-d1yy7627.mjs +1 -0
- package/dist/chunks/wrapper-1.1.28-qgyry9mh.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.27-db5m9gzv.mjs +0 -1
- package/dist/chunks/App-1.1.27-jz9pzpv7.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.27-b5mwy6bs.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.27-2kwhe57h.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.27-g5rhes32.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.27-jxn4ptdz.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.27-2veddc9s.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.27-mt31pcwm.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.27-ts2drs72.mjs +0 -6
- package/dist/chunks/Doctor-1.1.27-mh9ttzx4.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.27-qh4nye9z.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.27-054hfzze.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.27-gyk98cx3.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.27-agv9khdv.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.27-fhzyv0es.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.27-e7a3yzxe.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.27-zc2zrqpt.mjs +0 -1
- package/dist/chunks/REPL-1.1.27-zm25dsxc.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.27-93vdmd0g.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.27-rcmc5990.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.27-7mwc4ntd.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.27-jyjyshza.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.27-g4s9ej88.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.27-bfqad2sg.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.27-b39dysny.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.27-nerfy2hh.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.27-7akd7pzq.mjs +0 -1
- package/dist/chunks/add-dir-1.1.27-jfd8t81g.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.27-gvc8sgz1.mjs +0 -1
- package/dist/chunks/agents-1.1.27-pdcva4bt.mjs +0 -110
- package/dist/chunks/agents-1.1.27-vdvjpsev.mjs +0 -3
- package/dist/chunks/api-1.1.27-v0jrrv5d.mjs +0 -1
- package/dist/chunks/asciicast-1.1.27-a6ydv5ce.mjs +0 -1
- package/dist/chunks/assistant-1.1.27-gazcm6s7.mjs +0 -1
- package/dist/chunks/auth-1.1.27-d561ngfq.mjs +0 -1
- package/dist/chunks/auth-1.1.27-gp1b9bvj.mjs +0 -1
- package/dist/chunks/autoMode-1.1.27-187c13xb.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.27-v3ap18cy.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.27-hty6t0t8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.27-efmykd33.mjs +0 -1
- package/dist/chunks/branch-1.1.27-d16zzy8m.mjs +0 -4
- package/dist/chunks/bridge-1.1.27-3znqrqgh.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.27-bbn4xfe7.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.27-hky0jg83.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.27-j9tfnew8.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.27-95k3w0tb.mjs +0 -1
- package/dist/chunks/btw-1.1.27-wx6yv865.mjs +0 -1
- package/dist/chunks/buddy-1.1.27-9afpekx4.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.27-f84tajyp.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.27-g9qwr4y9.mjs +0 -4
- package/dist/chunks/caches-1.1.27-fw7fsfx6.mjs +0 -1
- package/dist/chunks/cd-1.1.27-y9t4zyf7.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.27-182n35a2.mjs +0 -1
- package/dist/chunks/claudemd-1.1.27-gp9ndxg8.mjs +0 -1
- package/dist/chunks/clear-1.1.27-rrvq1asb.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.27-6esk4j27.mjs +0 -1
- package/dist/chunks/cli-1.1.27-090g18py.mjs +0 -2
- package/dist/chunks/cli-1.1.27-0h1xdjxp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-0rz9qd34.mjs +0 -4
- package/dist/chunks/cli-1.1.27-0wv0k9sb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-14xp8pk4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1hdrfsqd.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1qrkn0zf.mjs +0 -25
- package/dist/chunks/cli-1.1.27-1rztfj2j.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1vmmkyhn.mjs +0 -3
- package/dist/chunks/cli-1.1.27-1yvzf2v8.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1yyef8w3.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1ztbchyz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-22f6jd6a.mjs +0 -2
- package/dist/chunks/cli-1.1.27-2922x4n2.mjs +0 -5
- package/dist/chunks/cli-1.1.27-2e7wwbbp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-2mtc2dbf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-3cjhx8c4.mjs +0 -4
- package/dist/chunks/cli-1.1.27-3eax0jv3.mjs +0 -6
- package/dist/chunks/cli-1.1.27-3mpdw95c.mjs +0 -2
- package/dist/chunks/cli-1.1.27-3qx1npht.mjs +0 -2
- package/dist/chunks/cli-1.1.27-42wr3qtg.mjs +0 -2
- package/dist/chunks/cli-1.1.27-48ezce33.mjs +0 -206
- package/dist/chunks/cli-1.1.27-4ch8wq6c.mjs +0 -3
- package/dist/chunks/cli-1.1.27-4cjm0m5c.mjs +0 -24
- package/dist/chunks/cli-1.1.27-4pm4y79r.mjs +0 -2
- package/dist/chunks/cli-1.1.27-4xegg6js.mjs +0 -2
- package/dist/chunks/cli-1.1.27-51sqdnt6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-55evh9sy.mjs +0 -21
- package/dist/chunks/cli-1.1.27-575dbhvc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-5jvkkbcy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-5vejs4bz.mjs +0 -3
- package/dist/chunks/cli-1.1.27-6dm0tj1c.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6f5wmt15.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6g67vpnz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6s7e0eyt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6spv5ha8.mjs +0 -60
- package/dist/chunks/cli-1.1.27-704q0rhh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-79504h3t.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7a101p3z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7gnbh46g.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7hws4y92.mjs +0 -4
- package/dist/chunks/cli-1.1.27-7jakzfss.mjs +0 -24
- package/dist/chunks/cli-1.1.27-7jc0gzqt.mjs +0 -4
- package/dist/chunks/cli-1.1.27-7wrz865m.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7zpnm6dn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-83exfkej.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8em170zt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8fve969w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8gsqhqyf.mjs +0 -42
- package/dist/chunks/cli-1.1.27-8vkygf4q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8vrv0ver.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8zkr609d.mjs +0 -4
- package/dist/chunks/cli-1.1.27-91eh3cyz.mjs +0 -3
- package/dist/chunks/cli-1.1.27-9427t707.mjs +0 -2
- package/dist/chunks/cli-1.1.27-94qc7asn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-96ccvbyj.mjs +0 -2
- package/dist/chunks/cli-1.1.27-96yksxag.mjs +0 -2
- package/dist/chunks/cli-1.1.27-98bpezgc.mjs +0 -45
- package/dist/chunks/cli-1.1.27-9chfrr9e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-9d0bkxf6.mjs +0 -15
- package/dist/chunks/cli-1.1.27-9m09gcqr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-9sswt66t.mjs +0 -12
- package/dist/chunks/cli-1.1.27-a454a3rb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-aahmf6wc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-b0s2nhr1.mjs +0 -24
- package/dist/chunks/cli-1.1.27-b3bkjfyh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-b42yen3p.mjs +0 -2
- package/dist/chunks/cli-1.1.27-bpbp93hw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-bwc1f1yx.mjs +0 -15
- package/dist/chunks/cli-1.1.27-byba8306.mjs +0 -20
- package/dist/chunks/cli-1.1.27-byxgdj3w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cth2wwrh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cth3rq9k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cw1p9ac2.mjs +0 -3
- package/dist/chunks/cli-1.1.27-cw9bqwta.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cxy3fqs0.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d0k9rgj1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d1zgycfk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d4km9s81.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d4w9gqgs.mjs +0 -50
- package/dist/chunks/cli-1.1.27-d5q76t7c.mjs +0 -3
- package/dist/chunks/cli-1.1.27-d7r6x0ew.mjs +0 -2
- package/dist/chunks/cli-1.1.27-dfww0knt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-dhzbmaf3.mjs +0 -2
- package/dist/chunks/cli-1.1.27-e2p4abq5.mjs +0 -2
- package/dist/chunks/cli-1.1.27-e53f6at7.mjs +0 -2
- package/dist/chunks/cli-1.1.27-eag2dgb4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-es2rn3j6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-eypype7d.mjs +0 -8
- package/dist/chunks/cli-1.1.27-f218cppx.mjs +0 -34
- package/dist/chunks/cli-1.1.27-f3cv6wk1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fary910g.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fc1my4zp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fdhry9qy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fr8vw4x1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fw9r8cwg.mjs +0 -4
- package/dist/chunks/cli-1.1.27-fxmty4t4.mjs +0 -5
- package/dist/chunks/cli-1.1.27-g8n6nr2e.mjs +0 -1
- package/dist/chunks/cli-1.1.27-gan2msv5.mjs +0 -3
- package/dist/chunks/cli-1.1.27-ge84mp6e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ggg6m9qt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gmknn4xh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gnhg7s3x.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gnvm8gat.mjs +0 -2
- package/dist/chunks/cli-1.1.27-h7ytc7jg.mjs +0 -9
- package/dist/chunks/cli-1.1.27-hafa2nxa.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hcnrf84n.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hh78rvvf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hhkkts5k.mjs +0 -6
- package/dist/chunks/cli-1.1.27-hrwxg46q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hs6hv3bh.mjs +0 -20
- package/dist/chunks/cli-1.1.27-j362egg2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jcn2gvsw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jfqvck1y.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jg3tymed.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jh817v59.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jm7jbypb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jmegwyzr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jmz9pczh.mjs +0 -3
- package/dist/chunks/cli-1.1.27-jt1gb6nf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jvs6enw9.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k115ge4q.mjs +0 -6
- package/dist/chunks/cli-1.1.27-k2fyp83y.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k6dwtkrp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k9jt24bv.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kdv6nw9e.mjs +0 -12
- package/dist/chunks/cli-1.1.27-kerbk21s.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kgpk1m6k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kkt8se1z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kpqha1ce.mjs +0 -2
- package/dist/chunks/cli-1.1.27-krtd4rf3.mjs +0 -3
- package/dist/chunks/cli-1.1.27-m2n4m352.mjs +0 -2
- package/dist/chunks/cli-1.1.27-m5wtrd2b.mjs +0 -2
- package/dist/chunks/cli-1.1.27-m6ne80zc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-maxx6jt7.mjs +0 -4
- package/dist/chunks/cli-1.1.27-me6jhh1k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-mqt20a61.mjs +0 -2
- package/dist/chunks/cli-1.1.27-mr1wxvzb.mjs +0 -3
- package/dist/chunks/cli-1.1.27-n09bs0db.mjs +0 -2
- package/dist/chunks/cli-1.1.27-n3fg97y6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-n6vfvfw4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-nbgxr715.mjs +0 -10
- package/dist/chunks/cli-1.1.27-njcbrvnc.mjs +0 -58
- package/dist/chunks/cli-1.1.27-nmp82pea.mjs +0 -3
- package/dist/chunks/cli-1.1.27-nx2yxmg9.mjs +0 -3
- package/dist/chunks/cli-1.1.27-nxkc7nfr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ny95570d.mjs +0 -133
- package/dist/chunks/cli-1.1.27-p1sh0ft2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-p7kjkqhn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-p99q7a22.mjs +0 -133
- package/dist/chunks/cli-1.1.27-pab2avnw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-pyjha53q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-q2msmggk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-q830jx95.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qcvp3n4v.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qkzc0vzs.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qnzhd86k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-r32k5nw7.mjs +0 -4
- package/dist/chunks/cli-1.1.27-r335xv52.mjs +0 -6
- package/dist/chunks/cli-1.1.27-r3r36jvq.mjs +0 -25
- package/dist/chunks/cli-1.1.27-r4ck0s0j.mjs +0 -2
- package/dist/chunks/cli-1.1.27-r9jjyax0.mjs +0 -7
- package/dist/chunks/cli-1.1.27-rct7c74m.mjs +0 -2
- package/dist/chunks/cli-1.1.27-rnwaxvgf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-rqdq9mhj.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ryd2t3vk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-s62prq89.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sbj1hdj9.mjs +0 -2
- package/dist/chunks/cli-1.1.27-scfswqdr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sdw0p0c4.mjs +0 -58
- package/dist/chunks/cli-1.1.27-sngxwsap.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sr4a2gd6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sw6tnehx.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t13xq38e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t1dxp2pw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t32zh7r1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t4rm4dqf.mjs +0 -6
- package/dist/chunks/cli-1.1.27-tc4b7enb.mjs +0 -17
- package/dist/chunks/cli-1.1.27-tpefzkds.mjs +0 -4
- package/dist/chunks/cli-1.1.27-tw693ept.mjs +0 -2
- package/dist/chunks/cli-1.1.27-v24sqtag.mjs +0 -24
- package/dist/chunks/cli-1.1.27-v49qz5nz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-v9dwxgsv.mjs +0 -15
- package/dist/chunks/cli-1.1.27-vh1r16sd.mjs +0 -6
- package/dist/chunks/cli-1.1.27-vhdd7ed4.mjs +0 -39
- package/dist/chunks/cli-1.1.27-w0jz23zw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-w8pwj9ef.mjs +0 -5522
- package/dist/chunks/cli-1.1.27-wbtq2bbb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wj32ftfy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wpnpp1vg.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wtthtmes.mjs +0 -3
- package/dist/chunks/cli-1.1.27-wz24bwzn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-x6dqasdj.mjs +0 -17
- package/dist/chunks/cli-1.1.27-xdfkhk5m.mjs +0 -16
- package/dist/chunks/cli-1.1.27-xjabxtdd.mjs +0 -7
- package/dist/chunks/cli-1.1.27-xx0q9f0f.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y6pe4jk6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y712t8h2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y935z28w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-yghv5btz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-z32qkf2d.mjs +0 -18
- package/dist/chunks/cli-1.1.27-zbbzy1ze.mjs +0 -2
- package/dist/chunks/cli-1.1.27-zgweqxf0.mjs +0 -9
- package/dist/chunks/cli-1.1.27-zq9wak2z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-zr523fbq.mjs +0 -3
- package/dist/chunks/client-1.1.27-ex7wh5hg.mjs +0 -1
- package/dist/chunks/color-1.1.27-58s1yrz1.mjs +0 -1
- package/dist/chunks/compact-1.1.27-c1wgqww4.mjs +0 -3
- package/dist/chunks/config-1.1.27-7vwe1qph.mjs +0 -1
- package/dist/chunks/config-1.1.27-ymfcbn84.mjs +0 -1
- package/dist/chunks/constants-1.1.27-3r2715sd.mjs +0 -1
- package/dist/chunks/context-1.1.27-yznf0qn9.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.27-g15en4j2.mjs +0 -1
- package/dist/chunks/conversation-1.1.27-jmmsnhbw.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.27-g0p5y9rf.mjs +0 -1
- package/dist/chunks/copy-1.1.27-pr6pzthk.mjs +0 -9
- package/dist/chunks/cost-1.1.27-q1yqmxr9.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.27-4cwnpwje.mjs +0 -1
- package/dist/chunks/createSession-1.1.27-xdq80vrv.mjs +0 -1
- package/dist/chunks/debug-1.1.27-42bn4afg.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.27-t14xxt79.mjs +0 -1534
- package/dist/chunks/desktop-1.1.27-c8h6b96d.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.27-qx3djtsx.mjs +0 -1
- package/dist/chunks/detection-1.1.27-0974kbef.mjs +0 -1
- package/dist/chunks/diff-1.1.27-1cb81w47.mjs +0 -1
- package/dist/chunks/doctor-1.1.27-5ky6nxzq.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.27-jcx2c92k.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.27-btzh8ch0.mjs +0 -1
- package/dist/chunks/effort-1.1.27-5yvfxd52.mjs +0 -13
- package/dist/chunks/engine-1.1.27-xcjbgefa.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.27-tdwb5zkz.mjs +0 -1
- package/dist/chunks/envUtils-1.1.27-r07jyd3m.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.27-dr64k9he.mjs +0 -1
- package/dist/chunks/environments-1.1.27-s1z96vy8.mjs +0 -1
- package/dist/chunks/errors-1.1.27-bm50fpjg.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.27-wnw6egjm.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.27-evt4sr84.mjs +0 -1
- package/dist/chunks/exit-1.1.27-vgdg65b7.mjs +0 -1
- package/dist/chunks/explorer-1.1.27-zkb8zkpf.mjs +0 -1
- package/dist/chunks/export-1.1.27-tda60v40.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.27-2bmjnc65.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.27-m7byqk30.mjs +0 -1
- package/dist/chunks/fast-1.1.27-8bjn4w16.mjs +0 -1
- package/dist/chunks/feedback-1.1.27-vzfx84xw.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.27-57d5r280.mjs +0 -1
- package/dist/chunks/git-1.1.27-pe9yjmar.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.27-r2w00yyn.mjs +0 -1
- package/dist/chunks/goal-1.1.27-da40b321.mjs +0 -4
- package/dist/chunks/growthbook-1.1.27-rmhw14zh.mjs +0 -1
- package/dist/chunks/headless-1.1.27-gwzekzne.mjs +0 -2
- package/dist/chunks/heapdump-1.1.27-0702z5xd.mjs +0 -6
- package/dist/chunks/help-1.1.27-gwcwagyv.mjs +0 -1
- package/dist/chunks/hookChains-1.1.27-jyc4rzjs.mjs +0 -3
- package/dist/chunks/hooks-1.1.27-8p1xt4z2.mjs +0 -1
- package/dist/chunks/hooks-1.1.27-vvzpa77q.mjs +0 -79
- package/dist/chunks/ide-1.1.27-w2am9w2t.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.27-fk490n21.mjs +0 -1
- package/dist/chunks/import-1.1.27-69zkqd7t.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.27-7whcznny.mjs +0 -1
- package/dist/chunks/index-1.1.27-03qtf3bh.mjs +0 -9
- package/dist/chunks/index-1.1.27-2w3eyz3g.mjs +0 -1
- package/dist/chunks/index-1.1.27-4td4kk2r.mjs +0 -2
- package/dist/chunks/index-1.1.27-72s4gvww.mjs +0 -1
- package/dist/chunks/index-1.1.27-7rmx1z0f.mjs +0 -9
- package/dist/chunks/index-1.1.27-949q66tk.mjs +0 -1
- package/dist/chunks/index-1.1.27-9w6rbss1.mjs +0 -1
- package/dist/chunks/index-1.1.27-9w6y0sqf.mjs +0 -5
- package/dist/chunks/index-1.1.27-9za77x22.mjs +0 -2
- package/dist/chunks/index-1.1.27-av965j5w.mjs +0 -1
- package/dist/chunks/index-1.1.27-dpf9bwn3.mjs +0 -1
- package/dist/chunks/index-1.1.27-dzzkz91c.mjs +0 -1
- package/dist/chunks/index-1.1.27-ed0cj234.mjs +0 -30
- package/dist/chunks/index-1.1.27-fz6pezpj.mjs +0 -1
- package/dist/chunks/index-1.1.27-haym7ds6.mjs +0 -1
- package/dist/chunks/index-1.1.27-k2zye2ba.mjs +0 -1
- package/dist/chunks/index-1.1.27-ktav82bw.mjs +0 -1
- package/dist/chunks/index-1.1.27-qj3j1rkb.mjs +0 -1
- package/dist/chunks/index-1.1.27-r6ypg71x.mjs +0 -1
- package/dist/chunks/index-1.1.27-r8jqe3yp.mjs +0 -1
- package/dist/chunks/index-1.1.27-rcxd3h0n.mjs +0 -23
- package/dist/chunks/index-1.1.27-spc0z43g.mjs +0 -1
- package/dist/chunks/index-1.1.27-xvd24vg3.mjs +0 -1
- package/dist/chunks/init-1.1.27-kbwzggfn.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.27-r8gnhged.mjs +0 -1
- package/dist/chunks/ink-1.1.27-btbyg6z5.mjs +0 -1
- package/dist/chunks/insights-1.1.27-r17n37gt.mjs +0 -870
- package/dist/chunks/install-1.1.27-rst7c5sr.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.27-qe83k348.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.27-9btj28ve.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.27-zs5yatff.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.27-vkw6dmnx.mjs +0 -1
- package/dist/chunks/keybindings-1.1.27-1sx34z24.mjs +0 -2
- package/dist/chunks/knowledge-1.1.27-3vda7yge.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.27-8vg474pc.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.27-ax53z9hj.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.27-34tp38m5.mjs +0 -1
- package/dist/chunks/log-1.1.27-trbh6pmv.mjs +0 -1
- package/dist/chunks/main-1.1.27-y8ep0qqz.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.27-xf362k5y.mjs +0 -1
- package/dist/chunks/mcp-1.1.27-af12t0f2.mjs +0 -1
- package/dist/chunks/mcp-1.1.27-qzntdrh6.mjs +0 -17
- package/dist/chunks/mcp-1.1.27-vsgp33q0.mjs +0 -4
- package/dist/chunks/mcpb-1.1.27-m9bw286t.mjs +0 -1
- package/dist/chunks/memory-1.1.27-tzff1b9e.mjs +0 -72
- package/dist/chunks/model-1.1.27-968y8qcm.mjs +0 -2
- package/dist/chunks/model-1.1.27-p2b82a7t.mjs +0 -1
- package/dist/chunks/node-1.1.27-bghx5g4n.mjs +0 -1
- package/dist/chunks/node-1.1.27-rjfnqhpk.mjs +0 -15
- package/dist/chunks/oauth-1.1.27-19qatx62.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.27-p50pa80m.mjs +0 -14
- package/dist/chunks/output-style-1.1.27-6h4astb5.mjs +0 -1
- package/dist/chunks/package-OS7RONXY-1.1.27-nvbtkqpn.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.27-3gy61f1e.mjs +0 -1
- package/dist/chunks/parser-1.1.27-6m7zhkr7.mjs +0 -1
- package/dist/chunks/passes-1.1.27-2n9jw11x.mjs +0 -1
- package/dist/chunks/permissions-1.1.27-ah7j2bj9.mjs +0 -3
- package/dist/chunks/permissions-1.1.27-qnhk36mh.mjs +0 -1
- package/dist/chunks/plan-1.1.27-vkhc8mq9.mjs +0 -1
- package/dist/chunks/plist-1.1.27-vg4h3pf9.mjs +0 -1
- package/dist/chunks/plugin-1.1.27-benemmgh.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.27-tyd8w4ay.mjs +0 -1
- package/dist/chunks/plugins-1.1.27-er0je2r7.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.27-8w2hxz61.mjs +0 -2
- package/dist/chunks/print-1.1.27-nf4vjdv0.mjs +0 -57
- package/dist/chunks/process-1.1.27-1en4vj8c.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.27-y2nx754j.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.27-mert7w0e.mjs +0 -9
- package/dist/chunks/prompt-1.1.27-0qqepg5j.mjs +0 -1
- package/dist/chunks/prompt-1.1.27-40pnv6x7.mjs +0 -1
- package/dist/chunks/prompts-1.1.27-kvtvsbhd.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.27-27de09ht.mjs +0 -13
- package/dist/chunks/provider-1.1.27-g4r1c84c.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.27-tp6zknw0.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.27-ntakvdzk.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.27-fvdwd7xd.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.27-5pprq81w.mjs +0 -26
- package/dist/chunks/registry-1.1.27-vccj3rtk.mjs +0 -1
- package/dist/chunks/release-notes-1.1.27-a7x9237x.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.27-7yf3667k.mjs +0 -2
- package/dist/chunks/remote-env-1.1.27-2vdhr1s9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.27-0qn70btv.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.27-21n6mx7d.mjs +0 -1
- package/dist/chunks/rename-1.1.27-x0qfjvj2.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.27-661m032k.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.27-48an8y55.mjs +0 -1
- package/dist/chunks/resume-1.1.27-0n7jaz71.mjs +0 -2
- package/dist/chunks/rewind-1.1.27-0dhz50d0.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.27-8k0jbnfk.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.27-3a15vms4.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.27-j8pr6jz7.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.27-r1nrcxaz.mjs +0 -1
- package/dist/chunks/session-1.1.27-bv5zha49.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.27-z50hzta3.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.27-vc8ajjh0.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.27-0vfss5b6.mjs +0 -1
- package/dist/chunks/settings-1.1.27-jar0d6ey.mjs +0 -1
- package/dist/chunks/setup-1.1.27-ggnhb2c8.mjs +0 -12
- package/dist/chunks/sinks-1.1.27-qevt5nft.mjs +0 -1
- package/dist/chunks/skills-1.1.27-wjq94pk8.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.27-q5yb3a35.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.27-k3spb2gh.mjs +0 -1
- package/dist/chunks/state-1.1.27-fpyqkxby.mjs +0 -1
- package/dist/chunks/stats-1.1.27-xb10zj7e.mjs +0 -1
- package/dist/chunks/status-1.1.27-7vscpczw.mjs +0 -1
- package/dist/chunks/stickers-1.1.27-j4em7gfg.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.27-0dm2v5n5.mjs +0 -1
- package/dist/chunks/tasks-1.1.27-a7d9cx1a.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.27-2jkv3830.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.27-8vmyznjc.mjs +0 -1
- package/dist/chunks/teleport-1.1.27-d6bgvctx.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.27-8k6bdqzf.mjs +0 -1
- package/dist/chunks/theme-1.1.27-dzme81zx.mjs +0 -1
- package/dist/chunks/thinkback-1.1.27-8hrqe8zc.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.27-7pf0t9jk.mjs +0 -1
- package/dist/chunks/toolPool-1.1.27-yndm4vnc.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.27-m1tpg8zj.mjs +0 -1
- package/dist/chunks/tools-1.1.27-f6v2cxn6.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.27-bkp7wbqw.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.27-ev0anxmd.mjs +0 -69
- package/dist/chunks/types-1.1.27-pgjcgwmr.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.27-fzpef911.mjs +0 -4
- package/dist/chunks/update-1.1.27-0rwrmj8m.mjs +0 -72
- package/dist/chunks/upgrade-1.1.27-zacn9g92.mjs +0 -1
- package/dist/chunks/upload-1.1.27-9natjvcx.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.27-484n2sck.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.27-e0vf9zwd.mjs +0 -1
- package/dist/chunks/usage-1.1.27-qdx2zhbe.mjs +0 -1
- package/dist/chunks/util-1.1.27-m60qqy4m.mjs +0 -1
- package/dist/chunks/utils-1.1.27-bpj1f9q9.mjs +0 -1
- package/dist/chunks/vim-1.1.27-dvj5bk5p.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.27-1vydfkzw.mjs +0 -13
- package/dist/chunks/watcher-1.1.27-jxayr96k.mjs +0 -1
- package/dist/chunks/wiki-1.1.27-t7nxcbah.mjs +0 -132
- package/dist/chunks/workflows-1.1.27-7bdgxjth.mjs +0 -1
- package/dist/chunks/worktree-1.1.27-6kkgvwks.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.27-ax7kv7qq.mjs +0 -1
- package/dist/chunks/wrapper-1.1.27-q9kmdf61.mjs +0 -7
- /package/dist/chunks/{cli-1.1.27-f8njyndt.mjs → cli-1.1.28-43p679k7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-4an77vdm.mjs → cli-1.1.28-7d7hz6b4.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-5mn2zxpk.mjs → cli-1.1.28-f658tc1w.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-097en7tp.mjs → cli-1.1.28-m37hk495.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-sgvc7y72.mjs → cli-1.1.28-m7x3ax7z.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-r2qyxh4t.mjs → cli-1.1.28-qzdtd4w8.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n5 as N,s5 as $}from"./cli-1.1.27-1rztfj2j.mjs";import{F9 as Z,f9 as M,l6 as L,o6 as Y}from"./cli-1.1.27-xdfkhk5m.mjs";import{Sha as Q,_ha as X}from"./cli-1.1.27-48ezce33.mjs";import{ska as J,tka as V}from"./cli-1.1.27-y712t8h2.mjs";import{Wla as P,cma as S}from"./cli-1.1.27-0rz9qd34.mjs";import{Ysa as K,ota as W}from"./cli-1.1.27-4cjm0m5c.mjs";import{Mta as R}from"./cli-1.1.27-8vrv0ver.mjs";async function f(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
|
|
2
|
-
export{f as rY,j as sY,b as tY};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wfa as H,Zfa as J,sga as R}from"./cli-1.1.27-48ezce33.mjs";import{Mta as Q}from"./cli-1.1.27-8vrv0ver.mjs";function M(q){return U(J(),q)}function S(q,z){let B=L[q],D=T(M(q),z);return H((P)=>({...P,[B]:D})),D.includes(z)}function X(q,z){return{list:()=>M(q),toggle:(B)=>{S(q,B)},keyOf:z}}function T(q,z){return q.includes(z)?q.filter((B)=>B!==z):[...q,z]}function U(q,z){let B=q[L[z]];return Array.isArray(B)?B.filter((D)=>typeof D==="string"):[]}var L;var V=Q(()=>{R();L={model:"favoriteModels",providerProfile:"favoriteProviderProfiles"}});
|
|
2
|
-
export{X as ci,V as di};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Xe as V,Ze as B}from"./cli-1.1.27-bwc1f1yx.mjs";import{Fk as L,Gx as Q,Hx as q,JS as F,RO as U,TO as w}from"./cli-1.1.27-w8pwj9ef.mjs";import{Tba as K,Yba as k}from"./cli-1.1.27-48ezce33.mjs";import{Ala as $,xla as I}from"./cli-1.1.27-r335xv52.mjs";import{Xla as G,cma as _}from"./cli-1.1.27-0rz9qd34.mjs";import{Mta as Z}from"./cli-1.1.27-8vrv0ver.mjs";async function C(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
|
|
2
|
-
export{C as Ve,D as We};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{I$ as Q,K$ as M,Zfa as P,sga as R}from"./cli-1.1.27-48ezce33.mjs";import{Ala as C,xla as G}from"./cli-1.1.27-r335xv52.mjs";import{Mta as j}from"./cli-1.1.27-8vrv0ver.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function k(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function U(q){let z=q.split(`
|
|
2
|
-
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of k()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function B(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return U(J)}async function N(){for(let q of v)if(await _(q))return q;return null}async function f(){if(Z!==void 0)return Z;try{let q=await B();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await N();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await f();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var m=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
-
export{g as t5,w as u5,m as v5};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$o as Xq,$p as l,Zo as j,_o as m,bq as Rq,cq as i,eq as Aq,up as D,zp as Zq}from"./cli-1.1.27-w8pwj9ef.mjs";import{Bda as u,Dda as g,Gda as h,Hda as n,Mda as vq,Sha as L,_ha as Qq}from"./cli-1.1.27-48ezce33.mjs";import{Aja as d,Bja as Uq}from"./cli-1.1.27-njcbrvnc.mjs";import{Ala as e,ala as P,bla as v,fla as f,jla as M,nla as y,xla as V}from"./cli-1.1.27-r335xv52.mjs";import{Xla as W,Yla as O,Zla as C,cma as N}from"./cli-1.1.27-0rz9qd34.mjs";import{Ysa as p,ota as qq}from"./cli-1.1.27-4cjm0m5c.mjs";import{Mta as E}from"./cli-1.1.27-8vrv0ver.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:J,ref:X}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=E(()=>{N();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as xq}from"fs/promises";import{join as Jq}from"path";function c(){return Jq(D(),Kq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==_)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${_})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=D();await M().mkdir(Q);let B=P(Z,null,2);await xq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){L(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${w}`);let Z=performance.now();try{let q=await p.get(w,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return j("install_counts",w,"success",performance.now()-Z),q.data.plugins}catch(q){throw j("install_counts",w,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),j("install_counts",w,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:_,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return L(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var _=1,Kq="install-counts-cache.json",w="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=E(()=>{qq();e();N();y();Qq();f();Xq();Zq()});import{readdir as wq,readFile as A,stat as Iq}from"fs/promises";import*as H from"path";function jq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Eq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function S(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(K&&typeof K==="object"){let X=K;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let X=K,Y=Object.keys(X).filter((x)=>Mq.has(x));if(Y.length>0){let x={...X};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claudin "+"ignores it at load time."});z=x}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claudin accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(K&&typeof K==="object"){let X=K;if(Array.isArray(X.plugins))X.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Eq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(K);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((J,U)=>{if(X.plugins.filter((R)=>R.name===J.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(Q),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(x,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function Nq(Z,q,$){let Q=[],B=[],K=q.match(i);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=K[1]||"",G;try{G=l(z)}catch(J){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let J=X.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=X.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function _q(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await wq(Z,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let K=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(K)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,K]of $){let z=await o(K,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(x){if(C(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await _q(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await Iq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await k(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await S(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(jq(Z)){case"plugin":return S(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=v(B);if(Array.isArray(K.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return S(Z)}}}var Mq;var Lq=E(()=>{Uq();N();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
-
export{Fq as sc,r as tc,nq as uc,lq as vc,Oq as wc,QQ as xc,XQ as yc,Lq as zc};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{s8 as x,y8 as K}from"./cli-1.1.27-xdfkhk5m.mjs";import{Vea as w,gfa as J}from"./cli-1.1.27-48ezce33.mjs";import{Yia as v,ija as I}from"./cli-1.1.27-dfww0knt.mjs";import{ima as q,qma as G}from"./cli-1.1.27-t1dxp2pw.mjs";import{Mta as z}from"./cli-1.1.27-8vrv0ver.mjs";function W(h){return h.type==="advisor_tool_result"||h.type==="server_tool_use"&&h.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDIN_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let h=j();return k()&&!N()&&h.baseModel&&h.advisorModel?{baseModel:h.baseModel,advisorModel:h.advisorModel}:void 0}function Z(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function $(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(h){let b=h.iterations;if(!b)return[];return b.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
|
|
2
|
-
|
|
3
|
-
You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
|
|
4
|
-
|
|
5
|
-
Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
|
|
6
|
-
|
|
7
|
-
Also call advisor:
|
|
8
|
-
- When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
|
|
9
|
-
- When stuck -- errors recurring, approach not converging, results that don't fit.
|
|
10
|
-
- When considering a change of approach.
|
|
11
|
-
|
|
12
|
-
On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
|
|
13
|
-
|
|
14
|
-
Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
|
|
15
|
-
|
|
16
|
-
If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
|
|
17
|
-
export{W as MV,k as NV,N as OV,X as PV,Z as QV,$ as RV,B as SV,D as TV,F as UV,O as VV};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{X9 as P5,Z9 as R7}from"./cli-1.1.27-kdv6nw9e.mjs";import{$9 as A,a_ as e8}from"./cli-1.1.27-vh1r16sd.mjs";import{k_ as a2,m_ as D7}from"./cli-1.1.27-dhzbmaf3.mjs";import{Aha as s2,Dha as L,Gha as J0,H$ as v2,K$ as ZZ,Mca as z2,Oga as B4,Qea as P,Qfa as c,Qga as J4,Sea as x5,Sha as k,Tga as N5,Uga as QZ,Vea as N,Vfa as n2,Wfa as S,X$ as P2,Z$ as $Z,Zfa as D,_ha as n0,bda as G8,dga as e1,gfa as x0,kea as o1,l$ as A4,m$ as t,n$ as K5,o$ as L0,p$ as C4,pfa as s4,q$ as s5,rfa as JZ,rha as l2,sfa as S1,sga as $0,tea as H8,tfa as m7,uga as Z4,uha as G4,v$ as H0,vga as R8,w$ as H1,yca as M1,zca as p7,zga as $4}from"./cli-1.1.27-48ezce33.mjs";import{Yia as M0,_ia as h4,ija as T1}from"./cli-1.1.27-dfww0knt.mjs";import{lka as A2,mka as l4,nka as B0,pka as G7,qka as H7,ska as U,tka as _0}from"./cli-1.1.27-y712t8h2.mjs";import{uka as x,xka as z5}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as Z0,bla as U2,fla as o8,jla as n5,nla as S7,xla as z,zla as m0}from"./cli-1.1.27-r335xv52.mjs";import{Xla as g,Zla as z1,cma as x1}from"./cli-1.1.27-0rz9qd34.mjs";import{fma as N2,ima as K,kma as u,mma as v5,qma as d}from"./cli-1.1.27-t1dxp2pw.mjs";import{Lpa as C,Sna as Y0,Spa as I1,Tna as D1,Voa as d1,Vra as Q0,hpa as r1,hqa as X1,iqa as V1,jqa as W1,kqa as j1,lpa as _4,qpa as y0,rpa as Z5,wqa as j5}from"./cli-1.1.27-m6ne80zc.mjs";import{ssa as h,tsa as t0}from"./cli-1.1.27-jg3tymed.mjs";import{Ysa as v,ota as Y5}from"./cli-1.1.27-4cjm0m5c.mjs";import{Jta as E0,Lta as c5,Mta as R,Nta as r}from"./cli-1.1.27-8vrv0ver.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.27-qj3j1rkb.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.27-dpf9bwn3.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function rZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.27-qj3j1rkb.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.27-dpf9bwn3.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function eZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,oZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});oZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,y5,_5,h5,I5,T5,M5,S5,l0,s0,a0,N0,f5,A5,C5,U0,d2;var u5=R(()=>{O5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},y5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},_5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},h5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},I5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},S5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},s0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},a0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},N0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f5={firstParty:"claude-fable-5-1",bedrock:"anthropic.claude-fable-5-1",vertex:"claude-fable-5-1",foundry:"claude-fable-5-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},C5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},U0={haiku35:y5,haiku45:_5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:N0,fable51:f5},d2=Object.fromEntries(Object.entries(U0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var P0={};c5(P0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>y7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>_7});function v0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=v0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=v0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=v0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&v0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function y7(Z){return e0(Z)?.model.limit.output}function _7(Z){e=Z,z0=Z?v0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var O0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function z$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(O0(),E0(P0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function x$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function B$(){return W()}function G$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=U0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=U0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function k$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(U0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function U$(Z){return Z}function v$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function I$(){let $=D().oauthAccount?.accountUuid,J=h0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();_0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,g$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,g$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function t$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",I0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",a$="effort-2025-11-24",r$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",o$="extended-cache-ttl-2025-04-11",e$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",y1="thinking-token-count-2026-05-13",_1="token-efficient-tools-2026-03-28",ZJ="afk-mode-2026-01-31",$J="advisor-tool-2026-03-01",o5,JJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),JJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=M0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&M0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function DJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function bJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??S0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function UJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function vJ(){R0={status:"active"}}function PJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function EJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function yJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function hJ(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function IJ(){if(S1())return;if(!I())return;if(T0)return z("Fast mode prefetch in progress, returning in-flight promise"),T0;let Z=h0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{T0=null}}return T0=Y(),T0}var LJ="Opus 5",R0,Z2=!1,C1,u1,kJ,NJ,g1,OJ,E,$2,_J,a7=30000,h1=0,T0=null;var p1=R(()=>{Y5();_0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),kJ=C1.subscribe,NJ=u1.subscribe;g1=Y0(),OJ=g1.subscribe;E={status:"pending"},$2=Y0(),_J=$2.subscribe});function Y8(Z){for(let $ of Q8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(N0.firstParty)]??n}function q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function X8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(N0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=Y8(Z);if(Y)return Y;return V8(Z,J),Y2[b(S0())]??J8}return Q}function V8(Z,$){x("",{model:Z,shortName:$}),d1()}function W8(Z,$){let J=X8(Z,$);return q8(J,$)}function uJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return W8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var r7,f0,m1,n,o7,e7,i1,Z8,$8,J8,Q8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();r7={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},f0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},o7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},e7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},Z8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},$8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},J8=n,Q8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];Y2={[F(y5.firstParty)]:Z8,[F(_5.firstParty)]:$8,[F(E5.firstParty)]:f0,[F(O5.firstParty)]:f0,[F(h5.firstParty)]:f0,[F(I5.firstParty)]:f0,[F(A5.firstParty)]:f0,[F(C5.firstParty)]:r7,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(N0.firstParty)]:n,[F(f5.firstParty)]:o7,"claude-fable-5":e7}});function p(Z){return j8.includes(Z)}function F0(Z){return z8.includes(Z)}var j8,z8;var W2=R(()=>{j8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];z8=["sonnet","opus","haiku"]});function x8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function B8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(F0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!F0(Y)||!l1(Y,q))return!0}for(let X of q)if(F0(X)&&!l1(X,q)&&x8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!F0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!F0(X)&&!p(X)){if(B8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function K0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function z9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function x9(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=K0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function B9(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function w8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=K0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function G9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function S0(){let Z=K0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(S0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5-1"))return"claude-fable-5-1";if(Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function F8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?K8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function H9(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function R9(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function K8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(y()&&f()===null)return!1;return!0}function w9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(O0(),E0(P0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable51:return"Fable 5.1";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function F9(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return w8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5"||Y==="fable51")return B().fable51;if(W()==="firstParty"&&D8(Y)&&b8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function K9(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function D8(Z){return L8.includes(Z)}function b8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function L9(Z){if(Z===null){if(y())return`Default (${F8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function D9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5-1"))return"Fable 5.1";if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function b9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function k9(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var L8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();R8();Q5();t1();x0();i();G8();a1();W2();H8();p5();L8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function U9(){}var V4=()=>{};function v8(Z,$={}){if($.isPro??(U8.test(Z)||W4.has(Z)))return!1;if(k8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(N8);return Q?Number.parseFloat(Q[1])>5.4:!1}function P9(){return w5.filter((Z)=>v8(Z.id,{isPro:Z.isPro}))}var w5,k8,W4,N8,U8,j4,z4;var x4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],k8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),N8=/^gpt-(\d+\.\d+)/,U8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>S8,getDiscoveredContextWindow:()=>P8,discoverOpenAICompatibleModelOptions:()=>F4});function P8(Z){return R4.get(Z)}function O8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function E8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function y8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(E8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function _8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function h8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function I8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function T8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${I8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function M8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=O8(),$=y8(Z),J=await T8(_8(Z),$);if(J.length>0)return J;let Q=h8(Z);if(Q)return M8(Q,$);return[]}function S8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),E0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(f8,C8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(O0(),E0(P0));return J(Z)}catch{return}}function N4(Z){let $=b4(A8,u8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(O0(),E0(P0));return J(Z)}catch{return}}var f8,A8,C8,u8;var U4=R(()=>{J0();x4();f8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...j4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},A8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...z4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},C8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),u8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function n9(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),g8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(I0)&&x2(Z))return 1e6;if(c8(Z))return 1e6;return R2}function c8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function l9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function s9(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=p8,J=m8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,g8,d9=20000,p8=32000,m8=64000,i9=8000,t9=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();g8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var d8,P4;var O4=R(()=>{t0();i();d8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of d8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function i8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function G3(Z){if(!Z||Z.length===0)return;if(y()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=i8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function t8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function n8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function l8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function H3(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function R3(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function y4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function w3(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function F3(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=_4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),s8.cache?.clear?.()}var I4,w2,T4,s8;var S4=R(()=>{t0();T1();Q0();e5();_0();o();B2();d();w0();O4();i();x0();I4=[I0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=y4();if(!J)$.push(W5);if(y())$.push(B0);if(l(Z))$.push(I0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(y1);let q=n8(Z);if(y4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||M0("tengu_amber_json_tools",!1));if(Y&&l8(Z)&&X)$.push(U1);if(Y&&V)$.push(_1);if(Q==="vertex"&&t8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),s8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as a8}from"child_process";function f4(Z){return new Promise(($)=>{a8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:r8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function k3(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function N3(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var r8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function P3(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var pZ={};c5(pZ,{validateForceLoginOrg:()=>gZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>OZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>NZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>UZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>BZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>TZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>hZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>MZ,isCustomApiKeyApproved:()=>PZ,isConsumerSubscriber:()=>CZ,isClaudeAISubscriber:()=>y,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>y2,isAnthropicAuthEnabled:()=>k0,is1PApiCustomer:()=>_Z,hasProfileScope:()=>q0,hasOpusAccess:()=>IZ,hasAnthropicApiKeyAuth:()=>WZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>fZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>jZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>h0,getAccountInformation:()=>uZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>kZ,clearAwsCredentialsCache:()=>FZ,clearApiKeyHelperCache:()=>xZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as YZ,stat as qZ}from"fs/promises";import{join as XZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function k0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(b0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function h0(){let{key:Z}=c0();return Z}function WZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function y2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function _2(){return(N()||{}).awsCredentialExport}function h2(){let Z=_2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return VZ}function jZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(_){if(Date.now()-_.timestamp<$)return _.value;if(!m)m={promise:i4(Z,!1,D0),startedAt:null};return _.value}if(m)return m.promise;return m={promise:i4(Z,!0,D0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await zZ(Z);if(J!==D0)return Q;if(Q!==null)_={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==D0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&_&&_.value!==" ")return _={..._,timestamp:Date.now()},_.value;return _={value:" ",timestamp:Date.now()}," "}finally{if(J===D0)m=null}}async function zZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return _?.value??null}function xZ(){D0++,_=null,m=null}function BZ(Z){if(e4()&&!c())return;$7(Z)}async function HZ(){let Z=E2();if(!Z)return!1;if(y2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:RZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function wZ(){let Z=_2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function FZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(KZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function DZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:bZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function kZ(){M2.cache.clear()}function NZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function UZ(){let Z=E2(),$=_2();if(!Z&&!$)return;if(y2()||h2()){if(!c()&&!C())return}j0(),B()}function vZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!vZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
|
|
2
|
-
`;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function PZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function OZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!b0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),L0()}async function EZ(){try{let{mtimeMs:Z}=await qZ(XZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=yZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function yZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await EZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!b0(Q.scopes))return!1;w.cache?.clear?.(),L0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await YZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),L0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:b0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),L0(),!0}catch(V){k(V),w.cache?.clear?.(),L0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function y(){if(!k0())return!1;return b0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function _Z(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(y())return!1;return!0}function b5(){return k0()?D().oauthAccount:void 0}function hZ(){let $=b5()?.billingType;if(!y()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function IZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!k0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function TZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function MZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!k0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){switch(f()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function fZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||SZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function AZ(Z){return Z==="max"||Z==="pro"}function CZ(){let Z=f();return y()&&Z!==null&&AZ(Z)}function uZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(y())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function gZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!k0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
-
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
-
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
-
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
-
Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
-
different organization than required by this machine's managed settings.
|
|
8
|
-
|
|
9
|
-
Required organization: ${Z}
|
|
10
|
-
Token organization: ${q}
|
|
11
|
-
|
|
12
|
-
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
|
|
13
|
-
but this machine requires organization ${Z}.
|
|
14
|
-
|
|
15
|
-
Please log in with the correct organization: claude auth login`}}var VZ=300000,_=null,m=null,D0=0,GZ=3600000,RZ=180000,j0,KZ=5000,LZ=3600000,bZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,SZ=1740000,x7;var o=R(()=>{e8();H1();t0();_0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();ZZ();JZ();n0();$Z();QZ();g4();s5();x0();p4();o8();d4();j0=P2(async()=>{let Z=await HZ(),$=await wZ();if(Z||$)await K1();return $},GZ);M2=P2(async()=>{return await DZ()},LZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function b0(Z){return Boolean(Z?.includes(A2))}function mZ(Z){return Z?.split(" ").filter(Boolean)??[]}function wQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function FQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=mZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await cZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function KQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function LQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function cZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function DQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function 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(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!y()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();_0();o();$0();Z0();t5()});
|
|
16
|
-
export{k3 as w5,N3 as x5,g4 as y5,C2 as z5,u2 as A5,rZ as B5,oZ as C5,w7 as D5,L7 as E5,eZ as F5,c2 as G5,l0 as H5,N0 as I5,U0 as J5,u5 as K5,i5 as L5,v7 as M5,O0 as N5,W as O5,z$ as P5,h7 as Q5,x$ as R5,B$ as S5,G$ as T5,i as U5,B as V5,k$ as W5,Q5 as X5,U$ as Y5,v$ as Z5,Y1 as _5,I$ as $5,G0 as a6,t5 as b6,b0 as c6,mZ as d6,wQ as e6,FQ as f6,a4 as g6,KQ as h6,LQ as i6,g0 as j6,cZ as k6,DQ as l6,bQ as m6,B7 as n6,r4 as o6,g$ as p6,g7 as q6,q1 as r6,G1 as s6,V5 as t6,w1 as u6,t$ as v6,L1 as w6,M as x6,b1 as y6,I0 as z6,N1 as A6,U1 as B6,a$ as C6,r$ as D6,O1 as E6,o$ as F6,e$ as G6,E1 as H6,ZJ as I6,$J as J6,JJ as K6,e5 as L6,I as M6,f1 as N6,d7 as O6,LJ as P6,DJ as Q6,bJ as R6,A1 as S6,kJ as T6,NJ as U6,i7 as V6,UJ as W6,vJ as X6,PJ as Y6,OJ as Z6,EJ as _6,l7 as $6,yJ as a7,_J as b7,hJ as c7,IJ as d7,p1 as e7,f0 as f7,o7 as g7,Z8 as h7,$8 as i7,q2 as j7,W8 as k7,uJ as l7,V2 as m7,t1 as n7,j8 as o7,W2 as p7,s1 as q7,a1 as r7,z9 as s7,x9 as t7,B5 as u7,j2 as v7,B9 as w7,w8 as x7,X0 as y7,A0 as z7,Q4 as A7,G9 as B7,S0 as C7,Y4 as D7,F as E7,b as F7,F8 as G7,H9 as H7,R9 as I7,K8 as J7,J2 as K7,w9 as L7,q4 as M7,X4 as N7,F9 as O7,T as P7,K9 as Q7,b8 as R7,L9 as S7,D9 as T7,b9 as U7,k9 as V7,w0 as W7,U9 as X7,V4 as Y7,P9 as Z7,x4 as _7,F4 as $7,S8 as a8,L4 as b8,d9 as c8,i9 as d8,t9 as e8,V0 as f8,l as g8,n9 as h8,c8 as i8,l9 as j8,s9 as k8,B2 as l8,P4 as m8,O4 as n8,G3 as o8,l8 as p8,H3 as q8,R3 as r8,y4 as s8,w3 as t8,T4 as u8,s8 as v8,F3 as w8,M4 as x8,S4 as y8,L2 as z8,p4 as A8,P3 as B8,c4 as C8,d4 as D8,k0 as E8,O2 as F8,h0 as G8,WZ as H8,c0 as I8,s as J8,y2 as K8,h2 as L8,Z7 as M8,jZ as N8,$7 as O8,b2 as P8,xZ as Q8,BZ as R8,J7 as S8,j0 as T8,FZ as U8,T2 as V8,Q7 as W8,Y7 as X8,M2 as Y8,kZ as Z8,NZ as _8,UZ as $8,U5 as a9,S2 as b9,PZ as c9,OZ as d9,X7 as e9,w as f9,f2 as g9,Q2 as h9,p0 as i9,d0 as j9,y as k9,q0 as l9,_Z as m9,b5 as n9,hZ as o9,IZ as p9,f as q9,H5 as r9,TZ as s9,R5 as t9,MZ as u9,G2 as v9,V7 as w9,W7 as x9,k5 as y9,z7 as z9,fZ as A9,CZ as B9,uZ as C9,gZ as D9,pZ as E9,o as F9};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Aa as d}from"./cli-1.1.27-jm7jbypb.mjs";import{$W as U,_W as v,bX as f,cX as h,dX as c,iX as i}from"./cli-1.1.27-pab2avnw.mjs";import{f5 as O,h5 as b}from"./cli-1.1.27-8vkygf4q.mjs";import{A8 as A,z8 as B}from"./cli-1.1.27-xdfkhk5m.mjs";import{S9 as y,Z9 as u}from"./cli-1.1.27-kdv6nw9e.mjs";import{D$ as Y,F$ as I}from"./cli-1.1.27-48ezce33.mjs";import{Ala as D,ala as H,bla as m,fla as T,xla as G}from"./cli-1.1.27-r335xv52.mjs";import{Xla as q,Yla as S,cma as F}from"./cli-1.1.27-0rz9qd34.mjs";import{Ysa as p,ota as s}from"./cli-1.1.27-4cjm0m5c.mjs";import{randomUUID as N}from"crypto";D();I();F();u();i();f();A();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let W=Q instanceof j?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,W));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,W=0;while(W<this.pending.length&&W<J){let Z;try{Z=Buffer.byteLength(H(this.pending[W]))}catch{this.pending.splice(W,1);continue}if(W>0&&Q+Z>K)break;Q+=Z,W++}return this.pending.splice(0,W)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,W)=>{Q.sleepResolve=null,W()},J,this,K)})}}A();class M{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await B(this.retryDelay(Q)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function P(J,K){let Q={...J};for(let[W,Z]of Object.entries(K))if((W==="external_metadata"||W==="internal_metadata")&&Q[W]&&typeof Q[W]==="object"&&typeof Z==="object"&&Z!==null)Q[W]={...Q[W],...Z};else Q[W]=Z;return Q}var g=20000,l=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var n=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let Q=[],W=new Map;for(let Z of J){let $=Z.event;switch($.type){case"message_start":{let z=$.message.id,L=K.scopeToMessage.get(C(Z));if(L)K.byMessage.delete(L);K.scopeToMessage.set(C(Z),z),K.byMessage.set(z,[]),Q.push(Z);break}case"content_block_delta":{if($.delta.type!=="text_delta"){Q.push(Z);break}let z=K.scopeToMessage.get(C(Z)),L=z?K.byMessage.get(z):void 0;if(!L){Q.push(Z);break}let V=L[$.index]??=[];V.push($.delta.text);let X=W.get(V);if(X){X.event.delta.text=V.join("");break}let w={type:"stream_event",uuid:Z.uuid,session_id:Z.session_id,parent_tool_use_id:Z.parent_tool_use_id,event:{type:"content_block_delta",index:$.index,delta:{type:"text_delta",text:V.join("")}}};W.set(V,w),Q.push(w);break}default:Q.push(Z)}}return Q}function t(J,K){J.byMessage.delete(K.message.id);let Q=C(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=y({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let W=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${W}`,this.sessionId=W.split("/").pop()||"",this.workerState=new M({send:(Z)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Z},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Z)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Z},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Z)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Z},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Z)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Z.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Z)=>{this.reportDelivery(Z.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Z,durationMs:$}=await Q;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:$,had_state:Z!==null});return Z}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,W,{timeout:Z=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Z});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=v(),V=L?d(L):null;if(V!==null&&V*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(V*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=n)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${W} returned ${z.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],V=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(V)&&V>=0)return{ok:!1,retryAfterMs:V*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${W} failed: ${q(z)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),l);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:W}={}){let Z={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...Q&&{is_compaction:!0},...W&&{agent_id:W}};await this.internalEventUploader.enqueue(Z)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0)return null;let Z=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[V,X]of Object.entries(K))z.searchParams.set(V,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),W,Q);if(!L)return null;Z.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Z.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Z}async getWithRetry(J,K,Q){for(let W=1;W<=10;W++){let Z;try{Z=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${W}/10): ${q($)}`,{level:"warn"}),W<10){let z=Math.min(500*2**(W-1),30000)+Math.random()*500;await B(z)}continue}if(Z.status>=200&&Z.status<300)return Z.data;if(Z.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Z.status} (attempt ${W}/10)`,{level:"warn"}),W<10){let $=Math.min(500*2**(W-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();I();F();f();A();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],Q=0,W;while((W=J.indexOf(`
|
|
2
|
-
|
|
3
|
-
`,Q))!==-1){let Z=J.slice(Q,W);if(Q=W+2,!Z.trim())continue;let $={},z=!1;for(let L of Z.split(`
|
|
4
|
-
`)){if(L.startsWith(":")){z=!0;continue}let V=L.indexOf(":");if(V===-1)continue;let X=L.slice(0,V),w=L[V+1]===" "?L.slice(V+2):L.slice(V+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
-
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(Q)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,W,Z,$){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=W,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Z!==void 0&&Z>0)this.lastSequenceNum=Z;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),W={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(Q.Cookie)delete W.Authorization;if(this.lastSequenceNum>0)W["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Z=await fetch(K.href,{headers:W,signal:this.abortController.signal});if(!Z.ok){let z=WJ.has(Z.status);if(G(`SSETransport: HTTP ${Z.status}${z?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:Z.status}),z){this.state="closed",this.onCloseCallback?.(Z.status);return}this.handleConnectionError();return}if(!Z.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Z.body)}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,W="";try{while(!0){let{done:Z,value:$}=await K.read();if(Z)break;W+=Q.decode($,GJ);let{frames:z,remaining:L}=VJ(W);W=L;for(let V of z){if(this.resetLivenessTimer(),V.id){let X=parseInt(V.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(V.event&&V.data)this.handleSSEFrame(V.event,V.data);else if(V.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=m(K)}catch(Z){G(`SSETransport: Failed to parse client_event data: ${q(Z)}`,{level:"error"});return}let W=Q.payload;if(W&&typeof W==="object"&&"type"in W){let Z=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(W.type)}${Z}`),Y("info","cli_sse_message_received"),this.onData?.(H(W)+`
|
|
6
|
-
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Z=this.refreshHeaders();Object.assign(this.headers,Z),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),W=Math.max(0,Q+Q*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(W)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},W)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let W=1;W<=x;W++){try{let $=await p.post(this.postUrl,J,{headers:Q,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${W}/${x}`),Y("warn","cli_sse_post_retryable_error",{status:$.status,attempt:W})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${W}/${x}`),Y("warn","cli_sse_post_network_error",{attempt:W})}if(W===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let Z=Math.min(ZJ*Math.pow(2,W-1),$J);await B(Z)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
-
export{R as ra,k as sa,a as ta,YJ as ua};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mta as D}from"./cli-1.1.27-8vrv0ver.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function Z(q,B){let z=q;for(let K of B){if(z==null||typeof z!=="object")return;z=z[K]}return z}function N(q){if(!q)return!1;let B="";try{B=new URL(q).hostname.toLowerCase()}catch{}if(!B){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let z=B.startsWith("[")&&B.endsWith("]")?B.slice(1,-1):B;if(z==="localhost"||z.endsWith(".localhost")||z.endsWith(".local")||z.endsWith(".lan")||z.endsWith(".internal")||z.endsWith(".intranet")||z.endsWith(".home.arpa"))return!0;let K=z.match(O);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(z==="::1"||z==="::")return!0;if(z.startsWith("fe80:")||k.test(z)||L.test(z))return!0;return!1}function S(q,B){if(q==="github")return B?.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 z=B?.openAiBaseUrl??"";if(N(z))return"self-hosted";let K=z.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function A(q){if(!q||typeof q!=="object")return 0;let B=q,z=$(B.cache_read_input_tokens);if(z>0)return z;let K=$(Z(q,["input_tokens_details","cached_tokens"]))||$(Z(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(B.cached_tokens);if(W>0)return W;let j=$(B.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(B.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let z=$(q.cache_creation_input_tokens);if(z>0)return z;return $(Z(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(Z(q,["cache_creation","ephemeral_1h_input_tokens"]))}function f(q){let B=A(q),z=q??{},K=$(z.input_tokens)||$(z.prompt_tokens),W=K>=B?K-B:K,j=$(z.output_tokens)||$(z.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:B}}function T(q,B){if(!q||typeof q!=="object")return H;let z=q,K=$(z.cache_read_input_tokens),W=$(z.cache_creation_input_tokens),j=$(z.input_tokens);if(B==="copilot"||B==="ollama")return H;if(B==="self-hosted"&&K===0&&W===0)return H;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function _(q,B,z){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let K=[`${X(q.read)} read`];if(q.hitRate!==null)K.push(`hit ${Math.round(q.hitRate*100)}%`);let W=I(B);if(W)K.push(W);if(z&&z.length>0)K.push(`prefix rewritten: ${z.join(", ")}`);return`[Cache: ${K.join(" • ")}]`}function b(q,B,z){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let K=[`read=${X(q.read)}`,`created=${X(q.created)}`];if(q.hitRate!==null)K.push(`hit=${Math.round(q.hitRate*100)}%`);else K.push("hit=n/a");if(B&&B.clearedInputTokens>0)K.push(`server_cleared=${B.clearedToolUses}(-${X(B.clearedInputTokens)})`);if(z&&z.length>0)K.push(`rewrite=${z.join("+")}`);return`[Cache: ${K.join(" ")}]`}function I(q){if(!q||q.clearedInputTokens===0)return"";let B=q.clearedToolUses===1?"tool result":"tool results";return`server cleared ${q.clearedToolUses} ${B} (-${X(q.clearedInputTokens)})`}function X(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(U,"")}k`;return`${(q/1e6).toFixed(1).replace(U,"")}m`}function y(q,B){if(!q.supported&&!B.supported)return H;if(!q.supported)return B;if(!B.supported)return q;let z=q.read+B.read,K=q.created+B.created,W=q.total+B.total;return{read:z,created:K,total:W,hitRate:W>0?z/W:null,supported:!0}}var H,O,k,L,U;var V=D(()=>{H={read:0,created:0,total:0,hitRate:null,supported:!1};O=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,k=/^fc[0-9a-f]{0,2}:/,L=/^fd[0-9a-f]{0,2}:/,U=/\.0$/});function x(q){return{currentTurn:G,session:G,currentTurnServerClears:F,sessionServerClears:F,currentTurnPrefixRewrites:[],history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function C(q,B){J.currentTurn=y(J.currentTurn,q),J.session=y(J.session,q);let z={timestamp:Date.now(),label:B,metrics:q};if(J.history[J.historyWriteIdx]=z,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function E(q){let B=(z)=>({events:z.events+1,clearedToolUses:z.clearedToolUses+q.clearedToolUses,clearedInputTokens:z.clearedInputTokens+q.clearedInputTokens});J.currentTurnServerClears=B(J.currentTurnServerClears),J.sessionServerClears=B(J.sessionServerClears)}function n(q){J.currentTurnPrefixRewrites=[...J.currentTurnPrefixRewrites,q]}function h(){J.currentTurn=G,J.currentTurnServerClears=F,J.currentTurnPrefixRewrites=[]}function R(){J.currentTurn=G,J.session=G,J.currentTurnServerClears=F,J.sessionServerClears=F,J.currentTurnPrefixRewrites=[],J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function v(){return J.currentTurn}function l(){return J.currentTurnServerClears}function d(){return J.currentTurnPrefixRewrites}function m(){return J.sessionServerClears}function o(){return J.session}function u(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),B=J.history.slice(0,J.historyWriteIdx);return q.concat(B)}var F,P=500,G,J;var M=D(()=>{V();F={events:0,clearedToolUses:0,clearedInputTokens:0},G={read:0,created:0,total:0,hitRate:null,supported:!1};J=x(P)});
|
|
2
|
-
export{S as f3,f as g3,T as h3,_ as i3,b as j3,V as k3,C as l3,E as m3,n as n3,h as o3,R as p3,v as q3,l as r3,d as s3,m as t3,o as u3,u as v3,M as w3};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{I$ as z,K$ as H,Sha as C,_ha as J}from"./cli-1.1.27-48ezce33.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
|
|
2
|
-
export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mta as M}from"./cli-1.1.27-8vrv0ver.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 kka,Q as lka,K as mka,X as nka,Y as oka,Z as pka,y as qka,G as rka,h as ska,w as tka};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mta as M}from"./cli-1.1.27-8vrv0ver.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
-
export{V as aj,W as bj,X as cj,Z as dj,Y as ej};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{si as e,vi as fq}from"./cli-1.1.27-b3bkjfyh.mjs";import{wi as t,yi as Hq}from"./cli-1.1.27-rct7c74m.mjs";import{IG as r,JG as kq,SG as n,TG as Mq,qo as S,rP as o,ro as Nq,sP as s,so as g,tP as Oq,to as Vq,uo as $,vo as Wq,yo as i,zo as Yq}from"./cli-1.1.27-w8pwj9ef.mjs";import{eZ as u,gZ as Zq}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as M,H1 as F,Z1 as c,_1 as Uq,g0 as Qq,k2 as Xq}from"./cli-1.1.27-6spv5ha8.mjs";import{U4 as L,V4 as R,W4 as l}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as Lq}from"./cli-1.1.27-m5wtrd2b.mjs";import{r$ as a,s$ as Jq}from"./cli-1.1.27-48ezce33.mjs";import{Ita as d,Mta as Gq}from"./cli-1.1.27-8vrv0ver.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claudin will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${a.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let _;if(q[6]===Symbol.for("react.memo_cache_sentinel"))_=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=_;else _=q[6];let zq=_,m;if(q[7]!==X||q[8]!==N)m=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=m;else m=q[9];let K=m,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=d(Qq(),1),H=d(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
2
|
-
export{lq as qi,Fq as ri};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{XJ as Q,_J as F}from"./cli-1.1.27-w8pwj9ef.mjs";import{Ala as y,xla as b}from"./cli-1.1.27-r335xv52.mjs";import{Zla as x,cma as f}from"./cli-1.1.27-0rz9qd34.mjs";import{fma as w,qma as R}from"./cli-1.1.27-t1dxp2pw.mjs";import{Vra as K,_na as $,boa as j}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as v}from"./cli-1.1.27-8vrv0ver.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
|
|
2
|
-
|
|
3
|
-
`:"",B=k===G?`
|
|
4
|
-
|
|
5
|
-
${c}`:"";return`Scheduled loop tick.
|
|
6
|
-
|
|
7
|
-
${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
|
|
8
|
-
|
|
9
|
-
If .claudin/loop.md exists, read it and follow it.
|
|
10
|
-
Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
|
|
11
|
-
Otherwise:
|
|
12
|
-
- continue any unfinished work from the conversation
|
|
13
|
-
- tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
|
|
14
|
-
- run cleanup passes such as bug hunts or simplification when nothing else is pending
|
|
15
|
-
|
|
16
|
-
Do not start new initiatives outside that scope.
|
|
17
|
-
Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
|
|
18
|
-
export{Y as fh,G as gh,D as hh,g as ih,M as jh,U as kh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{vb as c}from"./cli-1.1.27-k6dwtkrp.mjs";import{Fc as v,Jc as Wq}from"./cli-1.1.27-fc1my4zp.mjs";import{Mc as I,Nc as S,Oc as $,Pc as Xq}from"./cli-1.1.27-51sqdnt6.mjs";import{Fp as C,Gz as A,Hp as r,Hz as Bq,Lz as _,Nz as Gq,VL as f,WL as Tq,Zu as N,_u as e,fG as E,gG as Qq,iE as M,ky as L,lN as P,ly as h,ny as qq,oE as Jq,oN as Vq}from"./cli-1.1.27-w8pwj9ef.mjs";import{X4 as s}from"./cli-1.1.27-m5wtrd2b.mjs";import{D$ as D,F$ as n,Sha as F,_ha as a,lba as w,nba as t}from"./cli-1.1.27-48ezce33.mjs";import{uka as x,xka as d}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as o,xla as j}from"./cli-1.1.27-r335xv52.mjs";import{Wla as y,cma as l}from"./cli-1.1.27-0rz9qd34.mjs";import{Ita as p}from"./cli-1.1.27-8vrv0ver.mjs";Qq();d();Gq();qq();Xq();t();o();n();l();a();e();Tq();Jq();Bq();r();var V=p(s(),1);Wq();Vq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=E(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await P();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await f(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await M()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};x("",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
|
|
2
|
-
export{hq as ub};
|