@shumai-one/shumai 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/chunk-0e0g5c55.js +2 -0
- package/bin/{chunk-esj0kwe5.js → chunk-0gcemkpv.js} +6 -6
- package/bin/chunk-13ty4xke.js +1 -0
- package/bin/chunk-1dm7f6hy.js +2 -0
- package/bin/{chunk-hg3rkp41.js → chunk-1nwkxgqh.js} +7 -7
- package/bin/{chunk-ezjxx44x.js → chunk-1rdgrtnf.js} +3 -3
- package/bin/{chunk-20bamhwa.js → chunk-1tme4nbm.js} +2 -2
- package/bin/chunk-1vx92153.js +3 -0
- package/bin/{chunk-mn71dffh.js → chunk-2168vwre.js} +2 -2
- package/bin/{chunk-34f64q0q.js → chunk-24yh3wse.js} +2 -2
- package/bin/{chunk-9405hzv2.js → chunk-2as0w380.js} +2 -2
- package/bin/chunk-2hk5cb40.js +2 -0
- package/bin/{chunk-enax4303.js → chunk-2nhp70zw.js} +2 -2
- package/bin/{chunk-wgvgtttc.js → chunk-2scr7dh6.js} +3 -3
- package/bin/chunk-31v0zy13.js +1 -0
- package/bin/{chunk-w6g84d59.js → chunk-37mc5a09.js} +4 -4
- package/bin/{chunk-0rgbxp24.js → chunk-3rde6gkg.js} +2 -2
- package/bin/{chunk-bd3v8mp1.js → chunk-3w0w0a55.js} +4 -4
- package/bin/{chunk-yb4mzqrd.js → chunk-4abr8vgg.js} +3 -3
- package/bin/chunk-4jj26kmx.js +1 -0
- package/bin/chunk-4yen4chz.js +2 -0
- package/bin/{chunk-vmwys2ch.js → chunk-56h2f6s6.js} +1 -1
- package/bin/{chunk-6nqqe7w9.js → chunk-56qqbtkr.js} +1 -1
- package/bin/{chunk-cp96e9pq.js → chunk-5pfagexe.js} +1 -1
- package/bin/{chunk-dkhdn92k.js → chunk-5sbcajbb.js} +2 -2
- package/bin/chunk-67p46cwk.js +218 -0
- package/bin/{chunk-95b4mwyq.js → chunk-6g2gv3py.js} +1 -1
- package/bin/{chunk-femnbfkj.js → chunk-7tdq7apk.js} +2 -2
- package/bin/{chunk-q8xr1a8j.js → chunk-8cqpyrbp.js} +2 -2
- package/bin/{chunk-sz5zawfw.js → chunk-8xn2mfp0.js} +2 -2
- package/bin/{chunk-9x42vgeq.js → chunk-8z3hdcaf.js} +6 -6
- package/bin/chunk-95ygezr5.js +1 -0
- package/bin/{chunk-1e1q1hyg.js → chunk-99szdzq8.js} +2 -2
- package/bin/{chunk-jt02kpfc.js → chunk-9qzbrp4d.js} +2 -2
- package/bin/{chunk-brgns7hv.js → chunk-9s35n63t.js} +1 -1
- package/bin/chunk-9tqrbttj.js +2 -0
- package/bin/{chunk-vnmggrd6.js → chunk-9xv33vgz.js} +8 -8
- package/bin/{chunk-dygj751y.js → chunk-9yj86mgf.js} +11 -11
- package/bin/chunk-a3dtyc64.js +2 -0
- package/bin/chunk-a4xq9f8p.js +1 -0
- package/bin/{chunk-5ddg5ezb.js → chunk-am7ssc4m.js} +21 -21
- package/bin/chunk-anjvapqf.js +2 -0
- package/bin/chunk-at55wjdn.js +1 -0
- package/bin/{chunk-7kah3zb5.js → chunk-b119q3jq.js} +2 -2
- package/bin/{chunk-4p31kxjh.js → chunk-b9z3hasx.js} +2 -2
- package/bin/{chunk-1ja2zw4w.js → chunk-bdze4wyd.js} +1 -1
- package/bin/{chunk-7mawxsk3.js → chunk-bp9g1ryv.js} +2 -2
- package/bin/{chunk-sz19nn1x.js → chunk-bq6ejr4g.js} +1 -1
- package/bin/chunk-by9esjn7.js +3 -0
- package/bin/{chunk-h2bphev9.js → chunk-cxqn0b0p.js} +2 -2
- package/bin/{chunk-k7vbk8v4.js → chunk-d5nfx4q4.js} +2 -2
- package/bin/{chunk-1y6h4vge.js → chunk-d7kcj1qb.js} +1 -1
- package/bin/{chunk-hsyfrzdd.js → chunk-dbz6z4px.js} +1 -1
- package/bin/{chunk-j2txsbxz.js → chunk-djzt77c5.js} +2 -2
- package/bin/{chunk-r6t0j0jx.js → chunk-dvmc5582.js} +4 -4
- package/bin/{chunk-3vpz5nat.js → chunk-e0q5yk34.js} +1 -1
- package/bin/chunk-e572r4hv.js +2 -0
- package/bin/{chunk-s74g9vsk.js → chunk-efst3j5m.js} +1 -1
- package/bin/chunk-enkjvx7r.js +2 -0
- package/bin/chunk-f5xv3hp5.js +1 -0
- package/bin/chunk-f9v2qyv7.js +1 -0
- package/bin/chunk-fwwed2e7.js +1 -0
- package/bin/chunk-gm16qx23.js +2 -0
- package/bin/{chunk-7jz3cmq6.js → chunk-h21qqtcm.js} +1 -1
- package/bin/chunk-h329v9bx.js +1 -0
- package/bin/{chunk-19zbh4fr.js → chunk-hgz8t5vr.js} +1 -1
- package/bin/{chunk-3s2ga6mt.js → chunk-j26g68k6.js} +1 -1
- package/bin/{chunk-f8hgy69t.js → chunk-jc8e55pe.js} +2 -2
- package/bin/{chunk-jc7dycy6.js → chunk-jcrxmzdh.js} +1 -1
- package/bin/{chunk-zx1c4vm5.js → chunk-jd8sv7fn.js} +31 -31
- package/bin/chunk-jpeqvw4x.js +2 -0
- package/bin/{chunk-09mpcg9x.js → chunk-k3ggy3xk.js} +2 -2
- package/bin/{chunk-etrm28sy.js → chunk-k7r26qtq.js} +2 -2
- package/bin/chunk-kj7ntaz0.js +2 -0
- package/bin/{chunk-7546ptwg.js → chunk-kvf4grps.js} +8 -8
- package/bin/{chunk-p2vsdnd1.js → chunk-kxydqne9.js} +2 -2
- package/bin/{chunk-0a298n62.js → chunk-m37nbhsq.js} +2 -2
- package/bin/{chunk-te484xtb.js → chunk-m5nn6eqe.js} +3 -3
- package/bin/chunk-mbe02vkx.js +2 -0
- package/bin/chunk-mg64qh5j.js +2 -0
- package/bin/{chunk-mn0kt3p6.js → chunk-mxgztw4q.js} +1 -1
- package/bin/{chunk-bbxwyhz3.js → chunk-n7skpwvd.js} +3 -3
- package/bin/chunk-n8q8hv6c.js +2 -0
- package/bin/chunk-ncdzf0ry.js +1 -0
- package/bin/{chunk-pq6kdp83.js → chunk-nd3fd097.js} +3 -3
- package/bin/{chunk-tfrevef9.js → chunk-p50y3e5b.js} +1 -1
- package/bin/{chunk-v0yevesp.js → chunk-p7ccvw8m.js} +5 -5
- package/bin/{chunk-npeapp7e.js → chunk-pjkvwhfj.js} +2 -2
- package/bin/{chunk-a74g6h8a.js → chunk-q43m934j.js} +2 -2
- package/bin/{chunk-09mj32d7.js → chunk-qax7bbp9.js} +1 -1
- package/bin/{chunk-4vjgdj0h.js → chunk-qrx5txys.js} +1 -1
- package/bin/chunk-r5gqxy70.js +1 -0
- package/bin/{chunk-gyv3yrhj.js → chunk-r6jg9baj.js} +1 -1
- package/bin/chunk-ra209cbg.js +12 -0
- package/bin/chunk-s3a5g11a.js +2 -0
- package/bin/{chunk-qvp24w0q.js → chunk-s4hy0ved.js} +2 -2
- package/bin/chunk-s8ff3cb2.js +2 -0
- package/bin/chunk-svr8n1ah.js +2 -0
- package/bin/{chunk-atpt99h4.js → chunk-swtgq58j.js} +12 -12
- package/bin/chunk-sxfq2z7e.js +1 -0
- package/bin/{chunk-eyjfhdp9.js → chunk-t3dwzd1a.js} +2 -2
- package/bin/chunk-t96f1wsa.js +1 -0
- package/bin/{chunk-zkvezz89.js → chunk-tanzerf7.js} +1 -1
- package/bin/{chunk-addssm8d.js → chunk-tjkhapvh.js} +1 -1
- package/bin/chunk-tzn128yj.js +129 -0
- package/bin/{chunk-q5x0yywj.js → chunk-v1fwt3x3.js} +2 -2
- package/bin/chunk-v4gtta3t.js +2 -0
- package/bin/{chunk-vv0m0m2f.js → chunk-v9zvfvrc.js} +4 -4
- package/bin/chunk-va39tgjj.js +2 -0
- package/bin/chunk-vgxtr5nw.js +2 -0
- package/bin/chunk-vnsz4x0d.js +1 -0
- package/bin/chunk-vqpycf0d.js +2 -0
- package/bin/{chunk-6f3zhq64.js → chunk-w0ada4tc.js} +3 -3
- package/bin/chunk-w6mpqhh2.css +1 -0
- package/bin/{chunk-erfkd3z9.js → chunk-wgnef4mm.js} +2 -2
- package/bin/{chunk-e55sgg8t.js → chunk-wvf465g9.js} +1 -1
- package/bin/chunk-wzkyz0ex.js +2 -0
- package/bin/chunk-x144hpna.js +3 -0
- package/bin/chunk-x243v26y.js +10 -0
- package/bin/{chunk-25npafhz.js → chunk-xak0x4rg.js} +2 -2
- package/bin/{chunk-z0de127n.js → chunk-xge7jvp6.js} +4 -4
- package/bin/chunk-xhm4w6k2.js +2 -0
- package/bin/{chunk-atdfqdkj.js → chunk-xhmcdf36.js} +4 -4
- package/bin/{chunk-d55138xx.js → chunk-xz2pzjse.js} +2 -2
- package/bin/chunk-y4v4jnvv.js +3 -0
- package/bin/{chunk-3hgrw1m0.js → chunk-y63cy80d.js} +5 -5
- package/bin/{chunk-s6pk2zyg.js → chunk-ym7pb5vn.js} +5 -5
- package/bin/chunk-yq06kytp.js +2 -0
- package/bin/chunk-yw34c12n.js +1 -0
- package/bin/{chunk-a859y4e1.js → chunk-zeq831pz.js} +2 -2
- package/bin/{chunk-y3haqtr8.js → chunk-zhhg6att.js} +2 -2
- package/bin/{chunk-ddmf9gqv.js → chunk-zhq7a7hs.js} +2 -2
- package/bin/chunk-zkq96hyx.js +2 -0
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +470 -389
- package/package.json +7 -7
- package/prisma/migrations/20261102032402_add_archive_storage/migration.sql +25 -0
- package/prisma/schema.prisma +12 -6
- package/bin/chunk-02b5bcmc.js +0 -1
- package/bin/chunk-1tar0x8s.js +0 -7
- package/bin/chunk-20w1w9x7.js +0 -2
- package/bin/chunk-2qgagdb7.js +0 -1
- package/bin/chunk-2t6g3pny.js +0 -3
- package/bin/chunk-50pfmxt1.js +0 -2
- package/bin/chunk-5ngftxjb.js +0 -218
- package/bin/chunk-6t525bmg.js +0 -1
- package/bin/chunk-88jg9dq5.js +0 -2
- package/bin/chunk-8qdtvfx3.css +0 -1
- package/bin/chunk-8ww98y1m.js +0 -2
- package/bin/chunk-9vxmgvc8.js +0 -2
- package/bin/chunk-ajq9sxg0.js +0 -129
- package/bin/chunk-amp9h878.js +0 -2
- package/bin/chunk-awshe30f.js +0 -1
- package/bin/chunk-b3t7gbhm.js +0 -2
- package/bin/chunk-c02727j9.js +0 -2
- package/bin/chunk-c1wvs81k.js +0 -2
- package/bin/chunk-c8frmqsk.js +0 -2
- package/bin/chunk-cagzye3j.js +0 -2
- package/bin/chunk-djb65frk.js +0 -1
- package/bin/chunk-dx9f5wab.js +0 -1
- package/bin/chunk-ex3174e3.js +0 -2
- package/bin/chunk-f4xnx4n6.js +0 -1
- package/bin/chunk-fakph5jp.js +0 -1
- package/bin/chunk-ffjdkdcv.js +0 -2
- package/bin/chunk-gd016e9p.js +0 -2
- package/bin/chunk-h3atwgx2.js +0 -1
- package/bin/chunk-h7xny3de.js +0 -2
- package/bin/chunk-hpzk9k55.js +0 -1
- package/bin/chunk-hvyy8vct.js +0 -3
- package/bin/chunk-j2s311yc.js +0 -3
- package/bin/chunk-j6x53e33.js +0 -1
- package/bin/chunk-jacanzp7.js +0 -1
- package/bin/chunk-pdw77q09.js +0 -2
- package/bin/chunk-ptcz4ed3.js +0 -2
- package/bin/chunk-q1fzgqsv.js +0 -2
- package/bin/chunk-q4ny4hpt.js +0 -2
- package/bin/chunk-q8ysc5ex.js +0 -1
- package/bin/chunk-qm50g4n5.js +0 -10
- package/bin/chunk-s1j4v33x.js +0 -2
- package/bin/chunk-t68y25gf.js +0 -1
- package/bin/chunk-thpw6tcj.js +0 -2
- package/bin/chunk-vj4gamdn.js +0 -2
- package/bin/chunk-xy9qpn6b.js +0 -1
- package/bin/chunk-y5dv67mg.js +0 -2
- package/bin/chunk-z8t6e0ee.js +0 -1
- package/bin/chunk-zfg4yy3c.js +0 -2
- package/bin/chunk-zrrnvdxq.js +0 -3
- package/bin/chunk-zzqse5qc.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{gr,
|
|
2
|
+
import{gr,ar}from"./chunk-9xv33vgz.js";import{Z,le}from"./chunk-b9z3hasx.js";var Ns=Z(function(de){var{hasOwn:z}=gr(),{streamCollector:ee}=gr();de.streamCollector=ee;var{buildQueryString:V,HttpResponse:K}=ar(),E=le("https"),{Readable:te}=le("stream"),_=le("http2");function I(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let n=Error(String(t));return n.name="AbortError",n}let o=Error("Request aborted");return o.name="AbortError",o}var oe=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let o in e){if(!z(e,o))continue;let n=e[o];t[o]=Array.isArray(n)?n.join(","):n}return t},h={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},q=1000,ne=(e,t,o=0)=>{if(!o)return-1;let n=(s)=>{let i=h.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${o} ms.`),{name:"TimeoutError"}))},o-s),c=(a)=>{if(a?.connecting)a.on("connect",()=>{h.clearTimeout(i)});else h.clearTimeout(i)};if(e.socket)c(e.socket);else e.on("socket",c)};if(o<2000)return n(0),0;return h.setTimeout(n.bind(null,q),q)},se=(e,t,o=0,n,s)=>{if(o)return h.setTimeout(()=>{let i=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${o} ms requestTimeout.`;if(n){let c=Object.assign(Error(i),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else i+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(i)},o);return-1},re=3000,ie=(e,{keepAlive:t,keepAliveMsecs:o},n=re)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,o||0);else e.on("socket",(i)=>{i.setKeepAlive(t,o||0)})};if(n===0)return s(),0;return h.setTimeout(s,n)},F=3000,ce=(e,t,o=0)=>{let n=(s)=>{let i=o-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${o} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(i,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(i,c)};if(0<o&&o<6000)return n(0),0;return h.setTimeout(n.bind(null,o===0?0:F),F)},j=6000;async function J(e,t,o=j,n=!1){let s=t.headers,i=s?s.Expect||s.expect:void 0,c=-1,a=!0;if(!n&&i==="100-continue")a=await Promise.race([new Promise((u)=>{c=Number(h.setTimeout(()=>u(!0),Math.max(j,o)))}),new Promise((u)=>{e.on("continue",()=>{h.clearTimeout(c),u(!0)}),e.on("response",()=>{h.clearTimeout(c),u(!1)}),e.on("error",()=>{h.clearTimeout(c),u(!1)})})]);if(a)ae(e,t.body)}function ae(e,t){if(t instanceof te){t.pipe(e);return}if(t){let o=Buffer.isBuffer(t);if(o||typeof t==="string"){if(o&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ue=0,H=void 0,B=void 0;class L{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new L(e)}static checkSocketUsage(e,t,o=console){let{sockets:n,requests:s,maxSockets:i}=e;if(typeof i!=="number"||i===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(n&&s)for(let a in n){if(!z(n,a))continue;let u=n[a]?.length??0,l=s[a]?.length??0;if(u>=i&&l>=2*i)return o?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${l} additional requests are enqueued.
|
|
3
3
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
4
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,o)=>{if(typeof e==="function")e().then((n)=>{t(this.resolveDefaultConfig(n))}).catch(o);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:o}={}){if(!this.config)this.config=await this.configProvider;let n=this.config,s=n.logger,i=e.protocol==="https:";if(!i&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((c,a)=>{let u=void 0,l=-1,m=-1,T=-1,C=-1,w=-1,k=()=>{h.clearTimeout(l),h.clearTimeout(m),h.clearTimeout(T),h.clearTimeout(C),h.clearTimeout(w)},U=async(r)=>{await u,k(),c(r)},p=async(r)=>{await u,k(),a(r)};if(t?.aborted){let r=I(t);p(r);return}let S=e.headers,D=S?(S.Expect??S.expect)==="100-continue":!1,x=i?n.httpsAgent:n.httpAgent;if(D&&!this.externalAgent)x=new(i?E.Agent:H)({keepAlive:!1,maxSockets:1/0});l=h.setTimeout(()=>{this.socketWarningTimestamp=L.checkSocketUsage(x,this.socketWarningTimestamp,s)},n.socketAcquisitionWarningTimeout??(n.requestTimeout??2000)+(n.connectionTimeout??1000));let O=e.query?V(e.query):"",v=void 0;if(e.username!=null||e.password!=null){let r=e.username??"",f=e.password??"";v=`${r}:${f}`}let P=e.path;if(O)P+=`?${O}`;if(e.fragment)P+=`#${e.fragment}`;let y=e.hostname??"";if(y[0]==="["&&y.endsWith("]"))y=e.hostname.slice(1,-1);else y=e.hostname;let R={headers:e.headers,host:y,method:e.method,path:P,port:e.port,agent:x,auth:v},g=(i?E.request:B)(R,(r)=>{let f=new K({statusCode:r.statusCode||-1,reason:r.statusMessage,headers:Q(r.headers),body:r});U({response:f})});if(g.on("error",(r)=>{if(oe.includes(r.code))p(Object.assign(r,{name:"TimeoutError"}));else p(r)}),t){let r=()=>{g.destroy();let f=I(t);p(f)};if(typeof t.addEventListener==="function"){let f=t;f.addEventListener("abort",r,{once:!0}),g.once("close",()=>f.removeEventListener("abort",r))}else t.onabort=r}let b=o??n.requestTimeout;m=ne(g,p,n.connectionTimeout),T=se(g,p,b,n.throwOnRequestTimeout,s??console),C=ce(g,p,n.socketTimeout);let d=R.agent;if(typeof d==="object"&&"keepAlive"in d)w=ie(g,{keepAlive:d.keepAlive,keepAliveMsecs:d.keepAliveMsecs});u=J(g,e,b,this.externalAgent).catch((r)=>(k(),a(r)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((o)=>{if(e===Symbol.for("logger"))return{...o,logger:o.logger??t};return{...o,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:o,socketTimeout:n,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:c,throwOnRequestTimeout:a,logger:u}=e||{},l=!0,m=50;return{connectionTimeout:o,requestTimeout:t,socketTimeout:n,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:a,httpAgentProvider:async()=>{let T=
|
|
5
|
-
export{
|
|
4
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,o)=>{if(typeof e==="function")e().then((n)=>{t(this.resolveDefaultConfig(n))}).catch(o);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:o}={}){if(!this.config)this.config=await this.configProvider;let n=this.config,s=n.logger,i=e.protocol==="https:";if(!i&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((c,a)=>{let u=void 0,l=-1,m=-1,T=-1,C=-1,w=-1,k=()=>{h.clearTimeout(l),h.clearTimeout(m),h.clearTimeout(T),h.clearTimeout(C),h.clearTimeout(w)},U=async(r)=>{await u,k(),c(r)},p=async(r)=>{await u,k(),a(r)};if(t?.aborted){let r=I(t);p(r);return}let S=e.headers,D=S?(S.Expect??S.expect)==="100-continue":!1,x=i?n.httpsAgent:n.httpAgent;if(D&&!this.externalAgent)x=new(i?E.Agent:H)({keepAlive:!1,maxSockets:1/0});l=h.setTimeout(()=>{this.socketWarningTimestamp=L.checkSocketUsage(x,this.socketWarningTimestamp,s)},n.socketAcquisitionWarningTimeout??(n.requestTimeout??2000)+(n.connectionTimeout??1000));let O=e.query?V(e.query):"",v=void 0;if(e.username!=null||e.password!=null){let r=e.username??"",f=e.password??"";v=`${r}:${f}`}let P=e.path;if(O)P+=`?${O}`;if(e.fragment)P+=`#${e.fragment}`;let y=e.hostname??"";if(y[0]==="["&&y.endsWith("]"))y=e.hostname.slice(1,-1);else y=e.hostname;let R={headers:e.headers,host:y,method:e.method,path:P,port:e.port,agent:x,auth:v},g=(i?E.request:B)(R,(r)=>{let f=new K({statusCode:r.statusCode||-1,reason:r.statusMessage,headers:Q(r.headers),body:r});U({response:f})});if(g.on("error",(r)=>{if(oe.includes(r.code))p(Object.assign(r,{name:"TimeoutError"}));else p(r)}),t){let r=()=>{g.destroy();let f=I(t);p(f)};if(typeof t.addEventListener==="function"){let f=t;f.addEventListener("abort",r,{once:!0}),g.once("close",()=>f.removeEventListener("abort",r))}else t.onabort=r}let b=o??n.requestTimeout;m=ne(g,p,n.connectionTimeout),T=se(g,p,b,n.throwOnRequestTimeout,s??console),C=ce(g,p,n.socketTimeout);let d=R.agent;if(typeof d==="object"&&"keepAlive"in d)w=ie(g,{keepAlive:d.keepAlive,keepAliveMsecs:d.keepAliveMsecs});u=J(g,e,b,this.externalAgent).catch((r)=>(k(),a(r)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((o)=>{if(e===Symbol.for("logger"))return{...o,logger:o.logger??t};return{...o,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:o,socketTimeout:n,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:c,throwOnRequestTimeout:a,logger:u}=e||{},l=!0,m=50;return{connectionTimeout:o,requestTimeout:t,socketTimeout:n,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:a,httpAgentProvider:async()=>{let T=le("http"),{Agent:C,request:w}=T.default??T;if(B=w,H=C,i instanceof H||typeof i?.destroy==="function")return this.externalAgent=!0,i;return new H({keepAlive:!0,maxSockets:50,...i})},httpsAgent:(()=>{if(c instanceof E.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new E.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:u}}}var fe=new Uint16Array(1);class M{id=fe[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class G{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new M(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class X{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let o=this.getUrlString(e),n=this.getPool(o);if(!this.config.disableConcurrency&&!t.isEventStream){let u=n.poll();if(u)return u.retain(),u}let s=new M(this.connect(o)),i=s.deref();if(this.config.maxConcurrency)i.settings({maxConcurrentStreams:this.config.maxConcurrency},(u)=>{if(u)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(o,s)},a=()=>{this.removeFromPoolAndCheckedDestroy(o,s)};if(i.on("goaway",c),i.on("error",a),i.on("frameError",a),i.on("close",a),t.requestTimeout)i.setTimeout(t.requestTimeout,a);return n.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let o=this.getUrlString(e),n=new M(this.connect(o)),s=n.deref();s.settings({maxConcurrentStreams:1});let i=()=>{n.destroy()};if(s.on("error",i),s.on("frameError",i),s.on("close",i),t.requestTimeout)s.setTimeout(t.requestTimeout,i);return n.retain(),n}destroy(){for(let[e,t]of this.connectionPools){for(let o of[...t])o.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,o]of this.connectionPools){let n=[];for(let s of o)n.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:n}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new G;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?_.connect(e):_.connect(e,this.connectOptions)}}var{constants:W}=_;class N{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new X({});static create(e){if(typeof e?.handle==="function")return e;return new N(e)}constructor(e){this.configProvider=new Promise((t,o)=>{if(typeof e==="function")e().then((n)=>{t(n||{})}).catch(o);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:o,isEventStream:n}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(u??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:i}=this.config,c=i||n,a=o??s;return new Promise((u,l)=>{let m=!1,T=void 0,C=async(r)=>{await T,u(r)},w=async(r)=>{await T,l(r)};if(t?.aborted){m=!0;let r=I(t);w(r);return}let{hostname:k,method:U,port:p,protocol:S,query:D}=e,x="";if(e.username!=null||e.password!=null){let r=e.username??"",f=e.password??"";x=`${r}:${f}@`}let O=`${S}//${x}${k}${p?`:${p}`:""}`,v={destination:new URL(O)},P={requestTimeout:this.config?.sessionTimeout,isEventStream:n},y=c?this.connectionManager.createIsolatedSession(v,P):this.connectionManager.lease(v,P),R=y.deref(),A=(r)=>{if(c)y.destroy();m=!0,w(r)},g=D?V(D):"",b=e.path;if(g)b+=`?${g}`;if(e.fragment)b+=`#${e.fragment}`;let d=R.request({...e.headers,[W.HTTP2_HEADER_PATH]:b,[W.HTTP2_HEADER_METHOD]:U});if(a)d.setTimeout(a,()=>{d.close();let r=Error(`Stream timed out because of no activity for ${a} ms`);r.name="TimeoutError",A(r)});if(t){let r=()=>{d.close();let f=I(t);A(f)};if(typeof t.addEventListener==="function"){let f=t;f.addEventListener("abort",r,{once:!0}),d.once("close",()=>f.removeEventListener("abort",r))}else t.onabort=r}d.on("frameError",(r,f,Y)=>{A(Error(`Frame type id ${r} in stream id ${Y} has failed with code ${f}.`))}),d.on("error",A),d.on("aborted",()=>{A(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${d.rstCode}.`))}),d.on("response",(r)=>{let f=new K({statusCode:r[":status"]??-1,headers:Q(r),body:d});if(m=!0,C({response:f}),c)R.close()}),d.on("close",()=>{if(c)y.destroy();else this.connectionManager.release(v,y);if(!m)A(Error("Unexpected error: http2 request did not get a response"))}),T=J(d,e,a)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((o)=>({...o,[e]:t}))}httpHandlerConfigs(){return this.config??{}}}de.DEFAULT_REQUEST_TIMEOUT=ue;de.NodeHttp2Handler=N;de.NodeHttpHandler=L});
|
|
5
|
+
export{Ns};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S,L,a,ee,Je,R,Ft,$t,Xg}from"./chunk-67p46cwk.js";import"./chunk-2as0w380.js";import"./chunk-x243v26y.js";import"./chunk-1dm7f6hy.js";import"./chunk-xz2pzjse.js";import{fc}from"./chunk-jd8sv7fn.js";import"./chunk-djzt77c5.js";import"./chunk-zeq831pz.js";import"./chunk-8xn2mfp0.js";import{yr}from"./chunk-v4gtta3t.js";import"./chunk-m37nbhsq.js";import"./chunk-mg64qh5j.js";import"./chunk-svr8n1ah.js";L();function m(){let{projectId:e}=c.useParams(),{teamId:r,ensureTeamIdForProject:t}=Ft();S(()=>{t(e)},[e,t]);let{data:n}=yr(Xg(e)),o=n?.rootFolder,{data:s}=ee({queryKey:["folders",o],queryFn:async()=>{let d=await R.api.folders[":folderId"].$get({param:{folderId:o}});if(!d.ok)throw Error("failed to fetch folder");return await d.json()},enabled:!!o});if(!r||!o||!s)return a($t,{});return a(fc,{teamId:r,projectId:e,projectName:n.name??"",assetId:o,rootFolderId:o,isRoot:!0})}var c=Je("/projects/$projectId/agentsmd")({component:m});export{c as Route};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Nr}from"./chunk-y4v4jnvv.js";import{bo,nd}from"./chunk-3w0w0a55.js";var a=class{get supportsCreateIfNotExists(){return!0}get supportsTransactionalDdl(){return!1}get supportsReturning(){return!0}async acquireMigrationLock(){}async releaseMigrationLock(){}get supportsOutput(){return!0}},c=class{#e;#t=new l;#r;#n;constructor(e){this.#e={...e}}async init(){if(this.#r=this.#e.database,this.#n=new u(this.#r),this.#e.onCreateConnection)await this.#e.onCreateConnection(this.#n)}async acquireConnection(){return await this.#t.lock(),this.#n}async beginTransaction(e){await e.executeQuery(Nr.raw("begin"))}async commitTransaction(e){await e.executeQuery(Nr.raw("commit"))}async rollbackTransaction(e){await e.executeQuery(Nr.raw("rollback"))}async releaseConnection(){this.#t.unlock()}async destroy(){this.#r?.close()}},u=class{#e;constructor(e){this.#e=e}executeQuery(e){let{sql:s,parameters:i}=e,t=this.#e.prepare(s),n=i;if(t.columnNames.length>0)return Promise.resolve({rows:t.all(...n)});let{changes:o,lastInsertRowid:r}=t.run(...n);return Promise.resolve({rows:[],numAffectedRows:BigInt(o),insertId:typeof r==="bigint"?r:BigInt(r)})}async*streamQuery(){throw Error("Streaming query is not supported by SQLite driver.")}},l=class{#e;#t;async lock(){while(this.#e!==void 0)await this.#e;this.#e=new Promise((e)=>{this.#t=e})}unlock(){let e=this.#t;this.#e=void 0,this.#t=void 0,e?.()}},p=class extends bo{getCurrentParameterPlaceholder(){return"?"}getLeftIdentifierWrapper(){return'"'}getRightIdentifierWrapper(){return'"'}getAutoIncrement(){return"autoincrement"}},y=class{#e;constructor(e){this.#e={...e}}createDriver(){return new c(this.#e)}createQueryCompiler(){return new p}createAdapter(){return new a}createIntrospector(e){return nd(e)}};export{y as BunSqliteDialect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S,w,L,W,a,g,We,
|
|
1
|
+
import{S,w,L,W,a,g,We,Xn,Je,j,Wt,Ar,V,Bo,Fn,N,HA,$E,HE,zh,qh,$I,E1,x1,ug,Rk,Mk,Ok,v0,iM,aM,re,x,q,fe,Ta,bu,wu}from"./chunk-67p46cwk.js";var f=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],c=j("key-round",f);L();var h=q({password:x().min(3,ug()),confirmPassword:x().min(3,ug())}).refine((s)=>s.password===s.confirmPassword,{message:Ok(),path:["confirmPassword"]}),v=Je("/reset-password")({component:b});function b(){let s=We(),r=v.useSearch().token||"",[d,t]=w(null),[n,l]=w(!1),[o,u]=w(!1),e=bu({resolver:wu(h),defaultValues:{password:"",confirmPassword:""}});S(()=>{if(o){let i=setTimeout(()=>{s({to:"/login"})},3000);return()=>clearTimeout(i)}},[o,s]);let p=async(i)=>{if(!r){t(qh());return}l(!0),t(null);let{error:m}=await HA({newPassword:i.password,token:r});if(l(!1),m){t(m.message||qh());return}u(!0)};return g(Ta,{children:[g("div",{className:"mb-8",children:[a("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:v0()}),a("p",{className:"text-muted-foreground text-sm mt-1",children:iM()})]}),!r?g("div",{className:"space-y-6",children:[g("div",{className:"p-4 bg-destructive/10 border border-destructive/20 text-destructive rounded-xl text-sm flex items-start gap-3",children:[a(Wt,{className:"w-5 h-5 shrink-0 mt-0.5"}),g("div",{className:"space-y-1",children:[a("p",{className:"font-semibold",children:qh()}),a("p",{className:"text-xs text-muted-foreground",children:$I()})]})]}),a(Xn,{to:"/login",className:"block w-full",children:g(N,{variant:"outline",className:"w-full h-11 rounded-xl flex items-center justify-center gap-2",children:[zh(),a(Bo,{className:"w-4 h-4"})]})})]}):o?g("div",{className:"space-y-6",children:[g("div",{className:"p-4 bg-emerald-500/10 border border-emerald-500/20 text-emerald-600 dark:text-emerald-400 rounded-xl text-sm flex items-start gap-3",children:[a(Ar,{className:"w-5 h-5 shrink-0 mt-0.5"}),g("div",{className:"space-y-1",children:[a("p",{className:"font-semibold",children:Rk()}),a("p",{className:"text-xs text-muted-foreground",children:Mk()})]})]}),a(Xn,{to:"/login",className:"block w-full",children:g(N,{className:"w-full h-11 bg-gradient-to-r from-rose-500 to-orange-500 hover:from-rose-600 hover:to-orange-600 text-white font-semibold rounded-xl shadow-md shadow-rose-500/10 hover:shadow-rose-500/20 active:scale-[0.98] transition-all flex items-center justify-center gap-2 border-0",children:[zh(),a(Bo,{className:"w-4 h-4"})]})})]}):g("form",{onSubmit:e.handleSubmit(p),className:"space-y-5",children:[d&&a("div",{className:"p-3 bg-destructive/10 border border-destructive/20 text-destructive rounded-xl text-sm text-center font-medium",children:d}),g("div",{className:"space-y-2",children:[a(fe,{htmlFor:"password",className:"text-xs font-semibold text-muted-foreground tracking-wide uppercase",children:E1()}),g("div",{className:"relative group",children:[a(Fn,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground transition-colors group-focus-within:text-rose-500"}),a(re,{id:"password",type:"password",...e.register("password"),placeholder:x1(),className:"pl-10.5 h-11 border-border focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),e.formState.errors.password&&a("p",{className:"text-destructive text-xs font-medium",children:e.formState.errors.password.message})]}),g("div",{className:"space-y-2",children:[a(fe,{htmlFor:"confirmPassword",className:"text-xs font-semibold text-muted-foreground tracking-wide uppercase",children:$E()}),g("div",{className:"relative group",children:[a(Fn,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground transition-colors group-focus-within:text-rose-500"}),a(re,{id:"confirmPassword",type:"password",...e.register("confirmPassword"),placeholder:HE(),className:"pl-10.5 h-11 border-border focus-visible:ring-rose-500/50 focus-visible:border-rose-500 rounded-xl transition-all shadow-sm"})]}),e.formState.errors.confirmPassword&&a("p",{className:"text-destructive text-xs font-medium",children:e.formState.errors.confirmPassword.message})]}),a(N,{type:"submit",className:"w-full h-11 bg-gradient-to-r from-rose-500 to-orange-500 hover:from-rose-600 hover:to-orange-600 text-white font-semibold rounded-xl shadow-md shadow-rose-500/10 hover:shadow-rose-500/20 active:scale-[0.98] transition-all flex items-center justify-center gap-2 border-0",disabled:n,children:n?g(W,{children:[a(V,{className:"h-4 w-4 animate-spin"}),aM()]}):g(W,{children:[a(c,{className:"w-4 h-4"}),v0()]})}),a("div",{className:"pt-2 text-center text-sm",children:a(Xn,{to:"/login",className:"font-semibold text-rose-500 hover:text-rose-600 dark:text-rose-400 dark:hover:text-rose-300 transition-colors hover:underline inline-flex items-center gap-1",children:zh()})})]})]})}export{v as Route};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ec,xc}from"./chunk-3rde6gkg.js";import{Z}from"./chunk-b9z3hasx.js";var j=Z(function(v,f){var{defineProperty:i,getOwnPropertyDescriptor:s,getOwnPropertyNames:_}=Object,k=Object.prototype.hasOwnProperty,l=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},u=(t,e,o,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let r of _(e))if(!k.call(t,r)&&r!==o)i(t,r,{get:()=>e[r],enumerable:!(n=s(e,r))||n.enumerable})}return t},d=(t)=>u(i({},"__esModule",{value:!0}),t),p={};l(p,{refreshToken:()=>O});f.exports=d(p);var c=Ec(),a=xc();async function O(t){let e=t?.project,o=t?.team;if(!e&&!o){let r=(0,a.findProjectInfo)();e=r.projectId,o=r.teamId}else if(!e||!o){let r=(0,a.findProjectInfo)();e=e??r.projectId,o=o??r.teamId}if(!e)throw new c.VercelOidcTokenError("Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`");let n=(0,a.loadToken)(e);if(!n||(0,a.isExpired)((0,a.getTokenPayload)(n.token),t?.expirationBufferMs)){let r=await(0,a.getVercelToken)({expirationBufferMs:t?.expirationBufferMs});if(n=await(0,a.getVercelOidcToken)(r,e,o),!n)throw new c.VercelOidcTokenError("Failed to refresh OIDC token");(0,a.saveToken)(n,e)}process.env.VERCEL_OIDC_TOKEN=n.token;return}});export default j();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{
|
|
2
|
+
import{mh}from"./chunk-ym7pb5vn.js";import{Z}from"./chunk-b9z3hasx.js";var Ll=Z(function(d){var{SignatureV4:l,signatureV4aContainer:o}=mh(),r={CrtSignerV4:null},g="X-Amz-S3session-Token".toLowerCase();class a extends l{async signWithCredentials(e,i,n){let s=c(i);e.headers[g]=i.sessionToken;let t=this;return u(t,s),t.signRequest(e,n??{})}async presignWithCredentials(e,i,n){let s=c(i);return delete e.headers[g],e.headers["X-Amz-S3session-Token"]=i.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=i.sessionToken,u(this,s),this.presign(e,n)}}function c(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function u(e,i){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(i))}class h{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof r.CrtSignerV4==="function")return"crt";else if(typeof o.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new a(e),this.signerOptions=e}async sign(e,i={}){if(i.signingRegion==="*")return this.getSigv4aSigner().sign(e,i);return this.sigv4Signer.sign(e,i)}async signWithCredentials(e,i,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),t=r.CrtSignerV4;if(t&&s instanceof t)return s.signWithCredentials(e,i,n);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,i,n)}async presign(e,i={}){if(i.signingRegion==="*"){let n=this.getSigv4aSigner(),s=r.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,i);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,i)}async presignWithCredentials(e,i,n={}){if(n.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,i,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=r.CrtSignerV4,i=o.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!i)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(i&&typeof i==="function")this.sigv4aSigner=new i({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!i||typeof i!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new i({...this.signerOptions})}}return this.sigv4aSigner}}d.SignatureV4MultiRegion=h;d.SignatureV4SignWithCredentials=a;d.signatureV4CrtContainer=r});
|
|
3
|
+
export{Ll};
|