@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,3 @@
|
|
|
1
|
+
import{Gc as v,Hc as m,Ic as Vk}from"./cli-1.1.15-6g08vy98.mjs";import{$E as g,AO as Ck,FA as s,GA as zk,Jn as p,Kn as jk,aF as a,ez as l,fz as wk,iF as Gk,oS as r,pS as kk,qO as o,sG as n,sO as t,tG as w,tS as Dk,uG as i,vO as Tk,xG as Lk,zO as e}from"./cli-1.1.15-b16e0ajk.mjs";import{F4 as L,L4 as Jk,d5 as f,f5 as Ok}from"./cli-1.1.15-k1836ne2.mjs";import{C8 as u,D8 as Ik,N8 as d,Q8 as Mk}from"./cli-1.1.15-ae2hn1xh.mjs";import{R9 as S,W9 as _k}from"./cli-1.1.15-rvg56jwp.mjs";import{A$ as $k,Aea as b,Fda as Kk,Jea as c,Rea as $,aga as _,dga as Hk,p_ as K,r_ as Zk,rda as D,w$ as P,wea as U}from"./cli-1.1.15-c6h2gge7.mjs";import{Zga as J,bha as Yk}from"./cli-1.1.15-p1trn7j2.mjs";import{pja as G,qja as Bk}from"./cli-1.1.15-e69gmp99.mjs";import{uka as B,xja as O,xka as C,zja as Rk}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as Xk,Oka as h,Uka as Y}from"./cli-1.1.15-dv1zb375.mjs";import{fla as E,nla as Wk}from"./cli-1.1.15-tc86fw6x.mjs";import{Ioa as V,Sqa as j,qoa as F,soa as y}from"./cli-1.1.15-xn5kcp4k.mjs";import{pra as A,qra as Qk}from"./cli-1.1.15-zg7csyzz.mjs";import{Fsa as W}from"./cli-1.1.15-bwy6nhdk.mjs";Yk();j();$();Qk();j();j();wk();Ok();Gk();Lk();Bk();Hk();Jk();var z=!1;function T(){if(z)return;if(z=!0,L()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDIN_CLIENT_CERT||process.env.CLAUDIN_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||G().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();C();Kk();function x(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=U()?.env,Q=D("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();C();_k();Zk();jk();Wk();Xk();Dk();Vk();Ik();Tk();Mk();Ck();zk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(v(),x(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1.1.15-5d6tk014.mjs"),import("./growthbook-1.1.15-6xn6q0sp.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),f(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),w())n();if(a())g();J("init_after_remote_settings_check"),c();let Q=Date.now();B("[init] configureGlobalMTLS starting"),u(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),d(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),T(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-1.1.15-0kwe084a.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-1.1.15-vsw2gnsy.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-1.1.15-k13jejzh.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(V()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
|
|
2
|
+
`),kk(1);return}return import("./InvalidConfigDialog-1.1.15-yd169vrz.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(w()){if(V()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),m(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await Uk()}catch(k){throw I=!1,k}}async function Uk(){let{initializeTelemetry:k}=await import("./instrumentation-1.1.15-5nywr7k6.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
|
|
3
|
+
export{Yq as _,Zq as $};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Oi as H,Qi as m}from"./cli-1.1.15-xvwbdkk2.mjs";import{Ri as k,Si as y}from"./cli-1.1.15-gq3wg30t.mjs";import{W3 as G,X3 as f}from"./cli-1.1.15-k8spwbtd.mjs";import{c4 as X,e4 as Y,j4 as R}from"./cli-1.1.15-1686x3bq.mjs";import{l4 as B,m4 as C}from"./cli-1.1.15-fyy1ehtf.mjs";import{h8 as w,w8 as E}from"./cli-1.1.15-k1836ne2.mjs";import{Rea as x,pga as Q,tea as S,wea as j,xga as D}from"./cli-1.1.15-c6h2gge7.mjs";import{pja as V,qja as b}from"./cli-1.1.15-e69gmp99.mjs";import{Mra as W,csa as I}from"./cli-1.1.15-fnh28phg.mjs";import{Esa as Z}from"./cli-1.1.15-bwy6nhdk.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=w(),N=L==="team"||L==="enterprise";if(!G()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await B(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();m();y();E();f();C();x();D()});
|
|
2
|
+
export{i as Li,A as Mi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Sqa as I,Zma as z,bna as F}from"./cli-1.1.15-xn5kcp4k.mjs";import{Esa as E}from"./cli-1.1.15-bwy6nhdk.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="channel",h="fork-boilerplate",l="Your directive: ",w,c;var N=E(()=>{w=["help","-h","--help"],c=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
|
|
2
|
+
export{U as Bia,K as Cia,V as Dia,W as Eia,M as Fia,Y as Gia,Z as Hia,$ as Iia,j as Jia,q as Kia,B as Lia,L as Mia,R as Nia,_ as Oia,b as Pia,x as Qia,A as Ria,T as Sia,k as Tia,p as Uia,u as Via,v as Wia,y as Xia,f as Yia,C as Zia,S as _ia,O as $ia,m as aja,g as bja,h as cja,l as dja,w as eja,c as fja,N as gja};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Esa as J}from"./cli-1.1.15-bwy6nhdk.mjs";import v from"node:path";function Z(q){if(q.endsWith(v.sep)||q.endsWith("/"))return K;let j=v.basename(q).toLowerCase();if(j.startsWith("readme"))return B[".md"];if(j.startsWith(".env"))return Q;let z=U[j];if(z)return z;let H=v.extname(j);return B[H]??P}var K="",Y="",P="",Q="",U,B;var V=J(()=>{U={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},B={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""}});
|
|
2
|
+
export{K as Dh,Y as Eh,Z as Fh,V as Gh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{AV as f,BV as h,RV as u}from"./cli-1.1.15-jfe29j4s.mjs";import{IX as C,UX as d}from"./cli-1.1.15-0dyh92xq.mjs";import{h4 as w,j4 as F}from"./cli-1.1.15-1686x3bq.mjs";import{F4 as O,L4 as i}from"./cli-1.1.15-k1836ne2.mjs";import{A8 as x,D8 as v,K8 as M,L8 as A,Q8 as I}from"./cli-1.1.15-ae2hn1xh.mjs";import{pga as K,xga as j}from"./cli-1.1.15-c6h2gge7.mjs";import{pja as R,qja as _}from"./cli-1.1.15-e69gmp99.mjs";import{Zja as X,_ja as P,cka as T,uka as J,xka as W}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as p,Uka as y}from"./cli-1.1.15-dv1zb375.mjs";import{Fsa as q}from"./cli-1.1.15-bwy6nhdk.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.15-jn7yrxqc.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
|
|
2
|
+
export{N as Ha,$z as Ia,Xz as Ja,xz as Ka,Uz as La};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{A9 as ur,B9 as Qc,C9 as Bc,D9 as ra,E9 as Xc,F9 as Yc,G9 as Zc,H9 as Jc,I9 as el,J9 as Hc,K9 as cr,L9 as Cc,M9 as Ts,N9 as gl,n9 as nt,o9 as hl,p9 as bl,q9 as ml,r9 as fn,s9 as $c,t9 as fu,u9 as Al,v9 as ys,w9 as El,x9 as st,y9 as hs,z9 as k}from"./cli-1.1.15-k3j7z8yp.mjs";import{O9 as ie}from"./cli-1.1.15-dw51tkmc.mjs";import{psa as kc,qsa as Le}from"./cli-1.1.15-wkxn6fq7.mjs";import{ssa as Vc}from"./cli-1.1.15-cx3reatp.mjs";import{usa as Fe,vsa as ve,ysa as De,zsa as ee}from"./cli-1.1.15-w79kpn9z.mjs";import{Csa as E,Fsa as Bs}from"./cli-1.1.15-bwy6nhdk.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
2
|
+
${this.getCanonicalPath(e)}
|
|
3
|
+
${er(e)}
|
|
4
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
5
|
+
`)}
|
|
6
|
+
|
|
7
|
+
${n.join(";")}
|
|
8
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
|
|
9
|
+
${e}
|
|
10
|
+
${t}
|
|
11
|
+
${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
|
|
12
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
13
|
+
`+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
14
|
+
${this.getCanonicalPath(e)}
|
|
15
|
+
${Xr(e)}
|
|
16
|
+
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
17
|
+
`)}
|
|
18
|
+
|
|
19
|
+
${n.join(";")}
|
|
20
|
+
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
|
|
21
|
+
${e}
|
|
22
|
+
${t}
|
|
23
|
+
${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
|
|
24
|
+
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
|
|
25
|
+
export{zl as m9};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{cha as X,gha as w,hha as L,iha as _}from"./cli-1.1.15-2cqj7ng5.mjs";import{rja as MD,uja as cD}from"./cli-1.1.15-8w8262sk.mjs";import{aka as ND,cka as rD,gka as jD,kka as aD,uka as x,xka as dD}from"./cli-1.1.15-vvc5kd0e.mjs";import{cla as zD,fla as HD,nla as mD}from"./cli-1.1.15-tc86fw6x.mjs";import{Sqa as PD,Tma as UD}from"./cli-1.1.15-xn5kcp4k.mjs";import{Asa as LD,Csa as bD,Esa as V,Fsa as hD}from"./cli-1.1.15-bwy6nhdk.mjs";var T=bD((Cu,S)=>{S.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});var W=161,f=1114109,p,l=12288,g=65510,h,P=4352,c=262141,j;var m=V(()=>{p=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],h=[12288,12288,65281,65376,65504,65510],j=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var Z=(D,F)=>{let u=0,C=Math.floor(D.length/2)-1;while(u<=C){let E=Math.floor((u+C)/2),B=E*2;if(F<D[B])C=E-1;else if(F>D[B+1])u=E+1;else return!0}return!1};var r=()=>{};function kD(D){let F=D[0],u=D[1];for(let C=0;C<D.length;C+=2){let E=D[C],B=D[C+1];if(a>=E&&a<=B)return[E,B];if(B-E>u-F)F=E,u=B}return[F,u]}var a=19968,_D,yD,d=(D)=>{if(D<W||D>f)return!1;return Z(p,D)},s=(D)=>{if(D<l||D>g)return!1;return Z(h,D)},n=(D)=>{if(D>=_D&&D<=yD)return!0;if(D<P||D>c)return!1;return Z(j,D)};var i=V(()=>{m();r();[_D,yD]=kD(j)});function RD(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function v(D,{ambiguousAsWide:F=!1}={}){if(RD(D),s(D)||n(D)||F&&d(D))return 2;return 1}var o=V(()=>{i()});function G({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var e=()=>{};function O(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);if(!D.includes("\x1B")&&!D.includes(""))return D;return D.replace(wD,"")}var wD;var t=V(()=>{e();wD=G()});function BD(D){let F=0,u=D.replace(ID,()=>{return F++,""});return{count:F,stripped:u}}function AD(D){if(typeof D!=="string"||D.length===0)return 0;if(D.includes(ED)){let{count:C,stripped:E}=BD(D);return C+AD(E)}let F=!0;for(let C=0;C<D.length;C++){let E=D.charCodeAt(C);if(E>=127||E===27){F=!1;break}}if(F){let C=0;for(let E=0;E<D.length;E++)if(D.charCodeAt(E)>31)C++;return C}if(D.includes("\x1B")){if(D=O(D),D.length===0)return 0}if(!xD(D)){let C=0;for(let E of D){let B=E.codePointAt(0);if(!uD(B))C+=v(B,{ambiguousAsWide:!1})}return C}let u=0;for(let{segment:C}of X().segment(D)){if(DD.lastIndex=0,DD.test(C)){u+=SD(C);continue}for(let E of C){let B=E.codePointAt(0);if(!uD(B)){u+=v(B,{ambiguousAsWide:!1});break}}}return u}function xD(D){for(let F of D){let u=F.codePointAt(0);if(u>=127744&&u<=129791)return!0;if(u>=9728&&u<=10175)return!0;if(u>=127462&&u<=127487)return!0;if(u>=65024&&u<=65039)return!0;if(u===8205)return!0}return!1}function SD(D){let F=D.codePointAt(0);if(F>=127462&&F<=127487){let u=0;for(let C of D)u++;return u===1?1:2}if(D.length===2){if(D.codePointAt(1)===65039&&(F>=48&&F<=57||F===35||F===42))return 1}return 2}function uD(D){if(D>=32&&D<127)return!1;if(D>=160&&D<768)return D===173;if(D<=31||D>=127&&D<=159)return!0;if(D>=8203&&D<=8205||D===65279||D>=8288&&D<=8292)return!0;if(D>=65024&&D<=65039||D>=917760&&D<=917999)return!0;if(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)return!0;if(D>=2304&&D<=3407){let F=D&127;if(F<=3)return!0;if(F>=58&&F<=79)return!0;if(F>=81&&F<=87)return!0;if(F>=98&&F<=99)return!0}if(D===3633||D>=3636&&D<=3642||D>=3655&&D<=3662||D===3761||D>=3764&&D<=3772||D>=3784&&D<=3789)return!0;if(D>=1536&&D<=1541||D===1757||D===1807||D===2274)return!0;if(D>=55296&&D<=57343)return!0;if(D>=917504&&D<=917631)return!0;return!1}var CD,DD,ED="\uDBFB\uDEEE",ID,b,FD,$;var QD=V(()=>{o();t();_();CD=LD(T(),1),DD=CD.default(),ID=/\u{10EEEE}\p{M}{0,3}/gu;b=typeof Bun<"u"&&typeof Bun.stringWidth==="function"?Bun.stringWidth:null,FD={ambiguousIsNarrow:!0},$=b?(D)=>{if(D.includes(ED)){let{count:F,stripped:u}=BD(D);return F+(u.length>0?b(u,FD):0)}return b(D,FD)}:AD});function TD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"…";if(F<5)return K(u,F);let C=u.lastIndexOf("/"),E=C>=0?u.slice(C):u,B=C>=0?u.slice(0,C):"",A=$(E);if(A>=F-1)return y(D,F);let Q=F-1-A;if(Q<=0)return y(E,F);return VD(B,Q)+"…"+E}function K(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F-1)break;E+=B,C+=A}return E+"…"}function y(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=[...X().segment(u)],E=0,B=C.length;for(let A=C.length-1;A>=0;A--){let Q=$(C[A].segment);if(E+Q>F-1)break;E+=Q,B=A}return"…"+C.slice(B).map((A)=>A.segment).join("")}function VD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F)break;E+=B,C+=A}return E}function WD(D,F,u=!1){let C=D??"";if(C==="")return"";let E=C;if(u){let B=C.indexOf(`
|
|
2
|
+
`);if(B!==-1){if(E=C.substring(0,B),$(E)+1>F)return K(E,F);return`${E}…`}}if($(E)<=F)return E;return K(E,F)}var $D=V(()=>{QD();_()});function U(D){let F=D/1024;if(F<1)return`${D} bytes`;if(F<1024)return`${F.toFixed(1).replace(/\.0$/,"")}KB`;let u=F/1024;if(u<1024)return`${u.toFixed(1).replace(/\.0$/,"")}MB`;return`${(u/1024).toFixed(1).replace(/\.0$/,"")}GB`}function Ru(D){return`${(D/1000).toFixed(1)}s`}function wu(D,F){if(D<60000){if(D===0)return"0s";if(D<1000)return`${(D/1000).toFixed(1)}s`;return`${Math.floor(D/1000).toString()}s`}let u=Math.floor(D/86400000),C=Math.floor(D%86400000/3600000),E=Math.floor(D%3600000/60000),B=Math.round(D%60000/1000);if(B===60)B=0,E++;if(E===60)E=0,C++;if(C===24)C=0,u++;let A=F?.hideTrailingZeros;if(F?.mostSignificantOnly){if(u>0)return`${u}d`;if(C>0)return`${C}h`;if(E>0)return`${E}m`;return`${B}s`}if(u>0){if(A&&C===0&&E===0)return`${u}d`;if(A&&E===0)return`${u}d ${C}h`;return`${u}d ${C}h ${E}m`}if(C>0){if(A&&E===0&&B===0)return`${C}h`;if(A&&B===0)return`${C}h ${E}m`;return`${C}h ${E}m ${B}s`}if(E>0){if(A&&B===0)return`${E}m`;return`${E}m ${B}s`}return`${B}s`}function pD(D){let F=D>=1000;return fD(F).format(D).toLowerCase()}function Lu(D){return pD(D).replace(".0","")}function qD(D,F={}){let{style:u="narrow",numeric:C="always",now:E=new Date}=F,B=D.getTime()-E.getTime(),A=Math.trunc(B/1000),Q=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:q,seconds:Y,shortUnit:N}of Q)if(Math.abs(A)>=Y){let J=Math.trunc(A/Y);if(u==="narrow")return A<0?`${Math.abs(J)}${N} ago`:`in ${J}${N}`;return w("long",C).format(J,q)}if(u==="narrow")return A<=0?"0s ago":"in 0s";return w(u,C).format(0,"second")}function lD(D,F={}){let{now:u=new Date,...C}=F;if(D>u)return qD(D,{...C,now:u});return qD(D,{...C,numeric:"always",now:u})}function Iu(D){let F=D.fileSize!==void 0?U(D.fileSize):`${D.messageCount} messages`,u=[lD(D.modified,{style:"short"}),...D.gitBranch?[D.gitBranch]:[],F];if(D.tag)u.push(`#${D.tag}`);if(D.agentSetting)u.push(`@${D.agentSetting}`);if(D.prNumber)u.push(D.prRepository?`${D.prRepository}#${D.prNumber}`:`#${D.prNumber}`);return u.join(" · ")}function gD(D,F=!1,u=!0){if(!D)return;let C=new Date(D*1000),E=new Date,B=C.getMinutes();if((C.getTime()-E.getTime())/3600000>24){let q={month:"short",day:"numeric",hour:u?"numeric":void 0,minute:!u||B===0?void 0:"2-digit",hour12:u?!0:void 0};if(C.getFullYear()!==E.getFullYear())q.year="numeric";return C.toLocaleString("en-US",q).replace(/ ([AP]M)/i,(N,J)=>J.toLowerCase())+(F?` (${L()})`:"")}return C.toLocaleTimeString("en-US",{hour:"numeric",minute:B===0?void 0:"2-digit",hour12:!0}).replace(/ ([AP]M)/i,(q,Y)=>Y.toLowerCase())+(F?` (${L()})`:"")}function xu(D,F=!1,u=!0){let C=new Date(D);return`${gD(Math.floor(C.getTime()/1000),F,u)}`}var k=null,R=null,fD=(D)=>{if(D){if(!k)k=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1});return k}else{if(!R)R=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0});return R}};var XD=V(()=>{_();$D()});function z(){if(!I)I=hD("perf_hooks").performance;return I}function M(D){return D.toFixed(3)}function YD(D,F,u,C,E,B,A=""){let Q=C?` | RSS: ${U(C.rss)}, Heap: ${U(C.heapUsed)}`:"";return`[+${M(D).padStart(E)}ms] (+${M(F).padStart(B)}ms) ${u}${A}${Q}`}var I=null;var JD=V(()=>{XD()});import{dirname as sD,join as nD}from"path";function eD(D){if(!GD)return;if(z().mark(D),H)OD.push(process.memoryUsage())}function ZD(){if(!H)return"Startup profiling not enabled";let F=z().getEntriesByType("mark");if(F.length===0)return"No profiling checkpoints recorded";let u=[];u.push("=".repeat(80)),u.push("STARTUP PROFILING REPORT"),u.push("=".repeat(80)),u.push("");let C=0;for(let[B,A]of F.entries())u.push(YD(A.startTime,A.startTime-C,A.name,OD[B],8,7)),C=A.startTime;let E=F[F.length-1];return u.push(""),u.push(`Total startup time: ${M(E?.startTime??0)}ms`),u.push("=".repeat(80)),u.join(`
|
|
3
|
+
`)}function tD(){if(KD)return;if(KD=!0,uu(),H){let D=Du(),F=sD(D);jD().mkdirSync(F),ND(D,ZD(),{encoding:"utf8",flush:!0}),x("Startup profiling report:"),x(ZD())}}function Du(){return nD(zD(),"startup-perf",`${UD()}.txt`)}function uu(){if(!vD)return;let F=z().getEntriesByType("mark");if(F.length===0)return;let u=new Map;for(let E of F)u.set(E.name,E.startTime);let C={};for(let[E,[B,A]]of Object.entries(oD)){let Q=u.get(B),q=u.get(A);if(Q!==void 0&&q!==void 0)C[`${E}_ms`]=Math.round(q-Q)}C.checkpoint_count=F.length,MD("",C)}var H,iD=0.005,vD,GD,OD,oD,KD=!1;var Fu=V(()=>{PD();cD();dD();mD();aD();JD();rD();H=HD(process.env.CLAUDIN_PROFILE_STARTUP),vD=Math.random()<iD,GD=H||vD,OD=[],oD={import_time:["cli_entry","main_tsx_imports_loaded"],init_time:["init_function_start","init_function_end"],settings_time:["eagerLoadSettings_start","eagerLoadSettings_end"],total_time:["cli_entry","main_after_run"]};if(GD)eD("profiler_initialized"),process.on("exit",()=>{try{tD()}catch{}})});
|
|
4
|
+
export{v as yga,o as zga,O as Aga,t as Bga,$ as Cga,QD as Dga,TD as Ega,K as Fga,y as Gga,VD as Hga,WD as Iga,$D as Jga,U as Kga,Ru as Lga,wu as Mga,pD as Nga,Lu as Oga,qD as Pga,lD as Qga,Iu as Rga,gD as Sga,xu as Tga,XD as Uga,z as Vga,M as Wga,YD as Xga,JD as Yga,eD as Zga,tD as _ga,Du as $ga,uu as aha,Fu as bha};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$d as _,be as P}from"./cli-1.1.15-t3rgyeam.mjs";import{Ce as Z,De as y}from"./cli-1.1.15-180mwt3m.mjs";import{Gx as X,Kx as K,Ux as Y,Wx as A}from"./cli-1.1.15-b16e0ajk.mjs";import{dY as V,gY as C}from"./cli-1.1.15-tpbkevjz.mjs";import{L3 as H,N3 as Q}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as W}from"./cli-1.1.15-fk3ac4gc.mjs";import{Aga as L,Bga as M}from"./cli-1.1.15-p1trn7j2.mjs";import{Asa as T,Esa as U}from"./cli-1.1.15-bwy6nhdk.mjs";function b({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function j(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function v(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let B=(w)=>_(H(X,{children:H(b,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=j(w);for(let w=0;w<N;w+=I){let O=await B([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await v(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var x=U(()=>{M();y();C();A();K();P();Q();J=T(W(),1)});
|
|
2
|
+
export{l as lc,x as mc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ab as R,Bb as W}from"./cli-1.1.15-gbrgyagf.mjs";import{Gb as M}from"./cli-1.1.15-49wq39yd.mjs";import{iW as E,jW as w}from"./cli-1.1.15-f146m97m.mjs";import{uka as L,xka as H}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as z,Uka as Z}from"./cli-1.1.15-dv1zb375.mjs";H();z();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:f,getAuthToken:j}=B,P;if(j)P=()=>{let x=j();if(!x)return{};return{Authorization:`Bearer ${x}`}};else E(_);let Q=B.epoch??await M(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new W(V,{},$,void 0,f,P),X,J=new R(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let N,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){N=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),N?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
|
|
2
|
+
export{I as vb,k as wb,D as xb};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Dk as S,Dl as m,Ek as Iq,OC as P,Ol as W,PC as Zq,Rl as p,Sl as j,WH as d,XH as Yq,Xn as c,Yl as Jq,Yn as Xq,hG as l,iG as Aq,jm as F,oT as Oq,om as Vq,pT as Bq,rS as n,tS as _q}from"./cli-1.1.15-b16e0ajk.mjs";import{CU as i,DU as Lq}from"./cli-1.1.15-cvwkywg9.mjs";import{I0 as M,K0 as E,jZ as Gq,n1 as Qq}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as Q,M3 as v,N3 as N}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as Kq}from"./cli-1.1.15-fk3ac4gc.mjs";import{u_ as R,w_ as Hq}from"./cli-1.1.15-c6h2gge7.mjs";import{rja as y,uja as qq}from"./cli-1.1.15-8w8262sk.mjs";import{uka as T,xka as zq}from"./cli-1.1.15-vvc5kd0e.mjs";import{Asa as k,Bsa as e,Esa as g}from"./cli-1.1.15-bwy6nhdk.mjs";function f(){(Bq(),e(Oq)).saveWorktreeState(null),S()}function u({onDone:G,onCancel:J}){let[V,H]=X.useState("loading"),[I,O]=X.useState([]),[z,Z]=X.useState(0),[_,K]=X.useState(),q=m();if(X.useEffect(()=>{async function A(){let B=[],Y=await R("git",["status","--porcelain"]);if(Y.stdout)B=Y.stdout.split(`
|
|
2
|
+
`).filter((U)=>U.trim()!==""),O(B);if(q){let{stdout:U}=await R("git",["rev-list","--count",`${q.originalHeadCommit}..HEAD`]),w=parseInt(U.trim())||0;if(Z(w),B.length===0&&w===0){H("removing"),j().then(()=>{process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.(),K("Worktree removed (no changes)")}).catch((s)=>{T(`Failed to clean up worktree: ${s}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway")}).finally(()=>{f()}).then(()=>{H("done")});return}else H("asking")}}A()},[q]),X.useEffect(()=>{if(V==="done")G(_)},[V,G,_]),!q)return G("No active worktree session found",{display:"system"}),null;if(V==="loading"||V==="done")return null;async function D(A){if(!q)return;let B=Boolean(q.tmuxSessionName);if(A==="keep"||A==="keep-with-tmux"){H("keeping"),y("",{commits:z,changed_files:I.length}),await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}if(F.cache.clear?.(),B)K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${q.tmuxSessionName}`);else K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}`);H("done")}else if(A==="keep-kill-tmux"){if(H("keeping"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}F.cache.clear?.(),K(`Worktree kept at ${q.worktreePath} on branch ${q.worktreeBranch}. Tmux session terminated.`),H("done")}else if(A==="remove"||A==="remove-with-tmux"){if(H("removing"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);try{await j(),process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.()}catch(U){T(`Failed to clean up worktree: ${U}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway"),H("done");return}finally{f()}let Y=B?" Tmux session terminated.":"";if(z>0&&I.length>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} and uncommitted changes were discarded.${Y}`);else if(z>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} on ${q.worktreeBranch} ${z===1?"was":"were"} discarded.${Y}`);else if(I.length>0)K(`Worktree removed. Uncommitted changes were discarded.${Y}`);else K(`Worktree removed.${Y}`);H("done")}}if(V==="keeping")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Keeping worktree…"})]});if(V==="removing")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Removing worktree…"})]});let h=q.worktreeBranch,b=I.length>0,$=z>0,L="";if(b&&$)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"} and ${z} ${z===1?"commit":"commits"} on ${h}. All will be lost if you remove.`;else if(b)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if($)L=`You have ${z} ${z===1?"commit":"commits"} on ${h}. The branch will be deleted if you remove the worktree.`;else L="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function o(){if(J){J();return}D("keep")}let x=b||$?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(q.tmuxSessionName),t=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${q.worktreePath}. Reattach with: tmux attach -t ${q.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${q.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:x}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${q.worktreePath}`},{label:"Remove worktree",value:"remove",description:x}];return Q(c,{title:"Exiting worktree session",subtitle:L,onCancel:o,children:Q(l,{defaultFocusValue:C?"keep-with-tmux":"keep",options:t,onChange:D})})}var X;var a=g(()=>{qq();zq();Qq();Hq();Vq();Iq();Zq();Jq();Aq();Xq();Yq();N();X=k(Kq(),1)});function Fq(){return i(Uq)??"Goodbye!"}function wq(G){let J=r.c(5),{showWorktree:V,onDone:H,onCancel:I}=G,O;if(J[0]!==H)O=async function(_){H(_??Fq()),await n(0,"prompt_input_exit")},J[0]=H,J[1]=O;else O=J[1];let z=O;if(V){let Z;if(J[2]!==I||J[3]!==z)Z=Q(u,{onDone:z,onCancel:I}),J[2]=I,J[3]=z,J[4]=Z;else Z=J[4];return Z}return null}var r,Uq;var Pq=g(()=>{Lq();_q();a();N();r=k(Gq(),1),Uq=["Goodbye!","See ya!","Bye!","Catch you later!"]});
|
|
3
|
+
export{wq as jc,Pq as kc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ac as U,Bc as $,wc as O,xc as Q}from"./cli-1.1.15-emegjc48.mjs";import{hG as N,jG as _}from"./cli-1.1.15-b16e0ajk.mjs";import{I0 as G,K0 as z,n1 as Z}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as q,M3 as F,N3 as K}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as Y}from"./cli-1.1.15-fk3ac4gc.mjs";import{Asa as W,Esa as X}from"./cli-1.1.15-bwy6nhdk.mjs";function R({enabled:J,onDismiss:H}){let[w,A]=V.useState(()=>J?{kind:"prompt"}:{kind:"hidden"});if(!J||w.kind==="hidden")return null;if(w.kind==="running")return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),q(z,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(w.kind==="success"||w.kind==="error"){let I=w.kind==="success"?"success":"warning",E=w.kind==="success"?"Migration complete":"Migration finished with warnings";return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:I,bold:!0,children:E}),q(z,{children:Q(w.report)})]})}return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),q(z,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),q(N,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(I)=>{if(I==="skip"){U(),A({kind:"hidden"}),H?.("skipped");return}A({kind:"running"}),(async()=>{let E=await O();A({kind:E.errors.length===0?"success":"error",report:E}),H?.("migrated")})()},onCancel:()=>{A({kind:"hidden"}),H?.("skipped")},visibleOptionCount:2})]})}var V;var f=X(()=>{Z();$();_();K();V=W(Y(),1)});
|
|
2
|
+
export{R as uc,f as vc};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Td as c,Xd as Eq}from"./cli-1.1.15-3ehpt6h2.mjs";import{$o as t,Bt as l,Ct as wq,IL as n,OL as e,PL as P,TL as jq,UL as O,VL as qq,XL as I,Xo as s,YL as Gq,Yo as Tq,bp as Mq,cM as Cq,fM as b,fp as i,gM as Lq,hp as Rq,jM as Hq,kM as Jq,lp as A,mL as v,mM as vq,nL as m,nM as y,np as D,oM as Qq,op as Aq,pL as Oq,pM as Xq,pp as h,qM as Yq,qp as S,rM as $q,rp as Fq,sM as d,vM as Dq}from"./cli-1.1.15-b16e0ajk.mjs";import{Fda as _q,Oca as V,Wca as Kq,pga as a,rda as F,tda as L,xga as Bq}from"./cli-1.1.15-c6h2gge7.mjs";import{gka as p,kka as xq}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as Wq,Tka as o,Wka as N}from"./cli-1.1.15-dv1zb375.mjs";import{Sqa as Uq,Zma as f}from"./cli-1.1.15-xn5kcp4k.mjs";import{Esa as Zq}from"./cli-1.1.15-bwy6nhdk.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(U){a(o(U));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,x=`${Z.name}@${Y}`,Q=await Jq({pluginId:x,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${x} (scope: ${H})${Q.depNote}`,pluginId:x,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),x=F(Z),Q,$;if(z)Q=Object.keys(x?.enabledPlugins??{}).find((W)=>W===q||W===z.name||W.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let W=yq(q);if(!W)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=W.pluginId,$=W.pluginName}let B=zq(H),U=O().plugins[Q],M=U?.find((W)=>W.scope===H&&W.projectPath===B);if(!M){let{scope:W}=kq(Q);if(W!==H&&U&&U.length>0){if(W==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${W} scope, not ${H}. Use --scope ${W} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...x?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),x=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&x===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?x===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:U}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(U)return{success:!1,message:`Failed to ${X} plugin: ${U.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function UG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),x=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let U=await Yq(G.source,{manifest:{name:G.name}});Q=U.path,B=!0,K=U.gitCommitSha,$=await b(q,G.source,U.manifest,U.path,G.version,U.gitCommitSha)}else{let U;try{U=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=U.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let U=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===U||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:x,alreadyUpToDate:!0,scope:Y};U=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,U,$,K),_&&_!==U){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((W)=>W.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${x||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:x,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{Uq();Rq();Wq();xq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as Gd,HG as Hd,JG as Id,QG as Jd,kq as Kd,XG as Ld,YG as Md,$G as Nd,zG as Od,ZG as Pd,UG as Qd,hq as Rd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{pd as t,qd as DJ}from"./cli-1.1.15-6w168zj1.mjs";import{Zh as r,_h as IJ}from"./cli-1.1.15-5gp5r54s.mjs";import{Bm as wJ,In as JJ,MR as h,UG as s,Vl as g,WD as YJ,Wy as c,Xy as MJ,YG as yJ,Yl as UJ,ZG as l,_G as TJ,_N as $J,bE as jJ,cE as PJ,ex as XJ,hE as o,iE as xJ,jm as d,om as _J,pT as bJ,tF as a,uF as LJ,vm as m,zj as p}from"./cli-1.1.15-b16e0ajk.mjs";import{hV as u,iV as f,tV as BJ}from"./cli-1.1.15-jfe29j4s.mjs";import{N6 as QJ}from"./cli-1.1.15-k1836ne2.mjs";import{$$ as KJ,Eda as D,Fda as zJ,gga as A,hga as NJ,pga as U,wda as I,xga as k}from"./cli-1.1.15-c6h2gge7.mjs";import{Hha as GJ}from"./cli-1.1.15-zw3cc5m8.mjs";import{rja as b,uja as C}from"./cli-1.1.15-8w8262sk.mjs";import{cka as qJ,gka as W,kka as VJ,uka as y,xka as WJ}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as e}from"./cli-1.1.15-dv1zb375.mjs";import{cla as _,nla as ZJ}from"./cli-1.1.15-tc86fw6x.mjs";import{Joa as F,Sqa as S,_na as H}from"./cli-1.1.15-xn5kcp4k.mjs";import{Bsa as CJ}from"./cli-1.1.15-bwy6nhdk.mjs";xJ();IJ();S();GJ();C();KJ();h();QJ();qJ();$J();JJ();k();e();h();XJ();YJ();function j(){}S();C();NJ();WJ();ZJ();VJ();MJ();k();LJ();_J();bJ();TJ();BJ();zJ();wJ();UJ();import{join as Z}from"path";var AJ=30;function N(){let q=((I()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function i(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function vJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function P(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(vJ(K.name)<J)if(await W().unlink(Z(X,K.name)),q)$.messages++;else $.errors++}catch(Y){U(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")U(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await P(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Q)=>Q.isDirectory()&&Q.name.startsWith("mcp-logs-")).map((Q)=>Z($,Q.name));for(let Q of Y)G=i(G,await P(Q,J,!0)),await V(Q,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")U(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function FJ(){let X=N(),J={messages:0,errors:0},q=p(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Z(q,K.name),Q;try{Q=await $.readdir(Y)}catch{J.errors++;continue}for(let z of Q)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await w(Z(Y,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Z(Y,z.name),B=Z(L,m),O;try{O=await $.readdir(B)}catch{await V(L,$);continue}for(let M of O)if(M.isFile())try{if(await w(Z(B,M.name),X,$))J.messages++}catch{J.errors++}else if(M.isDirectory()){let T=Z(B,M.name),R;try{R=await $.readdir(T)}catch{continue}for(let E of R){if(!E.isFile())continue;try{if(await w(Z(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(B,$),await V(L,$)}await V(Y,$)}return J}async function x(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Q of Y){if(!Q.isFile()||!Q.name.endsWith(J))continue;try{if(await w(Z(X,Q.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function OJ(){let X=d(),J=await x(X,".md"),q=Z(_(),"plans");if(q!==X){let $=await x(q,".md");return i(J,$)}return J}async function RJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));await Promise.all(Y.map(async(Q)=>{try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){U($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));for(let Q of Y)try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){U($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Z(_(),"tasks"),G=f(u()),K;try{K=await q.readdir($)}catch{return J}for(let Y of K){if(!Y.isDirectory()||Y.name===G)continue;let Q=Z($,Y.name);try{if(await hJ(Q,q)<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){U($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Z(X,G.name));if(K>q)q=K}catch{}}return q}async function SJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Z(_(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Z($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function n(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){y("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await FJ(),await OJ(),await RJ(),await EJ(),await kJ(),await SJ(),await c(),await a(N());let J=await g(N());if(J>0)b("",{removed:J})}yJ();DJ();var pJ=(PJ(),CJ(jJ));var v=600000;function mX(){r(),j(),pJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await n();if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}await s()}setTimeout(J,v).unref()}
|
|
2
|
+
export{mX as Sa};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{d2 as S,e2 as D,i2 as N}from"./cli-1.1.15-q6nb88hp.mjs";import{Rda as H,Rea as d,Sda as P,pga as X,tea as B,wea as O,xga as E}from"./cli-1.1.15-c6h2gge7.mjs";import{$ka as f,Tka as U}from"./cli-1.1.15-dv1zb375.mjs";import{cla as W,nla as b}from"./cli-1.1.15-tc86fw6x.mjs";import{Ioa as T,Sqa as M}from"./cli-1.1.15-xn5kcp4k.mjs";import{Mra as j,csa as y}from"./cli-1.1.15-fnh28phg.mjs";import{Asa as R,Esa as p}from"./cli-1.1.15-bwy6nhdk.mjs";import{mkdir as G,readFile as m,writeFile as _}from"fs/promises";import{dirname as F,join as u}from"path";function I(){return u(W(),"cache","changelog.md")}async function Jq(){let J=O();if(!J.cachedChangelog)return;let q=I();try{await G(F(q),{recursive:!0}),await _(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}B(({cachedChangelog:Y,...z})=>z)}async function C(){if(T())return;if(H())return;let J=await j.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=I();await G(F(Y),{recursive:!0}),await _(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();B((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=I();try{let q=await m(J,"utf-8");return $=q,q}catch{return $="",""}}function A(){return $??""}function L(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
|
|
2
|
+
`);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let x=K.slice(1).filter((k)=>k.trim().startsWith("- ")).map((k)=>k.trim().substring(2).trim()).filter(Boolean);if(x.length>0)q[Z]=x}return q}catch(q){return X(U(q)),{}}}function l(J,q,Y=A()){try{let z=L(Y),K=w.coerce(J),Q=q?w.coerce(q):null;if(!Q||K&&D(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||D(Z,Q.version)).sort(([Z],[x])=>D(Z,x)?-1:1).flatMap(([Z,x])=>x).filter(Boolean).slice(0,V)}catch(z){return X(U(z)),[]}return[]}function Kq(J=A()){try{let q=L(J);return Object.keys(q).sort((z,K)=>D(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return X(U(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>X(U(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var w,V=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var c=p(()=>{y();M();d();b();f();E();P();N();w=R(S(),1)});
|
|
3
|
+
export{zq as $e,Jq as af,C as bf,h as cf,Kq as df,Qq as ef,c as ff};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Csa as H,Esa as UJ}from"./cli-1.1.15-bwy6nhdk.mjs";var N=H((IJ,Oq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,j1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:j1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var S=H((OJ,Hq)=>{var z1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=z1});var C=H((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=S();L=wq.exports={};var I1=L.re=[],O1=L.safeRe=[],j=L.src=[],H1=L.safeSrc=[],z=L.t={},w1=0,r="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[r,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),Z=w1++;F1(q,Z,$),z[q]=Z,j[Z]=$,H1[Z]=Q,I1[Z]=new RegExp($,J?"g":void 0),O1[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${r}*`);w("MAINVERSION",`(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${j[z.PRERELEASEIDENTIFIER]}(?:\\.${j[z.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${j[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${j[z.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${r}+`);w("BUILD",`(?:\\+(${j[z.BUILDIDENTIFIER]}(?:\\.${j[z.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${j[z.MAINVERSION]}${j[z.PRERELEASE]}?${j[z.BUILD]}?`);w("FULL",`^${j[z.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${j[z.MAINVERSIONLOOSE]}${j[z.PRERELEASELOOSE]}?${j[z.BUILD]}?`);w("LOOSE",`^${j[z.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${j[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${j[z.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:${j[z.PRERELEASE]})?${j[z.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:${j[z.PRERELEASELOOSE]})?${j[z.BUILD]}?)?)?`);w("XRANGE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`);w("COERCE",`${j[z.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",j[z.COERCEPLAIN]+`(?:${j[z.PRERELEASE]})?(?:${j[z.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",j[z.COERCE],!0);w("COERCERTLFULL",j[z.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${j[z.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${j[z.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${j[z.LONECARET]}${j[z.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${j[z.LONECARET]}${j[z.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${j[z.GTLT]}\\s*(${j[z.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]}|${j[z.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${j[z.XRANGEPLAIN]})\\s+-\\s+(${j[z.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${j[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${j[z.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=H((HJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var o=H((wJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var G=H((yJ,Vq)=>{var h=S(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=C(),P1=b(),{compareIdentifiers:e}=o(),_1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(e(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=P1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let Z=+Q;if(Z>=0&&Z<f)return Z}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(_1(this.prerelease,$)){let W=this.prerelease[$.split(".").length];if(isNaN(W))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=H((BJ,_q)=>{var Pq=G(),X1=(q,$,J=!1)=>{if(q instanceof Pq)return q;try{return new Pq(q,$)}catch(Q){if(!J)return null;throw Q}};_q.exports=X1});var Aq=H((xJ,Xq)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};Xq.exports=L1});var Eq=H((DJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Sq=H((GJ,Cq)=>{var Nq=G(),C1=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Cq.exports=C1});var uq=H((VJ,kq)=>{var Rq=E(),S1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,Y=W?Q:J,F=!!K.prerelease.length;if(!!Y.prerelease.length&&!F){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let I=F?"pre":"";if(J.major!==Q.major)return I+"major";if(J.minor!==Q.minor)return I+"minor";if(J.patch!==Q.patch)return I+"patch";return"prerelease"};kq.exports=S1});var Mq=H((PJ,Tq)=>{var R1=G(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=H((_J,bq)=>{var u1=G(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=H((XJ,fq)=>{var M1=G(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=H((AJ,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var _=H((LJ,cq)=>{var gq=G(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=H((EJ,mq)=>{var d1=_(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=H((NJ,sq)=>{var g1=_(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=H((CJ,tq)=>{var nq=G(),m1=(q,$,J)=>{let Q=new nq(q,J),Z=new nq($,J);return Q.compare(Z)||Q.compareBuild(Z)};tq.exports=m1});var rq=H((SJ,iq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));iq.exports=s1});var eq=H((RJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=H((kJ,q0)=>{var t1=_(),i1=(q,$,J)=>t1(q,$,J)>0;q0.exports=i1});var g=H((uJ,$0)=>{var r1=_(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var qq=H((TJ,J0)=>{var e1=_(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var $q=H((MJ,Q0)=>{var $$=_(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=H((bJ,W0)=>{var Q$=_(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=H((hJ,Z0)=>{var Z$=_(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var Jq=H((fJ,K0)=>{var j$=qq(),z$=$q(),Y$=R(),U$=c(),F$=g(),I$=m(),O$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return j$(q,J,Q);case"!=":return z$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return I$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=O$});var z0=H((vJ,j0)=>{var H$=G(),w$=E(),{safeRe:p,t:s}=C(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let F=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],U;while((U=F.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||U.index+U[0].length!==J.index+J[0].length)J=U;F.lastIndex=U.index+U[1].length+U[2].length}F.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${Z}.${W}${K}${Y}`,$)};j0.exports=y$});var U0=H((dJ,Y0)=>{var B$=E(),x$=N(),D$=G(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&P$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},P$=(q,$)=>{if(_$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},_$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var O0=H((lJ,I0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}I0.exports=F0});var X=H((gJ,B0)=>{var X$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Qq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(X$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];q=q.replace(W,s$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(P[V.COMPARATORTRIM],C$),B("comparator trim",q),q=q.replace(P[V.TILDETRIM],S$),B("tilde trim",q),q=q.replace(P[V.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((I)=>b$(I,this.options)).join(" ").split(/\s+/).map((I)=>p$(I,this.options));if(Z)K=K.filter((I)=>{return B("loose invalid filter",I,this.options),!!I.match(P[V.COMPARATORLOOSE])});B("range list",K);let Y=new Map,F=K.map((I)=>new Qq(I,this.options));for(let I of F){if(w0(I))return[I];Y.set(I.value,I)}if(Y.size>1&&Y.has(""))Y.delete("");let U=[...Y.values()];return H0.set(J,U),U}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(a$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=O0(),H0=new A$,L$=b(),Qq=u(),B=S(),E$=G(),{safeRe:P,src:N$,t:V,comparatorTrimReplace:C$,tildeTrimReplace:S$,caretTrimReplace:R$}=C(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[V.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},b$=(q,$)=>{return q=q.replace(P[V.BUILD],""),B("comp",q,$),q=d$(q,$),B("caret",q),q=f$(q,$),B("tildes",q),q=g$(q,$),B("xrange",q),q=m$(q,$),B("stars",q),q},D=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$,J)=>D(q)&&!D($)||D($)&&J&&!D(J),f$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>v$(J,$)).join(" ")},v$=(q,$)=>{let J=$.loose?P[V.TILDELOOSE]:P[V.TILDE],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("tilde",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else if(F)B("replaceTilde pr",F),U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;return B("tilde return",U),U})},d$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>l$(J,$)).join(" ")},l$=(q,$)=>{B("caret",q,$);let J=$.loose?P[V.CARETLOOSE]:P[V.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("caret",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))if(W==="0")U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(F)if(B("replaceCaret pr",F),W==="0")if(K==="0")U=`>=${W}.${K}.${Y}-${F} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y}-${F} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")U=`>=${W}.${K}.${Y} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${+W+1}.0.0-0`;return B("caret return",U),U})},g$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>c$(J,$)).join(" ")},c$=(q,$)=>{q=q.trim();let J=$.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return q.replace(J,(Q,Z,W,K,Y,F)=>{if(B("xRange",q,Q,Z,W,K,Y,F),h$(W,K,Y))return q;let U=D(W),I=U||D(K),y=I||D(Y),x=y;if(Z==="="&&x)Z="";if(F=$.includePrerelease?"-0":"",U)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(I)K=0;if(Y=0,Z===">")if(Z=">=",I)W=+W+1,K=0,Y=0;else K=+K+1,Y=0;else if(Z==="<=")if(Z="<",I)W=+W+1;else K=+K+1;if(Z==="<")F="-0";Q=`${Z+W}.${K}.${Y}${F}`}else if(I)Q=`>=${W}.0.0${F} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${F} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},m$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(P[V.STAR],"")},p$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(P[$.includePrerelease?V.GTE0PRE:V.GTE0],"")},s$=(q)=>($,J,Q,Z,W,K,Y,F,U,I,y,x)=>{if(D(Q))J="";else if(D(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(D(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(D(U))F="";else if(D(I))F=`<${+U+1}.0.0-0`;else if(D(y))F=`<${U}.${+I+1}.0-0`;else if(x)F=`<=${U}.${I}.${y}-${x}`;else if(q)F=`<${U}.${I}.${+y+1}-0`;else F=`<=${F}`;return`${J} ${F}`.trim()},a$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Qq.ANY)continue;if(q[Q].semver.prerelease.length>0){let Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=H((cJ,_0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Zq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Zq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Zq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Wq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new P0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new P0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Wq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Wq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}_0.exports=a;var x0=b(),{safeRe:D0,t:G0}=C(),Wq=Jq(),Zq=S(),V0=G(),P0=X()});var M=H((mJ,X0)=>{var n$=X(),t$=(q,$,J)=>{try{$=new n$($,J)}catch(Q){return!1}return $.test(q)};X0.exports=t$});var L0=H((pJ,A0)=>{var i$=X(),r$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=r$});var N0=H((sJ,E0)=>{var o$=G(),e$=X(),q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new e$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new o$(Q,J)}}),Q};E0.exports=q9});var S0=H((aJ,C0)=>{var $9=G(),J9=X(),Q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new J9($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new $9(Q,J)}}),Q};C0.exports=Q9});var u0=H((nJ,k0)=>{var Kq=G(),W9=X(),R0=R(),Z9=(q,$)=>{q=new W9(q,$);let J=new Kq("0.0.0");if(q.test(J))return J;if(J=new Kq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let Z=q.set[Q],W=null;if(Z.forEach((K)=>{let Y=new Kq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!W||R0(Y,W))W=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||R0(J,W)))J=W}if(J&&q.test(J))return J;return null};k0.exports=Z9});var M0=H((tJ,T0)=>{var K9=X(),j9=(q,$)=>{try{return new K9(q,$).range||"*"}catch(J){return null}};T0.exports=j9});var n=H((iJ,v0)=>{var z9=G(),f0=u(),{ANY:Y9}=f0,U9=X(),F9=M(),b0=R(),h0=g(),I9=m(),O9=c(),H9=(q,$,J,Q)=>{q=new z9(q,Q),$=new U9($,Q);let Z,W,K,Y,F;switch(J){case">":Z=b0,W=I9,K=h0,Y=">",F=">=";break;case"<":Z=h0,W=O9,K=b0,Y="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(F9(q,$,Q))return!1;for(let U=0;U<$.set.length;++U){let I=$.set[U],y=null,x=null;if(I.forEach((O)=>{if(O.semver===Y9)O=new f0(">=0.0.0");if(y=y||O,x=x||O,Z(O.semver,y.semver,Q))y=O;else if(K(O.semver,x.semver,Q))x=O}),y.operator===Y||y.operator===F)return!1;if((!x.operator||x.operator===Y)&&W(q,x.semver))return!1;else if(x.operator===F&&K(q,x.semver))return!1}return!0};v0.exports=H9});var l0=H((rJ,d0)=>{var w9=n(),y9=(q,$,J)=>w9(q,$,">",J);d0.exports=y9});var c0=H((oJ,g0)=>{var B9=n(),x9=(q,$,J)=>B9(q,$,"<",J);g0.exports=x9});var s0=H((eJ,p0)=>{var m0=X(),D9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=D9});var n0=H((qQ,a0)=>{var G9=M(),V9=_();a0.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((I,y)=>V9(I,y,J));for(let I of K)if(G9(I,$,J)){if(W=I,!Z)Z=I}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let Y=[];for(let[I,y]of Q)if(I===y)Y.push(I);else if(!y&&I===K[0])Y.push("*");else if(!y)Y.push(`>=${I}`);else if(I===K[0])Y.push(`<=${y}`);else Y.push(`${I} - ${y}`);let F=Y.join(" || "),U=typeof $.raw==="string"?$.raw:String($);return F.length<U.length?F:$}});var q1=H(($Q,e0)=>{var t0=X(),Yq=u(),{ANY:jq}=Yq,zq=M(),Uq=_(),P9=(q,$,J={})=>{if(q===$)return!0;q=new t0(q,J),$=new t0($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=X9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},_9=[new Yq(">=0.0.0-0")],i0=[new Yq(">=0.0.0")],X9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===jq)if($.length===1&&$[0].semver===jq)return!0;else if(J.includePrerelease)q=_9;else q=i0;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=i0;let Q=new Set,Z,W;for(let O of q)if(O.operator===">"||O.operator===">=")Z=r0(Z,O,J);else if(O.operator==="<"||O.operator==="<=")W=o0(W,O,J);else Q.add(O.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Uq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let O of Q){if(Z&&!zq(O,String(Z),J))return null;if(W&&!zq(O,String(W),J))return null;for(let Z1 of $)if(!zq(O,String(Z1),J))return!1;return!0}let Y,F,U,I,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let O of $){if(I=I||O.operator===">"||O.operator===">=",U=U||O.operator==="<"||O.operator==="<=",Z){if(x){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===x.major&&O.semver.minor===x.minor&&O.semver.patch===x.patch)x=!1}if(O.operator===">"||O.operator===">="){if(Y=r0(Z,O,J),Y===O&&Y!==Z)return!1}else if(Z.operator===">="&&!O.test(Z.semver))return!1}if(W){if(y){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===y.major&&O.semver.minor===y.minor&&O.semver.patch===y.patch)y=!1}if(O.operator==="<"||O.operator==="<="){if(F=o0(W,O,J),F===O&&F!==W)return!1}else if(W.operator==="<="&&!O.test(W.semver))return!1}if(!O.operator&&(W||Z)&&K!==0)return!1}if(Z&&U&&!W&&K!==0)return!1;if(W&&I&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=P9});var W1=H((JQ,Q1)=>{var Fq=C(),$1=N(),A9=G(),J1=o(),L9=E(),E9=Aq(),N9=Eq(),C9=Sq(),S9=uq(),R9=Mq(),k9=hq(),u9=vq(),T9=lq(),M9=_(),b9=pq(),h9=aq(),f9=l(),v9=rq(),d9=eq(),l9=R(),g9=g(),c9=qq(),m9=$q(),p9=c(),s9=m(),a9=Jq(),n9=z0(),t9=U0(),i9=u(),r9=X(),o9=M(),e9=L0(),qJ=N0(),$J=S0(),JJ=u0(),QJ=M0(),WJ=n(),ZJ=l0(),KJ=c0(),jJ=s0(),zJ=n0(),YJ=q1();Q1.exports={parse:L9,valid:E9,clean:N9,inc:C9,diff:S9,major:R9,minor:k9,patch:u9,prerelease:T9,compare:M9,rcompare:b9,compareLoose:h9,compareBuild:f9,sort:v9,rsort:d9,gt:l9,lt:g9,eq:c9,neq:m9,gte:p9,lte:s9,cmp:a9,coerce:n9,truncate:t9,Comparator:i9,Range:r9,satisfies:o9,toComparators:e9,maxSatisfying:qJ,minSatisfying:$J,minVersion:JJ,validRange:QJ,outside:WJ,gtr:ZJ,ltr:KJ,intersects:jJ,simplifyRange:zJ,subset:YJ,SemVer:A9,re:Fq.re,src:Fq.src,tokens:Fq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function t(){if(!Iq)Iq=W1();return Iq}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return t().gt(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return t().gte(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===-1;return t().lt(q,$,{loose:!0})}function KQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return t().satisfies(q,$,{loose:!0})}var Iq;var FJ=()=>{};
|
|
2
|
+
export{W1 as d2,QQ as e2,WQ as f2,ZQ as g2,KQ as h2,FJ as i2};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yh as j,_h as l}from"./cli-1.1.15-5gp5r54s.mjs";import{ci as W,ii as i}from"./cli-1.1.15-gwgwd5hm.mjs";import{$P as x,Av as D,BO as b,BT as G,CO as o,Cw as N,Dw as g,NT as r,OT as R,PT as f,Pj as Z,QT as F,Qj as P,RT as u,ST as t,Ti as Y,Ui as A,Vy as V,Xy as S,aO as M,cO as n,ix as U,jD as L,jQ as s,jx as m,kD as h,mv as _,oC as d,sC as E,tC as C,uw as B,zv as $,zw as p}from"./cli-1.1.15-b16e0ajk.mjs";import{Q9 as Q,W9 as k}from"./cli-1.1.15-rvg56jwp.mjs";import{G_ as I,aaa as X,baa as v,z_ as O}from"./cli-1.1.15-c6h2gge7.mjs";import{Sqa as T,hqa as J,tqa as K}from"./cli-1.1.15-xn5kcp4k.mjs";import{Esa as y,Fsa as w}from"./cli-1.1.15-bwy6nhdk.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),_(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),$(),j(),E(),import("./utils-1.1.15-w1h2z3bz.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.1.15-yf6w94dh.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.1.15-95r643y9.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.1.15-xe79z4pr.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
|
|
2
|
+
export{Mq as Qh,c as Rh};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{FF as a,no as y,ro as r,vF as F,wF as S,zF as C}from"./cli-1.1.15-b16e0ajk.mjs";import{$Y as z,ZY as D,_Y as o,aZ as b}from"./cli-1.1.15-kr36eh1x.mjs";import{M_ as R,N_ as l,P_ as T,Q_ as u}from"./cli-1.1.15-c6h2gge7.mjs";import{aka as O,cka as c,gka as L,kka as d,uka as N,xka as g}from"./cli-1.1.15-vvc5kd0e.mjs";import{pra as _,qra as I}from"./cli-1.1.15-zg7csyzz.mjs";import{Esa as j}from"./cli-1.1.15-bwy6nhdk.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function P(q){return!!T(q)}function V(q){let H=k(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,f,m,v;var x=j(()=>{I();b();g();u();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=_(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>P(H))})});function s(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!s(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${y(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
|
+
`)&&!Q.endsWith(`
|
|
3
|
+
|
|
4
|
+
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=j(()=>{a();b();x();l();d();r();c();o();A={code:"code -w",subl:"subl --wait"}});
|
|
5
|
+
export{Qq as ug,v as vg,x as wg,i as xg,Vq as yg,t as zg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xe as F,_e as A}from"./cli-1.1.15-6txc31rr.mjs";import{mf as D,pf as H,rf as _}from"./cli-1.1.15-chxsepr7.mjs";import{Mra as U,csa as P}from"./cli-1.1.15-fnh28phg.mjs";P();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class L extends Error{status;errorType;constructor(J,K,Z){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=Z}}function y(J){function K(q){J.onDebug?.(q)}let Z=0,V=100;function X(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},W=J.getTrustedDeviceToken?.();if(W)z["X-Trusted-Device-Token"]=W;return z}function C(){let q=J.getAccessToken();if(!q)throw Error(F);return q}async function M(q,z){let W=C(),Q=await q(W);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(W)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let $=C(),N=await q($);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:X(W),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${D({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${D(z.data)}`),z.data},async pollForWork(q,z,W,Q){j(q,"environmentId");let Y=Z;Z=0;let $=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:X(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:W,validateStatus:(N)=>N<500});if(G($.status,$.data,"Poll"),!$.data){if(Z=Y+1,Z===1||Z%V===0)K(`[bridge:api] GET .../work/poll -> ${$.status} (no work, ${Z} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${$.status} workId=${$.data.id} type=${$.data.data?.type}${$.data.data?.id?` sessionId=${$.data.data.id}`:""}`),K(`[bridge:api] <<< ${D($.data)}`),$.data},async acknowledgeWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${W}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:W},{headers:X(Y),timeout:1e4,validateStatus:($)=>$<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((W)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let W=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:X(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(W.status,W.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${W.status}`)},async heartbeatWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,W){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${D({events:[z]})}`),K(`[bridge:api] <<< ${D(Q.data)}`)}}}function G(J,K,Z){if(J===200||J===204)return;let V=H(K),X=B(K);switch(J){case 401:throw new L(`${Z}: Authentication failed (401)${V?`: ${V}`:""}. ${F}`,401,X);case 403:throw new L(S(X)?"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.":`${Z}: Access denied (403)${V?`: ${V}`:""}. Check your organization permissions.`,403,X);case 404:throw new L(V??`${Z}: Not found (404). Remote Control may not be available for this organization.`,404,X);case 410:throw new L(V??"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.",410,X??"environment_expired");case 429:throw Error(`${Z}: Rate limited (429). Polling too frequently.`);default:throw Error(`${Z}: Failed with status ${J}${V?`: ${V}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function E(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function T(J){let K=new AbortController;function Z(){K.abort(),K=new AbortController}function V(){let X=new AbortController,C=()=>X.abort();if(J.aborted||K.signal.aborted)return X.abort(),{signal:X.signal,cleanup:()=>{}};J.addEventListener("abort",C,{once:!0});let M=K.signal;return M.addEventListener("abort",C,{once:!0}),{signal:X.signal,cleanup:()=>{J.removeEventListener("abort",C),M.removeEventListener("abort",C)}}}return{signal:V,wake:Z}}
|
|
2
|
+
export{j as nb,L as ob,y as pb,S as qb,E as rb,T as sb};
|