gemi 0.88.1 → 0.89.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.
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Lc as c,Mc as d,Nc as f,Oc as g,Pc as i,Qc as j,Rc as k,Sc as l,ed as m,fd as n,gd as o,nc as a}from"../chunk-7awbkbbx.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import{hf as b,pf as e,rf as h}from"../chunk-rhe7s1fm.js";import"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import"../chunk-e3fnjj0h.js";import"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";export{g as Url,e as Storage,k as Redis,a as Redirect,l as RateLimiter,f as Query,i as Meta,h as Log,d as Lang,m as Features,b as Facade,o as DB,j as Cookie,n as ConnectionQueries,c as Auth};
2
+ import{Lc as c,Mc as d,Nc as f,Oc as g,Pc as i,Qc as j,Rc as k,Sc as l,ed as m,fd as n,gd as o,nc as a}from"../chunk-k9rzq5zh.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import{hf as b,pf as e,rf as h}from"../chunk-rhe7s1fm.js";import"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import"../chunk-e3fnjj0h.js";import"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";export{g as Url,e as Storage,k as Redis,a as Redirect,l as RateLimiter,f as Query,i as Meta,h as Log,d as Lang,m as Features,b as Facade,o as DB,j as Cookie,n as ConnectionQueries,c as Auth};
3
3
 
4
4
  //# debugId=171C98A5E8C767DE64756E2164756E21
@@ -20,7 +20,18 @@ export type StreamDescriptor = {
20
20
  status?: number;
21
21
  headers?: Record<string, string>;
22
22
  };
23
- export type StreamOutput = ReadResult | Blob | Response | StreamDescriptor | null | undefined;
23
+ /**
24
+ * A `FileStorage.read()` result with response options layered on top, so a
25
+ * handler can name, re-type or force-download a stored file without unpacking
26
+ * the read (and risking dropping `partial`, which breaks `Range`):
27
+ *
28
+ * ```ts
29
+ * const read = await FileStorage.read(key);
30
+ * return { ...read, name: original, download: true, headers: { "Cache-Control": "private" } };
31
+ * ```
32
+ */
33
+ export type StreamReadResult = ReadResult & Pick<StreamDescriptor, "download" | "status" | "headers">;
34
+ export type StreamOutput = StreamReadResult | Blob | Response | StreamDescriptor | null | undefined;
24
35
  /** A 416, whose `Content-Range` reports the current size and no offsets. */
25
36
  export declare function createUnsatisfiableResponse(total: number): Response;
26
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"createStreamResponse.d.ts","sourceRoot":"","sources":["../../http/createStreamResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEzE,MAAM,MAAM,UAAU,GAClB,IAAI,GACJ,cAAc,CAAC,UAAU,CAAC,GAC1B,WAAW,GACX,eAAe,CAAC;AAEpB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,kFAAkF;IAClF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uGAAuG;IACvG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC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K,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GACvC,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC;AAE5D,MAAM,MAAM,YAAY,GACpB,gBAAgB,GAChB,IAAI,GACJ,QAAQ,GACR,gBAAgB,GAChB,IAAI,GACJ,SAAS,CAAC;AA4Bd,4EAA4E;AAC5E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAcnE;AAuDD;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE;IAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACpD,OAAO,CAAC,QAAQ,CAAC,CAqGnB"}
@@ -3,7 +3,7 @@ export { ApiRouter, type CreateRPC } from "./ApiRouter";
3
3
  export { McpRouter, McpRouteDeclaration, type McpFileBinder, type McpMethod, type McpParamBinder, type McpRouteMeta, type McpRoutes, } from "./McpRouter";
4
4
  export { createFileResponse, ViewRouter, type CreateViewRPC, type FileOutput, type ViewHandler, } from "./ViewRouter";
5
5
  export { toMiddlewareList, type MiddlewareInput } from "./middlewareList";
6
- export { createStreamResponse, createUnsatisfiableResponse, type StreamOutput, type StreamDescriptor, } from "./createStreamResponse";
6
+ export { createStreamResponse, createUnsatisfiableResponse, type StreamOutput, type StreamDescriptor, type StreamReadResult, } from "./createStreamResponse";
7
7
  export { formatContentRange, formatUnsatisfiedContentRange, parseContentRange, parseRangeHeader, resolveRange, toRangeHeaderValue, type ByteRange, type ContentRange, type ResolvedRange, } from "./range";
8
8
  export { ValidationError } from "./Router";
9
9
  export { HttpRequest } from "./HttpRequest";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../http/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM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E,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Ac as G,Ed as H,Fd as I,Gd as J,Hd as K,Id as L,Jd as M,hc as n,ic as o,jc as p,kc as v,lc as w,mc as x,oc as y,pc as z,qc as A,rc as B,sc as C,tc as D,yc as E,zc as F}from"../chunk-7awbkbbx.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import{$e as k,Le as a,Me as b,Ne as d,Re as e,Se as f,Te as g,Ue as h,Ve as i,We as j,af as l,bf as m,cf as q,df as r,ef as s,ff as t,gf as u}from"../chunk-rhe7s1fm.js";import{vf as c}from"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import"../chunk-e3fnjj0h.js";import"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";export{g as toRangeHeaderValue,n as toMiddlewareList,f as resolveRange,e as parseRangeHeader,h as parseContentRange,D as middlewareConfigDefaults,d as getCookies,j as formatUnsatisfiedContentRange,i as formatContentRange,C as defineMiddlewareConfig,o as createUnsatisfiableResponse,p as createStreamResponse,z as createFileResponse,G as clientIp,A as ViewRouter,k as ValidationError,b as ResourceController,c as RequestBreakerError,F as RateLimitMiddleware,E as RateLimitExceededError,s as RangeNotSatisfiableError,L as PoliciesServiceProvider,M as Policies,B as Middleware,x as McpRouter,w as McpRouteDeclaration,l as InvalidValidationRuleError,r as InsufficientPermissionsError,y as HttpResponse,m as HttpRequest,t as FileNotFoundError,J as CorsMiddleware,a as Controller,I as CacheMiddleware,K as CSRFMiddleware,q as AuthorizationError,H as AuthenticationMiddleware,u as AuthenticationError,v as ApiRouter};
