@kyro-cms/core 0.12.65 → 0.12.67

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.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/dist/{WebhookService-Bue85CZq.d.ts → WebhookService-CGNSlclW.d.ts} +1 -1
  3. package/dist/{WebhookService-B-jb55_P.d.cts → WebhookService-CIQPD1We.d.cts} +1 -1
  4. package/dist/api-handler-graphql.cjs +1 -1
  5. package/dist/api-handler-graphql.js +1 -1
  6. package/dist/api-handler-trpc.cjs +1 -1
  7. package/dist/api-handler-trpc.js +1 -1
  8. package/dist/api-handler.cjs +1 -1
  9. package/dist/api-handler.js +1 -1
  10. package/dist/{base-CU2tjpsX.d.cts → base-Ds06wMo9.d.cts} +2 -2
  11. package/dist/{base-CTeNj4rw.d.ts → base-DxDXLyWe.d.ts} +2 -2
  12. package/dist/chunk-2XUD2OPJ.js +121 -0
  13. package/dist/{chunk-LVHWORV4.js → chunk-4YCI3HBD.js} +3 -3
  14. package/dist/chunk-7LLCXY5O.cjs +19 -0
  15. package/dist/{chunk-N4HVIKNF.cjs → chunk-B3BSVEFC.cjs} +1 -1
  16. package/dist/{chunk-7JCRN5ZH.cjs → chunk-CTIQQ3ZX.cjs} +17 -17
  17. package/dist/{chunk-QBYXAKHH.js → chunk-EJN3FJWB.js} +2 -2
  18. package/dist/{chunk-ZDMJOFKR.cjs → chunk-GH4OVDIL.cjs} +1 -1
  19. package/dist/{chunk-H5BTDZXQ.js → chunk-HEGM2QMX.js} +18 -18
  20. package/dist/{chunk-YFUH3SST.cjs → chunk-IL2TMAHB.cjs} +25 -25
  21. package/dist/chunk-JCEJ4VTN.js +20 -0
  22. package/dist/chunk-JSTDCK3Z.js +2 -0
  23. package/dist/chunk-MSC4G2HF.cjs +2 -0
  24. package/dist/{chunk-AXT3QPVM.js → chunk-MVZSSTCV.js} +26 -26
  25. package/dist/chunk-MYGHZQMO.cjs +1 -0
  26. package/dist/{chunk-KCQBV3MA.js → chunk-VTOL3URF.js} +1 -1
  27. package/dist/chunk-X6HUA6EF.cjs +20 -0
  28. package/dist/chunk-XDPLVJRO.js +21 -0
  29. package/dist/chunk-ZED7JS6I.cjs +120 -0
  30. package/dist/client.cjs +1 -1
  31. package/dist/client.d.cts +3 -3
  32. package/dist/client.d.ts +3 -3
  33. package/dist/client.js +1 -1
  34. package/dist/drizzle/index.cjs +1 -1
  35. package/dist/drizzle/index.d.cts +3 -3
  36. package/dist/drizzle/index.d.ts +3 -3
  37. package/dist/drizzle/index.js +1 -1
  38. package/dist/fields/index.d.cts +2 -2
  39. package/dist/fields/index.d.ts +2 -2
  40. package/dist/graphql/index.d.cts +3 -3
  41. package/dist/graphql/index.d.ts +3 -3
  42. package/dist/{index-HNBjfQpn.d.cts → index-BHYGO3yF.d.cts} +2 -2
  43. package/dist/{index-Bz9JqRGI.d.cts → index-D7kt5jT_.d.ts} +12 -1
  44. package/dist/{index-Bz9JqRGI.d.ts → index-DPtCjn94.d.cts} +12 -1
  45. package/dist/{index-DowyndWK.d.ts → index-DTy4k1oU.d.ts} +2 -2
  46. package/dist/index.cjs +5 -5
  47. package/dist/index.d.cts +12 -12
  48. package/dist/index.d.ts +12 -12
  49. package/dist/index.js +6 -6
  50. package/dist/integration.cjs +1 -1
  51. package/dist/integration.js +1 -1
  52. package/dist/{local-4MZ7KOL3.js → local-DPLKZQA3.js} +1 -1
  53. package/dist/{local-NDTKWJQ6.cjs → local-S5VA7IXE.cjs} +1 -1
  54. package/dist/mongodb/index.cjs +1 -1
  55. package/dist/mongodb/index.d.cts +3 -3
  56. package/dist/mongodb/index.d.ts +3 -3
  57. package/dist/mongodb/index.js +1 -1
  58. package/dist/rest/index.cjs +1 -1
  59. package/dist/rest/index.d.cts +4 -4
  60. package/dist/rest/index.d.ts +4 -4
  61. package/dist/rest/index.js +1 -1
  62. package/dist/templates/index.cjs +1 -1
  63. package/dist/templates/index.d.cts +2 -2
  64. package/dist/templates/index.d.ts +2 -2
  65. package/dist/templates/index.js +1 -1
  66. package/dist/trpc/index.d.cts +3 -3
  67. package/dist/trpc/index.d.ts +3 -3
  68. package/dist/{types-euTszc-1.d.cts → types-BKPEavuy.d.cts} +3 -0
  69. package/dist/{types-euTszc-1.d.ts → types-BKPEavuy.d.ts} +3 -0
  70. package/dist/{types-ComJeXGL.d.cts → types-BWJx6zzm.d.ts} +38 -14
  71. package/dist/{types-COokblgr.d.ts → types-CeAQSR87.d.cts} +38 -14
  72. package/package.json +2 -2
  73. package/dist/chunk-2F4WPCVA.cjs +0 -120
  74. package/dist/chunk-6KERPHAL.cjs +0 -2
  75. package/dist/chunk-HKYBQYAJ.cjs +0 -19
  76. package/dist/chunk-HOX6BHKS.js +0 -121
  77. package/dist/chunk-JW4HRIVP.cjs +0 -20
  78. package/dist/chunk-QXWQELAM.js +0 -21
  79. package/dist/chunk-T4JJVUGT.js +0 -20
