@claudiolabs/claudin 1.1.13 → 1.1.15
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/README.md +15 -0
- package/dist/chunks/AgentTool-1.1.15-gx8fc8ee.mjs +1 -0
- package/dist/chunks/App-1.1.15-qpr6dmbc.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.15-rtnhqcns.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.15-s7er4t5d.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.15-kr2k1h8a.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.15-hw9nhwyy.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.15-0x92en6s.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.15-d6xm1gwy.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.15-c7mf2z38.mjs +6 -0
- package/dist/chunks/Doctor-1.1.15-0epyn26c.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.15-ctfaxbr1.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.15-e0tff61r.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.15-yd169vrz.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.15-n45xnvpn.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.15-k01hesh9.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.15-asr4k8v7.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.15-hrth7zcv.mjs +1 -0
- package/dist/chunks/REPL-1.1.15-zbv78tw9.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.15-nx65m66j.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.15-ywaycst9.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.15-etyznx6r.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.15-0fg2psza.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.15-rse3qrff.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.15-v5yc09rw.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.15-yf6w94dh.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.15-8wp0rdty.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.15-gsenj0tc.mjs +1 -0
- package/dist/chunks/add-dir-1.1.15-gdh1b8nf.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.15-j0xgsz6j.mjs +1 -0
- package/dist/chunks/agents-1.1.15-5492tnsb.mjs +3 -0
- package/dist/chunks/agents-1.1.15-7hc1h2ch.mjs +110 -0
- package/dist/chunks/api-1.1.15-xk3v2kp8.mjs +1 -0
- package/dist/chunks/asciicast-1.1.15-e2v4yew0.mjs +1 -0
- package/dist/chunks/assistant-1.1.15-nw8cp5g9.mjs +1 -0
- package/dist/chunks/auth-1.1.15-e4p3txt8.mjs +1 -0
- package/dist/chunks/auth-1.1.15-mwc856q9.mjs +1 -0
- package/dist/chunks/autoMode-1.1.15-a9fb2v1b.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.15-5wavzb5n.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.15-83x041z8.mjs +1 -0
- package/dist/chunks/branch-1.1.15-91a0yyws.mjs +4 -0
- package/dist/chunks/bridge-1.1.15-5da0fvad.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.15-tg57j3bm.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.15-d4nwdh4g.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.15-rmb5208z.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.15-rn0mx8rq.mjs +1 -0
- package/dist/chunks/btw-1.1.15-0jmj5h91.mjs +1 -0
- package/dist/chunks/buddy-1.1.15-smncbttv.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.15-tcd6d5ha.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.15-nhmnthg5.mjs +4 -0
- package/dist/chunks/caches-1.1.15-ef0rrkeh.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.15-mhq3r4nw.mjs +1 -0
- package/dist/chunks/claudemd-1.1.15-khb8ybx5.mjs +1 -0
- package/dist/chunks/clear-1.1.15-8pawqyx1.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.15-xt8nj2kp.mjs +1 -0
- package/dist/chunks/cli-1.1.15-08shmxg9.mjs +2 -0
- package/dist/chunks/cli-1.1.15-0dyh92xq.mjs +2 -0
- package/dist/chunks/cli-1.1.15-0h2kcmr1.mjs +18 -0
- package/dist/chunks/cli-1.1.15-0pfa5bmf.mjs +2 -0
- package/dist/chunks/cli-1.1.15-0rfyjnzd.mjs +2 -0
- package/dist/chunks/cli-1.1.15-0we6hqxv.mjs +2 -0
- package/dist/chunks/cli-1.1.15-10px11sw.mjs +3 -0
- package/dist/chunks/cli-1.1.15-13a7c1kp.mjs +42 -0
- package/dist/chunks/cli-1.1.15-1686x3bq.mjs +2 -0
- package/dist/chunks/cli-1.1.15-180mwt3m.mjs +12 -0
- package/dist/chunks/cli-1.1.15-198p1q51.mjs +2 -0
- package/dist/chunks/cli-1.1.15-1dxkde62.mjs +24 -0
- package/dist/chunks/cli-1.1.15-1j51w5q4.mjs +2 -0
- package/dist/chunks/cli-1.1.15-1kjb39xj.mjs +2 -0
- package/dist/chunks/cli-1.1.15-23s6jgky.mjs +2 -0
- package/dist/chunks/cli-1.1.15-28rcg0zk.mjs +2 -0
- package/dist/chunks/cli-1.1.15-2a8j57jc.mjs +3 -0
- package/dist/chunks/cli-1.1.15-2cqj7ng5.mjs +2 -0
- package/dist/chunks/cli-1.1.15-2ds94snw.mjs +2 -0
- package/dist/chunks/cli-1.1.15-2h049njx.mjs +2 -0
- package/dist/chunks/cli-1.1.15-2hm1vd94.mjs +2 -0
- package/dist/chunks/cli-1.1.15-2y7wsmne.mjs +4 -0
- package/dist/chunks/cli-1.1.15-336vzqmv.mjs +2 -0
- package/dist/chunks/cli-1.1.15-37qaz9g1.mjs +2 -0
- package/dist/chunks/cli-1.1.15-3ehpt6h2.mjs +2 -0
- package/dist/chunks/cli-1.1.15-3j79dbx9.mjs +2 -0
- package/dist/chunks/cli-1.1.15-3rdskywh.mjs +39 -0
- package/dist/chunks/cli-1.1.15-3vx70sys.mjs +24 -0
- package/dist/chunks/cli-1.1.15-49wq39yd.mjs +2 -0
- package/dist/chunks/cli-1.1.15-4efmr7vy.mjs +2 -0
- package/dist/chunks/cli-1.1.15-4gknk1rg.mjs +18 -0
- package/dist/chunks/cli-1.1.15-4hpce0rc.mjs +2 -0
- package/dist/chunks/cli-1.1.15-4yp9xqth.mjs +2 -0
- package/dist/chunks/cli-1.1.15-59jq5mvw.mjs +2 -0
- package/dist/chunks/cli-1.1.15-59t4k8sr.mjs +66 -0
- package/dist/chunks/cli-1.1.15-5cr53mcj.mjs +2 -0
- package/dist/chunks/cli-1.1.15-5gp5r54s.mjs +58 -0
- package/dist/chunks/cli-1.1.15-657rhkrw.mjs +4 -0
- package/dist/chunks/cli-1.1.15-6g08vy98.mjs +2 -0
- package/dist/chunks/cli-1.1.15-6txc31rr.mjs +2 -0
- package/dist/chunks/cli-1.1.15-6w168zj1.mjs +2 -0
- package/dist/chunks/cli-1.1.15-716m1dh6.mjs +3 -0
- package/dist/chunks/cli-1.1.15-736kw6rq.mjs +2 -0
- package/dist/chunks/cli-1.1.15-78j1ffsw.mjs +2 -0
- package/dist/chunks/cli-1.1.15-7enkgabc.mjs +2 -0
- package/dist/chunks/cli-1.1.15-7g1qck6b.mjs +2 -0
- package/dist/chunks/cli-1.1.15-7pdnxwtt.mjs +2 -0
- package/dist/chunks/cli-1.1.15-7sppxsya.mjs +2 -0
- package/dist/chunks/cli-1.1.15-7z4ctjx7.mjs +4 -0
- package/dist/chunks/cli-1.1.15-82j4qb2a.mjs +2 -0
- package/dist/chunks/cli-1.1.15-83qj7w53.mjs +2 -0
- package/dist/chunks/cli-1.1.15-89z8afvw.mjs +2 -0
- package/dist/chunks/cli-1.1.15-8mpc9ecv.mjs +2 -0
- package/dist/chunks/cli-1.1.15-8w8262sk.mjs +2 -0
- package/dist/chunks/cli-1.1.15-937n7y0j.mjs +2 -0
- package/dist/chunks/cli-1.1.15-9ec5jmz5.mjs +2 -0
- package/dist/chunks/cli-1.1.15-9mbbz0a1.mjs +6 -0
- package/dist/chunks/cli-1.1.15-9vzy8b6c.mjs +2 -0
- package/dist/chunks/cli-1.1.15-a2yw7vw1.mjs +2 -0
- package/dist/chunks/cli-1.1.15-a3xwxptj.mjs +3 -0
- package/dist/chunks/cli-1.1.15-a6p2wwtc.mjs +2 -0
- package/dist/chunks/cli-1.1.15-a9y6yf7g.mjs +45 -0
- package/dist/chunks/cli-1.1.15-ae2hn1xh.mjs +12 -0
- package/dist/chunks/cli-1.1.15-akhz6et5.mjs +3 -0
- package/dist/chunks/cli-1.1.15-arysgyep.mjs +3 -0
- package/dist/chunks/cli-1.1.15-axdksp5m.mjs +15 -0
- package/dist/chunks/cli-1.1.15-b16e0ajk.mjs +5440 -0
- package/dist/chunks/cli-1.1.15-ba6p63pk.mjs +2 -0
- package/dist/chunks/cli-1.1.15-baktd8w0.mjs +8 -0
- package/dist/chunks/cli-1.1.15-bhxf1gde.mjs +2 -0
- package/dist/chunks/cli-1.1.15-bkenrcdp.mjs +9 -0
- package/dist/chunks/cli-1.1.15-bkk9d70e.mjs +2 -0
- package/dist/chunks/cli-1.1.15-c0e6k21y.mjs +2 -0
- package/dist/chunks/cli-1.1.15-c6h2gge7.mjs +202 -0
- package/dist/chunks/cli-1.1.15-c74jnte8.mjs +6 -0
- package/dist/chunks/cli-1.1.15-c985ap3y.mjs +2 -0
- package/dist/chunks/cli-1.1.15-cagegn51.mjs +2 -0
- package/dist/chunks/cli-1.1.15-chxsepr7.mjs +2 -0
- package/dist/chunks/cli-1.1.15-cj6zmtng.mjs +2 -0
- package/dist/chunks/cli-1.1.15-cvwkywg9.mjs +2 -0
- package/dist/chunks/cli-1.1.15-cx3reatp.mjs +4 -0
- package/dist/chunks/cli-1.1.15-czbvbd5n.mjs +2 -0
- package/dist/chunks/cli-1.1.15-d4stmd3a.mjs +2 -0
- package/dist/chunks/cli-1.1.15-d4xme5sm.mjs +15 -0
- package/dist/chunks/cli-1.1.15-dbnqj3tk.mjs +2 -0
- package/dist/chunks/cli-1.1.15-dpxcysrc.mjs +2 -0
- package/dist/chunks/cli-1.1.15-dv1zb375.mjs +4 -0
- package/dist/chunks/cli-1.1.15-dw51tkmc.mjs +3 -0
- package/dist/chunks/cli-1.1.15-e0wdjxcm.mjs +2 -0
- package/dist/chunks/cli-1.1.15-e69gmp99.mjs +2 -0
- package/dist/chunks/cli-1.1.15-e7t7w0n4.mjs +2 -0
- package/dist/chunks/cli-1.1.15-emegjc48.mjs +2 -0
- package/dist/chunks/cli-1.1.15-engyyzpk.mjs +2 -0
- package/dist/chunks/cli-1.1.15-erwqj4vs.mjs +34 -0
- package/dist/chunks/cli-1.1.15-evwsdckr.mjs +2 -0
- package/dist/chunks/cli-1.1.15-ewmcb0r7.mjs +133 -0
- package/dist/chunks/cli-1.1.15-ez7210ck.mjs +2 -0
- package/dist/chunks/cli-1.1.15-f0xy8ndf.mjs +2 -0
- package/dist/chunks/cli-1.1.15-f146m97m.mjs +2 -0
- package/dist/chunks/cli-1.1.15-f9eqbjqc.mjs +2 -0
- package/dist/chunks/cli-1.1.15-fcgk3maq.mjs +3 -0
- package/dist/chunks/cli-1.1.15-ffs08nv9.mjs +2 -0
- package/dist/chunks/cli-1.1.15-fk3ac4gc.mjs +2 -0
- package/dist/chunks/cli-1.1.15-fm6herjr.mjs +2 -0
- package/dist/chunks/cli-1.1.15-fnh28phg.mjs +24 -0
- package/dist/chunks/cli-1.1.15-fr6qfqgh.mjs +2 -0
- package/dist/chunks/cli-1.1.15-fyy1ehtf.mjs +3 -0
- package/dist/chunks/cli-1.1.15-g7tjhqzb.mjs +2 -0
- package/dist/chunks/cli-1.1.15-g9e4rkeg.mjs +2 -0
- package/dist/chunks/cli-1.1.15-gbrgyagf.mjs +7 -0
- package/dist/chunks/cli-1.1.15-gk6d4ahd.mjs +21 -0
- package/dist/chunks/cli-1.1.15-gngz1xbk.mjs +6 -0
- package/dist/chunks/cli-1.1.15-gpks2b5v.mjs +4 -0
- package/dist/chunks/cli-1.1.15-gq3wg30t.mjs +2 -0
- package/dist/chunks/cli-1.1.15-gs56p0s0.mjs +2 -0
- package/dist/chunks/cli-1.1.15-gw258rrk.mjs +50 -0
- package/dist/chunks/cli-1.1.15-gwgwd5hm.mjs +4 -0
- package/dist/chunks/cli-1.1.15-h3y5qymm.mjs +2 -0
- package/dist/chunks/cli-1.1.15-h6ev26yt.mjs +2 -0
- package/dist/chunks/cli-1.1.15-hf65t2c2.mjs +2 -0
- package/dist/chunks/cli-1.1.15-hq3xwfa3.mjs +2 -0
- package/dist/chunks/cli-1.1.15-j8xzj86y.mjs +15 -0
- package/dist/chunks/cli-1.1.15-jd4x21q0.mjs +2 -0
- package/dist/chunks/cli-1.1.15-jdkggndk.mjs +2 -0
- package/dist/chunks/cli-1.1.15-jeqz3hde.mjs +24 -0
- package/dist/chunks/cli-1.1.15-jfe29j4s.mjs +2 -0
- package/dist/chunks/cli-1.1.15-jfs5gybd.mjs +2 -0
- package/dist/chunks/cli-1.1.15-jmt39vvh.mjs +2 -0
- package/dist/chunks/cli-1.1.15-jzw1d4vb.mjs +2 -0
- package/dist/chunks/cli-1.1.15-k1836ne2.mjs +16 -0
- package/dist/chunks/cli-1.1.15-k3j7z8yp.mjs +20 -0
- package/dist/chunks/cli-1.1.15-k8spwbtd.mjs +2 -0
- package/dist/chunks/cli-1.1.15-kb70x0yv.mjs +3 -0
- package/dist/chunks/cli-1.1.15-kgm2pw8x.mjs +2 -0
- package/dist/chunks/cli-1.1.15-kr36eh1x.mjs +59 -0
- package/dist/chunks/cli-1.1.15-kvc672d5.mjs +2 -0
- package/dist/chunks/cli-1.1.15-m33mdt7b.mjs +3 -0
- package/dist/chunks/cli-1.1.15-m9er763b.mjs +2 -0
- package/dist/chunks/cli-1.1.15-mrgk4vjn.mjs +2 -0
- package/dist/chunks/cli-1.1.15-n7rft8vb.mjs +2 -0
- package/dist/chunks/cli-1.1.15-nffng52m.mjs +2 -0
- package/dist/chunks/cli-1.1.15-nnbd4as2.mjs +25 -0
- package/dist/chunks/cli-1.1.15-p1trn7j2.mjs +4 -0
- package/dist/chunks/cli-1.1.15-p7vaw3hv.mjs +2 -0
- package/dist/chunks/cli-1.1.15-pakg6t79.mjs +2 -0
- package/dist/chunks/cli-1.1.15-pf3rvvj5.mjs +3 -0
- package/dist/chunks/cli-1.1.15-pg56x579.mjs +2 -0
- package/dist/chunks/cli-1.1.15-pgqqjddw.mjs +4 -0
- package/dist/chunks/cli-1.1.15-ph9jfwh3.mjs +2 -0
- package/dist/chunks/cli-1.1.15-q5cap7nt.mjs +3 -0
- package/dist/chunks/cli-1.1.15-q6nb88hp.mjs +2 -0
- package/dist/chunks/cli-1.1.15-qga6k32k.mjs +2 -0
- package/dist/chunks/cli-1.1.15-qnxzqj1z.mjs +2 -0
- package/dist/chunks/cli-1.1.15-qxhpqndj.mjs +5 -0
- package/dist/chunks/cli-1.1.15-qxprwvyg.mjs +2 -0
- package/dist/chunks/cli-1.1.15-r4y8m1sf.mjs +2 -0
- package/dist/chunks/cli-1.1.15-rdq10bn2.mjs +2 -0
- package/dist/chunks/cli-1.1.15-rhz9fv4x.mjs +4 -0
- package/dist/chunks/cli-1.1.15-rkfqf782.mjs +2 -0
- package/dist/chunks/cli-1.1.15-rqw4p0ke.mjs +2 -0
- package/dist/chunks/cli-1.1.15-rtcyrbsg.mjs +1 -0
- package/dist/chunks/cli-1.1.15-rvg56jwp.mjs +2 -0
- package/dist/chunks/cli-1.1.15-s28sb1ga.mjs +2 -0
- package/dist/chunks/cli-1.1.15-stmx3k3w.mjs +2 -0
- package/dist/chunks/cli-1.1.15-swf7050w.mjs +3 -0
- package/dist/chunks/cli-1.1.15-syqaq4nv.mjs +2 -0
- package/dist/chunks/cli-1.1.15-t0xrcfbr.mjs +2 -0
- package/dist/chunks/cli-1.1.15-t3rgyeam.mjs +2 -0
- package/dist/chunks/cli-1.1.15-t61ax3rg.mjs +2 -0
- package/dist/chunks/cli-1.1.15-t80k8k17.mjs +2 -0
- package/dist/chunks/cli-1.1.15-t8xsja3r.mjs +6 -0
- package/dist/chunks/cli-1.1.15-tc86fw6x.mjs +2 -0
- package/dist/chunks/cli-1.1.15-tmp788zk.mjs +2 -0
- package/dist/chunks/cli-1.1.15-tpbkevjz.mjs +2 -0
- package/dist/chunks/cli-1.1.15-tv01zd9c.mjs +2 -0
- package/dist/chunks/cli-1.1.15-vsctpke4.mjs +2 -0
- package/dist/chunks/cli-1.1.15-vvc5kd0e.mjs +6 -0
- package/dist/chunks/cli-1.1.15-w1xsnsrr.mjs +2 -0
- package/dist/chunks/cli-1.1.15-w79kpn9z.mjs +17 -0
- package/dist/chunks/cli-1.1.15-w957aq1a.mjs +2 -0
- package/dist/chunks/cli-1.1.15-wbqj4f48.mjs +133 -0
- package/dist/chunks/cli-1.1.15-wkxn6fq7.mjs +9 -0
- package/dist/chunks/cli-1.1.15-wq860b6c.mjs +2 -0
- package/dist/chunks/cli-1.1.15-x4dh9ra2.mjs +2 -0
- package/dist/chunks/cli-1.1.15-x6z56vxt.mjs +2 -0
- package/dist/chunks/cli-1.1.15-xh72g5md.mjs +25 -0
- package/dist/chunks/cli-1.1.15-xmm250at.mjs +2 -0
- package/dist/chunks/cli-1.1.15-xn5kcp4k.mjs +2 -0
- package/dist/chunks/cli-1.1.15-xrdr3a8j.mjs +2 -0
- package/dist/chunks/cli-1.1.15-xtf04fdy.mjs +5 -0
- package/dist/chunks/cli-1.1.15-xvwbdkk2.mjs +2 -0
- package/dist/chunks/cli-1.1.15-y4jpgjpy.mjs +6 -0
- package/dist/chunks/cli-1.1.15-ya3zmpbf.mjs +2 -0
- package/dist/chunks/cli-1.1.15-ybhmmbr3.mjs +2 -0
- package/dist/chunks/cli-1.1.15-z9szqcyg.mjs +17 -0
- package/dist/chunks/cli-1.1.15-zg7csyzz.mjs +2 -0
- package/dist/chunks/cli-1.1.15-zm1sx1vh.mjs +2 -0
- package/dist/chunks/cli-1.1.15-zm9a5m0b.mjs +2 -0
- package/dist/chunks/cli-1.1.15-zpt8yv0b.mjs +2 -0
- package/dist/chunks/cli-1.1.15-zrabw726.mjs +2 -0
- package/dist/chunks/cli-1.1.15-ztgk02re.mjs +4 -0
- package/dist/chunks/cli-1.1.15-zw3cc5m8.mjs +2 -0
- package/dist/chunks/client-1.1.15-7zxfy90s.mjs +1 -0
- package/dist/chunks/color-1.1.15-v6smmkca.mjs +1 -0
- package/dist/chunks/compact-1.1.15-mey332ra.mjs +3 -0
- package/dist/chunks/config-1.1.15-jcwja4eb.mjs +1 -0
- package/dist/chunks/config-1.1.15-pafh429c.mjs +1 -0
- package/dist/chunks/constants-1.1.15-qvh9m3yg.mjs +1 -0
- package/dist/chunks/context-1.1.15-gef0rkyp.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.15-y4tcdh2q.mjs +1 -0
- package/dist/chunks/conversation-1.1.15-r506ktpr.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.15-nwyxv1c6.mjs +1 -0
- package/dist/chunks/copy-1.1.15-bm5qhs38.mjs +9 -0
- package/dist/chunks/cost-1.1.15-9en5vp81.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.15-46chvft6.mjs +1 -0
- package/dist/chunks/createSession-1.1.15-pxd63w9x.mjs +1 -0
- package/dist/chunks/debug-1.1.15-8nbm2xpt.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.15-wxt2kmzg.mjs +1526 -0
- package/dist/chunks/desktop-1.1.15-gdsmr24w.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.15-cdm0wycs.mjs +1 -0
- package/dist/chunks/detection-1.1.15-ftsf9hbz.mjs +1 -0
- package/dist/chunks/diff-1.1.15-q3a5dtec.mjs +1 -0
- package/dist/chunks/doctor-1.1.15-p6cn9vhk.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.15-1bqd038t.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.15-h3s4mc10.mjs +1 -0
- package/dist/chunks/effort-1.1.15-ntfkkphx.mjs +13 -0
- package/dist/chunks/engine-1.1.15-bafn3xae.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.15-jyzc1ek9.mjs +1 -0
- package/dist/chunks/envUtils-1.1.15-djhm9sn3.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.15-dk14rrw7.mjs +1 -0
- package/dist/chunks/environments-1.1.15-dgwyaqx6.mjs +1 -0
- package/dist/chunks/errors-1.1.15-dv0cz15v.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.15-263nxjc7.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.15-cgv6pwrz.mjs +1 -0
- package/dist/chunks/exit-1.1.15-7jy2eyny.mjs +1 -0
- package/dist/chunks/explorer-1.1.15-3cqntxjp.mjs +1 -0
- package/dist/chunks/export-1.1.15-w57hsyes.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.15-caapnsf9.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.15-2hrhqvj4.mjs +1 -0
- package/dist/chunks/fast-1.1.15-556g3z6s.mjs +1 -0
- package/dist/chunks/feedback-1.1.15-g0fbb2v3.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.15-5d6tk014.mjs +1 -0
- package/dist/chunks/git-1.1.15-xzay0ztr.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.15-4py0k74v.mjs +1 -0
- package/dist/chunks/goal-1.1.15-e1em0116.mjs +4 -0
- package/dist/chunks/growthbook-1.1.15-6xn6q0sp.mjs +1 -0
- package/dist/chunks/headless-1.1.15-rafx8eee.mjs +2 -0
- package/dist/chunks/heapdump-1.1.15-6q8q4788.mjs +6 -0
- package/dist/chunks/help-1.1.15-zs3pgg4k.mjs +1 -0
- package/dist/chunks/hookChains-1.1.15-9a6pb5w5.mjs +3 -0
- package/dist/chunks/hooks-1.1.15-b9gs32vb.mjs +1 -0
- package/dist/chunks/hooks-1.1.15-hfwjnas3.mjs +79 -0
- package/dist/chunks/ide-1.1.15-ece17mva.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.15-fejg7fwn.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.15-pk7rphxz.mjs +1 -0
- package/dist/chunks/index-1.1.15-2vvc784g.mjs +5 -0
- package/dist/chunks/index-1.1.15-58q8vth9.mjs +30 -0
- package/dist/chunks/index-1.1.15-61gtszck.mjs +23 -0
- package/dist/chunks/index-1.1.15-63sm4p3b.mjs +1 -0
- package/dist/chunks/index-1.1.15-bqgefxac.mjs +2 -0
- package/dist/chunks/index-1.1.15-cmeghrr8.mjs +1 -0
- package/dist/chunks/index-1.1.15-dh3eqcj6.mjs +1 -0
- package/dist/chunks/index-1.1.15-gt3z8ez8.mjs +2 -0
- package/dist/chunks/index-1.1.15-hngbp5j9.mjs +1 -0
- package/dist/chunks/index-1.1.15-hv4e77y5.mjs +1 -0
- package/dist/chunks/index-1.1.15-jbcn1htw.mjs +1 -0
- package/dist/chunks/index-1.1.15-jsq8t7gh.mjs +1 -0
- package/dist/chunks/index-1.1.15-jxrabdxb.mjs +9 -0
- package/dist/chunks/index-1.1.15-k2qf0p34.mjs +1 -0
- package/dist/chunks/index-1.1.15-kegec7g7.mjs +1 -0
- package/dist/chunks/index-1.1.15-px3s42jj.mjs +1 -0
- package/dist/chunks/index-1.1.15-qa2n341d.mjs +1 -0
- package/dist/chunks/index-1.1.15-rb6gwjnr.mjs +9 -0
- package/dist/chunks/index-1.1.15-v1jbnyfv.mjs +1 -0
- package/dist/chunks/index-1.1.15-v3xjhkgg.mjs +1 -0
- package/dist/chunks/index-1.1.15-wn5dzvtp.mjs +1 -0
- package/dist/chunks/index-1.1.15-yxqqa2q5.mjs +1 -0
- package/dist/chunks/index-1.1.15-ztxh3p91.mjs +1 -0
- package/dist/chunks/init-1.1.15-s0513abb.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.15-nfxwvhxr.mjs +1 -0
- package/dist/chunks/ink-1.1.15-06g53x2d.mjs +1 -0
- package/dist/chunks/insights-1.1.15-2ttbvk7c.mjs +870 -0
- package/dist/chunks/install-1.1.15-w5d46eyw.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.15-tqjywtyy.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.15-7qyq36aa.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.15-5nywr7k6.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.15-9akt8s2v.mjs +1 -0
- package/dist/chunks/keybindings-1.1.15-1tvzezk8.mjs +2 -0
- package/dist/chunks/knowledge-1.1.15-bkkcs3a3.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.15-2ksjmrzy.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.15-95r643y9.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.15-h3znhdpc.mjs +1 -0
- package/dist/chunks/log-1.1.15-efrp1hpn.mjs +1 -0
- package/dist/chunks/main-1.1.15-ba7dtwzz.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.15-5b44apg9.mjs +1 -0
- package/dist/chunks/mcp-1.1.15-219ec2vw.mjs +4 -0
- package/dist/chunks/mcp-1.1.15-84m4prhz.mjs +1 -0
- package/dist/chunks/mcp-1.1.15-9f3zyt67.mjs +17 -0
- package/dist/chunks/mcpb-1.1.15-ykxze1k6.mjs +1 -0
- package/dist/chunks/memory-1.1.15-96pdt13p.mjs +72 -0
- package/dist/chunks/model-1.1.15-b40xd4h1.mjs +1 -0
- package/dist/chunks/model-1.1.15-pvecp9fh.mjs +2 -0
- package/dist/chunks/node-1.1.15-e5eqx52s.mjs +12 -0
- package/dist/chunks/oauth-1.1.15-7fxj0bcf.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.15-dq3fghyq.mjs +14 -0
- package/dist/chunks/output-style-1.1.15-e7ttz7b5.mjs +1 -0
- package/dist/chunks/package-L37ZVTF4-1.1.15-kss8kwyd.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.15-km2j6z0r.mjs +1 -0
- package/dist/chunks/parser-1.1.15-2x7mpppq.mjs +1 -0
- package/dist/chunks/passes-1.1.15-8x4mva12.mjs +1 -0
- package/dist/chunks/permissions-1.1.15-134fj94y.mjs +1 -0
- package/dist/chunks/permissions-1.1.15-a2d8pgtp.mjs +3 -0
- package/dist/chunks/plan-1.1.15-swdve0xr.mjs +1 -0
- package/dist/chunks/plist-1.1.15-5ged16we.mjs +1 -0
- package/dist/chunks/plugin-1.1.15-kcpdt96s.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.15-aazppe92.mjs +1 -0
- package/dist/chunks/plugins-1.1.15-atzwgc9x.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.15-611jrgf1.mjs +2 -0
- package/dist/chunks/print-1.1.15-ma7jjc0w.mjs +57 -0
- package/dist/chunks/process-1.1.15-6rbhzpg0.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.15-aamrz1kj.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.15-azxvy7pb.mjs +9 -0
- package/dist/chunks/prompt-1.1.15-1k4m318a.mjs +1 -0
- package/dist/chunks/prompt-1.1.15-xe79z4pr.mjs +1 -0
- package/dist/chunks/prompts-1.1.15-wte4x7e4.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.15-88zg9mk8.mjs +13 -0
- package/dist/chunks/provider-1.1.15-c8z6c4xj.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.15-srn11t8e.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.15-yef6qwy2.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.15-dk2mf38m.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.15-v5kze215.mjs +26 -0
- package/dist/chunks/registry-1.1.15-jnsk0t9a.mjs +1 -0
- package/dist/chunks/release-notes-1.1.15-nbmmmwbh.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.15-thmm1n66.mjs +2 -0
- package/dist/chunks/remote-env-1.1.15-mt6r7s6d.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.15-28aykv35.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.15-br9mvf70.mjs +1 -0
- package/dist/chunks/rename-1.1.15-4cnm57qq.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.15-554c9pxz.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.15-0ymjxtxx.mjs +1 -0
- package/dist/chunks/resume-1.1.15-tka4a9rz.mjs +2 -0
- package/dist/chunks/rewind-1.1.15-pskzwz2n.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.15-k8vyvzs4.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.15-2sgm9477.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.15-jjpkvd4w.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.15-e2bqcnkv.mjs +1 -0
- package/dist/chunks/session-1.1.15-p4vbgb6n.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.15-krx4yyg5.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.15-gmsn6pxt.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.15-7b040mx5.mjs +1 -0
- package/dist/chunks/settings-1.1.15-ekfty1pj.mjs +1 -0
- package/dist/chunks/setup-1.1.15-zep22435.mjs +5 -0
- package/dist/chunks/sinks-1.1.15-5b2jbvzk.mjs +1 -0
- package/dist/chunks/skills-1.1.15-tqfym88e.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.15-x5r52mgd.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.15-zvm4gj9j.mjs +1 -0
- package/dist/chunks/state-1.1.15-92brngf3.mjs +1 -0
- package/dist/chunks/stats-1.1.15-83zt06hn.mjs +6 -0
- package/dist/chunks/status-1.1.15-z168hre8.mjs +1 -0
- package/dist/chunks/stickers-1.1.15-7hf6025s.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.15-vsw2gnsy.mjs +1 -0
- package/dist/chunks/tasks-1.1.15-0jrt2qg7.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.15-k13jejzh.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.15-s9t0zyne.mjs +1 -0
- package/dist/chunks/teleport-1.1.15-9dd1smb0.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.15-qc30y99e.mjs +1 -0
- package/dist/chunks/theme-1.1.15-6q2jy7n3.mjs +1 -0
- package/dist/chunks/thinkback-1.1.15-nm1h90a9.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.15-f67z5b5k.mjs +1 -0
- package/dist/chunks/toolPool-1.1.15-tfcesaq1.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.15-8ta5a4z3.mjs +1 -0
- package/dist/chunks/tools-1.1.15-y5hj8rpq.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.15-8tfqjnhv.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.15-hh9kd6yr.mjs +69 -0
- package/dist/chunks/types-1.1.15-9baqmv4a.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.15-pgr4087d.mjs +4 -0
- package/dist/chunks/update-1.1.15-3g32jxm9.mjs +72 -0
- package/dist/chunks/upgrade-1.1.15-n01mknp0.mjs +1 -0
- package/dist/chunks/upload-1.1.15-7swxydm4.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.15-0kwe084a.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.15-6zmtv9xn.mjs +1 -0
- package/dist/chunks/usage-1.1.15-24aqj3m1.mjs +1 -0
- package/dist/chunks/util-1.1.15-5jq3gm50.mjs +1 -0
- package/dist/chunks/utils-1.1.15-w1h2z3bz.mjs +1 -0
- package/dist/chunks/vim-1.1.15-saehb9jw.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.15-5whne0rd.mjs +13 -0
- package/dist/chunks/watcher-1.1.15-jgbek4vd.mjs +1 -0
- package/dist/chunks/wiki-1.1.15-d8an1sjy.mjs +132 -0
- package/dist/chunks/workflows-1.1.15-hxrpwge7.mjs +1 -0
- package/dist/chunks/worktree-1.1.15-1es3bab6.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.15-c62gcjdh.mjs +1 -0
- package/dist/chunks/wrapper-1.1.15-jn7yrxqc.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +0 -1
- package/dist/chunks/App-1.1.13-d46t1gxs.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +0 -6
- package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +0 -1
- package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +0 -1
- package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +0 -1
- package/dist/chunks/agents-1.1.13-86a1wgye.mjs +0 -110
- package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +0 -3
- package/dist/chunks/api-1.1.13-5ffq20rc.mjs +0 -1
- package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +0 -1
- package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +0 -1
- package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +0 -1
- package/dist/chunks/auth-1.1.13-xv576tj3.mjs +0 -1
- package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +0 -1
- package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +0 -4
- package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +0 -1
- package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +0 -1
- package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +0 -4
- package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +0 -1
- package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +0 -1
- package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +0 -1
- package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +0 -2
- package/dist/chunks/cli-1.1.13-0dha376x.mjs +0 -3
- package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +0 -7
- package/dist/chunks/cli-1.1.13-0qy978b3.mjs +0 -3
- package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-0y4933cs.mjs +0 -2
- package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-15nbdw38.mjs +0 -2
- package/dist/chunks/cli-1.1.13-17xy86gy.mjs +0 -24
- package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +0 -6
- package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1jf910f2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-24284zna.mjs +0 -2
- package/dist/chunks/cli-1.1.13-284pjmzy.mjs +0 -4
- package/dist/chunks/cli-1.1.13-2964cc2e.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2m39r998.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +0 -202
- package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2txesqy8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +0 -2
- package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +0 -2
- package/dist/chunks/cli-1.1.13-46jvx14j.mjs +0 -2
- package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +0 -42
- package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-53ght581.mjs +0 -3
- package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +0 -6
- package/dist/chunks/cli-1.1.13-61mygvzg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +0 -2
- package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +0 -12
- package/dist/chunks/cli-1.1.13-669vhsjj.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6727vw4f.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6b845car.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +0 -4
- package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +0 -17
- package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6k71beqh.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-74rczf0f.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7s34jqge.mjs +0 -133
- package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-82y6dszx.mjs +0 -2
- package/dist/chunks/cli-1.1.13-86kjp502.mjs +0 -2
- package/dist/chunks/cli-1.1.13-91q67gqp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9609q0ww.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +0 -15
- package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +0 -25
- package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +0 -5
- package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +0 -2
- package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +0 -2
- package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +0 -25
- package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +0 -4
- package/dist/chunks/cli-1.1.13-aac9pss7.mjs +0 -59
- package/dist/chunks/cli-1.1.13-aeq919w1.mjs +0 -2
- package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +0 -6
- package/dist/chunks/cli-1.1.13-b47k2p92.mjs +0 -21
- package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +0 -2
- package/dist/chunks/cli-1.1.13-baxww5k9.mjs +0 -3
- package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cn9g3704.mjs +0 -12
- package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +0 -2
- package/dist/chunks/cli-1.1.13-d54qh52e.mjs +0 -3
- package/dist/chunks/cli-1.1.13-d8d30wps.mjs +0 -3
- package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +0 -3
- package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +0 -2
- package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-e4k7980n.mjs +0 -2
- package/dist/chunks/cli-1.1.13-e68npf24.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ehaqachs.mjs +0 -2
- package/dist/chunks/cli-1.1.13-epjmphrz.mjs +0 -133
- package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +0 -24
- package/dist/chunks/cli-1.1.13-ewxej7em.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ey931psa.mjs +0 -2
- package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-far5gqfj.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fccy9c48.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fkcaczca.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +0 -3
- package/dist/chunks/cli-1.1.13-g8k8na90.mjs +0 -2
- package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +0 -8
- package/dist/chunks/cli-1.1.13-gechs2yp.mjs +0 -4
- package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +0 -18
- package/dist/chunks/cli-1.1.13-gh95gh19.mjs +0 -2
- package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +0 -2
- package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +0 -39
- package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +0 -16
- package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +0 -2
- package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +0 -2
- package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-hg8x8693.mjs +0 -6
- package/dist/chunks/cli-1.1.13-hzneg4va.mjs +0 -2
- package/dist/chunks/cli-1.1.13-j02dcs05.mjs +0 -2
- package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +0 -2
- package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +0 -15
- package/dist/chunks/cli-1.1.13-je6371k7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +0 -34
- package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +0 -4
- package/dist/chunks/cli-1.1.13-kct81ph3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +0 -15
- package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-kq8spsav.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +0 -2
- package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +0 -3
- package/dist/chunks/cli-1.1.13-m5grg33r.mjs +0 -4
- package/dist/chunks/cli-1.1.13-mct1fasm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +0 -17
- package/dist/chunks/cli-1.1.13-mzq23677.mjs +0 -2
- package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +0 -2
- package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +0 -3
- package/dist/chunks/cli-1.1.13-nr09192d.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pam922jf.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pedv9sma.mjs +0 -9
- package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +0 -50
- package/dist/chunks/cli-1.1.13-q1hx591h.mjs +0 -2
- package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +0 -9
- package/dist/chunks/cli-1.1.13-qr4adses.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +0 -3
- package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +0 -2
- package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +0 -2
- package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +0 -2
- package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +0 -1
- package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +0 -24
- package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +0 -3
- package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +0 -2
- package/dist/chunks/cli-1.1.13-segzta4x.mjs +0 -2
- package/dist/chunks/cli-1.1.13-shz97pa0.mjs +0 -2
- package/dist/chunks/cli-1.1.13-smefk747.mjs +0 -2
- package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +0 -2
- package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +0 -3
- package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +0 -4
- package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +0 -24
- package/dist/chunks/cli-1.1.13-v2synpdg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-vm8xs878.mjs +0 -3
- package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +0 -4
- package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +0 -45
- package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +0 -66
- package/dist/chunks/cli-1.1.13-wh5smpta.mjs +0 -2
- package/dist/chunks/cli-1.1.13-wje228e3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +0 -58
- package/dist/chunks/cli-1.1.13-x663d461.mjs +0 -2
- package/dist/chunks/cli-1.1.13-x79qava2.mjs +0 -5413
- package/dist/chunks/cli-1.1.13-x83epxhw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +0 -6
- package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +0 -2
- package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +0 -6
- package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-y5d299s9.mjs +0 -2
- package/dist/chunks/cli-1.1.13-y6pa258f.mjs +0 -4
- package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +0 -20
- package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +0 -2
- package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-z9471mhs.mjs +0 -4
- package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +0 -4
- package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-zmb192fn.mjs +0 -18
- package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +0 -5
- package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +0 -2
- package/dist/chunks/client-1.1.13-6axfwqya.mjs +0 -1
- package/dist/chunks/color-1.1.13-g1rjvg86.mjs +0 -1
- package/dist/chunks/compact-1.1.13-9k4jts81.mjs +0 -3
- package/dist/chunks/config-1.1.13-58bj6t43.mjs +0 -1
- package/dist/chunks/config-1.1.13-csmwn3d0.mjs +0 -1
- package/dist/chunks/constants-1.1.13-cydjncsk.mjs +0 -1
- package/dist/chunks/context-1.1.13-04y3svxc.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +0 -1
- package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +0 -1
- package/dist/chunks/copy-1.1.13-4zq95frp.mjs +0 -9
- package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +0 -1
- package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +0 -1
- package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +0 -1526
- package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +0 -1
- package/dist/chunks/detection-1.1.13-k5td7n26.mjs +0 -1
- package/dist/chunks/diff-1.1.13-d31m696z.mjs +0 -1
- package/dist/chunks/doctor-1.1.13-59947n3f.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +0 -1
- package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +0 -13
- package/dist/chunks/engine-1.1.13-p9g24e16.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +0 -1
- package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +0 -1
- package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +0 -1
- package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +0 -1
- package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +0 -1
- package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +0 -1
- package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +0 -1
- package/dist/chunks/fast-1.1.13-2an1j0he.mjs +0 -1
- package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +0 -1
- package/dist/chunks/git-1.1.13-n4743t7m.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +0 -1
- package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +0 -4
- package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +0 -1
- package/dist/chunks/headless-1.1.13-me11khs4.mjs +0 -2
- package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +0 -6
- package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +0 -1
- package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +0 -3
- package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +0 -1
- package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +0 -79
- package/dist/chunks/ide-1.1.13-699b7xgf.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +0 -1
- package/dist/chunks/index-1.1.13-1magnv9t.mjs +0 -1
- package/dist/chunks/index-1.1.13-20fw0vyg.mjs +0 -1
- package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +0 -1
- package/dist/chunks/index-1.1.13-5fffrw39.mjs +0 -23
- package/dist/chunks/index-1.1.13-7v1v2795.mjs +0 -1
- package/dist/chunks/index-1.1.13-89b63y1a.mjs +0 -1
- package/dist/chunks/index-1.1.13-9hmkds89.mjs +0 -1
- package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +0 -1
- package/dist/chunks/index-1.1.13-hvpk64ts.mjs +0 -9
- package/dist/chunks/index-1.1.13-pfnaxhas.mjs +0 -9
- package/dist/chunks/index-1.1.13-pq81pd76.mjs +0 -2
- package/dist/chunks/index-1.1.13-q7xgkez4.mjs +0 -1
- package/dist/chunks/index-1.1.13-qed5hqgm.mjs +0 -1
- package/dist/chunks/index-1.1.13-qncvk76v.mjs +0 -1
- package/dist/chunks/index-1.1.13-qzm5brgp.mjs +0 -2
- package/dist/chunks/index-1.1.13-sqz3new4.mjs +0 -1
- package/dist/chunks/index-1.1.13-swwn9vsr.mjs +0 -1
- package/dist/chunks/index-1.1.13-tseyy72z.mjs +0 -1
- package/dist/chunks/index-1.1.13-v219xtkm.mjs +0 -1
- package/dist/chunks/index-1.1.13-vbws03kk.mjs +0 -30
- package/dist/chunks/index-1.1.13-vpewasbk.mjs +0 -1
- package/dist/chunks/index-1.1.13-yncdgpnc.mjs +0 -5
- package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +0 -1
- package/dist/chunks/init-1.1.13-6m1d58s6.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +0 -1
- package/dist/chunks/ink-1.1.13-vsh153b4.mjs +0 -1
- package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +0 -870
- package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +0 -1
- package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +0 -2
- package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +0 -1
- package/dist/chunks/log-1.1.13-j05vnw45.mjs +0 -1
- package/dist/chunks/main-1.1.13-9eb7dv86.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +0 -1
- package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +0 -1
- package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +0 -4
- package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +0 -17
- package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +0 -1
- package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +0 -72
- package/dist/chunks/model-1.1.13-e9231b6a.mjs +0 -2
- package/dist/chunks/model-1.1.13-qkp6et1j.mjs +0 -1
- package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +0 -12
- package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +0 -14
- package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +0 -1
- package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +0 -1
- package/dist/chunks/parser-1.1.13-5g8tytma.mjs +0 -1
- package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +0 -1
- package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +0 -3
- package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +0 -1
- package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +0 -1
- package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +0 -1
- package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +0 -1
- package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +0 -2
- package/dist/chunks/print-1.1.13-cba5ekrx.mjs +0 -57
- package/dist/chunks/process-1.1.13-cavp5bw3.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +0 -9
- package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +0 -1
- package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +0 -1
- package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +0 -13
- package/dist/chunks/provider-1.1.13-aec8n85t.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +0 -26
- package/dist/chunks/registry-1.1.13-0gr1a931.mjs +0 -1
- package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +0 -2
- package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +0 -1
- package/dist/chunks/rename-1.1.13-7mj7635m.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +0 -1
- package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +0 -2
- package/dist/chunks/rewind-1.1.13-f1jde571.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +0 -1
- package/dist/chunks/session-1.1.13-je6e2q22.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +0 -1
- package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +0 -1
- package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +0 -5
- package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +0 -1
- package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +0 -1
- package/dist/chunks/state-1.1.13-m97vrspe.mjs +0 -1
- package/dist/chunks/stats-1.1.13-x2ranep4.mjs +0 -6
- package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +0 -1
- package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +0 -1
- package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +0 -1
- package/dist/chunks/teleport-1.1.13-fm868anx.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +0 -1
- package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +0 -1
- package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +0 -1
- package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +0 -1
- package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +0 -69
- package/dist/chunks/types-1.1.13-2f1xtenh.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +0 -4
- package/dist/chunks/update-1.1.13-0hd3pst5.mjs +0 -72
- package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +0 -1
- package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +0 -1
- package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +0 -1
- package/dist/chunks/util-1.1.13-vzt92dj7.mjs +0 -1
- package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +0 -1
- package/dist/chunks/vim-1.1.13-1d635y0m.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +0 -13
- package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +0 -1
- package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +0 -132
- package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +0 -1
- package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +0 -1
- package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +0 -7
- /package/dist/chunks/{cli-1.1.13-v06xvs9s.mjs → cli-1.1.15-7rhgft7r.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-v32emtk0.mjs → cli-1.1.15-a86ebv4c.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-jdcqc6bd.mjs → cli-1.1.15-bwy6nhdk.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-8812dqjq.mjs → cli-1.1.15-g9n3fyq0.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-hb5bb8jk.mjs → cli-1.1.15-h58yf3xj.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-e4hsds4b.mjs → cli-1.1.15-r64a0n76.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-xpwxcmvd.mjs → cli-1.1.15-yrmh6ksq.mjs} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Csa as T,Esa as J5,Fsa as M}from"./cli-1.1.15-bwy6nhdk.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 Ee,X5 as Fe};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ap as i,Bp as Aq,To as D,Yo as Zq,wo as j,xo as m,xp as l,yo as Xq,zp as Rq}from"./cli-1.1.15-b16e0ajk.mjs";import{cca as u,eca as g,hca as h,ica as n,nca as vq,pga as L,xga as Qq}from"./cli-1.1.15-c6h2gge7.mjs";import{wia as d,yia as Uq}from"./cli-1.1.15-59t4k8sr.mjs";import{Zja as P,_ja as v,cka as f,gka as M,kka as y,uka as V,xka as e}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as N,Uka as W,Vka as O,Wka as C}from"./cli-1.1.15-dv1zb375.mjs";import{Mra as p,csa as qq}from"./cli-1.1.15-fnh28phg.mjs";import{Esa as E}from"./cli-1.1.15-bwy6nhdk.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:J,ref:X}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=E(()=>{N();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as xq}from"fs/promises";import{join as Jq}from"path";function c(){return Jq(D(),Kq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==_)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${_})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=D();await M().mkdir(Q);let B=P(Z,null,2);await xq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){L(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${w}`);let Z=performance.now();try{let q=await p.get(w,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return j("install_counts",w,"success",performance.now()-Z),q.data.plugins}catch(q){throw j("install_counts",w,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),j("install_counts",w,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:_,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return L(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var _=1,Kq="install-counts-cache.json",w="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=E(()=>{qq();e();N();y();Qq();f();Xq();Zq()});import{readdir as wq,readFile as A,stat as Iq}from"fs/promises";import*as H from"path";function jq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Eq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function S(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(K&&typeof K==="object"){let X=K;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let X=K,Y=Object.keys(X).filter((x)=>Mq.has(x));if(Y.length>0){let x={...X};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=x}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(K&&typeof K==="object"){let X=K;if(Array.isArray(X.plugins))X.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Eq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(K);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((J,U)=>{if(X.plugins.filter((R)=>R.name===J.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(Q),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(x,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function Nq(Z,q,$){let Q=[],B=[],K=q.match(i);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=K[1]||"",G;try{G=l(z)}catch(J){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let J=X.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=X.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function _q(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await wq(Z,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let K=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(K)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,K]of $){let z=await o(K,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(x){if(C(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await _q(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await Iq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await k(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await S(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(jq(Z)){case"plugin":return S(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=v(B);if(Array.isArray(K.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return S(Z)}}}var Mq;var Lq=E(()=>{Uq();N();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Fq as fd,r as gd,nq as hd,lq as id,Oq as jd,QQ as kd,XQ as ld,Lq as md};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wsa as n}from"./cli-1.1.15-w79kpn9z.mjs";import{Csa as r}from"./cli-1.1.15-bwy6nhdk.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
+
export{i as P9};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{JX as P,UX as g}from"./cli-1.1.15-0dyh92xq.mjs";import{k2 as C,n2 as d}from"./cli-1.1.15-vsctpke4.mjs";import{t_ as A,u$ as T,v$ as u,v_ as U,w_ as w}from"./cli-1.1.15-c6h2gge7.mjs";import{Zja as O,_ja as W,cka as c,uka as X,xja as R,xka as h,zja as F}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as m,Uka as V,Zka as N}from"./cli-1.1.15-dv1zb375.mjs";import{cla as k,nla as S}from"./cli-1.1.15-tc86fw6x.mjs";import{Sqa as D,Tma as B,Xma as E,Zma as M}from"./cli-1.1.15-xn5kcp4k.mjs";import{Esa as $}from"./cli-1.1.15-bwy6nhdk.mjs";function H(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function e(q,G=10){if(process.platform==="win32"){let L=`
|
|
2
|
+
$pid = ${String(q)}
|
|
3
|
+
$ancestors = @()
|
|
4
|
+
for ($i = 0; $i -lt ${G}; $i++) {
|
|
5
|
+
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
|
|
6
|
+
if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
7
|
+
$pid = $proc.ParentProcessId
|
|
8
|
+
$ancestors += $pid
|
|
9
|
+
}
|
|
10
|
+
$ancestors -join ','
|
|
11
|
+
`.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.trim().split(",").filter(Boolean).map((Z)=>parseInt(Z,10)).filter((Z)=>!isNaN(Z))}let J=`pid=${String(q)}; for i in $(seq 1 ${G}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
|
|
12
|
+
`).filter(Boolean).map((L)=>parseInt(L,10)).filter((L)=>!isNaN(L))}function qq(q){try{let G=String(q),J=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${G}\\").CommandLine"`:`ps -o command= -p ${G}`,z=A(J,{timeout:1000});return z?z.trim():null}catch{return null}}async function zq(q,G=10){if(process.platform==="win32"){let L=`
|
|
13
|
+
$currentPid = ${String(q)}
|
|
14
|
+
$commands = @()
|
|
15
|
+
for ($i = 0; $i -lt ${G}; $i++) {
|
|
16
|
+
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
|
|
17
|
+
if (-not $proc) { break }
|
|
18
|
+
if ($proc.CommandLine) { $commands += $proc.CommandLine }
|
|
19
|
+
if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
20
|
+
$currentPid = $proc.ParentProcessId
|
|
21
|
+
}
|
|
22
|
+
$commands -join [char]0
|
|
23
|
+
`.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.split("\x00").filter(Boolean)}let J=`currentpid=${String(q)}; for i in $(seq 1 ${G}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var K=$(()=>{w()});import{chmod as a,mkdir as l,readdir as p,readFile as o,unlink as I,writeFile as j}from"fs/promises";import{join as Y}from"path";function _(){return Y(k(),"sessions")}function n(){return}async function vq(){if(P()!=null)return!1;let q=n()??"interactive",G=_(),J=Y(G,`${process.pid}.json`);R(async()=>{try{await I(J)}catch{}});try{return await l(G,{recursive:!0,mode:448}),await a(G,448),await j(J,O({pid:process.pid,sessionId:B(),cwd:M(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),y?.(),y=E((z)=>{v({sessionId:z})}),!0}catch(z){return X(`[concurrentSessions] register failed: ${V(z)}`),!1}}async function v(q){let G=Y(_(),`${process.pid}.json`);try{let J=W(await o(G,"utf8"));await j(G,O({...J,...q}))}catch(J){X(`[concurrentSessions] updatePidFile failed: ${V(J)}`)}}async function Aq(q){if(!q)return;await v({name:q})}async function b(q){await v({bridgeSessionId:q})}async function Hq(){let q=_(),G;try{G=await p(q)}catch(z){if(!N(z))X(`[concurrentSessions] readdir failed: ${V(z)}`);return 0}let J=0;for(let z of G){if(!/^\d+\.json$/.test(z))continue;let L=parseInt(z.slice(0,-5),10);if(L===process.pid){J++;continue}if(H(L))J++;else if(T()!=="wsl")I(Y(q,z)).catch(()=>{})}return J}var y;var f=$(()=>{D();F();h();S();m();K();u();c();g()});function Eq(q){x=q,b(t()??null).catch(()=>{})}function r(){return x}function t(){let q=r();return q?C(q.bridgeSessionId):void 0}var x=null;var s=$(()=>{f();d()});
|
|
24
|
+
export{H as oX,e as pX,qq as qX,zq as rX,K as sX,vq as tX,Aq as uX,b as vX,Hq as wX,f as xX,Eq as yX,r as zX,t as AX,s as BX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{CX as Xq,GX as wq,KX as xq,LX as c,MX as zq,UX as Yq}from"./cli-1.1.15-0dyh92xq.mjs";import{_2 as vq,f3 as Nq}from"./cli-1.1.15-gs56p0s0.mjs";import{Oda as C,Qda as Mq,W_ as jq,pga as b,s$ as Fq,v_ as Oq,w_ as Lq,xga as yq}from"./cli-1.1.15-c6h2gge7.mjs";import{Aia as Vq,wia as R,yia as Qq,zia as w}from"./cli-1.1.15-59t4k8sr.mjs";import{Zja as z,_ja as y,cka as qq,uka as G,xka as Jq}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as e,Uka as W,Vka as x}from"./cli-1.1.15-dv1zb375.mjs";import{cla as s,dla as l,fla as t,nla as a}from"./cli-1.1.15-tc86fw6x.mjs";import{Ioa as i,Pma as r,Qma as Aq,Sqa as m,Tma as d,aqa as u}from"./cli-1.1.15-xn5kcp4k.mjs";import{Esa as T,Fsa as Hq}from"./cli-1.1.15-bwy6nhdk.mjs";import{mkdir as Dq,readdir as I,readFile as Zq,unlink as $q,writeFile as h}from"fs/promises";import{join as D}from"path";function _J(q){if(M===q)return;M=q,E()}function WJ(){if(M===void 0)return;M=void 0,E()}function E(){try{Gq.emit()}catch{}}function Kq(q){return D(U(q),pq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await h(Q,String(J))}function BJ(){if(t(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!i()}async function EJ(q){let J=U(q),Q=await o(q),V;try{V=await C(Q,f);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await I(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}E()}finally{if(V)await V()}}async function HJ(q){let J=await P(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await v(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||M||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function U(q){return D(s(),"tasks",_q(q))}function S(q,J){return D(U(q),`${_q(J)}.json`)}async function bq(q){let J=U(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=U(q),Q;try{Q=await I(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function jJ(q,J){let Q=await o(q),V;try{V=await C(Q,f);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=S(q,X);return await h($,z(Z,null,2)),E(),X}finally{if(V)await V()}}async function O(q,J){let Q=S(q,J);try{let V=await Zq(Q,"utf-8"),Y=y(V),X=Pq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(x(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),b(V),null}}async function Uq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=S(q,J);return await h(X,z(Y,null,2)),E(),Y}async function v(q,J,Q){let V=S(q,J);if(!await O(q,J))return null;let X;try{return X=await C(V,f),await Uq(q,J,Q)}finally{await X?.()}}async function vJ(q,J){let Q=S(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(x(X)==="ENOENT")return!1;throw X}let Y=await P(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await v(q,X.id,{blocks:Z,blockedBy:$})}return E(),!0}catch{return!1}}async function P(q){let J=U(q),Q;try{Q=await I(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function xJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await v(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await v(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function hq(q){return D(U(q),".lock")}async function o(q){await bq(q);let J=hq(q);try{await h(J,"",{flag:"wx"})}catch{}return J}async function zJ(q,J,Q,V={}){let Y=S(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return uq(q,J,Q);let Z;try{Z=await C(Y,f);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await P(q),H=new Set(K.filter((A)=>A.status!=="completed").map((A)=>A.id)),N=$.blockedBy.filter((A)=>H.has(A));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Uq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),b($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function uq(q,J,Q){let V=await o(q),Y;try{Y=await C(V,f);let X=await P(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let H=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(H.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:H.map((_)=>_.id)};return{success:!0,task:await v(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),b(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function CJ(q,J,Q,V){let X=(await P(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await v(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((H)=>`#${H.id} "${H.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,M,UJ,fq,Pq,pq=".highwatermark",f;var Bq=T(()=>{Qq();m();Jq();a();e();Vq();Mq();yq();Aq();qq();Yq();wq();Gq=r();UJ=Gq.subscribe;fq=w(()=>R.enum(["pending","in_progress","completed"])),Pq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),f={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Eq=()=>{};import{mkdirSync as Tq,readFileSync as lq,writeFileSync as Iq}from"fs";import{mkdir as gq,readFile as Cq,rm as k,writeFile as oq}from"fs/promises";import{join as p}from"path";function Sq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return p(l(),Sq(q))}function F(q){return p(L(q),"config.json")}function B(q){try{let J=lq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await Cq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function j(q,J){let Q=L(q);Tq(Q,{recursive:!0}),Iq(F(q),z(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),z(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=B(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return j(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return j(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),j(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=B(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return j(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!zq())return;let Q=J??c(),V=xq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=B(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)j(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=p(q,".git"),Q=null;try{let Y=(await Cq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=p(X,"..","..");Q=p(Z,"..")}}catch{}if(Q){let V=await Oq(jq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){u().add(q)}function aJ(q){u().delete(q)}async function eJ(){let q=u();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=B(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==vq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.15-jnsk0t9a.mjs"),import("./detection-1.1.15-ftsf9hbz.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Sq(q),Q=B(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=U(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),E()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var IJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Bq();Yq();Eq();Nq();IJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
+
export{_J as aV,WJ as bV,UJ as cV,fq as dV,BJ as eV,EJ as fV,HJ as gV,OJ as hV,_q as iV,U as jV,bq as kV,jJ as lV,O as mV,v as nV,vJ as oV,P as pV,xJ as qV,zJ as rV,CJ as sV,Bq as tV,n as uV,Eq as vV,IJ as wV,Sq as xV,gJ as yV,L as zV,F as AV,B as BV,nq as CV,kq as DV,oJ as EV,nJ as FV,kJ as GV,rJ as HV,dJ as IV,rq as JV,iJ as KV,mJ as LV,sJ as MV,tJ as NV,aJ as OV,eJ as PV,mq as QV,sq as RV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yi as M,Zi as W,fO as O,gO as P,hO as Q,iO as U,lO as X}from"./cli-1.1.15-b16e0ajk.mjs";import{Esa as V}from"./cli-1.1.15-bwy6nhdk.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
+
export{F as ng,$ as og};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kb as d}from"./cli-1.1.15-7rhgft7r.mjs";import{AT as F,At as qj,Cm as E,DE as Jj,Dk as $,Dl as P,Dm as e,Ek as n,El as R,JS as m,KS as S,LS as A,Lk as v,MR as Qj,Mk as r,NT as Xj,OC as I,Ou as k,PC as Hj,Rj as O,Ru as V,Tj as o,WS as c,Xu as zj,Yl as s,Yu as w,Zu as Bj,bT as p,cT as X,gK as f,jm as y,kz as C,lz as D,om as t,pT as Vj,qz as Gj,yt as h}from"./cli-1.1.15-b16e0ajk.mjs";import{eV as W,tV as jj}from"./cli-1.1.15-jfe29j4s.mjs";import{uX as x,xX as Kj}from"./cli-1.1.15-jeqz3hde.mjs";import{G6 as T,N6 as u}from"./cli-1.1.15-k1836ne2.mjs";import{Dia as Z,Fia as i}from"./cli-1.1.15-mrgk4vjn.mjs";import{uka as b,xka as l}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ma as Y,Sqa as g,Tma as U,Wma as _,eoa as M,goa as N,mqa as K}from"./cli-1.1.15-xn5kcp4k.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
+
export{aj as Ma,Pj as Na,Rj as Oa,Ej as Pa,gj as Qa,lj as Ra};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{O8 as P5,Q8 as R7}from"./cli-1.1.15-ae2hn1xh.mjs";import{S8 as A,T8 as r8}from"./cli-1.1.15-gngz1xbk.mjs";import{i9 as a2,k9 as D7}from"./cli-1.1.15-1j51w5q4.mjs";import{$9 as K5,$aa as M1,Cea as e1,Eba as x8,Fda as x0,J_ as P2,L_ as e8,Nca as o1,Oda as s4,Qda as ZZ,Qfa as l2,Rda as S1,Rea as $0,Sda as m7,Tea as Z4,Tfa as G4,Uea as G8,Wca as B8,Yea as $4,Z9 as A4,Zfa as s2,_9 as t,a_ as D0,aba as p7,aga as L,b_ as C4,c_ as s5,dga as J0,h_ as H0,i_ as H1,lfa as B4,nba as z2,nea as c,nfa as J4,pga as k,qfa as N5,rda as P,rfa as $Z,sea as n2,t_ as v2,tda as x5,tea as S,w_ as o8,wda as N,wea as D,xga as n0}from"./cli-1.1.15-c6h2gge7.mjs";import{Hha as T1,vha as S0,xha as h4}from"./cli-1.1.15-zw3cc5m8.mjs";import{ija as A2,jja as l4,kja as B0,mja as G7,nja as H7,pja as U,qja as h0}from"./cli-1.1.15-e69gmp99.mjs";import{rja as x,uja as z5}from"./cli-1.1.15-8w8262sk.mjs";import{_ja as U2,cka as a8,gka as n5,kka as S7,uka as z,wka as m0,xka as Z0}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as x1,Uka as g,Wka as z1}from"./cli-1.1.15-dv1zb375.mjs";import{cla as N2,fla as K,hla as u,jla as v5,nla as d}from"./cli-1.1.15-tc86fw6x.mjs";import{Ioa as C,Pma as Y0,Poa as I1,Qma as D1,Sna as d1,Sqa as Q0,eoa as r1,epa as X1,fpa as V1,gpa as W1,hpa as j1,ioa as y4,noa as y0,ooa as Z5,tpa as j5}from"./cli-1.1.15-xn5kcp4k.mjs";import{pra as h,qra as t0}from"./cli-1.1.15-zg7csyzz.mjs";import{Mra as v,csa as Y5}from"./cli-1.1.15-fnh28phg.mjs";import{Bsa as _0,Dsa as c5,Esa as R,Fsa as r}from"./cli-1.1.15-bwy6nhdk.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.15-ztxh3p91.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.15-k2qf0p34.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function sZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.15-ztxh3p91.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.15-k2qf0p34.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function rZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,aZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});aZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,_5,y5,h5,I5,T5,M5,S5,l0,s0,a0,U0,f5,A5,C5,v0,d2;var u5=R(()=>{O5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},_5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},y5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},h5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},I5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},S5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},s0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},a0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},U0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f5={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},C5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},v0={haiku35:_5,haiku45:y5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:U0,fable5:f5},d2=Object.fromEntries(Object.entries(v0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var O0={};c5(O0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>_7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>y7});function P0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=P0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=P0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=P0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&P0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function _7(Z){return e0(Z)?.model.limit.output}function y7(Z){e=Z,z0=Z?P0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var E0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function W$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(E0(),_0(O0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function j$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function z$(){return W()}function x$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=v0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=v0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function D$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(v0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function k$(Z){return Z}function N$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function y$(){let $=D().oauthAccount?.accountUuid,J=I0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();h0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,C$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,C$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function d$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",l$="effort-2025-11-24",s$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",a$="extended-cache-ttl-2025-04-11",r$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",_1="thinking-token-count-2026-05-13",y1="token-efficient-tools-2026-03-28",o$="afk-mode-2026-01-31",e$="advisor-tool-2026-03-01",o5,ZJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),ZJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function KJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function LJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??f0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function kJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function NJ(){R0={status:"active"}}function UJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function PJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function OJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function _J(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function yJ(){if(S1())return;if(!I())return;if(M0)return z("Fast mode prefetch in progress, returning in-flight promise"),M0;let Z=I0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{M0=null}}return M0=Y(),M0}var FJ="Opus 5",R0,Z2=!1,C1,u1,DJ,bJ,g1,vJ,E,$2,EJ,a7=30000,h1=0,M0=null;var p1=R(()=>{Y5();h0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),DJ=C1.subscribe,bJ=u1.subscribe;g1=Y0(),vJ=g1.subscribe;E={status:"pending"},$2=Y0(),EJ=$2.subscribe});function J8(Z){for(let $ of $8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(U0.firstParty)]??n}function Q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function Y8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(U0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=J8(Z);if(Y)return Y;return q8(Z,J),Y2[b(f0())]??Z8}return Q}function q8(Z,$){x("",{model:Z,shortName:$}),d1()}function X8(Z,$){let J=Y8(Z,$);return Q8(J,$)}function AJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return X8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var F0,m1,n,r7,i1,o7,e7,Z8,$8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();F0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},r7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},o7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},e7={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z8=n,$8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];Y2={[F(_5.firstParty)]:o7,[F(y5.firstParty)]:e7,[F(E5.firstParty)]:F0,[F(O5.firstParty)]:F0,[F(h5.firstParty)]:F0,[F(I5.firstParty)]:F0,[F(A5.firstParty)]:F0,[F(C5.firstParty)]:F0,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(U0.firstParty)]:n,[F(f5.firstParty)]:r7}});function p(Z){return V8.includes(Z)}function K0(Z){return W8.includes(Z)}var V8,W8;var W2=R(()=>{V8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];W8=["sonnet","opus","haiku"]});function j8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function z8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!K0(Y)||!l1(Y,q))return!0}for(let X of q)if(K0(X)&&!l1(X,q)&&j8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!K0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!K0(X)&&!p(X)){if(z8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function W3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function j3(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=L0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function z3(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function H8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function x3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function f0(){let Z=L0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(f0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function R8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?w8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function B3(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function G3(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function w8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(_()&&f()===null)return!1;return!0}function H3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(E0(),_0(O0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R3(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return H8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&K8(Y)&&L8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function w3(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function K8(Z){return F8.includes(Z)}function L8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function F3(Z){if(Z===null){if(_())return`Default (${R8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function K3(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function L3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function D3(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var F8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();G8();Q5();t1();x0();i();x8();a1();W2();B8();p5();F8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function k3(){}var V4=()=>{};function N8(Z,$={}){if($.isPro??(k8.test(Z)||W4.has(Z)))return!1;if(D8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(b8);return Q?Number.parseFloat(Q[1])>5.4:!1}function U3(){return w5.filter((Z)=>N8(Z.id,{isPro:Z.isPro}))}var w5,D8,W4,b8,k8,j4,z4;var x4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],D8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),b8=/^gpt-(\d+\.\d+)/,k8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>T8,getDiscoveredContextWindow:()=>U8,discoverOpenAICompatibleModelOptions:()=>F4});function U8(Z){return R4.get(Z)}function v8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function P8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function O8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(P8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function E8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function _8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function y8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function h8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${y8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function I8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=v8(),$=O8(Z),J=await h8(E8(Z),$);if(J.length>0)return J;let Q=_8(Z);if(Q)return I8(Q,$);return[]}function T8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),_0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(M8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(E0(),_0(O0));return J(Z)}catch{return}}function N4(Z){let $=b4(S8,A8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(E0(),_0(O0));return J(Z)}catch{return}}var M8,S8,f8,A8;var U4=R(()=>{J0();x4();M8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...j4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},S8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...z4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},f8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),A8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function i3(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),C8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(T0)&&x2(Z))return 1e6;if(p8(Z))return 1e6;return R2}function p8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function t3(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function n3(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=u8,J=g8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,C8,m3=20000,u8=32000,g8=64000,c3=8000,d3=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();C8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var m8,P4;var O4=R(()=>{t0();i();m8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of m8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function c8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function x9(Z){if(!Z||Z.length===0)return;if(_()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=c8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function d8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function i8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function t8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function B9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function G9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function H9(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function R9(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),n8.cache?.clear?.()}var I4,w2,T4,n8;var S4=R(()=>{t0();T1();Q0();e5();h0();o();B2();d();w0();O4();i();x0();I4=[T0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(W5);if(_())$.push(B0);if(l(Z))$.push(T0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(_1);let q=i8(Z);if(_4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&X)$.push(U1);if(Y&&V)$.push(y1);if(Q==="vertex"&&d8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),n8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as l8}from"child_process";function f4(Z){return new Promise(($)=>{l8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:s8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function D9(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function b9(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var s8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function U9(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var uZ={};c5(uZ,{validateForceLoginOrg:()=>CZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>vZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>bZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>kZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>zZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>hZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>_Z,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>IZ,isCustomApiKeyApproved:()=>UZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>_,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>_2,isAnthropicAuthEnabled:()=>N0,is1PApiCustomer:()=>EZ,hasProfileScope:()=>q0,hasOpusAccess:()=>yZ,hasAnthropicApiKeyAuth:()=>XZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>MZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>VZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>I0,getAccountInformation:()=>AZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>DZ,clearAwsCredentialsCache:()=>RZ,clearApiKeyHelperCache:()=>jZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as JZ,stat as QZ}from"fs/promises";import{join as YZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function N0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function I0(){let{key:Z}=c0();return Z}function XZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function _2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y2(){return(N()||{}).awsCredentialExport}function h2(){let Z=y2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return qZ}function VZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!m)m={promise:i4(Z,!1,b0),startedAt:null};return y.value}if(m)return m.promise;return m={promise:i4(Z,!0,b0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await WZ(Z);if(J!==b0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)m=null}}async function WZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return y?.value??null}function jZ(){b0++,y=null,m=null}function zZ(Z){if(e4()&&!c())return;$7(Z)}async function BZ(){let Z=E2();if(!Z)return!1;if(_2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:GZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function HZ(){let Z=y2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function RZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(wZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function KZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:LZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function DZ(){M2.cache.clear()}function bZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function kZ(){let Z=E2(),$=y2();if(!Z&&!$)return;if(_2()||h2()){if(!c()&&!C())return}j0(),B()}function NZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!NZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
|
|
2
|
+
`;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function UZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function vZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!k0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),D0()}async function PZ(){try{let{mtimeMs:Z}=await QZ(YZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=OZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function OZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await PZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),D0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await JZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),D0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),D0(),!0}catch(V){k(V),w.cache?.clear?.(),D0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function _(){if(!N0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function EZ(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(_())return!1;return!0}function b5(){return N0()?D().oauthAccount:void 0}function _Z(){let $=b5()?.billingType;if(!_()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function yZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!N0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function hZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function IZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!N0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){switch(f()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function MZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||TZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function SZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=f();return _()&&Z!==null&&SZ(Z)}function AZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(_())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function CZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!N0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
+
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
+
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
+
Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
+
different organization than required by this machine's managed settings.
|
|
8
|
+
|
|
9
|
+
Required organization: ${Z}
|
|
10
|
+
Token organization: ${q}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var qZ=300000,y=null,m=null,b0=0,xZ=3600000,GZ=180000,j0,wZ=5000,FZ=3600000,LZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,TZ=1740000,x7;var o=R(()=>{r8();H1();t0();h0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();o8();ZZ();n0();e8();$Z();g4();s5();x0();p4();a8();d4();j0=P2(async()=>{let Z=await BZ(),$=await HZ();if(Z||$)await K1();return $},xZ);M2=P2(async()=>{return await KZ()},FZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function k0(Z){return Boolean(Z?.includes(A2))}function gZ(Z){return Z?.split(" ").filter(Boolean)??[]}function HQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function RQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=gZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await pZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function wQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function FQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function pZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function KQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function LQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!_()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();h0();o();$0();Z0();t5()});
|
|
16
|
+
export{D9 as n4,b9 as o4,g4 as p4,C2 as q4,u2 as r4,sZ as s4,aZ as t4,w7 as u4,L7 as v4,rZ as w4,c2 as x4,l0 as y4,U0 as z4,v0 as A4,u5 as B4,i5 as C4,v7 as D4,E0 as E4,W as F4,W$ as G4,h7 as H4,j$ as I4,z$ as J4,x$ as K4,i as L4,B as M4,D$ as N4,Q5 as O4,k$ as P4,N$ as Q4,Y1 as R4,y$ as S4,G0 as T4,t5 as U4,k0 as V4,gZ as W4,HQ as X4,RQ as Y4,a4 as Z4,wQ as _4,FQ as $4,g0 as a5,pZ as b5,KQ as c5,LQ as d5,B7 as e5,r4 as f5,C$ as g5,g7 as h5,q1 as i5,G1 as j5,V5 as k5,w1 as l5,d$ as m5,L1 as n5,M as o5,b1 as p5,T0 as q5,N1 as r5,U1 as s5,l$ as t5,s$ as u5,O1 as v5,a$ as w5,r$ as x5,E1 as y5,o$ as z5,e$ as A5,ZJ as B5,e5 as C5,I as D5,f1 as E5,d7 as F5,FJ as G5,KJ as H5,LJ as I5,A1 as J5,DJ as K5,bJ as L5,i7 as M5,kJ as N5,NJ as O5,UJ as P5,vJ as Q5,PJ as R5,l7 as S5,OJ as T5,EJ as U5,_J as V5,yJ as W5,p1 as X5,F0 as Y5,r7 as Z5,o7 as _5,e7 as $5,q2 as a6,X8 as b6,AJ as c6,V2 as d6,t1 as e6,V8 as f6,W2 as g6,s1 as h6,a1 as i6,W3 as j6,j3 as k6,B5 as l6,j2 as m6,z3 as n6,H8 as o6,X0 as p6,A0 as q6,Q4 as r6,x3 as s6,f0 as t6,Y4 as u6,F as v6,b as w6,R8 as x6,B3 as y6,G3 as z6,w8 as A6,J2 as B6,H3 as C6,q4 as D6,X4 as E6,R3 as F6,T as G6,w3 as H6,L8 as I6,F3 as J6,K3 as K6,L3 as L6,D3 as M6,w0 as N6,k3 as O6,V4 as P6,U3 as Q6,x4 as R6,F4 as S6,T8 as T6,L4 as U6,m3 as V6,c3 as W6,d3 as X6,V0 as Y6,l as Z6,i3 as _6,p8 as $6,t3 as a7,n3 as b7,B2 as c7,P4 as d7,O4 as e7,x9 as f7,t8 as g7,B9 as h7,G9 as i7,_4 as j7,H9 as k7,T4 as l7,n8 as m7,R9 as n7,M4 as o7,S4 as p7,L2 as q7,p4 as r7,U9 as s7,c4 as t7,d4 as u7,N0 as v7,O2 as w7,I0 as x7,XZ as y7,c0 as z7,s as A7,_2 as B7,h2 as C7,Z7 as D7,VZ as E7,$7 as F7,b2 as G7,jZ as H7,zZ as I7,J7,j0 as K7,RZ as L7,T2 as M7,Q7 as N7,Y7 as O7,M2 as P7,DZ as Q7,bZ as R7,kZ as S7,U5 as T7,S2 as U7,UZ as V7,vZ as W7,X7,w as Y7,f2 as Z7,Q2 as _7,p0 as $7,d0 as a8,_ as b8,q0 as c8,EZ as d8,b5 as e8,_Z as f8,yZ as g8,f as h8,H5 as i8,hZ as j8,R5 as k8,IZ as l8,G2 as m8,V7 as n8,W7 as o8,k5 as p8,z7 as q8,MZ as r8,fZ as s8,AZ as t8,CZ as u8,uZ as v8,o as w8};
|