2
+ import{Ac as G,Ed as H,Fd as I,Gd as J,Hd as K,Id as L,Jd as M,hc as n,ic as o,jc as p,kc as v,lc as w,mc as x,oc as y,pc as z,qc as A,rc as B,sc as C,tc as D,yc as E,zc as F}from"../chunk-k9rzq5zh.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import{$e as k,Le as a,Me as b,Ne as d,Re as e,Se as f,Te as g,Ue as h,Ve as i,We as j,af as l,bf as m,cf as q,df as r,ef as s,ff as t,gf as u}from"../chunk-rhe7s1fm.js";import{vf as c}from"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import"../chunk-e3fnjj0h.js";import"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";export{g as toRangeHeaderValue,n as toMiddlewareList,f as resolveRange,e as parseRangeHeader,h as parseContentRange,D as middlewareConfigDefaults,d as getCookies,j as formatUnsatisfiedContentRange,i as formatContentRange,C as defineMiddlewareConfig,o as createUnsatisfiableResponse,p as createStreamResponse,z as createFileResponse,G as clientIp,A as ViewRouter,k as ValidationError,b as ResourceController,c as RequestBreakerError,F as RateLimitMiddleware,E as RateLimitExceededError,s as RangeNotSatisfiableError,L as PoliciesServiceProvider,M as Policies,B as Middleware,x as McpRouter,w as McpRouteDeclaration,l as InvalidValidationRuleError,r as InsufficientPermissionsError,y as HttpResponse,m as HttpRequest,t as FileNotFoundError,J as CorsMiddleware,a as Controller,I as CacheMiddleware,K as CSRFMiddleware,q as AuthorizationError,H as AuthenticationMiddleware,u as AuthenticationError,v as ApiRouter};
3
3
 
4
4
  //# debugId=570373B8D6B7C75B64756E2164756E21
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{aa as R}from"../chunk-6tt3ynm7.js";import"../chunk-9a8qz3s7.js";import{Wa as L}from"../chunk-3w65ra1s.js";import{ec as E,fc as V}from"../chunk-q6ydpt33.js";import"../chunk-bsbn7qtd.js";import{Mc as j}from"../chunk-7awbkbbx.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import"../chunk-rhe7s1fm.js";import"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import{tg as X}from"../chunk-e3fnjj0h.js";import"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";import{createElement as J,Fragment as M,isValidElement as U}from"react";function $(q,B){let G=Object.values(B).some((z)=>typeof z==="function"&&U(z(""))),Q=/{{([^{}]+?)(?::([^{}\[\]]+?))?(?:\[(.*?)\])?}}/g;if(!G)return q.replace(Q,(W,O,_,Z)=>{let C=O.includes(":")?O.split(":")[0]:O,H=B[C];if(H===void 0)return W;if(typeof H==="function"){let K=H(Z!==void 0?Z:"");if(U(K))throw Error("JSX returned in string context");return String(K)}if(_)switch(_.toLowerCase()){case"number":return Number(H).toString();case"string":return String(H);case"boolean":return Boolean(H).toString();default:return String(H)}return String(H)});else{let z=[],W=0,O=null;while((O=Q.exec(q))!==null){let[_,Z,C,H]=O,F=O.index,K=Z.includes(":")?Z.split(":")[0]:Z;if(F>W)z.push(q.substring(W,F));let Y=B[K];if(Y===void 0)z.push(_);else if(typeof Y==="function"){let A=Y(H!==void 0?H:"");z.push(A)}else if(C)switch(C.toLowerCase()){case"number":z.push(Number(Y).toString());break;case"string":z.push(String(Y));break;case"boolean":z.push(Boolean(Y).toString());break;default:z.push(String(Y))}else z.push(String(Y));W=F+_.length}if(W<q.length)z.push(q.substring(W));return J(M,{},...z)}}class P{name;dictionary;constructor(q,B){this.name=q;this.dictionary=B}reference(q){if(typeof window<"u")throw Error("Cannot use reference in the browser");if(!this.dictionary?.[q])throw Error(`Translation not found for ${String(q)}`);return this.dictionary[q]}render(q,...B){let{locale:G=j.locale(),params:Q}={params:{},...B[0]};if(typeof window<"u")throw Error("Cannot use render in the browser");if(!this.dictionary?.[q]?.[G])throw Error(`Translation not found for ${String(q)} in ${String(G)}`);return $(this.dictionary[q][G],Q??{})}static create(q,B){return new P(q,B)}static text(q,...B){let{locale:G=j.locale(),params:Q}={params:{},...B?.[0]};if(!q?.[G])throw Error(`Translation not found for ${String(G)}`);return $(q[G],Q??{})}}async function N(q,B,...G){let{locale:Q=j.locale(),params:z}={params:{},...G[0]},O=(await q.load(String(Q)))[B];if(typeof O!=="string")throw Error(`Translation not found for "${B}" in "${String(Q)}" (dictionary ${q.id})`);return $(O,z??{})}export{V as translationConfigDefaults,N as translate,E as defineTranslationConfig,R as defineDictionary,X as Translator,L as TranslationServiceProvider,P as Dictionary};
2
+ import{aa as R}from"../chunk-6tt3ynm7.js";import"../chunk-9a8qz3s7.js";import{Wa as L}from"../chunk-3w65ra1s.js";import{ec as E,fc as V}from"../chunk-q6ydpt33.js";import"../chunk-bsbn7qtd.js";import{Mc as j}from"../chunk-k9rzq5zh.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import"../chunk-rhe7s1fm.js";import"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import{tg as X}from"../chunk-e3fnjj0h.js";import"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";import{createElement as J,Fragment as M,isValidElement as U}from"react";function $(q,B){let G=Object.values(B).some((z)=>typeof z==="function"&&U(z(""))),Q=/{{([^{}]+?)(?::([^{}\[\]]+?))?(?:\[(.*?)\])?}}/g;if(!G)return q.replace(Q,(W,O,_,Z)=>{let C=O.includes(":")?O.split(":")[0]:O,H=B[C];if(H===void 0)return W;if(typeof H==="function"){let K=H(Z!==void 0?Z:"");if(U(K))throw Error("JSX returned in string context");return String(K)}if(_)switch(_.toLowerCase()){case"number":return Number(H).toString();case"string":return String(H);case"boolean":return Boolean(H).toString();default:return String(H)}return String(H)});else{let z=[],W=0,O=null;while((O=Q.exec(q))!==null){let[_,Z,C,H]=O,F=O.index,K=Z.includes(":")?Z.split(":")[0]:Z;if(F>W)z.push(q.substring(W,F));let Y=B[K];if(Y===void 0)z.push(_);else if(typeof Y==="function"){let A=Y(H!==void 0?H:"");z.push(A)}else if(C)switch(C.toLowerCase()){case"number":z.push(Number(Y).toString());break;case"string":z.push(String(Y));break;case"boolean":z.push(Boolean(Y).toString());break;default:z.push(String(Y))}else z.push(String(Y));W=F+_.length}if(W<q.length)z.push(q.substring(W));return J(M,{},...z)}}class P{name;dictionary;constructor(q,B){this.name=q;this.dictionary=B}reference(q){if(typeof window<"u")throw Error("Cannot use reference in the browser");if(!this.dictionary?.[q])throw Error(`Translation not found for ${String(q)}`);return this.dictionary[q]}render(q,...B){let{locale:G=j.locale(),params:Q}={params:{},...B[0]};if(typeof window<"u")throw Error("Cannot use render in the browser");if(!this.dictionary?.[q]?.[G])throw Error(`Translation not found for ${String(q)} in ${String(G)}`);return $(this.dictionary[q][G],Q??{})}static create(q,B){return new P(q,B)}static text(q,...B){let{locale:G=j.locale(),params:Q}={params:{},...B?.[0]};if(!q?.[G])throw Error(`Translation not found for ${String(G)}`);return $(q[G],Q??{})}}async function N(q,B,...G){let{locale:Q=j.locale(),params:z}={params:{},...G[0]},O=(await q.load(String(Q)))[B];if(typeof O!=="string")throw Error(`Translation not found for "${B}" in "${String(Q)}" (dictionary ${q.id})`);return $(O,z??{})}export{V as translationConfigDefaults,N as translate,E as defineTranslationConfig,R as defineDictionary,X as Translator,L as TranslationServiceProvider,P as Dictionary};
3
3
 