@@ -1,2 +1,2 @@
1
- import {D,A}from'./chunk-H5BTDZXQ.js';import {e}from'./chunk-TBTQXIHP.js';import {hb}from'./chunk-HOX6BHKS.js';import {a as a$1}from'./chunk-N6MNQIQU.js';import {c}from'./chunk-AXT3QPVM.js';import {a}from'./chunk-ZWDBPEXL.js';import {a as a$2}from'./chunk-5ZEYOFAK.js';import {g}from'./chunk-Y2YAKDEQ.js';import w from'kyro:config';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
2
- g();var r=null,l=null;async function b(){if(!r){if(globalThis.__KYRO_INSTANCE__)try{await globalThis.__KYRO_INSTANCE__.shutdown();}catch{}try{let e$1=w.default||w,t=e$1.adapter,o=t&&!t.dialect&&typeof t.connect=="function";if(globalThis.DB&&(!t||o)){let s=globalThis.DB;e$1.adapter=new c({type:"sqlite",client:s}),D.info("Hot-swapped to D1 DrizzleAdapter");}r=A(e$1),await r.init();let a$3=e$1.adapter,p=a$3&&a$3.dialect&&(a$3.dialect==="postgres"||a$3.dialect==="sqlite"),c$1=a$3&&a$3.dialect==="mongodb",n;if(p)a$3.dialect==="postgres"?n=new a({db:a$3.client}):a$3.dialect==="sqlite"&&(n=new hb({db:a$3.rawClient||a$3.client}));else if(o&&!globalThis.DB){let s=process.env.KYRO_AUTH_DB_PATH||"./data/auth.db";n=new a$1({path:s});}else c$1&&(n=new a$2({adapter:a$3}));if(n?.connect)try{await n.connect();}catch(s){D.warn("Auth connect warning:",s);}try{await r.loadSettings();}catch(s){D.warn("loadSettings warning:",s);}try{await e(n);}catch(s){D.warn("autoBootstrap warning:",s);}globalThis.__KYRO_INSTANCE__=r;}catch(e){throw r=null,l=null,D.error("Init failed, will retry:",e),e}}}async function E(e){let t=globalThis.DB?globalThis:null;try{let{env:o}=await import('cloudflare:workers');o&&(t=o);}catch{}if(e)try{t=e.locals?.cfContext?.env||e?.env||t;}catch{}if(!t)try{t=process.env;}catch{}t?.DB&&(globalThis.DB=t.DB),t?.STORAGE_BUCKET&&(globalThis.STORAGE_BUCKET=t.STORAGE_BUCKET),l||(l=b()),await l;}var _={graphqlEnabled:false,trpcEnabled:false,wsEnabled:false,requireAuth:false};function T(e){return r?r.settings?.access?.apiAccess?.[e]??_[e]??true:_[e]??true}var R=async e=>{if(!r)try{await Promise.race([E(e),new Promise((t,o)=>setTimeout(()=>o(new Error("Initialization timeout")),3e4))]);}catch(t){return console.error("[Kyro API] Warm error:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Service Unavailable",message:"Kyro CMS is still starting up. Please try again in a moment."}),{status:503,headers:{"Content-Type":"application/json","Retry-After":"5"}})}try{let o=new URL(e.request.url).pathname,a=__KYRO_API_PATH__;if(o===`${a}/graphql`&&typeof r.getGraphQL=="function"){if(!T("graphqlEnabled"))return new Response(JSON.stringify({error:"GraphQL is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await r.getGraphQL().fetch(e.request,e.locals);return new Response(n.body,n)}if(o.startsWith(`${a}/trpc/`)&&typeof r.getTRPC=="function"){if(!T("trpcEnabled"))return new Response(JSON.stringify({error:"tRPC is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await r.getTRPC().fetch(e.request,e.locals);return new Response(n.body,n)}return await(await r.getREST()).fetch(e.request,e.locals)}catch(t){return console.error("[Kyro API Execution Error]:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Internal Server Error",message:t?.message||String(t),stack:t?.stack}),{status:500,headers:{"Content-Type":"application/json"}})}},N=R;export{r as a,E as b,R as c,N as d};
1
+ import {C,z}from'./chunk-HEGM2QMX.js';import {e}from'./chunk-TBTQXIHP.js';import {hb}from'./chunk-2XUD2OPJ.js';import {a as a$1}from'./chunk-N6MNQIQU.js';import {c}from'./chunk-MVZSSTCV.js';import {a}from'./chunk-ZWDBPEXL.js';import {a as a$2}from'./chunk-5ZEYOFAK.js';import {g}from'./chunk-Y2YAKDEQ.js';import w from'kyro:config';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
2
+ g();var r=null,l=null;async function b(){if(!r){if(globalThis.__KYRO_INSTANCE__)try{await globalThis.__KYRO_INSTANCE__.shutdown();}catch{}try{let e$1=w.default||w,t=e$1.adapter,o=t&&!t.dialect&&typeof t.connect=="function";if(globalThis.DB&&(!t||o)){let s=globalThis.DB;e$1.adapter=new c({type:"sqlite",client:s}),C.info("Hot-swapped to D1 DrizzleAdapter");}r=z(e$1),await r.init();let a$3=e$1.adapter,p=a$3&&a$3.dialect&&(a$3.dialect==="postgres"||a$3.dialect==="sqlite"),c$1=a$3&&a$3.dialect==="mongodb",n;if(p)a$3.dialect==="postgres"?n=new a({db:a$3.client}):a$3.dialect==="sqlite"&&(n=new hb({db:a$3.rawClient||a$3.client}));else if(o&&!globalThis.DB){let s=process.env.KYRO_AUTH_DB_PATH||"./data/auth.db";n=new a$1({path:s});}else c$1&&(n=new a$2({adapter:a$3}));if(n?.connect)try{await n.connect();}catch(s){C.warn("Auth connect warning:",s);}try{await r.loadSettings();}catch(s){C.warn("loadSettings warning:",s);}try{await e(n);}catch(s){C.warn("autoBootstrap warning:",s);}globalThis.__KYRO_INSTANCE__=r;}catch(e){throw r=null,l=null,C.error("Init failed, will retry:",e),e}}}async function E(e){let t=globalThis.DB?globalThis:null;try{let{env:o}=await import('cloudflare:workers');o&&(t=o);}catch{}if(e)try{t=e.locals?.cfContext?.env||e?.env||t;}catch{}if(!t)try{t=process.env;}catch{}t?.DB&&(globalThis.DB=t.DB),t?.STORAGE_BUCKET&&(globalThis.STORAGE_BUCKET=t.STORAGE_BUCKET),l||(l=b()),await l;}var _={graphqlEnabled:false,trpcEnabled:false,wsEnabled:false,requireAuth:false};function T(e){return r?r.settings?.access?.apiAccess?.[e]??_[e]??true:_[e]??true}var R=async e=>{if(!r)try{await Promise.race([E(e),new Promise((t,o)=>setTimeout(()=>o(new Error("Initialization timeout")),3e4))]);}catch(t){return console.error("[Kyro API] Warm error:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Service Unavailable",message:"Kyro CMS is still starting up. Please try again in a moment."}),{status:503,headers:{"Content-Type":"application/json","Retry-After":"5"}})}try{let o=new URL(e.request.url).pathname,a=__KYRO_API_PATH__;if(o===`${a}/graphql`&&typeof r.getGraphQL=="function"){if(!T("graphqlEnabled"))return new Response(JSON.stringify({error:"GraphQL is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await r.getGraphQL().fetch(e.request,e.locals);return new Response(n.body,n)}if(o.startsWith(`${a}/trpc/`)&&typeof r.getTRPC=="function"){if(!T("trpcEnabled"))return new Response(JSON.stringify({error:"tRPC is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await r.getTRPC().fetch(e.request,e.locals);return new Response(n.body,n)}return await(await r.getREST()).fetch(e.request,e.locals)}catch(t){return console.error("[Kyro API Execution Error]:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Internal Server Error",message:t?.message||String(t),stack:t?.stack}),{status:500,headers:{"Content-Type":"application/json"}})}},N=R;export{r as a,E as b,R as c,N as d};
@@ -1 +1 @@
1
- 'use strict';var chunk7JCRN5ZH_cjs=require('./chunk-7JCRN5ZH.cjs'),chunk3XLXKGEU_cjs=require('./chunk-3XLXKGEU.cjs'),chunk2F4WPCVA_cjs=require('./chunk-2F4WPCVA.cjs'),chunkOPTVCCQQ_cjs=require('./chunk-OPTVCCQQ.cjs'),chunkYFUH3SST_cjs=require('./chunk-YFUH3SST.cjs'),chunkXBQ6HV3T_cjs=require('./chunk-XBQ6HV3T.cjs'),chunk7DUKWHRN_cjs=require('./chunk-7DUKWHRN.cjs'),chunkBUNLC3II_cjs=require('./chunk-BUNLC3II.cjs'),w=require('kyro:config');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var w__default=/*#__PURE__*/_interopDefault(w);chunkBUNLC3II_cjs.h();exports.a=null;var l=null;async function b(){if(!exports.a){if(globalThis.__KYRO_INSTANCE__)try{await globalThis.__KYRO_INSTANCE__.shutdown();}catch{}try{let e=w__default.default.default||w__default.default,t=e.adapter,o=t&&!t.dialect&&typeof t.connect=="function";if(globalThis.DB&&(!t||o)){let s=globalThis.DB;e.adapter=new chunkYFUH3SST_cjs.c({type:"sqlite",client:s}),chunk7JCRN5ZH_cjs.D.info("Hot-swapped to D1 DrizzleAdapter");}exports.a=chunk7JCRN5ZH_cjs.A(e),await exports.a.init();let a=e.adapter,p=a&&a.dialect&&(a.dialect==="postgres"||a.dialect==="sqlite"),c=a&&a.dialect==="mongodb",n;if(p)a.dialect==="postgres"?n=new chunkXBQ6HV3T_cjs.a({db:a.client}):a.dialect==="sqlite"&&(n=new chunk2F4WPCVA_cjs.hb({db:a.rawClient||a.client}));else if(o&&!globalThis.DB){let s=process.env.KYRO_AUTH_DB_PATH||"./data/auth.db";n=new chunkOPTVCCQQ_cjs.a({path:s});}else c&&(n=new chunk7DUKWHRN_cjs.a({adapter:a}));if(n?.connect)try{await n.connect();}catch(s){chunk7JCRN5ZH_cjs.D.warn("Auth connect warning:",s);}try{await exports.a.loadSettings();}catch(s){chunk7JCRN5ZH_cjs.D.warn("loadSettings warning:",s);}try{await chunk3XLXKGEU_cjs.e(n);}catch(s){chunk7JCRN5ZH_cjs.D.warn("autoBootstrap warning:",s);}globalThis.__KYRO_INSTANCE__=exports.a;}catch(e){throw exports.a=null,l=null,chunk7JCRN5ZH_cjs.D.error("Init failed, will retry:",e),e}}}async function E(e){let t=globalThis.DB?globalThis:null;try{let{env:o}=await import('cloudflare:workers');o&&(t=o);}catch{}if(e)try{t=e.locals?.cfContext?.env||e?.env||t;}catch{}if(!t)try{t=process.env;}catch{}t?.DB&&(globalThis.DB=t.DB),t?.STORAGE_BUCKET&&(globalThis.STORAGE_BUCKET=t.STORAGE_BUCKET),l||(l=b()),await l;}var _={graphqlEnabled:false,trpcEnabled:false,wsEnabled:false,requireAuth:false};function T(e){return exports.a?exports.a.settings?.access?.apiAccess?.[e]??_[e]??true:_[e]??true}var R=async e=>{if(!exports.a)try{await Promise.race([E(e),new Promise((t,o)=>setTimeout(()=>o(new Error("Initialization timeout")),3e4))]);}catch(t){return console.error("[Kyro API] Warm error:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Service Unavailable",message:"Kyro CMS is still starting up. Please try again in a moment."}),{status:503,headers:{"Content-Type":"application/json","Retry-After":"5"}})}try{let o=new URL(e.request.url).pathname,a=__KYRO_API_PATH__;if(o===`${a}/graphql`&&typeof exports.a.getGraphQL=="function"){if(!T("graphqlEnabled"))return new Response(JSON.stringify({error:"GraphQL is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await exports.a.getGraphQL().fetch(e.request,e.locals);return new Response(n.body,n)}if(o.startsWith(`${a}/trpc/`)&&typeof exports.a.getTRPC=="function"){if(!T("trpcEnabled"))return new Response(JSON.stringify({error:"tRPC is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await exports.a.getTRPC().fetch(e.request,e.locals);return new Response(n.body,n)}return await(await exports.a.getREST()).fetch(e.request,e.locals)}catch(t){return console.error("[Kyro API Execution Error]:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Internal Server Error",message:t?.message||String(t),stack:t?.stack}),{status:500,headers:{"Content-Type":"application/json"}})}},L=R;exports.b=E;exports.c=R;exports.d=L;
1
+ 'use strict';var chunkCTIQQ3ZX_cjs=require('./chunk-CTIQQ3ZX.cjs'),chunk3XLXKGEU_cjs=require('./chunk-3XLXKGEU.cjs'),chunkZED7JS6I_cjs=require('./chunk-ZED7JS6I.cjs'),chunkOPTVCCQQ_cjs=require('./chunk-OPTVCCQQ.cjs'),chunkIL2TMAHB_cjs=require('./chunk-IL2TMAHB.cjs'),chunkXBQ6HV3T_cjs=require('./chunk-XBQ6HV3T.cjs'),chunk7DUKWHRN_cjs=require('./chunk-7DUKWHRN.cjs'),chunkBUNLC3II_cjs=require('./chunk-BUNLC3II.cjs'),w=require('kyro:config');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var w__default=/*#__PURE__*/_interopDefault(w);chunkBUNLC3II_cjs.h();exports.a=null;var l=null;async function b(){if(!exports.a){if(globalThis.__KYRO_INSTANCE__)try{await globalThis.__KYRO_INSTANCE__.shutdown();}catch{}try{let e=w__default.default.default||w__default.default,t=e.adapter,o=t&&!t.dialect&&typeof t.connect=="function";if(globalThis.DB&&(!t||o)){let s=globalThis.DB;e.adapter=new chunkIL2TMAHB_cjs.c({type:"sqlite",client:s}),chunkCTIQQ3ZX_cjs.C.info("Hot-swapped to D1 DrizzleAdapter");}exports.a=chunkCTIQQ3ZX_cjs.z(e),await exports.a.init();let a=e.adapter,p=a&&a.dialect&&(a.dialect==="postgres"||a.dialect==="sqlite"),c=a&&a.dialect==="mongodb",n;if(p)a.dialect==="postgres"?n=new chunkXBQ6HV3T_cjs.a({db:a.client}):a.dialect==="sqlite"&&(n=new chunkZED7JS6I_cjs.hb({db:a.rawClient||a.client}));else if(o&&!globalThis.DB){let s=process.env.KYRO_AUTH_DB_PATH||"./data/auth.db";n=new chunkOPTVCCQQ_cjs.a({path:s});}else c&&(n=new chunk7DUKWHRN_cjs.a({adapter:a}));if(n?.connect)try{await n.connect();}catch(s){chunkCTIQQ3ZX_cjs.C.warn("Auth connect warning:",s);}try{await exports.a.loadSettings();}catch(s){chunkCTIQQ3ZX_cjs.C.warn("loadSettings warning:",s);}try{await chunk3XLXKGEU_cjs.e(n);}catch(s){chunkCTIQQ3ZX_cjs.C.warn("autoBootstrap warning:",s);}globalThis.__KYRO_INSTANCE__=exports.a;}catch(e){throw exports.a=null,l=null,chunkCTIQQ3ZX_cjs.C.error("Init failed, will retry:",e),e}}}async function E(e){let t=globalThis.DB?globalThis:null;try{let{env:o}=await import('cloudflare:workers');o&&(t=o);}catch{}if(e)try{t=e.locals?.cfContext?.env||e?.env||t;}catch{}if(!t)try{t=process.env;}catch{}t?.DB&&(globalThis.DB=t.DB),t?.STORAGE_BUCKET&&(globalThis.STORAGE_BUCKET=t.STORAGE_BUCKET),l||(l=b()),await l;}var _={graphqlEnabled:false,trpcEnabled:false,wsEnabled:false,requireAuth:false};function T(e){return exports.a?exports.a.settings?.access?.apiAccess?.[e]??_[e]??true:_[e]??true}var R=async e=>{if(!exports.a)try{await Promise.race([E(e),new Promise((t,o)=>setTimeout(()=>o(new Error("Initialization timeout")),3e4))]);}catch(t){return console.error("[Kyro API] Warm error:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Service Unavailable",message:"Kyro CMS is still starting up. Please try again in a moment."}),{status:503,headers:{"Content-Type":"application/json","Retry-After":"5"}})}try{let o=new URL(e.request.url).pathname,a=__KYRO_API_PATH__;if(o===`${a}/graphql`&&typeof exports.a.getGraphQL=="function"){if(!T("graphqlEnabled"))return new Response(JSON.stringify({error:"GraphQL is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await exports.a.getGraphQL().fetch(e.request,e.locals);return new Response(n.body,n)}if(o.startsWith(`${a}/trpc/`)&&typeof exports.a.getTRPC=="function"){if(!T("trpcEnabled"))return new Response(JSON.stringify({error:"tRPC is disabled"}),{status:503,headers:{"Content-Type":"application/json"}});let n=await exports.a.getTRPC().fetch(e.request,e.locals);return new Response(n.body,n)}return await(await exports.a.getREST()).fetch(e.request,e.locals)}catch(t){return console.error("[Kyro API Execution Error]:",t?.stack||t?.message||t),new Response(JSON.stringify({error:"Internal Server Error",message:t?.message||String(t),stack:t?.stack}),{status:500,headers:{"Content-Type":"application/json"}})}},L=R;exports.b=E;exports.c=R;exports.d=L;