@lunora/vite 1.0.0-alpha.280 → 1.0.0-alpha.281
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/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{createRequire as
|
|
2
|
-
${a(
|
|
3
|
-
`)}},name:"lunora:agent-rules-hint"}),
|
|
1
|
+
import{createRequire as l}from"node:module";import{cloudflare as s}from"@cloudflare/vite-plugin";import{detectAgentRules as u,claimAgentRulesHint as c,lunoraLine as a,AGENT_RULES_HINT as f,detectFramework as d,targetRunsOwnDevServer as m,resolveTargetOrThrow as g,isRunnableTarget as p,runnableTargetIds as v}from"@lunora/config";import{GENERATED_CLASS_MODULES as lr,detectFramework as sr}from"@lunora/config";import S from"@visulima/vite-overlay";import{reconcileBindingsSafely as w}from"@lunora/config/cloudflare";import{reconcileWranglerCrons as cr}from"@lunora/config/cloudflare";import h from"./packem_shared/codegenPlugin-CV_h92v2.mjs";import R from"./packem_shared/containerLogsPlugin-67PZ8zmb.mjs";import k from"./packem_shared/devStatePlugin-CCWf9AFZ.mjs";import P from"./packem_shared/devVariablesPlugin-DbD6cSF0.mjs";import{frameworkComposePlugin as A}from"./packem_shared/CLASS_A_WIRING-B4-x5Aws.mjs";import{CLASS_A_WIRING as dr,LUNORA_WORKER_VIRTUAL_ID as mr,buildWorkerEntrySource as gr,isAutoComposable as pr}from"./packem_shared/CLASS_A_WIRING-B4-x5Aws.mjs";import E from"./packem_shared/logStreamPlugin-DtOu5VX8.mjs";import{proxyCheckPlugin as T}from"./packem_shared/checkLunoraProxy-BNPgNWtV.mjs";import{checkLunoraProxy as Sr}from"./packem_shared/checkLunoraProxy-BNPgNWtV.mjs";import{remoteBindingsPlugin as O}from"./packem_shared/planViteRemoteBindings-ByOliZuE.mjs";import{planViteRemoteBindings as hr,withRemoteBindings as Rr}from"./packem_shared/planViteRemoteBindings-ByOliZuE.mjs";import{lunoraSolutionFinders as _}from"./packem_shared/lunoraSolutionFinder--J0x2mAM.mjs";import{lunoraSolutionFinder as Pr}from"./packem_shared/lunoraSolutionFinder--J0x2mAM.mjs";import{studioPlugin as x}from"./packem_shared/STUDIO_PATH-UztnV2ca.mjs";import{STUDIO_PATH as Er,buildStudioUrl as Tr}from"./packem_shared/STUDIO_PATH-UztnV2ca.mjs";import{withWorkerStartupHint as b}from"./packem_shared/WORKER_STARTUP_HINT-COlRTY32.mjs";import{WORKER_STARTUP_HINT as _r,augmentWorkerStartupError as xr,isWorkerEntryEvalError as br}from"./packem_shared/WORKER_STARTUP_HINT-COlRTY32.mjs";import{wranglerValidatorPlugin as y}from"./packem_shared/wranglerValidatorPlugin-BlGHjTXZ.mjs";import{default as Lr}from"./packem_shared/LUNORA_API_UPDATED_EVENT-CO2Rv2re.mjs";const L=o=>({apply:"serve",configureServer(r){return()=>{u(o.projectRoot).installed||!c()||r.config.logger.warn(`
|
|
2
|
+
${a(f)}
|
|
3
|
+
`)}},name:"lunora:agent-rules-hint"}),D=o=>({async config(r,t){t.isPreview!==!0&&await w(o,{info:e=>{console.info(e)},warn:e=>{console.warn(e)}})},enforce:"pre",name:"lunora:bindings-provision"}),W=()=>({}),C={astro:"Astro",none:"standalone (SPA / SSR-less)",nuxt:"Nuxt","react-router":"React Router","solid-start":"SolidStart",sveltekit:"SvelteKit","tanstack-start":"TanStack Start","tanstack-start-solid":"TanStack Start (Solid)",vinext:"Next.js on Vite (vinext)"},N=o=>{const r=C[o.framework];return o.framework==="none"?a("no meta-framework detected — running standalone."):o.class==="B"?a(`detected ${r} — composition is handled by the framework adapter.`):a(`detected ${r} — composing the Lunora worker into one Cloudflare Worker.`)},U=(o,r)=>{let t=!1;const e=()=>{r.framework??=d(o.projectRoot)};return{config(){e()},configResolved(){e()},configureServer(){e(),!t&&r.framework!==void 0&&(t=!0,console.info(N(r.framework)))},name:"lunora:framework-detect"}},I=o=>{if(o===!1)return!1;const r=o===!0||o===void 0?{}:o;return{...r,forwardedConsoleMethods:r.forwardedConsoleMethods??["error","warn"],solutionFinders:[..._,...r.solutionFinders??[]]}},$=(o,r)=>{const t=g(o,r);if(!p(t)){const e=v();throw new Error(`target "${t}" has no command-line toolchain, so the Lunora Vite plugin cannot build or serve it — it can only generate for it (\`lunora codegen --target ${t}\`). Buildable targets: ${e.join(", ")}`)}return t},j=o=>{const r=o??{},t=r.schemaDir??"lunora";let e;r.cloudflare===!1?e=!1:r.cloudflare===!0||r.cloudflare===void 0?e={}:e=r.cloudflare;const n=r.projectRoot??process.cwd(),i=$(n,r.target);return{allowUnauthenticatedShardAccess:r.allowUnauthenticatedShardAccess??!1,apiSpec:r.apiSpec??"openapi",cloudflare:e,studio:r.studio??!0,generatedDir:`${t}/_generated`,overlay:I(r.overlay),projectRoot:n,schemaDir:t,shard:r.shard??{},target:i,validateWrangler:r.validateWrangler??!0}},tr=o=>{const r=j(o),t=W(),e=[U(r,t),A(r,t),P(r),D(r),h(r),E(),k(r),L(r),T()];r.studio&&e.push(x(r)),r.validateWrangler&&e.push(y(r)),r.overlay!==!1&&e.push(S(r.overlay)),e.push(R(r));const n=r.cloudflare===!1?void 0:{...r.cloudflare};return e.push(O(n,{projectRoot:r.projectRoot})),n!==void 0&&(e.push(...b(s(n))),m(r.target)&&e.push({configureServer(i){i.config.logger.warn(`[lunora] target "${r.target}": vite dev serves the worker in workerd, not on ${r.target}. \`vite build\` then \`lunora deploy\` ships it to ${r.target}.`)},name:"lunora:target-runtime-notice"})),e},nr=l(import.meta.url)("../package.json").version;export{dr as CLASS_A_WIRING,lr as GENERATED_CLASS_MODULES,Lr as LUNORA_API_UPDATED_EVENT,mr as LUNORA_WORKER_VIRTUAL_ID,Er as STUDIO_PATH,nr as VERSION,_r as WORKER_STARTUP_HINT,xr as augmentWorkerStartupError,Tr as buildStudioUrl,gr as buildWorkerEntrySource,Sr as checkLunoraProxy,h as codegenPlugin,R as containerLogsPlugin,sr as detectFramework,k as devStatePlugin,P as devVariablesPlugin,A as frameworkComposePlugin,pr as isAutoComposable,br as isWorkerEntryEvalError,E as logStreamPlugin,tr as lunora,Pr as lunoraSolutionFinder,_ as lunoraSolutionFinders,hr as planViteRemoteBindings,T as proxyCheckPlugin,cr as reconcileWranglerCrons,O as remoteBindingsPlugin,I as resolveOverlayOption,x as studioPlugin,Rr as withRemoteBindings,b as withWorkerStartupHint,y as wranglerValidatorPlugin};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/vite",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.281",
|
|
4
4
|
"description": "The Lunora Vite plugin: codegen, type sync, wrangler validation, and an error overlay over @cloudflare/vite-plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@cloudflare/vite-plugin": "1.54.4",
|
|
49
|
-
"@lunora/codegen": "1.0.0-alpha.
|
|
50
|
-
"@lunora/config": "1.0.0-alpha.
|
|
49
|
+
"@lunora/codegen": "1.0.0-alpha.238",
|
|
50
|
+
"@lunora/config": "1.0.0-alpha.283",
|
|
51
51
|
"@lunora/errors": "1.0.0-alpha.47",
|
|
52
52
|
"@visulima/vite-overlay": "2.0.20"
|
|
53
53
|
},
|