4
4
  //# debugId=0BBC27BE04B30FAD64756E2164756E21
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ya as y}from"../chunk-r1sj312m.js";import{Va as i}from"../chunk-ak3yy4za.js";import{Wa as g}from"../chunk-3w65ra1s.js";import{$a as e,Za as T,_a as D,ab as A,bb as w,fb as P,gb as S,ib as h,jb as R,kb as u,lb as l,ob as v,pb as d,sb as c,vb as p,yb as n}from"../chunk-d1zt6sfj.js";import"../chunk-4v4v5wkh.js";import"../chunk-56p9a7nx.js";import{$b as r}from"../chunk-6dyt8w27.js";import"../chunk-q6ydpt33.js";import"../chunk-bsbn7qtd.js";import{Ad as Q,Bd as t,Cd as o,Fc as Zj,Gc as $j,Jc as Gj,Kc as Hj,md as x,rd as I,sd as E,vd as K,wd as M,xd as s,yd as C,zd as m}from"../chunk-7awbkbbx.js";import{Nd as a}from"../chunk-6rc6yec4.js";import{_d as V,de as f}from"../chunk-ngq4n2b3.js";import{bf as F}from"../chunk-rhe7s1fm.js";import{uf as B}from"../chunk-xqyx8kzr.js";import{Af as L}from"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import"../chunk-yc3n6zhr.js";import"../chunk-e3fnjj0h.js";import{vg as N,wg as b}from"../chunk-0efykzjy.js";import{xg as _}from"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-8y08amzz.js";import"../chunk-64z2zt41.js";import{Kg as q}from"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";function Jj(j){let X=j.headers.get("Cache-Control")?.toLowerCase()??"";return/(^|[\s,])(public|s-maxage)\b/.test(X)}var Wj=new Set,Xj={refusal:null,apply:(j)=>j,carried:null};async function k(j){let X=b(x);if(X.config.global.length===0)return Xj;let{pathname:Z}=new URL(j.url),W=q(Z),z=new F(j,{},W?"api":"view","");return await L.run(z,async()=>{let $=L.getStore(),{headers:H,cookies:zj}=$,Y=(J)=>{if(!Jj(J))return Q(J,H,zj);let G=new Headers(H);return G.delete("Set-Cookie"),Q(J,G,Wj)};try{return await X.runGlobalMiddleware(),{refusal:null,apply:Y,carried:{user:$.user}}}catch(J){let G=!W&&Z.endsWith(".json");if(J?.kind===B){let O=W?m(J.payload.api):G?M(J.payload.viewData??J.payload.api):K(J.payload.view);return{refusal:Y(O),apply:Y,carried:null}}if(V(J)&&(W||G))return{refusal:Y(C()),apply:Y,carried:null};if(f(J)){console.error(J);let O=W||G?I():K(E());return{refusal:Y(O),apply:Y,carried:null}}throw J}finally{$.destroy()}})}var U=[l,d,y,P,n,A,S,v,R,D,h,p,u,g,c,w];class jj{config={};providers=[];services=[];serviceInstances=[];serviceTokens=new Set;servicesBooted=!1;models=[];app=new N;boot(){if(this.models.length>0)i(...this.models);else Yj();this.app.config.merge(this.config),N.setInstance(this.app),this.app.registerMany([...U,...this.providers]),this.registerServices()}registerServices(){let j=this.serviceTokens;this.serviceInstances=[],this.serviceTokens=new Set,this.servicesBooted=!1;let X=new Map;for(let Z of this.services){let W=typeof Z==="function"?new Z:Z,z=W.constructor;if(!z.token)throw Error(`Service [${z.name}] is listed in \`services\` but does not declare a \`static token\`.`);let $=X.get(z.token);if($)throw Error(`Services [${$}] and [${z.name}] both declare the token "${z.token}". Tokens are the container's keys, so they must be unique.`);X.set(z.token,z.name);let H=z;if(!j.has(z.token)&&this.app.bound(H))throw Error(`Service [${z.name}] declares the token "${z.token}", which is already bound in the container by the framework or a provider. Binding it would replace that service everywhere, so pick a token nothing else owns.`);this.app.instance(H,W),this.serviceInstances.push(W),this.serviceTokens.add(z.token)}}async waitForBoot(){await this.app.boot(),await this.bootServices(),e(this.app)}async bootServices(){if(this.servicesBooted)return;for(let j of this.serviceInstances)await j.boot();this.servicesBooted=!0}shutdown(j){return this.run(()=>this.app.shutdown(j))}run(j){return _.run(this.app,j)}resolve(j){return this.app.make(j)}apiRoutes(){return this.app.make(t)}viewRoutes(){return this.app.make(s)}domains(){return this.app.make(o)}queue(){return this.app.make(r)}globalMiddleware(j){return k(j)}destroy(){if(this.app.resolved(T))this.app.make(T).stop();if(this.app.flush(),N.getInstance()===this.app)N.setInstance(void 0);_.disable()}}function Yj(){if(Bun.env.NODE_ENV==="production")return;let j=a();if(j.length===0)return;console.warn(`[gemi] ${j.length} model${j.length===1?" is":"s are"} registered, but Kernel.models is empty.
2
+ import{ya as y}from"../chunk-r1sj312m.js";import{Va as i}from"../chunk-ak3yy4za.js";import{Wa as g}from"../chunk-3w65ra1s.js";import{$a as e,Za as T,_a as D,ab as A,bb as w,fb as P,gb as S,ib as h,jb as R,kb as u,lb as l,ob as v,pb as d,sb as c,vb as p,yb as n}from"../chunk-7gh60xrq.js";import"../chunk-4v4v5wkh.js";import"../chunk-56p9a7nx.js";import{$b as r}from"../chunk-6dyt8w27.js";import"../chunk-q6ydpt33.js";import"../chunk-bsbn7qtd.js";import{Ad as Q,Bd as t,Cd as o,Fc as Zj,Gc as $j,Jc as Gj,Kc as Hj,md as x,rd as I,sd as E,vd as K,wd as M,xd as s,yd as C,zd as m}from"../chunk-k9rzq5zh.js";import{Nd as a}from"../chunk-6rc6yec4.js";import{_d as V,de as f}from"../chunk-ngq4n2b3.js";import{bf as F}from"../chunk-rhe7s1fm.js";import{uf as B}from"../chunk-xqyx8kzr.js";import{Af as L}from"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import"../chunk-yc3n6zhr.js";import"../chunk-e3fnjj0h.js";import{vg as N,wg as b}from"../chunk-0efykzjy.js";import{xg as _}from"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-8y08amzz.js";import"../chunk-64z2zt41.js";import{Kg as q}from"../chunk-7r78cdyd.js";import"../chunk-t93t317r.js";function Jj(j){let X=j.headers.get("Cache-Control")?.toLowerCase()??"";return/(^|[\s,])(public|s-maxage)\b/.test(X)}var Wj=new Set,Xj={refusal:null,apply:(j)=>j,carried:null};async function k(j){let X=b(x);if(X.config.global.length===0)return Xj;let{pathname:Z}=new URL(j.url),W=q(Z),z=new F(j,{},W?"api":"view","");return await L.run(z,async()=>{let $=L.getStore(),{headers:H,cookies:zj}=$,Y=(J)=>{if(!Jj(J))return Q(J,H,zj);let G=new Headers(H);return G.delete("Set-Cookie"),Q(J,G,Wj)};try{return await X.runGlobalMiddleware(),{refusal:null,apply:Y,carried:{user:$.user}}}catch(J){let G=!W&&Z.endsWith(".json");if(J?.kind===B){let O=W?m(J.payload.api):G?M(J.payload.viewData??J.payload.api):K(J.payload.view);return{refusal:Y(O),apply:Y,carried:null}}if(V(J)&&(W||G))return{refusal:Y(C()),apply:Y,carried:null};if(f(J)){console.error(J);let O=W||G?I():K(E());return{refusal:Y(O),apply:Y,carried:null}}throw J}finally{$.destroy()}})}var U=[l,d,y,P,n,A,S,v,R,D,h,p,u,g,c,w];class jj{config={};providers=[];services=[];serviceInstances=[];serviceTokens=new Set;servicesBooted=!1;models=[];app=new N;boot(){if(this.models.length>0)i(...this.models);else Yj();this.app.config.merge(this.config),N.setInstance(this.app),this.app.registerMany([...U,...this.providers]),this.registerServices()}registerServices(){let j=this.serviceTokens;this.serviceInstances=[],this.serviceTokens=new Set,this.servicesBooted=!1;let X=new Map;for(let Z of this.services){let W=typeof Z==="function"?new Z:Z,z=W.constructor;if(!z.token)throw Error(`Service [${z.name}] is listed in \`services\` but does not declare a \`static token\`.`);let $=X.get(z.token);if($)throw Error(`Services [${$}] and [${z.name}] both declare the token "${z.token}". Tokens are the container's keys, so they must be unique.`);X.set(z.token,z.name);let H=z;if(!j.has(z.token)&&this.app.bound(H))throw Error(`Service [${z.name}] declares the token "${z.token}", which is already bound in the container by the framework or a provider. Binding it would replace that service everywhere, so pick a token nothing else owns.`);this.app.instance(H,W),this.serviceInstances.push(W),this.serviceTokens.add(z.token)}}async waitForBoot(){await this.app.boot(),await this.bootServices(),e(this.app)}async bootServices(){if(this.servicesBooted)return;for(let j of this.serviceInstances)await j.boot();this.servicesBooted=!0}shutdown(j){return this.run(()=>this.app.shutdown(j))}run(j){return _.run(this.app,j)}resolve(j){return this.app.make(j)}apiRoutes(){return this.app.make(t)}viewRoutes(){return this.app.make(s)}domains(){return this.app.make(o)}queue(){return this.app.make(r)}globalMiddleware(j){return k(j)}destroy(){if(this.app.resolved(T))this.app.make(T).stop();if(this.app.flush(),N.getInstance()===this.app)N.setInstance(void 0);_.disable()}}function Yj(){if(Bun.env.NODE_ENV==="production")return;let j=a();if(j.length===0)return;console.warn(`[gemi] ${j.length} model${j.length===1?" is":"s are"} registered, but Kernel.models is empty.
3
3
  Nested relation reads resolve a model by name, so a policy on a subclass that does not own its
