@claudiolabs/claudio 0.1.9 → 0.1.11
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/bin/claudio +50 -1
- package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +1 -0
- package/dist/chunks/App-0.1.11-z60c27dk.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +1 -0
- package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +3 -0
- package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +1 -0
- package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +1 -0
- package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +1 -0
- package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +1 -0
- package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +1 -0
- package/dist/chunks/agents-0.1.11-26pbss9x.mjs +3 -0
- package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +111 -0
- package/dist/chunks/api-0.1.11-5ygenb1h.mjs +1 -0
- package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +1 -0
- package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +1 -0
- package/dist/chunks/auth-0.1.11-2363mst5.mjs +1 -0
- package/dist/chunks/auth-0.1.11-p47wajra.mjs +1 -0
- package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +48 -0
- package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +1 -0
- package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +4 -0
- package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +1 -0
- package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +1 -0
- package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +3 -0
- package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +1 -0
- package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +21 -0
- package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +4 -0
- package/dist/chunks/caches-0.1.11-vewfnrya.mjs +1 -0
- package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +1 -0
- package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +2 -0
- package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +1 -0
- package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +1 -0
- package/dist/chunks/clear-0.1.11-c93nbam7.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +1 -0
- package/dist/chunks/cli-0.1.11-036me3yr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-05g86mrk.mjs +2 -0
- package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0n77qn68.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0tge574q.mjs +2 -0
- package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +8 -0
- package/dist/chunks/cli-0.1.11-16086k9e.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1bryv90w.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +833 -0
- package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +3 -0
- package/dist/chunks/cli-0.1.11-1xr9et85.mjs +2 -0
- package/dist/chunks/cli-0.1.11-21epc92q.mjs +2 -0
- package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +2 -0
- package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +2 -0
- package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +45 -0
- package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +2 -0
- package/dist/chunks/cli-0.1.11-3p2f194m.mjs +2 -0
- package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +2 -0
- package/dist/chunks/cli-0.1.11-424zgj5k.mjs +4 -0
- package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +3 -0
- package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-4px8nt5r.mjs +2 -0
- package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-50naxqgt.mjs +2 -0
- package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +3 -0
- package/dist/chunks/cli-0.1.11-56p41bk3.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5e45zda5.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-6r97rwda.mjs +2 -0
- package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +3 -0
- package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-70f778wy.mjs +2 -0
- package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +50 -0
- package/dist/chunks/cli-0.1.11-7238rfy8.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +3 -0
- package/dist/chunks/cli-0.1.11-7tybqg56.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7vz357wm.mjs +58 -0
- package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +2 -0
- package/dist/chunks/cli-0.1.11-84j34n0s.mjs +2 -0
- package/dist/chunks/cli-0.1.11-852v06g0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +2 -0
- package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-96y2d09c.mjs +2 -0
- package/dist/chunks/cli-0.1.11-98zcwng9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-anegs86e.mjs +7 -0
- package/dist/chunks/cli-0.1.11-anvzywg4.mjs +5 -0
- package/dist/chunks/cli-0.1.11-at3c85af.mjs +2 -0
- package/dist/chunks/cli-0.1.11-b0jasw23.mjs +9 -0
- package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-be28ty4m.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +4 -0
- package/dist/chunks/cli-0.1.11-btayz9zj.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +252 -0
- package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bwpemkht.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cezypfbt.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cf049e4w.mjs +134 -0
- package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +10 -0
- package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +4 -0
- package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +12 -0
- package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +11 -0
- package/dist/chunks/cli-0.1.11-d3exw047.mjs +2 -0
- package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +2 -0
- package/dist/chunks/cli-0.1.11-da6szcvw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +24 -0
- package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +2 -0
- package/dist/chunks/cli-0.1.11-e5ecf583.mjs +2 -0
- package/dist/chunks/cli-0.1.11-e66dak4h.mjs +4 -0
- package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +16 -0
- package/dist/chunks/cli-0.1.11-egck69w4.mjs +2 -0
- package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +18 -0
- package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +2 -0
- package/dist/chunks/cli-0.1.11-emw2wfff.mjs +3 -0
- package/dist/chunks/cli-0.1.11-fag2wtke.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fstfs72j.mjs +2 -0
- package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fveg0t77.mjs +22 -0
- package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +5 -0
- package/dist/chunks/cli-0.1.11-g2202evh.mjs +2 -0
- package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +2 -0
- package/dist/chunks/cli-0.1.11-gc069ne7.mjs +2 -0
- package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +2 -0
- package/dist/chunks/cli-0.1.11-ggrme14p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +12 -0
- package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h762f6hr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +31 -0
- package/dist/chunks/cli-0.1.11-h7phna9g.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +4 -0
- package/dist/chunks/cli-0.1.11-hrn726gf.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hzezqkew.mjs +2 -0
- package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +15 -0
- package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +11 -0
- package/dist/chunks/cli-0.1.11-jne21ka1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +3 -0
- package/dist/chunks/cli-0.1.11-jye250b3.mjs +2 -0
- package/dist/chunks/cli-0.1.11-kghg51gb.mjs +6 -0
- package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +7 -0
- package/dist/chunks/cli-0.1.11-kndj4a86.mjs +2 -0
- package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +24 -0
- package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +4 -0
- package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-mr356stf.mjs +2 -0
- package/dist/chunks/cli-0.1.11-mstxxz33.mjs +2 -0
- package/dist/chunks/cli-0.1.11-n23d2wej.mjs +2 -0
- package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-na9tsy21.mjs +2 -0
- package/dist/chunks/cli-0.1.11-nesh7dep.mjs +2 -0
- package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +2 -0
- package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +4 -0
- package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +4 -0
- package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-p4eeg584.mjs +5 -0
- package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +3 -0
- package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +2 -0
- package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +16 -0
- package/dist/chunks/cli-0.1.11-qheffjft.mjs +2 -0
- package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +15 -0
- package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +2 -0
- package/dist/chunks/cli-0.1.11-r990p54m.mjs +100 -0
- package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +2 -0
- package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +6 -0
- package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +5036 -0
- package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +132 -0
- package/dist/chunks/cli-0.1.11-t07hba0z.mjs +2 -0
- package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +2 -0
- package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +2 -0
- package/dist/chunks/cli-0.1.11-trcf78n1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +2 -0
- package/dist/chunks/cli-0.1.11-tyh8gms9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +12 -0
- package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +2 -0
- package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +192 -0
- package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +2 -0
- package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +2 -0
- package/dist/chunks/cli-0.1.11-vch8cn95.mjs +2 -0
- package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +44 -0
- package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +2 -0
- package/dist/chunks/cli-0.1.11-w3fp9par.mjs +39 -0
- package/dist/chunks/cli-0.1.11-w3trj52p.mjs +21 -0
- package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +2 -0
- package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +34 -0
- package/dist/chunks/cli-0.1.11-weav8142.mjs +2 -0
- package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +2 -0
- package/dist/chunks/cli-0.1.11-x37jysc0.mjs +14 -0
- package/dist/chunks/cli-0.1.11-x5nvafch.mjs +2 -0
- package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +2 -0
- package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +2 -0
- package/dist/chunks/cli-0.1.11-y909w8bb.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +3 -0
- package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +2 -0
- package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +13 -0
- package/dist/chunks/cli-0.1.11-zdyddegg.mjs +2 -0
- package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +2 -0
- package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +2 -0
- package/dist/chunks/client-0.1.11-h38k7vkj.mjs +1 -0
- package/dist/chunks/color-0.1.11-b7favzc8.mjs +1 -0
- package/dist/chunks/compact-0.1.11-damm234b.mjs +3 -0
- package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +1 -0
- package/dist/chunks/config-0.1.11-cqy7fnab.mjs +1 -0
- package/dist/chunks/context-0.1.11-e2s56h3b.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +1 -0
- package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +1 -0
- package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +9 -0
- package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +1 -0
- package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +1 -0
- package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +1 -0
- package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +1 -0
- package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +1 -0
- package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +1 -0
- package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +1 -0
- package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +1 -0
- package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +1 -0
- package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +1 -0
- package/dist/chunks/export-0.1.11-wv5bd05w.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +1 -0
- package/dist/chunks/fast-0.1.11-a665n9kz.mjs +1 -0
- package/dist/chunks/feedback-0.1.11-q77qty87.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +1 -0
- package/dist/chunks/git-0.1.11-g77ppr52.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +1 -0
- package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +1 -0
- package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +6 -0
- package/dist/chunks/help-0.1.11-byp88gen.mjs +1 -0
- package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +3 -0
- package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +1 -0
- package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +79 -0
- package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +1 -0
- package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +1 -0
- package/dist/chunks/index-0.1.11-82wnmfq3.mjs +9 -0
- package/dist/chunks/index-0.1.11-8gtaa17w.mjs +1 -0
- package/dist/chunks/index-0.1.11-ajdpkanw.mjs +1 -0
- package/dist/chunks/index-0.1.11-b2q967nq.mjs +30 -0
- package/dist/chunks/index-0.1.11-bhrstsgc.mjs +1 -0
- package/dist/chunks/index-0.1.11-d6qbzwah.mjs +1 -0
- package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +1 -0
- package/dist/chunks/index-0.1.11-e52dzxjz.mjs +5 -0
- package/dist/chunks/index-0.1.11-gb3saayk.mjs +2 -0
- package/dist/chunks/index-0.1.11-kksxmkwe.mjs +1 -0
- package/dist/chunks/index-0.1.11-n564rmwy.mjs +1 -0
- package/dist/chunks/index-0.1.11-n90nxjqp.mjs +1 -0
- package/dist/chunks/index-0.1.11-p0j3w83p.mjs +1 -0
- package/dist/chunks/index-0.1.11-pmkgntay.mjs +7 -0
- package/dist/chunks/index-0.1.11-qspcw49p.mjs +1 -0
- package/dist/chunks/index-0.1.11-r6p77pf7.mjs +1 -0
- package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +9 -0
- package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +1 -0
- package/dist/chunks/index-0.1.11-wze82293.mjs +1 -0
- package/dist/chunks/index-0.1.11-xs4mng75.mjs +1 -0
- package/dist/chunks/index-0.1.11-yej3awws.mjs +2 -0
- package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +1 -0
- package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +1 -0
- package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +870 -0
- package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +1 -0
- package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +149 -0
- package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +1 -0
- package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +2 -0
- package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +1 -0
- package/dist/chunks/logout-0.1.11-48ynp610.mjs +1 -0
- package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +1 -0
- package/dist/chunks/main-0.1.11-6sh6xycv.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +1 -0
- package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +17 -0
- package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +4 -0
- package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +1 -0
- package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +1 -0
- package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +1 -0
- package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +3 -0
- package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +2 -0
- package/dist/chunks/model-0.1.11-4v166f98.mjs +2 -0
- package/dist/chunks/model-0.1.11-qekc9c4w.mjs +1 -0
- package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +1 -0
- package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +14 -0
- package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +1 -0
- package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +1 -0
- package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +1 -0
- package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +1 -0
- package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +3 -0
- package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +1 -0
- package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +1 -0
- package/dist/chunks/plugin-0.1.11-menj210d.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +1 -0
- package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +9 -0
- package/dist/chunks/print-0.1.11-y9vz77h9.mjs +57 -0
- package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +1 -0
- package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +1 -0
- package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +9 -0
- package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +1 -0
- package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +1 -0
- package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +1 -0
- package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +1 -0
- package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +1 -0
- package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +2 -0
- package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +1 -0
- package/dist/chunks/rename-0.1.11-ke9btph2.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +1 -0
- package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +2 -0
- package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +1 -0
- package/dist/chunks/session-0.1.11-2z972raf.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +1 -0
- package/dist/chunks/setup-0.1.11-epmpszzf.mjs +5 -0
- package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +1 -0
- package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +1 -0
- package/dist/chunks/state-0.1.11-3fjxywyv.mjs +1 -0
- package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +6 -0
- package/dist/chunks/status-0.1.11-drvp15n8.mjs +1 -0
- package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +1 -0
- package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +1 -0
- package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +1 -0
- package/dist/chunks/theme-0.1.11-p447kczd.mjs +1 -0
- package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +1 -0
- package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +4 -0
- package/dist/chunks/update-0.1.11-p33kxpg4.mjs +94 -0
- package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +14 -0
- package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +1 -0
- package/dist/chunks/util-0.1.11-sjkxad5k.mjs +1 -0
- package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +1 -0
- package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +1 -0
- package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +1 -0
- package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +132 -0
- package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +1 -0
- package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +7 -0
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +6 -6
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.9-e26h2f7z.mjs +0 -1
- package/dist/chunks/App-0.1.9-7ttp2eny.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.9-pz0jzna9.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.9-r5wg1yfv.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.9-nbnjg2tp.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.9-wjg6qps3.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.9-h46b49p8.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.9-b8em430v.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.9-zb1h6dvy.mjs +0 -1
- package/dist/chunks/DiffDialog-0.1.9-09s28v8e.mjs +0 -3
- package/dist/chunks/Doctor-0.1.9-9ak6wqtr.mjs +0 -1
- package/dist/chunks/Grove-0.1.9-rbrf13rd.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.9-8dgw249h.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.9-5cp1e7x7.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.9-6mv9wgt8.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.9-d5kkd4yd.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.9-56807wps.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.9-g5nqdh1r.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.9-kj6t8003.mjs +0 -1
- package/dist/chunks/REPL-0.1.9-3h2fc9z7.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.9-k4gv6dx4.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.9-v3h7drc0.mjs +0 -1
- package/dist/chunks/StartupScreen-0.1.9-jgk08xvj.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.9-pnqkmgap.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.9-ddtmy43v.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.9-vhnyx04e.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.9-nb2ks1np.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.9-n40whaty.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.9-dm2wppgy.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.9-kbwwatt3.mjs +0 -1
- package/dist/chunks/add-dir-0.1.9-ed53zp9j.mjs +0 -1
- package/dist/chunks/agents-0.1.9-4gwb1qtc.mjs +0 -111
- package/dist/chunks/agents-0.1.9-yr85gwa8.mjs +0 -3
- package/dist/chunks/api-0.1.9-kqwfw6wj.mjs +0 -1
- package/dist/chunks/asciicast-0.1.9-ekvsjx76.mjs +0 -1
- package/dist/chunks/assistant-0.1.9-h4rgf0xq.mjs +0 -1
- package/dist/chunks/auth-0.1.9-1c12xrxs.mjs +0 -1
- package/dist/chunks/auth-0.1.9-rqfx3vqa.mjs +0 -1
- package/dist/chunks/autoMode-0.1.9-s92asycq.mjs +0 -48
- package/dist/chunks/backgroundHousekeeping-0.1.9-jjbqckpm.mjs +0 -1
- package/dist/chunks/branch-0.1.9-m7j2aerq.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.9-rv3aq23v.mjs +0 -1
- package/dist/chunks/btw-0.1.9-g55x31zp.mjs +0 -1
- package/dist/chunks/buddy-0.1.9-fqmk7e4y.mjs +0 -3
- package/dist/chunks/cacache-0.1.9-dr1vt8s1.mjs +0 -1
- package/dist/chunks/cache-probe-0.1.9-ydmjrch4.mjs +0 -21
- package/dist/chunks/cacheStats-0.1.9-pkarrnw9.mjs +0 -4
- package/dist/chunks/caches-0.1.9-d6cndrra.mjs +0 -1
- package/dist/chunks/chrome-0.1.9-bvwzw157.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.9-8a20nscz.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.9-ndknjd3g.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.9-7xprztbk.mjs +0 -1
- package/dist/chunks/claudemd-0.1.9-dqyhgy2v.mjs +0 -1
- package/dist/chunks/clear-0.1.9-tb8x7676.mjs +0 -1
- package/dist/chunks/cli-0.1.9-001s9kxw.mjs +0 -24
- package/dist/chunks/cli-0.1.9-03e1d9dw.mjs +0 -39
- package/dist/chunks/cli-0.1.9-04ez73f7.mjs +0 -5084
- package/dist/chunks/cli-0.1.9-0dtdhejj.mjs +0 -31
- package/dist/chunks/cli-0.1.9-0e6nsh68.mjs +0 -3
- package/dist/chunks/cli-0.1.9-0j8n671q.mjs +0 -2
- package/dist/chunks/cli-0.1.9-15y0qt1z.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1c3qpbdh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1f5gmndb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1ghbcafn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1kaj4v6k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1xmdqqzd.mjs +0 -3
- package/dist/chunks/cli-0.1.9-263y2rkc.mjs +0 -3
- package/dist/chunks/cli-0.1.9-2dd7h0hn.mjs +0 -15
- package/dist/chunks/cli-0.1.9-2prq7peb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2tc83tsz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2thp2z73.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2v0y90vz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2v4s8yf9.mjs +0 -7
- package/dist/chunks/cli-0.1.9-2x18rhq6.mjs +0 -6
- package/dist/chunks/cli-0.1.9-38zb09vp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3g3er8j1.mjs +0 -15
- package/dist/chunks/cli-0.1.9-3h4serkj.mjs +0 -58
- package/dist/chunks/cli-0.1.9-3rhe87kw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3vfq7jja.mjs +0 -34
- package/dist/chunks/cli-0.1.9-3wmbdmrp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3y36913h.mjs +0 -10
- package/dist/chunks/cli-0.1.9-3yscrq86.mjs +0 -833
- package/dist/chunks/cli-0.1.9-45ggwszg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4a9qwf11.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4bg6jxs8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4kk9fmg2.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4n4dqg6k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4sqfjw8t.mjs +0 -16
- package/dist/chunks/cli-0.1.9-4vmbyj20.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4vt296k0.mjs +0 -18
- package/dist/chunks/cli-0.1.9-5ryrgdzg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5vgk7wf7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5ygmjsje.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5ypg3t0t.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5zhhyq4q.mjs +0 -2
- package/dist/chunks/cli-0.1.9-61ywjha3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-68vwvmkw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6c7qrr4p.mjs +0 -16
- package/dist/chunks/cli-0.1.9-6gk46nr9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6j5gxw5r.mjs +0 -5
- package/dist/chunks/cli-0.1.9-6ne451jc.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6p67vwxh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6pcahrj9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7047sjwh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7bakxr5q.mjs +0 -3
- package/dist/chunks/cli-0.1.9-7bthhhpf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7fp0smtp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7ftnjyps.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7h5my4fb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7kcaaxvq.mjs +0 -12
- package/dist/chunks/cli-0.1.9-7q9461ka.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7qhatm3v.mjs +0 -2
- package/dist/chunks/cli-0.1.9-86kws2c7.mjs +0 -192
- package/dist/chunks/cli-0.1.9-8egwvs85.mjs +0 -2
- package/dist/chunks/cli-0.1.9-90h21nv5.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9d4sp76k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9hc8gyb7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9nhh15bp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9vab0er5.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9vn4ys3c.mjs +0 -22
- package/dist/chunks/cli-0.1.9-a1gtww1d.mjs +0 -2
- package/dist/chunks/cli-0.1.9-a7zy4vqn.mjs +0 -134
- package/dist/chunks/cli-0.1.9-a95nqhbd.mjs +0 -4
- package/dist/chunks/cli-0.1.9-ag6a8kqj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ak0b9xfs.mjs +0 -100
- package/dist/chunks/cli-0.1.9-aqd7czgr.mjs +0 -3
- package/dist/chunks/cli-0.1.9-axg1kbe4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-aype6q4y.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b3031hmy.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b6zp931m.mjs +0 -11
- package/dist/chunks/cli-0.1.9-b73n8vzm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b9kbpf6n.mjs +0 -2
- package/dist/chunks/cli-0.1.9-bg9xvmav.mjs +0 -2
- package/dist/chunks/cli-0.1.9-bn43vpc0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-br9jzagb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-c2fjeq7k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-c38eyh49.mjs +0 -2
- package/dist/chunks/cli-0.1.9-cfzmq9k6.mjs +0 -2
- package/dist/chunks/cli-0.1.9-cvnkghgh.mjs +0 -3
- package/dist/chunks/cli-0.1.9-dmcbsmj4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dsx18zt1.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dt31fs16.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dzz1me99.mjs +0 -2
- package/dist/chunks/cli-0.1.9-e7ewtpew.mjs +0 -2
- package/dist/chunks/cli-0.1.9-e96x59hw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ehhkqhbv.mjs +0 -2
- package/dist/chunks/cli-0.1.9-eqxc9zxm.mjs +0 -12
- package/dist/chunks/cli-0.1.9-ewq9k9mr.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ewwxqbvt.mjs +0 -2
- package/dist/chunks/cli-0.1.9-f4v4pahc.mjs +0 -4
- package/dist/chunks/cli-0.1.9-f643fvt4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-f8ga1n8r.mjs +0 -6
- package/dist/chunks/cli-0.1.9-fcf313e7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-fh5enjw8.mjs +0 -5
- package/dist/chunks/cli-0.1.9-fm2yycpj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-fwqwgjwb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gandxpzf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gasw7sr9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gdymcvby.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gpd1bhnf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gsc0t4gy.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gvrtqwe3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-h8xne7z8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-hjcv9wr7.mjs +0 -50
- package/dist/chunks/cli-0.1.9-hva25eg3.mjs +0 -4
- package/dist/chunks/cli-0.1.9-hy4peemf.mjs +0 -3
- package/dist/chunks/cli-0.1.9-hy9s1fnj.mjs +0 -14
- package/dist/chunks/cli-0.1.9-hz8rssz0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-j5zz6gbq.mjs +0 -4
- package/dist/chunks/cli-0.1.9-jb6af8n8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jchn9hyn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jdpz959j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jv2z42gk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-kbrf27z8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-krv35v3v.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ksv4ntar.mjs +0 -2
- package/dist/chunks/cli-0.1.9-kt9xw7bn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-m7shtst2.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mfyd9h50.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mj88t3jf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mjkhzp2c.mjs +0 -3
- package/dist/chunks/cli-0.1.9-mkfnnvz7.mjs +0 -4
- package/dist/chunks/cli-0.1.9-mme2x7fq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mnegaqr7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mx4ekht0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mz3mbxwb.mjs +0 -12
- package/dist/chunks/cli-0.1.9-n445yk6z.mjs +0 -2
- package/dist/chunks/cli-0.1.9-n54k4qt3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-n8tc0gpm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-nsgdz4rd.mjs +0 -2
- package/dist/chunks/cli-0.1.9-nw3rpxdd.mjs +0 -252
- package/dist/chunks/cli-0.1.9-nz8phj17.mjs +0 -2
- package/dist/chunks/cli-0.1.9-p1kdk178.mjs +0 -2
- package/dist/chunks/cli-0.1.9-p58rgwkr.mjs +0 -4
- package/dist/chunks/cli-0.1.9-p5scdysw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-pdbfg3vh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-pgwsmwz1.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ph3w8t78.mjs +0 -2
- package/dist/chunks/cli-0.1.9-psx0e36a.mjs +0 -2
- package/dist/chunks/cli-0.1.9-q3e2h88a.mjs +0 -2
- package/dist/chunks/cli-0.1.9-q7hve442.mjs +0 -2
- package/dist/chunks/cli-0.1.9-qqjp7mpj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-qydwhycw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-r3ha1332.mjs +0 -7
- package/dist/chunks/cli-0.1.9-r7rcv2wm.mjs +0 -8
- package/dist/chunks/cli-0.1.9-rd0jctgk.mjs +0 -21
- package/dist/chunks/cli-0.1.9-rerthk1j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rft22htm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rp31nc37.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rw09xkh7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s0w3y07w.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s45y2ndk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s6bk4fbn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-scpj6tps.mjs +0 -3
- package/dist/chunks/cli-0.1.9-sqja68fn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-sv3awdsv.mjs +0 -2
- package/dist/chunks/cli-0.1.9-t24n24mw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-teaymnrz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-tq9z3reg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-v32f99vc.mjs +0 -11
- package/dist/chunks/cli-0.1.9-v6x9pr1t.mjs +0 -2
- package/dist/chunks/cli-0.1.9-v7ajk1nz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-vdw09f8y.mjs +0 -44
- package/dist/chunks/cli-0.1.9-vm7cggd9.mjs +0 -45
- package/dist/chunks/cli-0.1.9-vp3dtntc.mjs +0 -2
- package/dist/chunks/cli-0.1.9-vwv31syx.mjs +0 -2
- package/dist/chunks/cli-0.1.9-w692zn5c.mjs +0 -2
- package/dist/chunks/cli-0.1.9-wn39cz20.mjs +0 -2
- package/dist/chunks/cli-0.1.9-wpvrabrk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-x0xxr5dh.mjs +0 -13
- package/dist/chunks/cli-0.1.9-x13p19zq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-x257hapj.mjs +0 -9
- package/dist/chunks/cli-0.1.9-x7qrvj9f.mjs +0 -2
- package/dist/chunks/cli-0.1.9-xvn37fkk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-xvvq2rcd.mjs +0 -4
- package/dist/chunks/cli-0.1.9-xws3mhz4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-y8n4w5nn.mjs +0 -5
- package/dist/chunks/cli-0.1.9-ycvkz1gf.mjs +0 -4
- package/dist/chunks/cli-0.1.9-yddanjg2.mjs +0 -132
- package/dist/chunks/cli-0.1.9-ymsq31jx.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ywf6743k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-z5mm21jw.mjs +0 -24
- package/dist/chunks/cli-0.1.9-zae1me3j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zck4s4sh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zehsa1kq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zqyxbf50.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zstpbdrf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zzp8m503.mjs +0 -3
- package/dist/chunks/cliArgs-0.1.9-kckasx4h.mjs +0 -1
- package/dist/chunks/client-0.1.9-ys52xz2v.mjs +0 -1
- package/dist/chunks/color-0.1.9-nmnytefc.mjs +0 -1
- package/dist/chunks/compact-0.1.9-qw915ckh.mjs +0 -3
- package/dist/chunks/config-0.1.9-1m69edch.mjs +0 -1
- package/dist/chunks/config-0.1.9-6knxc8a2.mjs +0 -1
- package/dist/chunks/context-0.1.9-47a3xmqq.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.9-6s9bm74v.mjs +0 -1
- package/dist/chunks/conversation-0.1.9-vebter8y.mjs +0 -1
- package/dist/chunks/copy-0.1.9-ae06p3e2.mjs +0 -9
- package/dist/chunks/cost-0.1.9-x5zee0z9.mjs +0 -1
- package/dist/chunks/createSession-0.1.9-djn7xdsv.mjs +0 -1
- package/dist/chunks/desktop-0.1.9-xaecrssd.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.9-qqzcce45.mjs +0 -1
- package/dist/chunks/detection-0.1.9-ry1q2ym2.mjs +0 -1
- package/dist/chunks/devtools-0.1.9-kzs9wq2w.mjs +0 -1
- package/dist/chunks/diff-0.1.9-af5n5bzh.mjs +0 -1
- package/dist/chunks/doctor-0.1.9-9f6fz2h0.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.9-h7yskwvf.mjs +0 -1
- package/dist/chunks/effort-0.1.9-spz96zzr.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.9-0va5g53h.mjs +0 -1
- package/dist/chunks/environments-0.1.9-2hka6k26.mjs +0 -1
- package/dist/chunks/exit-0.1.9-rvk04qa2.mjs +0 -1
- package/dist/chunks/export-0.1.9-c3pqjktx.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.9-92jjke47.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.9-27zjp5q7.mjs +0 -1
- package/dist/chunks/fast-0.1.9-60sqqvgd.mjs +0 -1
- package/dist/chunks/feedback-0.1.9-anraj53n.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.9-y55fqx1x.mjs +0 -1
- package/dist/chunks/fullscreen-0.1.9-xy9bnpe3.mjs +0 -1
- package/dist/chunks/git-0.1.9-09pdaxwd.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.9-bzx6c3bd.mjs +0 -1
- package/dist/chunks/growthbook-0.1.9-rqhcy76z.mjs +0 -1
- package/dist/chunks/heapdump-0.1.9-qrfce4dp.mjs +0 -6
- package/dist/chunks/help-0.1.9-sfn2ed9n.mjs +0 -1
- package/dist/chunks/hookChains-0.1.9-5t2mrtyc.mjs +0 -3
- package/dist/chunks/hooks-0.1.9-4cebdztn.mjs +0 -1
- package/dist/chunks/hooks-0.1.9-y0vtx23k.mjs +0 -79
- package/dist/chunks/ide-0.1.9-yxzacgd5.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.1.9-fwc1ge47.mjs +0 -1
- package/dist/chunks/index-0.1.9-2gv7a7tq.mjs +0 -2
- package/dist/chunks/index-0.1.9-31vnb803.mjs +0 -1
- package/dist/chunks/index-0.1.9-68aa3hmw.mjs +0 -1
- package/dist/chunks/index-0.1.9-7ktx5gez.mjs +0 -1
- package/dist/chunks/index-0.1.9-8feamw1f.mjs +0 -1
- package/dist/chunks/index-0.1.9-8hzceckr.mjs +0 -5
- package/dist/chunks/index-0.1.9-96thm65j.mjs +0 -1
- package/dist/chunks/index-0.1.9-c7sexk3f.mjs +0 -2
- package/dist/chunks/index-0.1.9-fvtq6thw.mjs +0 -1
- package/dist/chunks/index-0.1.9-g2ngvhaf.mjs +0 -1
- package/dist/chunks/index-0.1.9-gtn0qcv2.mjs +0 -7
- package/dist/chunks/index-0.1.9-h548q4km.mjs +0 -1
- package/dist/chunks/index-0.1.9-j6ac60hq.mjs +0 -1
- package/dist/chunks/index-0.1.9-jxdymwv4.mjs +0 -1
- package/dist/chunks/index-0.1.9-kgdkzpmr.mjs +0 -1
- package/dist/chunks/index-0.1.9-mt2y3wyw.mjs +0 -9
- package/dist/chunks/index-0.1.9-smem7egb.mjs +0 -30
- package/dist/chunks/index-0.1.9-snmdvw2f.mjs +0 -1
- package/dist/chunks/index-0.1.9-vwevfx80.mjs +0 -1
- package/dist/chunks/index-0.1.9-w21jc8bp.mjs +0 -1
- package/dist/chunks/index-0.1.9-wpqaqk4y.mjs +0 -1
- package/dist/chunks/index-0.1.9-yjp28h60.mjs +0 -9
- package/dist/chunks/initReplBridge-0.1.9-dag95hyf.mjs +0 -1
- package/dist/chunks/ink-0.1.9-4n2nvw5p.mjs +0 -1
- package/dist/chunks/insights-0.1.9-9hr8tshw.mjs +0 -870
- package/dist/chunks/install-0.1.9-km91vvgf.mjs +0 -1
- package/dist/chunks/install-github-app-0.1.9-874a2dgj.mjs +0 -149
- package/dist/chunks/install-slack-app-0.1.9-q5yyb8vs.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.9-raz129aj.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.9-21a8r4rv.mjs +0 -1
- package/dist/chunks/keybindings-0.1.9-nm8s4x8m.mjs +0 -2
- package/dist/chunks/knowledge-0.1.9-zhr6zq80.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.9-3m0mzw84.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.9-y46g5zj0.mjs +0 -1
- package/dist/chunks/logout-0.1.9-hb89bxj8.mjs +0 -1
- package/dist/chunks/lsp-0.1.9-2j3y8eqc.mjs +0 -1
- package/dist/chunks/main-0.1.9-7cnyr288.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.9-y8wax2wz.mjs +0 -1
- package/dist/chunks/mcp-0.1.9-14beee71.mjs +0 -17
- package/dist/chunks/mcp-0.1.9-qw1n3pzx.mjs +0 -4
- package/dist/chunks/mcp-0.1.9-zd92e41j.mjs +0 -1
- package/dist/chunks/mcpServer-0.1.9-5p48a2y0.mjs +0 -1
- package/dist/chunks/mcpb-0.1.9-t8x1bjwv.mjs +0 -1
- package/dist/chunks/memory-0.1.9-mxz6vgsy.mjs +0 -3
- package/dist/chunks/mobile-0.1.9-144nwr03.mjs +0 -2
- package/dist/chunks/model-0.1.9-ghswdzx2.mjs +0 -1
- package/dist/chunks/model-0.1.9-j4vhm4vm.mjs +0 -2
- package/dist/chunks/oauth-0.1.9-a7p9ezjx.mjs +0 -1
- package/dist/chunks/openaiShim-0.1.9-5bn57rv6.mjs +0 -14
- package/dist/chunks/output-style-0.1.9-y8t5c5v3.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.9-mbvqe0av.mjs +0 -1
- package/dist/chunks/parser-0.1.9-d7vc9q1w.mjs +0 -1
- package/dist/chunks/passes-0.1.9-84vsp058.mjs +0 -1
- package/dist/chunks/permissions-0.1.9-h0a2312z.mjs +0 -3
- package/dist/chunks/plan-0.1.9-k9dx9nwc.mjs +0 -1
- package/dist/chunks/plist-0.1.9-f3c6hvca.mjs +0 -1
- package/dist/chunks/plugin-0.1.9-z3nwra38.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.9-p68xwmv4.mjs +0 -1
- package/dist/chunks/plugins-0.1.9-grc1bgmj.mjs +0 -9
- package/dist/chunks/print-0.1.9-z151tvas.mjs +0 -57
- package/dist/chunks/privacy-settings-0.1.9-m7xpxtd8.mjs +0 -1
- package/dist/chunks/process-0.1.9-anx0dq1a.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.9-bchtybqh.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.9-ebvc859m.mjs +0 -9
- package/dist/chunks/prompt-0.1.9-08fnpwfx.mjs +0 -1
- package/dist/chunks/prompt-0.1.9-whqkx3td.mjs +0 -1
- package/dist/chunks/prompts-0.1.9-psek69yr.mjs +0 -1
- package/dist/chunks/provider-0.1.9-xwmdqr38.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.9-myc8zcfy.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.9-06twart5.mjs +0 -1
- package/dist/chunks/registry-0.1.9-xxrsbce3.mjs +0 -1
- package/dist/chunks/release-notes-0.1.9-4r396x7z.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.9-hm09ekrf.mjs +0 -2
- package/dist/chunks/remote-env-0.1.9-0peng4np.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.9-4eg0bkck.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.9-7jagnaes.mjs +0 -1
- package/dist/chunks/rename-0.1.9-3r8bqa1y.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.9-1y32h5jq.mjs +0 -1
- package/dist/chunks/resume-0.1.9-gayv56qp.mjs +0 -2
- package/dist/chunks/rewind-0.1.9-krxjbzeg.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.9-b4ze2ex2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.9-6vctxbed.mjs +0 -1
- package/dist/chunks/session-0.1.9-jtrr3jje.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.9-wpgdva8t.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.9-1v6wyqzw.mjs +0 -1
- package/dist/chunks/setup-0.1.9-jc5w6v5s.mjs +0 -5
- package/dist/chunks/sinks-0.1.9-49ereb4y.mjs +0 -1
- package/dist/chunks/skills-0.1.9-d63w5m27.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.9-gmke65dk.mjs +0 -1
- package/dist/chunks/state-0.1.9-m8x0v07d.mjs +0 -1
- package/dist/chunks/stats-0.1.9-yvya6xg6.mjs +0 -6
- package/dist/chunks/status-0.1.9-sapnwz4b.mjs +0 -1
- package/dist/chunks/stickers-0.1.9-ewdagtd4.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.9-2dqzh55d.mjs +0 -1
- package/dist/chunks/tasks-0.1.9-qgqwhse9.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.9-r474ar76.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.9-nwc11b9m.mjs +0 -1
- package/dist/chunks/teleport-0.1.9-xaj204my.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.9-xd5rhh32.mjs +0 -1
- package/dist/chunks/theme-0.1.9-f6jzdysz.mjs +0 -1
- package/dist/chunks/thinkback-0.1.9-8j25tex7.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.9-tzs2w3mj.mjs +0 -1
- package/dist/chunks/toolPool-0.1.9-6b4938vh.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.9-7ych6nv7.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.9-xqxt3kmz.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.1.9-m1wesrr4.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.1.9-x09n5pvc.mjs +0 -4
- package/dist/chunks/update-0.1.9-8dntd8kh.mjs +0 -94
- package/dist/chunks/upgrade-0.1.9-eja31dgt.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.1.9-pv2yqh11.mjs +0 -14
- package/dist/chunks/usage-0.1.9-neje6dea.mjs +0 -1
- package/dist/chunks/util-0.1.9-kdhggd68.mjs +0 -1
- package/dist/chunks/utils-0.1.9-bqw30f8b.mjs +0 -1
- package/dist/chunks/vim-0.1.9-w4d1qz6f.mjs +0 -1
- package/dist/chunks/watcher-0.1.9-ty2r0yxd.mjs +0 -1
- package/dist/chunks/wiki-0.1.9-ah646x2k.mjs +0 -132
- package/dist/chunks/worktree-0.1.9-d3fbxjwd.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.9-qbn6b5fs.mjs +0 -1
- package/dist/chunks/wrapper-0.1.9-eh46qafm.mjs +0 -7
- /package/dist/chunks/{cli-0.1.9-zrdz7st3.mjs → cli-0.1.11-x3q39kf7.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{A5 as R2,C5 as u4}from"./cli-0.1.11-b0jasw23.mjs";import{E5 as h,F5 as jZ}from"./cli-0.1.11-s6yfjcm5.mjs";import{G6 as s0,p6 as O}from"./cli-0.1.11-d10nfa6g.mjs";import{$aa as zZ,A7 as X1,B7 as r4,Caa as b,Cba as F,Eaa as Q2,F7 as K,G_ as P1,Gaa as e,Haa as C,K7 as c0,P7 as x0,Q7 as u5,Qaa as q0,R7 as Q5,S_ as U8,Tca as A1,U7 as qZ,Vba as W0,X$ as E1,Xba as k1,Yba as _8,Zaa as K4,Zca as y8,ada as D,dda as V0,eaa as O8,f8 as X5,h8 as WZ,jca as M1,lca as I8,mca as V4,nca as i,oca as q2,pca as K0,qca as q4,rca as I2,s_ as Y1,t_ as e4,uca as x2,vba as d,vca as GZ,zba as M}from"./cli-0.1.11-v7bwjqf0.mjs";import{Hea as H5,Iea as L4,Jea as z0,Lea as h4,Mea as f4,Oea as N,Pea as b0}from"./cli-0.1.11-7qpnfx56.mjs";import{bfa as k0,dfa as Z4,nfa as Q1}from"./cli-0.1.11-fag2wtke.mjs";import{dga as j,ega as J2}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as p,Fga as M5,Jga as A5,Mga as J5,Pga as VZ,Tga as k2,Xga as t4,bha as z,dha as f0,eha as j0}from"./cli-0.1.11-vq5fvf9m.mjs";import{fha as $5,iha as L,kha as u,mha as H2,pha as F4,sha as g}from"./cli-0.1.11-d3exw047.mjs";import{$ia as n5,Ala as $2,Pka as f,Vma as r,Wka as J1,Zja as R1,_ia as $0,lka as b1,lla as y5,mla as T5,nla as C5,ola as S5,pka as e1,uka as O0,vka as t0}from"./cli-0.1.11-rrnr3ab1.mjs";import{sna as y,tna as m0}from"./cli-0.1.11-98zcwng9.mjs";import{Ona as m8,Qna as S1,Rna as B,Sna as o}from"./cli-0.1.11-yrfxpjhr.mjs";function R5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:V,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){V(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,V)=>{$.push({args:X,resolve:Y,reject:V,context:this}),Q()})}}var w5=()=>{};function L5(Z,$){return Z.find((J)=>J.includes($))??null}async function K5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=H2(),J=L(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await R2(),...J&&{requestHandler:new(await import("./index-0.1.11-r6p77pf7.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.1.11-d9ft1b0s.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await X0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function Y3(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=H2(),J=L(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await R2(),...J&&{requestHandler:new(await import("./index-0.1.11-r6p77pf7.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.1.11-d9ft1b0s.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await X0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function g4(Z){return Z.startsWith("anthropic.")}function m4(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function c4(Z){let $=m4(Z);for(let J of p4)if($.startsWith(`${J}.anthropic.`))return J;return}function q3(Z,$){let J=c4(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(g4(Z))return`${$}.${Z}`;return Z}var F5,V3,p4;var D5=B(()=>{m0();n();g();c0();u4();F5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw K(X),X}});V3=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let V=Y.modelArn.lastIndexOf("/");return V>=0?Y.modelArn.substring(V+1):Y.modelArn}catch($){return K($),null}});p4=["us","eu","apac","global"]});var w2,F2,L2,K2,D2,N2,U2,O2,_2,d0,n0,b2,Y0,z3,N5;var P2=B(()=>{w2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},F2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},L2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},K2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},D2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},N2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},U2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},O2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},d0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},n0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},b2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},Y0={haiku35:L2,haiku45:K2,sonnet35:F2,sonnet37:w2,sonnet40:D2,sonnet45:N2,sonnet46:b2,opus40:U2,opus41:O2,opus45:_2,opus46:d0,opus47:n0},z3=Object.values(Y0).map((Z)=>Z.firstParty),N5=Object.fromEntries(Object.entries(Y0).map(([Z,$])=>[$.firstParty,Z]))});function q(){let Z=D();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function x3(){return q()==="firstParty"}function B3(Z){let $=D();if($?.transport!=="github_copilot")return!1;return(Z?.trim()||$.model?.trim()||"").toLowerCase().includes("claude-")}function H3(){return q()}function R3(){let Z=D();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var t=B(()=>{V0()});function i0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of O5)J[Q]=Y0[Q][$];return J}async function d4(){let Z=i0("bedrock"),$;try{$=await F5()}catch(Q){return K(Q),Z}if(!$?.length)return Z;let J={};for(let Q of O5){let X=Y0[Q].firstParty;J[Q]=L5($,X)||Z[Q]}return J}function U5(Z){let $=e().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=N5[Q];if(Y&&X)J[Y]=X}return J}function l0(Z){let $;try{$=e().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function n4(){if(O0()!==null)return;if(q()!=="bedrock"){t0(i0(q()));return}_5()}function H(){let Z=O0();if(Z===null)return n4(),U5(i0(q()));return U5(Z)}async function _3(){if(O0()!==null)return;if(q()!=="bedrock"){t0(i0(q()));return}await _5()}var O5,_5;var a0=B(()=>{r();c0();w5();q0();D5();P2();t();O5=Object.keys(Y0);_5=R5(async()=>{if(O0()!==null)return;try{let Z=await d4();t0(Z)}catch(Z){K(Z)}})});function v3(){if(L(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=_0(),J=Z0()!==null;if(!$.hasToken&&!J)return!1;let Q=F(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function I3(){if(b5!==null)return b5;if(!U())return!1;let Z=v();if(Z==="max"||Z==="pro")return!0;let J=F().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var b5=null;var P5=B(()=>{n();W0();g()});function S3(Z){return Z}function M3(){return!1}function E5(){return null}function k5(){return!1}var v5=B(()=>{P5()});async function m3(){let $=F().oauthAccount?.accountUuid,J=Z0();if(!$||!J)return;let Q=`${N().BASE_API_URL}/api/claude_cli_profile`;try{return(await O.get(Q,{headers:{"x-api-key":J,"anthropic-beta":z0},params:{account_uuid:$},timeout:1e4})).data}catch(X){K(X)}}async function G0(Z){let $=`${N().BASE_API_URL}/api/oauth/profile`;try{return(await O.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){K(J)}}var E2=B(()=>{s0();b0();n();W0();c0()});import{mkdirSync as i4,writeFileSync as l4}from"fs";function o4(Z,$,J){if(!L(process.env.CLAUDE_CODE_REMOTE))return;try{i4(o0,{recursive:!0,mode:448}),l4(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function I5(Z,$){try{let Q=k2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!M5(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function h5({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let V=process.env[Z];if(!V){let G=I5($,J);return X(G),G}let W=parseInt(V,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${V}`,{level:"error"}),X(null),null;try{let G=k2(),x=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(x,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),o4($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let x=I5($,J);return X(x),x}}function r0(){return h5({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:a4,label:"OAuth token",getCached:y5,setCached:T5})}function v2(){return h5({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:s4,label:"API key",getCached:C5,setCached:S5})}var o0="/home/claude/.claude/remote",a4,s4,s3;var f5=B(()=>{r();j0();g();A5();t4();a4=`${o0}/.oauth_token`,s4=`${o0}/.api_key`,s3=`${o0}/.session_ingress_token`});async function g5(){if(process.platform==="darwin"){let Z=i();if((await x0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function e0(Z){return Z.slice(-20)}var p5=B(()=>{u5();I2()});function J9(Z){return Z?.name==="CredentialsProviderError"}function m5(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function y2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function c5(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var d5=B(()=>{j0()});class S{static instance=null;status={isAuthenticating:!1,output:[]};changed=$0();static getInstance(){if(!S.instance)S.instance=new S;return S.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(S.instance)S.instance.changed.clear(),S.instance=null}}var t5=B(()=>{n5()});var Z2="claude-code-20250219",i5="interleaved-thinking-2025-05-14",P0="context-1m-2025-08-07",l5="context-management-2025-06-27",a5="structured-outputs-2025-12-15",T2="web-search-2025-03-05",s5="advanced-tool-use-2025-11-20",o5="tool-search-tool-2025-10-19",V9="effort-2025-11-24",q9="task-budgets-2026-03-13",r5="prompt-caching-scope-2026-01-05",W9="fast-mode-2026-02-01",e5="redact-thinking-2026-02-12",Z1="token-efficient-tools-2026-03-28",z9="afk-mode-2026-01-31",G9="advisor-tool-2026-03-01",C2,j9;var S2=B(()=>{C2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),j9=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(q()!=="firstParty")return!1;return!L(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function V1(){if(!A())return!1;return $8()===null}function Z8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function $8(){if(q()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=k0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!Y1()&&k0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&$2()&&!J1()){if(!b("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(L(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=Z8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function v9(){return"opus"+(I0()?"[1m]":"")}function I9(Z){if(!A())return!1;if(!V1())return!1;if(!q1(Z))return!1;let $=e();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function q1(Z){if(!A())return!1;let $=Z??v0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function J8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(A()&&!M2)z("Fast mode cooldown expired, re-enabling fast mode"),M2=!0,z1.emit();B0={status:"active"}}return B0}function C9(Z,$){if(!A())return;B0={status:"cooldown",resetAt:Z,reason:$},M2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),W1.emit(Z,$)}function S9(){B0={status:"active"}}function M9(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},Q2("userSettings",{fastMode:void 0}),M((Z)=>({...Z,penguinModeOrgEnabled:!1})),A2.emit(!1)}function Q8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function X8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function h9(Z){let $=Q8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!X8(Z))Q2("userSettings",{fastMode:void 0}),M((J)=>({...J,penguinModeOrgEnabled:!1}));G1.emit($)}function Y8(){return J8().status==="cooldown"}function f9(Z,$){let J=A()&&V1()&&!!$&&q1(Z);if(J&&Y8())return"cooldown";if(J)return"on";return"off"}async function V8(Z){let $=`${N().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":z0}:{"x-api-key":Z.apiKey};return(await O.get($,{headers:J})).data}function g9(){if(!A())return;if(k.status!=="pending")return;k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function p9(){if(X1())return;if(!A())return;if(E0)return z("Fast mode prefetch in progress, returning in-flight promise"),E0;let Z=Z0();if(!(w()?.accessToken&&J0())&&!Z){k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-$1<q8){z("Skipping fast mode prefetch, fetched recently");return}$1=J;let Q=async()=>{let Y=w(),V=Y?.accessToken&&J0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!V)throw Error("No auth available");return V8(V)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(O.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let x=w()?.accessToken;if(x)await h2(x),Y=await Q();else throw W}else throw W}let V=k.status!=="pending"?k.status==="enabled":F().penguinModeOrgEnabled;if(k=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},V!==Y.enabled){if(!Y.enabled)Q2("userSettings",{fastMode:void 0});M((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),A2.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{E0=null}}return E0=X(),E0}var k9="Opus 4.7",B0,M2=!1,W1,z1,y9,T9,G1,A9,k,A2,u9,q8=30000,$1=0,E0=null;var j1=B(()=>{s0();b0();Q1();r();J2();n();e4();W0();j0();g();H0();t();r4();q0();n5();B0={status:"active"},W1=$0(),z1=$0(),y9=W1.subscribe,T9=z1.subscribe;G1=$0(),A9=G1.subscribe;k={status:"pending"},A2=$0(),u9=A2.subscribe});function B8(Z){for(let $ of x8)if($.pattern.test(Z))return $.cost;return}function f2(Z){if(A()&&Z)return W8;return T0}function H8(Z,$){return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function R8(Z,$){let J=P(Z);if(J===_(d0.firstParty)||J===_(n0.firstParty)){let X=$.speed==="fast";return f2(X)}let Q=B1[J];if(!Q){let X=B8(Z);if(X)return X;return w8(Z,J),B1[P(v0())]??j8}return Q}function w8(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),R1()}function F8(Z,$){let J=R8(Z,$);return H8(J,$)}function l9(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return F8(Z,J)}function H1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function w1(Z){return`${H1(Z.inputTokens)}/${H1(Z.outputTokens)} per Mtok`}var y0,x1,T0,W8,z8,G8,j8,x8,B1;var F1=B(()=>{J2();r();j1();P2();H0();y0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheReadTokens:0.3,webSearchRequests:0.01},x1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheReadTokens:1.5,webSearchRequests:0.01},T0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheReadTokens:0.5,webSearchRequests:0.01},W8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheReadTokens:3,webSearchRequests:0.01},z8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheReadTokens:0.08,webSearchRequests:0.01},G8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.1,webSearchRequests:0.01},j8=T0,x8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];B1={[_(L2.firstParty)]:z8,[_(K2.firstParty)]:G8,[_(F2.firstParty)]:y0,[_(w2.firstParty)]:y0,[_(D2.firstParty)]:y0,[_(N2.firstParty)]:y0,[_(b2.firstParty)]:y0,[_(U2.firstParty)]:x1,[_(O2.firstParty)]:x1,[_(_2.firstParty)]:T0,[_(d0.firstParty)]:T0,[_(n0.firstParty)]:T0}});function m(Z){return L8.includes(Z)}function R0(Z){return K8.includes(Z)}var L8,K8;var u2=B(()=>{L8=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];K8=["sonnet","opus","haiku"]});function D8(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function L1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function N8(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(L1(J,$))return!0;if(!$.startsWith("claude-")&&L1(J,`claude-${$}`))return!0;return!1}function K1(Z,$){for(let J of $){if(R0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function D1(Z){let $=C()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=l0(Z).trim().toLowerCase(),Y=J.map((V)=>V.trim().toLowerCase());if(Y.includes(X)){if(!R0(X)||!K1(X,Y))return!0}for(let V of Y)if(R0(V)&&!K1(V,Y)&&D8(X,V))return!0;if(m(X)){let V=T(X).toLowerCase();if(Y.includes(V))return!0}for(let V of Y)if(!R0(V)&&m(V)){if(T(V).toLowerCase()===X)return!0}for(let V of Y)if(!R0(V)&&!m(V)){if(N8(X,V))return!0}return!1}var N1=B(()=>{q0();u2();H0();a0()});function J$(){return Object.values(U1)}var U1,g2;var O1=B(()=>{U1={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g2=Object.fromEntries(Object.values(U1).map((Z)=>[Z.id,Z.name]))});function m2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function F0(){let Z=D();if(!Z?.model)return;return k1(Z.model)}function K$(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"codexspark";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return v1()}function D$(Z){return Z===H().opus40||Z===H().opus41||Z===H().opus45||Z===H().opus46||Z===H().opus47}function p2(){let Z,$=b1();if($!==void 0)Z=$;else{let J=C()||{},Q=m2(J.model);Z=F0()||Q||void 0}if(Z&&!D1(Z))return;return Z}function N$(){let Z=p2();if(Z!==void 0&&Z!==null)return T(Z);return I1()}function b8(){return w0()}function w0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.5-pro";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.7";if(q()!=="firstParty")return H().opus46;return H().opus47}function C0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"mistral-medium-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5";if(q()!=="firstParty")return H().sonnet45;return H().sonnet46}function v1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=F0();if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return H().haiku45}function U$(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(p2()==="opusplan"&&$==="plan"&&!Q)return w0();if(p2()==="haiku"&&$==="plan")return C0();return J}function v0(){let Z=F0();if(q()==="github"){let $=C()||{};return m2($.model)||Z||"github:copilot"}if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(X2())return w0()+(I0()?"[1m]":"");if(Y2())return w0()+(I0()?"[1m]":"");return C0()}function I1(){return T(v0())}function _(Z){if(Z=Z.toLowerCase(),Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function P(Z){return _(l0(Z))}function P8(Z=!1){if(X2()||Y2()){if(I0())return`Opus 4.7 with 1M context · Most capable for complex work${Z?_1(!0):""}`;return`Opus 4.7 · Most capable for complex work${Z?_1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function O$(Z){if(Z==="opusplan")return"Opus 4.7 in plan mode, else Sonnet 4.6";return T1(T(Z))}function _1(Z){if(q()!=="firstParty")return"";let $=w1(f2(Z));return` ·${Z?` (${P1})`:""} ${$}`}function I0(){if(L0()||n2()||q()!=="firstParty")return!1;if(U()&&v()===null)return!1;return!0}function _$(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return E1(Z);return T1(Z)}function y1(Z){if(q()==="openai"||q()==="gemini"||q()==="codex"||q()==="github"){if(g2[Z])return g2[Z];return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case H().opus47:return"Opus 4.7";case H().opus47+"[1m]":return"Opus 4.7 (1M context)";case H().opus46:return"Opus 4.6";case H().opus46+"[1m]":return"Opus 4.6 (1M context)";case H().opus45:return"Opus 4.5";case H().opus41:return"Opus 4.1";case H().opus40:return"Opus 4";case H().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case H().sonnet46:return"Sonnet 4.6";case H().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case H().sonnet45:return"Sonnet 4.5";case H().sonnet40:return"Sonnet 4";case H().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case H().sonnet37:return"Sonnet 3.7";case H().sonnet35:return"Sonnet 3.5";case H().haiku45:return"Haiku 4.5";case H().haiku35:return"Haiku 3.5";default:return null}}function T1(Z){let $=y1(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function b$(Z){let $=y1(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=m2(Z);if(!$)return C0();let J=$.toLowerCase(),Q=l(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return C0()+(Q?"[1m]":"");case"sonnet":return C0()+(Q?"[1m]":"");case"haiku":return v1()+(Q?"[1m]":"");case"opus":return w0()+(Q?"[1m]":"");case"best":return b8();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(q()==="firstParty"&&k8(X)&&v8())return w0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function P$(Z,$){if(l(Z)||!l($))return Z;if(c2(T(Z)))return Z+"[1m]";return Z}function k8(Z){return E8.includes(Z)}function v8(){return!L(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function E$(Z){if(Z===null){if(U())return`Default (${P8()})`;return`Default (${I1()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function k$(Z){if(q()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=P(Z);if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function v$(Z){return Z.replace(/\[(1|2)m\]/gi,"")}var E8;var H0=B(()=>{r();V0();n();d2();g();_8();a0();F1();q0();t();U8();N1();u2();O8();O1();E8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function t2(Z){return}async function y$(){}var C1=()=>{};var p1={};S1(p1,{prefetchOpenAICompatibleModels:()=>p8,getDiscoveredContextWindow:()=>T8,discoverOpenAICompatibleModelOptions:()=>g1});function T8(Z){return f1.get(Z)}function C8(){return(D()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function u1(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function S8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function M8(Z){let $=D()?.apiKey?.trim();if(!$)return{};if(S8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(u1(Z))J["api-key"]=$;return J}function A8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&u1(Z)?(Y)=>{try{let V=new URL(Y);return V.searchParams.set("api-version",Q),V.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function h8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function f8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function u8(Z,$){let J=new Set;for(let Q of Z)try{let X=await O.get(Q,{headers:$,timeout:h1}),Y=[];for(let V of X.data?.data??[]){let W=V.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=V.name?.trim()||W,x=V.context_length??null;if(x&&x>0)f1.set(W,x);let R=x?` · ${f8(x)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((V,W)=>{let G=String(V.value).split("/")[0]??"",x=String(W.value).split("/")[0]??"",R=G.localeCompare(x);return R!==0?R:String(V.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function g8(Z,$){try{let J=await O.get(Z,{headers:$,timeout:h1}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function g1(){if(q()!=="openai")return[];let Z=C8(),$=M8(Z),J=await u8(A8(Z),$);if(J.length>0)return J;let Q=h8(Z);if(Q)return g8(Q,$);return[]}function p8(){if(S0)return S0;return S0=(async()=>{if(!A1()?.startsWith("openai:"))return;try{let $=await g1();if($.length>0)M1($)}catch{}finally{S0=null}})(),S0}var h1=5000,f1,S0=null;var m1=B(()=>{s0();V0();y8();j0();t();I8();f1=new Map});function d1(Z,$,J){let Q=D()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=c1($,J);if(X!==void 0)return X;return c1(Z,J)}function c1(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function n1(Z){let $=d1(c8,n8,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(m1(),m8(p1));return J(Z)}catch{return}}function t1(Z){return d1(d8,t8,Z)}var c8,d8,n8,t8;var i1=B(()=>{V0();c8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},d8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},n8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),t8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function l1(){let Z=D()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function L0(){return L(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(L0())return!1;return/\[1m\]/i.test(Z)}function c2(Z){if(L0())return!1;let $=P(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")}function o$(Z,$){if(l(Z))return 1e6;if(l1()){let Q=n1(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),i8}let J=t2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>i2&&L0())return i2;return J.max_input_tokens}if($?.includes(P0)&&c2(Z))return 1e6;if(s8(Z))return 1e6;return i2}function s8(Z){if(L0())return!1;if(l(Z))return!1;if(!P(Z).includes("sonnet-4-6"))return!1;return F().clientDataCache?.coral_reef_sonnet==="true"}function r$(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function o8(Z){let $,J;if(l1()){let Y=t1(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=P(Z);if(Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=l8,J=a8;let X=t2(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}function e$(Z){return o8(Z).upperLimit-1}var i2=200000,i8,l$=20000,l8=32000,a8=64000,a$=8000,s$=64000;var d2=B(()=>{S2();V0();W0();g();H0();C1();i1();i8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var r8,a1;var s1=B(()=>{m0();t();r8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],a1=y((Z,$)=>{if(q()==="firstParty")return;let J=Z.toLowerCase();for(let Q of r8){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((V)=>V.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function e8(Z){let $=[],J=[];for(let Q of Z)if($4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function FJ(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=e8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${$4.join(", ")}`);return $.length>0?$:void 0}function o1(Z){let $=a1(Z,"interleaved_thinking");if($!==void 0)return $;let J=P(Z),Q=q();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function ZZ(Z){let $=P(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function $Z(Z){let $=P(Z),J=q();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function JZ(Z){let $=P(Z),J=q();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-haiku-4-5")}function LJ(Z){let $=P(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function KJ(){let Z=q();if(Z==="vertex"||Z==="bedrock")return o5;return s5}function r1(){return(q()==="firstParty"||q()==="foundry")&&!L(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function DJ(){return q()==="firstParty"&&!L(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function NJ(Z,$){let J=[...J4(Z)];if($?.isAgenticQuery){if(!J.includes(Z2))J.push(Z2)}let Q=e1();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function Q4(){l2.cache?.clear?.(),J4.cache?.clear?.(),QZ.cache?.clear?.()}var $4,l2,J4,QZ;var X4=B(()=>{m0();Q1();r();S2();b0();n();d2();g();H0();s1();t();q0();$4=[P0];l2=y((Z)=>{let $=[],J=P(Z).includes("haiku"),Q=q(),X=r1();if(!J)$.push(Z2);if(U())$.push(z0);if(l(Z))$.push(P0);if(!L(process.env.DISABLE_INTERLEAVED_THINKING)&&o1(Z))$.push(i5);if(X&&o1(Z)&&!f()&&e().showThinkingSummaries!==!0)$.push(e5);let Y=$Z(Z);if(r1()&&Y)$.push(l5);let V=Z4("tengu_tool_pear"),W=!V&&(L(process.env.CLAUDE_CODE_JSON_TOOL_USE)||k0("tengu_amber_json_tools",!1));if(X&&JZ(Z)&&V)$.push(a5);if(X&&W)$.push(Z1);if(Q==="vertex"&&ZZ(Z))$.push(T2);if(Q==="foundry")$.push(T2);if(X)$.push(r5);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),J4=y((Z)=>{let $=l2(Z);if(q()==="bedrock")return $.filter((J)=>!C2.has(J));return $}),QZ=y((Z)=>{return l2(Z).filter((J)=>C2.has(J))})});import{execFile as XZ}from"child_process";function Y4(Z){return new Promise(($)=>{XZ("security",["find-generic-password","-a",q2(),"-w","-s",Z],{encoding:"utf-8",timeout:YZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function PJ(){if(process.platform!=="darwin"||V2||u())return;let Z=Y4(i(V4)),$=Y4(i());V2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)q4(J.stdout);if(!Q.timedOut)a2={stdout:Q.stdout}})}async function EJ(){if(V2)await V2}function W4(){return a2}function s2(){a2=null}var YZ=1e4,a2=null,V2=null;var z4=B(()=>{g();I2()});function o2(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,x)=>{W?.removeEventListener("abort",G),x()},Z,$,V,Q);function V(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",V,{once:!0}),J?.unref)Y.unref()})}var G4=()=>{};function IJ(){return j4}function x4(){j4.clear()}var j4;var B4=B(()=>{j4=new Map});var aZ={};S1(aZ,{validateForceLoginOrg:()=>lZ,saveOAuthTokensIfNeeded:()=>I4,saveApiKey:()=>x5,removeApiKey:()=>MZ,refreshGcpCredentialsIfNeeded:()=>j5,refreshGcpAuth:()=>k4,refreshAwsAuth:()=>P4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>yZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>TZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>DZ,isUsing3PServices:()=>j2,isTeamSubscriber:()=>pZ,isTeamPremiumSubscriber:()=>Y2,isProSubscriber:()=>n2,isOverageProvisioningAllowed:()=>uZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>S4,isMaxSubscriber:()=>X2,isGcpAuthRefreshFromProjectSettings:()=>G5,isEnterpriseSubscriber:()=>mZ,isCustomApiKeyApproved:()=>SZ,isConsumerSubscriber:()=>tZ,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>W5,isAwsAuthRefreshFromProjectSettings:()=>V5,isAnthropicAuthEnabled:()=>U0,is1PApiCustomer:()=>fZ,hasProfileScope:()=>J0,hasOpusAccess:()=>gZ,hasAnthropicApiKeyAuth:()=>wZ,handleOAuth401Error:()=>h2,getSubscriptionType:()=>v,getSubscriptionName:()=>T4,getRateLimitTier:()=>y4,getOtelHeadersFromHelper:()=>dZ,getOauthAccountInfo:()=>G2,getConfiguredApiKeyHelper:()=>a,getClaudeAIOAuthTokensAsync:()=>h0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>_0,getApiKeyHelperElapsedMs:()=>FZ,getApiKeyFromConfigOrMacOSKeychain:()=>B2,getApiKeyFromApiKeyHelperCached:()=>e2,getApiKeyFromApiKeyHelper:()=>b4,getAnthropicApiKeyWithSource:()=>u0,getAnthropicApiKey:()=>Z0,getAccountInformation:()=>iZ,clearOAuthTokenCache:()=>B5,clearGcpCredentialsCache:()=>IZ,clearAwsCredentialsCache:()=>bZ,clearApiKeyHelperCache:()=>KZ,checkGcpCredentialsValid:()=>E4,checkAndRefreshOAuthTokenIfNeeded:()=>g0,calculateApiKeyHelperTTL:()=>_4});import{exec as U4}from"child_process";import{mkdir as xZ,stat as BZ}from"fs/promises";import{join as HZ}from"path";function z2(){return L(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function U0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=j2(),J=(C()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=u0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!z2()||Y&&!z2())}function _0(){if(u()){if(a())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!z2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(r0()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(a()&&!z2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(N0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function Z0(){let{key:Z}=u0();return Z}function wZ(){try{let{key:Z,source:$}=u0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function u0(Z={}){let $=(()=>{let V=D();if(V?.transport!=="anthropic")return;let W=V.apiKey?.trim();return W&&W.length>0?W:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(a())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:e2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=F4()?void 0:$;if($2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(L(process.env.CI)){let V=v2();if(V)return{key:V,source:"ANTHROPIC_API_KEY"};if(!j2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!j2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&F().customApiKeyResponses?.approved?.includes(e0(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=v2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(a()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:e2(),source:"apiKeyHelper"}}let Y=B2();if(Y)return Y;return{key:null,source:"none"}}function a(){if(u())return b("flagSettings")?.apiKeyHelper;return(C()||{}).apiKeyHelper}function O4(){let Z=a();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function Y5(){return(C()||{}).awsAuthRefresh}function V5(){let Z=Y5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function q5(){return(C()||{}).awsCredentialExport}function W5(){let Z=q5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function _4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return RZ}function FZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function b4(Z){if(!a())return null;let $=_4();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:H4(Z,!1,D0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:H4(Z,!0,D0),startedAt:Date.now()},c.promise}async function H4(Z,$,J){try{let Q=await LZ(Z);if(J!==D0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==D0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===D0)c=null}}async function LZ(Z){let $=a();if(!$)return null;if(O4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("apiKeyHelper invoked before trust check",Y),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await x0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function e2(){return I?.value??null}function KZ(){D0++,I=null,c=null}function DZ(Z){if(O4()&&!d())return;b4(Z)}async function UZ(){let Z=Y5();if(!Z)return!1;if(V5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsAuthRefresh invoked before trust check",J),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await y2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return P4(Z)}}function P4(Z){z("Running AWS auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=U4(Z,{timeout:OZ});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudio/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function _Z(){let Z=q5();if(!Z)return null;if(W5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsCredentialExport invoked before trust check",J),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await y2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await x0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=J5($.stdout.trim());if(!m5(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudio/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function bZ(){X0.cache.clear()}function z5(){return(C()||{}).gcpAuthRefresh}function G5(){let Z=z5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function E4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=o2(PZ).then(()=>{throw new M4("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function kZ(){let Z=z5();if(!Z)return!1;if(G5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("gcpAuthRefresh invoked before trust check",J),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await E4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return k4(Z)}function k4(Z){z("Running GCP auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=U4(Z,{timeout:vZ});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudio/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function IZ(){j5.cache.clear()}function yZ(){if(!z5())return;if(G5()){if(!d()&&!f())return}j5()}function TZ(){let Z=Y5(),$=q5();if(!Z&&!$)return;if(V5()||W5()){if(!d()&&!f())return}X0(),H()}function CZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function x5(Z){if(!CZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await v4();let $=!1;if(process.platform==="darwin")try{let Q=i(),X=q2(),Y=Buffer.from(Z,"utf-8").toString("hex"),V=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
|
|
2
|
+
`;await x0("security",["-i"],{input:V,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){K(Q),j("tengu_api_key_keychain_error",{error:p(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=e0(Z);M((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),B2.cache.clear?.(),s2()}function SZ(Z){let $=F(),J=e0(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function MZ(){await v4(),M((Z)=>({...Z,primaryApiKey:void 0})),B2.cache.clear?.(),s2()}async function v4(){try{await g5()}catch(Z){K(Z)}}function I4(Z){if(!N0(Z.scopes))return j("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return j("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=x2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)j("tengu_oauth_tokens_saved",{storageBackend:J});else j("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),Q4(),x4(),Y}catch(Q){return K(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function B5(){w.cache?.clear?.(),K0()}async function AZ(){try{let{mtimeMs:Z}=await BZ(HZ($5(),".credentials.json"));if(Z!==R4)R4=Z,B5()}catch{w.cache?.clear?.()}}function h2(Z){let $=r2.get(Z);if($)return $;let J=hZ(Z).finally(()=>{r2.delete(Z)});return r2.set(Z,J),J}async function hZ(Z){B5();let $=await h0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return g0(0,!0)}async function h0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||r0())return w();try{let J=(await x2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return K(Z),null}}function g0(Z=0,$=!1){if(Z===0&&!$){if(M0)return M0;return M0=Z5(Z,$).finally(()=>{M0=null}),M0}return Z5(Z,$)}async function Z5(Z,$){await AZ();let Q=w();if(!$){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!N0(Q.scopes))return!1;w.cache?.clear?.(),K0();let X=await h0();if(!X?.refreshToken||!A0(X.expiresAt))return!1;let Y=$5();await xZ(Y,{recursive:!0});let V;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),V=await K4(Y),j("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return j("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await o2(1000+Math.random()*1000),Z5(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return K(W),j("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),K0();let W=await h0();if(!W?.refreshToken||!A0(W.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let G=await D4(W.refreshToken,{scopes:N0(W.scopes)?void 0:W.scopes});return I4(G),w.cache?.clear?.(),K0(),!0}catch(W){K(W),w.cache?.clear?.(),K0();let G=await h0();if(G&&!A0(G.expiresAt))return j("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{j("tengu_oauth_token_refresh_lock_releasing",{}),await V(),j("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!U0())return!1;return N0(w()?.scopes)}function J0(){return w()?.scopes?.includes(L4)??!1}function fZ(){{let Z=D()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function G2(){return U0()?F().oauthAccount:void 0}function uZ(){let $=G2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function gZ(){let Z=v();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function v(){if(k5())return E5();if(!U0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function X2(){return v()==="max"}function pZ(){return v()==="team"}function Y2(){return v()==="team"&&y4()==="default_claude_max_5x"}function mZ(){return v()==="enterprise"}function n2(){return v()==="pro"}function y4(){if(!U0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function T4(){switch(v()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function j2(){let Z=D()?.transport;if(!Z)return!1;return Z!=="anthropic"}function C4(){return(C()||{}).otelHeadersHelper}function S4(){let Z=C4();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function dZ(){let Z=C4();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||cZ.toString());if(W2&&Date.now()-w4<$)return W2;if(S4()){if(!d())return{}}try{let J=Q5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=J5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return W2=Q,w4=Date.now(),W2}catch(J){throw K(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function nZ(Z){return Z==="max"||Z==="pro"}function tZ(){let Z=v();return U()&&Z!==null&&nZ(Z)}function iZ(){if(q()!=="firstParty")return;let{source:$}=_0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=T4();else J.tokenSource=$;let{key:Q,source:X}=u0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let V=G2()?.organizationName;if(V)J.organization=V}let Y=G2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function lZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!U0())return{valid:!0};let Z=b("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await g0();let $=w();if(!$)return{valid:!0};let{source:J}=_0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await G0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
+
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
+
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
+
Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
+
different organization than required by this machine's managed settings.
|
|
8
|
+
|
|
9
|
+
Required organization: ${Z}
|
|
10
|
+
Token organization: ${Y}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var RZ=300000,I=null,c=null,D0=0,NZ=3600000,OZ=180000,X0,PZ=5000,EZ=3600000,vZ=180000,j5,B2,w,R4=0,r2,M0=null,W2=null,w4=0,cZ=1740000,M4;var n=B(()=>{jZ();u5();m0();b0();J2();a0();t();r();V0();v5();N4();E2();f5();p5();d5();t5();X4();W0();j0();g();A5();qZ();zZ();c0();WZ();GZ();z4();I2();q0();G4();VZ();B4();X0=X5(async()=>{let Z=await UZ(),$=await _Z();if(Z||$)await c5();return $},NZ);j5=X5(async()=>{return await kZ()},EZ);B2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=W4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=i();try{let Q=Q5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){K(Q)}}}let Z=F();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=r0();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=x2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return K($),null}});r2=new Map;M4=class M4 extends Error{}});function N0(Z){return Boolean(Z?.includes(H5))}function sZ(Z){return Z?.split(" ").filter(Boolean)??[]}function DQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:V,loginHint:W,loginMethod:G}){let x=X?N().CLAUDE_AI_AUTHORIZE_URL:N().CONSOLE_AUTHORIZE_URL,R=new URL(x);R.searchParams.append("code","true"),R.searchParams.append("client_id",N().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?N().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let Q0=Y?[H5]:f4;if(R.searchParams.append("scope",Q0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),V)R.searchParams.append("orgUUID",V);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function NQ(Z,$,J,Q,X=!1,Y){let V={grant_type:"authorization_code",code:Z,redirect_uri:X?N().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:N().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)V.expires_in=Y;let W=await O.post(N().TOKEN_URL,V,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return j("tengu_oauth_token_exchange_success",{}),W.data}async function D4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:N().CLIENT_ID,scope:(($?.length)?$:h4).join(" ")};try{let Q=await O.post(N().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:V=Z,expires_in:W}=X,G=Date.now()+W*1000,x=sZ(X.scope);j("tengu_oauth_token_refresh_success",{});let R=F(),Q0=w(),E=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&Q0?.subscriptionType!=null&&Q0?.rateLimitTier!=null?null:await oZ(Y);if(E&&R.oauthAccount){let s={};if(E.displayName!==void 0)s.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")s.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)s.billingType=E.billingType;if(E.accountCreatedAt!==void 0)s.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)s.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(s).length>0)M((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...s}:p0.oauthAccount}))}return{accessToken:Y,refreshToken:V,expiresAt:G,scopes:x,subscriptionType:E?.subscriptionType??Q0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??Q0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=O.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function UQ(Z){let $=await O.get(N().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!F().oauthAccount)throw Error("OAuth account information not found in config");M((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function OQ(Z){try{let $=await O.post(N().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await x5(J),j("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw j("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function A0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function oZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return j("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function _Q(){let $=F().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!J0())return null;let X=(await G0(J))?.organization?.uuid;if(!X)return null;return X}async function bQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!F().oauthAccount)A4({accountUuid:Z,emailAddress:$,organizationUuid:J})}await g0();let X=F();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!J0())return!1;let Y=w();if(Y?.accessToken){let V=await G0(Y.accessToken);if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return A4({accountUuid:V.account.uuid,emailAddress:V.account.email,organizationUuid:V.organization.uuid,displayName:V.account.display_name||void 0,hasExtraUsageEnabled:V.organization.has_extra_usage_enabled??!1,billingType:V.organization.billing_type??void 0,accountCreatedAt:V.account.created_at,subscriptionCreatedAt:V.organization.subscription_created_at??void 0}),!0}}return!1}function A4({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:V,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:V,subscriptionCreatedAt:W};if(Q)G.displayName=Q;M((x)=>{if(x.oauthAccount?.accountUuid===G.accountUuid&&x.oauthAccount?.emailAddress===G.emailAddress&&x.oauthAccount?.organizationUuid===G.organizationUuid&&x.oauthAccount?.displayName===G.displayName&&x.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&x.oauthAccount?.billingType===G.billingType&&x.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&x.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return x;return{...x,oauthAccount:G}})}var N4=B(()=>{s0();J2();b0();n();W0();j0();E2()});
|
|
16
|
+
export{R5 as e1,w5 as f1,Y3 as g1,V3 as h1,g4 as i1,c4 as j1,q3 as k1,D5 as l1,d0 as m1,n0 as n1,Y0 as o1,P2 as p1,q as q1,x3 as r1,B3 as s1,H3 as t1,R3 as u1,t as v1,H as w1,_3 as x1,a0 as y1,v3 as z1,I3 as A1,P5 as B1,S3 as C1,M3 as D1,v5 as E1,m3 as F1,G0 as G1,E2 as H1,N0 as I1,sZ as J1,DQ as K1,NQ as L1,D4 as M1,UQ as N1,OQ as O1,A0 as P1,oZ as Q1,_Q as R1,bQ as S1,A4 as T1,N4 as U1,s3 as V1,o4 as W1,I5 as X1,f5 as Y1,e0 as Z1,p5 as _1,J9 as $1,d5 as a2,S as b2,t5 as c2,P0 as d2,l5 as e2,a5 as f2,V9 as g2,q9 as h2,r5 as i2,W9 as j2,e5 as k2,z9 as l2,G9 as m2,j9 as n2,S2 as o2,A as p2,V1 as q2,$8 as r2,k9 as s2,v9 as t2,I9 as u2,q1 as v2,y9 as w2,T9 as x2,J8 as y2,C9 as z2,S9 as A2,M9 as B2,A9 as C2,h9 as D2,Y8 as E2,f9 as F2,u9 as G2,g9 as H2,p9 as I2,j1 as J2,y0 as K2,z8 as L2,G8 as M2,f2 as N2,F8 as O2,l9 as P2,w1 as Q2,F1 as R2,L8 as S2,u2 as T2,D1 as U2,N1 as V2,J$ as W2,O1 as X2,K$ as Y2,D$ as Z2,p2 as _2,N$ as $2,b8 as a3,w0 as b3,C0 as c3,v1 as d3,U$ as e3,v0 as f3,I1 as g3,_ as h3,P as i3,P8 as j3,O$ as k3,_1 as l3,I0 as m3,_$ as n3,y1 as o3,T1 as p3,b$ as q3,T as r3,P$ as s3,v8 as t3,E$ as u3,k$ as v3,v$ as w3,H0 as x3,y$ as y3,C1 as z3,g1 as A3,p8 as B3,m1 as C3,l$ as D3,a$ as E3,s$ as F3,L0 as G3,l as H3,o$ as I3,s8 as J3,r$ as K3,o8 as L3,e$ as M3,d2 as N3,a1 as O3,s1 as P3,FJ as Q3,JZ as R3,LJ as S3,KJ as T3,r1 as U3,DJ as V3,J4 as W3,QZ as X3,NJ as Y3,Q4 as Z3,X4 as _3,PJ as $3,EJ as a4,z4 as b4,o2 as c4,G4 as d4,IJ as e4,x4 as f4,B4 as g4,U0 as h4,_0 as i4,Z0 as j4,wZ as k4,u0 as l4,a as m4,V5 as n4,W5 as o4,_4 as p4,FZ as q4,b4 as r4,e2 as s4,KZ as t4,DZ as u4,P4 as v4,X0 as w4,bZ as x4,G5 as y4,E4 as z4,k4 as A4,j5 as B4,IZ as C4,yZ as D4,TZ as E4,B2 as F4,x5 as G4,SZ as H4,MZ as I4,I4 as J4,w as K4,B5 as L4,h2 as M4,h0 as N4,g0 as O4,U as P4,J0 as Q4,fZ as R4,G2 as S4,uZ as T4,gZ as U4,v as V4,X2 as W4,pZ as X4,Y2 as Y4,mZ as Z4,n2 as _4,y4 as $4,T4 as a5,j2 as b5,S4 as c5,dZ as d5,tZ as e5,iZ as f5,lZ as g5,aZ as h5,n as i5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Pn as Y,Zi as f}from"./cli-0.1.11-s8ygndzf.mjs";import{AX as _}from"./cli-0.1.11-50naxqgt.mjs";import{d4 as k,i5 as A,v1 as K}from"./cli-0.1.11-qbcfg80y.mjs";import{N8 as H,Qaa as v,Vba as x,n_ as T,q7 as w}from"./cli-0.1.11-v7bwjqf0.mjs";import{Vda as b,Xda as Q,Yda as q,Zda as V}from"./cli-0.1.11-h7e4rkwk.mjs";import{Pea as W}from"./cli-0.1.11-7qpnfx56.mjs";import{nfa as O}from"./cli-0.1.11-fag2wtke.mjs";import{ega as L}from"./cli-0.1.11-xwj7cmkj.mjs";import{Jga as U}from"./cli-0.1.11-vq5fvf9m.mjs";import{Vma as B,Zia as X}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as G}from"./cli-0.1.11-yrfxpjhr.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var z=G(()=>{B();W();A();f();x();w();U();H();K();T();v();X();k();_();O();L();Y();J()});
|
|
2
|
+
export{z as vc};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Pna as T,Rna as J5,Sna as M}from"./cli-0.1.11-yrfxpjhr.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
2
|
+
]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
|
|
3
|
+
Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
|
|
4
|
+
Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+F+`.
|
|
7
|
+
`);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
|
|
8
|
+
`);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
|
|
9
|
+
`}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
|
|
10
|
+
`;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
|
|
11
|
+
`}if(U+=R+`
|
|
12
|
+
`,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
|
|
13
|
+
`+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
|
|
14
|
+
`;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
|
|
15
|
+
export{T5 as He,X5 as Ie};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{FX as Y,HX as Z,MX as F}from"./cli-0.1.11-v6kwgrqc.mjs";import{P4 as x,S4 as L,V4 as H,i5 as f}from"./cli-0.1.11-qbcfg80y.mjs";import{G6 as w,p6 as X}from"./cli-0.1.11-d10nfa6g.mjs";import{A7 as v,B7 as T,Cba as Q,F7 as G,K7 as P,Vba as U,zba as q}from"./cli-0.1.11-v7bwjqf0.mjs";import{Oea as W,Pea as A}from"./cli-0.1.11-7qpnfx56.mjs";import{bha as K,eha as R}from"./cli-0.1.11-vq5fvf9m.mjs";import{Rna as O}from"./cli-0.1.11-yrfxpjhr.mjs";async function D(j="claude_code_guest_pass"){let{accessToken:B,orgUUID:z}=await Y(),J={...Z(B),"x-organization-uuid":z},M=`${W().BASE_API_URL}/api/oauth/organizations/${z}/referral/eligibility`;return(await X.get(M,{headers:J,params:{campaign:j},timeout:5000})).data}async function t(j="claude_code_guest_pass"){let{accessToken:B,orgUUID:z}=await Y(),J={...Z(B),"x-organization-uuid":z},M=`${W().BASE_API_URL}/api/oauth/organizations/${z}/referral/redemptions`;return(await X.get(M,{headers:J,params:{campaign:j},timeout:1e4})).data}function k(){return!!(L()?.organizationUuid&&x()&&H()==="max")}function i(){if(!k())return{eligible:!1,needsRefresh:!1,hasCache:!1};let j=L()?.organizationUuid;if(!j)return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=Q().passesEligibilityCache?.[j];if(!z)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:J,timestamp:M}=z,_=Date.now()-M>S;return{eligible:J,needsRefresh:_,hasCache:!0}}function n(j){let B=m[j.currency]??`${j.currency} `,z=j.amount_minor_units/100,J=z%1===0?z.toString():z.toFixed(2);return`${B}${J}`}function a(){let j=L()?.organizationUuid;if(!j)return null;return Q().passesEligibilityCache?.[j]?.referrer_reward??null}function s(){let j=L()?.organizationUuid;if(!j)return null;return Q().passesEligibilityCache?.[j]?.remaining_passes??null}async function $(){if(N)return K("Passes: Reusing in-flight eligibility fetch"),N;let j=L()?.organizationUuid;if(!j)return null;return N=(async()=>{try{let B=await D(),z={...B,timestamp:Date.now()};return q((J)=>({...J,passesEligibilityCache:{...J.passesEligibilityCache,[j]:z}})),K(`Passes eligibility cached for org ${j}: ${B.eligible}`),B}catch(B){return K("Failed to fetch and cache passes eligibility"),G(B),null}finally{N=null}})(),N}async function E(){if(!k())return null;let j=L()?.organizationUuid;if(!j)return null;let z=Q().passesEligibilityCache?.[j],J=Date.now();if(!z)return K("Passes: No cache, fetching eligibility in background (command unavailable this session)"),$(),null;if(J-z.timestamp>S){K("Passes: Cache stale, returning cached data and refreshing in background"),$();let{timestamp:_,...C}=z;return C}K("Passes: Using fresh cached eligibility data");let{timestamp:M,...V}=z;return V}async function g(){if(v())return;E()}var S=86400000,N=null,m;var b=O(()=>{w();A();f();U();R();P();T();F();m={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
+
export{t as SR,i as TR,n as UR,a as VR,s as WR,E as XR,g as YR,b as ZR};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import{aS as Q0,bS as L0}from"./cli-0.1.11-d4ahh3jz.mjs";import{RS as l,TS as Z0,US as P0,WS as J0,cT as U0,dT as M0}from"./cli-0.1.11-h02tyg8p.mjs";import{AU as q0,QU as G,SU as W,eT as E,vV as h,zU as j}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as O}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as d}from"./cli-0.1.11-x37jysc0.mjs";import{dga as u,ega as Y0}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as Z,Rna as I}from"./cli-0.1.11-yrfxpjhr.mjs";function s(U,N,P){let z=l(),Q=z?.getDisplayText(U,N),X=Q===void 0,R=z?"action_not_found":"no_context",J=T.useRef(!1);return T.useEffect(()=>{if(X&&!J.current)J.current=!0,u("tengu_keybinding_fallback_used",{action:U,context:N,fallback:P,reason:R})},[X,U,N,P,R]),X?P:Q}var T;var a=I(()=>{Y0();Z0();T=Z(d(),1)});function y(U){let N=r.c(9),{shortcut:P,action:z,parens:Q,bold:X}=U,R=Q===void 0?!1:Q,J=X===void 0?!1:X,M;if(N[0]!==J||N[1]!==P)M=J?p.jsxDEV(j,{bold:!0,children:P},void 0,!1,void 0,this):P,N[0]=J,N[1]=P,N[2]=M;else M=N[2];let Y=M;if(R){let L;if(N[3]!==z||N[4]!==Y)L=p.jsxDEV(j,{children:["(",Y," to ",z,")"]},void 0,!0,void 0,this),N[3]=z,N[4]=Y,N[5]=L;else L=N[5];return L}let F;if(N[6]!==z||N[7]!==Y)F=p.jsxDEV(j,{children:[Y," to ",z]},void 0,!0,void 0,this),N[6]=z,N[7]=Y,N[8]=F;else F=N[8];return F}var r,p;var b=I(()=>{q0();r=Z(E(),1),p=Z(O(),1)});function o(U){let N=c.c(5),{children:P}=U,z,Q;if(N[0]!==P){Q=Symbol.for("react.early_return_sentinel");N:{let R=v.Children.toArray(P);if(R.length===0){Q=null;break N}z=R.map(R0)}N[0]=P,N[1]=z,N[2]=Q}else z=N[1],Q=N[2];if(Q!==Symbol.for("react.early_return_sentinel"))return Q;let X;if(N[3]!==z)X=K.jsxDEV(K.Fragment,{children:z},void 0,!1,void 0,this),N[3]=z,N[4]=X;else X=N[4];return X}function R0(U,N){return K.jsxDEV(v.default.Fragment,{children:[N>0&&K.jsxDEV(W,{dimColor:!0,children:" · "},void 0,!1,void 0,this),U]},v.isValidElement(U)?U.key??N:N,!0,void 0,this)}var c,v,K;var n=I(()=>{h();c=Z(E(),1),v=Z(d(),1),K=Z(O(),1)});function e(U){let N=i.c(5),{action:P,context:z,fallback:Q,description:X,parens:R,bold:J}=U,M=s(P,z,Q),Y;if(N[0]!==J||N[1]!==X||N[2]!==R||N[3]!==M)Y=t.jsxDEV(y,{shortcut:M,action:X,parens:R,bold:J},void 0,!1,void 0,this),N[0]=J,N[1]=X,N[2]=R,N[3]=M,N[4]=Y;else Y=N[4];return Y}var i,t;var N0=I(()=>{a();b();i=Z(E(),1),t=Z(O(),1)});function $({children:U}){return x.jsxDEV(G,{flexDirection:"row",width:"100%",children:[U,x.jsxDEV(G,{flexGrow:1},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var x;var z0=I(()=>{h();x=Z(O(),1)});function E0(U){let N=X0.c(27),{title:P,subtitle:z,children:Q,onCancel:X,color:R,hideInputGuide:J,hideBorder:M,inputGuide:Y,isCancelActive:F}=U,L=R===void 0?"permission":R,C=F===void 0?!0:F,A=Q0(void 0,void 0,C),D;if(N[0]!==C)D={context:"Confirmation",isActive:C},N[0]=C,N[1]=D;else D=N[1];P0("confirm:no",X,D);let V;if(N[2]!==A.keyName||N[3]!==A.pending)V=A.pending?q.jsxDEV(W,{children:["Press ",A.keyName," again to exit"]},void 0,!0,void 0,this):q.jsxDEV(o,{children:[q.jsxDEV(y,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),q.jsxDEV(e,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N[2]=A.keyName,N[3]=A.pending,N[4]=V;else V=N[4];let m=V,w;if(N[5]!==L||N[6]!==P)w=q.jsxDEV(W,{bold:!0,color:L,children:P},void 0,!1,void 0,this),N[5]=L,N[6]=P,N[7]=w;else w=N[7];let _;if(N[8]!==z)_=z&&q.jsxDEV(W,{dimColor:!0,children:z},void 0,!1,void 0,this),N[8]=z,N[9]=_;else _=N[9];let B;if(N[10]!==w||N[11]!==_)B=q.jsxDEV(G,{flexDirection:"column",children:[w,_]},void 0,!0,void 0,this),N[10]=w,N[11]=_,N[12]=B;else B=N[12];let H;if(N[13]!==Q||N[14]!==B)H=q.jsxDEV(G,{flexDirection:"column",gap:1,children:[B,Q]},void 0,!0,void 0,this),N[13]=Q,N[14]=B,N[15]=H;else H=N[15];let k;if(N[16]!==m||N[17]!==A||N[18]!==J||N[19]!==Y)k=!J&&q.jsxDEV(G,{marginTop:1,children:q.jsxDEV($,{children:q.jsxDEV(W,{dimColor:!0,italic:!0,children:Y?Y(A):m},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N[16]=m,N[17]=A,N[18]=J,N[19]=Y,N[20]=k;else k=N[20];let S;if(N[21]!==H||N[22]!==k)S=q.jsxDEV(q.Fragment,{children:[H,k]},void 0,!0,void 0,this),N[21]=H,N[22]=k,N[23]=S;else S=N[23];let g=S;if(M)return g;let f;if(N[24]!==L||N[25]!==g)f=q.jsxDEV(U0,{color:L,children:g},void 0,!1,void 0,this),N[24]=L,N[25]=g,N[26]=f;else f=N[26];return f}var X0,q;var O0=I(()=>{L0();h();J0();N0();n();z0();b();M0();X0=Z(E(),1),q=Z(O(),1)});function h0(){return`# Claude in Chrome browser automation
|
|
2
|
+
|
|
3
|
+
You have access to browser automation tools (mcp__claude-in-chrome__*) for interacting with web pages in Chrome. Follow these guidelines for effective browser automation.
|
|
4
|
+
|
|
5
|
+
## GIF recording
|
|
6
|
+
|
|
7
|
+
When performing multi-step browser interactions that the user may want to review or share, use mcp__claude-in-chrome__gif_creator to record them.
|
|
8
|
+
|
|
9
|
+
You must ALWAYS:
|
|
10
|
+
* Capture extra frames before and after taking actions to ensure smooth playback
|
|
11
|
+
* Name the file meaningfully to help the user identify it later (e.g., "login_process.gif")
|
|
12
|
+
|
|
13
|
+
## Console log debugging
|
|
14
|
+
|
|
15
|
+
You can use mcp__claude-in-chrome__read_console_messages to read console output. Console output may be verbose. If you are looking for specific log entries, use the 'pattern' parameter with a regex-compatible pattern. This filters results efficiently and avoids overwhelming output. For example, use pattern: "[MyApp]" to filter for application-specific logs rather than reading all console output.
|
|
16
|
+
|
|
17
|
+
## Alerts and dialogs
|
|
18
|
+
|
|
19
|
+
IMPORTANT: Do not trigger JavaScript alerts, confirms, prompts, or browser modal dialogs through your actions. These browser dialogs block all further browser events and will prevent the extension from receiving any subsequent commands. Instead, when possible, use console.log for debugging and then use the mcp__claude-in-chrome__read_console_messages tool to read those log messages. If a page has dialog-triggering elements:
|
|
20
|
+
1. Avoid clicking buttons or links that may trigger alerts (e.g., "Delete" buttons with confirmation dialogs)
|
|
21
|
+
2. If you must interact with such elements, warn the user first that this may interrupt the session
|
|
22
|
+
3. Use mcp__claude-in-chrome__javascript_tool to check for and dismiss any existing dialogs before proceeding
|
|
23
|
+
|
|
24
|
+
If you accidentally trigger a dialog and lose responsiveness, inform the user they need to manually dismiss it in the browser.
|
|
25
|
+
|
|
26
|
+
## Avoid rabbit holes and loops
|
|
27
|
+
|
|
28
|
+
When using browser automation tools, stay focused on the specific task. If you encounter any of the following, stop and ask the user for guidance:
|
|
29
|
+
- Unexpected complexity or tangential browser exploration
|
|
30
|
+
- Browser tool calls failing or returning errors after 2-3 attempts
|
|
31
|
+
- No response from the browser extension
|
|
32
|
+
- Page elements not responding to clicks or input
|
|
33
|
+
- Pages not loading or timing out
|
|
34
|
+
- Unable to complete the browser task despite multiple approaches
|
|
35
|
+
|
|
36
|
+
Explain what you attempted, what went wrong, and ask how the user would like to proceed. Do not keep retrying the same failing browser action or explore unrelated pages without checking in first.
|
|
37
|
+
|
|
38
|
+
## Tab context and session startup
|
|
39
|
+
|
|
40
|
+
IMPORTANT: At the start of each browser automation session, call mcp__claude-in-chrome__tabs_context_mcp first to get information about the user's current browser tabs. Use this context to understand what the user might want to work with before creating new tabs.
|
|
41
|
+
|
|
42
|
+
Never reuse tab IDs from a previous/other session. Follow these guidelines:
|
|
43
|
+
1. Only reuse an existing tab if the user explicitly asks to work with it
|
|
44
|
+
2. Otherwise, create a new tab with mcp__claude-in-chrome__tabs_create_mcp
|
|
45
|
+
3. If a tool returns an error indicating the tab doesn't exist or is invalid, call tabs_context_mcp to get fresh tab IDs
|
|
46
|
+
4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available`}var m0=`# Claude in Chrome browser automation
|
|
47
|
+
|
|
48
|
+
You have access to browser automation tools (mcp__claude-in-chrome__*) for interacting with web pages in Chrome. Follow these guidelines for effective browser automation.
|
|
49
|
+
|
|
50
|
+
## GIF recording
|
|
51
|
+
|
|
52
|
+
When performing multi-step browser interactions that the user may want to review or share, use mcp__claude-in-chrome__gif_creator to record them.
|
|
53
|
+
|
|
54
|
+
You must ALWAYS:
|
|
55
|
+
* Capture extra frames before and after taking actions to ensure smooth playback
|
|
56
|
+
* Name the file meaningfully to help the user identify it later (e.g., "login_process.gif")
|
|
57
|
+
|
|
58
|
+
## Console log debugging
|
|
59
|
+
|
|
60
|
+
You can use mcp__claude-in-chrome__read_console_messages to read console output. Console output may be verbose. If you are looking for specific log entries, use the 'pattern' parameter with a regex-compatible pattern. This filters results efficiently and avoids overwhelming output. For example, use pattern: "[MyApp]" to filter for application-specific logs rather than reading all console output.
|
|
61
|
+
|
|
62
|
+
## Alerts and dialogs
|
|
63
|
+
|
|
64
|
+
IMPORTANT: Do not trigger JavaScript alerts, confirms, prompts, or browser modal dialogs through your actions. These browser dialogs block all further browser events and will prevent the extension from receiving any subsequent commands. Instead, when possible, use console.log for debugging and then use the mcp__claude-in-chrome__read_console_messages tool to read those log messages. If a page has dialog-triggering elements:
|
|
65
|
+
1. Avoid clicking buttons or links that may trigger alerts (e.g., "Delete" buttons with confirmation dialogs)
|
|
66
|
+
2. If you must interact with such elements, warn the user first that this may interrupt the session
|
|
67
|
+
3. Use mcp__claude-in-chrome__javascript_tool to check for and dismiss any existing dialogs before proceeding
|
|
68
|
+
|
|
69
|
+
If you accidentally trigger a dialog and lose responsiveness, inform the user they need to manually dismiss it in the browser.
|
|
70
|
+
|
|
71
|
+
## Avoid rabbit holes and loops
|
|
72
|
+
|
|
73
|
+
When using browser automation tools, stay focused on the specific task. If you encounter any of the following, stop and ask the user for guidance:
|
|
74
|
+
- Unexpected complexity or tangential browser exploration
|
|
75
|
+
- Browser tool calls failing or returning errors after 2-3 attempts
|
|
76
|
+
- No response from the browser extension
|
|
77
|
+
- Page elements not responding to clicks or input
|
|
78
|
+
- Pages not loading or timing out
|
|
79
|
+
- Unable to complete the browser task despite multiple approaches
|
|
80
|
+
|
|
81
|
+
Explain what you attempted, what went wrong, and ask how the user would like to proceed. Do not keep retrying the same failing browser action or explore unrelated pages without checking in first.
|
|
82
|
+
|
|
83
|
+
## Tab context and session startup
|
|
84
|
+
|
|
85
|
+
IMPORTANT: At the start of each browser automation session, call mcp__claude-in-chrome__tabs_context_mcp first to get information about the user's current browser tabs. Use this context to understand what the user might want to work with before creating new tabs.
|
|
86
|
+
|
|
87
|
+
Never reuse tab IDs from a previous/other session. Follow these guidelines:
|
|
88
|
+
1. Only reuse an existing tab if the user explicitly asks to work with it
|
|
89
|
+
2. Otherwise, create a new tab with mcp__claude-in-chrome__tabs_create_mcp
|
|
90
|
+
3. If a tool returns an error indicating the tab doesn't exist or is invalid, call tabs_context_mcp to get fresh tab IDs
|
|
91
|
+
4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available`,b0=`**IMPORTANT: Before using any chrome browser tools, you MUST first load them using ToolSearch.**
|
|
92
|
+
|
|
93
|
+
Chrome browser tools are MCP tools that require loading before use. Before calling any mcp__claude-in-chrome__* tool:
|
|
94
|
+
1. Use ToolSearch with \`select:mcp__claude-in-chrome__<tool_name>\` to load the specific tool
|
|
95
|
+
2. Then call the tool
|
|
96
|
+
|
|
97
|
+
For example, to get tab context:
|
|
98
|
+
1. First: ToolSearch with query "select:mcp__claude-in-chrome__tabs_context_mcp"
|
|
99
|
+
2. Then: Call mcp__claude-in-chrome__tabs_context_mcp`,x0='**Browser Automation**: Chrome browser tools are available via the "claude-in-chrome" skill. CRITICAL: Before using any mcp__claude-in-chrome__* tools, invoke the skill by calling the Skill tool with skill: "claude-in-chrome". The skill provides browser automation instructions and enables the tools.';var A0=()=>{};
|
|
100
|
+
export{s as BP,a as CP,y as DP,b as EP,e as FP,N0 as GP,o as HP,n as IP,$ as JP,z0 as KP,E0 as LP,O0 as MP,m0 as NP,b0 as OP,h0 as PP,x0 as QP,A0 as RP};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ac as x,Bc as o}from"./cli-0.1.11-at3c85af.mjs";import{BB as M,CB as l,Fq as Z,Hq as v,IF as O,JF as a,Jz as y,Kz as u,Ql as Y,Tz as K,UF as R,Vz as m,Wl as g,XF as i,Yy as $,_G as W,bH as t,cz as d}from"./cli-0.1.11-s8ygndzf.mjs";import{F7 as X,K7 as h}from"./cli-0.1.11-v7bwjqf0.mjs";import{Dga as V,Jga as f,bha as I,eha as c}from"./cli-0.1.11-vq5fvf9m.mjs";import{Vma as _,gja as U}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as C}from"./cli-0.1.11-yrfxpjhr.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),M();let G=await W(),[E,F]=await Promise.all([O(),Y(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Z(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await y(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),K();let N=!1;try{await $()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();m();o();g();c();f();h();i();a();d();u();v();l();t()});
|
|
2
|
+
export{Lj as wc,p as xc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{D$ as D,E$ as T,P8 as $,R8 as O,S7 as V,U7 as P,k8 as k,m8 as E}from"./cli-0.1.11-v7bwjqf0.mjs";import{Hga as x,Jga as C,bha as Z,eha as N}from"./cli-0.1.11-vq5fvf9m.mjs";import{Rna as B}from"./cli-0.1.11-yrfxpjhr.mjs";import{readdirSync as y}from"fs";import{stat as W}from"fs/promises";import{homedir as F,platform as H,tmpdir as _,userInfo as M}from"os";import{join as J}from"path";function i(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z],Q;switch(v){case"macos":Q=j.macos.dataPath;break;case"linux":case"wsl":Q=j.linux.dataPath;break;case"windows":{if(j.windows.dataPath.length>0){let Y=j.windows.useRoaming?J(G,"AppData","Roaming"):J(G,"AppData","Local");q.push({browser:z,path:J(Y,...j.windows.dataPath)})}continue}}if(Q&&Q.length>0)q.push({browser:z,path:J(G,...Q)})}return q}function c(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z];switch(v){case"macos":if(j.macos.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.macos.nativeMessagingPath)});break;case"linux":case"wsl":if(j.linux.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.linux.nativeMessagingPath)});break;case"windows":break}}return q}function t(){let v=[];for(let G of X){let q=K[G];if(q.windows.registryKey)v.push({browser:G,key:q.windows.registryKey})}return v}async function w(){let v=$();for(let G of X){let q=K[G];switch(v){case"macos":{let z=`/Applications/${q.macos.appName}.app`;try{if((await W(z)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(j){if(!x(j))throw j}break}case"wsl":case"linux":{for(let z of q.linux.binaries)if(await k(z).catch(()=>null))return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G;break}case"windows":{let z=F();if(q.windows.dataPath.length>0){let j=q.windows.useRoaming?J(z,"AppData","Roaming"):J(z,"AppData","Local"),Q=J(j,...q.windows.dataPath);try{if((await W(Q)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(Y){if(!x(Y))throw Y}}break}}}return null}function r(v){return D(v)===S}function o(v){if(L.size>=R&&!L.has(v))L.clear();L.add(v)}async function a(v){let G=$(),q=await w();if(!q)return Z("[Claude in Chrome] No compatible browser found"),!1;let z=K[q];switch(G){case"macos":{let{code:j}=await V("open",["-a",z.macos.appName,v]);return j===0}case"windows":{let{code:j}=await V("rundll32",["url,OpenURL",v]);return j===0}case"wsl":case"linux":{for(let j of z.linux.binaries){let{code:Q}=await V(j,[v]);if(Q===0)return!0}return!1}default:return!1}}function U(){return`/tmp/claude-mcp-browser-bridge-${A()}`}function e(){if(H()==="win32")return`\\\\.\\pipe\\${u()}`;return J(U(),`${process.pid}.sock`)}function jj(){if(H()==="win32")return[`\\\\.\\pipe\\${u()}`];let v=[],G=U();try{let Q=y(G);for(let Y of Q)if(Y.endsWith(".sock"))v.push(J(G,Y))}catch{}let q=`claude-mcp-browser-bridge-${A()}`,z=J(_(),q),j=`/tmp/${q}`;if(!v.includes(z))v.push(z);if(z!==j&&!v.includes(j))v.push(j);return v}function u(){return`claude-mcp-browser-bridge-${A()}`}function A(){try{return M().username||"default"}catch{return process.env.USER||process.env.USERNAME||"default"}}var S="claude-in-chrome",K,X,R=200,L;var b=B(()=>{T();N();C();P();O();E();K={chrome:{name:"Google Chrome",macos:{appName:"Google Chrome",dataPath:["Library","Application Support","Google","Chrome"],nativeMessagingPath:["Library","Application Support","Google","Chrome","NativeMessagingHosts"]},linux:{binaries:["google-chrome","google-chrome-stable"],dataPath:[".config","google-chrome"],nativeMessagingPath:[".config","google-chrome","NativeMessagingHosts"]},windows:{dataPath:["Google","Chrome","User Data"],registryKey:"HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts"}},brave:{name:"Brave",macos:{appName:"Brave Browser",dataPath:["Library","Application Support","BraveSoftware","Brave-Browser"],nativeMessagingPath:["Library","Application Support","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},linux:{binaries:["brave-browser","brave"],dataPath:[".config","BraveSoftware","Brave-Browser"],nativeMessagingPath:[".config","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},windows:{dataPath:["BraveSoftware","Brave-Browser","User Data"],registryKey:"HKCU\\Software\\BraveSoftware\\Brave-Browser\\NativeMessagingHosts"}},arc:{name:"Arc",macos:{appName:"Arc",dataPath:["Library","Application Support","Arc","User Data"],nativeMessagingPath:["Library","Application Support","Arc","User Data","NativeMessagingHosts"]},linux:{binaries:[],dataPath:[],nativeMessagingPath:[]},windows:{dataPath:["Arc","User Data"],registryKey:"HKCU\\Software\\ArcBrowser\\Arc\\NativeMessagingHosts"}},chromium:{name:"Chromium",macos:{appName:"Chromium",dataPath:["Library","Application Support","Chromium"],nativeMessagingPath:["Library","Application Support","Chromium","NativeMessagingHosts"]},linux:{binaries:["chromium","chromium-browser"],dataPath:[".config","chromium"],nativeMessagingPath:[".config","chromium","NativeMessagingHosts"]},windows:{dataPath:["Chromium","User Data"],registryKey:"HKCU\\Software\\Chromium\\NativeMessagingHosts"}},edge:{name:"Microsoft Edge",macos:{appName:"Microsoft Edge",dataPath:["Library","Application Support","Microsoft Edge"],nativeMessagingPath:["Library","Application Support","Microsoft Edge","NativeMessagingHosts"]},linux:{binaries:["microsoft-edge","microsoft-edge-stable"],dataPath:[".config","microsoft-edge"],nativeMessagingPath:[".config","microsoft-edge","NativeMessagingHosts"]},windows:{dataPath:["Microsoft","Edge","User Data"],registryKey:"HKCU\\Software\\Microsoft\\Edge\\NativeMessagingHosts"}},vivaldi:{name:"Vivaldi",macos:{appName:"Vivaldi",dataPath:["Library","Application Support","Vivaldi"],nativeMessagingPath:["Library","Application Support","Vivaldi","NativeMessagingHosts"]},linux:{binaries:["vivaldi","vivaldi-stable"],dataPath:[".config","vivaldi"],nativeMessagingPath:[".config","vivaldi","NativeMessagingHosts"]},windows:{dataPath:["Vivaldi","User Data"],registryKey:"HKCU\\Software\\Vivaldi\\NativeMessagingHosts"}},opera:{name:"Opera",macos:{appName:"Opera",dataPath:["Library","Application Support","com.operasoftware.Opera"],nativeMessagingPath:["Library","Application Support","com.operasoftware.Opera","NativeMessagingHosts"]},linux:{binaries:["opera"],dataPath:[".config","opera"],nativeMessagingPath:[".config","opera","NativeMessagingHosts"]},windows:{dataPath:["Opera Software","Opera Stable"],registryKey:"HKCU\\Software\\Opera Software\\Opera Stable\\NativeMessagingHosts",useRoaming:!0}}},X=["chrome","brave","arc","edge","chromium","vivaldi","opera"];L=new Set});
|
|
2
|
+
export{S as SW,i as TW,c as UW,t as VW,r as WW,o as XW,a as YW,U as ZW,e as _W,jj as $W,b as aX};
|