@claudiolabs/claudio 0.1.15 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.2.0-g1wqt0s3.mjs +1 -0
- package/dist/chunks/App-0.2.0-ntfv12g0.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.2.0-2ymsvey5.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.2.0-8jec5v9r.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.2.0-xvmknjn1.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.2.0-1cpe3m5c.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.2.0-851aysqd.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.2.0-v4515qqc.mjs +1 -0
- package/dist/chunks/{DiffDialog-0.1.15-86m0j64m.mjs → DiffDialog-0.2.0-kyhr5jh0.mjs} +1 -1
- package/dist/chunks/Doctor-0.2.0-ck3enc4g.mjs +1 -0
- package/dist/chunks/Grove-0.2.0-79c6g758.mjs +1 -0
- package/dist/chunks/ITermBackend-0.2.0-ez3ahe49.mjs +1 -0
- package/dist/chunks/InProcessTransport-0.2.0-9d5e65zk.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.2.0-mfrg36s6.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.2.0-n08wkb0d.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.2.0-9anh130m.mjs +1 -0
- package/dist/chunks/Onboarding-0.2.0-2468pvay.mjs +1 -0
- package/dist/chunks/ProviderManager-0.2.0-cjpn5dkk.mjs +1 -0
- package/dist/chunks/REPL-0.2.0-q3fd5jfy.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.2.0-3ff000x5.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.2.0-b51pr6s3.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.2.0-c3znpb7p.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.2.0-5wckmrvx.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.2.0-wdc9sxcv.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.2.0-mkbxpe3a.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.2.0-k7dvhq3e.mjs +1 -0
- package/dist/chunks/TrustDialog-0.2.0-xywdgnw5.mjs +1 -0
- package/dist/chunks/activeProvider-0.2.0-6yja1haw.mjs +1 -0
- package/dist/chunks/add-dir-0.2.0-qg5z82ke.mjs +1 -0
- package/dist/chunks/agents-0.2.0-2j995rg8.mjs +3 -0
- package/dist/chunks/agents-0.2.0-mzww8vhq.mjs +110 -0
- package/dist/chunks/api-0.2.0-rfc17a1j.mjs +1 -0
- package/dist/chunks/asciicast-0.2.0-25ban1yy.mjs +1 -0
- package/dist/chunks/assistant-0.2.0-wt3sz6f5.mjs +1 -0
- package/dist/chunks/auth-0.2.0-p1v8yq4y.mjs +1 -0
- package/dist/chunks/auth-0.2.0-sh12qb2q.mjs +1 -0
- package/dist/chunks/{autoMode-0.1.15-p9r45wxy.mjs → autoMode-0.2.0-vzqmqetr.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.2.0-8d72paf3.mjs +1 -0
- package/dist/chunks/branch-0.2.0-vhf49enf.mjs +4 -0
- package/dist/chunks/bridgePointer-0.2.0-br2r89v9.mjs +1 -0
- package/dist/chunks/{btw-0.1.15-q693ppfr.mjs → btw-0.2.0-qtwstg74.mjs} +1 -1
- package/dist/chunks/{buddy-0.1.15-vcca6k2p.mjs → buddy-0.2.0-5a9wzpm1.mjs} +1 -1
- package/dist/chunks/cacache-0.2.0-nps3what.mjs +1 -0
- package/dist/chunks/{cache-probe-0.1.15-dfdjj53r.mjs → cache-probe-0.2.0-9d3hfar7.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.15-v9v9y02q.mjs → cacheStats-0.2.0-rbr7a1xq.mjs} +1 -1
- package/dist/chunks/caches-0.2.0-jsvyz7k9.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.2.0-ca7jbnc4.mjs +1 -0
- package/dist/chunks/claudemd-0.2.0-yt6b83v9.mjs +1 -0
- package/dist/chunks/clear-0.2.0-5e6fb269.mjs +1 -0
- package/dist/chunks/clearTerminal-0.2.0-c21vszkv.mjs +1 -0
- package/dist/chunks/cli-0.2.0-087sjqr6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0cjgm41a.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0fwa4agt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0nmdgd3g.mjs +2 -0
- package/dist/chunks/cli-0.2.0-0vvkn4c2.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-4fc5wnse.mjs → cli-0.2.0-13sc1gtx.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-16yt5fwn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-1br2y5jr.mjs +2 -0
- package/dist/chunks/cli-0.2.0-1mbgzd60.mjs +2 -0
- package/dist/chunks/cli-0.2.0-1vczhepy.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-vwb8h4r1.mjs → cli-0.2.0-24bbrvmx.mjs} +1 -1
- package/dist/chunks/{cli-0.1.15-ncammv2n.mjs → cli-0.2.0-280a64s9.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-2c2rdf9b.mjs +2 -0
- package/dist/chunks/cli-0.2.0-2crrewfg.mjs +5 -0
- package/dist/chunks/{cli-0.1.15-nkn6jfmb.mjs → cli-0.2.0-2edwgzmj.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-2ppczk6v.mjs +2 -0
- package/dist/chunks/cli-0.2.0-35xeqadb.mjs +2 -0
- package/dist/chunks/cli-0.2.0-362nfwm4.mjs +5 -0
- package/dist/chunks/cli-0.2.0-3abr1pjj.mjs +2 -0
- package/dist/chunks/cli-0.2.0-3ttrh2tj.mjs +2 -0
- package/dist/chunks/cli-0.2.0-3y7hn5v2.mjs +2 -0
- package/dist/chunks/cli-0.2.0-41524wt1.mjs +2 -0
- package/dist/chunks/cli-0.2.0-46m4vcs3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-48sfjp31.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4hy8176k.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4phx745d.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4s3ve9jw.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4t9h5c71.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4vbz1xrx.mjs +2 -0
- package/dist/chunks/cli-0.2.0-4ve4asjv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-514cx7c7.mjs +3 -0
- package/dist/chunks/cli-0.2.0-55mg69qb.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-rq9n4js4.mjs → cli-0.2.0-5a2sf5g7.mjs} +1 -1
- package/dist/chunks/{cli-0.1.15-20tvdt2s.mjs → cli-0.2.0-5rm5wnp9.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-69bn5730.mjs +2 -0
- package/dist/chunks/cli-0.2.0-6dbn4mn2.mjs +2 -0
- package/dist/chunks/cli-0.2.0-6en16pc3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-6scx1ptz.mjs +4 -0
- package/dist/chunks/cli-0.2.0-6y2zbjr4.mjs +2 -0
- package/dist/chunks/cli-0.2.0-715a2z01.mjs +2 -0
- package/dist/chunks/cli-0.2.0-7xs4mtmq.mjs +2 -0
- package/dist/chunks/cli-0.2.0-7zpdrxbp.mjs +2 -0
- package/dist/chunks/cli-0.2.0-82kqh5xm.mjs +2 -0
- package/dist/chunks/cli-0.2.0-847azgnr.mjs +2 -0
- package/dist/chunks/cli-0.2.0-8hbq2p5t.mjs +2 -0
- package/dist/chunks/cli-0.2.0-8wnt08ky.mjs +12 -0
- package/dist/chunks/cli-0.2.0-98h2e6bt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9ez4c6sj.mjs +6 -0
- package/dist/chunks/{cli-0.1.15-m0v1d1kt.mjs → cli-0.2.0-9fckzgpc.mjs} +11 -11
- package/dist/chunks/cli-0.2.0-9jj1kcbc.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9n89mtk3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9n8cdk9p.mjs +2 -0
- package/dist/chunks/cli-0.2.0-9t5wq1kd.mjs +2 -0
- package/dist/chunks/cli-0.2.0-am2e345h.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-zap1wk9j.mjs → cli-0.2.0-amhtcvq4.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-ar569zh3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-arwyxqyx.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-xe4dq144.mjs → cli-0.2.0-asc68d4g.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-aw44dqmt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-b1tfb8fj.mjs +2 -0
- package/dist/chunks/cli-0.2.0-b8a7b102.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-mhbfhhf6.mjs → cli-0.2.0-b8hs09nv.mjs} +1 -1
- package/dist/chunks/{cli-0.1.15-rv6zpjh8.mjs → cli-0.2.0-bd59jfmr.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-bs742fy1.mjs +2 -0
- package/dist/chunks/cli-0.2.0-c3qvrk8y.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-68f0jtkh.mjs → cli-0.2.0-c7ea0dry.mjs} +2 -2
- package/dist/chunks/{cli-0.1.15-dp2e8j4f.mjs → cli-0.2.0-cabza42m.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-ccwfmwcq.mjs +2 -0
- package/dist/chunks/cli-0.2.0-crn0mjsc.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-26hkdean.mjs → cli-0.2.0-cs8e9514.mjs} +817 -949
- package/dist/chunks/cli-0.2.0-cst46q1r.mjs +2 -0
- package/dist/chunks/cli-0.2.0-d4ajkte5.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-x69hfzmj.mjs → cli-0.2.0-da216rmz.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-daxqaqx9.mjs +2 -0
- package/dist/chunks/cli-0.2.0-dsa5edrn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-dtsxeqwx.mjs +17 -0
- package/dist/chunks/cli-0.2.0-e184jeam.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-nk50qhet.mjs → cli-0.2.0-e9xwjcb3.mjs} +2 -2
- package/dist/chunks/{cli-0.1.15-e2e7hn7p.mjs → cli-0.2.0-eaeff4m6.mjs} +3 -3
- package/dist/chunks/cli-0.2.0-emdrfb4f.mjs +2 -0
- package/dist/chunks/cli-0.2.0-eyswa898.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-d9nfa2yf.mjs → cli-0.2.0-ezgpj8e5.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-f0ec18e0.mjs +2 -0
- package/dist/chunks/cli-0.2.0-f5rgr2bw.mjs +5 -0
- package/dist/chunks/cli-0.2.0-f63v4pa4.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-gmdv5ny8.mjs → cli-0.2.0-f7tp61b0.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-fanwxcjn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-fgsp4dtv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-fknhewrw.mjs +2 -0
- package/dist/chunks/cli-0.2.0-fr785r3y.mjs +2 -0
- package/dist/chunks/cli-0.2.0-frar6zbv.mjs +6 -0
- package/dist/chunks/{cli-0.1.15-gkzany0s.mjs → cli-0.2.0-frwsdnhe.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-fy5rnmc5.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-4892kydg.mjs → cli-0.2.0-g2h1t6ke.mjs} +4 -4
- package/dist/chunks/cli-0.2.0-g4kznbnn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-g86682ye.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gby7sqgg.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-cr7qy3wd.mjs → cli-0.2.0-gjtwz4v6.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-gmq4bxtp.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gngqqtnd.mjs +4 -0
- package/dist/chunks/cli-0.2.0-gpc69j0z.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gsw60zfe.mjs +2 -0
- package/dist/chunks/cli-0.2.0-gy72dze8.mjs +2 -0
- package/dist/chunks/cli-0.2.0-h2wnach8.mjs +16 -0
- package/dist/chunks/cli-0.2.0-h9tvrrx9.mjs +2 -0
- package/dist/chunks/cli-0.2.0-hg1xg9nq.mjs +2 -0
- package/dist/chunks/cli-0.2.0-hw4ce6k6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-hzzgbj9r.mjs +2 -0
- package/dist/chunks/cli-0.2.0-j71ct7m7.mjs +2 -0
- package/dist/chunks/cli-0.2.0-jna42sz6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-jsrrpd02.mjs +2 -0
- package/dist/chunks/cli-0.2.0-k0aa6s39.mjs +2 -0
- package/dist/chunks/cli-0.2.0-k2tq4knj.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-jy7cjb23.mjs → cli-0.2.0-k438c5g3.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-k7cxbyxg.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-v07ep52w.mjs → cli-0.2.0-kg83sjcw.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-kgs4hedc.mjs +2 -0
- package/dist/chunks/cli-0.2.0-krxmhdq4.mjs +2 -0
- package/dist/chunks/cli-0.2.0-m5s0ha7v.mjs +3 -0
- package/dist/chunks/cli-0.2.0-m81s8n1j.mjs +2 -0
- package/dist/chunks/cli-0.2.0-mg45dmsv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-mhpecwq3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-mne4f86b.mjs +7 -0
- package/dist/chunks/cli-0.2.0-mstcexpv.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-2vwx57re.mjs → cli-0.2.0-ncjme2vj.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-ndz9dbxz.mjs +2 -0
- package/dist/chunks/cli-0.2.0-p0dd7k39.mjs +4 -0
- package/dist/chunks/cli-0.2.0-p19kyd3z.mjs +4 -0
- package/dist/chunks/cli-0.2.0-p2jewnbn.mjs +2 -0
- package/dist/chunks/cli-0.2.0-p46nxmgy.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pa834vt3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pdb8evy6.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pfja1jsa.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pt145sac.mjs +3 -0
- package/dist/chunks/cli-0.2.0-ptwysnj7.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pw3er14v.mjs +2 -0
- package/dist/chunks/cli-0.2.0-pxy1f4ky.mjs +2 -0
- package/dist/chunks/cli-0.2.0-q1fz4qmd.mjs +2 -0
- package/dist/chunks/cli-0.2.0-q822fesk.mjs +2 -0
- package/dist/chunks/cli-0.2.0-qcr87znh.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-5denzf1p.mjs → cli-0.2.0-qdcyy0k1.mjs} +3 -3
- package/dist/chunks/cli-0.2.0-qnd8v5pt.mjs +2 -0
- package/dist/chunks/cli-0.2.0-qw0kz7z3.mjs +2 -0
- package/dist/chunks/cli-0.2.0-r15zg9jv.mjs +2 -0
- package/dist/chunks/cli-0.2.0-r3f7ephj.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-b7p48xfw.mjs → cli-0.2.0-rwdy3dtq.mjs} +1 -1
- package/dist/chunks/{cli-0.1.15-qns6xv34.mjs → cli-0.2.0-s02v5abf.mjs} +5 -5
- package/dist/chunks/{cli-0.1.15-6nwbd09n.mjs → cli-0.2.0-s130pb2c.mjs} +2 -2
- package/dist/chunks/cli-0.2.0-s919r7gy.mjs +2 -0
- package/dist/chunks/cli-0.2.0-sh26pc92.mjs +2 -0
- package/dist/chunks/cli-0.2.0-sj380wma.mjs +2 -0
- package/dist/chunks/cli-0.2.0-stn798t9.mjs +9 -0
- package/dist/chunks/cli-0.2.0-t0j5fnc5.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-rbx47sc3.mjs → cli-0.2.0-teqjxyws.mjs} +1 -1
- package/dist/chunks/{cli-0.1.15-xaw2s45s.mjs → cli-0.2.0-v8kqgxs0.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-vdhcg4g4.mjs +2 -0
- package/dist/chunks/cli-0.2.0-vejekjsb.mjs +2 -0
- package/dist/chunks/cli-0.2.0-vjcy5y97.mjs +4 -0
- package/dist/chunks/cli-0.2.0-vjnmd5ey.mjs +2 -0
- package/dist/chunks/cli-0.2.0-wc6ydzff.mjs +2 -0
- package/dist/chunks/cli-0.2.0-wmfpk06g.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-rvtve9kq.mjs → cli-0.2.0-wmstwkhw.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-wqzmxfnd.mjs +2 -0
- package/dist/chunks/cli-0.2.0-wwwmxcwz.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-8sgewact.mjs → cli-0.2.0-x221h2yq.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-xdmw2spe.mjs +4 -0
- package/dist/chunks/cli-0.2.0-xmf20rrm.mjs +2 -0
- package/dist/chunks/cli-0.2.0-xwrvt7rw.mjs +2 -0
- package/dist/chunks/cli-0.2.0-y1q43eac.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-htms4w3h.mjs → cli-0.2.0-y6g66sm5.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-y93dcrnm.mjs +2 -0
- package/dist/chunks/cli-0.2.0-y9bxbkxm.mjs +2 -0
- package/dist/chunks/{cli-0.1.15-23cavaaa.mjs → cli-0.2.0-ykvda8xj.mjs} +1 -1
- package/dist/chunks/cli-0.2.0-z1j2k2y8.mjs +2 -0
- package/dist/chunks/cli-0.2.0-zdr99w6n.mjs +2 -0
- package/dist/chunks/cli-0.2.0-zhq243rp.mjs +5 -0
- package/dist/chunks/cli-0.2.0-zxm7fqen.mjs +2 -0
- package/dist/chunks/client-0.2.0-qtv4epf8.mjs +1 -0
- package/dist/chunks/color-0.2.0-287d7bh5.mjs +1 -0
- package/dist/chunks/compact-0.2.0-qd4qye1t.mjs +3 -0
- package/dist/chunks/config-0.2.0-2fafd18t.mjs +1 -0
- package/dist/chunks/config-0.2.0-rm6w636d.mjs +1 -0
- package/dist/chunks/{context-0.1.15-ghkedaaw.mjs → context-0.2.0-k3gcs0rz.mjs} +1 -1
- package/dist/chunks/context-noninteractive-0.2.0-k88gx3fk.mjs +1 -0
- package/dist/chunks/conversation-0.2.0-7c5rr3m8.mjs +1 -0
- package/dist/chunks/{copy-0.1.15-53q3e2fk.mjs → copy-0.2.0-adh6xrdj.mjs} +1 -1
- package/dist/chunks/cost-0.2.0-mnj9rgcz.mjs +1 -0
- package/dist/chunks/createSession-0.2.0-9g9gw88m.mjs +1 -0
- package/dist/chunks/desktop-0.2.0-8f8qkdkf.mjs +1 -0
- package/dist/chunks/detectRepository-0.2.0-349d15w3.mjs +1 -0
- package/dist/chunks/detection-0.2.0-bwykm3rz.mjs +1 -0
- package/dist/chunks/diff-0.2.0-9vymm8d8.mjs +1 -0
- package/dist/chunks/doctor-0.2.0-rxs4z5h9.mjs +1 -0
- package/dist/chunks/earlyInput-0.2.0-693jvbhz.mjs +1 -0
- package/dist/chunks/{effort-0.1.15-5za6yh63.mjs → effort-0.2.0-v3ery43s.mjs} +1 -1
- package/dist/chunks/environmentSelection-0.2.0-51bq9j0p.mjs +1 -0
- package/dist/chunks/environments-0.2.0-f16b46v6.mjs +1 -0
- package/dist/chunks/exit-0.2.0-gxsz2644.mjs +1 -0
- package/dist/chunks/export-0.2.0-3tnxr36f.mjs +2 -0
- package/dist/chunks/extra-usage-0.2.0-7rhvw0qy.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.2.0-6jn1b44v.mjs +1 -0
- package/dist/chunks/fast-0.2.0-m1ebwhxs.mjs +1 -0
- package/dist/chunks/feedback-0.2.0-n6jvewnr.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.2.0-20cb3z2a.mjs +1 -0
- package/dist/chunks/git-0.2.0-c4ee3tsv.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.2.0-cdvezs97.mjs +1 -0
- package/dist/chunks/growthbook-0.2.0-att0j7gv.mjs +1 -0
- package/dist/chunks/heapdump-0.2.0-78f6h5zs.mjs +6 -0
- package/dist/chunks/help-0.2.0-dtcb464y.mjs +1 -0
- package/dist/chunks/hookChains-0.2.0-svw4xjh6.mjs +3 -0
- package/dist/chunks/{hooks-0.1.15-f81kq7m2.mjs → hooks-0.2.0-4hvw5w19.mjs} +1 -1
- package/dist/chunks/hooks-0.2.0-hw6zwnp8.mjs +1 -0
- package/dist/chunks/{ide-0.1.15-xepj09gj.mjs → ide-0.2.0-3a10v8p7.mjs} +1 -1
- package/dist/chunks/image-processor-napi-0.2.0-8t8g5777.mjs +1 -0
- package/dist/chunks/index-0.2.0-0f0aw7rx.mjs +1 -0
- package/dist/chunks/index-0.2.0-1pr9vtkj.mjs +9 -0
- package/dist/chunks/index-0.2.0-2dyw5tmn.mjs +1 -0
- package/dist/chunks/index-0.2.0-728crm0q.mjs +1 -0
- package/dist/chunks/index-0.2.0-7gpqav46.mjs +2 -0
- package/dist/chunks/{index-0.1.15-77j1wp6f.mjs → index-0.2.0-7wttyxdg.mjs} +1 -1
- package/dist/chunks/index-0.2.0-b33awb2n.mjs +1 -0
- package/dist/chunks/{index-0.1.15-f1y1067a.mjs → index-0.2.0-b71emahw.mjs} +1 -1
- package/dist/chunks/index-0.2.0-czy0090x.mjs +1 -0
- package/dist/chunks/index-0.2.0-dactt0mw.mjs +1 -0
- package/dist/chunks/index-0.2.0-f8nnmapf.mjs +1 -0
- package/dist/chunks/{index-0.1.15-15ftbc8a.mjs → index-0.2.0-h3z86gdx.mjs} +2 -2
- package/dist/chunks/index-0.2.0-jrzrpfvk.mjs +1 -0
- package/dist/chunks/index-0.2.0-mny50v93.mjs +1 -0
- package/dist/chunks/index-0.2.0-nhw2r534.mjs +1 -0
- package/dist/chunks/index-0.2.0-p27jjyjb.mjs +1 -0
- package/dist/chunks/index-0.2.0-pf79ppar.mjs +1 -0
- package/dist/chunks/index-0.2.0-tamm1gme.mjs +1 -0
- package/dist/chunks/index-0.2.0-tj7rwkwq.mjs +1 -0
- package/dist/chunks/{index-0.1.15-tf5b20vy.mjs → index-0.2.0-v2mzpt7h.mjs} +1 -1
- package/dist/chunks/index-0.2.0-w1m3v2y0.mjs +9 -0
- package/dist/chunks/index-0.2.0-z8m5wd19.mjs +1 -0
- package/dist/chunks/initReplBridge-0.2.0-5abnx6wk.mjs +1 -0
- package/dist/chunks/ink-0.2.0-v2d1zzt6.mjs +1 -0
- package/dist/chunks/{insights-0.1.15-2zt9898j.mjs → insights-0.2.0-5q6x53j1.mjs} +1 -1
- package/dist/chunks/install-0.2.0-0vhcv1w2.mjs +1 -0
- package/dist/chunks/{install-github-app-0.1.15-h746hza3.mjs → install-github-app-0.2.0-xcxxtxzh.mjs} +1 -1
- package/dist/chunks/install-slack-app-0.2.0-12qw49ga.mjs +1 -0
- package/dist/chunks/{instrumentation-0.1.15-bwm4tb1y.mjs → instrumentation-0.2.0-rfc7gt94.mjs} +1 -1
- package/dist/chunks/interactiveHelpers-0.2.0-69j5avm0.mjs +1 -0
- package/dist/chunks/keybindings-0.2.0-r9ensjdz.mjs +2 -0
- package/dist/chunks/knowledge-0.2.0-r222df23.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.2.0-wrpffsg4.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.2.0-4wkq3ar6.mjs +1 -0
- package/dist/chunks/lsp-0.2.0-vyrfqxg7.mjs +1 -0
- package/dist/chunks/main-0.2.0-r3wv26vg.mjs +1 -0
- package/dist/chunks/managedEnv-0.2.0-t6y3d3hp.mjs +1 -0
- package/dist/chunks/mcp-0.2.0-8rxg4gkx.mjs +1 -0
- package/dist/chunks/{mcp-0.1.15-tw9s435t.mjs → mcp-0.2.0-anen8fv7.mjs} +3 -3
- package/dist/chunks/mcp-0.2.0-brdssfg7.mjs +4 -0
- package/dist/chunks/mcpServer-0.2.0-816p5gfy.mjs +1 -0
- package/dist/chunks/mcpb-0.2.0-pte54tfe.mjs +1 -0
- package/dist/chunks/memory-0.2.0-vxnsyq72.mjs +3 -0
- package/dist/chunks/{mobile-0.1.15-sm8kbft4.mjs → mobile-0.2.0-npn2rcmr.mjs} +1 -1
- package/dist/chunks/model-0.2.0-ajjp4znr.mjs +1 -0
- package/dist/chunks/model-0.2.0-dsy2yzwq.mjs +2 -0
- package/dist/chunks/oauth-0.2.0-xfb7vgc2.mjs +1 -0
- package/dist/chunks/{openaiShim-0.1.15-0yryhq9r.mjs → openaiShim-0.2.0-5rabbqwx.mjs} +1 -1
- package/dist/chunks/output-style-0.2.0-0tea3sgj.mjs +1 -0
- package/dist/chunks/package-WSP46L7M-0.2.0-54rp856z.mjs +1 -0
- package/dist/chunks/parser-0.2.0-vxksd2kb.mjs +1 -0
- package/dist/chunks/passes-0.2.0-kb6z71d5.mjs +1 -0
- package/dist/chunks/permissions-0.2.0-pvq85gdj.mjs +3 -0
- package/dist/chunks/plan-0.2.0-nc7dtaj1.mjs +1 -0
- package/dist/chunks/plist-0.2.0-veq45ed0.mjs +1 -0
- package/dist/chunks/plugin-0.2.0-q0ehrvv3.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.2.0-cnkhwj3j.mjs +1 -0
- package/dist/chunks/{plugins-0.1.15-3rpwr86v.mjs → plugins-0.2.0-s45nc253.mjs} +2 -2
- package/dist/chunks/{print-0.1.15-64y2p7wj.mjs → print-0.2.0-e9ckvtwf.mjs} +4 -4
- package/dist/chunks/privacy-settings-0.2.0-e9qgq22a.mjs +1 -0
- package/dist/chunks/process-0.2.0-5q69t7tp.mjs +1 -0
- package/dist/chunks/processBashCommand-0.2.0-n1qzbvn8.mjs +1 -0
- package/dist/chunks/{processSlashCommand-0.1.15-mee2mbyy.mjs → processSlashCommand-0.2.0-phzfkm35.mjs} +1 -1
- package/dist/chunks/prompt-0.2.0-8tvc5hkt.mjs +1 -0
- package/dist/chunks/prompt-0.2.0-znq97v28.mjs +1 -0
- package/dist/chunks/prompts-0.2.0-43x4r8s1.mjs +1 -0
- package/dist/chunks/provider-0.2.0-hdw0f0gf.mjs +2 -0
- package/dist/chunks/providerProfiles-0.2.0-fxf0kwk5.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.2.0-6gs96kga.mjs +1 -0
- package/dist/chunks/registry-0.2.0-qn6vn1a0.mjs +1 -0
- package/dist/chunks/release-notes-0.2.0-n7d001cj.mjs +5 -0
- package/dist/chunks/reload-plugins-0.2.0-z66hj6gv.mjs +2 -0
- package/dist/chunks/{remote-env-0.1.15-fd5z1adp.mjs → remote-env-0.2.0-tb94ty2j.mjs} +1 -1
- package/dist/chunks/remoteBridgeCore-0.2.0-tggkxmb3.mjs +1 -0
- package/dist/chunks/remoteSession-0.2.0-e5ph1zn5.mjs +1 -0
- package/dist/chunks/rename-0.2.0-1a2tr4rh.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.2.0-58503tj0.mjs +1 -0
- package/dist/chunks/resume-0.2.0-nbs1aptk.mjs +2 -0
- package/dist/chunks/rewind-0.2.0-9vcza7j6.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.2.0-rvjkxzab.mjs +1 -0
- package/dist/chunks/{sandbox-toggle-0.1.15-fn86ac4p.mjs → sandbox-toggle-0.2.0-0hc6gk75.mjs} +1 -1
- package/dist/chunks/session-0.2.0-2mjsp1sz.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.2.0-mmvc7bkc.mjs +1 -0
- package/dist/chunks/sessionStorage-0.2.0-69fq3tpm.mjs +1 -0
- package/dist/chunks/setup-0.2.0-06edanfh.mjs +5 -0
- package/dist/chunks/sinks-0.2.0-wja94cem.mjs +1 -0
- package/dist/chunks/skills-0.2.0-3z33tjhh.mjs +1 -0
- package/dist/chunks/startupProfiler-0.2.0-rsbrxr2e.mjs +1 -0
- package/dist/chunks/state-0.2.0-cqgytazz.mjs +1 -0
- package/dist/chunks/{stats-0.1.15-3c4f5zp4.mjs → stats-0.2.0-916qgsak.mjs} +1 -1
- package/dist/chunks/status-0.2.0-qpr1a3ep.mjs +1 -0
- package/dist/chunks/stickers-0.2.0-s40586dt.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.2.0-8kaz087n.mjs +1 -0
- package/dist/chunks/tasks-0.2.0-kyab838f.mjs +1 -0
- package/dist/chunks/teamHelpers-0.2.0-r08wn3az.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.2.0-ew1rr6e3.mjs +1 -0
- package/dist/chunks/teleport-0.2.0-m7dva816.mjs +1 -0
- package/dist/chunks/terminalSetup-0.2.0-28qz91bk.mjs +1 -0
- package/dist/chunks/theme-0.2.0-t6hf3219.mjs +1 -0
- package/dist/chunks/thinkback-0.2.0-s3ggf62w.mjs +1 -0
- package/dist/chunks/thinkback-play-0.2.0-bh4h025z.mjs +1 -0
- package/dist/chunks/toolPool-0.2.0-cb20byyb.mjs +1 -0
- package/dist/chunks/toolSearch-0.2.0-2b8zp823.mjs +1 -0
- package/dist/chunks/trustedDevice-0.2.0-bm94scqy.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.15-pmxpe7z8.mjs → turndown.cjs-0.2.0-deg6aa1p.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.15-3gjgaeyn.mjs → ultrareviewCommand-0.2.0-zw0s8h8q.mjs} +1 -1
- package/dist/chunks/{update-0.1.15-jtd1h3e7.mjs → update-0.2.0-7s5194yn.mjs} +11 -11
- package/dist/chunks/upgrade-0.2.0-qwr6an4v.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.15-wtbs40ct.mjs → upstreamproxy-0.2.0-xm05d4w5.mjs} +1 -1
- package/dist/chunks/usage-0.2.0-mp3vm726.mjs +1 -0
- package/dist/chunks/util-0.2.0-dbnnzv2b.mjs +1 -0
- package/dist/chunks/utils-0.2.0-memk8639.mjs +1 -0
- package/dist/chunks/vim-0.2.0-twpbq41v.mjs +1 -0
- package/dist/chunks/watcher-0.2.0-cfz0cgxt.mjs +1 -0
- package/dist/chunks/{wiki-0.1.15-pp951r9h.mjs → wiki-0.2.0-v5sdh8vv.mjs} +1 -1
- package/dist/chunks/worktree-0.2.0-cgeqcbwb.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.2.0-hb1hv05w.mjs +1 -0
- package/dist/chunks/wrapper-0.2.0-661tvhay.mjs +7 -0
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.15-aene6e12.mjs +0 -1
- package/dist/chunks/App-0.1.15-skbrajfh.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.15-zkd425a9.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.15-3wyrkte5.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.15-xemnqw1q.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.15-51n3nd6r.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.15-g407nd3p.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.15-80g71gdg.mjs +0 -1
- package/dist/chunks/Doctor-0.1.15-9x07ccn6.mjs +0 -1
- package/dist/chunks/Grove-0.1.15-jdcp80ev.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.15-ejm7gc8d.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.15-p32k8qva.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.15-rctrbcsm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.15-bjsk3qxm.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.15-6x3bjqw1.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.15-pqx4v1wq.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.15-t8sezf1q.mjs +0 -1
- package/dist/chunks/REPL-0.1.15-6e0xrr9y.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.15-fm1gvj49.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.15-t3evkrvq.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.15-gad6kpfq.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.15-00rkfxqs.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.15-bwv0syaw.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.15-0d8n5p59.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.15-1cemq4m9.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.15-srz2xcqx.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.15-1fp1bec5.mjs +0 -1
- package/dist/chunks/add-dir-0.1.15-qj517xx8.mjs +0 -1
- package/dist/chunks/agents-0.1.15-vkekdkan.mjs +0 -3
- package/dist/chunks/agents-0.1.15-x18jhwwk.mjs +0 -111
- package/dist/chunks/api-0.1.15-jq17qdd8.mjs +0 -1
- package/dist/chunks/asciicast-0.1.15-4t4tanfk.mjs +0 -1
- package/dist/chunks/assistant-0.1.15-9fhfbk14.mjs +0 -1
- package/dist/chunks/auth-0.1.15-ddyv63ax.mjs +0 -1
- package/dist/chunks/auth-0.1.15-x6bxj6d1.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.15-sbv1p8kj.mjs +0 -1
- package/dist/chunks/branch-0.1.15-cqq1x0cj.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.15-p6kq1zz7.mjs +0 -1
- package/dist/chunks/cacache-0.1.15-tj6nes3h.mjs +0 -1
- package/dist/chunks/caches-0.1.15-tynjvd5a.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.15-rxtx8hbf.mjs +0 -1
- package/dist/chunks/claudemd-0.1.15-s942v7vd.mjs +0 -1
- package/dist/chunks/clear-0.1.15-2tqn4fj6.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.15-qycj6c0p.mjs +0 -1
- package/dist/chunks/cli-0.1.15-0a38j3t8.mjs +0 -2
- package/dist/chunks/cli-0.1.15-0g0abv7y.mjs +0 -2
- package/dist/chunks/cli-0.1.15-11sdbfxy.mjs +0 -4
- package/dist/chunks/cli-0.1.15-12azgmva.mjs +0 -2
- package/dist/chunks/cli-0.1.15-1hxkpjgs.mjs +0 -2
- package/dist/chunks/cli-0.1.15-1kmf57b0.mjs +0 -2
- package/dist/chunks/cli-0.1.15-1nkkhw5c.mjs +0 -2
- package/dist/chunks/cli-0.1.15-216kns0c.mjs +0 -2
- package/dist/chunks/cli-0.1.15-229xqnrp.mjs +0 -2
- package/dist/chunks/cli-0.1.15-2ccapgj1.mjs +0 -2
- package/dist/chunks/cli-0.1.15-2h647znt.mjs +0 -2
- package/dist/chunks/cli-0.1.15-2te4sfkh.mjs +0 -2
- package/dist/chunks/cli-0.1.15-30tz5ck8.mjs +0 -2
- package/dist/chunks/cli-0.1.15-36pxgzf6.mjs +0 -2
- package/dist/chunks/cli-0.1.15-3jz926ax.mjs +0 -2
- package/dist/chunks/cli-0.1.15-3qwnw3ca.mjs +0 -2
- package/dist/chunks/cli-0.1.15-3rcdvk7c.mjs +0 -2
- package/dist/chunks/cli-0.1.15-3z0tzzs8.mjs +0 -2
- package/dist/chunks/cli-0.1.15-4hnhxg2w.mjs +0 -2
- package/dist/chunks/cli-0.1.15-4hzd3m6p.mjs +0 -2
- package/dist/chunks/cli-0.1.15-4y7051f2.mjs +0 -2
- package/dist/chunks/cli-0.1.15-5g0zxgxn.mjs +0 -2
- package/dist/chunks/cli-0.1.15-5qx5p8cd.mjs +0 -2
- package/dist/chunks/cli-0.1.15-5tz7z79g.mjs +0 -2
- package/dist/chunks/cli-0.1.15-69kq5chw.mjs +0 -2
- package/dist/chunks/cli-0.1.15-6mad0r56.mjs +0 -2
- package/dist/chunks/cli-0.1.15-6r12ayea.mjs +0 -2
- package/dist/chunks/cli-0.1.15-6r630k68.mjs +0 -9
- package/dist/chunks/cli-0.1.15-77346q11.mjs +0 -7
- package/dist/chunks/cli-0.1.15-7myqm617.mjs +0 -2
- package/dist/chunks/cli-0.1.15-7rr53z40.mjs +0 -2
- package/dist/chunks/cli-0.1.15-82r3zgmq.mjs +0 -3
- package/dist/chunks/cli-0.1.15-8k69z9kk.mjs +0 -2
- package/dist/chunks/cli-0.1.15-8v8bskr0.mjs +0 -2
- package/dist/chunks/cli-0.1.15-90ye3yqx.mjs +0 -2
- package/dist/chunks/cli-0.1.15-99wmm9j7.mjs +0 -2
- package/dist/chunks/cli-0.1.15-9m2znwvb.mjs +0 -4
- package/dist/chunks/cli-0.1.15-9pe3dbgs.mjs +0 -2
- package/dist/chunks/cli-0.1.15-9w140hjt.mjs +0 -2
- package/dist/chunks/cli-0.1.15-a10ekh15.mjs +0 -2
- package/dist/chunks/cli-0.1.15-a8kgfrkd.mjs +0 -2
- package/dist/chunks/cli-0.1.15-acdm8b28.mjs +0 -17
- package/dist/chunks/cli-0.1.15-ajg1d1bh.mjs +0 -2
- package/dist/chunks/cli-0.1.15-asts8hm3.mjs +0 -2
- package/dist/chunks/cli-0.1.15-b1t6c81s.mjs +0 -2
- package/dist/chunks/cli-0.1.15-b21k5hzy.mjs +0 -2
- package/dist/chunks/cli-0.1.15-b6gdqjbg.mjs +0 -2
- package/dist/chunks/cli-0.1.15-b7f6hacc.mjs +0 -2
- package/dist/chunks/cli-0.1.15-be4mz6ka.mjs +0 -2
- package/dist/chunks/cli-0.1.15-behp1dag.mjs +0 -2
- package/dist/chunks/cli-0.1.15-bfd337b0.mjs +0 -2
- package/dist/chunks/cli-0.1.15-bpcmpy8b.mjs +0 -2
- package/dist/chunks/cli-0.1.15-bz57rf9t.mjs +0 -2
- package/dist/chunks/cli-0.1.15-cbseyggr.mjs +0 -2
- package/dist/chunks/cli-0.1.15-cenwnwnx.mjs +0 -2
- package/dist/chunks/cli-0.1.15-cf4s92e9.mjs +0 -2
- package/dist/chunks/cli-0.1.15-cqzrzsh5.mjs +0 -5
- package/dist/chunks/cli-0.1.15-cyq0gbzk.mjs +0 -2
- package/dist/chunks/cli-0.1.15-dcabmk2v.mjs +0 -2
- package/dist/chunks/cli-0.1.15-dcxa8b6s.mjs +0 -2
- package/dist/chunks/cli-0.1.15-dq954y1q.mjs +0 -2
- package/dist/chunks/cli-0.1.15-dqkhbs67.mjs +0 -2
- package/dist/chunks/cli-0.1.15-e494j2sj.mjs +0 -4
- package/dist/chunks/cli-0.1.15-e64w5wan.mjs +0 -5
- package/dist/chunks/cli-0.1.15-e70ktyft.mjs +0 -2
- package/dist/chunks/cli-0.1.15-em40knm7.mjs +0 -4
- package/dist/chunks/cli-0.1.15-en9ppdbd.mjs +0 -2
- package/dist/chunks/cli-0.1.15-f838g4vw.mjs +0 -2
- package/dist/chunks/cli-0.1.15-f8abjagh.mjs +0 -2
- package/dist/chunks/cli-0.1.15-fe92jeft.mjs +0 -2
- package/dist/chunks/cli-0.1.15-fmnyh9j9.mjs +0 -6
- package/dist/chunks/cli-0.1.15-fr83vs1y.mjs +0 -2
- package/dist/chunks/cli-0.1.15-ft6xtjsa.mjs +0 -2
- package/dist/chunks/cli-0.1.15-g5wt8d3g.mjs +0 -2
- package/dist/chunks/cli-0.1.15-ghvjjc4g.mjs +0 -2
- package/dist/chunks/cli-0.1.15-gn4wnxx3.mjs +0 -2
- package/dist/chunks/cli-0.1.15-gqf82qvm.mjs +0 -2
- package/dist/chunks/cli-0.1.15-gqp8kzp0.mjs +0 -2
- package/dist/chunks/cli-0.1.15-gtn9gx9w.mjs +0 -2
- package/dist/chunks/cli-0.1.15-gwbebdj7.mjs +0 -2
- package/dist/chunks/cli-0.1.15-gxgy4enj.mjs +0 -2
- package/dist/chunks/cli-0.1.15-h3a2cbdb.mjs +0 -2
- package/dist/chunks/cli-0.1.15-h4erh2cn.mjs +0 -2
- package/dist/chunks/cli-0.1.15-h7cb0pw7.mjs +0 -2
- package/dist/chunks/cli-0.1.15-hyydz4kc.mjs +0 -12
- package/dist/chunks/cli-0.1.15-j5m3s9r5.mjs +0 -2
- package/dist/chunks/cli-0.1.15-k0bn0cze.mjs +0 -2
- package/dist/chunks/cli-0.1.15-knpxv22b.mjs +0 -2
- package/dist/chunks/cli-0.1.15-ks9rz9tk.mjs +0 -5
- package/dist/chunks/cli-0.1.15-kw7che8m.mjs +0 -2
- package/dist/chunks/cli-0.1.15-m7gtc61y.mjs +0 -2
- package/dist/chunks/cli-0.1.15-my0y22r7.mjs +0 -6
- package/dist/chunks/cli-0.1.15-n97y4hq4.mjs +0 -2
- package/dist/chunks/cli-0.1.15-nejf7yqz.mjs +0 -2
- package/dist/chunks/cli-0.1.15-njg0k6ga.mjs +0 -2
- package/dist/chunks/cli-0.1.15-nts79xbr.mjs +0 -2
- package/dist/chunks/cli-0.1.15-nw94frpp.mjs +0 -2
- package/dist/chunks/cli-0.1.15-nx5v1cvm.mjs +0 -2
- package/dist/chunks/cli-0.1.15-p159ga3t.mjs +0 -2
- package/dist/chunks/cli-0.1.15-p47rrzrn.mjs +0 -2
- package/dist/chunks/cli-0.1.15-p5ty029c.mjs +0 -2
- package/dist/chunks/cli-0.1.15-pcqjreq6.mjs +0 -2
- package/dist/chunks/cli-0.1.15-pxf97j8y.mjs +0 -2
- package/dist/chunks/cli-0.1.15-pya8tbx3.mjs +0 -2
- package/dist/chunks/cli-0.1.15-q021qg07.mjs +0 -2
- package/dist/chunks/cli-0.1.15-q35rzjnz.mjs +0 -16
- package/dist/chunks/cli-0.1.15-qhz07at6.mjs +0 -2
- package/dist/chunks/cli-0.1.15-r626437v.mjs +0 -2
- package/dist/chunks/cli-0.1.15-r8qzzahw.mjs +0 -2
- package/dist/chunks/cli-0.1.15-r9nrfwrq.mjs +0 -2
- package/dist/chunks/cli-0.1.15-rr65b3dk.mjs +0 -2
- package/dist/chunks/cli-0.1.15-rs5swvy0.mjs +0 -4
- package/dist/chunks/cli-0.1.15-rwx8446j.mjs +0 -2
- package/dist/chunks/cli-0.1.15-s7trme0x.mjs +0 -2
- package/dist/chunks/cli-0.1.15-sct02cw6.mjs +0 -5
- package/dist/chunks/cli-0.1.15-sd5jysf2.mjs +0 -2
- package/dist/chunks/cli-0.1.15-sg3n1v0w.mjs +0 -2
- package/dist/chunks/cli-0.1.15-svhrqvzp.mjs +0 -3
- package/dist/chunks/cli-0.1.15-tj4kzvth.mjs +0 -2
- package/dist/chunks/cli-0.1.15-tn4214gj.mjs +0 -2
- package/dist/chunks/cli-0.1.15-tp614m5f.mjs +0 -2
- package/dist/chunks/cli-0.1.15-twq0mjmr.mjs +0 -2
- package/dist/chunks/cli-0.1.15-v8zwx5j6.mjs +0 -3
- package/dist/chunks/cli-0.1.15-vzk22hwe.mjs +0 -2
- package/dist/chunks/cli-0.1.15-w8q8f37x.mjs +0 -2
- package/dist/chunks/cli-0.1.15-wfn10357.mjs +0 -2
- package/dist/chunks/cli-0.1.15-wmwtv0tz.mjs +0 -2
- package/dist/chunks/cli-0.1.15-wn40n534.mjs +0 -2
- package/dist/chunks/cli-0.1.15-x3yhaxm9.mjs +0 -2
- package/dist/chunks/cli-0.1.15-xery8c8c.mjs +0 -2
- package/dist/chunks/cli-0.1.15-y2pbhx6p.mjs +0 -2
- package/dist/chunks/cli-0.1.15-y6fkcbes.mjs +0 -2
- package/dist/chunks/cli-0.1.15-y7xkk5ds.mjs +0 -2
- package/dist/chunks/cli-0.1.15-yghcqf7h.mjs +0 -2
- package/dist/chunks/cli-0.1.15-yjxhk7qj.mjs +0 -2
- package/dist/chunks/cli-0.1.15-ywed2hpz.mjs +0 -2
- package/dist/chunks/cli-0.1.15-yxm6wwfz.mjs +0 -2
- package/dist/chunks/cli-0.1.15-yym7bka2.mjs +0 -2
- package/dist/chunks/cli-0.1.15-z2yexprk.mjs +0 -4
- package/dist/chunks/cli-0.1.15-z35x5bfj.mjs +0 -2
- package/dist/chunks/cli-0.1.15-zf1s8y92.mjs +0 -2
- package/dist/chunks/cli-0.1.15-ztxn2vjm.mjs +0 -2
- package/dist/chunks/client-0.1.15-pbb4218v.mjs +0 -1
- package/dist/chunks/color-0.1.15-w9tvjt51.mjs +0 -1
- package/dist/chunks/compact-0.1.15-2a2eywaz.mjs +0 -3
- package/dist/chunks/config-0.1.15-m4gwmfb1.mjs +0 -1
- package/dist/chunks/config-0.1.15-r15yk3zr.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.15-wwa3qz84.mjs +0 -1
- package/dist/chunks/conversation-0.1.15-n1bn5vmb.mjs +0 -1
- package/dist/chunks/cost-0.1.15-garxyfxy.mjs +0 -1
- package/dist/chunks/createSession-0.1.15-krz8fv09.mjs +0 -1
- package/dist/chunks/desktop-0.1.15-j0znhh3a.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.15-f34tbbq5.mjs +0 -1
- package/dist/chunks/detection-0.1.15-qfkk58tf.mjs +0 -1
- package/dist/chunks/diff-0.1.15-gc5686z3.mjs +0 -1
- package/dist/chunks/doctor-0.1.15-hhtv9s33.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.15-ftgt9y2w.mjs +0 -1
- package/dist/chunks/environmentSelection-0.1.15-59904m5c.mjs +0 -1
- package/dist/chunks/environments-0.1.15-fn4ybjrt.mjs +0 -1
- package/dist/chunks/exit-0.1.15-qxj6czd5.mjs +0 -1
- package/dist/chunks/export-0.1.15-h5n9s624.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.15-4a6e6rsa.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.15-rgqd9ef7.mjs +0 -1
- package/dist/chunks/fast-0.1.15-98jhvjxk.mjs +0 -1
- package/dist/chunks/feedback-0.1.15-pqe68x4v.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.15-pss0293k.mjs +0 -1
- package/dist/chunks/git-0.1.15-002t17pq.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.15-2a6dqqse.mjs +0 -1
- package/dist/chunks/growthbook-0.1.15-m7gdvgqa.mjs +0 -1
- package/dist/chunks/heapdump-0.1.15-s8h9rwpe.mjs +0 -6
- package/dist/chunks/help-0.1.15-y48dg88b.mjs +0 -1
- package/dist/chunks/hookChains-0.1.15-z46c2xkf.mjs +0 -3
- package/dist/chunks/hooks-0.1.15-vanat6cg.mjs +0 -1
- package/dist/chunks/image-processor-napi-0.1.15-5w5sybn1.mjs +0 -1
- package/dist/chunks/index-0.1.15-0z186jwx.mjs +0 -1
- package/dist/chunks/index-0.1.15-136649ke.mjs +0 -1
- package/dist/chunks/index-0.1.15-1r19582s.mjs +0 -1
- package/dist/chunks/index-0.1.15-3jxezstk.mjs +0 -1
- package/dist/chunks/index-0.1.15-52zxtxf2.mjs +0 -1
- package/dist/chunks/index-0.1.15-628tag5v.mjs +0 -1
- package/dist/chunks/index-0.1.15-7cp4n6z6.mjs +0 -1
- package/dist/chunks/index-0.1.15-832xm57n.mjs +0 -1
- package/dist/chunks/index-0.1.15-abzge0fa.mjs +0 -1
- package/dist/chunks/index-0.1.15-b9sdtjj4.mjs +0 -9
- package/dist/chunks/index-0.1.15-bvr8e4dt.mjs +0 -1
- package/dist/chunks/index-0.1.15-d4ea93sj.mjs +0 -9
- package/dist/chunks/index-0.1.15-n2q4dkvc.mjs +0 -1
- package/dist/chunks/index-0.1.15-nzmg6zng.mjs +0 -1
- package/dist/chunks/index-0.1.15-r9ck21mp.mjs +0 -1
- package/dist/chunks/index-0.1.15-rb4nqzzk.mjs +0 -1
- package/dist/chunks/index-0.1.15-x8ghxne4.mjs +0 -2
- package/dist/chunks/index-0.1.15-z3k5tm3n.mjs +0 -1
- package/dist/chunks/initReplBridge-0.1.15-g7q1qemf.mjs +0 -1
- package/dist/chunks/ink-0.1.15-rd56fvsx.mjs +0 -1
- package/dist/chunks/install-0.1.15-z6a6aa3t.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.15-2yhy3kwz.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.1.15-z5nx1rw2.mjs +0 -1
- package/dist/chunks/keybindings-0.1.15-cxmw2kd4.mjs +0 -2
- package/dist/chunks/knowledge-0.1.15-2bnycc4a.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.15-e4ms71xe.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.15-rcg3267j.mjs +0 -1
- package/dist/chunks/lsp-0.1.15-veqrp99h.mjs +0 -1
- package/dist/chunks/main-0.1.15-bfvfcwwj.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.15-1mxydytg.mjs +0 -1
- package/dist/chunks/mcp-0.1.15-rfy9pyrt.mjs +0 -1
- package/dist/chunks/mcp-0.1.15-zc7h2fyj.mjs +0 -4
- package/dist/chunks/mcpServer-0.1.15-t7dsptwh.mjs +0 -1
- package/dist/chunks/mcpb-0.1.15-5mam984d.mjs +0 -1
- package/dist/chunks/memory-0.1.15-b6zkcs44.mjs +0 -3
- package/dist/chunks/model-0.1.15-843f7654.mjs +0 -1
- package/dist/chunks/model-0.1.15-e62wxf7h.mjs +0 -2
- package/dist/chunks/oauth-0.1.15-gxgmqwwx.mjs +0 -1
- package/dist/chunks/output-style-0.1.15-d20e4vc3.mjs +0 -1
- package/dist/chunks/package-WSP46L7M-0.1.15-jsqef57n.mjs +0 -1
- package/dist/chunks/parser-0.1.15-wbja947p.mjs +0 -1
- package/dist/chunks/passes-0.1.15-726y1cyq.mjs +0 -1
- package/dist/chunks/permissions-0.1.15-4pqgyt4h.mjs +0 -3
- package/dist/chunks/plan-0.1.15-p06bpb7x.mjs +0 -1
- package/dist/chunks/plist-0.1.15-fseac2c0.mjs +0 -1
- package/dist/chunks/plugin-0.1.15-yeqq1san.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.15-s9v7kq6q.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.15-rq35tcyk.mjs +0 -1
- package/dist/chunks/process-0.1.15-g6km3z8k.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.15-57ga0c30.mjs +0 -1
- package/dist/chunks/prompt-0.1.15-gm20yk5m.mjs +0 -1
- package/dist/chunks/prompt-0.1.15-gxjy2vnc.mjs +0 -1
- package/dist/chunks/prompts-0.1.15-v7p366n5.mjs +0 -1
- package/dist/chunks/provider-0.1.15-gz0fhpp7.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.15-v7p3m9kf.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.15-3vs25v7e.mjs +0 -1
- package/dist/chunks/registry-0.1.15-3h7bxrc2.mjs +0 -1
- package/dist/chunks/release-notes-0.1.15-1g908440.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.15-5r2acf43.mjs +0 -2
- package/dist/chunks/remoteBridgeCore-0.1.15-kbthngek.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.15-yrg8c3z1.mjs +0 -1
- package/dist/chunks/rename-0.1.15-8079z5ff.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.15-cz1pf5m3.mjs +0 -1
- package/dist/chunks/resume-0.1.15-s4hv4t9y.mjs +0 -2
- package/dist/chunks/rewind-0.1.15-fevxgefp.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.15-yra7frkv.mjs +0 -1
- package/dist/chunks/session-0.1.15-crg226x4.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.15-f3kpf3s7.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.15-x0gw4hbz.mjs +0 -1
- package/dist/chunks/setup-0.1.15-6znmc2q6.mjs +0 -5
- package/dist/chunks/sinks-0.1.15-npqf68gv.mjs +0 -1
- package/dist/chunks/skills-0.1.15-sybv0v2p.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.15-nwkwwtx6.mjs +0 -1
- package/dist/chunks/state-0.1.15-rr5k0vbf.mjs +0 -1
- package/dist/chunks/status-0.1.15-cvscafrs.mjs +0 -1
- package/dist/chunks/stickers-0.1.15-ee8ptkd4.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.15-330g0p7g.mjs +0 -1
- package/dist/chunks/tasks-0.1.15-a4y42df2.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.15-gw6hwmyj.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.15-t2czx776.mjs +0 -1
- package/dist/chunks/teleport-0.1.15-bg434zjk.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.15-ged9eavp.mjs +0 -1
- package/dist/chunks/theme-0.1.15-zq998m8x.mjs +0 -1
- package/dist/chunks/thinkback-0.1.15-g09k62ck.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.15-mn7j6mm2.mjs +0 -1
- package/dist/chunks/toolPool-0.1.15-wej7eaff.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.15-v6zmdk1y.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.15-t9sax8yq.mjs +0 -1
- package/dist/chunks/upgrade-0.1.15-07pcdyyq.mjs +0 -1
- package/dist/chunks/usage-0.1.15-ayne7pw6.mjs +0 -1
- package/dist/chunks/util-0.1.15-vs1eanbw.mjs +0 -1
- package/dist/chunks/utils-0.1.15-aq7vgwy1.mjs +0 -1
- package/dist/chunks/vim-0.1.15-syferjfa.mjs +0 -1
- package/dist/chunks/watcher-0.1.15-bh7ych8a.mjs +0 -1
- package/dist/chunks/worktree-0.1.15-twyfdw3p.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.15-afv7sbw1.mjs +0 -1
- package/dist/chunks/wrapper-0.1.15-dw3awx2b.mjs +0 -7
- /package/dist/chunks/{cli-0.1.15-7mfwj2xs.mjs → cli-0.2.0-4tn02vgd.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.15-7ve9h395.mjs → cli-0.2.0-50cf7d1p.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.15-p6bypqrv.mjs → cli-0.2.0-dgenwca0.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.15-618hqv9f.mjs → cli-0.2.0-rnpcefe5.mjs} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$O as s,WO as a,XO as E,ZO as r,_O as o,eP as GQ}from"./cli-0.1.15-69kq5chw.mjs";import{OV as N,QV as t}from"./cli-0.1.15-asts8hm3.mjs";import{s2 as U,t2 as I}from"./cli-0.1.15-q35rzjnz.mjs";import{L3 as n,S3 as KQ}from"./cli-0.1.15-5denzf1p.mjs";import{$4 as jQ,K4 as e}from"./cli-0.1.15-x69hfzmj.mjs";import{J5 as Y,L5 as h}from"./cli-0.1.15-4892kydg.mjs";import{yea as u,zea as ZQ}from"./cli-0.1.15-b7f6hacc.mjs";import{Yea as H,Zea as i,cfa as F,efa as k,ffa as R,ifa as y,wfa as K,zfa as b}from"./cli-0.1.15-nk50qhet.mjs";ZQ();b();h();F();y();function D(Q){if(Q<60000)return`${Math.round(Q/1000)}s`;let W=Math.floor(Q/60000),Z=Math.round(Q%60000/1000);return Z>0?`${W}m ${Z}s`:`${W}m`}function $Q(Q){let Z=(Q.startsWith("sk-ant-si-")?Q.slice(10):Q).split(".");if(Z.length!==3||!Z[1])return null;try{return R(Buffer.from(Z[1],"base64url").toString("utf8"))}catch{return null}}function f(Q){let W=$Q(Q);if(W!==null&&typeof W==="object"&&"exp"in W&&typeof W.exp==="number")return W.exp;return null}var zQ=300000,p=1800000,m=3,JQ=60000;function FQ({getAccessToken:Q,onRefresh:W,label:Z,refreshBufferMs:z=zQ}){let $=new Map,J=new Map,G=new Map;function X(V){let w=(G.get(V)??0)+1;return G.set(V,w),w}function q(V,w){let j=f(w);if(!j){K(`[${Z}:token] Could not decode JWT expiry for sessionId=${V}, token prefix=${w.slice(0,15)}…, keeping existing timer`);return}let C=$.get(V);if(C)clearTimeout(C);let B=X(V),P=new Date(j*1000).toISOString(),v=j*1000-Date.now()-z;if(v<=0){K(`[${Z}:token] Token for sessionId=${V} expires=${P} (past or within buffer), refreshing immediately`),O(V,B);return}K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(v)} (expires=${P}, buffer=${z/1000}s)`);let WQ=setTimeout(O,v,V,B);$.set(V,WQ)}function L(V,w){let j=$.get(V);if(j)clearTimeout(j);let C=X(V),B=Math.max(w*1000-z,30000);K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(B)} (expires_in=${w}s, buffer=${z/1000}s)`);let P=setTimeout(O,B,V,C);$.set(V,P)}async function O(V,w){let j;try{j=await Q()}catch(B){K(`[${Z}:token] getAccessToken threw for sessionId=${V}: ${H(B)}`,{level:"error"})}if(G.get(V)!==w){K(`[${Z}:token] doRefresh for sessionId=${V} stale (gen ${w} vs ${G.get(V)}), skipping`);return}if(!j){let B=(J.get(V)??0)+1;if(J.set(V,B),K(`[${Z}:token] No OAuth token available for refresh, sessionId=${V} (failure ${B}/${m})`,{level:"error"}),Y("error","bridge_token_refresh_no_oauth"),B<m){let P=setTimeout(O,JQ,V,w);$.set(V,P)}return}J.delete(V),K(`[${Z}:token] Refreshing token for sessionId=${V}: new token prefix=${j.slice(0,15)}…`),u("tengu_bridge_token_refreshed",{}),W(V,j);let C=setTimeout(O,p,V,w);$.set(V,C),K(`[${Z}:token] Scheduled follow-up refresh for sessionId=${V} in ${D(p)}`)}function _(V){X(V);let w=$.get(V);if(w)clearTimeout(w),$.delete(V);J.delete(V)}function QQ(){for(let V of G.keys())X(V);for(let V of $.values())clearTimeout(V);$.clear(),J.clear()}return{schedule:q,scheduleFromExpiresIn:L,cancel:_,cancelAll:QQ}}import{randomUUID as g}from"crypto";b();h();F();KQ();GQ();r();I();t();y();class T extends Error{retryAfterMs;constructor(Q,W){super(Q);this.retryAfterMs=W}}class x{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(Q){this.config=Q}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(Q){if(this.closed)return;let W=Array.isArray(Q)?Q:[Q];if(W.length===0)return;while(this.pending.length+W.length>this.config.maxQueueSize&&!this.closed)await new Promise((Z)=>{this.backpressureResolvers.push(Z)});if(this.closed)return;this.pending.push(...W),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((Q)=>{this.flushResolvers.push(Q)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let Q of this.backpressureResolvers)Q();this.backpressureResolvers=[];for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let Q=0;try{while(this.pending.length>0&&!this.closed){let W=this.takeBatch();if(W.length===0)continue;try{await this.config.send(W),Q=0}catch(Z){if(Q++,this.config.maxConsecutiveFailures!==void 0&&Q>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(W.length,Q),Q=0,this.releaseBackpressure();continue}this.pending=W.concat(this.pending);let z=Z instanceof T?Z.retryAfterMs:void 0;await this.sleep(this.retryDelay(Q,z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let W of this.flushResolvers)W();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:Q,maxBatchBytes:W}=this.config;if(W===void 0)return this.pending.splice(0,Q);let Z=0,z=0;while(z<this.pending.length&&z<Q){let $;try{$=Buffer.byteLength(k(this.pending[z]))}catch{this.pending.splice(z,1);continue}if(z>0&&Z+$>W)break;Z+=$,z++}return this.pending.splice(0,z)}retryDelay(Q,W){let Z=Math.random()*this.config.jitterMs;if(W!==void 0)return Math.max(this.config.baseDelayMs,Math.min(W,this.config.maxDelayMs))+Z;return Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs)+Z}releaseBackpressure(){let Q=this.backpressureResolvers;this.backpressureResolvers=[];for(let W of Q)W()}sleep(Q){return new Promise((W)=>{this.sleepResolve=W,setTimeout((Z,z)=>{Z.sleepResolve=null,z()},Q,this,W)})}}I();class c{inflight=null;pending=null;closed=!1;config;constructor(Q){this.config=Q}enqueue(Q){if(this.closed)return;this.pending=this.pending?d(this.pending,Q):Q,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let Q=this.pending;this.pending=null,this.inflight=this.sendWithRetry(Q).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(Q){let W=Q,Z=0;while(!this.closed){if(await this.config.send(W))return;if(Z++,await U(this.retryDelay(Z)),this.pending&&!this.closed)W=d(W,this.pending),this.pending=null}}retryDelay(Q){let W=Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs),Z=Math.random()*this.config.jitterMs;return W+Z}}function d(Q,W){let Z={...Q};for(let[z,$]of Object.entries(W))if((z==="external_metadata"||z==="internal_metadata")&&Z[z]&&typeof Z[z]==="object"&&typeof $==="object"&&$!==null)Z[z]={...Z[z],...$};else Z[z]=$;return Z}var VQ=20000,YQ=100;function l(){return!0}class M extends Error{reason;constructor(Q){super(`CCRClient init failed: ${Q}`);this.reason=Q}}var XQ=10;function qQ(){return{byMessage:new Map,scopeToMessage:new Map}}function S(Q){return`${Q.session_id}:${Q.parent_tool_use_id??""}`}function wQ(Q,W){let Z=[],z=new Map;for(let $ of Q)switch($.event.type){case"message_start":{let J=$.event.message.id,G=W.scopeToMessage.get(S($));if(G)W.byMessage.delete(G);W.scopeToMessage.set(S($),J),W.byMessage.set(J,[]),Z.push($);break}case"content_block_delta":{if($.event.delta.type!=="text_delta"){Z.push($);break}let J=W.scopeToMessage.get(S($)),G=J?W.byMessage.get(J):void 0;if(!G){Z.push($);break}let X=G[$.event.index]??=[];X.push($.event.delta.text);let q=z.get(X);if(q){q.event.delta.text=X.join("");break}let L={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:$.event.index,delta:{type:"text_delta",text:X.join("")}}};z.set(X,L),Z.push(L);break}default:Z.push($)}return Z}function LQ(Q,W){Q.byMessage.delete(W.message.id);let Z=S(W);if(Q.scopeToMessage.get(Z)===W.message.id)Q.scopeToMessage.delete(Z)}class OQ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=n({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=qQ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(Q,W,Z){if(this.onEpochMismatch=Z?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Z?.heartbeatIntervalMs??VQ,this.heartbeatJitterFraction=Z?.heartbeatJitterFraction??0,this.getAuthHeaders=Z?.getAuthHeaders??E,W.protocol!=="http:"&&W.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${W.protocol}`);let z=W.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${W.protocol}//${W.host}${z}`,this.sessionId=z.split("/").pop()||"",this.workerState=new c({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((J)=>J.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let J=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!J.ok)throw new T("client event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let J=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!J.ok)throw new T("internal event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new x({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let J=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((G)=>({event_id:G.eventId,status:G.status}))},"delivery batch");if(!J.ok)throw new T("delivery POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),Q.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(Q){let W=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new M("no_auth_headers");if(Q===void 0){let G=process.env.CLAUDE_CODE_WORKER_EPOCH;Q=G?parseInt(G,10):NaN}if(isNaN(Q))throw new M("missing_epoch");this.workerEpoch=Q;let Z=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new M("worker_register_failed");this.currentState="idle",this.startHeartbeat(),o(()=>{this.writeEvent({type:"keep_alive"})}),K(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-W});let{metadata:$,durationMs:J}=await Z;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:J,had_state:$!==null});return $}async getWorkerState(){let Q=Date.now(),W=this.getAuthHeaders();if(Object.keys(W).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,W,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-Q}}async request(Q,W,Z,z,{timeout:$=1e4}={}){let J=this.getAuthHeaders();if(Object.keys(J).length===0)return{ok:!1};try{let G=await this.http[Q](`${this.sessionBaseUrl}${W}`,Z,{headers:{...J,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:$});if(G.status>=200&&G.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(G.status===409)this.handleEpochMismatch();if(G.status===401||G.status===403){let X=a(),q=X?f(X):null;if(q!==null&&q*1000<Date.now())K(`CCRClient: session_token expired (exp=${new Date(q*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=XQ)K(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(K(`CCRClient: ${z} returned ${G.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:Q,path:W,status:G.status}),G.status===429){let X=G.headers?.["retry-after"],q=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(q)&&q>=0)return{ok:!1,retryAfterMs:q*1000}}return{ok:!1}}catch(G){return K(`CCRClient: ${z} failed: ${H(G)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:Q,path:W,error_code:i(G)}),{ok:!1}}}reportState(Q,W){if(Q===this.currentState&&!W)return;this.currentState=Q,this.workerState.enqueue({worker_status:Q,requires_action_details:W?{tool_name:W.tool_name,action_description:W.action_description,request_id:W.request_id}:null})}reportMetadata(Q){this.workerState.enqueue({external_metadata:Q})}handleEpochMismatch(){K("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let Q=()=>{let Z=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(W,this.heartbeatIntervalMs+Z)},W=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;Q()};Q()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)K("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(Q){if(Q.type==="stream_event"){if(this.streamEventBuffer.push(Q),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),YQ);return}if(await this.flushStreamEventBuffer(),Q.type==="assistant")LQ(this.streamTextAccumulator,Q);await this.eventUploader.enqueue(this.toClientEvent(Q))}toClientEvent(Q){let W=Q;return{payload:{...W,uuid:typeof W.uuid==="string"?W.uuid:g()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let Q=this.streamEventBuffer;this.streamEventBuffer=[];let W=wQ(Q,this.streamTextAccumulator);await this.eventUploader.enqueue(W.map((Z)=>({payload:Z,ephemeral:!0})))}async writeInternalEvent(Q,W,{isCompaction:Z=!1,agentId:z}={}){let $={payload:{type:Q,...W,uuid:typeof W.uuid==="string"?W.uuid:g()},...Z&&{is_compaction:!0},...z&&{agent_id:z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(Q,W,Z){let z=this.getAuthHeaders();if(Object.keys(z).length===0)return null;let $=[],J;do{let G=new URL(`${this.sessionBaseUrl}${Q}`);for(let[q,L]of Object.entries(W))G.searchParams.set(q,L);if(J)G.searchParams.set("cursor",J);let X=await this.getWithRetry(G.toString(),z,Z);if(!X)return null;$.push(...X.data??[]),J=X.next_cursor}while(J);return K(`CCRClient: Read ${$.length} internal events from ${Q}${W.subagents?" (subagents)":""}`),$}async getWithRetry(Q,W,Z){for(let z=1;z<=10;z++){let $;try{$=await this.http.get(Q,{headers:{...W,"anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:30000})}catch(J){if(K(`CCRClient: GET ${Q} failed (attempt ${z}/10): ${H(J)}`,{level:"warn"}),z<10){let G=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(G)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(K(`CCRClient: GET ${Q} returned ${$.status} (attempt ${z}/10)`,{level:"warn"}),z<10){let J=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(J)}}return K("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Z}),null}reportDelivery(Q,W){this.deliveryUploader.enqueue({eventId:Q,status:W})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),s(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}jQ();b();h();F();r();I();y();t();var BQ=1000,HQ=30000,UQ=600000,CQ=45000,PQ=new Set([401,403,404]),A=10,TQ=500,NQ=8000,kQ={stream:!0};function xQ(){return!0}function AQ(Q){let W=[],Z=0,z;while((z=Q.indexOf(`
|
|
2
|
-
|
|
3
|
-
`,Z))!==-1){let $=Q.slice(Z,z);if(Z=z+2,!$.trim())continue;let J={},G=!1;for(let X of $.split(`
|
|
4
|
-
`)){if(X.startsWith(":")){G=!0;continue}let q=X.indexOf(":");if(q===-1)continue;let L=X.slice(0,q),O=X[q+1]===" "?X.slice(q+2):X.slice(q+1);switch(L){case"event":J.event=O;break;case"id":J.id=O;break;case"data":J.data=J.data?J.data+`
|
|
5
|
-
`+O:O;break}}if(J.data||G)W.push(J)}return{frames:W,remaining:Q.slice(Z)}}class _Q{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(Q,W={},Z,z,$,J){this.url=Q;if(this.headers=W,this.sessionId=Z,this.refreshHeaders=z,this.getAuthHeaders=J??E,this.postUrl=RQ(Q),$!==void 0&&$>0)this.lastSequenceNum=$;K(`SSETransport: SSE URL = ${Q.href}`),K(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){K(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let Q=Date.now(),W=new URL(this.url.href);if(this.lastSequenceNum>0)W.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Z=this.getAuthHeaders(),z={...this.headers,...Z,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":N()};if(Z.Cookie)delete z.Authorization;if(this.lastSequenceNum>0)z["Last-Event-ID"]=String(this.lastSequenceNum);K(`SSETransport: Opening ${W.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(W.href,{headers:z,signal:this.abortController.signal});if(!$.ok){let G=PQ.has($.status);if(K(`SSETransport: HTTP ${$.status}${G?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:$.status}),G){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){K("SSETransport: No response body"),this.handleConnectionError();return}let J=Date.now()-Q;K("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:J}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Connection error: ${H($)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(Q){let W=Q.getReader(),Z=new TextDecoder,z="";try{while(!0){let{done:$,value:J}=await W.read();if($)break;z+=Z.decode(J,kQ);let{frames:G,remaining:X}=AQ(z);z=X;for(let q of G){if(this.resetLivenessTimer(),q.id){let L=parseInt(q.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))K(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let O=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<O)this.seenSequenceNums.delete(_)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(q.event&&q.data)this.handleSSEFrame(q.event,q.data);else if(q.data)K("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{W.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")K("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(Q,W){if(Q!=="client_event"){K(`SSETransport: Unexpected SSE event type '${Q}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:Q});return}let Z;try{Z=R(W)}catch($){K(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let z=Z.payload;if(z&&typeof z==="object"&&"type"in z){let $=this.sessionId?` session=${this.sessionId}`:"";K(`SSETransport: Event seq=${Z.sequence_num} event_id=${Z.event_id} event_type=${Z.event_type} payload_type=${String(z.type)}${$}`),Y("info","cli_sse_message_received"),this.onData?.(k(z)+`
|
|
6
|
-
`)}else K(`SSETransport: Ignoring client_event with no type in payload: event_id=${Z.event_id}`);this.onEventCallback?.(Z)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;let W=Q-this.reconnectStartTime;if(W<UQ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),K("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Z=Math.min(BQ*Math.pow(2,this.reconnectAttempts-1),HQ),z=Math.max(0,Z+Z*0.25*(2*Math.random()-1));K(`SSETransport: Reconnecting in ${Math.round(z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(W/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},z)}else K(`SSETransport: Reconnection time budget exhausted after ${Math.round(W/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:W}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,K("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,CQ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0){K("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Z={...W,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()};K(`SSETransport: POST body keys=${Object.keys(Q).join(",")}`);for(let z=1;z<=A;z++){try{let J=await e.post(this.postUrl,Q,{headers:Z,validateStatus:xQ});if(J.status===200||J.status===201){K(`SSETransport: POST success type=${Q.type}`);return}if(K(`SSETransport: POST ${J.status} body=${k(J.data).slice(0,200)}`),J.status>=400&&J.status<500&&J.status!==429){K(`SSETransport: POST returned ${J.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:J.status});return}K(`SSETransport: POST returned ${J.status}, attempt ${z}/${A}`),Y("warn","cli_sse_post_retryable_error",{status:J.status,attempt:z})}catch(J){K(`SSETransport: POST error: ${J.message}, attempt ${z}/${A}`),Y("warn","cli_sse_post_network_error",{attempt:z})}if(z===A){K(`SSETransport: POST failed after ${A} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(TQ*Math.pow(2,z-1),NQ);await U($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(Q){this.onData=Q}setOnClose(Q){this.onCloseCallback=Q}setOnEvent(Q){this.onEventCallback=Q}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function RQ(Q){let W=Q.pathname;if(W.endsWith("/stream"))W=W.slice(0,-7);return`${Q.protocol}//${Q.host}${W}`}
|
|
7
|
-
export{FQ as D,x as E,M as F,OQ as G,_Q as H};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{qS as y,rS as O}from"./cli-0.1.15-8v8bskr0.mjs";import{AU as h,CU as T,fV as H}from"./cli-0.1.15-68f0jtkh.mjs";import{EV as s,GV as I}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as z}from"./cli-0.1.15-tp614m5f.mjs";import{e6 as E,f6 as A}from"./cli-0.1.15-4892kydg.mjs";import{Qda as i,Rda as U,Sda as R,Tda as p,gea as V}from"./cli-0.1.15-11sdbfxy.mjs";import{Zla as X,bma as q}from"./cli-0.1.15-mhbfhhf6.mjs";function J(o){if(o.startsWith("file-"))return"+";if(o.startsWith("mcp-resource-"))return"◇";if(o.startsWith("agent-"))return"*";return"+"}function K(o){return o.startsWith("file-")||o.startsWith("mcp-resource-")||o.startsWith("agent-")}function Z({suggestions:o,selectedSuggestion:t,maxColumnWidth:m,overlay:e}){let{rows:a}=y(),r=e?Y:Math.min(6,Math.max(1,a-3));if(o.length===0)return null;let u=m??Math.max(...o.map((n)=>i(n.displayText)))+5,l=Math.max(0,Math.min(t-Math.floor(r/2),o.length-r)),f=Math.min(l+r,o.length),d=o.slice(l,f);return s(h,{flexDirection:"column",justifyContent:e?void 0:"flex-end",children:d.map((n)=>s(Q,{item:n,maxColumnWidth:u,isSelected:n.id===o[t]?.id},`${n.id}:${n.id===o[t]?.id?"selected":"idle"}`))})}var C,Y=5,k,G=" ",W,Q,at;var j=q(()=>{A();O();U();H();V();I();C=X(z(),1),k=`${E.pointer} `,W=i(k);Q=C.memo(function({item:t,maxColumnWidth:m,isSelected:e}){let a=y().columns,r=e?k:G,u=e?"suggestion":void 0,l=e?"inverseText":void 0;if(K(t.id)){let $=J(t.id),F=!e,N=t.id.startsWith("file-"),_=t.id.startsWith("mcp-resource-"),tt=2,ot=4,b=t.description?3:0,c;if(N){let x=t.description?Math.min(20,i(t.description)):0,L=a-W-2-4-b-x;c=R(t.displayText,L)}else if(_)c=p(t.displayText,30);else c=t.displayText;let v=a-W-2-i(c)-b-4,g;if(t.description){let x=p(t.description.replace(/\s+/g," "),Math.max(0,v));g=`${r}${$} ${c} - ${x}`}else g=`${r}${$} ${c}`;return s(h,{width:"100%",opaque:!0,backgroundColor:u,children:s(T,{color:l,dimColor:F,bold:e,wrap:"truncate",children:g})})}let f=Math.floor(a*0.4),d=Math.min(m??i(t.displayText)+5,f),n=t.displayText;if(i(n)>d-2)n=p(n,d-2);let w=r+n+" ".repeat(Math.max(0,d-i(n))),M=t.tag?`[${t.tag}] `:"",P=i(M),D=Math.max(0,a-W-d-P-4),S=t.description?p(t.description.replace(/\s+/g," "),D):"",B=`${w}${M}${S}`;return s(h,{width:"100%",opaque:!0,backgroundColor:u,children:s(T,{color:l,dimColor:!e,bold:e,wrap:"truncate",children:B})})});at=C.memo(Z)});
|
|
2
|
-
export{Z as qg,at as rg,j as sg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wa as Uq}from"./cli-0.1.15-618hqv9f.mjs";import{AM as L,Au as iq,BA as Y,Cl as _,DA as p,EA as d,GA as _q,Hy as Kq,Il as cq,Ip as W,JA as Qq,Jy as lq,KA as Xq,KO as eq,LN as l,Np as dq,OA as oq,PH as $q,Qp as Gq,Rp as gq,To as hq,Vh as b,XL as Bq,YL as Vq,ZL as Yq,_H as sq,aN as tq,cO as a,eL as u,fL as i,hi as mq,kA as v,lA as aq,oO as Tq,pL as Oq,qO as D,rO as x,sM as yq,vC as w,vp as zq,wC as nq,wF as g,xp as pq,zF as Lq,zM as Rq,zl as qq,zu as Jq}from"./cli-0.1.15-26hkdean.mjs";import{wP as h,xP as Mq}from"./cli-0.1.15-a8kgfrkd.mjs";import{OP as Hq,aQ as uq}from"./cli-0.1.15-3jz926ax.mjs";import{bR as Zq,eR as rq}from"./cli-0.1.15-216kns0c.mjs";import{H1 as e,N1 as Aq}from"./cli-0.1.15-q35rzjnz.mjs";import{vca as T,wca as Sq}from"./cli-0.1.15-rr65b3dk.mjs";import{yea as c,zea as Nq}from"./cli-0.1.15-b7f6hacc.mjs";import{Cea as S,Eea as Fq,mfa as A,qfa as Iq,wfa as B,zfa as m}from"./cli-0.1.15-nk50qhet.mjs";import{Dha as O,Gia as s,Iia as t,Nka as E,Vka as C,mla as f,tha as P,uha as Eq,vha as n,yha as r}from"./cli-0.1.15-12azgmva.mjs";Mq();f();Oq();Nq();_q();Lq();Fq();m();Iq();Tq();Eq();import*as $ from"path";var bq=1000,Wq=500,vq=300,wq=2000,Dq=typeof Bun<"u",X=null,Z=null,y=new Set,N=!1,M=!1,k=!1,j=null,U=P(),R=null;async function xq(){if(N||M)return;if(N=!0,!k)k=!0,d(()=>{u(),U.emit()});let q=await Pq();if(q.length===0)return;B(`Watching for changes in skill/command directories: ${q.join(", ")}...`),X=h.watch(q,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:R?.stabilityThreshold??bq,pollInterval:R?.pollInterval??Wq},ignored:(z,G)=>{if(G&&!G.isFile()&&!G.isDirectory())return!0;return z.split($.sep).some((H)=>H===".git")},ignorePermissionErrors:!0,usePolling:Dq,interval:R?.chokidarInterval??wq,atomic:!0}),X.on("add",I),X.on("change",I),X.on("unlink",I),j=S(async()=>{await o()})}function o(){if(M=!0,j)j(),j=null;let q=Promise.resolve();if(X)q=X.close(),X=null;if(Z)clearTimeout(Z),Z=null;return y.clear(),U.clear(),q}var kq=U.subscribe;async function Pq(){let q=A(),z=[],G=Y("userSettings","skills");if(G)try{await q.stat(G),z.push(G)}catch{}let H=Y("userSettings","commands");if(H)try{await q.stat(H),z.push(H)}catch{}let J=Y("projectSettings","skills");if(J)try{let K=$.resolve(J);await q.stat(K),z.push(K)}catch{}let Q=Y("projectSettings","commands");if(Q)try{let K=$.resolve(Q);await q.stat(K),z.push(K)}catch{}for(let K of C()){let V=$.join(K,".claudio","skills");try{await q.stat(V),z.push(V)}catch{}}return z}function I(q){B(`Detected skill change: ${q}`),c("tengu_skill_file_changed",{source:"chokidar"}),Cq(q)}function Cq(q){if(y.add(q),Z)clearTimeout(Z);Z=setTimeout(async()=>{Z=null;let z=[...y];y.clear();let G=await a("skills",z[0]);if(l(G)){B(`ConfigChange hook blocked skill reload (${z.length} paths)`);return}p(),i(),g(),U.emit()},R?.reloadDebounce??vq)}async function fq(q){if(X)await X.close(),X=null;if(Z)clearTimeout(Z),Z=null;y.clear(),U.clear(),N=!1,M=!1,R=q??null}var Fz={initialize:xq,dispose:o,subscribe:kq,resetForTesting:fq};f();nq();oq();cq();gq();pq();import{dirname as qz}from"path";mq();hq();rq();Sq();m();lq();sq();Aq();dq();aq();tq();uq();iq();eq();function zz(q){for(let z=q.length-1;z>=0;z--){let G=q[z];if(G?.type!=="assistant")continue;let H=G.message.content.find((K)=>K.type==="tool_use"&&K.name===Gq);if(!H||H.type!=="tool_use")continue;let J=H.input;if(J===null||typeof J!=="object")return[];let Q=Jq().safeParse(J.todos);return Q.success?Q.data:[]}return[]}function uz(q,z){if(q.fileHistorySnapshots&&q.fileHistorySnapshots.length>0)Kq(q.fileHistorySnapshots,(G)=>{z((H)=>({...H,fileHistory:G}))});if(!Hq()&&q.messages&&q.messages.length>0){let G=zz(q.messages);if(G.length>0){let H=n();z((J)=>({...J,todos:{...J.todos,[H]:G}}))}}}function Gz(q){return}function Hz(q,z){if(!q&&!z)return;return{name:q??"",color:z==="default"?void 0:z}}function Jz(q,z,G){if(z)return{agentDefinition:z,agentType:void 0};if(!q)return E(void 0),{agentDefinition:void 0,agentType:void 0};let H=G.activeAgents.find((J)=>J.agentType===q);if(!H)return B(`Resumed session had agent "${q}" but it is no longer available. Using default behavior.`),E(void 0),{agentDefinition:void 0,agentType:void 0};if(E(H.agentType),!s()&&H.model&&H.model!=="inherit")t(e(H.model));return{agentDefinition:H,agentType:H.agentType}}async function Kz(q,z,G,H){if(!q)return H;_.cache.clear?.();let J=await _(z),Q=[...J.allAgents,...G];return{...J,allAgents:Q,activeAgents:qq(Q)}}function Qz(q){let z=D();if(z){L(z);return}if(!q)return;try{process.chdir(q.worktreePath)}catch{L(null);return}v(q.worktreePath),O(T()),x(q),b(),w(),W.cache.clear?.()}function iz(){let q=D();if(!q)return;x(null),b(),w(),W.cache.clear?.();try{process.chdir(q.originalCwd)}catch{return}v(q.originalCwd),O(T())}async function lz(q,z,G){let H;if(H=G.modeApi?.matchSessionMode(q.mode),H)q.messages.push($q(H,"warning"));if(!z.forkSession){let F=z.sessionIdOverride??q.sessionId;if(F){if(r(zq(F),z.transcriptPath?qz(z.transcriptPath):null),await Uq(),await Vq(),!Qq(F))Xq(q.messages)}}else if(q.contentReplacements?.length)await Bq(q.contentReplacements);if(yq(z.forkSession?{...q,worktreeSession:void 0}:q),!z.forkSession)Qz(q.worktreeSession),Yq();let{agentDefinition:J,agentType:Q}=Jz(q.agentSetting,G.mainThreadAgentDefinition,G.agentDefinitions);Rq(G.modeApi?.isCoordinatorMode()?"coordinator":"normal");let K=z.includeAttribution?Gz(q):void 0,V=Hz(q.agentName,q.agentColor);Zq(q.agentName);let jq=await Kz(!!H,G.currentCwd,G.cliAgents,G.agentDefinitions);return{messages:q.messages,fileHistorySnapshots:q.fileHistorySnapshots,contentReplacements:q.contentReplacements,agentName:q.agentName,agentColor:q.agentColor==="default"?void 0:q.agentColor,restoredAgentDef:J,initialState:{...G.initialState,...Q&&{agent:Q},...K&&{attribution:K},...V&&{standaloneAgentContext:V},agentDefinitions:jq}}}
|
|
2
|
-
export{Fz as Ca,uz as Da,Hz as Ea,Jz as Fa,Qz as Ga,iz as Ha,lz as Ia};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{gf as p,hf as Kq}from"./cli-0.1.15-yxm6wwfz.mjs";import{Pu as d,Qu as Vq,aM as l,aN as Oq}from"./cli-0.1.15-26hkdean.mjs";import{AU as T,CU as R,QS as Zq,WU as $,fV as Gq}from"./cli-0.1.15-68f0jtkh.mjs";import{nV as t,pV as v,sV as e}from"./cli-0.1.15-pya8tbx3.mjs";import{EV as P,FV as N,GV as S}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as Yq}from"./cli-0.1.15-tp614m5f.mjs";import{cW as u,dW as Aq}from"./cli-0.1.15-j5m3s9r5.mjs";import{T7 as j,l6 as G,n6 as o,n8 as s}from"./cli-0.1.15-4892kydg.mjs";import{vca as L,wca as n}from"./cli-0.1.15-rr65b3dk.mjs";import{Yea as c,cfa as Xq,wfa as w,zfa as r}from"./cli-0.1.15-nk50qhet.mjs";import{mla as i,vha as f}from"./cli-0.1.15-12azgmva.mjs";import{Zla as I,bma as h}from"./cli-0.1.15-mhbfhhf6.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",L()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(w(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();n();r();o();s();e();K=I(t(),1)});function Pq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=a.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Pq()).catch(Bq),z(`Starting download. Re-run /desktop once you’ve installed the app.
|
|
2
|
-
Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Rq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(p,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Rq(H){H("Session transferred to Claude Desktop",{display:"system"}),await d(0,"other")}function Bq(){}var a,A,D="https://clau.de/desktop";var yq=h(()=>{Gq();Aq();k();Xq();Vq();Oq();Kq();S();a=I(Zq(),1),A=I(Yq(),1)});
|
|
3
|
-
export{mq as ef,yq as ff};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kb as U,lb as y}from"./cli-0.1.15-5qx5p8cd.mjs";import{pY as K}from"./cli-0.1.15-behp1dag.mjs";import{J2 as _,N2 as $,S2 as H,y3 as f}from"./cli-0.1.15-q35rzjnz.mjs";import{Gaa as G,U$ as Q,X$ as B,Z_ as N,_5 as W,d6 as P,j$ as g,oaa as A,r9 as J,s9 as X,x9 as b,yaa as Y,zaa as Z}from"./cli-0.1.15-4892kydg.mjs";import{Xea as V,cfa as O}from"./cli-0.1.15-nk50qhet.mjs";import{Iia as I,mla as L}from"./cli-0.1.15-12azgmva.mjs";L();f();A();O();P();G();b();g();function i(j){return(k)=>({...k,...typeof j.permission_mode==="string"?{toolPermissionContext:{...k.toolPermissionContext,mode:X(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function p({newState:j,oldState:k}){let R=k.toolPermissionContext.mode,D=j.toolPermissionContext.mode;if(R!==D){let q=J(R),z=J(D);if(q!==z){let F=z==="plan"&&j.isUltraplanMode&&!k.isUltraplanMode?!0:null;U({permission_mode:z,is_ultraplan_mode:F})}y(D)}if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel===null)N("userSettings",{model:void 0}),I(null),Z();if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel!==null)N("userSettings",{model:j.mainLoopModel}),I(j.mainLoopModel),Y(j.mainLoopModel);if(j.expandedView!==k.expandedView){let q=j.expandedView==="tasks",z=j.expandedView==="teammates";if(B().showExpandedTodos!==q||B().showSpinnerTree!==z)Q((F)=>({...F,showExpandedTodos:q,showSpinnerTree:z}))}if(j.verbose!==k.verbose&&B().verbose!==j.verbose){let q=j.verbose;Q((z)=>({...z,verbose:q}))}if(j.settings!==k.settings)try{if(_(),$(),H(),j.settings.env!==k.settings.env)K()}catch(q){W(V(q))}}
|
|
2
|
-
export{i as bb,p as cb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{AU as p,CU as u,IU as UQ,QS as m,WU as h,fV as y,lU as k,mU as FQ}from"./cli-0.1.15-68f0jtkh.mjs";import{EV as S,FV as $,GV as j}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as f}from"./cli-0.1.15-tp614m5f.mjs";import{Qda as GQ,Rda as PQ}from"./cli-0.1.15-11sdbfxy.mjs";import{Zla as W,bma as P}from"./cli-0.1.15-mhbfhhf6.mjs";function d(){let X=c.useContext(k);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var c;var a=P(()=>{FQ();c=W(f(),1)});function o(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var s=()=>{};function r(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function IQ(X){if(X===" ")return[r("space")];return X.trim().split(/\s+/).map(r)}function BQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=EQ(X.key);return Q.push(V),Q.join("+")}function EQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function b(X){return X.map(BQ).join(" ")}function jQ(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:IQ(Z),action:Y,context:V.context});return Q}var i=()=>{};function n(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?b(Z.chord):void 0}function zQ(X,Q){let V=o(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function t(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function NQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!t(Z,Y))return!1}return!0}function SQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!t(Z,Y))return!1}return!0}function e(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=zQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),I=Z.filter((U)=>q.has(U.context)),F=new Map;for(let U of I)if(U.chord.length>G.length&&NQ(G,U))F.set(b(U.chord),U.action);let B=!1;for(let U of F.values())if(U!==null){B=!0;break}if(B)return{type:"chord_started",pending:G};let H;for(let U of I)if(SQ(G,U))H=U;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var QQ=P(()=>{s();i()});function $Q(X){let Q=x.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:I,handlerRegistryRef:F,children:B}=X,H;if(Q[0]!==V)H=(L,O)=>n(L,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let U=H,_;if(Q[2]!==F)_=(L)=>{let O=F.current;if(!O)return _Q;if(!O.has(L.action))O.set(L.action,new Set);return O.get(L.action).add(L),()=>{let D=O.get(L.action);if(D){if(D.delete(L),D.size===0)O.delete(L.action)}}},Q[2]=F,Q[3]=_;else _=Q[3];let v=_,A;if(Q[4]!==G||Q[5]!==F)A=(L)=>{let O=F.current;if(!O)return!1;let D=O.get(L);if(!D||D.size===0)return!1;for(let g of D)if(G.has(g.context))return g.handler(),!0;return!1},Q[4]=G,Q[5]=F,Q[6]=A;else A=Q[6];let R=A,z;if(Q[7]!==V||Q[8]!==Z)z=(L,O,D)=>e(L,O,D,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=z;else z=Q[9];let w;if(Q[10]!==G||Q[11]!==V||Q[12]!==U||Q[13]!==R||Q[14]!==Y||Q[15]!==q||Q[16]!==v||Q[17]!==J||Q[18]!==z||Q[19]!==I)w={resolve:z,setPendingChord:J,getDisplayText:U,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:I,registerHandler:v,invokeAction:R},Q[10]=G,Q[11]=V,Q[12]=U,Q[13]=R,Q[14]=Y,Q[15]=q,Q[16]=v,Q[17]=J,Q[18]=z,Q[19]=I,Q[20]=w;else w=Q[20];let N=w,E;if(Q[21]!==B||Q[22]!==N)E=S(VQ.Provider,{value:N,children:B}),Q[21]=B,Q[22]=N,Q[23]=E;else E=Q[23];return E}function _Q(){}function C(){return T.useContext(VQ)}function pQ(X,Q){let V=x.c(5),Z=Q===void 0?!0:Q,Y=C(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];T.useLayoutEffect(J,G)}var x,T,VQ;var XQ=P(()=>{QQ();j();x=W(m(),1),T=W(f(),1),VQ=T.createContext(null)});function lQ(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=C();M.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=M.useCallback((q,I,F)=>{if(!J)return;let B=[...J.activeContexts,Z,"Global"],H=[...new Set(B)],U=J.resolve(q,I,H);switch(U.type){case"match":if(J.setPendingChord(null),U.action===X){if(Q()!==!1)F.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(U.pending),F.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),F.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);h(G,{isActive:Y})}function gQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=C();M.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,I]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:I}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=M.useCallback((G,q,I)=>{if(!Y)return;let F=[...Y.activeContexts,V,"Global"],B=[...new Set(F)],H=Y.resolve(G,q,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let U=X[H.action];if(U&&U()!==!1)I.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),I.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),I.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);h(J,{isActive:Z})}var M;var DQ=P(()=>{y();XQ();M=W(f(),1)});function ZQ(){return K.useContext(l)!==null}function cQ(X){let Q=YQ.c(3),V=K.useContext(l),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function dQ(){return K.useContext(l)?.scrollRef??null}var YQ,K,l;var JQ=P(()=>{YQ=W(m(),1),K=W(f(),1),l=K.createContext(null)});function HQ(X){let Q=qQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,I=J===void 0?0:J,{columns:F}=d(),B=Math.max(0,(V??F)-I);if(G){let v=GQ(G)+2,A=Math.max(0,B-v),R=Math.floor(A/2),z=A-R,w=!Z,N;if(Q[0]!==q||Q[1]!==R)N=q.repeat(R),Q[0]=q,Q[1]=R,Q[2]=N;else N=Q[2];let E;if(Q[3]!==G)E=S(u,{dimColor:!0,children:S(UQ,{children:G})}),Q[3]=G,Q[4]=E;else E=Q[4];let L;if(Q[5]!==q||Q[6]!==z)L=q.repeat(z),Q[5]=q,Q[6]=z,Q[7]=L;else L=Q[7];let O;if(Q[8]!==Z||Q[9]!==w||Q[10]!==N||Q[11]!==E||Q[12]!==L)O=$(u,{color:Z,dimColor:w,children:[N," ",E," ",L]}),Q[8]=Z,Q[9]=w,Q[10]=N,Q[11]=E,Q[12]=L,Q[13]=O;else O=Q[13];return O}let H=!Z,U;if(Q[14]!==q||Q[15]!==B)U=q.repeat(B),Q[14]=q,Q[15]=B,Q[16]=U;else U=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==U)_=S(u,{color:Z,dimColor:H,children:U}),Q[17]=Z,Q[18]=H,Q[19]=U,Q[20]=_;else _=Q[20];return _}var qQ;var LQ=P(()=>{a();PQ();y();j();qQ=W(m(),1)});function VV(X){let Q=OQ.c(9),{children:V,color:Z}=X;if(ZQ()){let q;if(Q[0]!==V)q=S(p,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(HQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(p,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=$(p,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var OQ;var RQ=P(()=>{JQ();y();LQ();j();OQ=W(m(),1)});
|
|
2
|
-
export{d as qS,a as rS,r as sS,IQ as tS,b as uS,jQ as vS,i as wS,n as xS,e as yS,QQ as zS,$Q as AS,C as BS,pQ as CS,XQ as DS,lQ as ES,gQ as FS,DQ as GS,l as HS,ZQ as IS,cQ as JS,dQ as KS,JQ as LS,HQ as MS,LQ as NS,VV as OS,RQ as PS};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Qa as Y}from"./cli-0.1.15-7mfwj2xs.mjs";import{fP as N,gP as C}from"./cli-0.1.15-69kq5chw.mjs";import{S5 as L,U5 as j}from"./cli-0.1.15-4892kydg.mjs";import{yea as A,zea as w}from"./cli-0.1.15-b7f6hacc.mjs";import{Yea as B,cfa as k,ffa as G,ifa as K,wfa as W,zfa as E}from"./cli-0.1.15-nk50qhet.mjs";w();C();import{randomUUID as O}from"crypto";E();j();k();K();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return L(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(G(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);A("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${B(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
2
|
-
export{v as Ka,q as La,p as Ma,g as Na,d as Oa,R as Pa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ig as G,Kg as m}from"./cli-0.1.15-pcqjreq6.mjs";import{Lg as H,Mg as C}from"./cli-0.1.15-gwbebdj7.mjs";import{VV as X,XV as Y,aW as R}from"./cli-0.1.15-y6fkcbes.mjs";import{cW as k,dW as y}from"./cli-0.1.15-j5m3s9r5.mjs";import{QZ as w,RZ as E,j3 as B,y3 as f}from"./cli-0.1.15-q35rzjnz.mjs";import{$4 as I,K4 as W}from"./cli-0.1.15-x69hfzmj.mjs";import{U$ as S,X$ as j,_5 as Q,d6 as x,oaa as D}from"./cli-0.1.15-4892kydg.mjs";import{hda as V,ida as b}from"./cli-0.1.15-6mad0r56.mjs";import{bma as Z}from"./cli-0.1.15-mhbfhhf6.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}));G();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await H())?.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 k(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();C();f();E();y();D();x()});
|
|
2
|
-
export{i as Fg,A as Gg};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{fd as w,gd as _,hd as D,id as L,jd as A,kd as h,ld as y}from"./cli-0.1.15-e494j2sj.mjs";import{DG as X,EG as O,Pu as j,Qu as I,Wj as R,Zj as b,pu as W,su as V,uu as C}from"./cli-0.1.15-26hkdean.mjs";import{_5 as U,d6 as M,e6 as K,f6 as N}from"./cli-0.1.15-4892kydg.mjs";import{yea as Q,zea as S}from"./cli-0.1.15-b7f6hacc.mjs";import{Yea as B,cfa as v}from"./cli-0.1.15-nk50qhet.mjs";import{Pfa as x,Tfa as F}from"./cli-0.1.15-tj4kzvth.mjs";N();v();I();M();O();b();F();C();S();y();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${K.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};Q("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await w(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await _(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${K.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);Q("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await L(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await A();if(!z.success)throw Error(z.message);console.log(`${K.tick} ${z.message}`),Q("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await h(z,J);if(!q.success)throw Error(q.message);if(x(`${K.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await j(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as k,a as l,i as m,u as n,n as o,r as p};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Lla as M,Mla as Y}from"./cli-0.1.15-p5ty029c.mjs";import{bma as W}from"./cli-0.1.15-mhbfhhf6.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudio").normalize("NFC")}function N(){return process.env.CLAUDIO_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIO_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
|
|
2
|
-
export{X as Afa,_ as Bfa,j as Cfa,U as Dfa,I as Efa,S as Ffa,T as Gfa,c as Hfa,L as Ifa,w as Jfa,z as Kfa,O as Lfa,x as Mfa,k as Nfa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{X$ as P,oaa as y}from"./cli-0.1.15-4892kydg.mjs";import{bma as U}from"./cli-0.1.15-mhbfhhf6.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
-
export{G as EQ,M as FQ,N as GQ,Y as HQ,C as IQ,_ as JQ,R as KQ,f as LQ,E as MQ,I as NQ,k as OQ,A as PQ,b as QQ,h as RQ,m as SQ,p as TQ,u as UQ,T as VQ,e as WQ,W as XQ,a as YQ,s as ZQ,r as _Q,g as $Q};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A6 as Z,C6 as f,Paa as $,Qaa as y,vba as B,yba as K}from"./cli-0.1.15-4892kydg.mjs";import{Ffa as Y,Nfa as E}from"./cli-0.1.15-9pe3dbgs.mjs";import{bma as N,cma as x}from"./cli-0.1.15-mhbfhhf6.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
|
|
2
|
-
export{D as A4,s as B4,g as C4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bma as _}from"./cli-0.1.15-mhbfhhf6.mjs";import{stat as Cq,lstat as d,readdir as Mq,realpath as Kq}from"node:fs/promises";import{Readable as Nq}from"node:stream";import{resolve as c,relative as Yq,join as Hq,sep as Iq}from"node:path";function i(q,J={}){let Q=J.entryType||J.type;if(Q==="both")Q=Y.FILE_DIR_TYPE;if(Q)J.type=Q;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(Q&&!l.includes(Q))throw Error(`readdirp: Invalid type passed. Use one of ${l.join(", ")}`);return J.root=q,new h(J)}var Y,g,n="READDIRP_RECURSIVE_ERROR",Oq,l,bq,Vq,Dq=(q)=>Oq.has(q.code),Lq,o=(q)=>!0,p=(q)=>{if(q===void 0)return o;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(Q)=>Q.basename===J}if(Array.isArray(q)){let J=q.map((Q)=>Q.trim());return(Q)=>J.some((X)=>Q.basename===X)}return o},h;var s=_(()=>{Y={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},g={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:Y.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(g);Oq=new Set(["ENOENT","EPERM","EACCES","ELOOP",n]),l=[Y.DIR_TYPE,Y.EVERYTHING_TYPE,Y.FILE_DIR_TYPE,Y.FILE_TYPE],bq=new Set([Y.DIR_TYPE,Y.EVERYTHING_TYPE,Y.FILE_DIR_TYPE]),Vq=new Set([Y.EVERYTHING_TYPE,Y.FILE_DIR_TYPE,Y.FILE_TYPE]),Lq=process.platform==="win32";h=class h extends Nq{constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={...g,...q},{root:Q,type:X}=J;this._fileFilter=p(J.fileFilter),this._directoryFilter=p(J.directoryFilter);let Z=J.lstat?d:Cq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth??g.depth,this._wantsDir=X?bq.has(X):!1,this._wantsFile=X?Vq.has(X):!1,this._wantsEverything=X===Y.EVERYTHING_TYPE,this._root=c(Q),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(Q,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,Q=J&&J.files;if(Q&&Q.length>0){let{path:X,depth:Z}=J,z=Q.splice(0,q).map((G)=>this._formatEntry(G,X)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let x=await this._getEntryType(G);if(x==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((x==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let X=this.parents.pop();if(!X){this.push(null);break}if(this.parent=await X,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let Q;try{Q=await Mq(q,this._rdOptions)}catch(X){this._onError(X)}return{files:Q,depth:J,path:q}}async _formatEntry(q,J){let Q,X=this._isDirent?q.name:q;try{let Z=c(Hq(J,X));Q={path:Yq(this._root,Z),fullPath:Z,basename:X},Q[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return Q}_onError(q){if(Dq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let Q=q.fullPath;try{let X=await Kq(Q),Z=await d(X);if(Z.isFile())return"file";if(Z.isDirectory()){let z=X.length;if(Q.startsWith(X)&&Q.substr(z,1)===Iq){let $=Error(`Circular symlink detected: "${Q}" points to "${X}"`);return $.code=n,this._onError($)}return"directory"}}catch(X){return this._onError(X),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watchFile as Wq,unwatchFile as a,watch as Fq}from"fs";import{open as Aq,stat as e,lstat as Rq,realpath as u}from"fs/promises";import*as M from"path";import{type as Tq}from"os";function r(q,J,Q,X,Z){let z=($,G)=>{if(Q(q),Z($,G,{watchedPath:q}),G&&q!==G)F(M.resolve(q,G),I,M.join(q,G))};try{return Fq(q,{persistent:J.persistent},z)}catch($){X($);return}}class E{constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let Q=this.fsw.options,X=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(X).add(Z);let $=M.resolve(q),G={persistent:Q.persistent};if(!J)J=A;let x;if(Q.usePolling){let U=Q.interval!==Q.binaryInterval;G.interval=U&&fq(Z)?Q.binaryInterval:Q.interval,x=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else x=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return x}_handleFile(q,J,Q){if(this.fsw.closed)return;let X=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(X),$=J;if(z.has(Z))return;let G=async(U,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(H.CHANGE,q,k);if((_q||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(U),$=k;let b=this._watchWithNodeFs(q,G);if(b)this.fsw._addPathCloser(U,b)}else $=k}catch(k){this.fsw._remove(X,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(H.CHANGE,q,j);$=j}},x=this._watchWithNodeFs(q,G);if(!(Q&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(H.ADD,q,0))return;this.fsw._emit(H.ADD,q,J)}return x}async _handleSymlink(q,J,Q,X){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await u(Q)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(X)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(H.CHANGE,Q,q.stats)}else z.add(X),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(H.ADD,Q,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,Q,X,Z,z,$){if(q=M.join(q,""),$=this.fsw._throttle("readdir",q,1000),!$)return;let G=this.fsw._getWatchedDir(Q.path),x=new Set,U=this.fsw._readdirp(q,{fileFilter:(j)=>Q.filterPath(j),directoryFilter:(j)=>Q.filterDir(j)});if(!U)return;return U.on(gq,async(j)=>{if(this.fsw.closed){U=void 0;return}let k=j.path,K=M.join(q,k);if(x.add(k),j.stats.isSymbolicLink()&&await this._handleSymlink(j,q,K,k))return;if(this.fsw.closed){U=void 0;return}if(k===X||!X&&!G.has(k))this.fsw._incrReadyCount(),K=M.join(Z,M.relative(Z,K)),this._addToNodeFs(K,J,Q,z+1)}).on(H.ERROR,this._boundHandleError),new Promise((j,k)=>{if(!U)return k();U.once(v,()=>{if(this.fsw.closed){U=void 0;return}let K=$?$.clear():!1;if(j(void 0),G.getChildren().filter((N)=>{return N!==q&&!x.has(N)}).forEach((N)=>{this.fsw._remove(q,N)}),U=void 0,K)this._handleRead(q,!1,Q,X,Z,z,$)})})}async _handleDir(q,J,Q,X,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),x=G.has(M.basename(q));if(!(Q&&this.fsw.options.ignoreInitial)&&!Z&&!x)this.fsw._emit(H.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let U,j,k=this.fsw.options.depth;if((k==null||X<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,Q,z,Z,q,X,U),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,X,U)})}return j}async _addToNodeFs(q,J,Q,X,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(Q)$.filterPath=(G)=>Q.filterPath(G),$.filterDir=(G)=>Q.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let x=this.fsw.options.followSymlinks,U;if(G.isDirectory()){let j=M.resolve(q),k=x?await u(q):q;if(this.fsw.closed)return;if(U=await this._handleDir($.watchPath,G,J,X,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=x?await u(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(H.ADD,$.watchPath,G),U=await this._handleDir(k,G,J,X,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else U=this._handleFile($.watchPath,G,J);if(z(),U)this.fsw._addPathCloser(q,U);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var gq="data",v="end",t="close",A=()=>{},R,w,_q,uq,Pq,qq,C,H,Sq="watch",vq,I="listeners",L="errHandlers",O="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),S=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},V=(q,J,Q)=>{let X=q[J];if(!(X instanceof Set))q[J]=X=new Set([X]);X.add(Q)},yq=(q)=>(J)=>{let Q=q[J];if(Q instanceof Set)Q.clear();else delete q[J]},D=(q,J,Q)=>{let X=q[J];if(X instanceof Set)X.delete(Q);else if(X===Q)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,W,F=(q,J,Q,X,Z)=>{let z=W.get(q);if(!z)return;S(z[J],($)=>{$(Q,X,Z)})},mq=(q,J,Q,X)=>{let{listener:Z,errHandler:z,rawEmitter:$}=X,G=W.get(J),x;if(!Q.persistent){if(x=r(q,Q,Z,z,$),!x)return;return x.close.bind(x)}if(G)V(G,I,Z),V(G,L,z),V(G,O,$);else{if(x=r(q,Q,F.bind(null,J,I),z,F.bind(null,J,O)),!x)return;x.on(H.ERROR,async(U)=>{let j=F.bind(null,J,L);if(G)G.watcherUnusable=!0;if(w&&U.code==="EPERM")try{await(await Aq(q,"r")).close(),j(U)}catch(k){}else j(U)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:x},W.set(J,G)}return()=>{if(D(G,I,Z),D(G,L,z),D(G,O,$),Jq(G.listeners))G.watcher.close(),W.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},P,dq=(q,J,Q,X)=>{let{listener:Z,rawEmitter:z}=X,$=P.get(J),G=$&&$.options;if(G&&(G.persistent<Q.persistent||G.interval>Q.interval))a(J),$=void 0;if($)V($,I,Z),V($,O,z);else $={listeners:Z,rawEmitters:z,options:Q,watcher:Wq(J,Q,(x,U)=>{S($.rawEmitters,(k)=>{k(H.CHANGE,J,{curr:x,prev:U})});let j=x.mtimeMs;if(x.size!==U.size||j>U.mtimeMs||j===0)S($.listeners,(k)=>k(q,x))})},P.set(J,$);return()=>{if(D($,I,Z),D($,O,z),Jq($.listeners))P.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=_(()=>{R=process.platform,w=R==="win32",_q=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},H=C,vq={lstat:Rq,stat:e},wq=[I,L,O],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),W=new Map;P=new Map});import{stat as cq}from"fs";import{stat as lq,readdir as oq}from"fs/promises";import{EventEmitter as pq}from"events";import*as B from"path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let Q=B.relative(q.path,J);if(!Q)return!1;return!Q.startsWith("..")&&!B.isAbsolute(Q)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;let Q=/\/\//;while(q.match(Q))q=q.replace(Q,"/");if(J)q="/"+q;return q}function Zq(q,J,Q){let X=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(X,Q))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let X=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Zq(X,Z,z)};return Zq(X,J)}class kq{constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==Uq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let Q=this.path;try{await oq(Q)}catch(X){if(this._removeWatcher)this._removeWatcher(B.dirname(Q),B.basename(Q))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=A,this.items=QJ,Object.freeze(this)}}class jq{constructor(q,J,Q){this.fsw=Q;let X=q;this.path=q=q.replace(rq,""),this.watchPath=X,this.fullWatchPath=B.resolve(X),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let Q=this.entryPath(q);return this.fsw._isntIgnored(Q,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let Q=new m(J);return Q.add(q),Q}var f="/",nq="//",Uq=".",hq="..",iq="string",sq,Xq,aq,rq,y=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),$q=(q)=>{let J=T(q).flat();if(!J.every((Q)=>typeof Q===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},Gq=(q)=>{let J=q.replace(sq,f),Q=!1;if(J.startsWith(nq))Q=!0;while(J.match(Xq))J=J.replace(Xq,f);if(Q)J=f+J;return J},xq=(q)=>Gq(B.normalize(Gq(q))),zq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",m,bJ;var GJ=_(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Xq=/\/\//,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);m=class m extends pq{constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,Q={stabilityThreshold:2000,pollInterval:100},X={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?Q:typeof J==="object"?{...Q,...J}:!1};if(qq)X.usePolling=!0;if(X.atomic===void 0)X.atomic=!X.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")X.usePolling=!1;else if(G==="true"||G==="1")X.usePolling=!0;else X.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)X.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=A,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=X,this._nodeFsHandler=new E(this),Object.freeze(X)}_addIgnoredPath(q){if(y(q)){for(let J of this._ignoredPaths)if(y(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(y(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,Q){let{cwd:X}=this.options;this.closed=!1,this._closePromise=void 0;let Z=$q(q);if(X)Z=Z.map((z)=>{return JJ(z,X)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!Q,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=$q(q),{cwd:Q}=this.options;return J.forEach((X)=>{if(!B.isAbsolute(X)&&!this._closers.has(X)){if(Q)X=B.join(Q,X);X=B.resolve(X)}if(this._closePath(X),this._addIgnoredPath(X),this._watched.has(X))this._addIgnoredPath({path:X,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((Q)=>{let X=Q();if(X instanceof Promise)q.push(X)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,Q)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,Q):Q)||Uq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,Q){if(this.closed)return;let X=this.options;if(w)J=B.normalize(J);if(X.cwd)J=B.relative(X.cwd,J);let Z=[J];if(Q!=null)Z.push(Q);let z=X.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(X.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,x)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(x)})},typeof X.atomic==="number"?X.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(x,U)=>{if(x)q=C.ERROR,Z[0]=x,this.emitWithAll(q,Z);else if(U){if(Z.length>1)Z[1]=U;else Z.push(U);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(X.alwaysStat&&Q===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=X.cwd?B.join(X.cwd,J):J,x;try{x=await lq(G)}catch(U){}if(!x||this.closed)return;Z.push(x)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,Q){if(!this._throttled.has(q))this._throttled.set(q,new Map);let X=this._throttled.get(q);if(!X)throw Error("invalid throttle");let Z=X.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let x=X.get(J),U=x?x.count:0;if(X.delete(J),clearTimeout(z),x)clearTimeout(x.timeoutObject);return U};z=setTimeout($,Q);let G={timeoutObject:z,clear:$,count:0};return X.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,Q,X){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let x=new Date,U=this._pendingWrites;function j(k){cq(G,(K,N)=>{if(K||!U.has(q)){if(K&&K.code!=="ENOENT")X(K);return}let b=Number(new Date);if(k&&N.size!==k.size)U.get(q).lastChange=b;let Bq=U.get(q);if(b-Bq.lastChange>=J)U.delete(q),X(void 0,N);else $=setTimeout(j,z,N)})}if(!U.has(q))U.set(q,{lastChange:x,cancelWait:()=>{return U.delete(q),clearTimeout($),Q}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:Q}=this.options,Z=(this.options.ignored||[]).map(zq(Q)),$=[...[...this._ignoredPaths].map(zq(Q)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new jq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,Q){let X=B.join(q,J),Z=B.resolve(X);if(Q=Q!=null?Q:this._watched.has(X)||this._watched.has(Z),!this._throttle("remove",X,100))return;if(!Q&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(X).getChildren().forEach((k)=>this._remove(X,k));let G=this._getWatchedDir(q),x=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let U=X;if(this.options.cwd)U=B.relative(this.options.cwd,X);if(this.options.awaitWriteFinish&&this._pendingWrites.has(U)){if(this._pendingWrites.get(U).cancelWait()===C.ADD)return}this._watched.delete(X),this._watched.delete(Z);let j=Q?C.UNLINK_DIR:C.UNLINK;if(x&&!this._isIgnored(X))this._emit(j,X);this._closePath(X)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((Q)=>Q()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let Q=this._closers.get(q);if(!Q)Q=[],this._closers.set(q,Q);Q.push(J)}_readdirp(q,J){if(this.closed)return;let Q={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},X=i(q,Q);return this._streams.add(X),X.once(t,()=>{X=void 0}),X.once(v,()=>{if(X)this._streams.delete(X),X=void 0}),X}};bJ={watch:$J,FSWatcher:m}});
|
|
2
|
-
export{jq as tP,m as uP,$J as vP,bJ as wP,GJ as xP};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{$la as y,cma as b}from"./cli-0.1.15-mhbfhhf6.mjs";var P0=y(($w)=>{$w.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpAuthLocation||($w.HttpAuthLocation={}));$w.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpApiKeyAuthLocation||($w.HttpApiKeyAuthLocation={}));$w.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})($w.EndpointURLScheme||($w.EndpointURLScheme={}));$w.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})($w.AlgorithmId||($w.AlgorithmId={}));var rT=($)=>{let T=[];if($.sha256!==void 0)T.push({algorithmId:()=>$w.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)T.push({algorithmId:()=>$w.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(w){T.push(w)},checksumAlgorithms(){return T}}},lT=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{T[w.algorithmId()]=w.checksumConstructor()}),T},oT=($)=>{return rT($)},aT=($)=>{return lT($)};$w.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})($w.FieldPosition||($w.FieldPosition={}));var eT="__smithy_context";$w.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})($w.IniSectionType||($w.IniSectionType={}));$w.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})($w.RequestHandlerProtocol||($w.RequestHandlerProtocol={}));$w.SMITHY_CONTEXT_KEY=eT;$w.getDefaultClientConfiguration=oT;$w.resolveDefaultRuntimeConfig=aT});var D0=y((sw)=>{var m=P0(),Iw=h1(),g=($,T)=>{let w=[];if($)w.push($);if(T)for(let P of T)w.push(P);return w},c=($,T)=>{return`${$||"anonymous"}${T&&T.length>0?` (a.k.a. ${T.join(",")})`:""}`},I0=()=>{let $=[],T=[],w=!1,P=new Set,I=(X)=>X.sort((J,f)=>l1[f.step]-l1[J.step]||o1[f.priority||"normal"]-o1[J.priority||"normal"]),h=(X)=>{let J=!1,f=(G)=>{let Q=g(G.name,G.aliases);if(Q.includes(X)){J=!0;for(let Z of Q)P.delete(Z);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},U=(X)=>{let J=!1,f=(G)=>{if(G.middleware===X){J=!0;for(let Q of g(G.name,G.aliases))P.delete(Q);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},A=(X)=>{return $.forEach((J)=>{X.add(J.middleware,{...J})}),T.forEach((J)=>{X.addRelativeTo(J.middleware,{...J})}),X.identifyOnResolve?.(Y.identifyOnResolve()),X},_=(X)=>{let J=[];return X.before.forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J.push(X),X.after.reverse().forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J},M=(X=!1)=>{let J=[],f=[],G={};return $.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;J.push(R)}),T.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;f.push(R)}),f.forEach((Z)=>{if(Z.toMiddleware){let R=G[Z.toMiddleware];if(R===void 0){if(X)return;throw Error(`${Z.toMiddleware} is not found when adding ${c(Z.name,Z.aliases)} middleware ${Z.relation} ${Z.toMiddleware}`)}if(Z.relation==="after")R.after.push(Z);if(Z.relation==="before")R.before.push(Z)}}),I(J).map(_).reduce((Z,R)=>{return Z.push(...R),Z},[])},Y={add:(X,J={})=>{let{name:f,override:G,aliases:Q}=J,Z={step:"initialize",priority:"normal",middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=$.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=$[L];if(W.step!==Z.step||Z.priority!==W.priority)throw Error(`"${c(W.name,W.aliases)}" middleware with ${W.priority} priority in ${W.step} step cannot be overridden by "${c(f,Q)}" middleware with ${Z.priority} priority in ${Z.step} step.`);$.splice(L,1)}}for(let V of R)P.add(V)}$.push(Z)},addRelativeTo:(X,J)=>{let{name:f,override:G,aliases:Q}=J,Z={middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=T.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=T[L];if(W.toMiddleware!==Z.toMiddleware||W.relation!==Z.relation)throw Error(`"${c(W.name,W.aliases)}" middleware ${W.relation} "${W.toMiddleware}" middleware cannot be overridden by "${c(f,Q)}" middleware ${Z.relation} "${Z.toMiddleware}" middleware.`);T.splice(L,1)}}for(let V of R)P.add(V)}T.push(Z)},clone:()=>A(I0()),use:(X)=>{X.applyToStack(Y)},remove:(X)=>{if(typeof X==="string")return h(X);else return U(X)},removeByTag:(X)=>{let J=!1,f=(G)=>{let{tags:Q,name:Z,aliases:R}=G;if(Q&&Q.includes(X)){let V=g(Z,R);for(let L of V)P.delete(L);return J=!0,!1}return!0};return $=$.filter(f),T=T.filter(f),J},concat:(X)=>{let J=A(I0());return J.use(X),J.identifyOnResolve(w||J.identifyOnResolve()||(X.identifyOnResolve?.()??!1)),J},applyToStack:A,identify:()=>{return M(!0).map((X)=>{let J=X.step??X.relation+" "+X.toMiddleware;return c(X.name,X.aliases)+" - "+J})},identifyOnResolve(X){if(typeof X==="boolean")w=X;return w},resolve:(X,J)=>{for(let f of M().map((G)=>G.middleware).reverse())X=f(X,J);if(w)console.log(Y.identify());return X}};return Y},l1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o1={high:3,normal:2,low:1},hw=($)=>$[m.SMITHY_CONTEXT_KEY]||($[m.SMITHY_CONTEXT_KEY]={}),Uw=($)=>{if(typeof $==="function")return $;let T=Promise.resolve($);return()=>T},Aw=($)=>()=>{throw Error($)},_w=($)=>()=>Promise.reject($),W0=()=>{let $=new WeakSet;return(T,w)=>{if(typeof w==="object"&&w!==null){if($.has(w))return"[Circular]";$.add(w)}return w}},Mw=($)=>{return new Promise((T)=>setTimeout(T,$*1000))},$$={minDelay:2,maxDelay:120};sw.WaiterState=void 0;(function($){$.ABORTED="ABORTED",$.FAILURE="FAILURE",$.SUCCESS="SUCCESS",$.RETRY="RETRY",$.TIMEOUT="TIMEOUT"})(sw.WaiterState||(sw.WaiterState={}));var Xw=($)=>{if($.state===sw.WaiterState.ABORTED){let T=Error(`${JSON.stringify({...$,reason:"Request was aborted"},W0())}`);throw T.name="AbortError",T}else if($.state===sw.WaiterState.TIMEOUT){let T=Error(`${JSON.stringify({...$,reason:"Waiter has timed out"},W0())}`);throw T.name="TimeoutError",T}else if($.state!==sw.WaiterState.SUCCESS)throw Error(`${JSON.stringify($,W0())}`);return $},Jw=async({minDelay:$,maxDelay:T,maxWaitTime:w,abortController:P,client:I,abortSignal:h},U,A)=>{let _={},[M,Y]=[$*1000,T*1000],X=0,J=Date.now()+w*1000,f=Date.now()+60000,G=!1;while(!0){if(X>0){let R=Gw(M,Y,X,J);if(P?.signal?.aborted||h?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:sw.WaiterState.ABORTED,observedResponses:_};if(Date.now()+R>J)return{state:sw.WaiterState.TIMEOUT,observedResponses:_};await Mw(R/1000)}let{state:Q,reason:Z}=await A(I,U);if(Z){let R=fw(Z);_[R]|=0,_[R]+=1}if(Q!==sw.WaiterState.RETRY)return{state:Q,reason:Z,final:Z,observedResponses:_};if(X+=1,!G&&Date.now()>=f)Yw(_,I),G=!0}},Yw=($={},T)=>{let w=Object.keys($),P=0;for(let U of w){let A=$[U]|0;if(U.startsWith("403:"))P+=A}let I=T?.config?.logger,h=typeof I?.warn==="function"&&!I.constructor?.name?.includes?.("NoOpLogger")?I:console;if(P>=3||w[w.length-1]?.startsWith("403:"))h.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},fw=($)=>{let T=$?.$response?.statusCode??$?.$metadata?.httpStatusCode;if($?.$responseBodyText)return`${T?T+": ":""}Deserialization error for body: ${$.$responseBodyText}`;if(T){if($?.$response||$?.message)return`${T??"Unknown"}: ${$?.message}`;return`${T}: OK`}return String($?.message??JSON.stringify($,W0())??"Unknown")},Gw=($,T,w,P)=>{let I=Math.log(T/$)/Math.log(2)+1;if(w>I)return T;let h=$*2**(w-1),U=Math.min(h,T),A=Zw($,U);if(Date.now()+A>P){let _=P-Date.now();return Math.max(0,_-500)}return A},Zw=($,T)=>$+Math.random()*(T-$),Rw=($)=>{if($.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if($.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if($.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if($.maxWaitTime<=$.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${$.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`);else if($.maxDelay<$.minDelay)throw Error(`WaiterConfiguration.maxDelay [${$.maxDelay}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`)},a1=($)=>{let T,w=new Promise((P)=>{if(T=()=>P({state:sw.WaiterState.ABORTED}),typeof $.addEventListener==="function")$.addEventListener("abort",T);else $.onabort=T});return{clearListener(){if(typeof $.removeEventListener==="function")$.removeEventListener("abort",T)},aborted:w}},Qw=async($,T,w)=>{let P={...$$,...$};Rw(P);let I=[Jw(P,T,w)],h=[];if($.abortSignal){let{aborted:U,clearListener:A}=a1($.abortSignal);h.push(A),I.push(U)}if($.abortController?.signal){let{aborted:U,clearListener:A}=a1($.abortController.signal);h.push(A),I.push(U)}return Promise.race(I).then((U)=>{for(let A of h)A();return U})};class T${config;middlewareStack=I0();initConfig;handlers;constructor($){this.config=$;let{protocol:T,protocolSettings:w}=$;if(w){if(typeof T==="function")$.protocol=new T(w)}}send($,T,w){let P=typeof T!=="function"?T:void 0,I=typeof T==="function"?T:w,h=P===void 0&&this.config.cacheMiddleware===!0,U;if(h){if(!this.handlers)this.handlers=new WeakMap;let A=this.handlers;if(A.has($.constructor))U=A.get($.constructor);else U=$.resolveMiddleware(this.middlewareStack,this.config,P),A.set($.constructor,U)}else delete this.handlers,U=$.resolveMiddleware(this.middlewareStack,this.config,P);if(I)U($).then((A)=>I(null,A.output),(A)=>I(A)).catch(()=>{});else return U($).then((A)=>A.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var P1="***SensitiveInformation***";function H0($,T){if(T==null)return T;let w=Iw.NormalizedSchema.of($);if(w.getMergedTraits().sensitive)return P1;if(w.isListSchema()){if(!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isMapSchema()){if(!!w.getKeySchema().getMergedTraits().sensitive||!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isStructSchema()&&typeof T==="object"){let P=T,I={};for(let[h,U]of w.structIterator())if(P[h]!=null)I[h]=H0(U,P[h]);return I}return T}class U1{middlewareStack=I0();schema;static classBuilder(){return new w$}resolveMiddlewareWithContext($,T,w,{middlewareFn:P,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,smithyContext:_,additionalContext:M,CommandCtor:Y}){for(let Z of P.bind(this)(Y,$,T,w))this.middlewareStack.use(Z);let X=$.concat(this.middlewareStack),{logger:J}=T,f={logger:J,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,[m.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...M},{requestHandler:G}=T,Q=w??{};if(_.eventStream)Q={isEventStream:!0,...Q};return X.resolve((Z)=>G.handle(Z.request,Q),f)}}class w${_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,T,w={}){return this._smithyContext={service:$,operation:T,...w},this}c($={}){return this._additionalContext=$,this}n($,T){return this._clientName=$,this._commandName=T,this}f($=(w)=>w,T=(w)=>w){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=T,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}sc($){return this._operationSchema=$,this._smithyContext.operationSchema=$,this}build(){let $=this,T;return T=class extends U1{input;static getEndpointParameterInstructions(){return $._ep}constructor(...[w]){super();this.input=w??{},$._init(this),this.schema=$._operationSchema}resolveMiddleware(w,P,I){let h=$._operationSchema,U=h?.[4]??h?.input,A=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(w,P,I,{CommandCtor:T,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog??(h?H0.bind(null,U):(_)=>_),outputFilterSensitiveLog:$._outputFilterSensitiveLog??(h?H0.bind(null,A):(_)=>_),smithyContext:$._smithyContext,additionalContext:$._additionalContext})}serialize=$._serializer;deserialize=$._deserializer}}}var Vw="***SensitiveInformation***",Ow=($,T,w)=>{for(let[h,U]of Object.entries($)){let A=async function(M,Y,X){let J=new U(M);if(typeof Y==="function")this.send(J,Y);else if(typeof X==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(J,Y||{},X)}else return this.send(J,Y)},_=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");T.prototype[_]=A}let{paginators:P={},waiters:I={}}=w??{};for(let[h,U]of Object.entries(P))if(T.prototype[h]===void 0)T.prototype[h]=function(A={},_,...M){return U({..._,client:this},A,...M)};for(let[h,U]of Object.entries(I))if(T.prototype[h]===void 0)T.prototype[h]=async function(A={},_,...M){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return U({...Y,client:this},A,...M)}};class t extends Error{$fault;$response;$retryable;$metadata;constructor($){super($.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}static isInstance($){if(!$)return!1;let T=$;return t.prototype.isPrototypeOf(T)||Boolean(T.$fault)&&Boolean(T.$metadata)&&(T.$fault==="client"||T.$fault==="server")}static[Symbol.hasInstance]($){if(!$)return!1;let T=$;if(this===t)return t.isInstance($);if(t.isInstance($)){if(T.name&&this.name)return this.prototype.isPrototypeOf($)||T.name===this.name;return this.prototype.isPrototypeOf($)}return!1}}var P$=($,T={})=>{Object.entries(T).filter(([,P])=>P!==void 0).forEach(([P,I])=>{if($[P]==null||$[P]==="")$[P]=I});let w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},I$=({output:$,parsedBody:T,exceptionCtor:w,errorCode:P})=>{let I=Lw($),h=I.httpStatusCode?I.httpStatusCode+"":void 0,U=new w({name:T?.code||T?.Code||P||h||"UnknownError",$fault:"client",$metadata:I});throw P$(U,T)},Nw=($)=>{return({output:T,parsedBody:w,errorCode:P})=>{I$({output:T,parsedBody:w,exceptionCtor:$,errorCode:P})}},Lw=($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),Ww=($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},e1=!1,Hw=($)=>{if($&&!e1&&parseInt($.substring(1,$.indexOf(".")))<16)e1=!0},h$=Object.values(m.AlgorithmId),U$=($)=>{let T=[];for(let w in m.AlgorithmId){let P=m.AlgorithmId[w];if($[P]===void 0)continue;T.push({algorithmId:()=>P,checksumConstructor:()=>$[P]})}for(let[w,P]of Object.entries($.checksumAlgorithms??{}))T.push({algorithmId:()=>w,checksumConstructor:()=>P});return{addChecksumAlgorithm(w){$.checksumAlgorithms=$.checksumAlgorithms??{};let P=w.algorithmId(),I=w.checksumConstructor();if(h$.includes(P))$.checksumAlgorithms[P.toUpperCase()]=I;else $.checksumAlgorithms[P]=I;T.push(w)},checksumAlgorithms(){return T}}},A$=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{let P=w.algorithmId();if(h$.includes(P))T[P]=w.checksumConstructor()}),T},_$=($)=>{return{setRetryStrategy(T){$.retryStrategy=T},retryStrategy(){return $.retryStrategy}}},M$=($)=>{let T={};return T.retryStrategy=$.retryStrategy(),T},X$=($)=>{return Object.assign(U$($),_$($))},Dw=X$,Ew=($)=>{return Object.assign(A$($),M$($))},Kw=($)=>Array.isArray($)?$:[$],J$=($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=J$($[w]);return $},Bw=($)=>{return $!=null};class Y${trace(){}debug(){}info(){}warn(){}error(){}}function f$($,T,w){let P,I,h;if(typeof T>"u"&&typeof w>"u")P={},h=$;else if(P=$,typeof T==="function")return I=T,h=w,Fw(P,I,h);else h=T;for(let U of Object.keys(h)){if(!Array.isArray(h[U])){P[U]=h[U];continue}G$(P,null,h,U)}return P}var qw=($)=>{let T={};for(let[w,P]of Object.entries($||{}))T[w]=[,P];return T},xw=($,T)=>{let w={};for(let P in T)G$(w,$,T,P);return w},Fw=($,T,w)=>{return f$($,Object.entries(w).reduce((P,[I,h])=>{if(Array.isArray(h))P[I]=h;else if(typeof h==="function")P[I]=[T,h()];else P[I]=[T,h];return P},{}))},G$=($,T,w,P)=>{if(T!==null){let U=w[P];if(typeof U==="function")U=[,U];let[A=zw,_=Sw,M=P]=U;if(typeof A==="function"&&A(T[M])||typeof A!=="function"&&!!A)$[P]=_(T[M]);return}let[I,h]=w[P];if(typeof h==="function"){let U,A=I===void 0&&(U=h())!=null,_=typeof I==="function"&&!!I(void 0)||typeof I!=="function"&&!!I;if(A)$[P]=U;else if(_)$[P]=h()}else{let U=I===void 0&&h!=null,A=typeof I==="function"&&!!I(h)||typeof I!=="function"&&!!I;if(U||A)$[P]=h}},zw=($)=>$!=null,Sw=($)=>$,jw=($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},Cw=($)=>$.toISOString().replace(".000Z","Z"),I1=($)=>{if($==null)return{};if(Array.isArray($))return $.filter((T)=>T!=null).map(I1);if(typeof $==="object"){let T={};for(let w of Object.keys($)){if($[w]==null)continue;T[w]=I1($[w])}return T}return $};sw.AlgorithmId=m.AlgorithmId;sw.Client=T$;sw.Command=U1;sw.NoOpLogger=Y$;sw.SENSITIVE_STRING=Vw;sw.ServiceException=t;sw._json=I1;sw.checkExceptions=Xw;sw.constructStack=I0;sw.convertMap=qw;sw.createAggregatedClient=Ow;sw.createWaiter=Qw;sw.decorateServiceException=P$;sw.emitWarningIfUnsupportedVersion=Hw;sw.getArrayIfSingleItem=Kw;sw.getChecksumConfiguration=U$;sw.getDefaultClientConfiguration=Dw;sw.getDefaultExtensionConfiguration=X$;sw.getRetryConfiguration=_$;sw.getSmithyContext=hw;sw.getValueFromTextNode=J$;sw.invalidFunction=Aw;sw.invalidProvider=_w;sw.isSerializableHeaderValue=Bw;sw.loadConfigsForDefaultMode=Ww;sw.map=f$;sw.normalizeProvider=Uw;sw.resolveChecksumRuntimeConfig=A$;sw.resolveDefaultRuntimeConfig=Ew;sw.resolveRetryRuntimeConfig=M$;sw.schemaLogFilter=H0;sw.serializeDateTime=Cw;sw.serializeFloat=jw;sw.take=xw;sw.throwDefaultError=I$;sw.waiterServiceDefaults=$$;sw.withBaseException=Nw});var C$=y((ZI)=>{var OP=b("node:os"),i=b("node:path"),NP=b("node:crypto"),N$=b("node:fs/promises"),E0=P0(),K0=D0(),LP=F0();class u extends Error{name="ProviderError";tryNextLink;constructor($,T=!0){let w,P=!0;if(typeof T==="boolean")w=void 0,P=T;else if(T!=null&&typeof T==="object")w=T.logger,P=T.tryNextLink??!0;super($);this.tryNextLink=P,Object.setPrototypeOf(this,u.prototype),w?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${$}`)}static from($,T=!0){return Object.assign(new this($.message,T),$)}}class h0 extends u{name="CredentialsProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,h0.prototype)}}class J1 extends u{name="TokenProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,J1.prototype)}}var L$=(...$)=>async()=>{if($.length===0)throw new u("No providers in chain");let T;for(let w of $)try{return await w()}catch(P){if(T=P,P?.tryNextLink)continue;throw P}throw T},W$=($)=>()=>Promise.resolve($),Y1=($,T,w)=>{let P,I,h,U=!1,A=async()=>{if(!I)I=$();try{P=await I,h=!0,U=!1}finally{I=void 0}return P};if(T===void 0)return async(_)=>{if(!h||_?.forceRefresh)P=await A();return P};return async(_)=>{if(!h||_?.forceRefresh)P=await A();if(U)return P;if(w&&!w(P))return U=!0,P;if(T(P))return await A(),P;return P}},F=($,T,w)=>{if(!(T in $))return;if($[T]==="true")return!0;if($[T]==="false")return!1;throw Error(`Cannot load ${w} "${T}". Expected "true" or "false", got ${$[T]}.`)},WP=($,T,w)=>{if(!(T in $))return;let P=parseInt($[T],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${w} '${T}'. Expected number, got '${$[T]}'.`);return P};ZI.SelectorType=void 0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(ZI.SelectorType||(ZI.SelectorType={}));var A1={},HP=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U0=()=>{let{HOME:$,USERPROFILE:T,HOMEPATH:w,HOMEDRIVE:P=`C:${i.sep}`}=process.env;if($)return $;if(T)return T;if(w)return`${P}${w}`;let I=HP();if(!A1[I])A1[I]=OP.homedir();return A1[I]},H$="AWS_PROFILE",D$="default",E$=($)=>$.profile||process.env[H$]||D$,K$=($)=>{let w=NP.createHash("sha1").update($).digest("hex");return i.join(U0(),".aws","sso","cache",`${w}.json`)},B0={},DP=async($)=>{if(B0[$])return B0[$];let T=K$($),w=await N$.readFile(T,"utf8");return JSON.parse(w)},d=".",EP=($)=>Object.entries($).filter(([T])=>{let w=T.indexOf(d);if(w===-1)return!1;return Object.values(E0.IniSectionType).includes(T.substring(0,w))}).reduce((T,[w,P])=>{let I=w.indexOf(d),h=w.substring(0,I)===E0.IniSectionType.PROFILE?w.substring(I+1):w;return T[h]=P,T},{...$.default&&{default:$.default}}),KP="AWS_CONFIG_FILE",B$=()=>process.env[KP]||i.join(U0(),".aws","config"),BP="AWS_SHARED_CREDENTIALS_FILE",qP=()=>process.env[BP]||i.join(U0(),".aws","credentials"),xP=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,FP=["__proto__","profile __proto__"],M1=($)=>{let T={},w,P;for(let I of $.split(/\r?\n/)){let h=I.split(/(^|\s)[;#]/)[0].trim();if(h[0]==="["&&h[h.length-1]==="]"){w=void 0,P=void 0;let A=h.substring(1,h.length-1),_=xP.exec(A);if(_){let[,M,,Y]=_;if(Object.values(E0.IniSectionType).includes(M))w=[M,Y].join(d)}else w=A;if(FP.includes(A))throw Error(`Found invalid profile name "${A}"`)}else if(w){let A=h.indexOf("=");if(![0,-1].includes(A)){let[_,M]=[h.substring(0,A).trim(),h.substring(A+1).trim()];if(M==="")P=_;else{if(P&&I.trimStart()===I)P=void 0;T[w]=T[w]||{};let Y=P?[P,_].join(d):_;T[w][Y]=M}}}}return T},_1={},q0={},x0=($,T)=>{if(q0[$]!==void 0)return q0[$];if(!_1[$]||T?.ignoreCache)_1[$]=N$.readFile($,"utf8");return _1[$]},Z$=()=>({}),f1=async($={})=>{let{filepath:T=qP(),configFilepath:w=B$()}=$,P=U0(),I="~/",h=T;if(T.startsWith("~/"))h=i.join(P,T.slice(2));let U=w;if(w.startsWith("~/"))U=i.join(P,w.slice(2));let A=await Promise.all([x0(U,{ignoreCache:$.ignoreCache}).then(M1).then(EP).catch(Z$),x0(h,{ignoreCache:$.ignoreCache}).then(M1).catch(Z$)]);return{configFile:A[0],credentialsFile:A[1]}},zP=($)=>Object.entries($).filter(([T])=>T.startsWith(E0.IniSectionType.SSO_SESSION+d)).reduce((T,[w,P])=>({...T,[w.substring(w.indexOf(d)+1)]:P}),{}),SP=()=>({}),jP=async($={})=>x0($.configFilepath??B$()).then(M1).then(zP).catch(SP),CP=(...$)=>{let T={};for(let w of $)for(let[P,I]of Object.entries(w))if(T[P]!==void 0)Object.assign(T[P],I);else T[P]=I;return T},sP=async($)=>{let T=await f1($);return CP(T.configFile,T.credentialsFile)},cP={getFileRecord(){return q0},interceptFile($,T){q0[$]=Promise.resolve(T)},getTokenRecord(){return B0},interceptToken($,T){B0[$]=T}};function q$($){try{let T=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return T.delete("CONFIG"),T.delete("CONFIG_PREFIX_SEPARATOR"),T.delete("ENV"),[...T].join(", ")}catch(T){return $}}var bP=($,T)=>async()=>{try{let w=$(process.env,T);if(w===void 0)throw Error();return w}catch(w){throw new h0(w.message||`Not found in ENV: ${q$($.toString())}`,{logger:T?.logger})}},kP=($,{preferredFile:T="config",...w}={})=>async()=>{let P=E$(w),{configFile:I,credentialsFile:h}=await f1(w),U=h[P]||{},A=I[P]||{},_=T==="config"?{...U,...A}:{...A,...U};try{let Y=$(_,T==="config"?I:h);if(Y===void 0)throw Error();return Y}catch(M){throw new h0(M.message||`Not found in config files w/ profile [${P}]: ${q$($.toString())}`,{logger:w.logger})}},pP=($)=>typeof $==="function",x$=($)=>pP($)?async()=>await $():W$($),X1=({environmentVariableSelector:$,configFileSelector:T,default:w},P={})=>{let{signingName:I,logger:h}=P;return Y1(L$(bP($,{signingName:I,logger:h}),kP(T,P),x$(w)))},G1="AWS_USE_DUALSTACK_ENDPOINT",Z1="use_dualstack_endpoint",yP=!1,gP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:!1},mP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:void 0},R1="AWS_USE_FIPS_ENDPOINT",Q1="use_fips_endpoint",dP=!1,vP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:!1},nP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:void 0},tP=($)=>{let{tls:T,endpoint:w,urlParser:P,useDualstackEndpoint:I}=$;return Object.assign($,{tls:T??!0,endpoint:K0.normalizeProvider(typeof w==="string"?P(w):w),isCustomEndpoint:!0,useDualstackEndpoint:K0.normalizeProvider(I??!1)})},iP=async($)=>{let{tls:T=!0}=$,w=await $.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw Error("Invalid region in client config");let I=await $.useDualstackEndpoint(),h=await $.useFipsEndpoint(),{hostname:U}=await $.regionInfoProvider(w,{useDualstackEndpoint:I,useFipsEndpoint:h})??{};if(!U)throw Error("Cannot resolve hostname from client config");return $.urlParser(`${T?"https:":"http:"}//${U}`)},uP=($)=>{let T=K0.normalizeProvider($.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:P,urlParser:I,tls:h}=$;return Object.assign($,{tls:h??!0,endpoint:w?K0.normalizeProvider(typeof w==="string"?I(w):w):()=>iP({...$,useDualstackEndpoint:T,useFipsEndpoint:P}),isCustomEndpoint:!!w,useDualstackEndpoint:T})},F$="AWS_REGION",z$="region",S$={environmentVariableSelector:($)=>$[F$],configFileSelector:($)=>$[z$],default:()=>{throw Error("Region is missing")}},rP={preferredFile:"credentials"},R$=new Set,lP=($,T=LP.isValidHostLabel)=>{if(!R$.has($)&&!T($))if($==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${$}" is not a valid hostname component.`);else R$.add($)},j$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips")),oP=($)=>j$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$,aP=($)=>{let{region:T,useFipsEndpoint:w}=$;if(!T)throw Error("Region is missing");return Object.assign($,{region:async()=>{let P=typeof T==="function"?await T():T,I=oP(P);return lP(I),I},useFipsEndpoint:async()=>{let P=typeof T==="string"?T:await T();if(j$(P))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},Q$=($=[],{useFipsEndpoint:T,useDualstackEndpoint:w})=>$.find(({tags:P})=>T===P.includes("fips")&&w===P.includes("dualstack"))?.hostname,eP=($,{regionHostname:T,partitionHostname:w})=>T?T:w?w.replace("{region}",$):void 0,$I=($,{partitionHash:T})=>Object.keys(T||{}).find((w)=>T[w].regions.includes($))??"aws",TI=($,{signingRegion:T,regionRegex:w,useFipsEndpoint:P})=>{if(T)return T;else if(P){let I=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=$.match(I);if(h)return h[0].slice(1,-1)}},wI=($,{useFipsEndpoint:T=!1,useDualstackEndpoint:w=!1,signingService:P,regionHash:I,partitionHash:h})=>{let U=$I($,{partitionHash:h}),A=$ in I?$:h[U]?.endpoint??$,_={useFipsEndpoint:T,useDualstackEndpoint:w},M=Q$(I[A]?.variants,_),Y=Q$(h[U]?.variants,_),X=eP(A,{regionHostname:M,partitionHostname:Y});if(X===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:A,useFipsEndpoint:T,useDualstackEndpoint:w}}`);let J=TI(X,{signingRegion:I[A]?.signingRegion,regionRegex:h[U].regionRegex,useFipsEndpoint:T});return{partition:U,signingService:P,hostname:X,...J&&{signingRegion:J},...I[A]?.signingService&&{signingService:I[A].signingService}}},PI="AWS_EXECUTION_ENV",V$="AWS_REGION",O$="AWS_DEFAULT_REGION",II="AWS_EC2_METADATA_DISABLED",hI=["in-region","cross-region","mobile","standard","legacy"],UI="/latest/meta-data/placement/region",AI="AWS_DEFAULTS_MODE",_I="defaults_mode",MI={environmentVariableSelector:($)=>{return $[AI]},configFileSelector:($)=>{return $[_I]},default:"legacy"},XI=({region:$=X1(S$),defaultsMode:T=X1(MI)}={})=>Y1(async()=>{let w=typeof T==="function"?await T():T;switch(w?.toLowerCase()){case"auto":return JI($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${hI.join(", ")}, got ${w}`)}}),JI=async($)=>{if($){let T=typeof $==="function"?await $():$,w=await YI();if(!w)return"standard";if(T===w)return"in-region";else return"cross-region"}return"standard"},YI=async()=>{if(process.env[PI]&&(process.env[V$]||process.env[O$]))return process.env[V$]??process.env[O$];if(!process.env[II])try{let $=await fI();return(await GI({hostname:$.hostname,path:UI})).toString()}catch($){}},fI=async()=>{let $=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if($){let w=new URL($);return{hostname:w.hostname,path:w.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},GI=async({hostname:$,path:T})=>{let{request:w}=await import("node:http");return new Promise((P,I)=>{let h=w({method:"GET",hostname:$.replace(/^\[(.+)]$/,"$1"),path:T,timeout:1000,signal:AbortSignal.timeout(1000)});h.on("error",(U)=>{I(U),h.destroy()}),h.on("timeout",()=>{I(Error("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(U)=>{let{statusCode:A=400}=U;if(A<200||300<=A){I(Object.assign(Error("Error response received from instance metadata service"),{statusCode:A})),h.destroy();return}let _=[];U.on("data",(M)=>_.push(M)),U.on("end",()=>{P(Buffer.concat(_)),h.destroy()})}),h.end()})};ZI.CONFIG_PREFIX_SEPARATOR=d;ZI.CONFIG_USE_DUALSTACK_ENDPOINT=Z1;ZI.CONFIG_USE_FIPS_ENDPOINT=Q1;ZI.CredentialsProviderError=h0;ZI.DEFAULT_PROFILE=D$;ZI.DEFAULT_USE_DUALSTACK_ENDPOINT=yP;ZI.DEFAULT_USE_FIPS_ENDPOINT=dP;ZI.ENV_PROFILE=H$;ZI.ENV_USE_DUALSTACK_ENDPOINT=G1;ZI.ENV_USE_FIPS_ENDPOINT=R1;ZI.NODE_REGION_CONFIG_FILE_OPTIONS=rP;ZI.NODE_REGION_CONFIG_OPTIONS=S$;ZI.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=gP;ZI.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=vP;ZI.ProviderError=u;ZI.REGION_ENV_NAME=F$;ZI.REGION_INI_NAME=z$;ZI.TokenProviderError=J1;ZI.booleanSelector=F;ZI.chain=L$;ZI.externalDataInterceptor=cP;ZI.fromStatic=x$;ZI.fromValue=W$;ZI.getHomeDir=U0;ZI.getProfileName=E$;ZI.getRegionInfo=wI;ZI.getSSOTokenFilepath=K$;ZI.getSSOTokenFromFile=DP;ZI.loadConfig=X1;ZI.loadSharedConfigFiles=f1;ZI.loadSsoSessionData=jP;ZI.memoize=Y1;ZI.nodeDualstackConfigSelectors=mP;ZI.nodeFipsConfigSelectors=nP;ZI.numberSelector=WP;ZI.parseKnownFiles=sP;ZI.readFile=x0;ZI.resolveCustomEndpointsConfig=tP;ZI.resolveDefaultsModeConfig=XI;ZI.resolveEndpointsConfig=uP;ZI.resolveRegionConfig=aP});var F0=y((yh)=>{var N1=C$(),s$=C0(),z0=D0(),L1=P0(),c$="AWS_ENDPOINT_URL",b$="endpoint_url",Ph=($)=>({environmentVariableSelector:(T)=>{let w=$.split(" ").map((h)=>h.toUpperCase()),P=T[[c$,...w].join("_")];if(P)return P;let I=T[c$];if(I)return I;return},configFileSelector:(T,w)=>{if(w&&T.services){let I=w[["services",T.services].join(N1.CONFIG_PREFIX_SEPARATOR)];if(I){let h=$.split(" ").map((A)=>A.toLowerCase()),U=I[[h.join("_"),b$].join(N1.CONFIG_PREFIX_SEPARATOR)];if(U)return U}}let P=T[b$];if(P)return P;return},default:void 0}),S0=async($)=>N1.loadConfig(Ph($??""))(),Ih=async($)=>{let T=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=T.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Mh(T)){if($.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!_h(T)||T.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||T.toLowerCase()!==T||T.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},hh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Uh=/(\d+\.){3}\d+/,Ah=/\.\./,_h=($)=>hh.test($)&&!Uh.test($)&&!Ah.test($),Mh=($)=>{let[T,w,P,,,I]=$.split(":"),h=T==="arn"&&$.split(":").length>=6,U=Boolean(h&&w&&P&&I);if(h&&!U)throw Error(`Invalid ARN: ${$} was an invalid ARN.`);return U},Xh=($,T,w,P=!1)=>{let I=async()=>{let h;if(P)h=w.clientContextParams?.[$]??w[$]??w[T];else h=w[$]??w[T];if(typeof h==="function")return h();return h};if($==="credentialScope"||T==="CredentialScope")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.credentialScope??h?.CredentialScope};if($==="accountId"||T==="AccountId")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.accountId??h?.AccountId};if($==="endpoint"||T==="endpoint")return async()=>{if(w.isCustomEndpoint===!1)return;let h=await I();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:U,hostname:A,port:_,path:M}=h;return`${U}//${A}${_?":"+_:""}${M}`}}return h};return I},j0=($)=>{if(typeof $==="object"){if("url"in $){let T=s$.parseUrl($.url);if($.headers){T.headers={};for(let w in $.headers)T.headers[w.toLowerCase()]=$.headers[w].join(", ")}return T}return $}return s$.parseUrl($)};function k$($){return async(T,w,P,I)=>{if(!P.isCustomEndpoint){let A;if(P.serviceConfiguredEndpoint)A=await P.serviceConfiguredEndpoint();else A=await $(P.serviceId);if(A)P.endpoint=()=>Promise.resolve(j0(A)),P.isCustomEndpoint=!0}let h=await p$(T,w,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let U=P.endpointProvider(h,I);if(P.isCustomEndpoint&&P.endpoint){let A=await P.endpoint();if(A?.headers){U.headers??={};for(let[_,M]of Object.entries(A.headers))U.headers[_]=Array.isArray(M)?M:[M]}}return U}}var p$=async($,T,w)=>{let P={},I=T?.getEndpointParameterInstructions?.()||{};for(let[h,U]of Object.entries(I))switch(U.type){case"staticContextParams":P[h]=U.value;break;case"contextParams":P[h]=$[U.name];break;case"clientContextParams":case"builtInParams":P[h]=await Xh(U.name,h,w,U.type!=="builtInParams")();break;case"operationContextParams":P[h]=U.get($);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(U))}if(Object.keys(I).length===0)Object.assign(P,w);if(String(w.serviceId).toLowerCase()==="s3")await Ih(P);return P};function Jh($,T,w){if(!$.__smithy_context)$.__smithy_context={features:{}};else if(!$.__smithy_context.features)$.__smithy_context.features={};$.__smithy_context.features[T]=w}function y$($){let T=k$($);return({config:w,instructions:P})=>{return(I,h)=>async(U)=>{if(w.isCustomEndpoint)Jh(h,"ENDPOINT_OVERRIDE","N");let A=await T(U.input,{getEndpointParameterInstructions(){return P}},{...w},h);h.endpointV2=A,h.authSchemes=A.properties?.authSchemes;let _=h.authSchemes?.[0];if(_){h.signing_region=_.signingRegion,h.signing_service=_.signingName;let Y=z0.getSmithyContext(h)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return I({...U})}}}var Yh={name:"serializerMiddleware"},g$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yh.name};function fh($){let T=y$($);return(w,P)=>({applyToStack:(I)=>{I.addRelativeTo(T({config:w,instructions:P}),g$)}})}function Gh($){return(T)=>{let w=T.tls??!0,{endpoint:P,useDualstackEndpoint:I,useFipsEndpoint:h}=T,U=P!=null?async()=>j0(await z0.normalizeProvider(P)()):void 0,_=Object.assign(T,{endpoint:U,tls:w,isCustomEndpoint:!!P,useDualstackEndpoint:z0.normalizeProvider(I??!1),useFipsEndpoint:z0.normalizeProvider(h??!1)}),M=void 0;return _.serviceConfiguredEndpoint=async()=>{if(T.serviceId&&!M)M=$(T.serviceId);return M},_}}class W1{nodes;root;conditions;results;constructor($,T,w,P){this.nodes=$,this.root=T,this.conditions=w,this.results=P}static from($,T,w,P){return new W1($,T,w,P)}}class m${capacity;data=new Map;parameters=[];constructor({size:$,params:T}){if(this.capacity=$??50,T)this.parameters=T}get($,T){let w=this.hash($);if(w===!1)return T();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let P=this.data.keys(),I=0;while(!0){let{value:h,done:U}=P.next();if(this.data.delete(h),U||++I>10)break}}this.data.set(w,T())}return this.data.get(w)}size(){return this.data.size}hash($){let T="",{parameters:w}=this;if(w.length===0)return!1;for(let P of w){let I=String($[P]??"");if(I.includes("|;"))return!1;T+=I+"|;"}return T}}class N extends Error{constructor($){super($);this.name="EndpointError"}}var A0="endpoints";function k($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`$${k($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(k).join(", ")})`;return JSON.stringify($,null,2)}var d$={},Zh=($,T)=>$===T;function Rh(...$){for(let T of $)if(T!=null)return T;return}var Qh=($)=>{let T=$.split("."),w=[];for(let P of T){let I=P.indexOf("[");if(I!==-1){if(P.indexOf("]")!==P.length-1)throw new N(`Path: '${$}' does not end with ']'`);let h=P.slice(I+1,-1);if(Number.isNaN(parseInt(h)))throw new N(`Invalid array index: '${h}' in path: '${$}'`);if(I!==0)w.push(P.slice(0,I));w.push(h)}else w.push(P)}return w},v$=($,T)=>Qh(T).reduce((w,P)=>{if(typeof w!=="object")throw new N(`Index '${P}' in '${T}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w)){let I=parseInt(P);return w[I<0?w.length+I:I]}return w[P]},$),Vh=($)=>$!=null,Oh=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),H1=($,T=!1)=>{if(!T)return Oh.test($);let w=$.split(".");for(let P of w)if(!H1(P))return!1;return!0};function Nh($,T,w){return $?T:w}var Lh=($)=>!$,Wh=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),n$=($)=>Wh.test($)||$.startsWith("[")&&$.endsWith("]"),V1={[L1.EndpointURLScheme.HTTP]:80,[L1.EndpointURLScheme.HTTPS]:443},Hh=($)=>{let T=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:J,port:f,protocol:G="",path:Q="",query:Z={}}=$,R=new URL(`${G}//${J}${f?`:${f}`:""}${Q}`);return R.search=Object.entries(Z).map(([V,L])=>`${V}=${L}`).join("&"),R}return new URL($)}catch(J){return null}})();if(!T)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let w=T.href,{host:P,hostname:I,pathname:h,protocol:U,search:A}=T;if(A)return null;let _=U.slice(0,-1);if(!Object.values(L1.EndpointURLScheme).includes(_))return null;let M=n$(I),Y=w.includes(`${P}:${V1[_]}`)||typeof $==="string"&&$.includes(`${P}:${V1[_]}`),X=`${P}${Y?`:${V1[_]}`:""}`;return{scheme:_,authority:X,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:M}};function Dh($,T,w){if(w===1)return[$];if($==="")return[""];let P=$.split(T);if(w===0)return P;return P.slice(0,w-1).concat(P.slice(1).join(T))}var Eh=($,T)=>$===T,Kh=($,T,w,P)=>{if($==null||T>=w||$.length<w||/[^\u0000-\u007f]/.test($))return null;if(!P)return $.substring(T,w);return $.substring($.length-w,$.length-T)},Bh=($)=>encodeURIComponent($).replace(/[!*'()]/g,(T)=>`%${T.charCodeAt(0).toString(16).toUpperCase()}`),qh={booleanEquals:Zh,coalesce:Rh,getAttr:v$,isSet:Vh,isValidHostLabel:H1,ite:Nh,not:Lh,parseURL:Hh,split:Dh,stringEquals:Eh,substring:Kh,uriEncode:Bh},t$=($,T)=>{let w=[],{referenceRecord:P,endpointParams:I}=T,h=0;while(h<$.length){let U=$.indexOf("{",h);if(U===-1){w.push($.slice(h));break}w.push($.slice(h,U));let A=$.indexOf("}",U);if(A===-1){w.push($.slice(U));break}if($[U+1]==="{"&&$[A+1]==="}")w.push($.slice(U+1,A)),h=A+2;let _=$.substring(U+1,A);if(_.includes("#")){let[M,Y]=_.split("#");w.push(v$(P[M]??I[M],Y))}else w.push(P[_]??I[_]);h=A+1}return w.join("")},xh=({ref:$},T)=>{return T.referenceRecord[$]??T.endpointParams[$]},_0=($,T,w)=>{if(typeof $==="string")return t$($,w);else if($.fn)return u$.callFunction($,w);else if($.ref)return xh($,w);throw new N(`'${T}': ${String($)} is not a string, function or reference.`)},i$=({fn:$,argv:T},w)=>{let P=Array(T.length);for(let U=0;U<P.length;++U){let A=T[U];if(typeof A==="boolean"||typeof A==="number")P[U]=A;else P[U]=u$.evaluateExpression(A,"arg",w)}let I=$.indexOf(".");if(I!==-1){let A=d$[$.slice(0,I)]?.[$.slice(I+1)];if(typeof A==="function")return A(...P)}let h=qh[$];if(typeof h==="function")return h(...P);throw Error(`function ${$} not loaded in endpointFunctions.`)},u$={evaluateExpression:_0,callFunction:i$},r$=($,T)=>{let{assign:w}=$;if(w&&w in T.referenceRecord)throw new N(`'${w}' is already defined in Reference Record.`);let P=i$($,T);T.logger?.debug?.(`${A0} evaluateCondition: ${k($)} = ${k(P)}`);let I=P===""?!0:!!P;if(w!=null)return{result:I,toAssign:{name:w,value:P}};return{result:I}},l$=($,T)=>Object.entries($??{}).reduce((w,[P,I])=>{return w[P]=I.map((h)=>{let U=_0(h,"Header value entry",T);if(typeof U!=="string")throw new N(`Header '${P}' value '${U}' is not a string`);return U}),w},{}),D1=($,T)=>Object.entries($).reduce((w,[P,I])=>{return w[P]=a$.getEndpointProperty(I,T),w},{}),o$=($,T)=>{if(Array.isArray($))return $.map((w)=>o$(w,T));switch(typeof $){case"string":return t$($,T);case"object":if($===null)throw new N(`Unexpected endpoint property: ${$}`);return a$.getEndpointProperties($,T);case"boolean":return $;default:throw new N(`Unexpected endpoint property type: ${typeof $}`)}},a$={getEndpointProperty:o$,getEndpointProperties:D1},e$=($,T)=>{let w=_0($,"Endpoint URL",T);if(typeof w==="string")try{return new URL(w)}catch(P){throw console.error(`Failed to construct URL with ${w}`,P),P}throw new N(`Endpoint URL must be a string, got ${typeof w}`)},O1=1e8,Fh=($,T)=>{let{nodes:w,root:P,results:I,conditions:h}=$,U=P,A={},_={referenceRecord:A,endpointParams:T.endpointParams,logger:T.logger};while(U!==1&&U!==-1&&U<O1){let M=3*(Math.abs(U)-1),[Y,X,J]=[w[M],w[M+1],w[M+2]],[f,G,Q]=h[Y],Z=r$({fn:f,assign:Q,argv:G},_);if(Z.toAssign){let{name:R,value:V}=Z.toAssign;A[R]=V}U=U>=0===Z.result?X:J}if(U>=O1){let M=I[U-O1];if(M[0]===-1){let[,f]=M;throw new N(_0(f,"Error",_))}let[Y,X,J]=M;return{url:e$(Y,_),properties:D1(X,_),headers:l$(J??{},_)}}throw new N("No matching endpoint.")},E1=($=[],T)=>{let w={},P={...T,referenceRecord:{...T.referenceRecord}},I=!1;for(let h of $){let{result:U,toAssign:A}=r$(h,P);if(!U)return{result:U};if(A)I=!0,w[A.name]=A.value,P.referenceRecord[A.name]=A.value,T.logger?.debug?.(`${A0} assign: ${A.name} := ${k(A.value)}`)}if(I)return{result:!0,referenceRecord:w};return{result:!0}},zh=($,T)=>{let{conditions:w,endpoint:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T,{url:A,properties:_,headers:M}=P;T.logger?.debug?.(`${A0} Resolving endpoint from template: ${k(P)}`);let Y={url:e$(A,U)};if(M!=null)Y.headers=l$(M,U);if(_!=null)Y.properties=D1(_,U);return Y},Sh=($,T)=>{let{conditions:w,error:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;throw new N(_0(P,"Error",U))},$T=($,T)=>{for(let w of $)if(w.type==="endpoint"){let P=zh(w,T);if(P)return P}else if(w.type==="error")Sh(w,T);else if(w.type==="tree"){let P=TT.evaluateTreeRule(w,T);if(P)return P}else throw new N(`Unknown endpoint rule: ${w}`);throw new N("Rules evaluation failed")},jh=($,T)=>{let{conditions:w,rules:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;return TT.evaluateRules(P,U)},TT={evaluateRules:$T,evaluateTreeRule:jh},Ch=($,T)=>{let{endpointParams:w,logger:P}=T,{parameters:I,rules:h}=$;T.logger?.debug?.(`${A0} Initial EndpointParams: ${k(w)}`);for(let A in I){let _=I[A],M=w[A];if(M==null&&_.default!=null){w[A]=_.default;continue}if(_.required&&M==null)throw new N(`Missing required parameter: '${A}'`)}let U=$T(h,{endpointParams:w,logger:P,referenceRecord:{}});return T.logger?.debug?.(`${A0} Resolved endpoint: ${k(U)}`),U},sh=($)=>{let{endpoint:T}=$;if(T===void 0)$.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return $},ch=k$(S0),bh=Gh(S0),kh=y$(S0),ph=fh(S0);yh.BinaryDecisionDiagram=W1;yh.EndpointCache=m$;yh.EndpointError=N;yh.customEndpointFunctions=d$;yh.decideEndpoint=Fh;yh.endpointMiddleware=kh;yh.endpointMiddlewareOptions=g$;yh.getEndpointFromInstructions=ch;yh.getEndpointPlugin=ph;yh.isIpAddress=n$;yh.isValidHostLabel=H1;yh.middlewareEndpointToEndpointV1=j0;yh.resolveEndpoint=Ch;yh.resolveEndpointConfig=bh;yh.resolveEndpointRequiredConfig=sh;yh.resolveParams=p$;yh.toEndpointV1=j0});var ST=y((DA)=>{var K1=b("node:fs"),IU=C0(),hU=F0(),wT=b("node:crypto"),q=b("node:stream"),UU=($,T,w=(P)=>P)=>$,AU=($)=>{switch($){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${$}"`)}},_U=($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let T=$.toLowerCase();if(T==="false"||T==="true")f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if(T==="false")return!1;if(T==="true")return!0}if(typeof $==="boolean")return $;throw TypeError(`Expected boolean, got ${typeof $}: ${$}`)},J0=($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let T=parseFloat($);if(!Number.isNaN(T)){if(String(T)!==String($))f0.warn(c0(`Expected number but observed string: ${$}`));return T}}if(typeof $==="number")return $;throw TypeError(`Expected number, got ${typeof $}: ${$}`)},MU=Math.ceil(340282346638528860000000000000000000000),s0=($)=>{let T=J0($);if(T!==void 0&&!Number.isNaN(T)&&T!==1/0&&T!==-1/0){if(Math.abs(T)>MU)throw TypeError(`Expected 32-bit float, got ${$}`)}return T},Y0=($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw TypeError(`Expected integer, got ${typeof $}: ${$}`)},XU=Y0,x1=($)=>j1($,32),F1=($)=>j1($,16),z1=($)=>j1($,8),j1=($,T)=>{let w=Y0($);if(w!==void 0&&JU(w,T)!==w)throw TypeError(`Expected ${T}-bit integer, got ${$}`);return w},JU=($,T)=>{switch(T){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},YU=($,T)=>{if($===null||$===void 0){if(T)throw TypeError(`Expected a non-null value for ${T}`);throw TypeError("Expected a non-null value")}return $},MT=($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let T=Array.isArray($)?"array":typeof $;throw TypeError(`Expected object, got ${T}: ${$}`)},fU=($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return f0.warn(c0(`Expected string, got ${typeof $}: ${$}`)),String($);throw TypeError(`Expected string, got ${typeof $}: ${$}`)},GU=($)=>{if($===null||$===void 0)return;let T=MT($),w=[];for(let P in T)if(T[P]!=null)w.push(P);if(w.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return T},C1=($)=>{if(typeof $=="string")return J0(e($));return J0($)},ZU=C1,XT=($)=>{if(typeof $=="string")return s0(e($));return s0($)},RU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e=($)=>{let T=$.match(RU);if(T===null||T[0].length!==$.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat($)},s1=($)=>{if(typeof $=="string")return JT($);return J0($)},QU=s1,VU=s1,OU=($)=>{if(typeof $=="string")return JT($);return s0($)},JT=($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${$}`)}},YT=($)=>{if(typeof $==="string")return Y0(e($));return Y0($)},NU=YT,LU=($)=>{if(typeof $==="string")return x1(e($));return x1($)},l=($)=>{if(typeof $==="string")return F1(e($));return F1($)},fT=($)=>{if(typeof $==="string")return z1(e($));return z1($)},c0=($)=>{return String(TypeError($).stack||$).split(`
|
|
2
|
-
`).slice(0,5).filter((T)=>!T.includes("stackTraceWarning")).join(`
|
|
3
|
-
`)},f0={warn:console.warn},WU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HU($){let T=$.getUTCFullYear(),w=$.getUTCMonth(),P=$.getUTCDay(),I=$.getUTCDate(),h=$.getUTCHours(),U=$.getUTCMinutes(),A=$.getUTCSeconds(),_=I<10?`0${I}`:`${I}`,M=h<10?`0${h}`:`${h}`,Y=U<10?`0${U}`:`${U}`,X=A<10?`0${A}`:`${A}`;return`${WU[P]}, ${_} ${c1[w]} ${T} ${M}:${Y}:${X} GMT`}var DU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=DU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M]=T,Y=l(o(P)),X=x(I,"month",1,12),J=x(h,"day",1,31);return M0(Y,X,J,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})},KU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=KU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M,Y]=T,X=l(o(P)),J=x(I,"month",1,12),f=x(h,"day",1,31),G=M0(X,J,f,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M});if(Y.toUpperCase()!="Z")G.setTime(G.getTime()-yU(Y));return G},qU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),xU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),FU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let T=qU.exec($);if(T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(h)),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})}if(T=xU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return sU(M0(jU(h),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M}))}if(T=FU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(M)),B1(P),x(I.trimLeft(),"day",1,31),{hours:h,minutes:U,seconds:A,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},SU=($)=>{if($===null||$===void 0)return;let T;if(typeof $==="number")T=$;else if(typeof $==="string")T=C1($);else if(typeof $==="object"&&$.tag===1)T=$.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(T)||T===1/0||T===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(T*1000))},M0=($,T,w,P)=>{let I=T-1;return bU($,I,w),new Date(Date.UTC($,I,w,x(P.hours,"hour",0,23),x(P.minutes,"minute",0,59),x(P.seconds,"seconds",0,60),pU(P.fractionalMilliseconds)))},jU=($)=>{let T=new Date().getUTCFullYear(),w=Math.floor(T/100)*100+l(o($));if(w<T)return w+100;return w},CU=1576800000000,sU=($)=>{if($.getTime()-new Date().getTime()>CU)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},B1=($)=>{let T=c1.indexOf($);if(T<0)throw TypeError(`Invalid month: ${$}`);return T+1},cU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=($,T,w)=>{let P=cU[T];if(T===1&&kU($))P=29;if(w>P)throw TypeError(`Invalid day for ${c1[T]} in ${$}: ${w}`)},kU=($)=>{return $%4===0&&($%100!==0||$%400===0)},x=($,T,w,P)=>{let I=fT(o($));if(I<w||I>P)throw TypeError(`${T} must be between ${w} and ${P}, inclusive`);return I},pU=($)=>{if($===null||$===void 0)return 0;return XT("0."+$)*1000},yU=($)=>{let T=$[0],w=1;if(T=="+")w=1;else if(T=="-")w=-1;else throw TypeError(`Offset direction, ${T}, must be "+" or "-"`);let P=Number($.substring(1,3)),I=Number($.substring(4,6));return w*(P*60+I)*60*1000},o=($)=>{let T=0;while(T<$.length-1&&$.charAt(T)==="0")T++;if(T===0)return $;return $.slice(T)},PT=typeof crypto<"u"&&typeof crypto.randomUUID==="function"?crypto.randomUUID.bind(crypto):void 0,H=Array.from({length:256},($,T)=>T.toString(16).padStart(2,"0")),GT=()=>{if(PT)return PT();let $=new Uint8Array(16);return crypto.getRandomValues($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,H[$[0]]+H[$[1]]+H[$[2]]+H[$[3]]+"-"+H[$[4]]+H[$[5]]+"-"+H[$[6]]+H[$[7]]+"-"+H[$[8]]+H[$[9]]+"-"+H[$[10]]+H[$[11]]+H[$[12]]+H[$[13]]+H[$[14]]+H[$[15]]},v=function(T){return Object.assign(new String(T),{deserializeJSON(){return JSON.parse(String(T))},toString(){return String(T)},toJSON(){return String(T)}})};v.from=($)=>{if($&&typeof $==="object"&&($ instanceof v||("deserializeJSON"in $)))return $;else if(typeof $==="string"||Object.getPrototypeOf($)===String.prototype)return v(String($));return v(JSON.stringify($))};v.fromObject=v.from;function gU($){if($.includes(",")||$.includes('"'))$=`"${$.replace(/"/g,"\\\"")}"`;return $}var b1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",p1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ZT="(\\d?\\d)",RT="(\\d{4})",mU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dU=new RegExp(`^${b1}, ${ZT} ${k1} ${RT} ${p1} GMT$`),vU=new RegExp(`^${b1}, ${ZT}-${k1}-(\\d\\d) ${p1} GMT$`),nU=new RegExp(`^${b1} ${k1} ( [1-9]|\\d\\d) ${p1} ${RT}$`),tU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iU=($)=>{if($==null)return;let T=NaN;if(typeof $==="number")T=$;else if(typeof $==="string"){if(!/^-?\d*\.?\d+$/.test($))throw TypeError("parseEpochTimestamp - numeric string invalid.");T=Number.parseFloat($)}else if(typeof $==="object"&&$.tag===1)T=$.value;if(isNaN(T)||Math.abs(T)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(T*1000))},uU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC3339 timestamps must be strings");let T=mU.exec($);if(!T)throw TypeError(`Invalid RFC3339 timestamp format ${$}`);let[,w,P,I,h,U,A,,_,M]=T;z(P,1,12),z(I,1,31),z(h,0,23),z(U,0,59),z(A,0,60);let Y=new Date(Date.UTC(Number(w),Number(P)-1,Number(I),Number(h),Number(U),Number(A),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(w)),M.toUpperCase()!="Z"){let[,X,J,f]=/([+-])(\d\d):(\d\d)/.exec(M)||[void 0,"+",0,0],G=X==="-"?1:-1;Y.setTime(Y.getTime()+G*(Number(J)*60*60*1000+Number(f)*60*1000))}return Y},rU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC7231 timestamps must be strings.");let T,w,P,I,h,U,A,_;if(_=dU.exec($))[,T,w,P,I,h,U,A]=_;else if(_=vU.exec($))[,T,w,P,I,h,U,A]=_,P=(Number(P)+1900).toString();else if(_=nU.exec($))[,w,T,I,h,U,A,P]=_;if(P&&U){let M=Date.UTC(Number(P),tU.indexOf(w),Number(T),Number(I),Number(h),Number(U),A?Math.round(parseFloat(`0.${A}`)*1000):0);z(T,1,31),z(I,0,23),z(h,0,59),z(U,0,60);let Y=new Date(M);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${$}.`)};function z($,T,w){let P=Number($);if(P<T||P>w)throw Error(`Value ${P} out of range [${T}, ${w}]`)}function lU($,T,w){if(w<=0||!Number.isInteger(w))throw Error("Invalid number of delimiters ("+w+") for splitEvery.");let P=$.split(T);if(w===1)return P;let I=[],h="";for(let U=0;U<P.length;U++){if(h==="")h=P[U];else h+=T+P[U];if((U+1)%w===0)I.push(h),h=""}if(h!=="")I.push(h);return I}var oU=($)=>{let T=$.length,w=[],P=!1,I=void 0,h=0;for(let U=0;U<T;++U){let A=$[U];switch(A){case'"':if(I!=="\\")P=!P;break;case",":if(!P)w.push($.slice(h,U)),h=U+1;break}I=A}return w.push($.slice(h)),w.map((U)=>{U=U.trim();let A=U.length;if(A<2)return U;if(U[0]==='"'&&U[A-1]==='"')U=U.slice(1,A-1);return U.replace(/\\"/g,'"')})},IT=/^-?\d*(\.\d+)?$/;class k0{string;type;constructor($,T){if(this.string=$,this.type=T,!IT.test($))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance]($){if(!$||typeof $!=="object")return!1;let T=$;return k0.prototype.isPrototypeOf($)||T.type==="bigDecimal"&&IT.test(T.string)}}function aU($){return new k0(String($),"bigDecimal")}var QT={},S1={};for(let $=0;$<256;$++){let T=$.toString(16).toLowerCase();if(T.length===1)T=`0${T}`;QT[$]=T,S1[T]=$}function eU($){if($.length%2!==0)throw Error("Hex encoded strings must have an even number length");let T=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){let P=$.slice(w,w+2).toLowerCase();if(P in S1)T[w/2]=S1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return T}function VT($){let T="";for(let w=0;w<$.byteLength;w++)T+=QT[$[w]];return T}var OT=($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]",a=($,T=0,w=$.byteLength-T)=>{if(!OT($))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Buffer.from($,T,w)},p0=($,T)=>{if(typeof $!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return T?Buffer.from($,T):Buffer.from($)},$A=/^[A-Za-z0-9+/]*={0,2}$/,y1=($)=>{if($.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$A.exec($))throw TypeError("Invalid base64 string.");let T=p0($,"base64");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)},y0=($)=>{let T=p0($,"utf8");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G0=($)=>{let T;if(typeof $==="string")T=y0($);else T=$;if(typeof T!=="object"||typeof T.byteOffset!=="number"||typeof T.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return a(T.buffer,T.byteOffset,T.byteLength).toString("base64")},TA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if($ instanceof K1.ReadStream){if($.path!=null)return K1.lstatSync($.path).size;else if(typeof $.fd==="number")return K1.fstatSync($.fd).size}throw Error(`Body Length computation failed for ${$}`)},NT=($)=>{if(typeof $==="string")return y0($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},g1=($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return a($.buffer,$.byteOffset,$.byteLength).toString("utf8")},LT=($,T)=>(w,P)=>async(I)=>{let{response:h}=await w(I);try{let U=await T(h,$);return{response:h,output:U}}catch(U){if(Object.defineProperty(U,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in U)){try{U.message+=`
|
|
4
|
-
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(_){if(!P.logger||P.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else P.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof U.$responseBodyText<"u"){if(U.$response)U.$response.body=U.$responseBodyText}try{if(IU.HttpResponse.isInstance(h)){let{headers:_={}}=h,M=Object.entries(_);U.$metadata={httpStatusCode:h.statusCode,requestId:q1(/^x-[\w-]+-request-?id$/,M),extendedRequestId:q1(/^x-[\w-]+-id-2$/,M),cfId:q1(/^x-[\w-]+-cf-id$/,M)}}}catch(_){}}throw U}},q1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},WT=($,T)=>(w,P)=>async(I)=>{let h=$,U=P.endpointV2?async()=>hU.toEndpointV1(P.endpointV2):h.endpoint;if(!U)throw Error("No valid endpoint provider available.");let A=await T(I.input,{...$,endpoint:U});return w({...I,request:A})},HT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},DT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wA($,T,w){return{applyToStack:(P)=>{P.add(LT($,w),HT),P.add(WT($,T),DT)}}}class ET{algorithmIdentifier;secret;hash;constructor($,T){this.algorithmIdentifier=$,this.secret=T,this.reset()}update($,T){this.hash.update(NT(hT($,T)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?wT.createHmac(this.algorithmIdentifier,hT(this.secret)):wT.createHash(this.algorithmIdentifier)}}function hT($,T){if(Buffer.isBuffer($))return $;if(typeof $==="string")return p0($,T);if(ArrayBuffer.isView($))return a($.buffer,$.byteOffset,$.byteLength);return a($)}class X0 extends Uint8Array{static fromString($,T="utf-8"){if(typeof $==="string"){if(T==="base64")return X0.mutate(y1($));return X0.mutate(y0($))}throw Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}static mutate($){return Object.setPrototypeOf($,X0.prototype),$}transformToString($="utf-8"){if($==="base64")return G0(this);return g1(this)}}var KT=class extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:T,checksum:w,source:P,checksumSourceLocation:I,base64Encoder:h}){super();if(typeof P.pipe==="function")this.source=P;else throw Error(`@smithy/util-stream: unsupported source type ${P?.constructor?.name??P} in ChecksumStream.`);this.base64Encoder=h??G0,this.expectedChecksum=T,this.checksum=w,this.checksumSourceLocation=I,this.source.pipe(this)}_read(T){if(this.pendingCallback){let w=this.pendingCallback;this.pendingCallback=null,w()}}_write(T,w,P){try{if(this.checksum.update(T),!this.push(T)){this.pendingCallback=P;return}}catch(I){return P(I)}return P()}async _final(T){try{let w=await this.checksum.digest(),P=this.base64Encoder(w);if(this.expectedChecksum!==P)return T(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${P}" in response header "${this.checksumSourceLocation}".`))}catch(w){return T(w)}return this.push(null),T()}},S=($)=>typeof ReadableStream==="function"&&($?.constructor?.name===ReadableStream.name||$ instanceof ReadableStream),BT=($)=>{return typeof Blob==="function"&&($?.constructor?.name===Blob.name||$ instanceof Blob)},PA=typeof ReadableStream==="function"?ReadableStream:function(){};class qT extends PA{}var IA=({expectedChecksum:$,checksum:T,source:w,checksumSourceLocation:P,base64Encoder:I})=>{if(!S(w))throw Error(`@smithy/util-stream: unsupported source type ${w?.constructor?.name??w} in ChecksumStream.`);let h=I??G0;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(_,M){T.update(_),M.enqueue(_)},async flush(_){let M=await T.digest(),Y=h(M);if($!==Y){let X=Error(`Checksum mismatch: expected "${$}" but received "${Y}" in response header "${P}".`);_.error(X)}else _.terminate()}});w.pipeThrough(U);let A=U.readable;return Object.setPrototypeOf(A,qT.prototype),A};function hA($){if(typeof ReadableStream==="function"&&S($.source))return IA($);return new KT($)}class b0{allocByteArray;byteLength=0;byteArrays=[];constructor($){this.allocByteArray=$}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let $=this.allocByteArray(this.byteLength),T=0;for(let w=0;w<this.byteArrays.length;++w){let P=this.byteArrays[w];$.set(P,T),T+=P.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}function UA($,T,w){let P=$.getReader(),I=!1,h=0,U=["",new b0((M)=>new Uint8Array(M))],A=-1,_=async(M)=>{let{value:Y,done:X}=await P.read(),J=Y;if(X){if(A!==-1){let f=r(U,A);if(p(f)>0)M.enqueue(f)}M.close()}else{let f=FT(J,!1);if(A!==f){if(A>=0)M.enqueue(r(U,A));A=f}if(A===-1){M.enqueue(J);return}let G=p(J);h+=G;let Q=p(U[A]);if(G>=T&&Q===0)M.enqueue(J);else{let Z=xT(U,A,J);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${G} is below threshold of ${T}, automatically buffering.`);if(Z>=T)M.enqueue(r(U,A));else await _(M)}}};return new ReadableStream({pull:_})}function xT($,T,w){switch(T){case 0:return $[0]+=w,p($[0]);case 1:case 2:return $[T].push(w),p($[T])}}function r($,T){switch(T){case 0:let w=$[0];return $[0]="",w;case 1:case 2:return $[T].flush()}throw Error(`@smithy/util-stream - invalid index ${T} given to flush()`)}function p($){return $?.byteLength??$?.length??0}function FT($,T=!0){if(T&&typeof Buffer<"u"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}function AA($,T,w){if(S($))return UA($,T,w);let P=new q.Readable({read(){}}),I=!1,h=0,U=["",new b0((_)=>new Uint8Array(_)),new b0((_)=>Buffer.from(new Uint8Array(_)))],A=-1;return $.on("data",(_)=>{let M=FT(_,!0);if(A!==M){if(A>=0)P.push(r(U,A));A=M}if(A===-1){P.push(_);return}let Y=p(_);h+=Y;let X=p(U[A]);if(Y>=T&&X===0)P.push(_);else{let J=xT(U,A,_);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${Y} is below threshold of ${T}, automatically buffering.`);if(J>=T)P.push(r(U,A))}}),$.on("end",()=>{if(A!==-1){let _=r(U,A);if(p(_)>0)P.push(_)}P.push(null)}),P}var _A=($,T)=>{let{base64Encoder:w,bodyLengthChecker:P,checksumAlgorithmFn:I,checksumLocationName:h,streamHasher:U}=T,A=w!==void 0&&P!==void 0&&I!==void 0&&h!==void 0&&U!==void 0,_=A?U(I,$):void 0,M=$.getReader();return new ReadableStream({async pull(Y){let{value:X,done:J}=await M.read();if(J){if(Y.enqueue(`0\r
|
|
5
|
-
`),A){let f=w(await _);Y.enqueue(`${h}:${f}\r
|
|
6
|
-
`),Y.enqueue(`\r
|
|
7
|
-
`)}Y.close()}else Y.enqueue(`${(P(X)||0).toString(16)}\r
|
|
8
|
-
${X}\r
|
|
9
|
-
`)}})};function MA($,T){let w=$,P=$;if(S(P))return _A(P,T);let{base64Encoder:I,bodyLengthChecker:h,checksumAlgorithmFn:U,checksumLocationName:A,streamHasher:_}=T,M=I!==void 0&&U!==void 0&&A!==void 0&&_!==void 0,Y=M?_(U,w):void 0,X=new q.Readable({read:()=>{}});return w.on("data",(J)=>{let f=h(J)||0;if(f===0)return;X.push(`${f.toString(16)}\r
|
|
10
|
-
`),X.push(J),X.push(`\r
|
|
11
|
-
`)}),w.on("end",async()=>{if(X.push(`0\r
|
|
12
|
-
`),M){let J=I(await Y);X.push(`${A}:${J}\r
|
|
13
|
-
`),X.push(`\r
|
|
14
|
-
`)}X.push(null)}),X}async function XA($,T){let w=0,P=[],I=$.getReader(),h=!1;while(!h){let{done:_,value:M}=await I.read();if(M)P.push(M),w+=M?.byteLength??0;if(w>=T)break;h=_}I.releaseLock();let U=new Uint8Array(Math.min(T,w)),A=0;for(let _ of P){if(_.byteLength>U.byteLength-A){U.set(_.subarray(0,U.byteLength-A),A);break}else U.set(_,A);A+=_.length}return U}var JA=($,T)=>{if(S($))return XA($,T);return new Promise((w,P)=>{let I=new YA;I.limit=T,$.pipe(I),$.on("error",(h)=>{I.end(),P(h)}),I.on("error",P),I.on("finish",function(){let h=new Uint8Array(Buffer.concat(this.buffers));w(h)})})},YA=class extends q.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(T,w,P){if(this.buffers.push(T),this.bytesBuffered+=T.byteLength??0,this.bytesBuffered>=this.limit){let I=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-I),this.emit("finish")}P()}},fA=async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return GA($)}return ZA($)};async function GA($){let T=await RA($),w=y1(T);return new Uint8Array(w)}async function ZA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}function RA($){return new Promise((T,w)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return w(Error("Reader aborted too early"));let I=P.result??"",h=I.indexOf(","),U=h>-1?h+1:I.length;T(I.substring(U))},P.onabort=()=>w(Error("Read aborted")),P.onerror=()=>w(P.error),P.readAsDataURL($)})}var UT="The stream has already been transformed.",QA=($)=>{if(!AT($)&&!S($)){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(UT);return T=!0,await fA($)},P=(I)=>{if(typeof I.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
15
|
-
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return I.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(I)=>{let h=await w();if(I==="base64")return G0(h);else if(I==="hex")return VT(h);else if(I===void 0||I==="utf8"||I==="utf-8")return g1(h);else if(typeof TextDecoder==="function")return new TextDecoder(I).decode(h);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(T)throw Error(UT);if(T=!0,AT($))return P($);else if(S($))return $;else throw Error(`Cannot transform payload to web stream, got ${$}`)}})},AT=($)=>typeof Blob==="function"&&$ instanceof Blob;class zT extends q.Writable{bufferedBytes=[];_write($,T,w){this.bufferedBytes.push($),w()}}var VA=($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream;async function OA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}var NA=($)=>{if(VA($))return OA($);return new Promise((T,w)=>{let P=new zT;$.pipe(P),$.on("error",(I)=>{P.end(),w(I)}),P.on("error",w),P.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.bufferedBytes));T(I)})})},_T="The stream has already been transformed.",LA=($)=>{if(!($ instanceof q.Readable))try{return QA($)}catch(P){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(_T);return T=!0,await NA($)};return Object.assign($,{transformToByteArray:w,transformToString:async(P)=>{let I=await w();if(P===void 0||Buffer.isEncoding(P))return a(I.buffer,I.byteOffset,I.byteLength).toString(P);else return new TextDecoder(P).decode(I)},transformToWebStream:()=>{if(T)throw Error(_T);if($.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof q.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return T=!0,q.Readable.toWeb($)}})};async function WA($){if(typeof $.stream==="function")$=$.stream();return $.tee()}async function HA($){if(S($)||BT($))return WA($);let T=new q.PassThrough,w=new q.PassThrough;return $.pipe(T),$.pipe(w),[T,w]}DA.ChecksumStream=KT;DA.Hash=ET;DA.LazyJsonString=v;DA.NumericValue=k0;DA.Uint8ArrayBlobAdapter=X0;DA._parseEpochTimestamp=iU;DA._parseRfc3339DateTimeWithOffset=uU;DA._parseRfc7231DateTime=rU;DA.calculateBodyLength=TA;DA.copyDocumentWithTransform=UU;DA.createBufferedReadable=AA;DA.createChecksumStream=hA;DA.dateToUtcString=HU;DA.deserializerMiddleware=LT;DA.deserializerMiddlewareOption=HT;DA.expectBoolean=_U;DA.expectByte=z1;DA.expectFloat32=s0;DA.expectInt=XU;DA.expectInt32=x1;DA.expectLong=Y0;DA.expectNonNull=YU;DA.expectNumber=J0;DA.expectObject=MT;DA.expectShort=F1;DA.expectString=fU;DA.expectUnion=GU;DA.fromArrayBuffer=a;DA.fromBase64=y1;DA.fromHex=eU;DA.fromString=p0;DA.fromUtf8=y0;DA.generateIdempotencyToken=GT;DA.getAwsChunkedEncodingStream=MA;DA.getSerdePlugin=wA;DA.handleFloat=QU;DA.headStream=JA;DA.isArrayBuffer=OT;DA.isBlob=BT;DA.isReadableStream=S;DA.limitedParseDouble=s1;DA.limitedParseFloat=VU;DA.limitedParseFloat32=OU;DA.logger=f0;DA.nv=aU;DA.parseBoolean=AU;DA.parseEpochTimestamp=SU;DA.parseRfc3339DateTime=EU;DA.parseRfc3339DateTimeWithOffset=BU;DA.parseRfc7231DateTime=zU;DA.quoteHeader=gU;DA.sdkStreamMixin=LA;DA.serializerMiddleware=WT;DA.serializerMiddlewareOption=DT;DA.splitEvery=lU;DA.splitHeader=oU;DA.splitStream=HA;DA.strictParseByte=fT;DA.strictParseDouble=C1;DA.strictParseFloat=ZU;DA.strictParseFloat32=XT;DA.strictParseInt=NU;DA.strictParseInt32=LU;DA.strictParseLong=YT;DA.strictParseShort=l;DA.toBase64=G0;DA.toHex=VT;DA.toUint8Array=NT;DA.toUtf8=g1;DA.v4=GT});var C0=y((o_)=>{var O=ST(),E=h1(),g_=P0(),n=async($=new Uint8Array,T)=>{if($ instanceof Uint8Array)return O.Uint8ArrayBlobAdapter.mutate($);if(!$)return O.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=T.streamCollector($);return O.Uint8ArrayBlobAdapter.mutate(await w)};function R0($){return encodeURIComponent($).replace(/[!'()*]/g,function(T){return"%"+T.charCodeAt(0).toString(16).toUpperCase()})}class $0{serdeContext;setSerdeContext($){this.serdeContext=$}}class j{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let T=new j({...$,headers:{...$.headers}});if(T.query)T.query=m_(T.query);return T}static isInstance($){if(!$)return!1;let T=$;return"method"in T&&"protocol"in T&&"hostname"in T&&"path"in T&&typeof T.query==="object"&&typeof T.headers==="object"}clone(){return j.clone(this)}}function m_($){return Object.keys($).reduce((T,w)=>{let P=$[w];return{...T,[w]:Array.isArray(P)?[...P]:P}},{})}class m1{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let T=$;return typeof T.statusCode==="number"&&typeof T.headers==="object"}}class g0 extends $0{options;compositeErrorRegistry;constructor($){super();this.options=$,this.compositeErrorRegistry=E.TypeRegistry.for($.defaultNamespace);for(let T of $.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(T)}getRequestType(){return j}getResponseType(){return m1}setSerdeContext($){if(this.serdeContext=$,this.serializer.setSerdeContext($),this.deserializer.setSerdeContext($),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext($)}updateServiceEndpoint($,T){if("url"in T){if($.protocol=T.url.protocol,$.hostname=T.url.hostname,$.port=T.url.port?Number(T.url.port):void 0,$.path=T.url.pathname,$.fragment=T.url.hash||void 0,$.username=T.url.username||void 0,$.password=T.url.password||void 0,!$.query)$.query={};for(let[w,P]of T.url.searchParams.entries())$.query[w]=P;if(T.headers)for(let w in T.headers)$.headers[w]=T.headers[w].join(", ");return $}else{if($.protocol=T.protocol,$.hostname=T.hostname,$.port=T.port?Number(T.port):void 0,$.path=T.path,$.query={...T.query},T.headers)for(let w in T.headers)$.headers[w]=T.headers[w];return $}}setHostPrefix($,T,w){if(this.serdeContext?.disableHostPrefix)return;let P=E.NormalizedSchema.of(T.input),I=E.translateTraits(T.traits??{});if(I.endpoint){let h=I.endpoint?.[0];if(typeof h==="string"){for(let[U,A]of P.structIterator()){if(!A.getMergedTraits().hostLabel)continue;let _=w[U];if(typeof _!=="string")throw Error(`@smithy/core/schema - ${U} in input must be a string as hostLabel.`);h=h.replace(`{${U}}`,_)}$.hostname=h+$.hostname}}}deserializeMetadata($){return{httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w})}async deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:$}=await import("./index-0.1.15-3jxezstk.mjs");return new $({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage($,T,w,P,I){return[]}getEventStreamMarshaller(){let $=this.serdeContext;if(!$.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return $.eventStreamMarshaller}}class CT extends g0{async serializeRequest($,T,w){let P=T&&typeof T==="object"?T:{},I=this.serializer,h={},U={},A=await w.endpoint(),_=E.NormalizedSchema.of($?.input),M=[],Y=[],X=!1,J,f=new j({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:h,headers:U,body:void 0});if(A){this.updateServiceEndpoint(f,A),this.setHostPrefix(f,$,P);let G=E.translateTraits($.traits);if(G.http){f.method=G.http[0];let[Q,Z]=G.http[1].split("?");if(f.path=="/")f.path=Q;else f.path+=Q;let R=new URLSearchParams(Z??"");for(let[V,L]of R)h[V]=L}}for(let[G,Q]of _.structIterator()){let Z=Q.getMergedTraits()??{},R=P[G];if(R==null&&!Q.isIdempotencyToken()){if(Z.httpLabel){if(f.path.includes(`{${G}+}`)||f.path.includes(`{${G}}`))throw Error(`No value provided for input HTTP label: ${G}.`)}continue}if(Z.httpPayload)if(Q.isStreaming())if(Q.isStructSchema()){if(P[G])J=await this.serializeEventStream({eventStream:P[G],requestSchema:_})}else J=R;else I.write(Q,R),J=I.flush();else if(Z.httpLabel){I.write(Q,R);let V=I.flush();if(f.path.includes(`{${G}+}`))f.path=f.path.replace(`{${G}+}`,V.split("/").map(R0).join("/"));else if(f.path.includes(`{${G}}`))f.path=f.path.replace(`{${G}}`,R0(V))}else if(Z.httpHeader)I.write(Q,R),U[Z.httpHeader.toLowerCase()]=String(I.flush());else if(typeof Z.httpPrefixHeaders==="string")for(let V in R){let L=R[V],W=Z.httpPrefixHeaders+V;I.write([Q.getValueSchema(),{httpHeader:W}],L),U[W.toLowerCase()]=I.flush()}else if(Z.httpQuery||Z.httpQueryParams)this.serializeQuery(Q,R,h);else X=!0,M.push(G),Y.push(Q)}if(X&&P){let[G,Q]=(_.getName(!0)??"#Unknown").split("#"),Z=_.getSchema()[6],R=[3,G,Q,_.getMergedTraits(),M,Y,void 0];if(Z)R[6]=Z;else R.pop();I.write(R,P),J=I.flush()}return f.headers=U,f.query=h,f.body=J,f}serializeQuery($,T,w){let P=this.serializer,I=$.getMergedTraits();if(I.httpQueryParams){for(let h in T)if(!(h in w)){let U=T[h],A=$.getValueSchema();Object.assign(A.getMergedTraits(),{...I,httpQuery:h,httpQueryParams:void 0}),this.serializeQuery(A,U,w)}return}if($.isListSchema()){let h=!!$.getMergedTraits().sparse,U=[];for(let A of T){P.write([$.getValueSchema(),I],A);let _=P.flush();if(h||_!==void 0)U.push(_)}w[I.httpQuery]=U}else P.write([$,I],T),w[I.httpQuery]=P.flush()}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=await this.deserializeHttpMessage(I,T,w,h);if(U.length){let A=await n(w.body,T);if(A.byteLength>0){let _=await P.read(I,A);for(let M of U)if(_[M]!=null)h[M]=_[M]}}else if(U.discardResponseBody)await n(w.body,T);return h.$metadata=this.deserializeMetadata(w),h}async deserializeHttpMessage($,T,w,P,I){let h;if(P instanceof Set)h=I;else h=P;let U=!0,A=this.deserializer,_=E.NormalizedSchema.of($),M=[];for(let[Y,X]of _.structIterator()){let J=X.getMemberTraits();if(J.httpPayload){if(U=!1,X.isStreaming())if(X.isStructSchema())h[Y]=await this.deserializeEventStream({response:w,responseSchema:_});else h[Y]=O.sdkStreamMixin(w.body);else if(w.body){let G=await n(w.body,T);if(G.byteLength>0)h[Y]=await A.read(X,G)}}else if(J.httpHeader){let f=String(J.httpHeader).toLowerCase(),G=w.headers[f];if(G!=null)if(X.isListSchema()){let Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f;let Z;if(Q.isTimestampSchema()&&Q.getSchema()===4)Z=O.splitEvery(G,",",2);else Z=O.splitHeader(G);let R=[];for(let V of Z)R.push(await A.read(Q,V.trim()));h[Y]=R}else h[Y]=await A.read(X,G)}else if(J.httpPrefixHeaders!==void 0){h[Y]={};for(let f in w.headers)if(f.startsWith(J.httpPrefixHeaders)){let G=w.headers[f],Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f,h[Y][f.slice(J.httpPrefixHeaders.length)]=await A.read(Q,G)}}else if(J.httpResponseCode)h[Y]=w.statusCode;else M.push(Y)}return M.discardResponseBody=U,M}}class sT extends g0{async serializeRequest($,T,w){let P=this.serializer,I={},h={},U=await w.endpoint(),A=E.NormalizedSchema.of($?.input),_=A.getSchema(),M,Y=T&&typeof T==="object"?T:{},X=new j({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:I,headers:h,body:void 0});if(U)this.updateServiceEndpoint(X,U),this.setHostPrefix(X,$,Y);if(Y){let J=A.getEventStreamMember();if(J){if(Y[J]){let f={};for(let[G,Q]of A.structIterator())if(G!==J&&Y[G])P.write(Q,Y[G]),f[G]=P.flush();M=await this.serializeEventStream({eventStream:Y[J],requestSchema:A,initialRequest:f})}}else P.write(_,Y),M=P.flush()}return X.headers=Object.assign(X.headers,h),X.query=I,X.body=M,X.method="POST",X}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=I.getEventStreamMember();if(U)h[U]=await this.deserializeEventStream({response:w,responseSchema:I,initialResponseContainer:h});else{let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(I,A))}return h.$metadata=this.deserializeMetadata(w),h}}var cT=($,T,w,P,I,h)=>{if(T!=null&&T[w]!==void 0){let U=P();if(U==null||U.length<=0)throw Error("Empty value provided for input HTTP label: "+w+".");$=$.replace(I,h?U.split("/").map((A)=>R0(A)).join("/"):R0(U))}else throw Error("No value provided for input HTTP label: "+w+".");return $};function d_($,T){return new d1($,T)}class d1{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor($,T){this.input=$,this.context=T}async build(){let{hostname:$,protocol:T="https",port:w,path:P}=await this.context.endpoint();this.path=P;for(let I of this.resolvePathStack)I(this.path);return new j({protocol:T,hostname:this.hostname||$,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn($){return this.hostname=$,this}bp($){return this.resolvePathStack.push((T)=>{this.path=`${T?.endsWith("/")?T.slice(0,-1):T||""}`+$}),this}p($,T,w,P){return this.resolvePathStack.push((I)=>{this.path=cT(I,this.input,$,T,w,P)}),this}h($){return this.headers=$,this}q($){return this.query=$,this}b($){return this.body=$,this}m($){return this.method=$,this}}function v1($,T){if(T.timestampFormat.useTrait){if($.isTimestampSchema()&&($.getSchema()===5||$.getSchema()===6||$.getSchema()===7))return $.getSchema()}let{httpLabel:w,httpPrefixHeaders:P,httpHeader:I,httpQuery:h}=$.getMergedTraits();return(T.httpBindings?typeof P==="string"||Boolean(I)?6:Boolean(h)||Boolean(w)?5:void 0:void 0)??T.timestampFormat.default}class n1 extends $0{settings;constructor($){super();this.settings=$}read($,T){let w=E.NormalizedSchema.of($);if(w.isListSchema())return O.splitHeader(T).map((P)=>this.read(w.getValueSchema(),P));if(w.isBlobSchema())return(this.serdeContext?.base64Decoder??O.fromBase64)(T);if(w.isTimestampSchema())switch(v1(w,this.settings)){case 5:return O._parseRfc3339DateTimeWithOffset(T);case 6:return O._parseRfc7231DateTime(T);case 7:return O._parseEpochTimestamp(T);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",T),new Date(T)}if(w.isStringSchema()){let P=w.getMergedTraits().mediaType,I=T;if(P){if(w.getMergedTraits().httpHeader)I=this.base64ToUtf8(I);if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);return I}}if(w.isNumericSchema())return Number(T);if(w.isBigIntegerSchema())return BigInt(T);if(w.isBigDecimalSchema())return new O.NumericValue(T,"bigDecimal");if(w.isBooleanSchema())return String(T).toLowerCase()==="true";return T}base64ToUtf8($){return(this.serdeContext?.utf8Encoder??O.toUtf8)((this.serdeContext?.base64Decoder??O.fromBase64)($))}}class bT extends $0{codecDeserializer;stringDeserializer;constructor($,T){super();this.codecDeserializer=$,this.stringDeserializer=new n1(T)}setSerdeContext($){this.stringDeserializer.setSerdeContext($),this.codecDeserializer.setSerdeContext($),this.serdeContext=$}read($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits(),I=this.serdeContext?.utf8Encoder??O.toUtf8;if(P.httpHeader||P.httpResponseCode)return this.stringDeserializer.read(w,I(T));if(P.httpPayload){if(w.isBlobSchema()){let h=this.serdeContext?.utf8Decoder??O.fromUtf8;if(typeof T==="string")return h(T);return T}else if(w.isStringSchema()){if("byteLength"in T)return I(T);return T}}return this.codecDeserializer.read(w,T)}}class t1 extends $0{settings;stringBuffer="";constructor($){super();this.settings=$}write($,T){let w=E.NormalizedSchema.of($);switch(typeof T){case"object":if(T===null){this.stringBuffer="null";return}if(w.isTimestampSchema()){if(!(T instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${T} when schema expected Date in ${w.getName(!0)}`);switch(v1(w,this.settings)){case 5:this.stringBuffer=T.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=O.dateToUtcString(T);break;case 7:this.stringBuffer=String(T.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",T),this.stringBuffer=String(T.getTime()/1000)}return}if(w.isBlobSchema()&&"byteLength"in T){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(T);return}if(w.isListSchema()&&Array.isArray(T)){let h="";for(let U of T){this.write([w.getValueSchema(),w.getMergedTraits()],U);let A=this.flush(),_=w.getValueSchema().isTimestampSchema()?A:O.quoteHeader(A);if(h!=="")h+=", ";h+=_}this.stringBuffer=h;return}this.stringBuffer=JSON.stringify(T,null,2);break;case"string":let P=w.getMergedTraits().mediaType,I=T;if(P){if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);if(w.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(I.toString());return}}this.stringBuffer=T;break;default:if(w.isIdempotencyToken())this.stringBuffer=O.generateIdempotencyToken();else this.stringBuffer=String(T)}}flush(){let $=this.stringBuffer;return this.stringBuffer="",$}}class kT{codecSerializer;stringSerializer;buffer;constructor($,T,w=new t1(T)){this.codecSerializer=$,this.stringSerializer=w}setSerdeContext($){this.codecSerializer.setSerdeContext($),this.stringSerializer.setSerdeContext($)}write($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits();if(P.httpHeader||P.httpLabel||P.httpQuery){this.stringSerializer.write(w,T),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(w,T)}flush(){if(this.buffer!==void 0){let $=this.buffer;return this.buffer=void 0,$}return this.codecSerializer.flush()}}class pT{name;kind;values;constructor({name:$,kind:T=g_.FieldPosition.HEADER,values:w=[]}){this.name=$,this.kind=T,this.values=w}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((T)=>T!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}}class yT{entries={};encoding;constructor({fields:$=[],encoding:T="utf-8"}){$.forEach(this.setField.bind(this)),this.encoding=T}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((T)=>T.kind===$)}}function v_($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}var n_=($)=>{return{setHttpHandler(T){$.httpHandler=T},httpHandler(){return $.httpHandler},updateHttpClientConfig(T,w){$.httpHandler?.updateHttpClientConfig(T,w)},httpHandlerConfigs(){return $.httpHandler.httpHandlerConfigs()}}},t_=($)=>{return{httpHandler:$.httpHandler()}},jT="content-length";function gT($){return(T)=>async(w)=>{let P=w.request;if(j.isInstance(P)){let{body:I,headers:h}=P;if(I&&Object.keys(h).map((U)=>U.toLowerCase()).indexOf(jT)===-1)try{let U=$(I);P.headers={...P.headers,[jT]:String(U)}}catch(U){}}return T({...w,request:P})}}var mT={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},i_=($)=>({applyToStack:(T)=>{T.add(gT($.bodyLengthChecker),mT)}}),Z0=($)=>encodeURIComponent($).replace(/[!'()*]/g,u_),u_=($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,r_=($)=>$.split("/").map(Z0).join("/");function l_($){let T=[];for(let w of Object.keys($).sort()){let P=$[w];if(w=Z0(w),Array.isArray(P))for(let I=0,h=P.length;I<h;I++)T.push(`${w}=${Z0(P[I])}`);else{let I=w;if(P||typeof P==="string")I+=`=${Z0(P)}`;T.push(I)}}return T.join("&")}function dT($){let T={};if($=$.replace(/^\?/,""),$)for(let w of $.split("&")){let[P,I=null]=w.split("=");if(P=decodeURIComponent(P),I)I=decodeURIComponent(I);if(!(P in T))T[P]=I;else if(Array.isArray(T[P]))T[P].push(I);else T[P]=[T[P],I]}return T}var vT=($)=>{if(typeof $==="string")return vT(new URL($));let{hostname:T,pathname:w,port:P,protocol:I,search:h}=$,U;if(h)U=dT(h);return{hostname:T,port:P?parseInt(P):void 0,protocol:I,path:w,query:U}};o_.Field=pT;o_.Fields=yT;o_.FromStringShapeDeserializer=n1;o_.HttpBindingProtocol=CT;o_.HttpInterceptingShapeDeserializer=bT;o_.HttpInterceptingShapeSerializer=kT;o_.HttpProtocol=g0;o_.HttpRequest=j;o_.HttpResponse=m1;o_.RequestBuilder=d1;o_.RpcProtocol=sT;o_.SerdeContext=$0;o_.ToStringShapeSerializer=t1;o_.buildQueryString=l_;o_.collectBody=n;o_.contentLengthMiddleware=gT;o_.contentLengthMiddlewareOptions=mT;o_.determineTimestampFormat=v1;o_.escapeUri=Z0;o_.escapeUriPath=r_;o_.extendedEncodeURIComponent=R0;o_.getContentLengthPlugin=i_;o_.getHttpHandlerExtensionConfiguration=n_;o_.isValidHostname=v_;o_.parseQueryString=dT;o_.parseUrl=vT;o_.requestBuilder=d_;o_.resolveHttpHandlerRuntimeConfig=t_;o_.resolvedPath=cT});var h1=y((y6)=>{var nT=D0(),B6=C0(),q6=F0(),m0=($)=>{if(typeof $==="function")return $();return $},r1=($,T,w,P,I)=>({name:T,namespace:$,traits:w,input:P,output:I}),x6=($)=>(T,w)=>async(P)=>{let{response:I}=await T(P),{operationSchema:h}=nT.getSmithyContext(w),[,U,A,_,M,Y]=h??[];try{let X=await $.protocol.deserializeResponse(r1(U,A,_,M,Y),{...$,...w},I);return{response:I,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:I,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in X)){try{X.message+=`
|
|
16
|
-
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(f){if(!w.logger||w.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else w.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof X.$responseBodyText<"u"){if(X.$response)X.$response.body=X.$responseBodyText}try{if(B6.HttpResponse.isInstance(I)){let{headers:f={}}=I,G=Object.entries(f);X.$metadata={httpStatusCode:I.statusCode,requestId:i1(/^x-[\w-]+-request-?id$/,G),extendedRequestId:i1(/^x-[\w-]+-id-2$/,G),cfId:i1(/^x-[\w-]+-cf-id$/,G)}}}catch(f){}}throw X}},i1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},F6=($)=>(T,w)=>async(P)=>{let{operationSchema:I}=nT.getSmithyContext(w),[,h,U,A,_,M]=I??[],Y=w.endpointV2?async()=>q6.toEndpointV1(w.endpointV2):$.endpoint,X=await $.protocol.serializeRequest(r1(h,U,A,_,M),P.input,{...$,...w,endpoint:Y});return T({...P,request:X})},tT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},iT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function z6($){return{applyToStack:(T)=>{T.add(F6($),iT),T.add(x6($),tT),$.protocol.setSerdeContext($)}}}class D{name;namespace;traits;static assign($,T){return Object.assign($,T)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}getName(){return this.namespace+"#"+this.name}}class t0 extends D{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t0.symbol}var S6=($,T,w,P)=>D.assign(new t0,{name:T,namespace:$,traits:w,valueSchema:P});class i0 extends D{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=i0.symbol}var j6=($,T,w,P,I)=>D.assign(new i0,{name:T,namespace:$,traits:w,keySchema:P,valueSchema:I});class u0 extends D{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=u0.symbol}var C6=($,T,w,P,I)=>D.assign(new u0,{name:T,namespace:$,traits:w,input:P,output:I});class N0 extends D{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=N0.symbol}var s6=($,T,w,P,I)=>D.assign(new N0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I});class r0 extends N0{static symbol=Symbol.for("@smithy/err");ctor;symbol=r0.symbol}var c6=($,T,w,P,I,h)=>D.assign(new r0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I,ctor:null}),d0=[];function O0($){if(typeof $==="object")return $;if($=$|0,d0[$])return d0[$];let T={},w=0;for(let P of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if(($>>w++&1)===1)T[P]=1;return d0[$]=T}var Q0={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},v0=[],n0={};class s{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=s.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor($,T){this.ref=$,this.memberName=T;let w=[],P=$,I=$;this._isMemberSchema=!1;while(u1(P))w.push(P[1]),P=P[0],I=m0(P),this._isMemberSchema=!0;if(w.length>0){this.memberTraits={};for(let h=w.length-1;h>=0;--h){let U=w[h];Object.assign(this.memberTraits,O0(U))}}else this.memberTraits=0;if(I instanceof s){let h=this.memberTraits;Object.assign(this,I),this.memberTraits=Object.assign({},h,I.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=T??I.memberName;return}if(this.schema=m0(I),uT(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(I),this.traits=0;if(this._isMemberSchema&&!T)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}static of($){let T=typeof $==="function"||typeof $==="object"&&$!==null;if(typeof $==="number"){if(v0[$])return v0[$]}else if(typeof $==="string"){if(n0[$])return n0[$]}else if(T){if($[Q0.ns])return $[Q0.ns]}let w=m0($);if(w instanceof s)return w;if(u1(w)){let[I,h]=w;if(I instanceof s)return Object.assign(I.getMergedTraits(),O0(h)),I;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify($,null,2)}.`)}let P=new s(w);if(T)return $[Q0.ns]=P;if(typeof w==="string")return n0[w]=P;if(typeof w==="number")return v0[w]=P;return P}getSchema(){let $=this.schema;if(Array.isArray($)&&$[0]===0)return $[4];return $}getName($=!1){let{name:T}=this;return!$&&T&&T.includes("#")?T.split("#")[1]:T||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let $=this.getSchema();return typeof $==="number"?$>=64&&$<128:$[0]===1}isMapSchema(){let $=this.getSchema();return typeof $==="number"?$>=128&&$<=255:$[0]===2}isStructSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;let T=$[0];return T===3||T===-3||T===4}isUnionSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;return $[0]===4}isBlobSchema(){let $=this.getSchema();return $===21||$===42}isTimestampSchema(){let $=this.getSchema();return typeof $==="number"&&$>=4&&$<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:$}=this.getMergedTraits();return!!$||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return O0(this.memberTraits)}getOwnTraits(){return O0(this.traits)}getKeySchema(){let[$,T]=[this.isDocumentSchema(),this.isMapSchema()];if(!$&&!T)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let w=this.getSchema(),P=$?15:w[4]??0;return V0([P,0],"key")}getValueSchema(){let $=this.getSchema(),[T,w,P]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],I=typeof $==="number"?63&$:$&&typeof $==="object"&&(w||P)?$[3+$[0]]:T?15:void 0;if(I!=null)return V0([I,0],w?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema($){let T=this.getSchema();if(this.isStructSchema()&&T[4].includes($)){let w=T[4].indexOf($),P=T[5][w];return V0(u1(P)?P:[P,0],$)}if(this.isDocumentSchema())return V0([15,0],$);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${$}.`)}getMemberSchemas(){let $={};try{for(let[T,w]of this.structIterator())$[T]=w}catch(T){}return $}getEventStreamMember(){if(this.isStructSchema()){for(let[$,T]of this.structIterator())if(T.isStreaming()&&T.isStructSchema())return $}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let $=this.getSchema(),T=$[4].length,w=$[Q0.it];if(w&&T===w.length){yield*w;return}w=Array(T);for(let P=0;P<T;++P){let I=$[4][P],h=V0([$[5][P],0],I);yield w[P]=[I,h]}$[Q0.it]=w}}function V0($,T){if($ instanceof s)return Object.assign($,{memberName:T,_isMemberSchema:!0});return new s($,T)}var u1=($)=>Array.isArray($)&&$.length===2,uT=($)=>Array.isArray($)&&$.length>=5;class L0 extends D{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=L0.symbol}var b6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:P,schemaRef:w}),k6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:w,schemaRef:P}),p6={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class C{namespace;schemas;exceptions;static registries=new Map;constructor($,T=new Map,w=new Map){this.namespace=$,this.schemas=T,this.exceptions=w}static for($){if(!C.registries.has($))C.registries.set($,new C($));return C.registries.get($)}copyFrom($){let{schemas:T,exceptions:w}=this;for(let[P,I]of $.schemas)if(!T.has(P))T.set(P,I);for(let[P,I]of $.exceptions)if(!w.has(P))w.set(P,I)}register($,T){let w=this.normalizeShapeId($);for(let P of[this,C.for(w.split("#")[0])])P.schemas.set(w,T)}getSchema($){let T=this.normalizeShapeId($);if(!this.schemas.has(T))throw Error(`@smithy/core/schema - schema not found for ${T}`);return this.schemas.get(T)}registerError($,T){let w=$,P=w[1];for(let I of[this,C.for(P)])I.schemas.set(P+"#"+w[2],w),I.exceptions.set(w,T)}getErrorCtor($){let T=$;if(this.exceptions.has(T))return this.exceptions.get(T);return C.for(T[1]).exceptions.get(T)}getBaseException(){for(let $ of this.exceptions.keys())if(Array.isArray($)){let[,T,w]=$,P=T+"#"+w;if(P.startsWith("smithy.ts.sdk.synthetic.")&&P.endsWith("ServiceException"))return $}return}find($){for(let T of this.schemas.values())if($(T))return T;return}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId($){if($.includes("#"))return $;return this.namespace+"#"+$}}y6.ErrorSchema=r0;y6.ListSchema=t0;y6.MapSchema=i0;y6.NormalizedSchema=s;y6.OperationSchema=u0;y6.SCHEMA=p6;y6.Schema=D;y6.SimpleSchema=L0;y6.StructureSchema=N0;y6.TypeRegistry=C;y6.deref=m0;y6.deserializerMiddlewareOption=tT;y6.error=c6;y6.getSchemaSerdePlugin=z6;y6.isStaticSchema=uT;y6.list=S6;y6.map=j6;y6.op=C6;y6.operation=r1;y6.serializerMiddlewareOption=iT;y6.sim=b6;y6.simAdapter=k6;y6.simpleSchemaCacheN=v0;y6.simpleSchemaCacheS=n0;y6.struct=s6;y6.traitsCache=d0;y6.translateTraits=O0});
|
|
17
|
-
export{P0 as Sla,h1 as Tla,D0 as Ula,C$ as Vla,F0 as Wla,ST as Xla,C0 as Yla};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FS as x,GS as d}from"./cli-0.1.15-8v8bskr0.mjs";import{RU as y,SU as g}from"./cli-0.1.15-68f0jtkh.mjs";import{HV as S}from"./cli-0.1.15-tp614m5f.mjs";import{VV as w,XV as F,aW as t}from"./cli-0.1.15-y6fkcbes.mjs";import{d3 as m,g3 as W,j3 as b,y3 as s}from"./cli-0.1.15-q35rzjnz.mjs";import{$4 as n,K4 as U}from"./cli-0.1.15-x69hfzmj.mjs";import{U$ as E,V5 as P,W5 as a,X$ as L,_5 as f,d6 as o,oaa as r}from"./cli-0.1.15-4892kydg.mjs";import{hda as A,ida as i}from"./cli-0.1.15-6mad0r56.mjs";import{wfa as G,zfa as u}from"./cli-0.1.15-nk50qhet.mjs";import{Zla as k,bma as K}from"./cli-0.1.15-mhbfhhf6.mjs";function v(z,N,J){let Q=Z.useRef(0),V=Z.useRef(void 0),X=Z.useCallback(()=>{if(V.current)clearTimeout(V.current),V.current=void 0},[]);return Z.useEffect(()=>{return()=>{X()}},[X]),Z.useCallback(()=>{let Y=Date.now();if(Y-Q.current<=T&&V.current!==void 0)X(),z(!1),N();else J?.(),z(!0),X(),V.current=setTimeout((j,H)=>{j(!1),H.current=void 0},T,z,V);Q.current=Y},[z,N,J,X])}var Z,T=800;var R=K(()=>{Z=k(S(),1)});function C(z,N,J,Q=!0){let{exit:V}=y(),[X,Y]=$.useState({pending:!1,keyName:null}),q=$.useMemo(()=>J??V,[J,V]),M=v((_)=>Y({pending:_,keyName:"Ctrl-C"}),q),j=v((_)=>Y({pending:_,keyName:"Ctrl-D"}),q),H=$.useCallback(()=>{if(N?.())return;M()},[M,N]),O=$.useCallback(()=>{j()},[j]),c=$.useMemo(()=>({"app:interrupt":H,"app:exit":O}),[H,O]);return z(c,{context:"Global",isActive:Q}),X}var $;var I=K(()=>{g();R();$=k(S(),1)});function Gz(z,N,J){return C(x,N,z,J)}var l=K(()=>{d();I()});async function e(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/eligibility`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:5000})).data}async function vz(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/redemptions`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:1e4})).data}function p(){return!!(W()?.organizationUuid&&m()&&b()==="max")}function Az(){if(!p())return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=W()?.organizationUuid;if(!z)return{eligible:!1,needsRefresh:!1,hasCache:!1};let J=L().passesEligibilityCache?.[z];if(!J)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Q,timestamp:V}=J,Y=Date.now()-V>h;return{eligible:Q,needsRefresh:Y,hasCache:!0}}function Uz(z){let N=zz[z.currency]??`${z.currency} `,J=z.amount_minor_units/100,Q=J%1===0?J.toString():J.toFixed(2);return`${N}${Q}`}function wz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.referrer_reward??null}function Fz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.remaining_passes??null}async function D(){if(B)return G("Passes: Reusing in-flight eligibility fetch"),B;let z=W()?.organizationUuid;if(!z)return null;return B=(async()=>{try{let N=await e(),J={...N,timestamp:Date.now()};return E((Q)=>({...Q,passesEligibilityCache:{...Q.passesEligibilityCache,[z]:J}})),G(`Passes eligibility cached for org ${z}: ${N.eligible}`),N}catch(N){return G("Failed to fetch and cache passes eligibility"),f(N),null}finally{B=null}})(),B}async function Jz(){if(!p())return null;let z=W()?.organizationUuid;if(!z)return null;let J=L().passesEligibilityCache?.[z],Q=Date.now();if(!J)return G("Passes: No cache, fetching eligibility in background (command unavailable this session)"),D(),null;if(Q-J.timestamp>h){G("Passes: Cache stale, returning cached data and refreshing in background"),D();let{timestamp:Y,...q}=J;return q}G("Passes: Using fresh cached eligibility data");let{timestamp:V,...X}=J;return X}async function Oz(){if(P())return;Jz()}var h=86400000,B=null,zz;var Nz=K(()=>{n();i();s();r();u();o();a();t();zz={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{v as CR,R as DR,Gz as ER,l as FR,vz as GR,Az as HR,Uz as IR,wz as JR,Fz as KR,Jz as LR,Oz as MR,Nz as NR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bma as s}from"./cli-0.1.15-mhbfhhf6.mjs";function o(){return"claude-code/99.0.0"}function c(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudio/0.1.15 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
-
export{o as OV,c as PV,r as QV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ae as _,be as v}from"./cli-0.1.15-23cavaaa.mjs";import{Sf as Z,Uf as P}from"./cli-0.1.15-s7trme0x.mjs";import{WJ as Y,_J as A,pj as V,rj as C}from"./cli-0.1.15-26hkdean.mjs";import{AS as X,DS as K}from"./cli-0.1.15-8v8bskr0.mjs";import{EV as H,GV as Q}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as W}from"./cli-0.1.15-tp614m5f.mjs";import{Oda as L,Pda as U}from"./cli-0.1.15-11sdbfxy.mjs";import{Zla as B,bma as M}from"./cli-0.1.15-mhbfhhf6.mjs";function x({children:q}){let{bindings:D}=V(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(X,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function y(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function b(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let T=(w)=>Z(H(Y,{children:H(x,{children:H(_,{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+=y(w);for(let w=0;w<N;w+=I){let O=await T([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await b(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var j=M(()=>{U();v();K();C();A();P();Q();J=B(W(),1)});
|
|
2
|
-
export{l as ob,j as pb};
|