4
4
  `+" name is skipped inside every include \u2014 scoped at the root, "+`unscoped in an include, with nothing
5
5
  to notice it. Declaring the modules registers each class under its own name and audits the set:
@@ -1 +1 @@
1
- {"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../../server/compression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,uEAAuE;AACvE,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,CAAC;AAgD5C;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CA6BjG;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,SAAS,GAAE,eAAe,EAAsB,GAC/C,eAAe,GAAG,IAAI,CAmBxB;AAaD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CA6CrE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAYb,oBAAoB,CAAC,UAAU,EAAE,UAAU,CAAC,CAC3F;AAiBD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,QAAQ,CAwCtE"}
1
+ {"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../../server/compression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,uEAAuE;AACvE,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,CAAC;AAgD5C;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CA6BjG;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,SAAS,GAAE,eAAe,EAAsB,GAC/C,eAAe,GAAG,IAAI,CAmBxB;AAaD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAiDrE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAYb,oBAAoB,CAAC,UAAU,EAAE,UAAU,CAAC,CAC3F;AAiBD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,QAAQ,CAwCtE"}
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{wa as I}from"../chunk-8z37k28d.js";import{xa as A}from"../chunk-j0fgc58k.js";import{Ag as b,Cg as V,Dg as H,Eg as O,Fg as W}from"../chunk-8y08amzz.js";import{Jg as k}from"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import{Qg as $}from"../chunk-t93t317r.js";var X=Symbol.for("gemi.server.devGeneration"),L={graceMs:1e4,providerTimeoutMs:5000};class Q{app;inFlight=0;waiters=new Set;constructor(z){this.app=z}track(z){return async(B,J)=>{this.inFlight++;try{return await z(B,J)}finally{if(this.inFlight--,this.inFlight===0)this.wake()}}}get pending(){return this.inFlight}async retire({graceMs:z,providerTimeoutMs:B}){try{await this.idle(z),await Promise.resolve().then(()=>this.app.shutdown({timeoutMs:B}))}catch(J){Z(J)}}idle(z){if(this.inFlight===0)return Promise.resolve();return new Promise((B)=>{let J=()=>{clearTimeout(K),this.waiters.delete(J),B()},K=setTimeout(J,z);this.waiters.add(J)})}wake(){for(let z of this.waiters)z()}}function Y(z,B=L){let J=globalThis,K=J[X];if(J[X]=z,!K||K===z||typeof K.retire!=="function")return Promise.resolve();let _=K.retire.bind(K);return Promise.resolve().then(()=>_(B)).catch(Z)}function Z(z){console.error("[gemi] Shutting down the application a reload replaced failed:",z)}class P{app;instrumentation;handleSignals;server;stopping;settings;constructor(z){this.app=new A({kernel:z.kernel}),this.handleSignals=z.handleSignals??!0,this.instrumentation=O(z.instrumentation??((B,J)=>J(B)))}async start(){process.env.ROOT_DIR=k();let z=Bun.env.NODE_ENV==="production";if(z){if(this.handleSignals)W(()=>this.stop());this.settings=V()}try{await this.app.waitForBoot()}catch(B){if(!z)this.app.shutdown({timeoutMs:L.providerTimeoutMs});throw B}if(z){let{httpProd:B}=await import("../chunk-x5ajfnrx.js");this.server=await B(this.app,this.instrumentation.bind(this))}else{I();let{httpDev:B}=await import("../chunk-q77qf42t.js"),J=new Q(this.app);this.server=await B(this.app,J.track(this.instrumentation.bind(this))),Y(J)}return this.server}stop(z={}){return this.stopping??=H({server:this.server,shutdownProviders:(B)=>this.app.shutdown(B),settings:{...this.settings??V(),...z}}),this.stopping}}export{b as isShuttingDown,P as Server};
2
+ import{wa as I}from"../chunk-8z37k28d.js";import{xa as A}from"../chunk-j0fgc58k.js";import{Ag as b,Cg as V,Dg as H,Eg as O,Fg as W}from"../chunk-8y08amzz.js";import{Jg as k}from"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import{Qg as $}from"../chunk-t93t317r.js";var X=Symbol.for("gemi.server.devGeneration"),L={graceMs:1e4,providerTimeoutMs:5000};class Q{app;inFlight=0;waiters=new Set;constructor(z){this.app=z}track(z){return async(B,J)=>{this.inFlight++;try{return await z(B,J)}finally{if(this.inFlight--,this.inFlight===0)this.wake()}}}get pending(){return this.inFlight}async retire({graceMs:z,providerTimeoutMs:B}){try{await this.idle(z),await Promise.resolve().then(()=>this.app.shutdown({timeoutMs:B}))}catch(J){Z(J)}}idle(z){if(this.inFlight===0)return Promise.resolve();return new Promise((B)=>{let J=()=>{clearTimeout(K),this.waiters.delete(J),B()},K=setTimeout(J,z);this.waiters.add(J)})}wake(){for(let z of this.waiters)z()}}function Y(z,B=L){let J=globalThis,K=J[X];if(J[X]=z,!K||K===z||typeof K.retire!=="function")return Promise.resolve();let _=K.retire.bind(K);return Promise.resolve().then(()=>_(B)).catch(Z)}function Z(z){console.error("[gemi] Shutting down the application a reload replaced failed:",z)}class P{app;instrumentation;handleSignals;server;stopping;settings;constructor(z){this.app=new A({kernel:z.kernel}),this.handleSignals=z.handleSignals??!0,this.instrumentation=O(z.instrumentation??((B,J)=>J(B)))}async start(){process.env.ROOT_DIR=k();let z=Bun.env.NODE_ENV==="production";if(z){if(this.handleSignals)W(()=>this.stop());this.settings=V()}try{await this.app.waitForBoot()}catch(B){if(!z)this.app.shutdown({timeoutMs:L.providerTimeoutMs});throw B}if(z){let{httpProd:B}=await import("../chunk-7m89m47q.js");this.server=await B(this.app,this.instrumentation.bind(this))}else{I();let{httpDev:B}=await import("../chunk-faytd5j0.js"),J=new Q(this.app);this.server=await B(this.app,J.track(this.instrumentation.bind(this))),Y(J)}return this.server}stop(z={}){return this.stopping??=H({server:this.server,shutdownProviders:(B)=>this.app.shutdown(B),settings:{...this.settings??V(),...z}}),this.stopping}}export{b as isShuttingDown,P as Server};
3
3
 
