@claudiolabs/claudin 1.1.35 → 1.1.37
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/App-1.1.37-gvacrdsk.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.37-rnnbn40a.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.37-g6ta4m2v.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.37-pk4aghdz.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.37-hymvtk1w.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.37-p8fwd4tm.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.37-hb26z7b7.mjs +6 -0
- package/dist/chunks/Doctor-1.1.37-g60gf1vr.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.37-w0ek8efz.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.37-tp4qnkf7.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.37-5ds363er.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.37-qaz2nf35.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.37-cxe5gn9z.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.37-jsrbvfaa.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.37-kmfet3bc.mjs +1 -0
- package/dist/chunks/REPL-1.1.37-mx8g4asq.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.37-1j1egpzv.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.37-s6gpj3tk.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.37-06r6s8k3.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.37-vk5478hq.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.37-08ypek7f.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.37-j3j1tnac.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.37-dy4r3sef.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.37-r4p9gt6p.mjs +1 -0
- package/dist/chunks/add-dir-1.1.37-hsgnnqm5.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.37-e0zrjgxd.mjs +1 -0
- package/dist/chunks/agents-1.1.37-770krh9a.mjs +110 -0
- package/dist/chunks/agents-1.1.37-n5gk09na.mjs +3 -0
- package/dist/chunks/api-1.1.37-bwy6n0v8.mjs +1 -0
- package/dist/chunks/asciicast-1.1.37-t7zpdmt1.mjs +1 -0
- package/dist/chunks/auth-1.1.37-apskerg1.mjs +1 -0
- package/dist/chunks/auth-1.1.37-t0yjn0qg.mjs +1 -0
- package/dist/chunks/autoMode-1.1.37-a94rgbvb.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.37-8g5tdnzc.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.37-pe8hzmys.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.37-r98mdthk.mjs +1 -0
- package/dist/chunks/branch-1.1.37-1a761dqp.mjs +4 -0
- package/dist/chunks/bridge-1.1.37-djx2nh0s.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.37-wsz2v4gw.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.37-pht9tpgd.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.37-btaaq723.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.37-97bjx2gt.mjs +1 -0
- package/dist/chunks/btw-1.1.37-kzbnzfwv.mjs +1 -0
- package/dist/chunks/buddy-1.1.37-r155thdv.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.37-szdjedc6.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.37-zcq6bfv7.mjs +4 -0
- package/dist/chunks/caches-1.1.37-m3bsp8q4.mjs +1 -0
- package/dist/chunks/cd-1.1.37-bgh3jr0j.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.37-d5rmp7j9.mjs +1 -0
- package/dist/chunks/claudemd-1.1.37-zqxz2brp.mjs +1 -0
- package/dist/chunks/clear-1.1.37-a28jd9f5.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.37-1vwtn9rv.mjs +1 -0
- package/dist/chunks/cli-1.1.37-07v28734.mjs +24 -0
- package/dist/chunks/cli-1.1.37-0g18ppvn.mjs +2 -0
- package/dist/chunks/cli-1.1.37-0t8trtcs.mjs +135 -0
- package/dist/chunks/cli-1.1.37-160hvn22.mjs +2 -0
- package/dist/chunks/cli-1.1.37-16r2w6eh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-16ycb15m.mjs +2 -0
- package/dist/chunks/cli-1.1.37-1esm8vyn.mjs +2 -0
- package/dist/chunks/cli-1.1.37-1nx0h24b.mjs +34 -0
- package/dist/chunks/cli-1.1.37-1sn4ganc.mjs +6 -0
- package/dist/chunks/cli-1.1.37-22erav9m.mjs +2 -0
- package/dist/chunks/cli-1.1.37-240c02km.mjs +4 -0
- package/dist/chunks/cli-1.1.37-26cht952.mjs +4 -0
- package/dist/chunks/cli-1.1.37-2gsgt0yq.mjs +2 -0
- package/dist/chunks/cli-1.1.37-2xne39h9.mjs +6 -0
- package/dist/chunks/cli-1.1.37-37swmf5n.mjs +2 -0
- package/dist/chunks/cli-1.1.37-39bw2pz6.mjs +2 -0
- package/dist/chunks/cli-1.1.37-3j7g0j34.mjs +2 -0
- package/dist/chunks/cli-1.1.37-3k4d07av.mjs +2 -0
- package/dist/chunks/cli-1.1.37-3pyzesy7.mjs +2 -0
- package/dist/chunks/cli-1.1.37-41q5f236.mjs +63 -0
- package/dist/chunks/cli-1.1.37-422098yx.mjs +26 -0
- package/dist/chunks/cli-1.1.37-45phxq6t.mjs +2 -0
- package/dist/chunks/cli-1.1.37-46pcgpjk.mjs +5 -0
- package/dist/chunks/cli-1.1.37-4829k99z.mjs +8 -0
- package/dist/chunks/cli-1.1.37-4cwzzzkp.mjs +2 -0
- package/dist/chunks/cli-1.1.37-4cyg3kha.mjs +15 -0
- package/dist/chunks/cli-1.1.37-4s29t03n.mjs +2 -0
- package/dist/chunks/cli-1.1.37-519yanf4.mjs +2 -0
- package/dist/chunks/cli-1.1.37-51efrsrh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-58pbecmv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-5gj77q8j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-5k40cazp.mjs +2 -0
- package/dist/chunks/cli-1.1.37-5ppknhpq.mjs +50 -0
- package/dist/chunks/cli-1.1.37-67ncf860.mjs +2 -0
- package/dist/chunks/cli-1.1.37-6defhmsy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-6k9f1kb2.mjs +6 -0
- package/dist/chunks/cli-1.1.37-6pcx2j1q.mjs +2 -0
- package/dist/chunks/cli-1.1.37-72ezs6b8.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7483gf56.mjs +3 -0
- package/dist/chunks/cli-1.1.37-7614bfhm.mjs +25 -0
- package/dist/chunks/cli-1.1.37-7f3hdq3p.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7h3edez5.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7prgb5qb.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7qda9cmg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-8n5vy3kh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-8v3e4pnr.mjs +2 -0
- package/dist/chunks/cli-1.1.37-8wfxbqcm.mjs +20 -0
- package/dist/chunks/cli-1.1.37-944j3qt1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-94bfnv5a.mjs +2 -0
- package/dist/chunks/cli-1.1.37-96sf5t1p.mjs +2 -0
- package/dist/chunks/cli-1.1.37-9x24mgyx.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a3xp4gqs.mjs +3 -0
- package/dist/chunks/cli-1.1.37-a489vqjv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a5ddx2f0.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a6pppj4k.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a7jrq85d.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ayhzfa69.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ayqpwfm4.mjs +2 -0
- package/dist/chunks/cli-1.1.37-b26at90a.mjs +4 -0
- package/dist/chunks/cli-1.1.37-be0x6tdq.mjs +18 -0
- package/dist/chunks/cli-1.1.37-bkp0a6f1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-cmbtcpwy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-crpgw5qe.mjs +133 -0
- package/dist/chunks/cli-1.1.37-cw718qh8.mjs +42 -0
- package/dist/chunks/cli-1.1.37-d1fcgxg0.mjs +2 -0
- package/dist/chunks/cli-1.1.37-d23vxnm9.mjs +2 -0
- package/dist/chunks/cli-1.1.37-d6n91ex7.mjs +15 -0
- package/dist/chunks/cli-1.1.37-dj2tqhmt.mjs +2 -0
- package/dist/chunks/cli-1.1.37-dt1m5cht.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ecm5tm4s.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ekft3ygw.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ev14s3y6.mjs +4 -0
- package/dist/chunks/cli-1.1.37-ex5tn3t8.mjs +6 -0
- package/dist/chunks/cli-1.1.37-f4cc288j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-f7e57y66.mjs +2 -0
- package/dist/chunks/cli-1.1.37-f9mv7jky.mjs +2 -0
- package/dist/chunks/cli-1.1.37-fdkc3sf9.mjs +2 -0
- package/dist/chunks/cli-1.1.37-fksjv0et.mjs +2 -0
- package/dist/chunks/cli-1.1.37-fsjyvbbb.mjs +2 -0
- package/dist/chunks/cli-1.1.37-g7m905sy.mjs +3 -0
- package/dist/chunks/cli-1.1.37-g7xfccj8.mjs +2 -0
- package/dist/chunks/cli-1.1.37-g9d8qc79.mjs +2 -0
- package/dist/chunks/cli-1.1.37-gfbpxehy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-gpk56nss.mjs +2 -0
- package/dist/chunks/cli-1.1.37-grsmntjy.mjs +5557 -0
- package/dist/chunks/cli-1.1.37-gswxz7xc.mjs +25 -0
- package/dist/chunks/cli-1.1.37-h0jx10pf.mjs +11 -0
- package/dist/chunks/cli-1.1.37-h4spe8tn.mjs +16 -0
- package/dist/chunks/cli-1.1.37-h7r11vsm.mjs +15 -0
- package/dist/chunks/cli-1.1.37-he99jbx1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-hef24tpw.mjs +3 -0
- package/dist/chunks/cli-1.1.37-hgz1n58h.mjs +2 -0
- package/dist/chunks/cli-1.1.37-htprtn3s.mjs +2 -0
- package/dist/chunks/cli-1.1.37-hwan9xgw.mjs +2 -0
- package/dist/chunks/cli-1.1.37-j1vf4g9d.mjs +4 -0
- package/dist/chunks/cli-1.1.37-j6kremq2.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jb5tx7mz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jbqk7r70.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jfqs1fqm.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jr1vseya.mjs +4 -0
- package/dist/chunks/cli-1.1.37-jr69vbpp.mjs +3 -0
- package/dist/chunks/cli-1.1.37-jv2bhmv9.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jz75ctqt.mjs +4 -0
- package/dist/chunks/cli-1.1.37-kahw2epk.mjs +39 -0
- package/dist/chunks/cli-1.1.37-kb946f3c.mjs +2 -0
- package/dist/chunks/cli-1.1.37-kemsps6y.mjs +60 -0
- package/dist/chunks/cli-1.1.37-khfxdt5q.mjs +2 -0
- package/dist/chunks/cli-1.1.37-kn42c81a.mjs +3 -0
- package/dist/chunks/cli-1.1.37-kwaccfak.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m1fep5be.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m456xrwv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m5yt8y0j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m6gntr6v.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ma9krcyk.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mexv9k9t.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mf2q6gmp.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mqc9bwxe.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mrvnfwyz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mw2jz1zw.mjs +7 -0
- package/dist/chunks/cli-1.1.37-n183zk9b.mjs +24 -0
- package/dist/chunks/cli-1.1.37-n5rtec8d.mjs +2 -0
- package/dist/chunks/cli-1.1.37-n96tca8q.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ncfrm58b.mjs +2 -0
- package/dist/chunks/cli-1.1.37-nhcj6483.mjs +2 -0
- package/dist/chunks/cli-1.1.37-nmaxyg7j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-nzbxb3mg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-p6s3mz30.mjs +9 -0
- package/dist/chunks/cli-1.1.37-pek0pwba.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ptf1j7na.mjs +2 -0
- package/dist/chunks/cli-1.1.37-pvh445g5.mjs +3 -0
- package/dist/chunks/cli-1.1.37-pw36zafa.mjs +2 -0
- package/dist/chunks/cli-1.1.37-q1053cc2.mjs +17 -0
- package/dist/chunks/cli-1.1.37-qcn1j79h.mjs +2 -0
- package/dist/chunks/cli-1.1.37-qq29akkh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-qx20qhv7.mjs +2 -0
- package/dist/chunks/cli-1.1.37-rdmqbzqh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-rwsh9ddm.mjs +3 -0
- package/dist/chunks/cli-1.1.37-ryrmx9mz.mjs +10 -0
- package/dist/chunks/cli-1.1.37-s09fpmwg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-s66bx6wx.mjs +24 -0
- package/dist/chunks/cli-1.1.37-sf9mv58v.mjs +10 -0
- package/dist/chunks/cli-1.1.37-sm7wj6sf.mjs +4 -0
- package/dist/chunks/cli-1.1.37-sqyyjrzq.mjs +5 -0
- package/dist/chunks/cli-1.1.37-ss1k0v1c.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ssstmvw3.mjs +3 -0
- package/dist/chunks/cli-1.1.37-sxzqtyda.mjs +2 -0
- package/dist/chunks/cli-1.1.37-syfanvjj.mjs +2 -0
- package/dist/chunks/cli-1.1.37-sygz2s62.mjs +2 -0
- package/dist/chunks/cli-1.1.37-tb7ktts9.mjs +2 -0
- package/dist/chunks/cli-1.1.37-tkdarzaz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-tntw41wr.mjs +2 -0
- package/dist/chunks/cli-1.1.37-tqgcfdy1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-v43zxjn1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-v7ra9bdg.mjs +10 -0
- package/dist/chunks/cli-1.1.37-v901k2xy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-v90enr9t.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vfcg5s15.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vg7rr3sv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vhmf8afh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vhmsvame.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vrdgh1e0.mjs +2 -0
- package/dist/chunks/cli-1.1.37-w0tvj01c.mjs +2 -0
- package/dist/chunks/cli-1.1.37-wm28b2wb.mjs +2 -0
- package/dist/chunks/cli-1.1.37-wv9phckk.mjs +9 -0
- package/dist/chunks/cli-1.1.37-x03y4qkg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-x0nz472y.mjs +2 -0
- package/dist/chunks/cli-1.1.37-x27pf2df.mjs +2 -0
- package/dist/chunks/cli-1.1.37-x363x6yv.mjs +12 -0
- package/dist/chunks/cli-1.1.37-xqs4w5xj.mjs +2 -0
- package/dist/chunks/cli-1.1.37-xxa2yvvm.mjs +2 -0
- package/dist/chunks/cli-1.1.37-y101rdsg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-y2c4zsfh.mjs +6 -0
- package/dist/chunks/cli-1.1.37-y3knvtaz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ye5hkqff.mjs +2 -0
- package/dist/chunks/cli-1.1.37-yx7j10g7.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z0tedaby.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z414tkgs.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z4wav0zf.mjs +251 -0
- package/dist/chunks/cli-1.1.37-z6pkdynf.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z9fbkmx6.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zb319x4t.mjs +21 -0
- package/dist/chunks/cli-1.1.37-zdpyj00a.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zmvkkbkz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zp02yw3a.mjs +7 -0
- package/dist/chunks/cli-1.1.37-zv5qmddr.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zyh3q51q.mjs +2 -0
- package/dist/chunks/client-1.1.37-xgmkbazy.mjs +1 -0
- package/dist/chunks/color-1.1.37-y730edtg.mjs +1 -0
- package/dist/chunks/compact-1.1.37-w4h4spv3.mjs +2 -0
- package/dist/chunks/config-1.1.37-kw2by168.mjs +1 -0
- package/dist/chunks/config-1.1.37-nxkma2y7.mjs +1 -0
- package/dist/chunks/constants-1.1.37-ctp81rsa.mjs +1 -0
- package/dist/chunks/context-1.1.37-ayxgyhvf.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.37-9fnpakkn.mjs +1 -0
- package/dist/chunks/conversation-1.1.37-c5qptech.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.37-2jh9xkzj.mjs +1 -0
- package/dist/chunks/copy-1.1.37-3x6yh3re.mjs +9 -0
- package/dist/chunks/cost-1.1.37-k4egf2cb.mjs +1 -0
- package/dist/chunks/createSession-1.1.37-ps0330f5.mjs +1 -0
- package/dist/chunks/debug-1.1.37-rg6428fc.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.37-0p69kpbf.mjs +1458 -0
- package/dist/chunks/desktop-1.1.37-vw4rzhtp.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.37-de5st3z1.mjs +1 -0
- package/dist/chunks/detection-1.1.37-2ah57ykf.mjs +1 -0
- package/dist/chunks/diff-1.1.37-h35ry5bf.mjs +1 -0
- package/dist/chunks/doctor-1.1.37-4sdv75rj.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.37-aj2q1yxr.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.37-f1bz41ba.mjs +1 -0
- package/dist/chunks/effort-1.1.37-qme7s71h.mjs +13 -0
- package/dist/chunks/engine-1.1.37-vhnerrj8.mjs +1 -0
- package/dist/chunks/envUtils-1.1.37-jmnztajb.mjs +1 -0
- package/dist/chunks/errors-1.1.37-gx18q68s.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.37-jeewe5zp.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.37-9znv87jk.mjs +1 -0
- package/dist/chunks/exit-1.1.37-g21nsxb0.mjs +1 -0
- package/dist/chunks/explorer-1.1.37-x26rvwxm.mjs +1 -0
- package/dist/chunks/export-1.1.37-f9367qzp.mjs +2 -0
- package/dist/chunks/fast-1.1.37-66kcejyq.mjs +1 -0
- package/dist/chunks/feedback-1.1.37-cmzfc89p.mjs +16 -0
- package/dist/chunks/git-1.1.37-2v8rmfsp.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.37-qa9ahy75.mjs +1 -0
- package/dist/chunks/goal-1.1.37-qxqx92gp.mjs +4 -0
- package/dist/chunks/headless-1.1.37-dkg8aqth.mjs +2 -0
- package/dist/chunks/heapdump-1.1.37-4hzv26jg.mjs +6 -0
- package/dist/chunks/help-1.1.37-94a27s9t.mjs +1 -0
- package/dist/chunks/hooks-1.1.37-ekx4v46c.mjs +79 -0
- package/dist/chunks/hooks-1.1.37-yeewd50h.mjs +1 -0
- package/dist/chunks/ide-1.1.37-knedgvva.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.37-cdpery4t.mjs +1 -0
- package/dist/chunks/import-1.1.37-e6j4yen6.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.37-jjm28zc3.mjs +1 -0
- package/dist/chunks/index-1.1.37-21b053j0.mjs +1 -0
- package/dist/chunks/index-1.1.37-3v1qr5g5.mjs +9 -0
- package/dist/chunks/index-1.1.37-5jd6yv91.mjs +1 -0
- package/dist/chunks/index-1.1.37-5m0x7mgr.mjs +2 -0
- package/dist/chunks/index-1.1.37-7p4s9e93.mjs +5 -0
- package/dist/chunks/index-1.1.37-8d8wz2jd.mjs +1 -0
- package/dist/chunks/index-1.1.37-8nj0y31t.mjs +1 -0
- package/dist/chunks/index-1.1.37-9mdrpppp.mjs +1 -0
- package/dist/chunks/index-1.1.37-fsrw22yr.mjs +1 -0
- package/dist/chunks/index-1.1.37-gbkrjwx2.mjs +1 -0
- package/dist/chunks/index-1.1.37-j22mymj3.mjs +1 -0
- package/dist/chunks/index-1.1.37-j7mg2v2z.mjs +1 -0
- package/dist/chunks/index-1.1.37-jt0qvhqx.mjs +9 -0
- package/dist/chunks/index-1.1.37-kqbx8bd4.mjs +1 -0
- package/dist/chunks/index-1.1.37-md3nqn7b.mjs +1 -0
- package/dist/chunks/index-1.1.37-nvrt1jkm.mjs +1 -0
- package/dist/chunks/index-1.1.37-qs532q75.mjs +2 -0
- package/dist/chunks/index-1.1.37-vrf2sks4.mjs +1 -0
- package/dist/chunks/index-1.1.37-w2vtqz1f.mjs +30 -0
- package/dist/chunks/index-1.1.37-wtf428dj.mjs +1 -0
- package/dist/chunks/index-1.1.37-x3qnjdnj.mjs +23 -0
- package/dist/chunks/index-1.1.37-xvds1tk7.mjs +1 -0
- package/dist/chunks/index-1.1.37-ycghwm8a.mjs +1 -0
- package/dist/chunks/init-1.1.37-rej95xjh.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.37-fg8xhcbg.mjs +1 -0
- package/dist/chunks/ink-1.1.37-9hasxe0p.mjs +1 -0
- package/dist/chunks/insights-1.1.37-t8pdcny6.mjs +870 -0
- package/dist/chunks/install-1.1.37-3qw7jywz.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.37-xxm8pfc7.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.37-k2gvh481.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.37-65a5va0g.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.37-3a47ekt3.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.37-tacjzkxh.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.37-xp0k0sev.mjs +1 -0
- package/dist/chunks/log-1.1.37-zxjr2p0h.mjs +1 -0
- package/dist/chunks/main-1.1.37-z5knsc2c.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.37-v6d9x7gc.mjs +1 -0
- package/dist/chunks/mcp-1.1.37-2f8vksgy.mjs +1 -0
- package/dist/chunks/mcp-1.1.37-t42e1h6v.mjs +17 -0
- package/dist/chunks/mcp-1.1.37-z5yx7ce8.mjs +4 -0
- package/dist/chunks/mcpb-1.1.37-nxn1ew24.mjs +1 -0
- package/dist/chunks/memory-1.1.37-e17frzj2.mjs +128 -0
- package/dist/chunks/model-1.1.37-415ebhh8.mjs +2 -0
- package/dist/chunks/model-1.1.37-51zfsc21.mjs +1 -0
- package/dist/chunks/new-1.1.37-qmpxmvhh.mjs +1 -0
- package/dist/chunks/node-1.1.37-60r1zc7a.mjs +1 -0
- package/dist/chunks/node-1.1.37-bzzjhz9b.mjs +15 -0
- package/dist/chunks/oauth-1.1.37-an1mr5z0.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.37-d7tbje1m.mjs +14 -0
- package/dist/chunks/output-style-1.1.37-ky7bh1p8.mjs +1 -0
- package/dist/chunks/package-F6O7J2XI-1.1.37-cpdvge3d.mjs +1 -0
- package/dist/chunks/permissions-1.1.37-jfdwfjhx.mjs +1 -0
- package/dist/chunks/permissions-1.1.37-xa1rr619.mjs +3 -0
- package/dist/chunks/plan-1.1.37-mkad4kke.mjs +1 -0
- package/dist/chunks/plist-1.1.37-jp82073r.mjs +1 -0
- package/dist/chunks/plugin-1.1.37-4y7stngn.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.37-mb876t1m.mjs +1 -0
- package/dist/chunks/plugins-1.1.37-vgwj76jr.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.37-y5x9wxpb.mjs +2 -0
- package/dist/chunks/print-1.1.37-39471kxm.mjs +57 -0
- package/dist/chunks/process-1.1.37-0sxw7yj7.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.37-3a9hjw0c.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.37-qkdzw4bn.mjs +9 -0
- package/dist/chunks/prompt-1.1.37-7ty4xbzv.mjs +1 -0
- package/dist/chunks/prompt-1.1.37-t1pkc4hm.mjs +1 -0
- package/dist/chunks/prompts-1.1.37-vc8tkqtx.mjs +1 -0
- package/dist/chunks/provider-1.1.37-d5ky3fex.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.37-qds9eqzt.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.37-njz9qc5m.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.37-mh25jf7y.mjs +26 -0
- package/dist/chunks/registry-1.1.37-j99mgf8f.mjs +1 -0
- package/dist/chunks/release-notes-1.1.37-9gkg8tfr.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.37-4sptja72.mjs +2 -0
- package/dist/chunks/remote-env-1.1.37-t2zt0dx6.mjs +1 -0
- package/dist/chunks/rename-1.1.37-r3rf1zcp.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.37-q72zpdec.mjs +1 -0
- package/dist/chunks/resume-1.1.37-7y7v8kjq.mjs +2 -0
- package/dist/chunks/rewind-1.1.37-g7g9fq2x.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.37-gab9zhq2.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.37-hfkacx24.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.37-0z182pcd.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.37-qpef07xe.mjs +1 -0
- package/dist/chunks/session-1.1.37-23e3vg40.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.37-80sj7d1y.mjs +1 -0
- package/dist/chunks/settings-1.1.37-9ydtb00s.mjs +1 -0
- package/dist/chunks/setup-1.1.37-zw16kqhk.mjs +12 -0
- package/dist/chunks/sinks-1.1.37-zfyvj9zb.mjs +1 -0
- package/dist/chunks/skills-1.1.37-k5m03dxr.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.37-c215kgmn.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.37-gkvkp8j3.mjs +1 -0
- package/dist/chunks/state-1.1.37-n5ptmgvs.mjs +1 -0
- package/dist/chunks/stats-1.1.37-aa4vr5s9.mjs +1 -0
- package/dist/chunks/status-1.1.37-ay3wwhz4.mjs +1 -0
- package/dist/chunks/stickers-1.1.37-9s6a0we7.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.37-j60ejzj9.mjs +1 -0
- package/dist/chunks/tasks-1.1.37-0kkyatcs.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.37-bh946f2s.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.37-hvr3p8hm.mjs +1 -0
- package/dist/chunks/teleport-1.1.37-r8pztaf5.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.37-db8a6fsx.mjs +1 -0
- package/dist/chunks/theme-1.1.37-syjd1g1y.mjs +1 -0
- package/dist/chunks/toolPool-1.1.37-99ckwfft.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.37-w702g2e2.mjs +1 -0
- package/dist/chunks/tools-1.1.37-q0g8gdy1.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.37-p3av7xdw.mjs +69 -0
- package/dist/chunks/types-1.1.37-0zw1rq84.mjs +1 -0
- package/dist/chunks/update-1.1.37-njeg6bcd.mjs +72 -0
- package/dist/chunks/upload-1.1.37-gzm0qpn7.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.37-v8bpt97q.mjs +14 -0
- package/dist/chunks/usage-1.1.37-b2a8dppj.mjs +1 -0
- package/dist/chunks/util-1.1.37-psbfj1x5.mjs +1 -0
- package/dist/chunks/utils-1.1.37-efqgjtyn.mjs +1 -0
- package/dist/chunks/vim-1.1.37-3vwhey1j.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.37-hmgj516c.mjs +13 -0
- package/dist/chunks/wiki-1.1.37-y24wnewk.mjs +132 -0
- package/dist/chunks/workflows-1.1.37-eywdbk9a.mjs +1 -0
- package/dist/chunks/worktree-1.1.37-k9y7x7fq.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.37-bq8bmkt7.mjs +1 -0
- package/dist/chunks/wrapper-1.1.37-mam70w68.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.35-r3nj6jfs.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.35-8nvhxyw9.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.35-1ywwnh39.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.35-bvk75rww.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.35-1ct3fw8c.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.35-nt22bzb6.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.35-98xrgmtc.mjs +0 -6
- package/dist/chunks/Doctor-1.1.35-k34y3jy9.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.35-nan1wyke.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.35-kt3ng0j6.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.35-k7wnc3v8.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.35-3dp4jb6e.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.35-6pa67bzn.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.35-4sje6bjv.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.35-99y8t1j9.mjs +0 -1
- package/dist/chunks/REPL-1.1.35-0vqh1ns0.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.35-104fszyr.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.35-xcz2dypc.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.35-nfckw5cx.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.35-6528ybrk.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.35-rqncjk99.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.35-0t2d7g7n.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.35-j9d3asbg.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.35-fkjy6sz1.mjs +0 -1
- package/dist/chunks/add-dir-1.1.35-4gh89hh4.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.35-nx5q66t5.mjs +0 -1
- package/dist/chunks/agents-1.1.35-0kyfdt7w.mjs +0 -3
- package/dist/chunks/agents-1.1.35-1vzstv4y.mjs +0 -110
- package/dist/chunks/api-1.1.35-ab0j2x7t.mjs +0 -1
- package/dist/chunks/asciicast-1.1.35-xgjp2wrs.mjs +0 -1
- package/dist/chunks/auth-1.1.35-2fpa9v9f.mjs +0 -1
- package/dist/chunks/auth-1.1.35-deksnwe8.mjs +0 -1
- package/dist/chunks/autoMode-1.1.35-8d2qr79q.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.35-hg5dxv1t.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.35-5pzsrenf.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.35-2kythx4m.mjs +0 -1
- package/dist/chunks/branch-1.1.35-tmksh596.mjs +0 -4
- package/dist/chunks/bridge-1.1.35-0za41yjp.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.35-qtvayvc3.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.35-3mhemdrx.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.35-7awverkv.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.35-5gpfg6h4.mjs +0 -1
- package/dist/chunks/btw-1.1.35-6hy8wabr.mjs +0 -1
- package/dist/chunks/buddy-1.1.35-8z3tb1ne.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.35-adn6dpak.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.35-z3268gay.mjs +0 -4
- package/dist/chunks/caches-1.1.35-1qqfgvsm.mjs +0 -1
- package/dist/chunks/cd-1.1.35-vqy7n0x0.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.35-enw3hpss.mjs +0 -1
- package/dist/chunks/claudemd-1.1.35-wsav3shz.mjs +0 -1
- package/dist/chunks/clear-1.1.35-21ry6n0m.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.35-sg808cbp.mjs +0 -1
- package/dist/chunks/cli-1.1.35-02qx9a8j.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0axe3ev5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0feday40.mjs +0 -20
- package/dist/chunks/cli-1.1.35-0p69hr1j.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0qrw70p1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0tc3wmtp.mjs +0 -5
- package/dist/chunks/cli-1.1.35-0vpxr2rk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0zkzg6at.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1618y169.mjs +0 -2
- package/dist/chunks/cli-1.1.35-18wszrez.mjs +0 -15
- package/dist/chunks/cli-1.1.35-1bzyzrvt.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1ceb2tjb.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1gae8a5m.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1x2wb524.mjs +0 -2
- package/dist/chunks/cli-1.1.35-21w0bna1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-22q1jqqq.mjs +0 -2
- package/dist/chunks/cli-1.1.35-2gxxpyvc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-2sm1x5n8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-2x0m7ewe.mjs +0 -9
- package/dist/chunks/cli-1.1.35-34h7nfzz.mjs +0 -11
- package/dist/chunks/cli-1.1.35-389ej7r1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-38s8y5cf.mjs +0 -2
- package/dist/chunks/cli-1.1.35-3keqk8xr.mjs +0 -2
- package/dist/chunks/cli-1.1.35-3zrjqd93.mjs +0 -2
- package/dist/chunks/cli-1.1.35-41srzc8c.mjs +0 -2
- package/dist/chunks/cli-1.1.35-46bm9f8q.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4d0cm3mc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4d9merys.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4g77zek0.mjs +0 -24
- package/dist/chunks/cli-1.1.35-4kft2wxe.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4njf7z42.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4typvdqe.mjs +0 -2
- package/dist/chunks/cli-1.1.35-589b1qht.mjs +0 -2
- package/dist/chunks/cli-1.1.35-5b39mwe0.mjs +0 -2
- package/dist/chunks/cli-1.1.35-5j12hjjm.mjs +0 -2
- package/dist/chunks/cli-1.1.35-5v115fee.mjs +0 -2
- package/dist/chunks/cli-1.1.35-61gmwbbt.mjs +0 -2
- package/dist/chunks/cli-1.1.35-688xsqg8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-6c4v5dpe.mjs +0 -15
- package/dist/chunks/cli-1.1.35-6nhv8vhv.mjs +0 -2
- package/dist/chunks/cli-1.1.35-6p10e278.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7g4yw92j.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7hfdc6xn.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7mxbj45y.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7mz6cnfb.mjs +0 -6
- package/dist/chunks/cli-1.1.35-7nsr0a6p.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7p1685r1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7tt5b2wx.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7y74em05.mjs +0 -2
- package/dist/chunks/cli-1.1.35-82ak1wpt.mjs +0 -7
- package/dist/chunks/cli-1.1.35-854kyr9a.mjs +0 -3
- package/dist/chunks/cli-1.1.35-85zb0hfp.mjs +0 -2
- package/dist/chunks/cli-1.1.35-873xb9w7.mjs +0 -2
- package/dist/chunks/cli-1.1.35-8b1qqrev.mjs +0 -135
- package/dist/chunks/cli-1.1.35-8d9f31xx.mjs +0 -2
- package/dist/chunks/cli-1.1.35-8qdvqjz3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-8ttx7y70.mjs +0 -2
- package/dist/chunks/cli-1.1.35-959df5vk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-9817kkw4.mjs +0 -3
- package/dist/chunks/cli-1.1.35-9dkpx812.mjs +0 -2
- package/dist/chunks/cli-1.1.35-9tnc0a3x.mjs +0 -2
- package/dist/chunks/cli-1.1.35-9z4kwrpr.mjs +0 -6
- package/dist/chunks/cli-1.1.35-a7ygtwdr.mjs +0 -5
- package/dist/chunks/cli-1.1.35-a8677mcz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-a9y8qxsj.mjs +0 -6
- package/dist/chunks/cli-1.1.35-an20pj6q.mjs +0 -2
- package/dist/chunks/cli-1.1.35-arj7fm1n.mjs +0 -2
- package/dist/chunks/cli-1.1.35-b0n88pf7.mjs +0 -2
- package/dist/chunks/cli-1.1.35-bbq4frhw.mjs +0 -2
- package/dist/chunks/cli-1.1.35-bhmad6rp.mjs +0 -3
- package/dist/chunks/cli-1.1.35-bka68014.mjs +0 -2
- package/dist/chunks/cli-1.1.35-bq7wadxz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-c05841mj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-c3vqfrj0.mjs +0 -45
- package/dist/chunks/cli-1.1.35-c4thx500.mjs +0 -26
- package/dist/chunks/cli-1.1.35-cj42e7aq.mjs +0 -24
- package/dist/chunks/cli-1.1.35-cjdzbmst.mjs +0 -2
- package/dist/chunks/cli-1.1.35-cjsf2kh3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-cm0anghq.mjs +0 -2
- package/dist/chunks/cli-1.1.35-cp6wwahj.mjs +0 -4
- package/dist/chunks/cli-1.1.35-d6kd2zv5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-d7n85zf2.mjs +0 -2
- package/dist/chunks/cli-1.1.35-da72zgbs.mjs +0 -50
- package/dist/chunks/cli-1.1.35-dfcj4fkz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-dk4f6kgr.mjs +0 -2
- package/dist/chunks/cli-1.1.35-dnacc640.mjs +0 -252
- package/dist/chunks/cli-1.1.35-dw3fv0g8.mjs +0 -60
- package/dist/chunks/cli-1.1.35-dwaz1jv4.mjs +0 -2
- package/dist/chunks/cli-1.1.35-e08b8j98.mjs +0 -18
- package/dist/chunks/cli-1.1.35-eqcgyqke.mjs +0 -39
- package/dist/chunks/cli-1.1.35-ewtk80cp.mjs +0 -3
- package/dist/chunks/cli-1.1.35-f6sa351s.mjs +0 -5
- package/dist/chunks/cli-1.1.35-f8jgxvev.mjs +0 -2
- package/dist/chunks/cli-1.1.35-fgkpe9g9.mjs +0 -2
- package/dist/chunks/cli-1.1.35-fjtf9x1v.mjs +0 -2
- package/dist/chunks/cli-1.1.35-fr8gap0y.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ftvtbdm6.mjs +0 -4
- package/dist/chunks/cli-1.1.35-fwyc7v71.mjs +0 -7
- package/dist/chunks/cli-1.1.35-fz50q22a.mjs +0 -2
- package/dist/chunks/cli-1.1.35-g2vg6fw2.mjs +0 -2
- package/dist/chunks/cli-1.1.35-g7086zkj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-g74y15na.mjs +0 -2
- package/dist/chunks/cli-1.1.35-gcjyc9x3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-gr966v4t.mjs +0 -2
- package/dist/chunks/cli-1.1.35-h06ng57d.mjs +0 -2
- package/dist/chunks/cli-1.1.35-h262sgvd.mjs +0 -4
- package/dist/chunks/cli-1.1.35-h71ph12s.mjs +0 -2
- package/dist/chunks/cli-1.1.35-h7qpm4z8.mjs +0 -3
- package/dist/chunks/cli-1.1.35-hm1wpf1w.mjs +0 -2
- package/dist/chunks/cli-1.1.35-htvjtg4f.mjs +0 -2
- package/dist/chunks/cli-1.1.35-hwphkmp4.mjs +0 -2
- package/dist/chunks/cli-1.1.35-hy9jtbmb.mjs +0 -5570
- package/dist/chunks/cli-1.1.35-hyqzaskn.mjs +0 -2
- package/dist/chunks/cli-1.1.35-j1ypjsz5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-j7xxkgf1.mjs +0 -133
- package/dist/chunks/cli-1.1.35-jajp8grw.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jdqn8gkp.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jfzp91gv.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jn52m495.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jq1wvnwe.mjs +0 -17
- package/dist/chunks/cli-1.1.35-jrexyjt9.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jvhs6ypf.mjs +0 -10
- package/dist/chunks/cli-1.1.35-jx42cnmn.mjs +0 -15
- package/dist/chunks/cli-1.1.35-k6jh38a3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kbrngf5h.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kcgcs2dj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kdw3m4z1.mjs +0 -25
- package/dist/chunks/cli-1.1.35-kh8s6rf2.mjs +0 -4
- package/dist/chunks/cli-1.1.35-kkhrpw6q.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kp2hgrdb.mjs +0 -24
- package/dist/chunks/cli-1.1.35-ktb8z2s9.mjs +0 -3
- package/dist/chunks/cli-1.1.35-kvw88dmk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kz5tydkv.mjs +0 -2
- package/dist/chunks/cli-1.1.35-m20xytkt.mjs +0 -2
- package/dist/chunks/cli-1.1.35-m6efjk78.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ma6czbht.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ms3xdp4c.mjs +0 -42
- package/dist/chunks/cli-1.1.35-ms5g0jwj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-nahyfraf.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ne21zedp.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ngg53c9c.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pa3rjff6.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pgcrgrc3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pms9wnd8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pr69kkhz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-prf6sjs7.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ps66nanc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pycaqt81.mjs +0 -2
- package/dist/chunks/cli-1.1.35-q1axe4bk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qb0eb8th.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qbahm5cg.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qgjs5ex0.mjs +0 -7
- package/dist/chunks/cli-1.1.35-qnfq8bw4.mjs +0 -4
- package/dist/chunks/cli-1.1.35-qvdpj1qb.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qxj39xzd.mjs +0 -8
- package/dist/chunks/cli-1.1.35-qygaywxg.mjs +0 -34
- package/dist/chunks/cli-1.1.35-r4rm2297.mjs +0 -4
- package/dist/chunks/cli-1.1.35-r80cjbt8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-rmfsk9nw.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s05wj44h.mjs +0 -3
- package/dist/chunks/cli-1.1.35-s066wwsj.mjs +0 -3
- package/dist/chunks/cli-1.1.35-s367nd6g.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s3d0nchc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s6n3pb03.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s85hd24a.mjs +0 -16
- package/dist/chunks/cli-1.1.35-sg0tga4d.mjs +0 -2
- package/dist/chunks/cli-1.1.35-swxcv3xf.mjs +0 -6
- package/dist/chunks/cli-1.1.35-szkn08rr.mjs +0 -2
- package/dist/chunks/cli-1.1.35-t2vx6b45.mjs +0 -17
- package/dist/chunks/cli-1.1.35-t5kexs8c.mjs +0 -6
- package/dist/chunks/cli-1.1.35-t8c5b3qj.mjs +0 -4
- package/dist/chunks/cli-1.1.35-ta15z2yx.mjs +0 -10
- package/dist/chunks/cli-1.1.35-tsrq3cxy.mjs +0 -2
- package/dist/chunks/cli-1.1.35-tsx8c30n.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ve889dy8.mjs +0 -3
- package/dist/chunks/cli-1.1.35-w1mzdb9s.mjs +0 -2
- package/dist/chunks/cli-1.1.35-w6kgq9n5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-w73x0912.mjs +0 -2
- package/dist/chunks/cli-1.1.35-w9wzew2x.mjs +0 -4
- package/dist/chunks/cli-1.1.35-wmcp8vyj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-wpa5rfnt.mjs +0 -12
- package/dist/chunks/cli-1.1.35-wtjyzsga.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ww28b5vj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-x5ft52g3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-xbhjhs1c.mjs +0 -3
- package/dist/chunks/cli-1.1.35-xdzsf38z.mjs +0 -2
- package/dist/chunks/cli-1.1.35-xs5mj8ee.mjs +0 -21
- package/dist/chunks/cli-1.1.35-y6bdqv7z.mjs +0 -2
- package/dist/chunks/cli-1.1.35-y6xhcehv.mjs +0 -25
- package/dist/chunks/cli-1.1.35-yns1ngnz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-yta9zrj6.mjs +0 -2
- package/dist/chunks/cli-1.1.35-zbz78cha.mjs +0 -9
- package/dist/chunks/cli-1.1.35-zf7zq3kb.mjs +0 -63
- package/dist/chunks/client-1.1.35-2j9sd0sg.mjs +0 -1
- package/dist/chunks/color-1.1.35-nf9dqw3m.mjs +0 -1
- package/dist/chunks/compact-1.1.35-h8mqxxs0.mjs +0 -2
- package/dist/chunks/config-1.1.35-7t0vfbst.mjs +0 -1
- package/dist/chunks/config-1.1.35-cfhvn2fq.mjs +0 -1
- package/dist/chunks/constants-1.1.35-kst22e3x.mjs +0 -1
- package/dist/chunks/context-1.1.35-2nc26t9y.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.35-0ym77q3t.mjs +0 -1
- package/dist/chunks/conversation-1.1.35-0q4g6qt8.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.35-7a5mc98p.mjs +0 -1
- package/dist/chunks/copy-1.1.35-n37rvhzj.mjs +0 -9
- package/dist/chunks/cost-1.1.35-hjmwjk6s.mjs +0 -1
- package/dist/chunks/createSession-1.1.35-v7c15fc8.mjs +0 -1
- package/dist/chunks/debug-1.1.35-2hf8mhst.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.35-15jcbncs.mjs +0 -1480
- package/dist/chunks/desktop-1.1.35-6w6gjpff.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.35-eztj0q3f.mjs +0 -1
- package/dist/chunks/detection-1.1.35-rfkb2dxe.mjs +0 -1
- package/dist/chunks/diff-1.1.35-xb27tkcx.mjs +0 -1
- package/dist/chunks/doctor-1.1.35-ddg564v7.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.35-1gfkz0p1.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.35-5wsb4bkz.mjs +0 -1
- package/dist/chunks/effort-1.1.35-r53ttmc3.mjs +0 -13
- package/dist/chunks/engine-1.1.35-xthhbk9w.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.35-t6narn79.mjs +0 -1
- package/dist/chunks/envUtils-1.1.35-t6yq14ba.mjs +0 -1
- package/dist/chunks/errors-1.1.35-6m0kryy5.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.35-c7dhfj0z.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.35-39xh2ycx.mjs +0 -1
- package/dist/chunks/exit-1.1.35-zc8g5mnv.mjs +0 -1
- package/dist/chunks/explorer-1.1.35-784hbx9r.mjs +0 -1
- package/dist/chunks/export-1.1.35-5q6zdykx.mjs +0 -2
- package/dist/chunks/fast-1.1.35-fpsnnadp.mjs +0 -1
- package/dist/chunks/feedback-1.1.35-mdm8easg.mjs +0 -16
- package/dist/chunks/git-1.1.35-j2med41y.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.35-4xzf0z5w.mjs +0 -1
- package/dist/chunks/goal-1.1.35-yp44rshy.mjs +0 -4
- package/dist/chunks/headless-1.1.35-rxvrbe58.mjs +0 -2
- package/dist/chunks/heapdump-1.1.35-xkthm0kj.mjs +0 -6
- package/dist/chunks/help-1.1.35-6ppc7eee.mjs +0 -1
- package/dist/chunks/hooks-1.1.35-0e80c1wz.mjs +0 -79
- package/dist/chunks/hooks-1.1.35-f791gbgk.mjs +0 -1
- package/dist/chunks/ide-1.1.35-pz8m36fj.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.35-56y5k454.mjs +0 -1
- package/dist/chunks/import-1.1.35-fcn1y643.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.35-n6b7ppqk.mjs +0 -1
- package/dist/chunks/index-1.1.35-434cwyrk.mjs +0 -1
- package/dist/chunks/index-1.1.35-4ngbsgjz.mjs +0 -1
- package/dist/chunks/index-1.1.35-7nsjazx1.mjs +0 -1
- package/dist/chunks/index-1.1.35-8rnbf6ea.mjs +0 -1
- package/dist/chunks/index-1.1.35-e5amgccf.mjs +0 -1
- package/dist/chunks/index-1.1.35-eejex06g.mjs +0 -5
- package/dist/chunks/index-1.1.35-epm25vr2.mjs +0 -9
- package/dist/chunks/index-1.1.35-jxpschvm.mjs +0 -1
- package/dist/chunks/index-1.1.35-mdgw0byv.mjs +0 -9
- package/dist/chunks/index-1.1.35-n36e4pzf.mjs +0 -1
- package/dist/chunks/index-1.1.35-nnrmrgn5.mjs +0 -30
- package/dist/chunks/index-1.1.35-p1fttaxb.mjs +0 -1
- package/dist/chunks/index-1.1.35-p3ttta20.mjs +0 -1
- package/dist/chunks/index-1.1.35-pjz1v5fa.mjs +0 -1
- package/dist/chunks/index-1.1.35-pqswr512.mjs +0 -23
- package/dist/chunks/index-1.1.35-q464ks4t.mjs +0 -1
- package/dist/chunks/index-1.1.35-r5cefbke.mjs +0 -2
- package/dist/chunks/index-1.1.35-rf0z1h76.mjs +0 -1
- package/dist/chunks/index-1.1.35-wg3dwx0w.mjs +0 -2
- package/dist/chunks/index-1.1.35-xcm76j0n.mjs +0 -1
- package/dist/chunks/index-1.1.35-y7q90201.mjs +0 -1
- package/dist/chunks/index-1.1.35-y9scvznb.mjs +0 -1
- package/dist/chunks/index-1.1.35-yy5qsdz8.mjs +0 -1
- package/dist/chunks/init-1.1.35-hawgzj6s.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.35-aee08exn.mjs +0 -1
- package/dist/chunks/ink-1.1.35-9vhjhx60.mjs +0 -1
- package/dist/chunks/insights-1.1.35-2782qak6.mjs +0 -870
- package/dist/chunks/install-1.1.35-nptjkfk3.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.35-v4ahg5m0.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.35-rc6ch1k0.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.35-1755rb8a.mjs +0 -1
- package/dist/chunks/keybindings-1.1.35-9qz4bvrq.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.35-ff7kd1x3.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.35-nwtm30nv.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.35-jxqkv874.mjs +0 -1
- package/dist/chunks/log-1.1.35-h5x69tbw.mjs +0 -1
- package/dist/chunks/main-1.1.35-1e6064ax.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.35-s6143dpv.mjs +0 -1
- package/dist/chunks/mcp-1.1.35-0tswravz.mjs +0 -1
- package/dist/chunks/mcp-1.1.35-bdv2pgpj.mjs +0 -17
- package/dist/chunks/mcp-1.1.35-khngfse0.mjs +0 -4
- package/dist/chunks/mcpb-1.1.35-p4jn8q66.mjs +0 -1
- package/dist/chunks/memory-1.1.35-zvk9c80b.mjs +0 -128
- package/dist/chunks/model-1.1.35-j8hp9tcm.mjs +0 -1
- package/dist/chunks/model-1.1.35-mb41ksj1.mjs +0 -2
- package/dist/chunks/node-1.1.35-312s6waw.mjs +0 -1
- package/dist/chunks/node-1.1.35-zzk2fc7x.mjs +0 -15
- package/dist/chunks/oauth-1.1.35-2pwvpgey.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.35-6gbm01ym.mjs +0 -14
- package/dist/chunks/output-style-1.1.35-gbk18883.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.35-0z3efknf.mjs +0 -1
- package/dist/chunks/permissions-1.1.35-c11nnhp0.mjs +0 -3
- package/dist/chunks/permissions-1.1.35-vqtbrznv.mjs +0 -1
- package/dist/chunks/plan-1.1.35-5nz3m4kh.mjs +0 -1
- package/dist/chunks/plist-1.1.35-4bd0g91w.mjs +0 -1
- package/dist/chunks/plugin-1.1.35-0tg6jzxg.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.35-z1parxqs.mjs +0 -1
- package/dist/chunks/plugins-1.1.35-z14pz0dr.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.35-9dyzn96j.mjs +0 -2
- package/dist/chunks/print-1.1.35-89rm2txf.mjs +0 -57
- package/dist/chunks/process-1.1.35-7x8d7kyn.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.35-hj8xz358.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.35-egejjqfw.mjs +0 -9
- package/dist/chunks/prompt-1.1.35-aaz8q4j6.mjs +0 -1
- package/dist/chunks/prompt-1.1.35-f3fackax.mjs +0 -1
- package/dist/chunks/prompts-1.1.35-58wwfjfd.mjs +0 -1
- package/dist/chunks/provider-1.1.35-xwj158q8.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.35-6wzwgty6.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.35-z9h8ampz.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.35-7ewvmysm.mjs +0 -26
- package/dist/chunks/registry-1.1.35-y4zandg8.mjs +0 -1
- package/dist/chunks/release-notes-1.1.35-s31rkdxh.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.35-18xd3nwy.mjs +0 -2
- package/dist/chunks/remote-env-1.1.35-0v4tk5np.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.35-ev420056.mjs +0 -1
- package/dist/chunks/rename-1.1.35-m8chhebj.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.35-483j4br6.mjs +0 -1
- package/dist/chunks/resume-1.1.35-vaxxp18n.mjs +0 -2
- package/dist/chunks/rewind-1.1.35-scs8763b.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.35-9j5y8k9x.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.35-zjy5t791.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.35-qrmypwca.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.35-c2k8p98n.mjs +0 -1
- package/dist/chunks/session-1.1.35-78ew080a.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.35-0tyr8wn3.mjs +0 -1
- package/dist/chunks/settings-1.1.35-808m5j14.mjs +0 -1
- package/dist/chunks/setup-1.1.35-ebpewe9s.mjs +0 -12
- package/dist/chunks/sinks-1.1.35-nj35kk9h.mjs +0 -1
- package/dist/chunks/skills-1.1.35-zczajd48.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.35-wa5psc2j.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.35-0wac30ap.mjs +0 -1
- package/dist/chunks/state-1.1.35-gcp827qz.mjs +0 -1
- package/dist/chunks/stats-1.1.35-f1kndsge.mjs +0 -1
- package/dist/chunks/status-1.1.35-gwtdrkx2.mjs +0 -1
- package/dist/chunks/stickers-1.1.35-fa69zd3v.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.35-8wsc86ft.mjs +0 -1
- package/dist/chunks/tasks-1.1.35-0wd1t6v2.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.35-13qqfhxa.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.35-wdbfsm1h.mjs +0 -1
- package/dist/chunks/teleport-1.1.35-tmhzqx90.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.35-6xq5nt25.mjs +0 -1
- package/dist/chunks/theme-1.1.35-4b6gd2dx.mjs +0 -1
- package/dist/chunks/thinkback-1.1.35-x88djqdz.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.35-g6n14rjh.mjs +0 -1
- package/dist/chunks/toolPool-1.1.35-0qd67zrc.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.35-54dpcvf8.mjs +0 -1
- package/dist/chunks/tools-1.1.35-3hjsc7mm.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.35-szkdvqcz.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.35-4azkv4s5.mjs +0 -69
- package/dist/chunks/types-1.1.35-ncfe8wzg.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.35-d271ddpn.mjs +0 -4
- package/dist/chunks/update-1.1.35-5zabq625.mjs +0 -72
- package/dist/chunks/upload-1.1.35-gey82edy.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.35-bbztgd01.mjs +0 -14
- package/dist/chunks/usage-1.1.35-sx2ahz77.mjs +0 -1
- package/dist/chunks/util-1.1.35-aph6a5hy.mjs +0 -1
- package/dist/chunks/utils-1.1.35-avpezj08.mjs +0 -1
- package/dist/chunks/vim-1.1.35-e0jh10q6.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.35-baxd01b0.mjs +0 -13
- package/dist/chunks/wiki-1.1.35-cns1572n.mjs +0 -132
- package/dist/chunks/workflows-1.1.35-0r21887z.mjs +0 -1
- package/dist/chunks/worktree-1.1.35-0mj24by3.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.35-6ej7pdyw.mjs +0 -1
- package/dist/chunks/wrapper-1.1.35-fpcy8t3v.mjs +0 -7
- /package/dist/chunks/{cli-1.1.35-hnqagxgk.mjs → cli-1.1.37-tfvyj3nx.mjs} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{B7 as G8,z7 as h2}from"./cli-1.1.35-wpa5rfnt.mjs";import{D7 as M,E7 as jJ}from"./cli-1.1.35-a9y8qxsj.mjs";import{G7 as I5,H7 as GJ}from"./cli-1.1.35-6nhv8vhv.mjs";import{F8 as J1,H8 as F8}from"./cli-1.1.35-pa3rjff6.mjs";import{$9 as U,r_ as Z2}from"./cli-1.1.35-4g77zek0.mjs";import{$aa as l4,Bga as X4,Efa as f1,Ega as v2,Eha as n0,Fga as xJ,Gfa as p8,K$ as o5,L$ as _,M_ as C4,N$ as k,N_ as m,O_ as N2,P_ as K0,Q_ as f4,R_ as e2,Vba as Z4,W_ as B0,X$ as T0,X_ as w1,Xca as K2,Yba as i,_$ as I4,bba as zJ,cha as e5,dfa as E,dga as j0,ffa as x2,fga as Q4,fha as H4,gba as s4,gga as H$,haa as C1,ifa as D,jba as BJ,k$ as h5,kga as Y4,lha as $1,m$ as WJ,mda as G$,oha as F,rha as o,v$ as A1,vfa as W0,w$ as g8,zga as G4,zha as b}from"./cli-1.1.35-dnacc640.mjs";import{Bja as B8,Cja as x8,Eja as N,Fja as y0,xja as m5,yja as i4,zja as B2}from"./cli-1.1.35-7p1685r1.mjs";import{Fka as W,Hka as p0,Ika as r,jka as t4,nka as VJ,rka as r2,vka as S8}from"./cli-1.1.35-a7ygtwdr.mjs";import{dla as Q2,fla as G1,kla as _8}from"./cli-1.1.35-w9wzew2x.mjs";import{nla as y5,qla as K,sla as C,ula as y2,yla as f}from"./cli-1.1.35-g74y15na.mjs";import{Apa as z1,Bpa as B1,Cpa as x1,Fpa as z2,Hoa as J4,Jqa as e,Loa as h4,Poa as O0,Qoa as o0,bpa as A,cma as $0,dma as k1,ipa as M1,toa as i1,zpa as W1}from"./cli-1.1.35-1ceb2tjb.mjs";import{gra as h,hra as d0}from"./cli-1.1.35-tsx8c30n.mjs";import{Ura as E0,Wra as i2,Xra as H,Yra as s}from"./cli-1.1.35-c05841mj.mjs";function c5($){let J=[],Z=!1;async function Q(){if(Z)return;if(J.length===0)return;Z=!0;while(J.length>0){let{args:Y,resolve:X,reject:q,context:V}=J.shift();try{let z=await $.apply(V,Y);X(z)}catch(z){q(z)}}if(Z=!1,J.length>0)Q()}return function(...Y){return new Promise((X,q)=>{J.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var d5=()=>{};function t5($,J){return $.find((Z)=>Z.includes(J))??null}async function i5(){let{BedrockClient:$}=await import("@aws-sdk/client-bedrock"),J=y2(),Z=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await h2(),...Z&&{requestHandler:new(await import("./index-1.1.35-pjz1v5fa.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.35-7nsjazx1.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}async function eJ(){let{BedrockRuntimeClient:$}=await import("@aws-sdk/client-bedrock-runtime"),J=y2(),Z=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await h2(),...Z&&{requestHandler:new(await import("./index-1.1.35-pjz1v5fa.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.35-7nsjazx1.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}function H8($){return $.startsWith("anthropic.")}function w8($){if(!$.startsWith("arn:"))return $;let J=$.lastIndexOf("/");if(J===-1)return $;return $.substring(J+1)}function K8($){let J=w8($);for(let Z of R8)if(J.startsWith(`${Z}.anthropic.`))return Z;return}function JZ($,J){let Z=K8($);if(Z)return $.replace(`${Z}.`,`${J}.`);if(H8($))return`${J}.${$}`;return $}var n5,$Z,R8;var l5=H(()=>{d0();q0();f();n0();G8();n5=h(async function(){let[$,{ListInferenceProfilesCommand:J}]=await Promise.all([i5(),import("@aws-sdk/client-bedrock")]),Z=[],Q;try{do{let Y=new J({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await $.send(Y);if(X.inferenceProfileSummaries)Z.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return Z.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw b(Y),Y}});$Z=h(async function($){try{let[J,{GetInferenceProfileCommand:Z}]=await Promise.all([i5(),import("@aws-sdk/client-bedrock")]),Q=new Z({inferenceProfileIdentifier:$}),Y=await J.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch(J){return b(J),null}});R8=["us","eu","apac","global"]});var I2,T2,_2,S2,M2,A2,C2,f2,u2,t0,i0,l0,b0,k0,g2,p2,m2,N0,s5;var c2=H(()=>{I2={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"},T2={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"},_2={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"},S2={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"},M2={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"},A2={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"},C2={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"},f2={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"},u2={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"},t0={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"},i0={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"},l0={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"},b0={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"},k0={firstParty:"claude-opus-5-5",bedrock:"anthropic.claude-opus-5-5",vertex:"claude-opus-5-5",foundry:"claude-opus-5-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"},g2={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"},p2={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"},m2={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"},N0={haiku35:_2,haiku45:S2,sonnet35:T2,sonnet37:I2,sonnet40:M2,sonnet45:A2,sonnet46:p2,sonnet5:m2,opus40:C2,opus41:f2,opus45:u2,opus46:t0,opus47:i0,opus48:l0,opus5:b0,opus55:k0,fable51:g2},s5=Object.fromEntries(Object.entries(N0).map(([$,J])=>[J.firstParty,$]))});function a5(){return Object.values(s0)}var s0,d2;var n2=H(()=>{s0={"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}}},d2=Object.fromEntries(Object.values(s0).map(($)=>[$.id,$.name]))});var P0={};i2(P0,{prefetchCopilotModelCatalog:()=>s2,normalizeBareCopilotModelId:()=>l2,getEffectiveCopilotModels:()=>N8,getCopilotDisplayName:()=>U8,getCatalogCopilotMaxOutputTokens:()=>E8,getCatalogCopilotContextWindow:()=>v8,fetchCopilotModelCatalog:()=>Q1,copilotModelSupportsAnthropicMessages:()=>P8,_setCopilotCatalogForTesting:()=>O8});function U0(){let $=F();if($?.transport!=="github_copilot")return null;return($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function Z1(){if(!a)return!1;let $=U0();return $!==null&&V0===$}function D8(){if(r5)return;r5=!0,o5(()=>{let $=U0();if($&&V0!==$)s2()})}function l2($){let J=$.split("?",1)[0]??$,Z=J.lastIndexOf(":"),Q=(Z===-1?J:J.slice(Z+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function b8($){if(!Array.isArray($))return null;return $.filter((J)=>typeof J==="string")}function k8($){let J=$.id?.trim();if(!J)return null;let Z=$.capabilities?.type?.trim().toLowerCase();if(Z&&Z!=="chat")return null;if($.policy?.state==="disabled")return null;let Q=$.capabilities?.limits??{},Y=$.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:J,name:$.name?.trim()||J,family:$.capabilities?.family?.trim()||J,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["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:b8($.supported_endpoints),pickerEnabled:$.model_picker_enabled!==!1}}async function Q1(){let $=F();if($?.transport!=="github_copilot")return null;if(e5($.baseUrl)!=="copilot")return null;let J=$.extras?.githubToken??$.apiKey;if(!J)return null;let Z=($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),L8);try{let X=await fetch(`${Z}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...J1},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,z=[];for(let x of q.data){let G=k8(x);if(!G||V.has(G.model.id))continue;V.add(G.model.id),z.push(G)}return z.length>0?z:null}catch{return W("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function s2(){D8();let $=U0();if(!$)return;if(a&&V0!==$)a=null,V0=null;if(a0){if(t2===$)return;a0.finally(()=>s2());return}t2=$,a0=Q1().then((J)=>{if(J&&U0()===$)a=J,V0=$}).finally(()=>{a0=null,t2=null})}function N8(){if(Z1()){let $=a?.filter((J)=>J.pickerEnabled).map((J)=>J.model);if($&&$.length>0)return $}return a5()}function r0($){if(!Z1())return;let J=l2($);return a.find((Z)=>Z.model.id===J)}function U8($){let J=l2($);return r0(J)?.model.name??s0[J]?.name}function P8($){let J=r0($);if(!J||J.supportedEndpoints===null)return null;return J.supportedEndpoints.some((Z)=>Z.includes("/v1/messages"))}function v8($){return r0($)?.model.limit.context}function E8($){return r0($)?.model.limit.output}function O8($){a=$,V0=$?U0():null}var L8=5000,a=null,V0=null,a0=null,t2=null,r5=!1;var v0=H(()=>{o();F8();$1();j0();r();n2()});function j(){let $=F();if(!$)return"firstParty";switch($.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 J=$.baseUrl?.toLowerCase()??"";if(J.includes("nvidia"))return"nvidia-nim";if(J.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function xZ(){return j()==="firstParty"}function y8($){let J=F();if(J?.transport!=="github_copilot")return!1;let Z=$?.trim()||J.model?.trim()||"";if(!Z.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(v0(),E0(P0)),Y=Q(Z);if(Y!==null)return Y}catch{}return!0}function GZ($){let J=F()?.transport??"anthropic";if(!h8.has(J))return!1;if(J==="github_copilot"&&y8($))return!1;return!0}function Y1(){let $=F();if(!$)return!0;if($.transport!=="anthropic")return!1;let J=$.baseUrl;if(!J)return!0;try{let Z=new URL(J).host;return["api.anthropic.com"].includes(Z)}catch{return!1}}var h8;var u=H(()=>{o();h8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function e0($){let J=$==="codex"||$==="github"?"openai":$,Z={};for(let Q of q1)Z[Q]=N0[Q][J];return Z}async function I8(){let $=e0("bedrock"),J;try{J=await n5()}catch(Q){return b(Q),$}if(!J?.length)return $;let Z={};for(let Q of q1){let Y=N0[Q].firstParty;Z[Q]=t5(J,Y)||$[Q]}return Z}function X1($){let J=D().modelOverrides;if(!J)return $;let Z={...$};for(let[Q,Y]of Object.entries(J)){let X=s5[Q];if(X&&Y)Z[X]=Y}return Z}function $2($){let J;try{J=D().modelOverrides}catch{return $}if(!J)return $;for(let[Z,Q]of Object.entries(J))if(Q===$)return Z;return $}function T8(){if(O0()!==null)return;if(j()!=="bedrock"){o0(e0(j()));return}V1()}function B(){let $=O0();if($===null)return T8(),X1(e0(j()));return X1($)}async function kZ(){if(O0()!==null)return;if(j()!=="bedrock"){o0(e0(j()));return}await V1()}var q1,V1;var J2=H(()=>{e();n0();d5();W0();l5();c2();u();q1=Object.keys(N0);V1=c5(async()=>{if(O0()!==null)return;try{let $=await I8();o0($)}catch($){b($)}})});async function z0($){let J=`${N().BASE_API_URL}/api/oauth/profile`;try{return(await U.get(J,{headers:{Authorization:`Bearer ${$}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(Z){b(Z)}}var a2=H(()=>{Z2();y0();n0()});import{mkdirSync as M8,writeFileSync as A8}from"fs";function u8($,J,Z){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{M8(Y2,{recursive:!0,mode:448}),A8($,J,{encoding:"utf8",mode:384}),W(`Persisted ${Z} to ${$} for subprocess access`)}catch(Q){W(`Failed to persist ${Z} to disk (non-fatal): ${Q2(Q)}`,{level:"error"})}}function j1($,J){try{let Q=r2().readFileSync($,{encoding:"utf8"}).trim();if(!Q)return null;return W(`Read ${J} from well-known file ${$}`),Q}catch(Z){if(!G1(Z))W(`Failed to read ${J} from ${$}: ${Q2(Z)}`,{level:"debug"});return null}}function H1({envVar:$,wellKnownPath:J,label:Z,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[$];if(!q){let z=j1(J,Z);return Y(z),z}let V=parseInt(q,10);if(Number.isNaN(V))return W(`${$} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let z=r2(),x=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,G=z.readFileSync(x,{encoding:"utf8"}).trim();if(!G)return W(`File descriptor contained empty ${Z}`,{level:"error"}),Y(null),null;return W(`Successfully read ${Z} from file descriptor ${V}`),Y(G),u8(J,G,Z),G}catch(z){W(`Failed to read ${Z} from file descriptor ${V}: ${Q2(z)}`,{level:"error"});let x=j1(J,Z);return Y(x),x}}function X2(){return H1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C8,label:"OAuth token",getCached:W1,setCached:z1})}function o2(){return H1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:f8,label:"API key",getCached:B1,setCached:x1})}var Y2="/home/claude/.claude/remote",C8,f8,SZ;var R1=H(()=>{e();r();f();_8();S8();C8=`${Y2}/.oauth_token`,f8=`${Y2}/.api_key`,SZ=`${Y2}/.session_ingress_token`});async function K1(){if(process.platform==="darwin"){let $=m();if((await B0(`security delete-generic-password -a $USER -s "${$}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function $5($){return $.slice(-20)}var F1=H(()=>{w1();e2()});function gZ($){return $?.name==="CredentialsProviderError"}function L1($){if(!$||typeof $!=="object")return!1;let J=$;if(!J.Credentials||typeof J.Credentials!=="object")return!1;let Z=J.Credentials;return typeof Z.AccessKeyId==="string"&&typeof Z.SecretAccessKey==="string"&&typeof Z.SessionToken==="string"&&Z.AccessKeyId.length>0&&Z.SecretAccessKey.length>0&&Z.SessionToken.length>0}async function J5(){let{STSClient:$,GetCallerIdentityCommand:J}=await import("@aws-sdk/client-sts");await new $().send(new J({}))}async function D1(){try{W("Clearing AWS credential provider cache");let{fromIni:$}=await import("@aws-sdk/credential-providers");await $({ignoreCache:!0})(),W("AWS credential provider cache refreshed")}catch($){W("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var b1=H(()=>{r()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=$0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput($){this.status.output.push($),this.changed.emit(this.getStatus())}setError($){this.status.error=$,this.changed.emit(this.getStatus())}endAuthentication($){if($)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var N1=H(()=>{k1()});var q2="claude-code-20250219",U1="interleaved-thinking-2025-05-14",h0="context-1m-2025-08-07",V2="context-management-2025-06-27",P1="structured-outputs-2025-12-15",Z5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",E1="tool-search-tool-2025-10-19",dZ="effort-2025-11-24",nZ="task-budgets-2026-03-13",j2="prompt-caching-scope-2026-01-05",tZ="extended-cache-ttl-2025-04-11",iZ="fast-mode-2026-02-01",O1="redact-thinking-2026-02-12",x0="thinking-token-count-2026-05-13",y1="thinking-display-updates-2026-08-18",h1="cache-diagnosis-2026-04-07",I1="thinking-binding-controls-2026-08-01",T1="token-efficient-tools-2026-03-28",_1="afk-mode-2026-01-31",lZ="advisor-tool-2026-03-01",Q5,sZ;var W2=H(()=>{Q5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),sZ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function O(){if(j()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function u1(){if(!O())return!1;return c8()===null}function m8($,J){switch($){case"free":return J==="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 · enable it at claude.ai/settings/usage";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function c8(){if(j()!=="firstParty")return"Fast mode is not available on third-party providers";if(!O())return"Fast mode is not available";let $=T0("tengu_penguins_off",null);if($!==null)return W(`Fast mode unavailable: ${$}`),$;if(!A1()&&T0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(A()&&z2()&&!M1()){if(!E("flagSettings")?.fastMode)return W("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(v.status==="disabled"){if(v.reason==="network_error"||v.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let J=w()!==null?"oauth":"api-key",Z=m8(v.reason,J);return W(`Fast mode unavailable: ${Z}`),Z}return null}function x7(){let $=G2(Z0());return"opus"+(q5()&&!$?"[1m]":"")}function G7($){if(!O())return!1;if(!u1())return!1;if(!g1($))return!1;let J=D();if(J.fastModePerSessionOptIn)return!1;return J.fastMode===!0}function g1($){if(!O())return!1;let J=$??_0(),Z=I(J).toLowerCase();return Z.includes("opus-5")||Z.includes("opus-4-7")||Z.includes("opus-4-6")}function d8(){if(G0.status==="cooldown"&&Date.now()>=G0.resetAt){if(O()&&!Y5)W("Fast mode cooldown expired, re-enabling fast mode"),Y5=!0,m1.emit();G0={status:"active"}}return G0}function w7($,J){if(!O())return;G0={status:"cooldown",resetAt:$,reason:J},Y5=!1;let Z=$-Date.now();W(`Fast mode cooldown triggered (${J}), duration ${Math.round(Z/1000)}s`),p1.emit($,J)}function K7(){G0={status:"active"}}function F7(){if(v.status==="disabled")return;v={status:"disabled",reason:"preference"},x2("userSettings",{fastMode:void 0}),_(($)=>({...$,penguinModeOrgEnabled:!1})),X5.emit(!1)}function n8($){switch($){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 · enable it at claude.ai/settings/usage";default:return"Fast mode disabled · extra usage not available"}}function t8($){return $==="org_level_disabled_until"||$==="out_of_credits"}function D7($){let J=n8($);if(W(`Fast mode overage rejection: ${$??"unknown"} — ${J}`),!t8($))x2("userSettings",{fastMode:void 0}),_((Z)=>({...Z,penguinModeOrgEnabled:!1}));c1.emit(J)}function i8(){return d8().status==="cooldown"}function b7($,J){let Z=O()&&u1()&&!!J&&g1($);if(Z&&i8())return"cooldown";if(Z)return"on";return"off"}async function l8($){let J=`${N().BASE_API_URL}/api/claude_code_penguin_mode`,Z="accessToken"in $?{Authorization:`Bearer ${$.accessToken}`,"anthropic-beta":B2}:{"x-api-key":$.apiKey};return(await U.get(J,{headers:Z})).data}function N7(){if(!O())return;if(v.status!=="pending")return;v=k().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function U7(){if(f1())return;if(!O())return;if(I0)return W("Fast mode prefetch in progress, returning in-flight promise"),I0;let $=V5();if(!(w()?.accessToken&&J0())&&!$){v=k().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let Z=Date.now();if(Z-S1<s8){W("Skipping fast mode prefetch, fetched recently");return}S1=Z;let Q=async()=>{let X=w(),q=X?.accessToken&&J0()?{accessToken:X.accessToken}:$?{apiKey:$}:null;if(!q)throw Error("No auth available");return l8(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(U.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 x=w()?.accessToken;if(x)await j5(x),X=await Q();else throw V}else throw V}let q=v.status!=="pending"?v.status==="enabled":k().penguinModeOrgEnabled;if(v=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)x2("userSettings",{fastMode:void 0});_((V)=>({...V,penguinModeOrgEnabled:X.enabled})),X5.emit(X.enabled)}W(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){v=k().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},W(`Failed to fetch org fast mode status, defaulting to ${v.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"})}finally{I0=null}}return I0=Y(),I0}var B7="Opus 5.5",G0,Y5=!1,p1,m1,H7,R7,c1,L7,v,X5,k7,s8=30000,S1=0,I0=null;var d1=H(()=>{Z2();y0();C1();e();q0();g8();j0();r();f();H0();u();p8();W0();k1();G0={status:"active"},p1=$0(),m1=$0(),H7=p1.subscribe,R7=m1.subscribe;c1=$0(),L7=c1.subscribe;v={status:"pending"},X5=$0(),k7=X5.subscribe});function Y$($){for(let J of Q$)if(J.pattern.test($))return J.cost;return}function W5($){if(O()&&$)return s1;return c}function z5($){if(O()&&$)return s1;return H2[R(b0.firstParty)]??c}function B5($){if(O()&&$)return r8;return H2[R(k0.firstParty)]??l1}function X$($,J){let Z=$.promptCacheWrite1hTokens??$.promptCacheWriteTokens,Q=J.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*$.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*Z:(J.cache_creation_input_tokens??0)/1e6*$.promptCacheWriteTokens;return J.input_tokens/1e6*$.inputTokens+J.output_tokens/1e6*$.outputTokens+(J.cache_read_input_tokens??0)/1e6*$.promptCacheReadTokens+Y+(J.server_tool_use?.web_search_requests??0)*$.webSearchRequests}function q$($,J){let Z=L($);if(Z===R(t0.firstParty)||Z===R(i0.firstParty)||Z===R(l0.firstParty)){let Y=J.speed==="fast";return W5(Y)}if(Z===R(k0.firstParty))return B5(J.speed==="fast");if(Z===R(b0.firstParty))return z5(J.speed==="fast");let Q=H2[Z];if(!Q){let Y=Y$($);if(Y)return Y;return V$($,Z),H2[L(_0())]??Z$}return Q}function V$($,J){i1()}function j$($,J){let Z=q$($,J);return X$(Z,J)}function h7($,J){let Z={input_tokens:J.inputTokens,output_tokens:J.outputTokens,cache_read_input_tokens:J.cacheReadInputTokens,cache_creation_input_tokens:J.cacheCreationInputTokens};return j$($,Z)}function t1($){if(Number.isInteger($))return`$${$}`;return`$${$.toFixed(2)}`}function R2($){return`${t1($.inputTokens)}/${t1($.outputTokens)} per Mtok`}var a8,S0,n1,c,l1,r8,o8,e8,s1,$$,J$,Z$,Q$,H2;var a1=H(()=>{e();d1();c2();H0();a8={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},S0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},n1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},c={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},l1={inputTokens:4,outputTokens:20,promptCacheWriteTokens:5,promptCacheWrite1hTokens:8,promptCacheReadTokens:0.2,webSearchRequests:0.01},r8={inputTokens:8,outputTokens:40,promptCacheWriteTokens:10,promptCacheWrite1hTokens:16,promptCacheReadTokens:0.4,webSearchRequests:0.01},o8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},e8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},s1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},$$={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},J$={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z$=c,Q$=[{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}}];H2={[R(_2.firstParty)]:$$,[R(S2.firstParty)]:J$,[R(T2.firstParty)]:S0,[R(I2.firstParty)]:S0,[R(M2.firstParty)]:S0,[R(A2.firstParty)]:S0,[R(p2.firstParty)]:S0,[R(m2.firstParty)]:a8,[R(C2.firstParty)]:n1,[R(f2.firstParty)]:n1,[R(u2.firstParty)]:c,[R(t0.firstParty)]:c,[R(i0.firstParty)]:c,[R(l0.firstParty)]:c,[R(b0.firstParty)]:c,[R(k0.firstParty)]:l1,[R(g2.firstParty)]:o8,"claude-fable-5":e8}});function d($){return W$.includes($)}function R0($){return z$.includes($)}var W$,z$;var x5=H(()=>{W$=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];z$=["sonnet","opus","haiku"]});function B$($,J){if($.includes(J))return!0;if(d($))return I($).toLowerCase().includes(J);return!1}function r1($,J){if(!$.startsWith(J))return!1;return $.length===J.length||$[J.length]==="-"}function x$($,J){let Z=d($)?I($).toLowerCase():$;if(r1(Z,J))return!0;if(!J.startsWith("claude-")&&r1(Z,`claude-${J}`))return!0;return!1}function o1($,J){for(let Z of J){if(R0(Z))continue;let Q=Z.indexOf($);if(Q===-1)continue;let Y=Q+$.length;if(Y===Z.length||Z[Y]==="-")return!0}return!1}function e1($){let J=D()||{},{availableModels:Z}=J;if(!Z)return!0;if(Z.length===0)return!1;let Y=$2($).trim().toLowerCase(),X=Z.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!R0(Y)||!o1(Y,X))return!0}for(let q of X)if(R0(q)&&!o1(q,X)&&B$(Y,q))return!0;if(d(Y)){let q=I(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!R0(q)&&d(q)){if(I(q).toLowerCase()===Y)return!0}for(let q of X)if(!R0(q)&&!d(q)){if(x$(Y,q))return!0}return!1}var $4=H(()=>{W0();x5();H0();J2()});function w2($){if(typeof $!=="string")return;let J=$.trim();return J.length>0?J:void 0}function w0(){let $=F();if(!$?.model)return;return Q4($.model)}function $9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let $=w0();if(j()==="gemini")return $||"gemini-2.0-flash-lite";if(j()==="mistral")return $||"ministral-3b-latest";if(j()==="openai")return $||"gpt-4o-mini";if(j()==="codex")return $||"codexspark";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5-highspeed";return q4()}function J9($){return $===B().opus40||$===B().opus41||$===B().opus45||$===B().opus46||$===B().opus47||$===B().opus48||$===B().opus5||$===B().opus55}function G2($){let J=L($);return J.includes("opus-5")||J.includes("sonnet-5")||J.includes("fable-5")}function G5(){let $,J=J4();if(J!==void 0)$=J;else{let Z=D()||{},Q=w2(Z.model),X=w0()||Q||void 0,q=Z4(),V=w2(q.activeModelForProject);if(V){let z=Y4()?.id,x=q.activeModelForProjectProfileId;$=x===void 0||x===z?V:X}else $=X}if($&&!e1($))return;return $}function Z9(){let $=G5();if($!==void 0&&$!==null)return I($);return V4()}function R$(){return Z0()}function Z0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let $=w0();if(j()==="gemini")return $||"gemini-2.5-pro";if(j()==="mistral")return $||"devstral-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(j()==="minimax")return $||"MiniMax-M2.7";if(j()!=="firstParty")return B().opus46;return B().opus55}function M0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let $=w0();if(j()==="gemini")return $||"gemini-2.0-flash";if(j()==="mistral")return $||"mistral-medium-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5";if(j()!=="firstParty")return B().sonnet45;return B().sonnet5}function q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let $=w0();if(j()==="mistral")return $||"ministral-3b-latest";if(j()==="openai")return $||"gpt-4o-mini";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="gemini")return $||"gemini-2.0-flash-lite";if(j()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5-highspeed";return B().haiku45}function Q9($){let{permissionMode:J,mainLoopModel:Z,exceeds200kTokens:Q=!1}=$;if(G5()==="opusplan"&&J==="plan"&&!Q)return Z0();if(G5()==="haiku"&&J==="plan")return M0();return Z}function _0(){let $=w0();if(j()==="github"){let J=D()||{};return w2(J.model)||$||"github:copilot"}if(j()==="gemini")return $||"gemini-2.0-flash";if(j()==="mistral")return $||"devstral-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(F2()||L2()){let J=Z0();return J+(q5()&&!G2(J)?"[1m]":"")}return M0()}function V4(){return I(_0())}function R($){if($=$.toLowerCase(),$.includes("claude-fable-5-1"))return"claude-fable-5-1";if($.includes("claude-fable-5"))return"claude-fable-5";if($.includes("claude-opus-5-5"))return"claude-opus-5-5";if($.includes("claude-opus-5"))return"claude-opus-5";if($.includes("claude-opus-4-8"))return"claude-opus-4-8";if($.includes("claude-opus-4-7"))return"claude-opus-4-7";if($.includes("claude-opus-4-6"))return"claude-opus-4-6";if($.includes("claude-opus-4-5"))return"claude-opus-4-5";if($.includes("claude-opus-4-1"))return"claude-opus-4-1";if($.includes("claude-opus-4"))return"claude-opus-4";if($.includes("claude-sonnet-5"))return"claude-sonnet-5";if($.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if($.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if($.includes("claude-sonnet-4"))return"claude-sonnet-4";if($.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if($.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if($.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if($.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if($.includes("claude-3-opus"))return"claude-3-opus";if($.includes("claude-3-sonnet"))return"claude-3-sonnet";if($.includes("claude-3-haiku"))return"claude-3-haiku";let J=$.match(/(claude-(\d+-\d+-)?\w+)/);if(J&&J[1])return J[1];return $}function L($){return R($2($))}function w$($=!1){if(F2()||L2())return`Opus 5.5 · Most capable for complex work${$?K$(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function Y9($){if($==="opusplan")return"Opus 5.5 in plan mode, else Sonnet 5";return L$(I($))}function X9($){if(j()!=="firstParty")return"";let J=R2(W5($));return` ·${$?` (${K2})`:""} ${J}`}function q9($){if(j()!=="firstParty")return"";let J=R2(z5($));return` ·${$?` (${K2})`:""} ${J}`}function K$($){if(j()!=="firstParty")return"";let J=R2(B5($));return` ·${$?` (${K2})`:""} ${J}`}function q5(){if(Q0()||w5()||j()!=="firstParty")return!1;if(S()&&g()===null)return!1;return!0}function F$($){if(j()==="openai"||j()==="gemini"||j()==="codex"||j()==="github"){if(d2[$])return d2[$];if(j()==="github"){let{getCopilotDisplayName:J}=(v0(),E0(P0));return J($)??null}return null}switch($){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().opus55:return"Opus 5.5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function L$($){let J=F$($);if(J)return J;if($==="github:copilot")return"GPT-4o";return $}function I($){let J=w2($);if(!J)return M0();let Z=J.toLowerCase(),Q=n(Z),Y=Q?Z.replace(/\[1m]$/i,"").trim():Z;if(d(Y)){let X=(q)=>Q&&!G2(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(M0());case"sonnet":return X(M0());case"haiku":return X(q4());case"opus":return X(Z0());case"best":return R$();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(j()==="firstParty"&&b$(Y)&&k$())return Z0()+(Q?"[1m]":"");if(Q)return J.replace(/\[1m\]$/i,"").trim()+"[1m]";return J}function V9($,J){if(n($)||!n(J))return $;if(H5(I($)))return $+"[1m]";return $}function b$($){return D$.includes($)}function k$(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function j9($){if($===null){if(S())return`Default (${w$()})`;return`Default (${V4()})`}let J=I($);return $===J?J:`${$} (${J})`}function W9($){if(j()==="foundry")return;let J=$.toLowerCase().includes("[1m]"),Z=L($);if(Z.includes("claude-fable-5-1"))return"Fable 5.1";if(Z.includes("claude-fable-5"))return"Fable 5";if(Z.includes("claude-opus-5-5"))return"Opus 5.5";if(Z.includes("claude-opus-5"))return"Opus 5";if(Z.includes("claude-opus-4-8"))return J?"Opus 4.8 (with 1M context)":"Opus 4.8";if(Z.includes("claude-opus-4-7"))return J?"Opus 4.7 (with 1M context)":"Opus 4.7";if(Z.includes("claude-opus-4-6"))return J?"Opus 4.6 (with 1M context)":"Opus 4.6";if(Z.includes("claude-opus-4-5"))return"Opus 4.5";if(Z.includes("claude-opus-4-1"))return"Opus 4.1";if(Z.includes("claude-opus-4"))return"Opus 4";if(Z.includes("claude-sonnet-5"))return"Sonnet 5";if(Z.includes("claude-sonnet-4-6"))return J?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(Z.includes("claude-sonnet-4-5"))return J?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(Z.includes("claude-sonnet-4"))return J?"Sonnet 4 (with 1M context)":"Sonnet 4";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-haiku-4-5"))return"Haiku 4.5";if(Z.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function z9($){return $.replace(/\[(1|2)m\]/gi,"")}function B9($){let J=L($);return J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")||J.includes("sonnet-5")}var D$;var H0=H(()=>{e();o();j0();X4();q0();R5();f();H$();J2();a1();W0();u();G$();$4();x5();n2();D$=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function K5($){return}var j4=()=>{};function v$($,J={}){if(J.isPro??(P$.test($)||W4.has($)))return!1;if(N$.has($))return!0;if(W4.has($))return!1;let Q=$.match(U$);return Q?Number.parseFloat(Q[1])>5.4:!1}function H9(){return D2.filter(($)=>v$($.id,{isPro:$.isPro}))}var D2,N$,W4,U$,P$,z4,B4;var x4=H(()=>{D2=[{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}],N$=new Set(D2.filter(($)=>!$.isPro).map(($)=>$.id)),W4=new Set(["gpt-5.5-pro"]),U$=/^gpt-(\d+\.\d+)/,P$=/-pro$/;z4=Object.fromEntries(D2.filter(($)=>$.contextInput!==void 0).map(($)=>[$.id,$.contextInput])),B4=Object.fromEntries(D2.filter(($)=>$.contextOutput!==void 0).map(($)=>[$.id,$.contextOutput]))});var L4={};i2(L4,{prefetchOpenAICompatibleModels:()=>A$,getDiscoveredContextWindow:()=>E$,discoverOpenAICompatibleModelOptions:()=>F4});function E$($){return w4.get($)}function O$(){return(F()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function K4($){try{let J=new URL($).hostname.toLowerCase();return J.endsWith(".openai.azure.com")||J.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function y$($){try{return new URL($).hostname.toLowerCase().includes("bankr")}catch{return!1}}function h$($){let J=F()?.apiKey?.trim();if(!J)return{};if(y$($))return{"X-API-Key":J};let Z={Authorization:`Bearer ${J}`};if(K4($))Z["api-key"]=J;return Z}function I$($){let J=$.endsWith("/v1")?`${$}/models`:`${$}/v1/models`,Z=`${$}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&K4($)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if(J===Z)return[Y(J)];return[Y(J),Y(Z)]}function T$($){try{let J=new URL($),Z=J.pathname.replace(/\/+$/,""),Y=`${Z.endsWith("/v1")?Z.slice(0,-3):Z}/api/tags`.replace(/\/{2,}/g,"/");return`${J.origin}${Y}`}catch{return null}}function _$($){if($>=1e6)return`${$/1e6}M ctx`;if($>=1000)return`${Math.round($/1000)}K ctx`;return`${$} ctx`}async function S$($,J){let Z=new Set;for(let Q of $)try{let Y=await U.get(Q,{headers:J,timeout:R4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||Z.has(V))continue;Z.add(V);let z=q.name?.trim()||V,x=q.context_length??null;if(x&&x>0)w4.set(V,x);let G=x?` · ${_$(x)}`:"";X.push({value:V,label:z,description:`${V}${G}`})}if(X.length>0)return X.sort((q,V)=>{let z=String(q.value).split("/")[0]??"",x=String(V.value).split("/")[0]??"",G=z.localeCompare(x);return G!==0?G:String(q.value).localeCompare(String(V.value))}),X}catch{W(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function M$($,J){try{let Z=await U.get($,{headers:J,timeout:R4}),Q=new Set;return(Z.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 W(`[ModelDiscovery] Failed to fetch Ollama models from ${$}`),[]}}async function F4(){if(j()!=="openai")return[];let $=O$(),J=h$($),Z=await S$(I$($),J);if(Z.length>0)return Z;let Q=T$($);if(Q)return M$(Q,J);return[]}function A$(){if(A0)return A0;return A0=(async()=>{if(!H4()?.startsWith("openai:"))return;try{let J=await F4();if(J.length>0)G4(J)}catch{}finally{A0=null}})(),A0}var R4=5000,w4,A0=null;var D4=H(()=>{Z2();o();$1();r();u();X4();w4=new Map});function k4($,J,Z){let Q=F()?.model?.trim();if(Q&&Q!==Z){let X=`${Q}:${Z}`;if(J[X]!==void 0)return J[X];if($[X]!==void 0)return $[X]}let Y=b4(J,Z);if(Y!==void 0)return Y;return b4($,Z)}function b4($,J){if($[J]!==void 0)return $[J];let Z=Object.keys($).sort((Q,Y)=>Y.length-Q.length);for(let Q of Z)if(J.startsWith(Q))return $[Q];return}function N4($){try{let{getDiscoveredContextWindow:Z}=(D4(),E0(L4)),Q=Z($);if(Q!==void 0)return Q}catch{}let J=k4(C$,u$,$);if(J!==void 0)return J;try{let{getCatalogCopilotContextWindow:Z}=(v0(),E0(P0));return Z($)}catch{return}}function U4($){let J=k4(f$,g$,$);if(J!==void 0)return J;try{let{getCatalogCopilotMaxOutputTokens:Z}=(v0(),E0(P0));return Z($)}catch{return}}var C$,f$,u$,g$;var P4=H(()=>{o();x4();C$={"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,...z4,"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},f$={"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,...B4,"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},u$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})(),g$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})()});function v4(){let $=F()?.transport;return $==="openai_compat"||$==="gemini"||$==="mistral"||$==="github_copilot"||$==="codex_responses"}function Q0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function n($){if(Q0())return!1;return/\[1m\]/i.test($)}function H5($){if(Q0())return!1;let J=L($);return J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("opus-4-6")||J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")}function M9($,J){if(n($))return 1e6;if(v4()){let Q=N4($);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${$}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),p$}let Z=K5($);if(Z?.max_input_tokens&&Z.max_input_tokens>=1e5){if(Z.max_input_tokens>F5&&Q0())return F5;return Z.max_input_tokens}if(!Q0()&&(L($).includes("fable-5")||L($).includes("sonnet-5")||L($).includes("opus-5")))return 1e6;if(J?.includes(h0)&&H5($))return 1e6;if(d$($))return 1e6;return F5}function d$($){if(Q0())return!1;if(n($))return!1;if(!L($).includes("sonnet-4-6"))return!1;return k().clientDataCache?.coral_reef_sonnet==="true"}function A9($,J){if(!$)return{used:null,remaining:null};let Z=$.input_tokens+$.cache_creation_input_tokens+$.cache_read_input_tokens,Q=Math.round(Z/J*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function C9($){let J,Z;if(v4()){let X=U4($);if(X!==void 0)return{default:X,upperLimit:X}}let Q=L($);if(Q.includes("opus-5-5"))J=128000,Z=128000;else if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("sonnet-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))J=64000,Z=128000;else if(Q.includes("sonnet-4-6"))J=32000,Z=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))J=32000,Z=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))J=32000,Z=32000;else if(Q.includes("claude-3-opus"))J=4096,Z=4096;else if(Q.includes("claude-3-sonnet"))J=8192,Z=8192;else if(Q.includes("claude-3-haiku"))J=4096,Z=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))J=8192,Z=8192;else if(Q.includes("3-7-sonnet"))J=32000,Z=64000;else J=m$,Z=c$;let Y=K5($);if(Y?.max_tokens&&Y.max_tokens>=4096)Z=Y.max_tokens,J=Math.min(J,Z);return{default:J,upperLimit:Z}}var F5=200000,p$,T9=20000,m$=32000,c$=64000,_9=8000,S9=64000;var R5=H(()=>{W2();o();j0();f();H0();j4();P4();p$=(()=>{let $=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN($)&&$>0?$:128000})()});var n$,E4;var O4=H(()=>{d0();u();n$=[{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"}],E4=h(($,J)=>{if(j()==="firstParty")return;let Z=$.toLowerCase();for(let Q of n$){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(Z!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes(J)}return},($,J)=>`${$.toLowerCase()}:${J}`)});function i$($){if($.provider!=="firstParty"||!$.profileIsFirstParty)return!1;if(!$.envBaseUrl||$.assumeFirstParty)return!0;try{return new URL($.envBaseUrl).host===t$}catch{return!1}}function D5(){return i$({provider:j(),profileIsFirstParty:Y1(),envBaseUrl:process.env.ANTHROPIC_BASE_URL,assumeFirstParty:K(process.env.CLAUDIN_ASSUME_FIRST_PARTY_BASE_URL)})}function b2($){return!C0.has($)&&!K(process.env[L5[$].killswitch])&&D5()}function n9($){return C0.has($)}function t9($){C0.add($)}function i9($){if(C0.size===0)return[...$];let J=new Set([...C0].map((Z)=>L5[Z].header));return $.filter((Z)=>!J.has(Z))}function l9($,J){if($!==400||!J)return null;let Z=l$.exec(J)?.[1];if(Z!==void 0){for(let[Q,{header:Y}]of Object.entries(L5))if(Y&&Z.includes(Y))return Q;return null}if(s$.test(J))return"thinkingDisplayUpdates";if(a$.test(J))return"cacheDiagnosis";if(r$.test(J))return"contextManagement";return null}var L5,t$="api.anthropic.com",C0,l$,s$,a$,r$;var y4=H(()=>{W2();f();u();L5={thinkingDisplayUpdates:{header:y1,killswitch:"CLAUDIN_DISABLE_THINKING_DISPLAY_UPDATES"},thinkingTokenCount:{header:x0,killswitch:"CLAUDIN_DISABLE_THINKING_TOKEN_COUNT"},contextManagement:{header:V2,killswitch:"CLAUDIN_DISABLE_CONTEXT_MANAGEMENT"},promptCachingScope:{header:j2,killswitch:"CLAUDIN_DISABLE_PROMPT_CACHING_SCOPE"},cacheDiagnosis:{header:h1,killswitch:"CLAUDIN_DISABLE_CACHE_DIAGNOSIS"},afkMode:{header:_1,killswitch:"CLAUDIN_DISABLE_AFK_MODE_BETA"}};C0=new Set;l$=/Unexpected value\(s\) (.+?) for the `anthropic-beta` header/,s$=/\bthinking\.(?:adaptive|enabled)\.display:/,a$=/\bdiagnostics(?:\.[a-z_]+)*:/,r$=/\bcontext_management(?:\.[a-z_0-9]+)*:/});function o$($){let J=[],Z=[];for(let Q of $)if(T4.includes(Q))J.push(Q);else Z.push(Q);return{allowed:J,disallowed:Z}}function zQ($){if(!$||$.length===0)return;if(S()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:J,disallowed:Z}=o$($);for(let Q of Z)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${T4.join(", ")}`);return J.length>0?J:void 0}function b5($){let J=E4($,"interleaved_thinking");if(J!==void 0)return J;let Z=L($),Q=j();if(Q==="foundry")return!0;if(Q==="firstParty")return!Z.includes("claude-3-");return Z.includes("claude-opus-4")||Z.includes("claude-opus-5")||Z.includes("claude-sonnet-5")||Z.includes("claude-sonnet-4")}function e$($){let J=L($);return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("claude-haiku-4")}function $J($){let J=L($),Z=j();if(Z==="foundry")return!0;if(Z==="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")||J.includes("claude-haiku-4")}function JJ($){let J=L($),Z=j();if(Z!=="firstParty"&&Z!=="foundry")return!1;return J.includes("claude-fable-5")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4-6")||J.includes("claude-sonnet-4-5")||J.includes("claude-opus-4-1")||J.includes("claude-opus-4-5")||J.includes("claude-opus-4-6")||J.includes("claude-opus-4-7")||J.includes("claude-opus-4-8")||J.includes("claude-haiku-4-5")}function ZJ($){if(j()!=="firstParty")return!1;let J=L($);return J.includes("claude-opus-5-5")||J.includes("claude-fable-5-1")}function BQ($){let J=L($);if(!J.startsWith("claude-"))return!1;if(J.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test(J))return!1;return!0}function xQ(){let $=j();if($==="vertex"||$==="bedrock")return E1;return v1}function QJ(){return(j()==="firstParty"||j()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function GQ(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return j()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function HQ($,J){let Z=[..._4($)];if(J?.isAgenticQuery){if(!Z.includes(q2))Z.push(q2)}let Q=h4();if(!Q||Q.length===0)return Z;return[...Z,...Q.filter((Y)=>!Z.includes(Y))]}function S4(){k5.cache?.clear?.(),_4.cache?.clear?.(),YJ.cache?.clear?.()}var T4,k5,_4,YJ;var M4=H(()=>{d0();C1();e();W2();y0();q0();R5();f();H0();O4();u();W0();y4();T4=[h0];k5=h(($)=>{let J=[],Z=L($).includes("haiku"),Q=j(),Y=QJ();if(!Z)J.push(q2);if(S())J.push(B2);if(n($))J.push(h0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&b5($))J.push(U1);if(Y&&b5($)&&!A()&&D().showThinkingSummaries!==!0&&!D5())J.push(O1),J.push(x0);if(b5($)&&b2("thinkingTokenCount")&&!J.includes(x0))J.push(x0);let X=$J($);if((Y||b2("contextManagement"))&&X)J.push(V2);if(ZJ($))J.push(I1);let q=I4("tengu_tool_pear"),V=!q&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||T0("tengu_amber_json_tools",!1));if(Y&&JJ($)&&q)J.push(P1);if(Y&&V)J.push(T1);if(Q==="vertex"&&e$($))J.push(Z5);if(Q==="foundry")J.push(Z5);if(Y||b2("promptCachingScope"))J.push(j2);if(process.env.ANTHROPIC_BETAS)J.push(...process.env.ANTHROPIC_BETAS.split(",").map((z)=>z.trim()).filter(Boolean));return J}),_4=h(($)=>{let J=k5($);if(j()==="bedrock")return J.filter((Z)=>!Q5.has(Z));return J}),YJ=h(($)=>{return k5($).filter((Z)=>Q5.has(Z))})});import{execFile as XJ}from"child_process";function A4($){return new Promise((J)=>{XJ("security",["find-generic-password","-a",N2(),"-w","-s",$],{encoding:"utf-8",timeout:qJ},(Z,Q)=>{J({stdout:Z?null:Q?.trim()||null,timedOut:Boolean(Z&&"killed"in Z&&Z.killed)})})})}function LQ(){if(process.platform!=="darwin"||k2||C())return;let $=A4(m(C4)),J=A4(m());k2=Promise.all([$,J]).then(([Z,Q])=>{if(!Z.timedOut)f4(Z.stdout);if(!Q.timedOut)N5={stdout:Q.stdout}})}async function DQ(){if(k2)await k2}function u4(){return N5}function U5(){N5=null}var qJ=1e4,N5=null,k2=null;var g4=H(()=>{f();e2()});function kQ(){return p4}function m4(){p4.clear()}var p4;var c4=H(()=>{p4=new Map});var cJ={};i2(cJ,{validateForceLoginOrg:()=>mJ,saveOAuthTokensIfNeeded:()=>q8,saveApiKey:()=>g5,removeApiKey:()=>MJ,refreshGcpCredentialsIfNeeded:()=>u5,refreshGcpAuth:()=>Y8,refreshAwsAuth:()=>Z8,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>TJ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>_J,prefetchApiKeyFromApiKeyHelperIfSafe:()=>bJ,isUsing3PServices:()=>P2,isTeamSubscriber:()=>uJ,isTeamPremiumSubscriber:()=>L2,isProSubscriber:()=>w5,isMaxSubscriber:()=>F2,isGcpAuthRefreshFromProjectSettings:()=>f5,isEnterpriseSubscriber:()=>gJ,isClaudeAISubscriber:()=>S,isAwsCredentialExportFromProjectSettings:()=>A5,isAwsAuthRefreshFromProjectSettings:()=>S5,isAnthropicAuthEnabled:()=>D0,is1PApiCustomer:()=>fJ,hasProfileScope:()=>J0,handleOAuth401Error:()=>j5,getSubscriptionType:()=>g,getSubscriptionName:()=>j8,getRateLimitTier:()=>V8,getOauthAccountInfo:()=>O5,getConfiguredApiKeyHelper:()=>t,getClaudeAIOAuthTokensAsync:()=>g0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T5,getApiKeyHelperElapsedMs:()=>FJ,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>v5,getApiKeyFromApiKeyHelper:()=>J8,getAnthropicApiKeyWithSource:()=>E2,getAnthropicApiKey:()=>V5,getAccountInformation:()=>pJ,clearOAuthTokenCache:()=>p5,clearGcpCredentialsCache:()=>IJ,clearAwsCredentialsCache:()=>vJ,clearApiKeyHelperCache:()=>DJ,checkGcpCredentialsValid:()=>Q8,checkAndRefreshOAuthTokenIfNeeded:()=>m0,calculateApiKeyHelperTTL:()=>$8});import{exec as o4}from"child_process";import{mkdir as HJ,stat as RJ}from"fs/promises";import{join as wJ}from"path";function U2(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function D0(){if(C())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let $=P2(),Z=(D()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||Z||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=E2({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!($||Q&&!U2()||X&&!U2())}function T5(){if(C()){if(t())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!U2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X2()){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(t()&&!U2())return{source:"apiKeyHelper",hasToken:!0};let Z=w();if(L0(Z?.scopes)&&Z?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function V5(){let{key:$}=E2();return $}function E2($={}){let J=(()=>{let q=F();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(C()){if(J)return{key:J,source:"ANTHROPIC_API_KEY"};if(t())return{key:$.skipRetrievingKeyFromApiKeyHelper?null:v5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let Z=J;if(z2()&&Z)return{key:Z,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let q=o2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!P2()&&!Z&&!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(Z&&!P2())return{key:Z,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(Z&&k().customApiKeyResponses?.approved?.includes($5(Z)))return{key:Z,source:"ANTHROPIC_API_KEY"};let Q=o2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(t()){if($.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:v5(),source:"apiKeyHelper"}}let X=O2();if(X)return X;return{key:null,source:"none"}}function t(){if(C())return E("flagSettings")?.apiKeyHelper;return(D()||{}).apiKeyHelper}function e4(){let $=t();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.apiKeyHelper===$||Z?.apiKeyHelper===$}function _5(){return(D()||{}).awsAuthRefresh}function S5(){let $=_5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsAuthRefresh===$||Z?.awsAuthRefresh===$}function M5(){return(D()||{}).awsCredentialExport}function A5(){let $=M5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsCredentialExport===$||Z?.awsCredentialExport===$}function $8(){let $=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if($){let J=parseInt($,10);if(!Number.isNaN(J)&&J>=0)return J;W(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${$}`,{level:"error"})}return KJ}function FJ(){let $=p?.startedAt;return $?Date.now()-$:0}async function J8($){if(!t())return null;let J=$8();if(y){if(Date.now()-y.timestamp<J)return y.value;if(!p)p={promise:d4($,!1,F0),startedAt:null};return y.value}if(p)return p.promise;return p={promise:d4($,!0,F0),startedAt:Date.now()},p.promise}async function d4($,J,Z){try{let Q=await LJ($);if(Z!==F0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(Z!==F0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(M.red(`apiKeyHelper failed: ${Y}`)),W(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!J&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(Z===F0)p=null}}async function LJ($){let J=t();if(!J)return null;if(e4()){if(!i()&&!$){let X=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("apiKeyHelper invoked before trust check",X),null}}let Z=await B0(J,{shell:!0,timeout:600000,reject:!1});if(Z.failed){let Y=Z.timedOut?"timed out":`exited ${Z.exitCode}`,X=Z.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=Z.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function v5(){return y?.value??null}function DJ(){F0++,y=null,p=null}function bJ($){if(e4()&&!i())return;J8($)}async function NJ(){let $=_5();if(!$)return!1;if(S5()){if(!i()&&!A()){let Z=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("awsAuthRefresh invoked before trust check",Z),!1}}try{return W("Fetching AWS caller identity for AWS auth refresh command"),await J5(),W("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Z8($)}}function Z8($){W("Running AWS auth refresh command");let J=T.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=o4($,{timeout:UJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("AWS auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let V=X==="SIGTERM"?M.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):M.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),J.endAuthentication(!1),Z(!1)}})})}async function PJ(){let $=M5();if(!$)return null;if(A5()){if(!i()&&!A()){let Z=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("awsCredentialExport invoked before trust check",Z),null}}try{return W("Fetching AWS caller identity for credential export command"),await J5(),W("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{W("Running AWS credential export command");let J=await B0($,{shell:!0,reject:!1});if(J.exitCode!==0||!J.stdout)throw Error("awsCredentialExport did not return a valid value");let Z=t4(J.stdout.trim());if(!L1(Z))throw Error("awsCredentialExport did not return valid AWS STS output structure");return W("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:Z.Credentials.AccessKeyId,secretAccessKey:Z.Credentials.SecretAccessKey,sessionToken:Z.Credentials.SessionToken}}catch(J){let Z=M.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if(J instanceof Error)console.error(Z,J.message);else console.error(Z,J);return null}}}function vJ(){X0.cache.clear()}function C5(){return(D()||{}).gcpAuthRefresh}function f5(){let $=C5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.gcpAuthRefresh===$||Z?.gcpAuthRefresh===$}async function Q8(){try{let{GoogleAuth:$}=await import("google-auth-library"),J=new $({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),Z=(async()=>{await(await J.getClient()).getAccessToken()})(),Q=I5(EJ).then(()=>{throw new W8("GCP credentials check timed out")});return await Promise.race([Z,Q]),!0}catch{return!1}}async function yJ(){let $=C5();if(!$)return!1;if(f5()){if(!i()&&!A()){let Z=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("gcpAuthRefresh invoked before trust check",Z),!1}}try{if(W("Checking GCP credentials validity for auth refresh"),await Q8())return W("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y8($)}function Y8($){W("Running GCP auth refresh command");let J=T.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=o4($,{timeout:hJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("GCP auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let V=X==="SIGTERM"?M.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):M.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),J.endAuthentication(!1),Z(!1)}})})}function IJ(){u5.cache.clear()}function TJ(){if(!C5())return;if(f5()){if(!i()&&!A())return}u5()}function _J(){let $=_5(),J=M5();if(!$&&!J)return;if(S5()||A5()){if(!i()&&!A())return}X0(),B()}function SJ($){return/^[a-zA-Z0-9-_]+$/.test($)}async function g5($){if(!SJ($))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await X8();let J=!1;if(process.platform==="darwin")try{let Q=m(),Y=N2(),X=Buffer.from($,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
|
|
2
|
-
`;await B0("security",["-i"],{input:q,reject:!1}),J=!0}catch(Q){b(Q)}let Z=$5($);_((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:J?Q.primaryApiKey:$,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(Z)?Y:[...Y,Z],rejected:Q.customApiKeyResponses?.rejected??[]}}}),O2.cache.clear?.(),U5()}async function MJ(){await X8(),_(($)=>({...$,primaryApiKey:void 0})),O2.cache.clear?.(),U5()}async function X8(){try{await K1()}catch($){b($)}}function q8($){if(!L0($.scopes))return{success:!0};if(!$.refreshToken||!$.expiresAt)return{success:!0};let J=v2();try{let Z=J.read()||{},Q=Z.claudeAiOauth;Z.claudeAiOauth={accessToken:$.accessToken,refreshToken:$.refreshToken,expiresAt:$.expiresAt,scopes:$.scopes,subscriptionType:$.subscriptionType??Q?.subscriptionType??null,rateLimitTier:$.rateLimitTier??Q?.rateLimitTier??null};let Y=J.update(Z);return w.cache?.clear?.(),S4(),m4(),Y}catch(Z){return b(Z),{success:!1,warning:"Failed to save OAuth tokens"}}}function p5(){w.cache?.clear?.(),K0()}async function AJ(){try{let{mtimeMs:$}=await RJ(wJ(y5(),".credentials.json"));if($!==n4)n4=$,p5()}catch{w.cache?.clear?.()}}function j5($){let J=P5.get($);if(J)return J;let Z=CJ($).finally(()=>{P5.delete($)});return P5.set($,Z),Z}async function CJ($){p5();let J=await g0();if(!J?.refreshToken)return!1;if(J.accessToken!==$)return!0;return m0(0,!0)}async function g0(){if(C())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X2())return w();try{let Z=(await v2().readAsync())?.claudeAiOauth;if(!Z?.accessToken)return null;return Z}catch($){return b($),null}}function m0($=0,J=!1){if($===0&&!J){if(f0)return f0;return f0=E5($,J).finally(()=>{f0=null}),f0}return E5($,J)}async function E5($,J){await AJ();let Q=w();if(!J){if(!Q?.refreshToken||!u0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!L0(Q.scopes))return!1;w.cache?.clear?.(),K0();let Y=await g0();if(!Y?.refreshToken||!u0(Y.expiresAt))return!1;let X=y5();await HJ(X,{recursive:!0});let q;try{q=await l4(X)}catch(V){if(V.code==="ELOCKED"){if($<5)return await I5(1000+Math.random()*1000),E5($+1,J);return!1}return b(V),!1}try{w.cache?.clear?.(),K0();let V=await g0();if(!V?.refreshToken||!u0(V.expiresAt))return!1;let z=await a4(V.refreshToken,{scopes:L0(V.scopes)?void 0:V.scopes});return q8(z),w.cache?.clear?.(),K0(),!0}catch(V){b(V),w.cache?.clear?.(),K0();let z=await g0();if(z&&!u0(z.expiresAt))return!0;return!1}finally{await q()}}function S(){if(!D0())return!1;return L0(w()?.scopes)}function J0(){return w()?.scopes?.includes(i4)??!1}function fJ(){{let $=F()?.transport;if($==="bedrock"||$==="vertex"||$==="foundry")return!1}if(S())return!1;return!0}function O5(){return D0()?k().oauthAccount:void 0}function g(){if(!D0())return null;let $=w();if(!$)return null;return $.subscriptionType??null}function F2(){return g()==="max"}function uJ(){return g()==="team"}function L2(){return g()==="team"&&V8()==="default_claude_max_5x"}function gJ(){return g()==="enterprise"}function w5(){return g()==="pro"}function V8(){if(!D0())return null;let $=w();if(!$)return null;return $.rateLimitTier??null}function j8(){switch(g()){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 P2(){let $=F()?.transport;if(!$)return!1;return $!=="anthropic"}function pJ(){if(j()!=="firstParty")return;let{source:J}=T5(),Z={};if(J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")Z.tokenSource=J;else if(S())Z.subscription=j8();else Z.tokenSource=J;let{key:Q,source:Y}=E2();if(Q)Z.apiKeySource=Y;if(J==="claude.ai"||Y==="/login managed key"){let q=O5()?.organizationName;if(q)Z.organization=q}let X=O5()?.emailAddress;if((J==="claude.ai"||Y==="/login managed key")&&X)Z.email=X;return Z}async function mJ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!D0())return{valid:!0};let $=E("policySettings")?.forceLoginOrgUUID;if(!$)return{valid:!0};await m0();let J=w();if(!J)return{valid:!0};let{source:Z}=T5(),Q=Z==="CLAUDE_CODE_OAUTH_TOKEN"||Z==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await z0(J.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
-
This machine requires organization ${$} 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 X=Y.organization.uuid;if(X===$)return{valid:!0};if(Q)return{valid:!1,message:`The ${Z==="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: ${$}
|
|
10
|
-
Token organization: ${X}
|
|
11
|
-
|
|
12
|
-
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
|
|
13
|
-
but this machine requires organization ${$}.
|
|
14
|
-
|
|
15
|
-
Please log in with the correct organization: claude auth login`}}var KJ=300000,y=null,p=null,F0=0,kJ=3600000,UJ=180000,X0,EJ=5000,OJ=3600000,hJ=180000,u5,O2,w,n4=0,P5,f0=null,W8;var q0=H(()=>{jJ();w1();d0();y0();J2();u();e();o();r4();a2();R1();F1();b1();N1();M4();j0();r();f();BJ();zJ();n0();WJ();xJ();g4();e2();W0();GJ();VJ();c4();X0=h5(async()=>{let $=await NJ(),J=await PJ();if($||J)await D1();return J},kJ);u5=h5(async()=>{return await yJ()},OJ);O2=h(()=>{if(C())return null;if(process.platform==="darwin"){let J=u4();if(J){if(J.stdout)return{key:J.stdout,source:"/login managed key"}}else{let Z=m();try{let Q=s4(`security find-generic-password -a $USER -w -s "${Z}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){b(Q)}}}let $=k();if(!$.primaryApiKey)return null;return{key:$.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(C())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 $=X2();if($)return{accessToken:$,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=v2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch(J){return b(J),null}});P5=new Map;W8=class W8 extends Error{}});function L0($){return Boolean($?.includes(m5))}function dJ($){return $?.split(" ").filter(Boolean)??[]}function j3({codeChallenge:$,state:J,port:Z,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:z}){let x=Y?N().CLAUDE_AI_AUTHORIZE_URL:N().CONSOLE_AUTHORIZE_URL,G=new URL(x);G.searchParams.append("code","true"),G.searchParams.append("client_id",N().CLIENT_ID),G.searchParams.append("response_type","code"),G.searchParams.append("redirect_uri",Q?N().MANUAL_REDIRECT_URL:`http://localhost:${Z}/callback`);let Y0=X?[m5]:x8;if(G.searchParams.append("scope",Y0.join(" ")),G.searchParams.append("code_challenge",$),G.searchParams.append("code_challenge_method","S256"),G.searchParams.append("state",J),q)G.searchParams.append("orgUUID",q);if(V)G.searchParams.append("login_hint",V);if(z)G.searchParams.append("login_method",z);return G.toString()}async function W3($,J,Z,Q,Y=!1,X){let q={grant_type:"authorization_code",code:$,redirect_uri:Y?N().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:N().CLIENT_ID,code_verifier:Z,state:J};if(X!==void 0)q.expires_in=X;let V=await U.post(N().TOKEN_URL,q,{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 V.data}async function a4($,{scopes:J}={}){let Z={grant_type:"refresh_token",refresh_token:$,client_id:N().CLIENT_ID,scope:((J?.length)?J:B8).join(" ")};try{let Q=await U.post(N().TOKEN_URL,Z,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=$,expires_in:V}=Y,z=Date.now()+V*1000,x=dJ(Y.scope),G=k(),Y0=w(),P=G.oauthAccount?.billingType!==void 0&&G.oauthAccount?.accountCreatedAt!==void 0&&G.oauthAccount?.subscriptionCreatedAt!==void 0&&Y0?.subscriptionType!=null&&Y0?.rateLimitTier!=null?null:await nJ(X);if(P&&G.oauthAccount){let l={};if(P.displayName!==void 0)l.displayName=P.displayName;if(typeof P.hasExtraUsageEnabled==="boolean")l.hasExtraUsageEnabled=P.hasExtraUsageEnabled;if(P.billingType!==null)l.billingType=P.billingType;if(P.accountCreatedAt!==void 0)l.accountCreatedAt=P.accountCreatedAt;if(P.subscriptionCreatedAt!==void 0)l.subscriptionCreatedAt=P.subscriptionCreatedAt;if(Object.keys(l).length>0)_((c0)=>({...c0,oauthAccount:c0.oauthAccount?{...c0.oauthAccount,...l}:c0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:z,scopes:x,subscriptionType:P?.subscriptionType??Y0?.subscriptionType??null,rateLimitTier:P?.rateLimitTier??Y0?.rateLimitTier??null,profile:P?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=U.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw Q}}async function z3($){let J=await U.get(N().ROLES_URL,{headers:{Authorization:`Bearer ${$}`}});if(J.status!==200)throw Error(`Failed to fetch user roles: ${J.statusText}`);let Z=J.data;if(!k().oauthAccount)throw Error("OAuth account information not found in config");_((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:Z.organization_role,workspaceRole:Z.workspace_role,organizationName:Z.organization_name}:Y.oauthAccount}))}async function B3($){try{let Z=(await U.post(N().API_KEY_URL,null,{headers:{Authorization:`Bearer ${$}`}})).data?.raw_key;if(Z)return await g5(Z),Z;return null}catch(J){throw J}}function u0($){if($===null)return!1;let J=300000;return Date.now()+J>=$}async function nJ($){let J=await z0($),Z=J?.organization?.organization_type,Q=null;switch(Z){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:J?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:J?.organization?.has_extra_usage_enabled??null,billingType:J?.organization?.billing_type??null};if(J?.account?.display_name)Y.displayName=J.account.display_name;if(J?.account?.created_at)Y.accountCreatedAt=J.account.created_at;if(J?.organization?.subscription_created_at)Y.subscriptionCreatedAt=J.organization.subscription_created_at;return{...Y,rawProfile:J}}async function x3(){let J=k().oauthAccount?.organizationUuid;if(J)return J;let Z=w()?.accessToken;if(Z===void 0||!J0())return null;let Y=(await z0(Z))?.organization?.uuid;if(!Y)return null;return Y}async function G3(){let $=process.env.CLAUDE_CODE_ACCOUNT_UUID,J=process.env.CLAUDE_CODE_USER_EMAIL,Z=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean($&&J&&Z);if($&&J&&Z){if(!k().oauthAccount)z8({accountUuid:$,emailAddress:J,organizationUuid:Z})}await m0();let Y=k();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!S()||!J0())return!1;let X=w();if(X?.accessToken){let q=await z0(X.accessToken),V=q?.account,z=q?.organization;if(V){if(Q)W("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return z8({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:z?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:z?.has_extra_usage_enabled??!1,billingType:z?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:z?.subscription_created_at??void 0}),!0}}return!1}function z8({accountUuid:$,emailAddress:J,organizationUuid:Z,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let z={accountUuid:$,emailAddress:J,organizationUuid:Z,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)z.displayName=Q;_((x)=>{if(x.oauthAccount?.accountUuid===z.accountUuid&&x.oauthAccount?.emailAddress===z.emailAddress&&x.oauthAccount?.organizationUuid===z.organizationUuid&&x.oauthAccount?.displayName===z.displayName&&x.oauthAccount?.hasExtraUsageEnabled===z.hasExtraUsageEnabled&&x.oauthAccount?.billingType===z.billingType&&x.oauthAccount?.accountCreatedAt===z.accountCreatedAt&&x.oauthAccount?.subscriptionCreatedAt===z.subscriptionCreatedAt)return x;return{...x,oauthAccount:z}})}var r4=H(()=>{Z2();y0();q0();j0();r();a2()});
|
|
16
|
-
export{LQ as f3,DQ as g3,g4 as h3,c5 as i3,d5 as j3,eJ as k3,$Z as l3,H8 as m3,K8 as n3,JZ as o3,l5 as p3,t0 as q3,k0 as r3,c2 as s3,s2 as t3,N8 as u3,v0 as v3,j as w3,xZ as x3,y8 as y3,GZ as z3,Y1 as A3,u as B3,B as C3,kZ as D3,J2 as E3,z0 as F3,a2 as G3,L0 as H3,dJ as I3,j3 as J3,W3 as K3,a4 as L3,z3 as M3,B3 as N3,u0 as O3,nJ as P3,x3 as Q3,G3 as R3,z8 as S3,r4 as T3,SZ as U3,u8 as V3,j1 as W3,R1 as X3,$5 as Y3,F1 as Z3,gZ as _3,b1 as $3,T as a4,N1 as b4,h0 as c4,V2 as d4,P1 as e4,dZ as f4,nZ as g4,j2 as h4,tZ as i4,iZ as j4,O1 as k4,y1 as l4,h1 as m4,I1 as n4,_1 as o4,lZ as p4,sZ as q4,W2 as r4,O as s4,u1 as t4,c8 as u4,B7 as v4,x7 as w4,G7 as x4,g1 as y4,H7 as z4,R7 as A4,d8 as B4,w7 as C4,K7 as D4,F7 as E4,L7 as F4,D7 as G4,i8 as H4,b7 as I4,k7 as J4,N7 as K4,U7 as L4,d1 as M4,S0 as N4,o8 as O4,$$ as P4,J$ as Q4,W5 as R4,j$ as S4,h7 as T4,R2 as U4,a1 as V4,W$ as W4,x5 as X4,e1 as Y4,$4 as Z4,$9 as _4,J9 as $4,G2 as a5,G5 as b5,Z9 as c5,R$ as d5,Z0 as e5,M0 as f5,q4 as g5,Q9 as h5,_0 as i5,V4 as j5,R as k5,L as l5,w$ as m5,Y9 as n5,X9 as o5,q9 as p5,K$ as q5,q5 as r5,F$ as s5,L$ as t5,I as u5,V9 as v5,k$ as w5,j9 as x5,W9 as y5,z9 as z5,B9 as A5,H0 as B5,H9 as C5,x4 as D5,F4 as E5,A$ as F5,D4 as G5,T9 as H5,_9 as I5,S9 as J5,Q0 as K5,n as L5,M9 as M5,d$ as N5,A9 as O5,C9 as P5,R5 as Q5,E4 as R5,O4 as S5,L5 as T5,D5 as U5,b2 as V5,n9 as W5,t9 as X5,i9 as Y5,l9 as Z5,y4 as _5,zQ as $5,JJ as a6,BQ as b6,xQ as c6,QJ as d6,GQ as e6,_4 as f6,YJ as g6,HQ as h6,S4 as i6,M4 as j6,kQ as k6,m4 as l6,c4 as m6,D0 as n6,T5 as o6,V5 as p6,E2 as q6,t as r6,S5 as s6,A5 as t6,$8 as u6,FJ as v6,J8 as w6,v5 as x6,DJ as y6,bJ as z6,Z8 as A6,X0 as B6,vJ as C6,f5 as D6,Q8 as E6,Y8 as F6,u5 as G6,IJ as H6,TJ as I6,_J as J6,O2 as K6,g5 as L6,MJ as M6,q8 as N6,w as O6,p5 as P6,j5 as Q6,g0 as R6,m0 as S6,S as T6,J0 as U6,fJ as V6,O5 as W6,g as X6,F2 as Y6,uJ as Z6,L2 as _6,gJ as $6,w5 as a7,V8 as b7,j8 as c7,P2 as d7,pJ as e7,mJ as f7,cJ as g7,q0 as h7};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$2 as w,b3 as F}from"./cli-1.1.35-b0n88pf7.mjs";import{Yra as D}from"./cli-1.1.35-c05841mj.mjs";F();var z,B;function O(q,v){z=q,B=v}async function Q(q,v,G,H){let J=z??import("./App-1.1.35-r3nj6jfs.mjs"),K=B??import("./REPL-1.1.35-0vqh1ns0.mjs");z=void 0,B=void 0;let[{App:M},{REPL:N}]=await Promise.all([J,K]);await H(q,w(M,{...v,children:w(N,{...G})}))}
|
|
2
|
-
export{O as Eb,Q as Fb};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{B_ as M0,C_ as H0}from"./cli-1.1.35-x5ft52g3.mjs";import{Ura as L0,Vra as J,Xra as R0,Yra as E}from"./cli-1.1.35-c05841mj.mjs";var u_=J((Ch,b_)=>{var T=1000,$=T*60,O=$*60,U=O*24,rS=U*7,sS=U*365.25;b_.exports=function(_,S){S=S||{};var z=typeof _;if(z==="string"&&_.length>0)return aS(_);else if(z==="number"&&isFinite(_))return S.long?_0(_):eS(_);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function aS(_){if(_=String(_),_.length>100)return;var S=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(!S)return;var z=parseFloat(S[1]),h=(S[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return z*sS;case"weeks":case"week":case"w":return z*rS;case"days":case"day":case"d":return z*U;case"hours":case"hour":case"hrs":case"hr":case"h":return z*O;case"minutes":case"minute":case"mins":case"min":case"m":return z*$;case"seconds":case"second":case"secs":case"sec":case"s":return z*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return z;default:return}}function eS(_){var S=Math.abs(_);if(S>=U)return Math.round(_/U)+"d";if(S>=O)return Math.round(_/O)+"h";if(S>=$)return Math.round(_/$)+"m";if(S>=T)return Math.round(_/T)+"s";return _+"ms"}function _0(_){var S=Math.abs(_);if(S>=U)return t(_,S,U,"day");if(S>=O)return t(_,S,O,"hour");if(S>=$)return t(_,S,$,"minute");if(S>=T)return t(_,S,T,"second");return _+" ms"}function t(_,S,z,h){var K=S>=z*1.5;return Math.round(_/z)+" "+h+(K?"s":"")}});var J_=J((Ih,m_)=>{function z0(_){z.debug=z,z.default=z,z.coerce=M,z.disable=W,z.enable=K,z.enabled=V,z.humanize=u_(),z.destroy=F,Object.keys(_).forEach((Z)=>{z[Z]=_[Z]}),z.names=[],z.skips=[],z.formatters={};function S(Z){let Y=0;for(let G=0;G<Z.length;G++)Y=(Y<<5)-Y+Z.charCodeAt(G),Y|=0;return z.colors[Math.abs(Y)%z.colors.length]}z.selectColor=S;function z(Z){let Y,G=null,L,x;function H(...N){if(!H.enabled)return;let A=H,n=Number(new Date),lS=n-(Y||n);if(A.diff=lS,A.prev=Y,A.curr=n,Y=n,N[0]=z.coerce(N[0]),typeof N[0]!=="string")N.unshift("%O");let l=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(Z_,tS)=>{if(Z_==="%%")return"%";l++;let g_=z.formatters[tS];if(typeof g_==="function"){let oS=N[l];Z_=g_.call(A,oS),N.splice(l,1),l--}return Z_}),z.formatArgs.call(A,N),(A.log||z.log).apply(A,N)}if(H.namespace=Z,H.useColors=z.useColors(),H.color=z.selectColor(Z),H.extend=h,H.destroy=z.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(G!==null)return G;if(L!==z.namespaces)L=z.namespaces,x=z.enabled(Z);return x},set:(N)=>{G=N}}),typeof z.init==="function")z.init(H);return H}function h(Z,Y){let G=z(this.namespace+(typeof Y>"u"?":":Y)+Z);return G.log=this.log,G}function K(Z){z.save(Z),z.namespaces=Z,z.names=[],z.skips=[];let Y=(typeof Z==="string"?Z:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let G of Y)if(G[0]==="-")z.skips.push(G.slice(1));else z.names.push(G)}function Q(Z,Y){let G=0,L=0,x=-1,H=0;while(G<Z.length)if(L<Y.length&&(Y[L]===Z[G]||Y[L]==="*"))if(Y[L]==="*")x=L,H=G,L++;else G++,L++;else if(x!==-1)L=x+1,H++,G=H;else return!1;while(L<Y.length&&Y[L]==="*")L++;return L===Y.length}function W(){let Z=[...z.names,...z.skips.map((Y)=>"-"+Y)].join(",");return z.enable(""),Z}function V(Z){for(let Y of z.skips)if(Q(Z,Y))return!1;for(let Y of z.names)if(Q(Z,Y))return!0;return!1}function M(Z){if(Z instanceof Error)return Z.stack||Z.message;return Z}function F(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return z.enable(z.load()),z}m_.exports=z0});var i_=J((p_,o)=>{p_.formatArgs=h0;p_.save=K0;p_.load=Q0;p_.useColors=S0;p_.storage=Z0();p_.destroy=(()=>{let _=!1;return()=>{if(!_)_=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();p_.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S0(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let _;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(_=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(_[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function h0(_){if(_[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+_[0]+(this.useColors?"%c ":" ")+"+"+o.exports.humanize(this.diff),!this.useColors)return;let S="color: "+this.color;_.splice(1,0,S,"color: inherit");let z=0,h=0;_[0].replace(/%[a-zA-Z%]/g,(K)=>{if(K==="%%")return;if(z++,K==="%c")h=z}),_.splice(h,0,S)}p_.log=console.debug||console.log||(()=>{});function K0(_){try{if(_)p_.storage.setItem("debug",_);else p_.storage.removeItem("debug")}catch(S){}}function Q0(){let _;try{_=p_.storage.getItem("debug")||p_.storage.getItem("DEBUG")}catch(S){}if(!_&&typeof process<"u"&&"env"in process)_=process.env.DEBUG;return _}function Z0(){try{return localStorage}catch(_){}}o.exports=J_()(p_);var{formatters:J0}=o.exports;J0.j=function(_){try{return JSON.stringify(_)}catch(S){return"[UnexpectedJSONParseError]: "+S.message}}});var l_=J((c_,s)=>{var q0=E("tty"),r=E("util");c_.init=U0;c_.log=E0;c_.formatArgs=N0;c_.save=D0;c_.load=A0;c_.useColors=w0;c_.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");c_.colors=[6,2,3,4,5,1];try{let _=(H0(),L0(M0));if(_&&(_.stderr||_).level>=2)c_.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(_){}c_.inspectOpts=Object.keys(process.env).filter((_)=>{return/^debug_/i.test(_)}).reduce((_,S)=>{let z=S.substring(6).toLowerCase().replace(/_([a-z])/g,(K,Q)=>{return Q.toUpperCase()}),h=process.env[S];if(/^(yes|on|true|enabled)$/i.test(h))h=!0;else if(/^(no|off|false|disabled)$/i.test(h))h=!1;else if(h==="null")h=null;else h=Number(h);return _[z]=h,_},{});function w0(){return"colors"in c_.inspectOpts?Boolean(c_.inspectOpts.colors):q0.isatty(process.stderr.fd)}function N0(_){let{namespace:S,useColors:z}=this;if(z){let h=this.color,K="\x1B[3"+(h<8?h:"8;5;"+h),Q=` ${K};1m${S} \x1B[0m`;_[0]=Q+_[0].split(`
|
|
2
|
-
`).join(`
|
|
3
|
-
`+Q),_.push(K+"m+"+s.exports.humanize(this.diff)+"\x1B[0m")}else _[0]=x0()+S+" "+_[0]}function x0(){if(c_.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function E0(..._){return process.stderr.write(r.formatWithOptions(c_.inspectOpts,..._)+`
|
|
4
|
-
`)}function D0(_){if(_)process.env.DEBUG=_;else delete process.env.DEBUG}function A0(){return process.env.DEBUG}function U0(_){_.inspectOpts={};let S=Object.keys(c_.inspectOpts);for(let z=0;z<S.length;z++)_.inspectOpts[S[z]]=c_.inspectOpts[S[z]]}s.exports=J_()(c_);var{formatters:d_}=s.exports;d_.o=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts).split(`
|
|
5
|
-
`).map((S)=>S.trim()).join(" ")};d_.O=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts)}});var t_=J((Oh,Y_)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)Y_.exports=i_();else Y_.exports=l_()});function y0(_){try{return new URL(_)}catch{return null}}function Rh(_){var S=(typeof _==="string"?y0(_):_)||{},z=S.protocol,h=S.host,K=S.port;if(typeof h!=="string"||!h||typeof z!=="string")return"";if(z=z.split(":",1)[0],h=h.replace(/:\d*$/,""),K=parseInt(K)||P0[z]||0,!k0(h,K))return"";var Q=W_(z+"_proxy")||W_("all_proxy");if(Q&&Q.indexOf("://")===-1)Q=z+"://"+Q;return Q}function k0(_,S){var z=W_("no_proxy").toLowerCase();if(!z)return!0;if(z==="*")return!1;return z.split(/[,\s]/).every(function(h){if(!h)return!0;var K=h.match(/^(.+):(\d+)$/),Q=K?K[1]:h,W=K?parseInt(K[2]):0;if(W&&W!==S)return!0;if(!/^[.*]/.test(Q))return _!==Q;if(Q.charAt(0)==="*")Q=Q.slice(1);return!_.endsWith(Q)})}function W_(_){return process.env[_.toLowerCase()]||process.env[_.toUpperCase()]||""}var P0;var v0=R0(()=>{P0={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443}});var r_=J((yh,o_)=>{var b;o_.exports=function(){if(!b){try{b=t_()("follow-redirects")}catch(_){}if(typeof b!=="function")b=function(){}}b.apply(null,arguments)}});var a0=J((kh,x_)=>{var m=E("url"),u=m.URL,g0=E("http"),b0=E("https"),X_=E("stream").Writable,L_=E("assert"),s_=r_();(function(){var S=typeof process<"u",z=typeof window<"u"&&typeof document<"u",h=C(Error.captureStackTrace);if(!S&&(z||!h))console.warn("The follow-redirects package should be excluded from browser builds.")})();var M_=!1;try{L_(new u(""))}catch(_){M_=_.code==="ERR_INVALID_URL"}var u0=["Authorization","Proxy-Authorization","Cookie"],m0=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],H_=["abort","aborted","connect","error","socket","timeout"],q_=Object.create(null);H_.forEach(function(_){q_[_]=function(S,z,h){this._redirectable.emit(_,S,z,h)}});var G_=p("ERR_INVALID_URL","Invalid URL",TypeError),V_=p("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),p0=p("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",V_),i0=p("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),d0=p("ERR_STREAM_WRITE_AFTER_END","write after end"),c0=X_.prototype.destroy||e_;function w(_,S){if(X_.call(this),this._sanitizeOptions(_),this._options=_,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],S)this.on("response",S);var z=this;this._onNativeResponse=function(h){try{z._processResponse(h)}catch(K){z.emit("error",K instanceof V_?K:new V_({cause:K}))}},this._headerFilter=new RegExp("^(?:"+u0.concat(_.sensitiveHeaders).map(s0).join("|")+")$","i"),this._performRequest()}w.prototype=Object.create(X_.prototype);w.prototype.abort=function(){N_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};w.prototype.destroy=function(_){return N_(this._currentRequest,_),c0.call(this,_),this};w.prototype.write=function(_,S,z){if(this._ending)throw new d0;if(!j(_)&&!o0(_))throw TypeError("data should be a string, Buffer or Uint8Array");if(C(S))z=S,S=null;if(_.length===0){if(z)z();return}if(this._requestBodyLength+_.length<=this._options.maxBodyLength)this._requestBodyLength+=_.length,this._requestBodyBuffers.push({data:_,encoding:S}),this._currentRequest.write(_,S,z);else this.emit("error",new i0),this.abort()};w.prototype.end=function(_,S,z){if(C(_))z=_,_=S=null;else if(C(S))z=S,S=null;if(!_)this._ended=this._ending=!0,this._currentRequest.end(null,null,z);else{var h=this,K=this._currentRequest;this.write(_,S,function(){h._ended=!0,K.end(null,null,z)}),this._ending=!0}};w.prototype.setHeader=function(_,S){this._options.headers[_]=S,this._currentRequest.setHeader(_,S)};w.prototype.removeHeader=function(_){delete this._options.headers[_],this._currentRequest.removeHeader(_)};w.prototype.setTimeout=function(_,S){var z=this;function h(W){W.setTimeout(_),W.removeListener("timeout",W.destroy),W.addListener("timeout",W.destroy)}function K(W){if(z._timeout)clearTimeout(z._timeout);z._timeout=setTimeout(function(){z.emit("timeout"),Q()},_),h(W)}function Q(){if(z._timeout)clearTimeout(z._timeout),z._timeout=null;if(z.removeListener("abort",Q),z.removeListener("error",Q),z.removeListener("response",Q),z.removeListener("close",Q),S)z.removeListener("timeout",S);if(!z.socket)z._currentRequest.removeListener("socket",K)}if(S)this.on("timeout",S);if(this.socket)K(this.socket);else this._currentRequest.once("socket",K);return this.on("socket",h),this.on("abort",Q),this.on("error",Q),this.on("response",Q),this.on("close",Q),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(_){w.prototype[_]=function(S,z){return this._currentRequest[_](S,z)}});["aborted","connection","socket"].forEach(function(_){Object.defineProperty(w.prototype,_,{get:function(){return this._currentRequest[_]}})});w.prototype._sanitizeOptions=function(_){if(!_.headers)_.headers={};if(!t0(_.sensitiveHeaders))_.sensitiveHeaders=[];if(_.host){if(!_.hostname)_.hostname=_.host;delete _.host}if(!_.pathname&&_.path){var S=_.path.indexOf("?");if(S<0)_.pathname=_.path;else _.pathname=_.path.substring(0,S),_.search=_.path.substring(S)}};w.prototype._performRequest=function(){var _=this._options.protocol,S=this._options.nativeProtocols[_];if(!S)throw TypeError("Unsupported protocol "+_);if(this._options.agents){var z=_.slice(0,-1);this._options.agent=this._options.agents[z]}var h=this._currentRequest=S.request(this._options,this._onNativeResponse);h._redirectable=this;for(var K of H_)h.on(K,q_[K]);if(this._currentUrl=/^\//.test(this._options.path)?m.format(this._options):this._options.path,this._isRedirect){var Q=0,W=this,V=this._requestBodyBuffers;(function M(F){if(h===W._currentRequest){if(F)W.emit("error",F);else if(Q<V.length){var Z=V[Q++];if(!h.finished)h.write(Z.data,Z.encoding,M)}else if(W._ended)h.end()}})()}};w.prototype._processResponse=function(_){var S=_.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:_.headers,statusCode:S});var z=_.headers.location;if(!z||this._options.followRedirects===!1||S<300||S>=400){_.responseUrl=this._currentUrl,_.redirects=this._redirects,this.emit("response",_),this._requestBodyBuffers=[];return}if(N_(this._currentRequest),_.destroy(),++this._redirectCount>this._options.maxRedirects)throw new p0;var h,K=this._options.beforeRedirect;if(K)h=Object.assign({Host:_.req.getHeader("host")},this._options.headers);var Q=this._options.method;if((S===301||S===302)&&this._options.method==="POST"||S===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],B_(/^content-/i,this._options.headers);var W=B_(/^host$/i,this._options.headers),V=w_(this._currentUrl),M=W||V.host,F=/^\w+:/.test(z)?this._currentUrl:m.format(Object.assign(V,{host:M})),Z=n0(z,F);if(s_("redirecting to",Z.href),this._isRedirect=!0,F_(Z,this._options),Z.protocol!==V.protocol&&Z.protocol!=="https:"||Z.host!==M&&!l0(Z.host,M))B_(this._headerFilter,this._options.headers);if(C(K)){var Y={headers:_.headers,statusCode:S},G={url:F,method:Q,headers:h};K(this._options,Y,G),this._sanitizeOptions(this._options)}this._performRequest()};function a_(_){var S={maxRedirects:21,maxBodyLength:10485760},z={};return Object.keys(_).forEach(function(h){var K=h+":",Q=z[K]=_[h],W=S[h]=Object.create(Q);function V(F,Z,Y){if(r0(F))F=F_(F);else if(j(F))F=F_(w_(F));else Y=Z,Z=_z(F),F={protocol:K};if(C(Z))Y=Z,Z=null;if(Z=Object.assign({maxRedirects:S.maxRedirects,maxBodyLength:S.maxBodyLength},F,Z),Z.nativeProtocols=z,!j(Z.host)&&!j(Z.hostname))Z.hostname="::1";return L_.equal(Z.protocol,K,"protocol mismatch"),s_("options",Z),new w(Z,Y)}function M(F,Z,Y){var G=W.request(F,Z,Y);return G.end(),G}Object.defineProperties(W,{request:{value:V,configurable:!0,enumerable:!0,writable:!0},get:{value:M,configurable:!0,enumerable:!0,writable:!0}})}),S}function e_(){}function w_(_){var S;if(M_)S=new u(_);else if(S=_z(m.parse(_)),!j(S.protocol))throw new G_({input:_});return S}function n0(_,S){return M_?new u(_,S):w_(m.resolve(S,_))}function _z(_){if(/^\[/.test(_.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(_.hostname))throw new G_({input:_.href||_});if(/^\[/.test(_.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(_.host))throw new G_({input:_.href||_});return _}function F_(_,S){var z=S||{};for(var h of m0)z[h]=_[h];if(z.hostname.startsWith("["))z.hostname=z.hostname.slice(1,-1);if(z.port!=="")z.port=Number(z.port);return z.path=z.search?z.pathname+z.search:z.pathname,z}function B_(_,S){var z;for(var h in S)if(_.test(h))z=S[h],delete S[h];return z===null||typeof z>"u"?void 0:String(z).trim()}function p(_,S,z){function h(K){if(C(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,K||{}),this.code=_,this.message=this.cause?S+": "+this.cause.message:S}return h.prototype=new(z||Error),Object.defineProperties(h.prototype,{constructor:{value:h,enumerable:!1},name:{value:"Error ["+_+"]",enumerable:!1}}),h}function N_(_,S){for(var z of H_)_.removeListener(z,q_[z]);_.on("error",e_),_.destroy(S)}function l0(_,S){L_(j(_)&&j(S));var z=_.length-S.length-1;return z>0&&_[z]==="."&&_.endsWith(S)}function t0(_){return _ instanceof Array}function j(_){return typeof _==="string"||_ instanceof String}function C(_){return typeof _==="function"}function o0(_){return typeof _==="object"&&"length"in _}function r0(_){return u&&_ instanceof u}function s0(_){return _.replace(/[\]\\/()*+?.$]/g,"\\$&")}x_.exports=a_({http:g0,https:b0});x_.exports.wrap=a_});var hz=J((vh,Sz)=>{var zz=E("stream").Stream,e0=E("util");Sz.exports=D;function D(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e0.inherits(D,zz);D.create=function(_,S){var z=new this;S=S||{};for(var h in S)z[h]=S[h];z.source=_;var K=_.emit;if(_.emit=function(){return z._handleEmit(arguments),K.apply(_,arguments)},_.on("error",function(){}),z.pauseStream)_.pause();return z};Object.defineProperty(D.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});D.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};D.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};D.prototype.pause=function(){this.source.pause()};D.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(_){this.emit.apply(this,_)}.bind(this)),this._bufferedEvents=[]};D.prototype.pipe=function(){var _=zz.prototype.pipe.apply(this,arguments);return this.resume(),_};D.prototype._handleEmit=function(_){if(this._released){this.emit.apply(this,_);return}if(_[0]==="data")this.dataSize+=_[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(_)};D.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(_))}});var z1=J((gh,Zz)=>{var _1=E("util"),Qz=E("stream").Stream,Kz=hz();Zz.exports=X;function X(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}_1.inherits(X,Qz);X.create=function(_){var S=new this;_=_||{};for(var z in _)S[z]=_[z];return S};X.isStreamLike=function(_){return typeof _!=="function"&&typeof _!=="string"&&typeof _!=="boolean"&&typeof _!=="number"&&!Buffer.isBuffer(_)};X.prototype.append=function(_){var S=X.isStreamLike(_);if(S){if(!(_ instanceof Kz)){var z=Kz.create(_,{maxDataSize:1/0,pauseStream:this.pauseStreams});_.on("data",this._checkDataSize.bind(this)),_=z}if(this._handleErrors(_),this.pauseStreams)_.pause()}return this._streams.push(_),this};X.prototype.pipe=function(_,S){return Qz.prototype.pipe.call(this,_,S),this.resume(),_};X.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};X.prototype._realGetNext=function(){var _=this._streams.shift();if(typeof _>"u"){this.end();return}if(typeof _!=="function"){this._pipeNext(_);return}var S=_;S(function(z){var h=X.isStreamLike(z);if(h)z.on("data",this._checkDataSize.bind(this)),this._handleErrors(z);this._pipeNext(z)}.bind(this))};X.prototype._pipeNext=function(_){this._currentStream=_;var S=X.isStreamLike(_);if(S){_.on("end",this._getNext.bind(this)),_.pipe(this,{end:!1});return}var z=_;this.write(z),this._getNext()};X.prototype._handleErrors=function(_){var S=this;_.on("error",function(z){S._emitError(z)})};X.prototype.write=function(_){this.emit("data",_)};X.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};X.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};X.prototype.end=function(){this._reset(),this.emit("end")};X.prototype.destroy=function(){this._reset(),this.emit("close")};X.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};X.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(_))};X.prototype._updateDataSize=function(){this.dataSize=0;var _=this;if(this._streams.forEach(function(S){if(!S.dataSize)return;_.dataSize+=S.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};X.prototype._emitError=function(_){this._reset(),this.emit("error",_)}});var Yz=J((bh,Jz)=>{Jz.exports=S1;function S1(_){var S=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(S)S(_);else setTimeout(_,0)}});var E_=J((uh,Bz)=>{var Wz=Yz();Bz.exports=h1;function h1(_){var S=!1;return Wz(function(){S=!0}),function(h,K){if(S)_(h,K);else Wz(function(){_(h,K)})}}});var D_=J((mh,Gz)=>{Gz.exports=K1;function K1(_){Object.keys(_.jobs).forEach(Q1.bind(_)),_.jobs={}}function Q1(_){if(typeof this.jobs[_]=="function")this.jobs[_]()}});var A_=J((ph,Fz)=>{var Vz=E_(),Z1=D_();Fz.exports=J1;function J1(_,S,z,h){var K=z.keyedList?z.keyedList[z.index]:z.index;z.jobs[K]=Y1(S,K,_[K],function(Q,W){if(!(K in z.jobs))return;if(delete z.jobs[K],Q)Z1(z);else z.results[K]=W;h(Q,z.results)})}function Y1(_,S,z,h){var K;if(_.length==2)K=_(z,Vz(h));else K=_(z,S,Vz(h));return K}});var U_=J((ih,Xz)=>{Xz.exports=W1;function W1(_,S){var z=!Array.isArray(_),h={index:0,keyedList:z||S?Object.keys(_):null,jobs:{},results:z?{}:[],size:z?Object.keys(_).length:_.length};if(S)h.keyedList.sort(z?S:function(K,Q){return S(_[K],_[Q])});return h}});var f_=J((dh,Lz)=>{var B1=D_(),G1=E_();Lz.exports=V1;function V1(_){if(!Object.keys(this.jobs).length)return;this.index=this.size,B1(this),G1(_)(null,this.results)}});var Hz=J((ch,Mz)=>{var F1=A_(),X1=U_(),L1=f_();Mz.exports=M1;function M1(_,S,z){var h=X1(_);while(h.index<(h.keyedList||_).length)F1(_,S,h,function(K,Q){if(K){z(K,Q);return}if(Object.keys(h.jobs).length===0){z(null,h.results);return}}),h.index++;return L1.bind(h,z)}});var j_=J((nh,a)=>{var qz=A_(),H1=U_(),q1=f_();a.exports=w1;a.exports.ascending=wz;a.exports.descending=N1;function w1(_,S,z,h){var K=H1(_,z);return qz(_,S,K,function Q(W,V){if(W){h(W,V);return}if(K.index++,K.index<(K.keyedList||_).length){qz(_,S,K,Q);return}h(null,K.results)}),q1.bind(K,h)}function wz(_,S){return _<S?-1:_>S?1:0}function N1(_,S){return-1*wz(_,S)}});var xz=J((lh,Nz)=>{var x1=j_();Nz.exports=E1;function E1(_,S,z){return x1(_,S,null,z)}});var D1=J((th,Ez)=>{Ez.exports={parallel:Hz(),serial:xz(),serialOrdered:j_()}});var C_=J((oh,Dz)=>{Dz.exports=Object});var Uz=J((rh,Az)=>{Az.exports=Error});var jz=J((sh,fz)=>{fz.exports=EvalError});var Iz=J((ah,Cz)=>{Cz.exports=RangeError});var $z=J((eh,Tz)=>{Tz.exports=ReferenceError});var Rz=J((_2,Oz)=>{Oz.exports=SyntaxError});var e=J((z2,Pz)=>{Pz.exports=TypeError});var kz=J((S2,yz)=>{yz.exports=URIError});var gz=J((h2,vz)=>{vz.exports=Math.abs});var uz=J((K2,bz)=>{bz.exports=Math.floor});var pz=J((Q2,mz)=>{mz.exports=Math.max});var dz=J((Z2,iz)=>{iz.exports=Math.min});var nz=J((J2,cz)=>{cz.exports=Math.pow});var tz=J((Y2,lz)=>{lz.exports=Math.round});var rz=J((W2,oz)=>{oz.exports=Number.isNaN||function(S){return S!==S}});var az=J((B2,sz)=>{var A1=rz();sz.exports=function(S){if(A1(S)||S===0)return S;return S<0?-1:1}});var _S=J((G2,ez)=>{ez.exports=Object.getOwnPropertyDescriptor});var I_=J((V2,zS)=>{var __=_S();if(__)try{__([],"length")}catch(_){__=null}zS.exports=__});var hS=J((F2,SS)=>{var z_=Object.defineProperty||!1;if(z_)try{z_({},"a",{value:1})}catch(_){z_=!1}SS.exports=z_});var T_=J((X2,KS)=>{KS.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var S={},z=Symbol("test"),h=Object(z);if(typeof z==="string")return!1;if(Object.prototype.toString.call(z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(h)!=="[object Symbol]")return!1;var K=42;S[z]=K;for(var Q in S)return!1;if(typeof Object.keys==="function"&&Object.keys(S).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(S).length!==0)return!1;var W=Object.getOwnPropertySymbols(S);if(W.length!==1||W[0]!==z)return!1;if(!Object.prototype.propertyIsEnumerable.call(S,z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var V=Object.getOwnPropertyDescriptor(S,z);if(V.value!==K||V.enumerable!==!0)return!1}return!0}});var JS=J((L2,ZS)=>{var QS=typeof Symbol<"u"&&Symbol,U1=T_();ZS.exports=function(){if(typeof QS!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof QS("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return U1()}});var $_=J((M2,YS)=>{YS.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var O_=J((H2,WS)=>{var f1=C_();WS.exports=f1.getPrototypeOf||null});var VS=J((q2,GS)=>{var j1="Function.prototype.bind called on incompatible ",C1=Object.prototype.toString,I1=Math.max,T1="[object Function]",BS=function(S,z){var h=[];for(var K=0;K<S.length;K+=1)h[K]=S[K];for(var Q=0;Q<z.length;Q+=1)h[Q+S.length]=z[Q];return h},$1=function(S,z){var h=[];for(var K=z||0,Q=0;K<S.length;K+=1,Q+=1)h[Q]=S[K];return h},O1=function(_,S){var z="";for(var h=0;h<_.length;h+=1)if(z+=_[h],h+1<_.length)z+=S;return z};GS.exports=function(S){var z=this;if(typeof z!=="function"||C1.apply(z)!==T1)throw TypeError(j1+z);var h=$1(arguments,1),K,Q=function(){if(this instanceof K){var Z=z.apply(this,BS(h,arguments));if(Object(Z)===Z)return Z;return this}return z.apply(S,BS(h,arguments))},W=I1(0,z.length-h.length),V=[];for(var M=0;M<W;M++)V[M]="$"+M;if(K=Function("binder","return function ("+O1(V,",")+"){ return binder.apply(this,arguments); }")(Q),z.prototype){var F=function(){};F.prototype=z.prototype,K.prototype=new F,F.prototype=null}return K}});var R=J((w2,FS)=>{var R1=VS();FS.exports=Function.prototype.bind||R1});var S_=J((N2,XS)=>{XS.exports=Function.prototype.call});var R_=J((x2,LS)=>{LS.exports=Function.prototype.apply});var HS=J((E2,MS)=>{MS.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var wS=J((D2,qS)=>{var P1=R(),y1=R_(),k1=S_(),v1=HS();qS.exports=v1||P1.call(k1,y1)});var xS=J((A2,NS)=>{var g1=R(),b1=e(),u1=S_(),m1=wS();NS.exports=function(S){if(S.length<1||typeof S[0]!=="function")throw new b1("a function is required");return m1(g1,u1,S)}});var jS=J((U2,fS)=>{var p1=xS(),ES=I_(),AS;try{AS=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!=="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var P_=!!AS&&ES&&ES(Object.prototype,"__proto__"),US=Object,DS=US.getPrototypeOf;fS.exports=P_&&typeof P_.get==="function"?p1([P_.get]):typeof DS==="function"?function(S){return DS(S==null?S:US(S))}:!1});var OS=J((f2,$S)=>{var CS=$_(),IS=O_(),TS=jS();$S.exports=CS?function(S){return CS(S)}:IS?function(S){if(!S||typeof S!=="object"&&typeof S!=="function")throw TypeError("getProto: not an object");return IS(S)}:TS?function(S){return TS(S)}:null});var PS=J((j2,RS)=>{var i1=Function.prototype.call,d1=Object.prototype.hasOwnProperty,c1=R();RS.exports=c1.call(i1,d1)});var uS=J((C2,bS)=>{var B,n1=C_(),l1=Uz(),t1=jz(),o1=Iz(),r1=$z(),v=Rz(),k=e(),s1=kz(),a1=gz(),e1=uz(),_h=pz(),zh=dz(),Sh=nz(),hh=tz(),Kh=az(),vS=Function,y_=function(_){try{return vS('"use strict"; return ('+_+").constructor;")()}catch(S){}},i=I_(),Qh=hS(),k_=function(){throw new k},Zh=i?function(){try{return arguments.callee,k_}catch(_){try{return i(arguments,"callee").get}catch(S){return k_}}}():k_,P=JS()(),q=OS(),Jh=O_(),Yh=$_(),gS=R_(),d=S_(),y={},Wh=typeof Uint8Array>"u"||!q?B:q(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":P&&q?q([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?B:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?B:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l1,"%eval%":eval,"%EvalError%":t1,"%Float16Array%":typeof Float16Array>"u"?B:Float16Array,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":vS,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&q?q(q([][Symbol.iterator]())):B,"%JSON%":typeof JSON==="object"?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!q?B:q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n1,"%Object.getOwnPropertyDescriptor%":i,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":o1,"%ReferenceError%":r1,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!q?B:q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&q?q(""[Symbol.iterator]()):B,"%Symbol%":P?Symbol:B,"%SyntaxError%":v,"%ThrowTypeError%":Zh,"%TypedArray%":Wh,"%TypeError%":k,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":s1,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet,"%Function.prototype.call%":d,"%Function.prototype.apply%":gS,"%Object.defineProperty%":Qh,"%Object.getPrototypeOf%":Jh,"%Math.abs%":a1,"%Math.floor%":e1,"%Math.max%":_h,"%Math.min%":zh,"%Math.pow%":Sh,"%Math.round%":hh,"%Math.sign%":Kh,"%Reflect.getPrototypeOf%":Yh};if(q)try{null.error}catch(_){v_=q(q(_)),I["%Error.prototype%"]=v_}var v_,Bh=function _(S){var z;if(S==="%AsyncFunction%")z=y_("async function () {}");else if(S==="%GeneratorFunction%")z=y_("function* () {}");else if(S==="%AsyncGeneratorFunction%")z=y_("async function* () {}");else if(S==="%AsyncGenerator%"){var h=_("%AsyncGeneratorFunction%");if(h)z=h.prototype}else if(S==="%AsyncIteratorPrototype%"){var K=_("%AsyncGenerator%");if(K&&q)z=q(K.prototype)}return I[S]=z,z},yS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=R(),h_=PS(),Gh=c.call(d,Array.prototype.concat),Vh=c.call(gS,Array.prototype.splice),kS=c.call(d,String.prototype.replace),K_=c.call(d,String.prototype.slice),Fh=c.call(d,RegExp.prototype.exec),Xh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Lh=/\\(\\)?/g,Mh=function(S){var z=K_(S,0,1),h=K_(S,-1);if(z==="%"&&h!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");else if(h==="%"&&z!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var K=[];return kS(S,Xh,function(Q,W,V,M){K[K.length]=V?kS(M,Lh,"$1"):W||Q}),K},Hh=function(S,z){var h=S,K;if(h_(yS,h))K=yS[h],h="%"+K[0]+"%";if(h_(I,h)){var Q=I[h];if(Q===y)Q=Bh(h);if(typeof Q>"u"&&!z)throw new k("intrinsic "+S+" exists, but is not available. Please file an issue!");return{alias:K,name:h,value:Q}}throw new v("intrinsic "+S+" does not exist!")};bS.exports=function(S,z){if(typeof S!=="string"||S.length===0)throw new k("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!=="boolean")throw new k('"allowMissing" argument must be a boolean');if(Fh(/^%?[^%]*%?$/,S)===null)throw new v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var h=Mh(S),K=h.length>0?h[0]:"",Q=Hh("%"+K+"%",z),W=Q.name,V=Q.value,M=!1,F=Q.alias;if(F)K=F[0],Vh(h,Gh([0,1],F));for(var Z=1,Y=!0;Z<h.length;Z+=1){var G=h[Z],L=K_(G,0,1),x=K_(G,-1);if((L==='"'||L==="'"||L==="`"||(x==='"'||x==="'"||x==="`"))&&L!==x)throw new v("property names with quotes must have matching quotes");if(G==="constructor"||!Y)M=!0;if(K+="."+G,W="%"+K+"%",h_(I,W))V=I[W];else if(V!=null){if(!(G in V)){if(!z)throw new k("base intrinsic for "+S+" exists, but the property is not available.");return}if(i&&Z+1>=h.length){var H=i(V,G);if(Y=!!H,Y&&"get"in H&&!("originalValue"in H.get))V=H.get;else V=V[G]}else Y=h_(V,G),V=V[G];if(Y&&!M)I[W]=V}}return V}});var pS=J((I2,mS)=>{var qh=T_();mS.exports=function(){return qh()&&!!Symbol.toStringTag}});var dS=J((T2,iS)=>{var wh=Function.prototype.call,Nh=Object.prototype.hasOwnProperty,xh=R();iS.exports=xh.call(wh,Nh)});var fh=J(($2,nS)=>{var Eh=uS(),cS=Eh("%Object.defineProperty%",!0),Dh=pS()(),Ah=dS(),Uh=e(),Q_=Dh?Symbol.toStringTag:null;nS.exports=function(S,z){var h=arguments.length>2&&!!arguments[2]&&arguments[2].force,K=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof h<"u"&&typeof h!=="boolean"||typeof K<"u"&&typeof K!=="boolean")throw new Uh("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(Q_&&(h||!Ah(S,Q_)))if(cS)cS(S,Q_,{configurable:!K,enumerable:!1,value:z,writable:!1});else S[Q_]=z}});
|
|
6
|
-
export{z1 as s_,D1 as t_,R as u_,fh as v_,Rh as w_,v0 as x_,t_ as y_,a0 as z_};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Xra as g}from"./cli-1.1.35-c05841mj.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
|
|
2
|
-
export{Bq as PW,d as QW,$J as RW,DJ as SW,GJ as TW};
|