gemi 0.219.0 → 0.220.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/ai/index.js +2 -2
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/testing/index.js +2 -2
- package/dist/ai/testing/index.js.map +1 -1
- package/dist/app/index.js +1 -1
- package/dist/bun/plugin.js +1 -1
- package/dist/bun/preload.js +1 -1
- package/dist/{chunk-xyv3y476.js → chunk-0av1gyns.js} +3 -3
- package/dist/{chunk-xyv3y476.js.map → chunk-0av1gyns.js.map} +1 -1
- package/dist/{chunk-yxtfg4wy.js → chunk-0k2r6bep.js} +2 -2
- package/dist/{chunk-yxtfg4wy.js.map → chunk-0k2r6bep.js.map} +1 -1
- package/dist/chunk-169e9dg7.js +517 -0
- package/dist/chunk-169e9dg7.js.map +25 -0
- package/dist/{chunk-xp5mmgfp.js → chunk-2vv04thj.js} +2 -2
- package/dist/{chunk-xp5mmgfp.js.map → chunk-2vv04thj.js.map} +1 -1
- package/dist/{chunk-kt174y9e.js → chunk-2y0nr525.js} +3 -3
- package/dist/{chunk-kt174y9e.js.map → chunk-2y0nr525.js.map} +1 -1
- package/dist/{chunk-aes0ecnp.js → chunk-37209psn.js} +3 -3
- package/dist/{chunk-aes0ecnp.js.map → chunk-37209psn.js.map} +1 -1
- package/dist/{chunk-yedb5vvg.js → chunk-3dkv4989.js} +2 -2
- package/dist/{chunk-5gp49wph.js.map → chunk-3dkv4989.js.map} +1 -1
- package/dist/{chunk-5wh3cw2x.js → chunk-3y91vexx.js} +3 -3
- package/dist/{chunk-5wh3cw2x.js.map → chunk-3y91vexx.js.map} +1 -1
- package/dist/{chunk-cmyt2txd.js → chunk-4v5nwqw6.js} +3 -3
- package/dist/{chunk-cmyt2txd.js.map → chunk-4v5nwqw6.js.map} +1 -1
- package/dist/{chunk-v0sgcy87.js → chunk-4wh4dfgf.js} +1 -1
- package/dist/{chunk-1nw9jhpt.js → chunk-50791bmz.js} +2 -2
- package/dist/{chunk-1nw9jhpt.js.map → chunk-50791bmz.js.map} +1 -1
- package/dist/{chunk-rp2f9mq1.js → chunk-55btq9c7.js} +2 -2
- package/dist/{chunk-rp2f9mq1.js.map → chunk-55btq9c7.js.map} +1 -1
- package/dist/{chunk-w3ks9nz7.js → chunk-5h2xj3cx.js} +2 -2
- package/dist/{chunk-w3ks9nz7.js.map → chunk-5h2xj3cx.js.map} +1 -1
- package/dist/{chunk-at6zjajz.js → chunk-5jvbr0e5.js} +2 -2
- package/dist/{chunk-at6zjajz.js.map → chunk-5jvbr0e5.js.map} +1 -1
- package/dist/{chunk-hmtn7996.js → chunk-5mrtgr7q.js} +2 -2
- package/dist/{chunk-hmtn7996.js.map → chunk-5mrtgr7q.js.map} +1 -1
- package/dist/{chunk-2vktfp1f.js → chunk-6d67a1d4.js} +2 -2
- package/dist/{chunk-2vktfp1f.js.map → chunk-6d67a1d4.js.map} +1 -1
- package/dist/{chunk-q0d45r2j.js → chunk-6r7956dh.js} +2 -2
- package/dist/{chunk-q0d45r2j.js.map → chunk-6r7956dh.js.map} +1 -1
- package/dist/{chunk-ee7xb9qr.js → chunk-6ttbhhnn.js} +1 -1
- package/dist/{chunk-w85wrer7.js → chunk-726gd69z.js} +2 -2
- package/dist/{chunk-w85wrer7.js.map → chunk-726gd69z.js.map} +1 -1
- package/dist/{chunk-dgna0e7g.js → chunk-79wjkaa4.js} +2 -2
- package/dist/{chunk-dgna0e7g.js.map → chunk-79wjkaa4.js.map} +1 -1
- package/dist/{chunk-c250kpcm.js → chunk-7etvj6w2.js} +2 -2
- package/dist/{chunk-c250kpcm.js.map → chunk-7etvj6w2.js.map} +1 -1
- package/dist/{chunk-yv3y3r9q.js → chunk-7sjzgme6.js} +4 -4
- package/dist/{chunk-yv3y3r9q.js.map → chunk-7sjzgme6.js.map} +1 -1
- package/dist/chunk-89egc0h3.js +5 -0
- package/dist/{chunk-4g24ffv8.js.map → chunk-89egc0h3.js.map} +1 -1
- package/dist/{chunk-4k3r37be.js → chunk-8a3fqcf0.js} +2 -2
- package/dist/{chunk-4k3r37be.js.map → chunk-8a3fqcf0.js.map} +1 -1
- package/dist/{chunk-3r7z4kc0.js → chunk-8ddt5fa2.js} +2 -2
- package/dist/{chunk-3r7z4kc0.js.map → chunk-8ddt5fa2.js.map} +1 -1
- package/dist/{chunk-4kkb85z8.js → chunk-8gnbc9dg.js} +3 -3
- package/dist/{chunk-4kkb85z8.js.map → chunk-8gnbc9dg.js.map} +1 -1
- package/dist/{chunk-66re5qsr.js → chunk-8nctfg18.js} +2 -2
- package/dist/{chunk-66re5qsr.js.map → chunk-8nctfg18.js.map} +1 -1
- package/dist/{chunk-17agj0r3.js → chunk-8vpe54ek.js} +2 -2
- package/dist/{chunk-17agj0r3.js.map → chunk-8vpe54ek.js.map} +1 -1
- package/dist/{chunk-9c8e4nkz.js → chunk-97tj0d7v.js} +2 -2
- package/dist/{chunk-9c8e4nkz.js.map → chunk-97tj0d7v.js.map} +1 -1
- package/dist/{chunk-w9a3b4vs.js → chunk-9yascc81.js} +2 -2
- package/dist/{chunk-w9a3b4vs.js.map → chunk-9yascc81.js.map} +1 -1
- package/dist/{chunk-9pvxexh1.js → chunk-adw279ge.js} +2 -2
- package/dist/{chunk-9pvxexh1.js.map → chunk-adw279ge.js.map} +1 -1
- package/dist/{chunk-w4aw44zg.js → chunk-anc5v266.js} +2 -2
- package/dist/{chunk-w4aw44zg.js.map → chunk-anc5v266.js.map} +1 -1
- package/dist/{chunk-6b7z5h54.js → chunk-ax042w6k.js} +2 -2
- package/dist/{chunk-6b7z5h54.js.map → chunk-ax042w6k.js.map} +1 -1
- package/dist/{chunk-59p034g3.js → chunk-b87wvmsz.js} +2 -2
- package/dist/{chunk-59p034g3.js.map → chunk-b87wvmsz.js.map} +1 -1
- package/dist/{chunk-xn7azkgd.js → chunk-bqm79ar0.js} +3 -3
- package/dist/{chunk-xn7azkgd.js.map → chunk-bqm79ar0.js.map} +1 -1
- package/dist/{chunk-5gp49wph.js → chunk-cf8bztwq.js} +2 -2
- package/dist/{chunk-yedb5vvg.js.map → chunk-cf8bztwq.js.map} +1 -1
- package/dist/{chunk-kggwk7hz.js → chunk-dj0nvj66.js} +1 -1
- package/dist/{chunk-xf3wke41.js → chunk-e4zxacxd.js} +2 -2
- package/dist/{chunk-xf3wke41.js.map → chunk-e4zxacxd.js.map} +1 -1
- package/dist/{chunk-b8tmmpcf.js → chunk-fp9yn4k8.js} +2 -2
- package/dist/{chunk-b8tmmpcf.js.map → chunk-fp9yn4k8.js.map} +1 -1
- package/dist/{chunk-sba3s380.js → chunk-fqhkkpq3.js} +2 -2
- package/dist/{chunk-sba3s380.js.map → chunk-fqhkkpq3.js.map} +1 -1
- package/dist/{chunk-nhebjh6n.js → chunk-fxa72ppw.js} +1 -1
- package/dist/{chunk-w9sw2kn7.js → chunk-gyszenps.js} +3 -3
- package/dist/{chunk-w9sw2kn7.js.map → chunk-gyszenps.js.map} +1 -1
- package/dist/{chunk-y12m6w7b.js → chunk-h1wmpa03.js} +2 -2
- package/dist/{chunk-y12m6w7b.js.map → chunk-h1wmpa03.js.map} +1 -1
- package/dist/{chunk-5vdkqv17.js → chunk-h9nt7hm6.js} +2 -2
- package/dist/{chunk-5vdkqv17.js.map → chunk-h9nt7hm6.js.map} +1 -1
- package/dist/{chunk-nrv7hdeh.js → chunk-j9abwrkv.js} +3 -3
- package/dist/{chunk-nrv7hdeh.js.map → chunk-j9abwrkv.js.map} +1 -1
- package/dist/{chunk-m68cxnbv.js → chunk-jf2dr481.js} +2 -2
- package/dist/{chunk-m68cxnbv.js.map → chunk-jf2dr481.js.map} +1 -1
- package/dist/{chunk-h6knw9f0.js → chunk-k16phdjv.js} +1 -1
- package/dist/{chunk-vewxnk3g.js → chunk-k6af7qek.js} +2 -2
- package/dist/{chunk-vewxnk3g.js.map → chunk-k6af7qek.js.map} +1 -1
- package/dist/{chunk-xm6hfksv.js → chunk-kp7wcpx7.js} +2 -2
- package/dist/{chunk-xm6hfksv.js.map → chunk-kp7wcpx7.js.map} +1 -1
- package/dist/{chunk-d6056zme.js → chunk-mt82209n.js} +2 -2
- package/dist/{chunk-d6056zme.js.map → chunk-mt82209n.js.map} +1 -1
- package/dist/{chunk-vawqmdh4.js → chunk-ncnygh0s.js} +2 -2
- package/dist/{chunk-vawqmdh4.js.map → chunk-ncnygh0s.js.map} +1 -1
- package/dist/{chunk-g178aect.js → chunk-nqgeny8m.js} +4 -4
- package/dist/{chunk-g178aect.js.map → chunk-nqgeny8m.js.map} +1 -1
- package/dist/{chunk-zy6hj5cc.js → chunk-nqqyn3cx.js} +2 -2
- package/dist/{chunk-zy6hj5cc.js.map → chunk-nqqyn3cx.js.map} +1 -1
- package/dist/{chunk-ppdfwnqw.js → chunk-nzd7z4s6.js} +1 -1
- package/dist/{chunk-s4sx97fn.js → chunk-p4v71qfx.js} +3 -3
- package/dist/{chunk-s4sx97fn.js.map → chunk-p4v71qfx.js.map} +1 -1
- package/dist/{chunk-vck02shp.js → chunk-ps5rpy9n.js} +2 -2
- package/dist/{chunk-vck02shp.js.map → chunk-ps5rpy9n.js.map} +1 -1
- package/dist/{chunk-gt6eq1p2.js → chunk-pxjkxhf9.js} +3 -3
- package/dist/{chunk-gt6eq1p2.js.map → chunk-pxjkxhf9.js.map} +1 -1
- package/dist/{chunk-r90djdx6.js → chunk-pxjptskr.js} +2 -2
- package/dist/{chunk-r90djdx6.js.map → chunk-pxjptskr.js.map} +1 -1
- package/dist/{chunk-6ncn8rdn.js → chunk-q5xcjm5z.js} +2 -2
- package/dist/{chunk-6ncn8rdn.js.map → chunk-q5xcjm5z.js.map} +1 -1
- package/dist/{chunk-0egjv6cj.js → chunk-qs2xvc8g.js} +2 -2
- package/dist/{chunk-0egjv6cj.js.map → chunk-qs2xvc8g.js.map} +1 -1
- package/dist/{chunk-6my6c6b1.js → chunk-qy0k2s5f.js} +2 -2
- package/dist/{chunk-6my6c6b1.js.map → chunk-qy0k2s5f.js.map} +1 -1
- package/dist/{chunk-jzqywxpj.js → chunk-rat2827k.js} +2 -2
- package/dist/{chunk-jzqywxpj.js.map → chunk-rat2827k.js.map} +1 -1
- package/dist/{chunk-ykshxc5k.js → chunk-s3gn68dy.js} +2 -2
- package/dist/{chunk-ykshxc5k.js.map → chunk-s3gn68dy.js.map} +1 -1
- package/dist/{chunk-8524ejgk.js → chunk-sfrjkysf.js} +2 -2
- package/dist/{chunk-8524ejgk.js.map → chunk-sfrjkysf.js.map} +1 -1
- package/dist/{chunk-cw50n89n.js → chunk-snmyjq03.js} +2 -2
- package/dist/{chunk-cw50n89n.js.map → chunk-snmyjq03.js.map} +1 -1
- package/dist/{chunk-cwm5x7rf.js → chunk-swmf6w3z.js} +2 -2
- package/dist/{chunk-cwm5x7rf.js.map → chunk-swmf6w3z.js.map} +1 -1
- package/dist/{chunk-xvf1hcxg.js → chunk-t0ke72e9.js} +2 -2
- package/dist/{chunk-xvf1hcxg.js.map → chunk-t0ke72e9.js.map} +1 -1
- package/dist/{chunk-gf3m0866.js → chunk-t586p2g2.js} +2 -2
- package/dist/{chunk-gf3m0866.js.map → chunk-t586p2g2.js.map} +1 -1
- package/dist/{chunk-zyvmbqcx.js → chunk-t8ygf6zj.js} +3 -3
- package/dist/{chunk-zyvmbqcx.js.map → chunk-t8ygf6zj.js.map} +1 -1
- package/dist/{chunk-ak85ee4e.js → chunk-tac25cnj.js} +3 -3
- package/dist/{chunk-ak85ee4e.js.map → chunk-tac25cnj.js.map} +1 -1
- package/dist/{chunk-p4b5hmr8.js → chunk-vcw98sp6.js} +3 -3
- package/dist/{chunk-p4b5hmr8.js.map → chunk-vcw98sp6.js.map} +1 -1
- package/dist/{chunk-jfpwjqvq.js → chunk-vcy1y0ta.js} +2 -2
- package/dist/{chunk-jfpwjqvq.js.map → chunk-vcy1y0ta.js.map} +1 -1
- package/dist/{chunk-fhb00fjx.js → chunk-vmmjq9fn.js} +2 -2
- package/dist/{chunk-fhb00fjx.js.map → chunk-vmmjq9fn.js.map} +1 -1
- package/dist/{chunk-prc4bcgp.js → chunk-wt4ekzp9.js} +2 -2
- package/dist/{chunk-prc4bcgp.js.map → chunk-wt4ekzp9.js.map} +1 -1
- package/dist/{chunk-xrkr2yzz.js → chunk-wy82t7mz.js} +2 -2
- package/dist/{chunk-xrkr2yzz.js.map → chunk-wy82t7mz.js.map} +1 -1
- package/dist/{chunk-g5drp5xx.js → chunk-x3pbssy4.js} +2 -2
- package/dist/{chunk-g5drp5xx.js.map → chunk-x3pbssy4.js.map} +1 -1
- package/dist/{chunk-71r1x773.js → chunk-xjgfmefy.js} +2 -2
- package/dist/{chunk-71r1x773.js.map → chunk-xjgfmefy.js.map} +1 -1
- package/dist/{chunk-qstjm3cb.js → chunk-yj7pbbnm.js} +2 -2
- package/dist/{chunk-qstjm3cb.js.map → chunk-yj7pbbnm.js.map} +1 -1
- package/dist/{chunk-qa528feb.js → chunk-zmt5kdpb.js} +2 -2
- package/dist/{chunk-qa528feb.js.map → chunk-zmt5kdpb.js.map} +1 -1
- package/dist/config/index.js +1 -1
- package/dist/console/run.js +2 -2
- package/dist/console/run.js.map +1 -1
- package/dist/container/index.js +2 -2
- package/dist/container/index.js.map +1 -1
- package/dist/database/index.js +2 -2
- package/dist/database/index.js.map +1 -1
- package/dist/email/index.js +2 -2
- package/dist/email/index.js.map +1 -1
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +1 -1
- package/dist/foundation/index.js +2 -2
- package/dist/foundation/index.js.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/i18n/dictionaryRuntime.js +2 -2
- package/dist/i18n/dictionaryRuntime.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +1 -1
- package/dist/orm/index.js +2 -2
- package/dist/orm/index.js.map +1 -1
- package/dist/probe/index.js +2 -2
- package/dist/probe/index.js.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.d.ts +2 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +3 -3
- package/dist/services/index.js.map +2 -2
- package/dist/services/queue/DatabaseQueueDriver.d.ts +8 -1
- package/dist/services/queue/DatabaseQueueDriver.d.ts.map +1 -1
- package/dist/services/queue/work.js +2 -2
- package/dist/services/queue/work.js.map +1 -1
- package/dist/services/queue/workflow/DatabaseWorkflowStore.d.ts +21 -0
- package/dist/services/queue/workflow/DatabaseWorkflowStore.d.ts.map +1 -1
- package/dist/services/queue/workflow/ItemSource.d.ts +68 -0
- package/dist/services/queue/workflow/ItemSource.d.ts.map +1 -0
- package/dist/services/queue/workflow/MemoryWorkflowStore.d.ts +12 -0
- package/dist/services/queue/workflow/MemoryWorkflowStore.d.ts.map +1 -1
- package/dist/services/queue/workflow/Step.d.ts +28 -1
- package/dist/services/queue/workflow/Step.d.ts.map +1 -1
- package/dist/services/queue/workflow/WorkflowRuntime.d.ts.map +1 -1
- package/dist/services/queue/workflow/WorkflowStore.d.ts +23 -1
- package/dist/services/queue/workflow/WorkflowStore.d.ts.map +1 -1
- package/dist/services/queue/workflow/workflowContract.d.ts.map +1 -1
- package/dist/stats/route-table.js +1 -1
- package/dist/support/index.js +2 -2
- package/dist/support/index.js.map +1 -1
- package/dist/vitest/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4g24ffv8.js +0 -5
- package/dist/chunk-pnt0c59g.js +0 -484
- package/dist/chunk-pnt0c59g.js.map +0 -24
- /package/dist/{chunk-v0sgcy87.js.map → chunk-4wh4dfgf.js.map} +0 -0
- /package/dist/{chunk-ee7xb9qr.js.map → chunk-6ttbhhnn.js.map} +0 -0
- /package/dist/{chunk-kggwk7hz.js.map → chunk-dj0nvj66.js.map} +0 -0
- /package/dist/{chunk-nhebjh6n.js.map → chunk-fxa72ppw.js.map} +0 -0
- /package/dist/{chunk-h6knw9f0.js.map → chunk-k16phdjv.js.map} +0 -0
- /package/dist/{chunk-ppdfwnqw.js.map → chunk-nzd7z4s6.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{W as re}from"./chunk-
|
|
2
|
+
import{W as re}from"./chunk-8ddt5fa2.js";import{Nm as _,Qm as a}from"./chunk-3dkv4989.js";var I=_((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.getHomeDir=void 0;var W=a("os"),V=a("path"),x={},G=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:o=`C:${V.sep}`}=process.env;if(e)return e;if(t)return t;if(r)return`${o}${r}`;let i=G();if(!x[i])x[i]=(0,W.homedir)();return x[i]};b.getHomeDir=U});var P=_((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.getSSOTokenFilepath=void 0;var X=a("crypto"),B=a("path"),J=I(),z=(e)=>{let r=(0,X.createHash)("sha1").update(e).digest("hex");return(0,B.join)((0,J.getHomeDir)(),".aws","sso","cache",`${r}.json`)};j.getSSOTokenFilepath=z});var R=_((C)=>{Object.defineProperty(C,"__esModule",{value:!0});C.getSSOTokenFromFile=C.tokenIntercept=void 0;var Q=a("fs/promises"),Y=P();C.tokenIntercept={};var Z=async(e)=>{if(C.tokenIntercept[e])return C.tokenIntercept[e];let t=(0,Y.getSSOTokenFilepath)(e),r=await(0,Q.readFile)(t,"utf8");return JSON.parse(r)};C.getSSOTokenFromFile=Z});var k=_((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.readFile=L.fileIntercept=L.filePromises=void 0;var ee=a("fs/promises");L.filePromises={};L.fileIntercept={};var te=(e,t)=>{if(L.fileIntercept[e]!==void 0)return L.fileIntercept[e];if(!L.filePromises[e]||t?.ignoreCache)L.filePromises[e]=(0,ee.readFile)(e,"utf8");return L.filePromises[e]};L.readFile=te});var ye=_((c)=>{var l=I(),O=P(),y=R(),g=a("path"),S=re(),f=k(),q="AWS_PROFILE",$="default",oe=(e)=>e.profile||process.env[q]||$,p=".",ie=(e)=>Object.entries(e).filter(([t])=>{let r=t.indexOf(p);if(r===-1)return!1;return Object.values(S.IniSectionType).includes(t.substring(0,r))}).reduce((t,[r,o])=>{let i=r.indexOf(p),n=r.substring(0,i)===S.IniSectionType.PROFILE?r.substring(i+1):r;return t[n]=o,t},{...e.default&&{default:e.default}}),ne="AWS_CONFIG_FILE",M=()=>process.env[ne]||g.join(l.getHomeDir(),".aws","config"),se="AWS_SHARED_CREDENTIALS_FILE",ce=()=>process.env[se]||g.join(l.getHomeDir(),".aws","credentials"),ae=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,le=["__proto__","profile __proto__"],T=(e)=>{let t={},r,o;for(let i of e.split(/\r?\n/)){let n=i.split(/(^|\s)[;#]/)[0].trim();if(n[0]==="["&&n[n.length-1]==="]"){r=void 0,o=void 0;let s=n.substring(1,n.length-1),u=ae.exec(s);if(u){let[,d,,m]=u;if(Object.values(S.IniSectionType).includes(d))r=[d,m].join(p)}else r=s;if(le.includes(s))throw Error(`Found invalid profile name "${s}"`)}else if(r){let s=n.indexOf("=");if(![0,-1].includes(s)){let[u,d]=[n.substring(0,s).trim(),n.substring(s+1).trim()];if(d==="")o=u;else{if(o&&i.trimStart()===i)o=void 0;t[r]=t[r]||{};let m=o?[o,u].join(p):u;t[r][m]=d}}}}return t},A=()=>({}),K=async(e={})=>{let{filepath:t=ce(),configFilepath:r=M()}=e,o=l.getHomeDir(),i="~/",n=t;if(t.startsWith("~/"))n=g.join(o,t.slice(2));let h=r;if(r.startsWith("~/"))h=g.join(o,r.slice(2));let s=await Promise.all([f.readFile(h,{ignoreCache:e.ignoreCache}).then(T).then(ie).catch(A),f.readFile(n,{ignoreCache:e.ignoreCache}).then(T).catch(A)]);return{configFile:s[0],credentialsFile:s[1]}},pe=(e)=>Object.entries(e).filter(([t])=>t.startsWith(S.IniSectionType.SSO_SESSION+p)).reduce((t,[r,o])=>({...t,[r.substring(r.indexOf(p)+1)]:o}),{}),ue=()=>({}),fe=async(e={})=>f.readFile(e.configFilepath??M()).then(T).then(pe).catch(ue),de=(...e)=>{let t={};for(let r of e)for(let[o,i]of Object.entries(r))if(t[o]!==void 0)Object.assign(t[o],i);else t[o]=i;return t},_e=async(e)=>{let t=await K(e);return de(t.configFile,t.credentialsFile)},Fe={getFileRecord(){return f.fileIntercept},interceptFile(e,t){f.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return y.tokenIntercept},interceptToken(e,t){y.tokenIntercept[e]=t}};c.getSSOTokenFromFile=y.getSSOTokenFromFile;c.readFile=f.readFile;c.CONFIG_PREFIX_SEPARATOR=p;c.DEFAULT_PROFILE=$;c.ENV_PROFILE=q;c.externalDataInterceptor=Fe;c.getProfileName=oe;c.loadSharedConfigFiles=K;c.loadSsoSessionData=fe;c.parseKnownFiles=_e;Object.prototype.hasOwnProperty.call(l,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:l.__proto__});Object.keys(l).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=l[e]});Object.prototype.hasOwnProperty.call(O,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:O.__proto__});Object.keys(O).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=O[e]})});
|
|
3
3
|
export{ye as V};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=72A70CEEAD40466964756E2164756E21
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"'use strict';\n\nvar getHomeDir = require('./getHomeDir');\nvar getSSOTokenFilepath = require('./getSSOTokenFilepath');\nvar getSSOTokenFromFile = require('./getSSOTokenFromFile');\nvar path = require('path');\nvar types = require('@smithy/types');\nvar readFile = require('./readFile');\n\nconst ENV_PROFILE = \"AWS_PROFILE\";\nconst DEFAULT_PROFILE = \"default\";\nconst getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;\n\nconst CONFIG_PREFIX_SEPARATOR = \".\";\n\nconst getConfigData = (data) => Object.entries(data)\n .filter(([key]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n if (indexOfSeparator === -1) {\n return false;\n }\n return Object.values(types.IniSectionType).includes(key.substring(0, indexOfSeparator));\n})\n .reduce((acc, [key, value]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n const updatedKey = key.substring(0, indexOfSeparator) === types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;\n acc[updatedKey] = value;\n return acc;\n}, {\n ...(data.default && { default: data.default }),\n});\n\nconst ENV_CONFIG_PATH = \"AWS_CONFIG_FILE\";\nconst getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path.join(getHomeDir.getHomeDir(), \".aws\", \"config\");\n\nconst ENV_CREDENTIALS_PATH = \"AWS_SHARED_CREDENTIALS_FILE\";\nconst getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path.join(getHomeDir.getHomeDir(), \".aws\", \"credentials\");\n\nconst prefixKeyRegex = /^([\\w-]+)\\s([\"'])?([\\w-@\\+\\.%:/]+)\\2$/;\nconst profileNameBlockList = [\"__proto__\", \"profile __proto__\"];\nconst parseIni = (iniData) => {\n const map = {};\n let currentSection;\n let currentSubSection;\n for (const iniLine of iniData.split(/\\r?\\n/)) {\n const trimmedLine = iniLine.split(/(^|\\s)[;#]/)[0].trim();\n const isSection = trimmedLine[0] === \"[\" && trimmedLine[trimmedLine.length - 1] === \"]\";\n if (isSection) {\n currentSection = undefined;\n currentSubSection = undefined;\n const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);\n const matches = prefixKeyRegex.exec(sectionName);\n if (matches) {\n const [, prefix, , name] = matches;\n if (Object.values(types.IniSectionType).includes(prefix)) {\n currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);\n }\n }\n else {\n currentSection = sectionName;\n }\n if (profileNameBlockList.includes(sectionName)) {\n throw new Error(`Found invalid profile name \"${sectionName}\"`);\n }\n }\n else if (currentSection) {\n const indexOfEqualsSign = trimmedLine.indexOf(\"=\");\n if (![0, -1].includes(indexOfEqualsSign)) {\n const [name, value] = [\n trimmedLine.substring(0, indexOfEqualsSign).trim(),\n trimmedLine.substring(indexOfEqualsSign + 1).trim(),\n ];\n if (value === \"\") {\n currentSubSection = name;\n }\n else {\n if (currentSubSection && iniLine.trimStart() === iniLine) {\n currentSubSection = undefined;\n }\n map[currentSection] = map[currentSection] || {};\n const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;\n map[currentSection][key] = value;\n }\n }\n }\n }\n return map;\n};\n\nconst swallowError$1 = () => ({});\nconst loadSharedConfigFiles = async (init = {}) => {\n const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;\n const homeDir = getHomeDir.getHomeDir();\n const relativeHomeDirPrefix = \"~/\";\n let resolvedFilepath = filepath;\n if (filepath.startsWith(relativeHomeDirPrefix)) {\n resolvedFilepath = path.join(homeDir, filepath.slice(2));\n }\n let resolvedConfigFilepath = configFilepath;\n if (configFilepath.startsWith(relativeHomeDirPrefix)) {\n resolvedConfigFilepath = path.join(homeDir, configFilepath.slice(2));\n }\n const parsedFiles = await Promise.all([\n readFile.readFile(resolvedConfigFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .then(getConfigData)\n .catch(swallowError$1),\n readFile.readFile(resolvedFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .catch(swallowError$1),\n ]);\n return {\n configFile: parsedFiles[0],\n credentialsFile: parsedFiles[1],\n };\n};\n\nconst getSsoSessionData = (data) => Object.entries(data)\n .filter(([key]) => key.startsWith(types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))\n .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});\n\nconst swallowError = () => ({});\nconst loadSsoSessionData = async (init = {}) => readFile.readFile(init.configFilepath ?? getConfigFilepath())\n .then(parseIni)\n .then(getSsoSessionData)\n .catch(swallowError);\n\nconst mergeConfigFiles = (...files) => {\n const merged = {};\n for (const file of files) {\n for (const [key, values] of Object.entries(file)) {\n if (merged[key] !== undefined) {\n Object.assign(merged[key], values);\n }\n else {\n merged[key] = values;\n }\n }\n }\n return merged;\n};\n\nconst parseKnownFiles = async (init) => {\n const parsedFiles = await loadSharedConfigFiles(init);\n return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);\n};\n\nconst externalDataInterceptor = {\n getFileRecord() {\n return readFile.fileIntercept;\n },\n interceptFile(path, contents) {\n readFile.fileIntercept[path] = Promise.resolve(contents);\n },\n getTokenRecord() {\n return getSSOTokenFromFile.tokenIntercept;\n },\n interceptToken(id, contents) {\n getSSOTokenFromFile.tokenIntercept[id] = contents;\n },\n};\n\nexports.getSSOTokenFromFile = getSSOTokenFromFile.getSSOTokenFromFile;\nexports.readFile = readFile.readFile;\nexports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;\nexports.DEFAULT_PROFILE = DEFAULT_PROFILE;\nexports.ENV_PROFILE = ENV_PROFILE;\nexports.externalDataInterceptor = externalDataInterceptor;\nexports.getProfileName = getProfileName;\nexports.loadSharedConfigFiles = loadSharedConfigFiles;\nexports.loadSsoSessionData = loadSsoSessionData;\nexports.parseKnownFiles = parseKnownFiles;\nObject.prototype.hasOwnProperty.call(getHomeDir, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: getHomeDir['__proto__']\n });\n\nObject.keys(getHomeDir).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getHomeDir[k];\n});\nObject.prototype.hasOwnProperty.call(getSSOTokenFilepath, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: getSSOTokenFilepath['__proto__']\n });\n\nObject.keys(getSSOTokenFilepath).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getSSOTokenFilepath[k];\n});\n"
|
|
10
10
|
],
|
|
11
11
|
"mappings": ";8GACA,CAAO,eAAe,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EACpD,aAAkB,OAC1B,IAAM,UACA,YACA,EAAe,CAAC,EAChB,EAAqB,IAAM,CAC7B,GAAI,SAAW,QAAQ,QACnB,MAAO,GAAG,QAAQ,QAAQ,IAE9B,MAAO,WAEL,EAAa,IAAM,CACrB,IAAQ,OAAM,cAAa,WAAU,YAAY,KAAK,EAAO,OAAU,QAAQ,IAC/E,GAAI,EACA,OAAO,EACX,GAAI,EACA,OAAO,EACX,GAAI,EACA,MAAO,GAAG,IAAY,IAC1B,IAAM,EAAkB,EAAmB,EAC3C,GAAI,CAAC,EAAa,GACd,EAAa,IAAoB,EAAG,EAAK,SAAS,EACtD,OAAO,EAAa,IAEhB,aAAa,kBCxBrB,OAAO,eAAe,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EACpD,sBAA2B,OACnC,IAAM,cACA,YACA,MACA,EAAsB,CAAC,IAAO,CAEhC,IAAM,GADU,EAAG,EAAS,YAAY,MAAM,EACrB,OAAO,CAAE,EAAE,OAAO,KAAK,EAChD,OAAQ,EAAG,EAAO,OAAO,EAAG,EAAa,YAAY,EAAG,OAAQ,MAAO,QAAS,GAAG,QAAgB,GAE/F,sBAAsB,kBCV9B,OAAO,eAAe,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EACpD,sBAA8B,iBAAsB,OAC5D,IAAM,mBACA,MACE,iBAAiB,CAAC,EAC1B,IAAM,EAAsB,MAAO,IAAO,CACtC,GAAY,iBAAe,GACvB,OAAe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un
|
|
2
2
|
class A extends Error{constructor(p,q){super(`Target [${p}] is not bound in the container.`+(q.length>0?` Bound tokens: ${q.join(", ")}.`:" No tokens are bound \u2014 was the application booted?"));this.name="BindingResolutionError"}}class C{bindings=new Map;instances=new Map;bind(p,q){this.bindings.set(p.token,{factory:q,shared:!1}),this.instances.delete(p.token)}singleton(p,q){this.bindings.set(p.token,{factory:q,shared:!0}),this.instances.delete(p.token)}instance(p,q){return this.instances.set(p.token,q),q}bound(p){return this.bindings.has(p.token)||this.instances.has(p.token)}resolved(p){return this.instances.has(p.token)}make(p){let q=p.token;if(this.instances.has(q))return this.instances.get(q);let v=this.bindings.get(q);if(!v)throw new A(q,this.keys());let x=v.factory(this);if(v.shared)this.instances.set(q,x);return x}forget(p){this.instances.delete(p.token)}keys(){return[...new Set([...this.bindings.keys(),...this.instances.keys()])]}flush(){this.bindings.clear(),this.instances.clear()}}
|
|
3
|
-
export{A as
|
|
3
|
+
export{A as mm,C as nm};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=EC0FB9E9F72BEA5064756E2164756E21
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"/**\n * Tokens are the service classes themselves, so `make(MailManager)` is typed\n * `MailManager` without a cast. The container keys its bindings off the class's\n * `static token` string rather than the constructor object: the built binary\n * (`dist/bin/gemi.js`) bundles its own copy of gemi while the app resolves\n * `gemi/*` to source, so the same service is two distinct class objects across\n * that boundary. A string survives it. Laravel binds both `'mail'` and\n * `MailManager::class` for the same reason.\n */\nexport type ServiceToken<T> = (abstract new (...args: any[]) => T) & {\n token: string;\n};\n\nexport type Factory<T> = (app: Container) => T;\n\ninterface Binding {\n factory: Factory<any>;\n shared: boolean;\n}\n\nexport class BindingResolutionError extends Error {\n constructor(token: string, known: string[]) {\n super(\n `Target [${token}] is not bound in the container.` +\n (known.length > 0\n ? ` Bound tokens: ${known.join(\", \")}.`\n : \" No tokens are bound — was the application booted?\"),\n );\n this.name = \"BindingResolutionError\";\n }\n}\n\nexport class Container {\n private bindings = new Map<string, Binding>();\n private instances = new Map<string, any>();\n\n bind<T>(token: ServiceToken<T>, factory: Factory<T>) {\n this.bindings.set(token.token, { factory, shared: false });\n this.instances.delete(token.token);\n }\n\n /**\n * Lazy by design — `factory` is not called until the first `make()`.\n */\n singleton<T>(token: ServiceToken<T>, factory: Factory<T>) {\n this.bindings.set(token.token, { factory, shared: true });\n this.instances.delete(token.token);\n }\n\n instance<T>(token: ServiceToken<T>, object: T): T {\n this.instances.set(token.token, object);\n return object;\n }\n\n bound<T>(token: ServiceToken<T>): boolean {\n return (\n this.bindings.has(token.token) || this.instances.has(token.token)\n );\n }\n\n resolved<T>(token: ServiceToken<T>): boolean {\n return this.instances.has(token.token);\n }\n\n make<T>(token: ServiceToken<T>): T {\n const key = token.token;\n\n if (this.instances.has(key)) {\n return this.instances.get(key) as T;\n }\n\n const binding = this.bindings.get(key);\n if (!binding) {\n throw new BindingResolutionError(key, this.keys());\n }\n\n const object = binding.factory(this) as T;\n if (binding.shared) {\n this.instances.set(key, object);\n }\n return object;\n }\n\n forget<T>(token: ServiceToken<T>) {\n this.instances.delete(token.token);\n }\n\n keys(): string[] {\n return [\n ...new Set([...this.bindings.keys(), ...this.instances.keys()]),\n ];\n }\n\n flush() {\n this.bindings.clear();\n this.instances.clear();\n }\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";AAoBO,MAAM,UAA+B,KAAM,CAChD,WAAW,CAAC,EAAe,EAAiB,CAC1C,MACE,WAAW,qCACR,EAAM,OAAS,EACZ,kBAAkB,EAAM,KAAK,IAAI,KACjC,0DACR,EACA,KAAK,KAAO,yBAEhB,CAEO,MAAM,CAAU,CACb,SAAW,IAAI,IACf,UAAY,IAAI,IAExB,IAAO,CAAC,EAAwB,EAAqB,CACnD,KAAK,SAAS,IAAI,EAAM,MAAO,CAAE,UAAS,OAAQ,EAAM,CAAC,EACzD,KAAK,UAAU,OAAO,EAAM,KAAK,EAMnC,SAAY,C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-hke4hzfm.js";import{Na as I}from"./chunk-0cckwd91.js";import{Oa as T,Pa as E}from"./chunk-
|
|
2
|
+
import{Da as w,Ea as P,Fa as R,Ga as b}from"./chunk-v2fd69at.js";import{Ja as K,Ka as _,La as L,Ma as A}from"./chunk-hke4hzfm.js";import{Na as I}from"./chunk-0cckwd91.js";import{Oa as T,Pa as E}from"./chunk-h9nt7hm6.js";var i=["gemi","gemi/client","gemi/http","gemi/app","gemi/facades","gemi/email","gemi/kernel","gemi/services","gemi/i18n","gemi/dictionary"];function O(q){return q==="gemi"||q.startsWith("gemi/")}import{parseAstAsync as h}from"vite";var V="virtual:gemi-dict/",x="\x00virtual:gemi-dict/",f=new Set(["gemi/dictionary","gemi/client","gemi/i18n"]),y="gemi/dictionary";function B(){let q=new Map;return{name:"gemi-plugin-dictionary",enforce:"post",resolveId(H){if(H.startsWith(V))return`\x00${H}`;return null},async load(H){if(!H.startsWith(x))return null;let Q=H.slice(x.length),W=Q.lastIndexOf("/"),J=Q.slice(0,W),Y=Q.slice(W+1),$=q.get(J);if(!$){let M=g(J);if(M){try{await this.load({id:M})}catch{}$=q.get(J)}}if(!$)return this.error(`No dictionary registered for "${J}". If this persists, restart the dev server.`),null;let G=_($.translations,Y,$.locales);return`export default ${JSON.stringify(G)};
|
|
3
3
|
`},async transform(H,Q){if(!H.includes("defineDictionary"))return null;if(Q.startsWith("\x00")||Q.includes("/node_modules/"))return null;let W=await h(H),J=new Set;for(let Z of W.body){if(Z.type!=="ImportDeclaration")continue;if(!f.has(Z.source?.value))continue;for(let z of Z.specifiers??[])if(z.type==="ImportSpecifier"&&z.imported?.name==="defineDictionary")J.add(z.local.name)}let Y=[],$=0;if(X(W,(Z)=>{if(Z.type!=="CallExpression")return;let z=Z.callee;if(z?.type==="Identifier"&&J.has(z.name)){Y.push(Z);return}if((z?.type==="Identifier"?z.name:z?.type==="MemberExpression"&&!z.computed?z.property?.name:void 0)==="defineDictionary")$++}),$>0&&p(W,"defineDictionary"))$=0;if($>0)this.warn(`${Q}: ${$} defineDictionary() call(s) could not be traced to an import of "gemi/dictionary", "gemi/client" or "gemi/i18n", so their locales were left inline and will all ship to the browser. Import defineDictionary directly by name rather than through a namespace import or a local re-export.`);if(Y.length===0)return null;let G=new T(H),M=!1;for(let Z of Y){if(Z.arguments?.length<1||Z.arguments?.length>2)this.error({message:"defineDictionary() takes an object literal and an optional options object.",pos:Z.start});let z=m(Z.arguments[0],(j)=>this.error({message:j,pos:Z.arguments[0]?.start??Z.start})),F=v(Z.arguments[1],(j)=>this.error({message:j,pos:Z.arguments[1]?.start??Z.start})),D=A(z),C=`${Buffer.from(Q).toString("base64url")}/${D}`,N=K(z,F);if(N.length===0)this.error({message:'defineDictionary() declares no locales \u2014 every key needs at least one "<locale>": "<string>" entry.',pos:Z.start});if(!F){let j=L(z);if(j)this.error({message:`defineDictionary() cannot infer a source language. Key "${j.againstKey}" lists "${j.againstFirst}" first but "${j.key}" lists "${j.first}" first, so the locale every key falls back to depends on the order `+"they are written in \u2014 moving one key would change what language a reader sees. "+'Pass { sourceLocale: "<locale>" } as the second argument to pin it.',pos:Z.start})}q.set(C,{id:D,locales:N,translations:z});let S=N.map((j)=>`${JSON.stringify(j)}:()=>import(${JSON.stringify(`${V}${C}/${j}`)})`).join(",");G.overwrite(Z.start,Z.end,`__gemi_dict__(${JSON.stringify(D)},{${S}})`),M=!0}if(!M)return null;return G.append(`
|
|
4
4
|
import { __gemi_dict__ } from ${JSON.stringify(y)};
|
|
5
5
|
`),{code:G.toString(),map:G.generateMap({hires:!0})}}}}function g(q){let H=q.indexOf("/");if(H===-1)return null;try{return Buffer.from(q.slice(0,H),"base64url").toString("utf8")}catch{return null}}function m(q,H){if(q?.type!=="ObjectExpression")H("defineDictionary() needs an inline object literal \u2014 it is read at build time, so a variable or spread cannot be resolved.");let Q={};for(let W of q.properties){let J=U(W);if(J===null)H("defineDictionary() keys must be plain string keys \u2014 computed keys and spreads cannot be read at build time.");if(W.value?.type!=="ObjectExpression")H(`defineDictionary() entry "${J}" must be an object of "<locale>": "<string>" pairs.`);let Y={};for(let $ of W.value.properties){let G=U($);if(G===null)H(`defineDictionary() entry "${J}" has a locale key that cannot be read at build time.`);let M=$.value;if(M?.type!=="Literal"||typeof M.value!=="string")H(`defineDictionary() entry "${J}" locale "${G}" must be a string literal. Use {{param}} interpolation instead of a template literal or a function.`);Y[G]=M.value}Q[J]=Y}return Q}function v(q,H){if(q===void 0)return;if(q.type!=="ObjectExpression")H("defineDictionary() options must be an inline object literal \u2014 it is read at build time.");for(let Q of q.properties){if(U(Q)!=="sourceLocale")continue;let W=Q.value;if(W?.type!=="Literal"||typeof W.value!=="string")H("defineDictionary() sourceLocale must be a string literal.");return W.value}return}function p(q,H){let Q=!1;return X(q,(W)=>{if(Q)return;if(W.type==="FunctionDeclaration"&&W.id?.name===H)Q=!0;if(W.type==="VariableDeclarator"&&W.id?.name===H)Q=!0}),Q}function U(q){if(q?.type!=="Property"||q.computed)return null;if(q.key?.type==="Identifier")return q.key.name;if(q.key?.type==="Literal"&&typeof q.key.value==="string")return q.key.value;return null}function X(q,H){if(q===null||typeof q!=="object")return;if(Array.isArray(q)){for(let Q of q)X(Q,H);return}if(typeof q.type==="string")H(q);for(let Q of Object.keys(q)){if(Q==="parent")continue;let W=q[Q];if(W&&typeof W==="object")X(W,H)}}import{mkdir as u,writeFile as c}from"fs/promises";import{dirname as r,join as t}from"path";function k(q){let H;return{name:"gemi-plugin-asset-base",config:(Q,W)=>W.command==="build"&&q?{base:q}:void 0,configResolved(Q){H=Q},async writeBundle(Q){if(!H||H.command!=="build"||H.build.ssr||!Q.dir)return;let W=t(Q.dir,P);await u(r(W),{recursive:!0}),await c(W,`${JSON.stringify({assetBase:d(H.base)})}
|