4
4
  //# debugId=022DFD6ABEEFE6C464756E2164756E21
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ya as gW}from"../chunk-zytmxty5.js";import{Za as d6,_a as xW,ab as MW,bb as LW,cb as DW,db as FW,eb as OW,fb as HW,gb as UW,hb as U,ib as SW,jb as fW,kb as RW,lb as kW,mb as _W,nb as CW,ob as vW,pb as bW,qb as IW,rb as TW,sb as qW,tb as hW,ub as PW,vb as wW,wb as AW,xb as yW,yb as VW}from"../chunk-d1zt6sfj.js";import"../chunk-4v4v5wkh.js";import{Hb as s6,Ib as a6,Jb as t6,Kb as r6,Lb as e6,Mb as WW,Nb as YW,Ob as JW,Pb as ZW,Qb as GW,Rb as $W,Sb as QW,Tb as KW,Ub as XW,Vb as zW,Wb as BW}from"../chunk-56p9a7nx.js";import{$b as o6,Xb as p6,Yb as l6,Zb as n6,_b as i6}from"../chunk-6dyt8w27.js";import{ec as jW,fc as NW}from"../chunk-q6ydpt33.js";import"../chunk-bsbn7qtd.js";import{$c as U6,Bc as s4,Bd as y6,Cc as a4,Dc as g1,Dd as V6,Ec as $6,Hc as Q6,Ic as K6,Tc as j6,Uc as N6,Vc as L6,Wc as D6,Xc as F6,Yc as O6,Zc as H6,_c as d4,ad as S6,bd as f6,cd as R6,dd as k6,hd as _6,id as C6,jd as v6,kd as b6,ld as I6,md as T6,nc as b0,nd as q6,od as h6,pd as P6,qd as w6,sc as e0,tc as W6,uc as Y6,vc as J6,wc as Z6,xc as G6,xd as A6}from"../chunk-7awbkbbx.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import{Se as V1,Te as A1,Ue as Y1,ef as g,ff as w,jf as J1,kf as L1,lf as X6,mf as z6,nf as B6,of as x6,qf as M6,sf as D1}from"../chunk-rhe7s1fm.js";import"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import{ng as g6,og as c6,pg as E6,qg as m6,rg as u6}from"../chunk-yc3n6zhr.js";import"../chunk-e3fnjj0h.js";import{wg as c}from"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-8y08amzz.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import{Qg as l4}from"../chunk-t93t317r.js";import{Buffer as p4}from"buffer";class n4 extends J1{client;config;constructor(...W){super();this.config=W}async connect(){let W=await import("../chunk-523t3bcz.js");return this.client??=new W.S3Client(...this.config),{sdk:W,client:this.client}}async put(W,{signal:Y}={}){Y?.throwIfAborted();let J,Z,G,$=process.env.BUCKET_NAME;if(W instanceof Blob)J=W,G=`${Bun.randomUUIDv7()}.${W.type.split("/")[1].split(";")[0]}`,Z=W.type;else J=W.body,G=W.name,$=W.bucket??$,Z=W.contentType||(J instanceof Blob||J instanceof File?J.type:void 0);Z=Z||void 0;let Q=J instanceof p4?J:J instanceof Blob||J instanceof File?p4.from(await J.arrayBuffer()):"",{sdk:K,client:z}=await this.connect();return Y?.throwIfAborted(),await z.send(new K.PutObjectCommand({Bucket:$,Key:G,Body:Q,ContentType:Z}),{abortSignal:Y}),G}async delete(W){let Y=typeof W==="string"?W:W.name,J=(typeof W==="string"?void 0:W.bucket)??process.env.BUCKET_NAME;if(!Y)throw Error("Object name has to be specified");let{sdk:Z,client:G}=await this.connect();try{await G.send(new Z.DeleteObjectCommand({Bucket:J,Key:Y}))}catch($){if($?.name==="NoSuchKey"||$?.$metadata?.httpStatusCode===404)return;throw $}}async list(W){let{sdk:Y,client:J}=await this.connect();return await J.send(new Y.ListObjectsV2Command({Bucket:process.env.BUCKET_NAME,Prefix:W}))}async fetch(W,{signal:Y}={}){Y?.throwIfAborted();let J=process.env.BUCKET_NAME,Z;if(typeof W==="string")Z=W;else J=W.bucket??J,Z=W.name;if(!Z)throw Error("Object name has to be specified");let{sdk:G,client:$}=await this.connect();Y?.throwIfAborted();let Q=await $.send(new G.GetObjectCommand({Bucket:J,Key:Z}),{abortSignal:Y}),K=L1(Q.Body.transformToWebStream(),Y);return Y?.throwIfAborted(),new Response(K,{headers:{"Content-Type":Q.ContentType,"Content-Length":Q.ContentLength.toString(),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":Q.LastModified?.toUTCString()||"",ETag:Q.ETag||""}})}async read(W){let Y=typeof W==="string"?{name:W}:W,J=Y.bucket??process.env.BUCKET_NAME,{name:Z,range:G=null}=Y;if(!Z)throw Error("Object name has to be specified");let{sdk:$,client:Q}=await this.connect(),K;try{K=await Q.send(new $.GetObjectCommand({Bucket:J,Key:Z,Range:G?A1(G):void 0}))}catch(M){if(M?.name==="InvalidRange"||M?.$metadata?.httpStatusCode===416)throw new g(await this.size({name:Z,bucket:J}));if(M?.name==="NoSuchKey"||M?.$metadata?.httpStatusCode===404)throw new w(Z);throw M}let z=Y1(K.ContentRange),X=Boolean(z)&&K.$metadata?.httpStatusCode===206,x=z?.total??K.ContentLength??0;return{body:K.Body.transformToWebStream(),start:z?.start??0,end:z?.end??x-1,total:x,partial:X,type:K.ContentType??"application/octet-stream",etag:K.ETag||void 0,lastModified:K.LastModified,name:Z}}async size(W){let Y=typeof W==="string"?W:W.name,J=(typeof W==="string"?void 0:W.bucket)??process.env.BUCKET_NAME,{sdk:Z,client:G}=await this.connect();try{return(await G.send(new Z.HeadObjectCommand({Bucket:J,Key:Y}))).ContentLength??0}catch($){if($?.name==="NotFound"||$?.$metadata?.httpStatusCode===404)throw new w(Y);throw $}}}import{Buffer as i4}from"buffer";import{Readable as q0}from"stream";function y1(W){return W?.statusCode===404||W?.details?.errorCode==="BlobNotFound"||W?.code==="BlobNotFound"}function h0(W){return W?.statusCode===416||W?.details?.errorCode==="InvalidRange"||W?.code==="InvalidRange"}class o4 extends J1{config;serviceClientPromise=null;constructor(W={}){super();this.config=W}async serviceClient(){if(this.config.serviceClient)return this.config.serviceClient;return this.serviceClientPromise??=(async()=>{let W;try{W=await import("@azure/storage-blob")}catch{throw Error("AzureBlobDriver requires the '@azure/storage-blob' package. Install it with `bun add @azure/storage-blob`, or pass a pre-built `serviceClient`.")}let Y=this.config.connectionString??process.env.AZURE_STORAGE_CONNECTION_STRING;if(this.config.url)return new W.BlobServiceClient(this.config.url,this.config.credential);if(Y)return W.BlobServiceClient.fromConnectionString(Y);throw Error("AzureBlobDriver needs a connection string (AZURE_STORAGE_CONNECTION_STRING), a `url`, or a `serviceClient`.")})(),this.serviceClientPromise}async blob(W,Y){if(!W)throw Error("Object name has to be specified");let J=Y??this.config.container??process.env.BUCKET_NAME;if(!J)throw Error("AzureBlobDriver needs a container name, from `bucket`, the `container` config, or BUCKET_NAME.");return(await this.serviceClient()).getContainerClient(J).getBlockBlobClient(W)}async put(W,{signal:Y}={}){Y?.throwIfAborted();let J,Z,G,$;if(W instanceof Blob)J=W,G=`${Bun.randomUUIDv7()}.${W.type.split("/")[1].split(";")[0]}`,Z=W.type;else J=W.body,G=W.name,$=W.bucket,Z=W.contentType??(J instanceof Blob||J instanceof File?J.type:void 0);let Q=J instanceof i4?J:i4.from(await J.arrayBuffer()),K=await this.blob(G,$);return Y?.throwIfAborted(),await K.uploadData(Q,{blobHTTPHeaders:Z?{blobContentType:Z}:void 0,abortSignal:Y}),G}async list(W){let Y=this.config.container??process.env.BUCKET_NAME,Z=(await this.serviceClient()).getContainerClient(Y),G=[];for await(let $ of Z.listBlobsFlat({prefix:W}))G.push($.name);return G}async fetch(W,{signal:Y}={}){Y?.throwIfAborted();let J=await this.download(typeof W==="string"?{name:W}:{name:W.name,bucket:W.bucket},Y);return new Response(J.body,{headers:{"Content-Type":J.type,"Content-Length":String(J.total),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":J.lastModified?.toUTCString()??"",ETag:J.etag??""}})}async read(W){return this.download(typeof W==="string"?{name:W}:W)}async download(W,Y){let{name:J,bucket:Z,range:G=null}=W,$=await this.blob(J,Z);Y?.throwIfAborted();let Q,K,z=G?.kind==="suffix"||G?.kind==="offset"&&G.end===null&&G.start===0;if(G&&z){let b=await this.size({name:J,bucket:Z}),W1=V1(G,b);if(!W1)throw new g(b);Q=W1.start,K=W1.length}else if(G?.kind==="offset")Q=G.start,K=G.end===null?void 0:G.end-G.start+1;let X;try{X=await $.download(Q,K,Y?{abortSignal:Y}:void 0)}catch(b){if(h0(b))throw new g(await this.size({name:J,bucket:Z}));if(y1(b))throw new w(J);throw b}let x=Y1(X.contentRange),M=Boolean(x),R=x?.total??X.contentLength??0,v=await P0(X);if(v instanceof ReadableStream)v=L1(v,Y);return Y?.throwIfAborted(),{body:v,start:x?.start??0,end:x?.end??R-1,total:R,partial:M,type:X.contentType??"application/octet-stream",etag:X.etag||void 0,lastModified:X.lastModified,name:J}}async size(W){let Y=typeof W==="string"?W:W.name,J=typeof W==="string"?void 0:W.bucket,Z=await this.blob(Y,J);try{return(await Z.getProperties()).contentLength??0}catch(G){if(y1(G))throw new w(Y);throw G}}async delete(W){let Y=typeof W==="string"?W:W.name,J=typeof W==="string"?void 0:W.bucket,Z=await this.blob(Y,J);try{await Z.delete()}catch(G){if(y1(G))return;throw G}}}async function P0(W){if(W.blobBody)return await W.blobBody;if(W.readableStreamBody)return q0.toWeb(W.readableStreamBody);return null}var w0=`
2
+ import{Ya as gW}from"../chunk-zytmxty5.js";import{Za as d6,_a as xW,ab as MW,bb as LW,cb as DW,db as FW,eb as OW,fb as HW,gb as UW,hb as U,ib as SW,jb as fW,kb as RW,lb as kW,mb as _W,nb as CW,ob as vW,pb as bW,qb as IW,rb as TW,sb as qW,tb as hW,ub as PW,vb as wW,wb as AW,xb as yW,yb as VW}from"../chunk-7gh60xrq.js";import"../chunk-4v4v5wkh.js";import{Hb as s6,Ib as a6,Jb as t6,Kb as r6,Lb as e6,Mb as WW,Nb as YW,Ob as JW,Pb as ZW,Qb as GW,Rb as $W,Sb as QW,Tb as KW,Ub as XW,Vb as zW,Wb as BW}from"../chunk-56p9a7nx.js";import{$b as o6,Xb as p6,Yb as l6,Zb as n6,_b as i6}from"../chunk-6dyt8w27.js";import{ec as jW,fc as NW}from"../chunk-q6ydpt33.js";import"../chunk-bsbn7qtd.js";import{$c as U6,Bc as s4,Bd as y6,Cc as a4,Dc as g1,Dd as V6,Ec as $6,Hc as Q6,Ic as K6,Tc as j6,Uc as N6,Vc as L6,Wc as D6,Xc as F6,Yc as O6,Zc as H6,_c as d4,ad as S6,bd as f6,cd as R6,dd as k6,hd as _6,id as C6,jd as v6,kd as b6,ld as I6,md as T6,nc as b0,nd as q6,od as h6,pd as P6,qd as w6,sc as e0,tc as W6,uc as Y6,vc as J6,wc as Z6,xc as G6,xd as A6}from"../chunk-k9rzq5zh.js";import"../chunk-6rc6yec4.js";import"../chunk-ngq4n2b3.js";import{Se as V1,Te as A1,Ue as Y1,ef as g,ff as w,jf as J1,kf as L1,lf as X6,mf as z6,nf as B6,of as x6,qf as M6,sf as D1}from"../chunk-rhe7s1fm.js";import"../chunk-xqyx8kzr.js";import"../chunk-17nh5gfm.js";import"../chunk-6y62ccam.js";import"../chunk-gzfat1x1.js";import"../chunk-49v5xq8q.js";import"../chunk-ttckhvew.js";import{ng as g6,og as c6,pg as E6,qg as m6,rg as u6}from"../chunk-yc3n6zhr.js";import"../chunk-e3fnjj0h.js";import{wg as c}from"../chunk-0efykzjy.js";import"../chunk-8r7xhy1g.js";import"../chunk-0808z3mq.js";import"../chunk-8y08amzz.js";import"../chunk-64z2zt41.js";import"../chunk-7r78cdyd.js";import{Qg as l4}from"../chunk-t93t317r.js";import{Buffer as p4}from"buffer";class n4 extends J1{client;config;constructor(...W){super();this.config=W}async connect(){let W=await import("../chunk-523t3bcz.js");return this.client??=new W.S3Client(...this.config),{sdk:W,client:this.client}}async put(W,{signal:Y}={}){Y?.throwIfAborted();let J,Z,G,$=process.env.BUCKET_NAME;if(W instanceof Blob)J=W,G=`${Bun.randomUUIDv7()}.${W.type.split("/")[1].split(";")[0]}`,Z=W.type;else J=W.body,G=W.name,$=W.bucket??$,Z=W.contentType||(J instanceof Blob||J instanceof File?J.type:void 0);Z=Z||void 0;let Q=J instanceof p4?J:J instanceof Blob||J instanceof File?p4.from(await J.arrayBuffer()):"",{sdk:K,client:z}=await this.connect();return Y?.throwIfAborted(),await z.send(new K.PutObjectCommand({Bucket:$,Key:G,Body:Q,ContentType:Z}),{abortSignal:Y}),G}async delete(W){let Y=typeof W==="string"?W:W.name,J=(typeof W==="string"?void 0:W.bucket)??process.env.BUCKET_NAME;if(!Y)throw Error("Object name has to be specified");let{sdk:Z,client:G}=await this.connect();try{await G.send(new Z.DeleteObjectCommand({Bucket:J,Key:Y}))}catch($){if($?.name==="NoSuchKey"||$?.$metadata?.httpStatusCode===404)return;throw $}}async list(W){let{sdk:Y,client:J}=await this.connect();return await J.send(new Y.ListObjectsV2Command({Bucket:process.env.BUCKET_NAME,Prefix:W}))}async fetch(W,{signal:Y}={}){Y?.throwIfAborted();let J=process.env.BUCKET_NAME,Z;if(typeof W==="string")Z=W;else J=W.bucket??J,Z=W.name;if(!Z)throw Error("Object name has to be specified");let{sdk:G,client:$}=await this.connect();Y?.throwIfAborted();let Q=await $.send(new G.GetObjectCommand({Bucket:J,Key:Z}),{abortSignal:Y}),K=L1(Q.Body.transformToWebStream(),Y);return Y?.throwIfAborted(),new Response(K,{headers:{"Content-Type":Q.ContentType,"Content-Length":Q.ContentLength.toString(),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":Q.LastModified?.toUTCString()||"",ETag:Q.ETag||""}})}async read(W){let Y=typeof W==="string"?{name:W}:W,J=Y.bucket??process.env.BUCKET_NAME,{name:Z,range:G=null}=Y;if(!Z)throw Error("Object name has to be specified");let{sdk:$,client:Q}=await this.connect(),K;try{K=await Q.send(new $.GetObjectCommand({Bucket:J,Key:Z,Range:G?A1(G):void 0}))}catch(M){if(M?.name==="InvalidRange"||M?.$metadata?.httpStatusCode===416)throw new g(await this.size({name:Z,bucket:J}));if(M?.name==="NoSuchKey"||M?.$metadata?.httpStatusCode===404)throw new w(Z);throw M}let z=Y1(K.ContentRange),X=Boolean(z)&&K.$metadata?.httpStatusCode===206,x=z?.total??K.ContentLength??0;return{body:K.Body.transformToWebStream(),start:z?.start??0,end:z?.end??x-1,total:x,partial:X,type:K.ContentType??"application/octet-stream",etag:K.ETag||void 0,lastModified:K.LastModified,name:Z}}async size(W){let Y=typeof W==="string"?W:W.name,J=(typeof W==="string"?void 0:W.bucket)??process.env.BUCKET_NAME,{sdk:Z,client:G}=await this.connect();try{return(await G.send(new Z.HeadObjectCommand({Bucket:J,Key:Y}))).ContentLength??0}catch($){if($?.name==="NotFound"||$?.$metadata?.httpStatusCode===404)throw new w(Y);throw $}}}import{Buffer as i4}from"buffer";import{Readable as q0}from"stream";function y1(W){return W?.statusCode===404||W?.details?.errorCode==="BlobNotFound"||W?.code==="BlobNotFound"}function h0(W){return W?.statusCode===416||W?.details?.errorCode==="InvalidRange"||W?.code==="InvalidRange"}class o4 extends J1{config;serviceClientPromise=null;constructor(W={}){super();this.config=W}async serviceClient(){if(this.config.serviceClient)return this.config.serviceClient;return this.serviceClientPromise??=(async()=>{let W;try{W=await import("@azure/storage-blob")}catch{throw Error("AzureBlobDriver requires the '@azure/storage-blob' package. Install it with `bun add @azure/storage-blob`, or pass a pre-built `serviceClient`.")}let Y=this.config.connectionString??process.env.AZURE_STORAGE_CONNECTION_STRING;if(this.config.url)return new W.BlobServiceClient(this.config.url,this.config.credential);if(Y)return W.BlobServiceClient.fromConnectionString(Y);throw Error("AzureBlobDriver needs a connection string (AZURE_STORAGE_CONNECTION_STRING), a `url`, or a `serviceClient`.")})(),this.serviceClientPromise}async blob(W,Y){if(!W)throw Error("Object name has to be specified");let J=Y??this.config.container??process.env.BUCKET_NAME;if(!J)throw Error("AzureBlobDriver needs a container name, from `bucket`, the `container` config, or BUCKET_NAME.");return(await this.serviceClient()).getContainerClient(J).getBlockBlobClient(W)}async put(W,{signal:Y}={}){Y?.throwIfAborted();let J,Z,G,$;if(W instanceof Blob)J=W,G=`${Bun.randomUUIDv7()}.${W.type.split("/")[1].split(";")[0]}`,Z=W.type;else J=W.body,G=W.name,$=W.bucket,Z=W.contentType??(J instanceof Blob||J instanceof File?J.type:void 0);let Q=J instanceof i4?J:i4.from(await J.arrayBuffer()),K=await this.blob(G,$);return Y?.throwIfAborted(),await K.uploadData(Q,{blobHTTPHeaders:Z?{blobContentType:Z}:void 0,abortSignal:Y}),G}async list(W){let Y=this.config.container??process.env.BUCKET_NAME,Z=(await this.serviceClient()).getContainerClient(Y),G=[];for await(let $ of Z.listBlobsFlat({prefix:W}))G.push($.name);return G}async fetch(W,{signal:Y}={}){Y?.throwIfAborted();let J=await this.download(typeof W==="string"?{name:W}:{name:W.name,bucket:W.bucket},Y);return new Response(J.body,{headers:{"Content-Type":J.type,"Content-Length":String(J.total),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":J.lastModified?.toUTCString()??"",ETag:J.etag??""}})}async read(W){return this.download(typeof W==="string"?{name:W}:W)}async download(W,Y){let{name:J,bucket:Z,range:G=null}=W,$=await this.blob(J,Z);Y?.throwIfAborted();let Q,K,z=G?.kind==="suffix"||G?.kind==="offset"&&G.end===null&&G.start===0;if(G&&z){let b=await this.size({name:J,bucket:Z}),W1=V1(G,b);if(!W1)throw new g(b);Q=W1.start,K=W1.length}else if(G?.kind==="offset")Q=G.start,K=G.end===null?void 0:G.end-G.start+1;let X;try{X=await $.download(Q,K,Y?{abortSignal:Y}:void 0)}catch(b){if(h0(b))throw new g(await this.size({name:J,bucket:Z}));if(y1(b))throw new w(J);throw b}let x=Y1(X.contentRange),M=Boolean(x),R=x?.total??X.contentLength??0,v=await P0(X);if(v instanceof ReadableStream)v=L1(v,Y);return Y?.throwIfAborted(),{body:v,start:x?.start??0,end:x?.end??R-1,total:R,partial:M,type:X.contentType??"application/octet-stream",etag:X.etag||void 0,lastModified:X.lastModified,name:J}}async size(W){let Y=typeof W==="string"?W:W.name,J=typeof W==="string"?void 0:W.bucket,Z=await this.blob(Y,J);try{return(await Z.getProperties()).contentLength??0}catch(G){if(y1(G))throw new w(Y);throw G}}async delete(W){let Y=typeof W==="string"?W:W.name,J=typeof W==="string"?void 0:W.bucket,Z=await this.blob(Y,J);try{await Z.delete()}catch(G){if(y1(G))return;throw G}}}async function P0(W){if(W.blobBody)return await W.blobBody;if(W.readableStreamBody)return q0.toWeb(W.readableStreamBody);return null}var w0=`
3
3
  local currentKey = KEYS[1]
4
4
  local previousKey = KEYS[2]
5
5
  local limit = tonumber(ARGV[1])
@@ -81,6 +81,12 @@ export declare class ApiRouteDispatcher {
81
81
  * end, and the store would keep the user until it was collected. A stream
82
82
  * route answers HEAD, and its 404, a breaker's JSON or a handler's own
83
83
  * Response can all carry an unsized body there.
84
+ *
85
+ * `Content-Length` is checked before `response.body`, and the order matters:
86
+ * on Bun 1.3.14 on Linux, reading `.body` of a Response built on a sliced
87
+ * Blob — a `this.stream()` Range response — turns it into a stream that runs
88
+ * past the slice's end, and Bun.serve then sends the rest of the object
89
+ * under a 206 (#725).
84
90
  */
85
91
  private isOpenEndedBody;
86
92
  handleApiRequest(req: Request, carried?: CarriedContext | null): Promise<Response>;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiRouteDispatcher.d.ts","sourceRoot":"","sources":["../../../services/router/ApiRouteDispatcher.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,WAAW,EAAE,MAAM,YAAY,CAAC;AAIpD,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,2BAA2B,CAAC;AAIhF,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAsChF,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AA8E1E;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE;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