@lunora/codegen 1.0.0-alpha.408 → 1.0.0-alpha.409
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 +1 -1
- package/dist/packem_shared/{SCHEMA_SNAPSHOT_FILENAME-CitMcXVT.mjs → SCHEMA_SNAPSHOT_FILENAME-CbyXHjvE.mjs} +1 -1
- package/dist/packem_shared/{emitAgents-ec5ov78B.mjs → emitAgents-E9U99TB1.mjs} +1 -1
- package/dist/packem_shared/{emitShard-Dhy_F7iF.mjs → emitShard-B0i9dfOt.mjs} +1 -1
- package/dist/packem_shared/{shard-Csztu3jG.mjs → shard-CgzAeeHn.mjs} +1 -1
- package/dist/packem_shared/{shard-runtime-D0xuE0pX.mjs → shard-runtime-DsYnnWSe.mjs} +52 -50
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SCHEMA_SNAPSHOT_VERSION as t,diffSchemaSnapshots as i,serializeSchemaSnapshot as a}from"./packem_shared/SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import{formatAdvisories as d,lintSchema as f,toAdvisorContext as m}from"./packem_shared/formatAdvisories-BCVASH7N.mjs";import{describeErrorLevelFindings as n,errorAdvisoryNames as c,errorPlatformDiagnosticNames as l,sortedUniqueNames as S}from"./packem_shared/describeErrorLevelFindings-vzaGS9KL.mjs";import{CAPABILITY_PROBES as E}from"./packem_shared/CAPABILITY_PROBES-BuNEmlCO.mjs";import{COMPANION_BINDING as u,COMPANION_SERVICE_NAME as N}from"./packem_shared/COMPANION_BINDING-Da_v9XpC.mjs";import{CodegenDiagnosticError as g,diagnosticAt as C}from"./packem_shared/CodegenDiagnosticError-BUXlG3P-.mjs";import{AGENTS_FILENAME as I,discoverAgents as _}from"./packem_shared/AGENTS_FILENAME-D0Y0_UgB.mjs";import{isTestPath as L,listLunoraSourceFiles as M}from"./packem_shared/isTestPath-DRIdZaij.mjs";import{default as F}from"./packem_shared/discoverAuthApiCalls-ENLGem4M.mjs";import{CONTAINERS_FILENAME as P,discoverContainers as D}from"./packem_shared/CONTAINERS_FILENAME-J-e3Vanb.mjs";import{default as b}from"./packem_shared/discoverCrons-DWVXmktw.mjs";import{ENV_FILENAME as U}from"./packem_shared/ENV_FILENAME-COPIfgzp.mjs";import{capabilitiesUsedBy as H,createTargetScope as j,foldCapabilitySignals as V,mayReadCapabilityContext as k,sourceCapabilitySignals as W}from"./packem_shared/capabilitiesUsedBy-BwhaHK08.mjs";import{FLAGS_FILENAME as K,discoverFlags as Q}from"./packem_shared/FLAGS_FILENAME-6RzszxVW.mjs";import{d as q}from"./packem_shared/index-BH3e-J44.mjs";import{default as J}from"./packem_shared/discoverHttpRoutes-CAoEemno.mjs";import{default as Z}from"./packem_shared/discoverHyperdriveCalls-W96s1VgA.mjs";import{default as ee}from"./packem_shared/discoverInserts-BtyJbg8A.mjs";import{d as oe}from"./packem_shared/index-D03C6Kao.mjs";import{default as ie}from"./packem_shared/discoverMigrations-Duh6HVG3.mjs";import{MUTATORS_FILENAME as se,discoverMutators as de}from"./packem_shared/MUTATORS_FILENAME-C3OImAxC.mjs";import{default as me}from"./packem_shared/discoverNondeterministicCalls-DR0S5Xb4.mjs";import{ALL_NOTIFY_CHANNELS as ne,NOTIFY_FILENAME as ce,discoverNotifyCalls as le,discoverNotifyChannels as Se,discoverNotifyConfig as xe}from"./packem_shared/ALL_NOTIFY_CHANNELS-D1LVGz6_.mjs";import{default as Ae}from"./packem_shared/readPackageDependencies-RHhGiz0k.mjs";import{default as Ne}from"./packem_shared/discoverQueries-BLyL2qzX.mjs";import{QUEUES_FILENAME as ge,discoverQueues as Ce}from"./packem_shared/QUEUES_FILENAME-Ba-sK5Ek.mjs";import{default as Ie}from"./packem_shared/discoverR2sqlCalls-Cb4AmcY8.mjs";import{default as Re}from"./packem_shared/discoverRlsProcedures-_Dh3Xb9Z.mjs";import{default as Me}from"./packem_shared/discoverRlsMetadata-Cf4gZvxW.mjs";import{discoverSandboxUsage as Fe}from"./packem_shared/discoverSandboxUsage-Ccy9n7G1.mjs";import{default as Pe}from"./packem_shared/discoverSchema-ynieYB0n.mjs";import{companionServiceBinding as ye,readBoundServiceBindings as be,readDevServiceBindings as Ge,readServiceBindings as Ue,resolveServiceBindings as Be}from"./packem_shared/companionServiceBinding-BZjm486n.mjs";import{SHAPES_FILENAME as je,discoverShapes as Ve}from"./packem_shared/SHAPES_FILENAME-BYnZ1Xw-.mjs";import{default as We}from"./packem_shared/discoverStorageRulesMetadata-ZKW6DInk.mjs";import{WORKFLOWS_FILENAME as Ke,discoverWorkflows as Qe}from"./packem_shared/WORKFLOWS_FILENAME-DfVfBum_.mjs";import{emitApp as qe}from"./packem_shared/emitApp-pPxkJ2Z-.mjs";import{isD1GlobalTable as Je,isHyperdriveGlobalTable as Xe}from"./packem_shared/isD1GlobalTable-udvHAAzD.mjs";import{buildOpenApiDocument as $e,emitOpenApi as er,emitOpenApiModule as rr}from"./packem_shared/buildOpenApiDocument-B8KEeeRr.mjs";import{OPENRPC_VERSION as tr,buildOpenRpcDocument as ir,emitOpenRpc as ar,emitOpenRpcModule as sr}from"./packem_shared/OPENRPC_VERSION-UNYmA7Ty.mjs";import{DEFAULT_TARGET as fr,platformMatrixIds as mr,readProjectTarget as pr,resolveCodegenTarget as nr}from"./packem_shared/DEFAULT_TARGET-CVYzxQ0y.mjs";import{b as lr,r as Sr,c as xr,d as Er}from"./packem_shared/project-config-file-DR7xrrNB.mjs";import{PROJECT_CONFIG_FILENAMES as ur,findCodegenConfigFile as Nr,findProjectConfigFile as vr,projectConfigCandidatePaths as gr}from"./packem_shared/PROJECT_CONFIG_FILENAMES-CLfsyvjA.mjs";import{SCHEMA_SNAPSHOT_FILENAME as Or,runCodegen as Ir}from"./packem_shared/SCHEMA_SNAPSHOT_FILENAME-
|
|
1
|
+
import{SCHEMA_SNAPSHOT_VERSION as t,diffSchemaSnapshots as i,serializeSchemaSnapshot as a}from"./packem_shared/SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import{formatAdvisories as d,lintSchema as f,toAdvisorContext as m}from"./packem_shared/formatAdvisories-BCVASH7N.mjs";import{describeErrorLevelFindings as n,errorAdvisoryNames as c,errorPlatformDiagnosticNames as l,sortedUniqueNames as S}from"./packem_shared/describeErrorLevelFindings-vzaGS9KL.mjs";import{CAPABILITY_PROBES as E}from"./packem_shared/CAPABILITY_PROBES-BuNEmlCO.mjs";import{COMPANION_BINDING as u,COMPANION_SERVICE_NAME as N}from"./packem_shared/COMPANION_BINDING-Da_v9XpC.mjs";import{CodegenDiagnosticError as g,diagnosticAt as C}from"./packem_shared/CodegenDiagnosticError-BUXlG3P-.mjs";import{AGENTS_FILENAME as I,discoverAgents as _}from"./packem_shared/AGENTS_FILENAME-D0Y0_UgB.mjs";import{isTestPath as L,listLunoraSourceFiles as M}from"./packem_shared/isTestPath-DRIdZaij.mjs";import{default as F}from"./packem_shared/discoverAuthApiCalls-ENLGem4M.mjs";import{CONTAINERS_FILENAME as P,discoverContainers as D}from"./packem_shared/CONTAINERS_FILENAME-J-e3Vanb.mjs";import{default as b}from"./packem_shared/discoverCrons-DWVXmktw.mjs";import{ENV_FILENAME as U}from"./packem_shared/ENV_FILENAME-COPIfgzp.mjs";import{capabilitiesUsedBy as H,createTargetScope as j,foldCapabilitySignals as V,mayReadCapabilityContext as k,sourceCapabilitySignals as W}from"./packem_shared/capabilitiesUsedBy-BwhaHK08.mjs";import{FLAGS_FILENAME as K,discoverFlags as Q}from"./packem_shared/FLAGS_FILENAME-6RzszxVW.mjs";import{d as q}from"./packem_shared/index-BH3e-J44.mjs";import{default as J}from"./packem_shared/discoverHttpRoutes-CAoEemno.mjs";import{default as Z}from"./packem_shared/discoverHyperdriveCalls-W96s1VgA.mjs";import{default as ee}from"./packem_shared/discoverInserts-BtyJbg8A.mjs";import{d as oe}from"./packem_shared/index-D03C6Kao.mjs";import{default as ie}from"./packem_shared/discoverMigrations-Duh6HVG3.mjs";import{MUTATORS_FILENAME as se,discoverMutators as de}from"./packem_shared/MUTATORS_FILENAME-C3OImAxC.mjs";import{default as me}from"./packem_shared/discoverNondeterministicCalls-DR0S5Xb4.mjs";import{ALL_NOTIFY_CHANNELS as ne,NOTIFY_FILENAME as ce,discoverNotifyCalls as le,discoverNotifyChannels as Se,discoverNotifyConfig as xe}from"./packem_shared/ALL_NOTIFY_CHANNELS-D1LVGz6_.mjs";import{default as Ae}from"./packem_shared/readPackageDependencies-RHhGiz0k.mjs";import{default as Ne}from"./packem_shared/discoverQueries-BLyL2qzX.mjs";import{QUEUES_FILENAME as ge,discoverQueues as Ce}from"./packem_shared/QUEUES_FILENAME-Ba-sK5Ek.mjs";import{default as Ie}from"./packem_shared/discoverR2sqlCalls-Cb4AmcY8.mjs";import{default as Re}from"./packem_shared/discoverRlsProcedures-_Dh3Xb9Z.mjs";import{default as Me}from"./packem_shared/discoverRlsMetadata-Cf4gZvxW.mjs";import{discoverSandboxUsage as Fe}from"./packem_shared/discoverSandboxUsage-Ccy9n7G1.mjs";import{default as Pe}from"./packem_shared/discoverSchema-ynieYB0n.mjs";import{companionServiceBinding as ye,readBoundServiceBindings as be,readDevServiceBindings as Ge,readServiceBindings as Ue,resolveServiceBindings as Be}from"./packem_shared/companionServiceBinding-BZjm486n.mjs";import{SHAPES_FILENAME as je,discoverShapes as Ve}from"./packem_shared/SHAPES_FILENAME-BYnZ1Xw-.mjs";import{default as We}from"./packem_shared/discoverStorageRulesMetadata-ZKW6DInk.mjs";import{WORKFLOWS_FILENAME as Ke,discoverWorkflows as Qe}from"./packem_shared/WORKFLOWS_FILENAME-DfVfBum_.mjs";import{emitApp as qe}from"./packem_shared/emitApp-pPxkJ2Z-.mjs";import{isD1GlobalTable as Je,isHyperdriveGlobalTable as Xe}from"./packem_shared/isD1GlobalTable-udvHAAzD.mjs";import{buildOpenApiDocument as $e,emitOpenApi as er,emitOpenApiModule as rr}from"./packem_shared/buildOpenApiDocument-B8KEeeRr.mjs";import{OPENRPC_VERSION as tr,buildOpenRpcDocument as ir,emitOpenRpc as ar,emitOpenRpcModule as sr}from"./packem_shared/OPENRPC_VERSION-UNYmA7Ty.mjs";import{DEFAULT_TARGET as fr,platformMatrixIds as mr,readProjectTarget as pr,resolveCodegenTarget as nr}from"./packem_shared/DEFAULT_TARGET-CVYzxQ0y.mjs";import{b as lr,r as Sr,c as xr,d as Er}from"./packem_shared/project-config-file-DR7xrrNB.mjs";import{PROJECT_CONFIG_FILENAMES as ur,findCodegenConfigFile as Nr,findProjectConfigFile as vr,projectConfigCandidatePaths as gr}from"./packem_shared/PROJECT_CONFIG_FILENAMES-CLfsyvjA.mjs";import{SCHEMA_SNAPSHOT_FILENAME as Or,runCodegen as Ir}from"./packem_shared/SCHEMA_SNAPSHOT_FILENAME-CbyXHjvE.mjs";import{SchemaSnapshotParseError as Rr,buildSchemaSnapshot as Lr,evaluateSchemaDrift as Mr,indexReferencesOf as Tr,parseSchemaSnapshot as Fr}from"./packem_shared/SchemaSnapshotParseError-CV7mmuPi.mjs";import{default as Pr}from"./packem_shared/fingerprintSchemaSources-C8H1wOcH.mjs";import{schemaFromIr as yr}from"./packem_shared/schemaFromIr-CByOxuZb.mjs";import{LUNORA_ERROR_CODES as Gr,validatorIrToJsonSchema as Ur}from"./packem_shared/LUNORA_ERROR_CODES-D7AVT7qF.mjs";import{SDK_LANGUAGES as Hr,SDK_TARGETS as jr,generateSdk as Vr}from"./sdk/index.mjs";import{redact as Wr,secretKindOf as zr}from"./packem_shared/redact-Cy14LEnc.mjs";import{default as Qr}from"./packem_shared/emitDrizzleSchema-BzOChEYW.mjs";import{e as qr}from"./packem_shared/server-5ph4hltf.mjs";import{e as Jr}from"./packem_shared/shard-CgzAeeHn.mjs";import{G as Zr}from"./packem_shared/shared-Cn7dMQ_u.mjs";import{MESSAGE_SOLUTIONS as eo,findSolutionByMessage as ro}from"@lunora/errors";import{createCodegenProject as to,findTsconfig as io,refreshCodegenProject as ao,tsconfigFingerprint as so}from"./packem_shared/createCodegenProject-Cfr1xHPC.mjs";import{t as mo,u as po,v as no}from"./packem_shared/shard-runtime-DsYnnWSe.mjs";import{emitApi as lo,emitCollections as So,emitInternalApi as xo}from"./packem_shared/emitApi-lwadq5G7.mjs";import{emitCrons as Ao,emitScheduler as uo,emitVectors as No,emitWranglerCronTriggers as vo}from"./packem_shared/emitCrons-CCRKs482.mjs";import{emitDataModel as Co}from"./packem_shared/emitDataModel-BvCZS4Yq.mjs";import{emitFunctions as Io}from"./packem_shared/emitFunctions-ppMX7E3X.mjs";import{isTypedSchema as Ro}from"./packem_shared/isTypedSchema-CDv3pJB6.mjs";const e="0.0.0";export{I as AGENTS_FILENAME,ne as ALL_NOTIFY_CHANNELS,E as CAPABILITY_PROBES,u as COMPANION_BINDING,N as COMPANION_SERVICE_NAME,P as CONTAINERS_FILENAME,g as CodegenDiagnosticError,fr as DEFAULT_TARGET,U as ENV_FILENAME,K as FLAGS_FILENAME,Zr as GENERATED_HEADER,Gr as LUNORA_ERROR_CODES,eo as LUNORA_SOLUTION_RULES,se as MUTATORS_FILENAME,ce as NOTIFY_FILENAME,tr as OPENRPC_VERSION,ur as PROJECT_CONFIG_FILENAMES,ge as QUEUES_FILENAME,Or as SCHEMA_SNAPSHOT_FILENAME,t as SCHEMA_SNAPSHOT_VERSION,Hr as SDK_LANGUAGES,jr as SDK_TARGETS,je as SHAPES_FILENAME,Rr as SchemaSnapshotParseError,e as VERSION,Ke as WORKFLOWS_FILENAME,$e as buildOpenApiDocument,ir as buildOpenRpcDocument,Lr as buildSchemaSnapshot,H as capabilitiesUsedBy,ye as companionServiceBinding,to as createCodegenProject,j as createTargetScope,n as describeErrorLevelFindings,C as diagnosticAt,i as diffSchemaSnapshots,_ as discoverAgents,F as discoverAuthApiCalls,D as discoverContainers,b as discoverCrons,Q as discoverFlags,q as discoverFunctions,J as discoverHttpRoutes,Z as discoverHyperdriveCalls,ee as discoverInserts,oe as discoverMaskProcedures,ie as discoverMigrations,de as discoverMutators,me as discoverNondeterministicCalls,le as discoverNotifyCalls,Se as discoverNotifyChannels,xe as discoverNotifyConfig,Ne as discoverQueries,Ce as discoverQueues,Ie as discoverR2sqlCalls,Me as discoverRlsMetadata,Re as discoverRlsProcedures,Fe as discoverSandboxUsage,Pe as discoverSchema,Ve as discoverShapes,We as discoverStorageRulesMetadata,Qe as discoverWorkflows,mo as emitAgents,lo as emitApi,qe as emitApp,So as emitCollections,po as emitContainers,Ao as emitCrons,Co as emitDataModel,Qr as emitDrizzleSchema,Io as emitFunctions,xo as emitInternalApi,er as emitOpenApi,rr as emitOpenApiModule,ar as emitOpenRpc,sr as emitOpenRpcModule,uo as emitScheduler,qr as emitServer,Jr as emitShard,No as emitVectors,no as emitWorkflows,vo as emitWranglerCronTriggers,c as errorAdvisoryNames,l as errorPlatformDiagnosticNames,Mr as evaluateSchemaDrift,Nr as findCodegenConfigFile,ro as findLunoraSolution,vr as findProjectConfigFile,io as findTsconfig,Pr as fingerprintSchemaSources,V as foldCapabilitySignals,d as formatAdvisories,Vr as generateSdk,Tr as indexReferencesOf,Je as isD1GlobalTable,Xe as isHyperdriveGlobalTable,L as isTestPath,Ro as isTypedSchema,f as lintSchema,M as listLunoraSourceFiles,lr as loadProjectConfig,k as mayReadCapabilityContext,Fr as parseSchemaSnapshot,mr as platformMatrixIds,gr as projectConfigCandidatePaths,be as readBoundServiceBindings,Ge as readDevServiceBindings,Ae as readPackageDependencies,Sr as readProjectConfigLiterals,xr as readProjectLazyFunctions,Er as readProjectSecurityHeaders,pr as readProjectTarget,Ue as readServiceBindings,Wr as redact,ao as refreshCodegenProject,nr as resolveCodegenTarget,Be as resolveServiceBindings,Ir as runCodegen,yr as schemaFromIr,zr as secretKindOf,a as serializeSchemaSnapshot,S as sortedUniqueNames,W as sourceCapabilitySignals,m as toAdvisorContext,so as tsconfigFingerprint,Ur as validatorIrToJsonSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{existsSync as z,readFileSync as at,mkdirSync as ns,writeFileSync as Xr,rmSync as he,readdirSync as is}from"node:fs";import{dirname as ct,join as v,basename as Jr,relative as rs}from"node:path";import{performance as Ct}from"node:perf_hooks";import{runAdvisor as Zr}from"@lunora/advisor";import{LunoraError as F}from"@lunora/errors";import{serializeSchemaSnapshot as eo}from"./SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import{toAdvisorContext as to}from"./formatAdvisories-BCVASH7N.mjs";import{Node as r,SyntaxKind as d,Project as os,ts as so,VariableDeclarationKind as as}from"ts-morph";import{listLunoraSourceFiles as y,lunoraRelativePath as P,descendantsOfKind as E,bindingKeyName as ve,collectCallRows as O,findObjectProperty as W,collectSecurityCallRows as no,propertyInitializer as _,listSecurityScanFiles as $e,objectLiteralFromCallbackBody as Qn,limitNameOf as Xn,optionsObjectLiteral as Jn,handlerOf as io,memberAccessOf as cs,chainRootOf as lt,unwrapExpression as h,collectNodeRows as oe,isConstDeclaration as ae,outermostValueWrapper as C,isWriteTarget as be,isSameNode as b,returningFunctionOf as Kt,walkChain as ro,RUN_METHODS as Zn,functionReferenceSegments as oo,isTestPath as ao,isFunctionLike as ge,functionKeyOf as ei,withSourceListMemo as co}from"./isTestPath-DRIdZaij.mjs";import{j as Z,h as Y,d as M,b as ls,c as A,a as ds,w as us,k as lo,l as uo,f as fo,m as go,g as Bt,i as po}from"./attribution-BhGR_h0Z.mjs";import{b as tn,r as Tt,a as H,e as mo,m as ti,c as dt,f as fs,E as si,C as ni,d as ho,g as vo,i as Eo}from"./context-root-DP9WbBI_.mjs";import{a as T,i as ii,c as ce,d as ri,e as oi,f as xo,g as So}from"./classify-procedure-call-n9urVsqb.mjs";import{a as S,s as gs}from"./property-name-7cBlgK_O.mjs";import{b as Ao,a as ai}from"./module-specifiers-BctA0m_p.mjs";import{r as ut,s as yo}from"./parse-validator-BisfC8bR.mjs";import bo from"./discoverAuthApiCalls-ENLGem4M.mjs";import{i as K,r as ci}from"./database-calls-Do0YbPCL.mjs";import{i as Vt,p as li,w as No,d as Po}from"./index-BH3e-J44.mjs";import wo from"./discoverHyperdriveCalls-W96s1VgA.mjs";import{PROJECT_CONFIG_FILENAMES as Io,findProjectConfigFile as di,findCodegenConfigFile as Co}from"./PROJECT_CONFIG_FILENAMES-CLfsyvjA.mjs";import{contextPropertiesRead as To,createTargetScope as Oo,fileWiresRequestSecretTool as ko,discoverFeatureUsage as Ro}from"./capabilitiesUsedBy-BwhaHK08.mjs";import{diagnosticAt as Ne}from"./CodegenDiagnosticError-BUXlG3P-.mjs";import{m as ps,a as et,s as ui,d as Fo}from"./index-D03C6Kao.mjs";import{MUTATORS_FILENAME as Lo,isDefineMutatorCallee as Do,mutatorServerImplOf as _o,discoverMutators as Mo}from"./MUTATORS_FILENAME-C3OImAxC.mjs";import $o from"./discoverNondeterministicCalls-DR0S5Xb4.mjs";import{discoverNotifyConfig as zo,discoverNotifyCalls as Ko}from"./ALL_NOTIFY_CHANNELS-D1LVGz6_.mjs";import Bo from"./discoverR2sqlCalls-Cb4AmcY8.mjs";import Vo from"./discoverRlsProcedures-_Dh3Xb9Z.mjs";import{s as ms,n as Uo}from"./dispatch-namespace-DwTjD7BU.mjs";import{secretKindOf as Wo,redact as qo,isHeuristicSecretKind as jo,isSecretishName as Ho}from"./redact-Cy14LEnc.mjs";import{r as fi,p as Go,c as Yo,a as Qo,e as Xo,d as Jo}from"./project-config-file-DR7xrrNB.mjs";import{a as qe,d as Zo,r as ea}from"./modules-Qpm_zqz4.mjs";import{WORKFLOWS_FILENAME as ta,discoverWorkflows as sa}from"./WORKFLOWS_FILENAME-DfVfBum_.mjs";import{r as na}from"./json-data-Chfs2Cz5.mjs";import{a as ia,I as ra,g as oa,G as gi,d as aa,i as ca}from"./shared-Cn7dMQ_u.mjs";import{createCodegenProject as la}from"./createCodegenProject-Cfr1xHPC.mjs";import{findTsconfig as Vx,refreshCodegenProject as Ux,tsconfigFingerprint as Wx}from"./createCodegenProject-Cfr1xHPC.mjs";import{wranglerString as da,wranglerValue as ua,companionName as fa,COMPANION_FILES as ga}from"./COMPANION_BINDING-Da_v9XpC.mjs";import{CAPABILITIES as pa,usedCapabilities as ma}from"./CAPABILITY_PROBES-BuNEmlCO.mjs";import{isD1GlobalTable as pi,isHyperdriveGlobalTable as mi}from"./isD1GlobalTable-udvHAAzD.mjs";import{discoverAgents as ha}from"./AGENTS_FILENAME-D0Y0_UgB.mjs";import{discoverContainers as va}from"./CONTAINERS_FILENAME-J-e3Vanb.mjs";import Ea from"./discoverCrons-DWVXmktw.mjs";import{discoverEnv as xa}from"./ENV_FILENAME-COPIfgzp.mjs";import hi from"./readPackageDependencies-RHhGiz0k.mjs";import{discoverQueueDeclarations as Sa}from"./QUEUES_FILENAME-Ba-sK5Ek.mjs";import{discoverSandboxUsage as Aa}from"./discoverSandboxUsage-Ccy9n7G1.mjs";import{resolveServiceBindings as ya}from"./companionServiceBinding-BZjm486n.mjs";import ba from"./discoverStorageRulesMetadata-ZKW6DInk.mjs";import{resolveCodegenTarget as je,gatePlatformFeatures as Na,readTargetDiagnostics as Pa,vectorizeDimensionDiagnostics as wa,liveStreamsDeliveryAuthorizationDiagnostic as Ia,socketRoutesDeliveryAuthorizationDiagnostic as Ca,studioPlatformFor as Ta,platformFeatureAvailable as Oa,gateAdminTokenRevocation as ka}from"./DEFAULT_TARGET-CVYzxQ0y.mjs";import{i as Ra}from"./schema-BgM8A3XV.mjs";import{b as vi,e as Fa}from"./shard-
|
|
1
|
+
import{existsSync as z,readFileSync as at,mkdirSync as ns,writeFileSync as Xr,rmSync as he,readdirSync as is}from"node:fs";import{dirname as ct,join as v,basename as Jr,relative as rs}from"node:path";import{performance as Ct}from"node:perf_hooks";import{runAdvisor as Zr}from"@lunora/advisor";import{LunoraError as F}from"@lunora/errors";import{serializeSchemaSnapshot as eo}from"./SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import{toAdvisorContext as to}from"./formatAdvisories-BCVASH7N.mjs";import{Node as r,SyntaxKind as d,Project as os,ts as so,VariableDeclarationKind as as}from"ts-morph";import{listLunoraSourceFiles as y,lunoraRelativePath as P,descendantsOfKind as E,bindingKeyName as ve,collectCallRows as O,findObjectProperty as W,collectSecurityCallRows as no,propertyInitializer as _,listSecurityScanFiles as $e,objectLiteralFromCallbackBody as Qn,limitNameOf as Xn,optionsObjectLiteral as Jn,handlerOf as io,memberAccessOf as cs,chainRootOf as lt,unwrapExpression as h,collectNodeRows as oe,isConstDeclaration as ae,outermostValueWrapper as C,isWriteTarget as be,isSameNode as b,returningFunctionOf as Kt,walkChain as ro,RUN_METHODS as Zn,functionReferenceSegments as oo,isTestPath as ao,isFunctionLike as ge,functionKeyOf as ei,withSourceListMemo as co}from"./isTestPath-DRIdZaij.mjs";import{j as Z,h as Y,d as M,b as ls,c as A,a as ds,w as us,k as lo,l as uo,f as fo,m as go,g as Bt,i as po}from"./attribution-BhGR_h0Z.mjs";import{b as tn,r as Tt,a as H,e as mo,m as ti,c as dt,f as fs,E as si,C as ni,d as ho,g as vo,i as Eo}from"./context-root-DP9WbBI_.mjs";import{a as T,i as ii,c as ce,d as ri,e as oi,f as xo,g as So}from"./classify-procedure-call-n9urVsqb.mjs";import{a as S,s as gs}from"./property-name-7cBlgK_O.mjs";import{b as Ao,a as ai}from"./module-specifiers-BctA0m_p.mjs";import{r as ut,s as yo}from"./parse-validator-BisfC8bR.mjs";import bo from"./discoverAuthApiCalls-ENLGem4M.mjs";import{i as K,r as ci}from"./database-calls-Do0YbPCL.mjs";import{i as Vt,p as li,w as No,d as Po}from"./index-BH3e-J44.mjs";import wo from"./discoverHyperdriveCalls-W96s1VgA.mjs";import{PROJECT_CONFIG_FILENAMES as Io,findProjectConfigFile as di,findCodegenConfigFile as Co}from"./PROJECT_CONFIG_FILENAMES-CLfsyvjA.mjs";import{contextPropertiesRead as To,createTargetScope as Oo,fileWiresRequestSecretTool as ko,discoverFeatureUsage as Ro}from"./capabilitiesUsedBy-BwhaHK08.mjs";import{diagnosticAt as Ne}from"./CodegenDiagnosticError-BUXlG3P-.mjs";import{m as ps,a as et,s as ui,d as Fo}from"./index-D03C6Kao.mjs";import{MUTATORS_FILENAME as Lo,isDefineMutatorCallee as Do,mutatorServerImplOf as _o,discoverMutators as Mo}from"./MUTATORS_FILENAME-C3OImAxC.mjs";import $o from"./discoverNondeterministicCalls-DR0S5Xb4.mjs";import{discoverNotifyConfig as zo,discoverNotifyCalls as Ko}from"./ALL_NOTIFY_CHANNELS-D1LVGz6_.mjs";import Bo from"./discoverR2sqlCalls-Cb4AmcY8.mjs";import Vo from"./discoverRlsProcedures-_Dh3Xb9Z.mjs";import{s as ms,n as Uo}from"./dispatch-namespace-DwTjD7BU.mjs";import{secretKindOf as Wo,redact as qo,isHeuristicSecretKind as jo,isSecretishName as Ho}from"./redact-Cy14LEnc.mjs";import{r as fi,p as Go,c as Yo,a as Qo,e as Xo,d as Jo}from"./project-config-file-DR7xrrNB.mjs";import{a as qe,d as Zo,r as ea}from"./modules-Qpm_zqz4.mjs";import{WORKFLOWS_FILENAME as ta,discoverWorkflows as sa}from"./WORKFLOWS_FILENAME-DfVfBum_.mjs";import{r as na}from"./json-data-Chfs2Cz5.mjs";import{a as ia,I as ra,g as oa,G as gi,d as aa,i as ca}from"./shared-Cn7dMQ_u.mjs";import{createCodegenProject as la}from"./createCodegenProject-Cfr1xHPC.mjs";import{findTsconfig as Vx,refreshCodegenProject as Ux,tsconfigFingerprint as Wx}from"./createCodegenProject-Cfr1xHPC.mjs";import{wranglerString as da,wranglerValue as ua,companionName as fa,COMPANION_FILES as ga}from"./COMPANION_BINDING-Da_v9XpC.mjs";import{CAPABILITIES as pa,usedCapabilities as ma}from"./CAPABILITY_PROBES-BuNEmlCO.mjs";import{isD1GlobalTable as pi,isHyperdriveGlobalTable as mi}from"./isD1GlobalTable-udvHAAzD.mjs";import{discoverAgents as ha}from"./AGENTS_FILENAME-D0Y0_UgB.mjs";import{discoverContainers as va}from"./CONTAINERS_FILENAME-J-e3Vanb.mjs";import Ea from"./discoverCrons-DWVXmktw.mjs";import{discoverEnv as xa}from"./ENV_FILENAME-COPIfgzp.mjs";import hi from"./readPackageDependencies-RHhGiz0k.mjs";import{discoverQueueDeclarations as Sa}from"./QUEUES_FILENAME-Ba-sK5Ek.mjs";import{discoverSandboxUsage as Aa}from"./discoverSandboxUsage-Ccy9n7G1.mjs";import{resolveServiceBindings as ya}from"./companionServiceBinding-BZjm486n.mjs";import ba from"./discoverStorageRulesMetadata-ZKW6DInk.mjs";import{resolveCodegenTarget as je,gatePlatformFeatures as Na,readTargetDiagnostics as Pa,vectorizeDimensionDiagnostics as wa,liveStreamsDeliveryAuthorizationDiagnostic as Ia,socketRoutesDeliveryAuthorizationDiagnostic as Ca,studioPlatformFor as Ta,platformFeatureAvailable as Oa,gateAdminTokenRevocation as ka}from"./DEFAULT_TARGET-CVYzxQ0y.mjs";import{i as Ra}from"./schema-BgM8A3XV.mjs";import{b as vi,e as Fa}from"./shard-CgzAeeHn.mjs";import{e as La,a as Da}from"./server-5ph4hltf.mjs";import{emitDataModel as _a}from"./emitDataModel-BvCZS4Yq.mjs";import{i as Ma,b as $a,e as za,d as Ka,f as Ba,c as Va}from"./unwrap-handler-return-DUzluwPj.mjs";import Ua from"./discoverHttpRoutes-CAoEemno.mjs";import Wa from"./discoverInserts-BtyJbg8A.mjs";import{e as Ei}from"./exported-procedure-chains-DomRzs5_.mjs";import qa from"./discoverMigrations-Duh6HVG3.mjs";import sn from"./discoverQueries-BLyL2qzX.mjs";import ja from"./discoverRlsMetadata-Cf4gZvxW.mjs";import Ha from"./discoverSchema-ynieYB0n.mjs";import{discoverShapes as Ga}from"./SHAPES_FILENAME-BYnZ1Xw-.mjs";import{i as Ya}from"./reserved-words-CW1QFbTd.mjs";import{emitAuthModule as Qa,emitApp as Xa}from"./emitApp-pPxkJ2Z-.mjs";import{readJsonSync as Ja}from"@visulima/fs";import{indexReferencesOf as Za,buildSchemaSnapshot as ec}from"./SchemaSnapshotParseError-CV7mmuPi.mjs";import{buildOpenApiDocument as tc,emitOpenApiModule as sc}from"./buildOpenApiDocument-B8KEeeRr.mjs";import{buildOpenRpcDocument as nc,emitOpenRpcModule as ic}from"./OPENRPC_VERSION-UNYmA7Ty.mjs";import{w as rc,u as oc,v as ac,t as cc,x as lc}from"./shard-runtime-DsYnnWSe.mjs";import{emitCollections as dc,emitSeed as uc,emitApi as fc,emitInternalApi as gc}from"./emitApi-lwadq5G7.mjs";import{emitCrons as pc,emitScheduler as mc,emitAdminRevocations as hc,emitShardRegistry as vc,emitDurableObjects as Ec,emitVectors as xc,emitWranglerCronTriggers as Sc}from"./emitCrons-CCRKs482.mjs";import Ac from"./emitDrizzleSchema-BzOChEYW.mjs";import{LAZY_FUNCTION_DIRECTORY as xi,emitFunctions as yc,emitLazyFunctionModules as bc}from"./emitFunctions-ppMX7E3X.mjs";const Nc=(e,t=!1)=>{if(e.length===0)return"";const s=aa(t),n=e.map(c=>{if(ia(c.exportName,"live stream export name"),!ra.test(c.filePath))throw new Error(`@lunora/codegen: live stream file path is not safe to import: ${JSON.stringify(c.filePath)}`);return`import type { ${c.exportName} as ${c.exportName}Stream } from "../${c.filePath}.js";`}),i=e.map(c=>{const l=c.topics.map(u=>{oa(u.name,"live topic name");const f=`(typeof ${c.exportName}Stream)["topics"]["${u.name}"]`,g=`LiveTopicRef<LiveTopicPayload<${f}>>`,m=JSON.stringify(c.id);if(u.fields.length===0)return` ${u.name}: (): ${g} => ({ __lunoraLive: ${m}, topic: ${JSON.stringify(u.name)} }),`;const x=u.fields.map(k=>`\${encodeURIComponent(key.${k})}`).join(":");return` ${u.name}: (key: LiveTopicKey<${f}>): ${g} => ({
|
|
2
2
|
__lunoraLive: ${m},
|
|
3
3
|
topic: \`${u.name}:${x}\`,
|
|
4
4
|
}),`});return` ${c.exportName}: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./json-data-Chfs2Cz5.mjs";import{p as i,j as r,t as n,h as o,u as g,k as F,d as u,x as p,n as l,g as f,f as d,m as k,i as w,v as W,l as v,w as A}from"./shard-runtime-
|
|
1
|
+
import"./json-data-Chfs2Cz5.mjs";import{p as i,j as r,t as n,h as o,u as g,k as F,d as u,x as p,n as l,g as f,f as d,m as k,i as w,v as W,l as v,w as A}from"./shard-runtime-DsYnnWSe.mjs";import"./shared-Cn7dMQ_u.mjs";import"./platform-8oj7iXQy.mjs";export{i as buildDoTypeImports,r as emitAgentFragments,n as emitAgents,o as emitContainerFragments,g as emitContainers,F as emitPaymentFragments,u as emitQueueFragments,p as emitQueues,l as emitQueuesMetadataFragments,f as emitServiceFragments,d as emitTopicFragments,k as emitWorkflowEventFragments,w as emitWorkflowFragments,W as emitWorkflows,v as emitWorkflowsMetadataFragments,A as queueAliasFindings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import"./isD1GlobalTable-udvHAAzD.mjs";import"./json-data-Chfs2Cz5.mjs";import{e as d}from"./shard-
|
|
1
|
+
import"./SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import"./isD1GlobalTable-udvHAAzD.mjs";import"./json-data-Chfs2Cz5.mjs";import{e as d}from"./shard-CgzAeeHn.mjs";import"./shard-runtime-DsYnnWSe.mjs";import"./shared-Cn7dMQ_u.mjs";import"./platform-8oj7iXQy.mjs";import"./schema-BgM8A3XV.mjs";export{d as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{LunoraError as pe}from"@lunora/errors";import{serializeSchemaSnapshot as Zt,hashSchemaSnapshot as er}from"./SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import{isHyperdriveGlobalTable as tr,isD1GlobalTable as rr}from"./isD1GlobalTable-udvHAAzD.mjs";import{r as nr}from"./json-data-Chfs2Cz5.mjs";import{r as q,e as ar,a as sr,b as or,c as ir,d as dr,f as cr,g as lr,h as ur,i as hr,j as pr,k as mr,l as fr,m as gr,n as br,o as yr,p as wr,q as vr,s as kr}from"./shard-runtime-
|
|
1
|
+
import{LunoraError as pe}from"@lunora/errors";import{serializeSchemaSnapshot as Zt,hashSchemaSnapshot as er}from"./SCHEMA_SNAPSHOT_VERSION-DTLoSaNn.mjs";import{isHyperdriveGlobalTable as tr,isD1GlobalTable as rr}from"./isD1GlobalTable-udvHAAzD.mjs";import{r as nr}from"./json-data-Chfs2Cz5.mjs";import{r as q,e as ar,a as sr,b as or,c as ir,d as dr,f as cr,g as lr,h as ur,i as hr,j as pr,k as mr,l as fr,m as gr,n as br,o as yr,p as wr,q as vr,s as kr}from"./shard-runtime-DsYnnWSe.mjs";import{u as U,h as Sr,s as Rr,a as xr,I as Ar,c as Or,G as Tr,d as _r}from"./shared-Cn7dMQ_u.mjs";import{p as Dr}from"./platform-8oj7iXQy.mjs";import{i as Ir}from"./schema-BgM8A3XV.mjs";const m=(r,t)=>`((): (() => ${t}) => { let cached: ${t} | undefined; return () => (cached ??= JSON.parse(${JSON.stringify(JSON.stringify(r))}) as ${t}); })()`,me=["categories","description","facing","level","remediation","title"],Er=r=>{const t={};return{advisoryRows:r.map(o=>{let n=t[o.name];return n||(n=Object.fromEntries(me.filter(a=>a in o).map(a=>[a,o[a]])),t[o.name]=n),Object.fromEntries(Object.entries(o).filter(([a,i])=>!me.includes(a)||JSON.stringify(i)!==JSON.stringify(n[a])))}),advisoryRules:t}},Cr=` /**
|
|
2
2
|
* The bare writer every admin/maintenance entry point writes through.
|
|
3
3
|
*
|
|
4
4
|
* Admin and maintenance writes go through the SAME reactive-cache hooks as a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{LunoraError as R}from"@lunora/errors";import{r as $}from"./json-data-Chfs2Cz5.mjs";import{CAPABILITIES as S}from"./CAPABILITY_PROBES-BuNEmlCO.mjs";import{a as l,G as f,I as w}from"./shared-Cn7dMQ_u.mjs";import{s as L}from"./platform-8oj7iXQy.mjs";const
|
|
1
|
+
import{LunoraError as R}from"@lunora/errors";import{r as $}from"./json-data-Chfs2Cz5.mjs";import{CAPABILITIES as S}from"./CAPABILITY_PROBES-BuNEmlCO.mjs";import{a as l,G as f,I as w}from"./shared-Cn7dMQ_u.mjs";import{s as L}from"./platform-8oj7iXQy.mjs";const K=e=>e?{importFragment:"serveRelationFanout, ",override:`
|
|
2
2
|
protected override async runRelationFanoutRead(functionPath: string, args: Record<string, unknown>): Promise<unknown> {
|
|
3
3
|
this.ensureServable();
|
|
4
4
|
|
|
@@ -6,14 +6,16 @@ import{LunoraError as R}from"@lunora/errors";import{r as $}from"./json-data-Chfs
|
|
|
6
6
|
|
|
7
7
|
return serveRelationFanout(schema as unknown as SchemaLike, db, functionPath, args);
|
|
8
8
|
}
|
|
9
|
-
`}:{importFragment:"",override:""},y=(e,r,t,{cast:n="",sync:
|
|
10
|
-
${
|
|
11
|
-
},`).
|
|
9
|
+
`}:{importFragment:"",override:""},y=(e,r,t,{cast:n="",getters:i=[],sync:a=[]}={})=>{const c=`throw new Error(${JSON.stringify(r)});`,u=[...t.map(s=>[s,` ${s}: ${a===!0||a.includes(s)?"":"async "}() => {
|
|
10
|
+
${c}
|
|
11
|
+
},`]),...i.map(s=>[s,` get ${s}(): never {
|
|
12
|
+
${c}
|
|
13
|
+
},`])].toSorted(([s],[o])=>s.localeCompare(o)).map(([,s])=>s).join(`
|
|
12
14
|
`);return`
|
|
13
15
|
const ${e} = {
|
|
14
|
-
${
|
|
16
|
+
${u}
|
|
15
17
|
}${n};
|
|
16
|
-
`},x={build:"",configField:"",contextField:"",importLines:[],stub:""},
|
|
18
|
+
`},x={build:"",configField:"",contextField:"",importLines:[],stub:""},H=e=>e.size===0?{configField:"",constant:"",override:""}:{configField:"\n /** The `ShardRegistryDO` namespace (typically `env.SHARD_REGISTRY`). This shard registers its key for each `.shardBy()` table it writes, so cross-shard export, sync and migrations reach it. */\n shardRegistry?: (env: Record<string, unknown>) => unknown;",constant:`
|
|
17
19
|
/** The \`.shardBy()\` tables this shard registers with the shard registry when it writes them. */
|
|
18
20
|
const SHARDED_TABLES: ReadonlySet<string> = new Set([${[...e].map(r=>JSON.stringify(r)).join(", ")}]);
|
|
19
21
|
`,override:`
|
|
@@ -22,26 +24,26 @@ const SHARDED_TABLES: ReadonlySet<string> = new Set([${[...e].map(r=>JSON.string
|
|
|
22
24
|
|
|
23
25
|
return namespace === undefined ? undefined : { namespace, shardedTables: SHARDED_TABLES };
|
|
24
26
|
}
|
|
25
|
-
`},
|
|
27
|
+
`},G=(e,r)=>e?{build:`
|
|
26
28
|
const flags: import("${r}").LunoraFlags = createFlags(flagsConfig, env, {
|
|
27
29
|
provider: () => config.flags?.(env),
|
|
28
30
|
targetingKey: () => flagsConfig.identify?.({ identity: readIdentity() ?? null, userId: readUserId() ?? null }),
|
|
29
31
|
});
|
|
30
32
|
`,configField:`
|
|
31
33
|
flags?: (env: Record<string, unknown>) => import("${r}").Provider;`,contextField:`
|
|
32
|
-
flags,`,importLines:[`import { createFlags } from "${r}";`,'import flagsConfig from "../flags.js";'],stub:""}:x,
|
|
34
|
+
flags,`,importLines:[`import { createFlags } from "${r}";`,'import flagsConfig from "../flags.js";'],stub:""}:x,V=e=>e?{build:`
|
|
33
35
|
const { notify, push } = createNotify(notifyConfig, env, { log, metrics });
|
|
34
36
|
`,configField:"",contextField:`
|
|
35
37
|
notify,
|
|
36
|
-
push,`,importLines:['import { createNotify } from "@lunora/notify";','import notifyConfig from "../notify.js";'],stub:""}:x,
|
|
38
|
+
push,`,importLines:['import { createNotify } from "@lunora/notify";','import notifyConfig from "../notify.js";'],stub:""}:x,J=e=>e?{build:`
|
|
37
39
|
const envConfig = lunoraEnvContract.${e.exportName}(env);
|
|
38
40
|
`,configField:"",contextField:`
|
|
39
|
-
env: envConfig,`,importLines:['import * as lunoraEnvContract from "../env.js";'],stub:""}:x,
|
|
41
|
+
env: envConfig,`,importLines:['import * as lunoraEnvContract from "../env.js";'],stub:""}:x,Y=(e,r,t)=>{if(!r)return{constant:"",evaluateOverride:"",subscriptionOverride:""};const n=s=>`
|
|
40
42
|
const env = (this.env ?? {}) as Record<string, unknown>;
|
|
41
43
|
const flags: import("${t}").LunoraFlags = createFlags(flagsConfig, env, {
|
|
42
44
|
provider: () => config.flags?.(env),
|
|
43
|
-
targetingKey: ${
|
|
44
|
-
});`,
|
|
45
|
+
targetingKey: ${s},
|
|
46
|
+
});`,i=`
|
|
45
47
|
/** Statically-discovered feature flags (\`ctx.flags.<type>("key")\` reads) served via \`__lunora_admin__:listFlags\` + the reactive \`__lunora_flags__:\` channel. */
|
|
46
48
|
const LUNORA_FLAG_KEYS = ${$(e,'ReadonlyArray<{ key: string; type: "boolean" | "number" | "object" | "string" }>')};
|
|
47
49
|
`,c=`
|
|
@@ -99,7 +101,7 @@ const LUNORA_FLAG_KEYS = ${$(e,'ReadonlyArray<{ key: string; type: "boolean" | "
|
|
|
99
101
|
|
|
100
102
|
return flags.boolean(key, typeof args.default === "boolean" ? args.default : false, context);
|
|
101
103
|
}
|
|
102
|
-
`;return{constant:
|
|
104
|
+
`;return{constant:i,evaluateOverride:c,subscriptionOverride:u}},A=()=>({build:`
|
|
103
105
|
const aiBinding = config.ai?.(env) ?? (env as Record<string, unknown>).AI;
|
|
104
106
|
// Correlate AI-Gateway-routed calls with the Lunora trace: thread the
|
|
105
107
|
// function path + trace id into createAi, which folds them into the
|
|
@@ -134,30 +136,30 @@ const LUNORA_FLAG_KEYS = ${$(e,'ReadonlyArray<{ key: string; type: "boolean" | "
|
|
|
134
136
|
? lazyX402Pay(config.x402(env), { getSecret: (name: string) => secrets.get(name) })
|
|
135
137
|
: x402Stub;
|
|
136
138
|
`,configField:`
|
|
137
|
-
x402?: (env: Record<string, unknown>) => X402PayConfig;`,importLines:['import type { X402Pay, X402PayConfig } from "@lunora/x402/pay";','import { lazyX402Pay } from "@lunora/x402/pay";'],stub:y("x402Stub: X402Pay","ctx.x402: no pay rail configured. Pass `x402` to createShardDO().",["fetch"],{cast:" as unknown as X402Pay",sync:["fetch"]})}),E={access:_,ai:A,r2sql:C,x402:F},O=e=>e.shardBinding==="bespoke",P=e=>typeof e.shardBinding=="object",m=" ",q=(e,r,t)=>{const n=`${e}Binding`,{factory:
|
|
138
|
-
`,
|
|
139
|
-
${
|
|
139
|
+
x402?: (env: Record<string, unknown>) => X402PayConfig;`,importLines:['import type { X402Pay, X402PayConfig } from "@lunora/x402/pay";','import { lazyX402Pay } from "@lunora/x402/pay";'],stub:y("x402Stub: X402Pay","ctx.x402: no pay rail configured. Pass `x402` to createShardDO().",["fetch"],{cast:" as unknown as X402Pay",sync:["fetch"]})}),E={access:_,ai:A,r2sql:C,x402:F},O=e=>e.shardBinding==="bespoke",P=e=>typeof e.shardBinding=="object",m=" ",q=(e,r,t)=>{const n=`${e}Binding`,{factory:i}=t;let a=`(${n} as ${r})`;if(i!==void 0){const c=`${n} as ${t.bindingType??r}`;a=i.option===void 0?`${i.name}(${c})`:`${i.name}({ ${i.option}: ${c} })`}return`${n} ? ${a} : ${e}Stub`},T=(e,r,t)=>{const n=q(e,r,t),i=`${m}const ${e}Binding = config.${e}?.(env) ?? (env as Record<string, unknown>).${t.envName};
|
|
140
|
+
`,a=t.unvouchableReads??[];return a.length===0?`
|
|
141
|
+
${i}${m}const ${e}: ${r} = ${n};
|
|
140
142
|
`:`
|
|
141
|
-
${
|
|
143
|
+
${i}${m}// ${t.envName} is not this shard's SQLite, so nothing appends a \`__cdc_log\` entry
|
|
142
144
|
${m}// when a value changes — a subscription that read one can never be proven
|
|
143
145
|
${m}// current on reconnect and must re-snapshot. Reads only; writes stay unstamped.
|
|
144
146
|
${m}const ${e}: ${r} = markUnvouchableReads(${n}, options.onRead, [
|
|
145
|
-
${
|
|
147
|
+
${a.map(c=>`${m} ${JSON.stringify(c)},`).join(`
|
|
146
148
|
`)}
|
|
147
149
|
${m}]);
|
|
148
|
-
`},
|
|
149
|
-
${m}const ${e}: ${
|
|
150
|
+
`},W=(e,r,t)=>{const{binding:n,clientType:i}=t,a=y(`${e}Stub: ${i}`,t.missingMessage,t.stubMethods,{sync:t.syncStubMethods});if(n===void 0){const s=t.instrument===void 0?`config.${e}(env)`:`this.${t.instrument}(config.${e}(env), logFunctionPath, traceAnchor, observability)`;return{build:`
|
|
151
|
+
${m}const ${e}: ${i} = config.${e} ? ${s} : ${e}Stub;
|
|
150
152
|
`,configField:`
|
|
151
|
-
${e}?: (env: Record<string, unknown>) => ${
|
|
152
|
-
${e}?: (env: Record<string, unknown>) => ${c};`,importLines:[`import type { ${u.join(", ")} } from "${r}";`,...n.factory===void 0?[]:[`import { ${n.factory.name} } from "${r}";`]],stub:
|
|
153
|
-
${d},`):(n+=o.build,r.push(d))}return{actionBuild:n,actionFields:r,configFields:
|
|
153
|
+
${e}?: (env: Record<string, unknown>) => ${i};`,importLines:[`import type { ${i} } from "${r}";`],stub:a}}const c=n.bindingType??i,u=[...new Set([c,i])].toSorted((s,o)=>s.localeCompare(o));return{build:T(e,i,n),configField:`
|
|
154
|
+
${e}?: (env: Record<string, unknown>) => ${c};`,importLines:[`import type { ${u.join(", ")} } from "${r}";`,...n.factory===void 0?[]:[`import { ${n.factory.name} } from "${r}";`]],stub:a}},z=e=>{const r=[],t=[];let n="",i="",a="",c="",u="";for(const s of S.filter(({key:o})=>e.has(o))){let o;if(O(s))o=E[s.key]();else if(P(s))o=W(s.contextProperty,s.moduleSpecifier,s.shardBinding);else continue;const d=s.contextProperty;t.push(...o.importLines),i+=o.configField,u+=o.stub,s.tier==="every"?(a+=o.build,c+=`
|
|
155
|
+
${d},`):(n+=o.build,r.push(d))}return{actionBuild:n,actionFields:r,configFields:i,everyBuild:a,everyFields:c,importLines:t,stubs:u}},X=(e,r)=>{if(e.length===0)return"";const t=r?`, ${JSON.stringify(r)}`:"",n=e.map(o=>{l(o.exportName,`container export "${o.exportName}"`),l(o.className,`container class "${o.className}"`);const d=o.sandbox===!0?"LunoraSandboxContainer":"LunoraContainer";return`/** Container DO for the \`${o.exportName}\` definition (binding \`${o.bindingName}\`). */
|
|
154
156
|
export class ${o.className} extends ${d} {
|
|
155
157
|
public constructor(ctx: ConstructorParameters<typeof ${d}>[0], env: Record<string, unknown>) {
|
|
156
158
|
super(ctx, env, ${o.exportName}, "${o.exportName}"${t});
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
161
|
`}).join(`
|
|
160
|
-
`),
|
|
162
|
+
`),i=e.map(o=>o.exportName).join(", "),a=e.some(o=>o.sandbox===!0),c=e.some(o=>o.sandbox!==!0)?`import { LunoraContainer } from "@lunora/container/do";
|
|
161
163
|
`:"";return`${f}/**
|
|
162
164
|
* Container-enabled Durable Object classes for the containers declared in
|
|
163
165
|
* \`lunora/containers.ts\`. Re-export them from your worker entry — wrangler
|
|
@@ -170,19 +172,19 @@ export class ${o.className} extends ${d} {
|
|
|
170
172
|
* \`handle.egress\` controls) routes container outbound traffic through this
|
|
171
173
|
* WorkerEntrypoint, so it too must be exported by the deployed worker.
|
|
172
174
|
*/
|
|
173
|
-
${c}${
|
|
175
|
+
${c}${a?`import { LunoraSandboxContainer } from "@lunora/container/sandbox";
|
|
174
176
|
`:""}
|
|
175
|
-
import { ${
|
|
177
|
+
import { ${i} } from "../containers.js";
|
|
176
178
|
|
|
177
179
|
export { ContainerProxy } from "@lunora/container/do";
|
|
178
|
-
${
|
|
180
|
+
${a?`
|
|
179
181
|
/**
|
|
180
182
|
* \`DirectoryBackup\` and \`S3Mount\` route a \`sandbox: true\` container's storage
|
|
181
183
|
* traffic through these WorkerEntrypoints, so the deployed worker must export them.
|
|
182
184
|
*/
|
|
183
185
|
export { DirectoryBackupGateway, S3Gateway } from "@lunora/container/sandbox";
|
|
184
186
|
`:""}
|
|
185
|
-
${n}`},
|
|
187
|
+
${n}`},Z=(e,r)=>{if(e.length===0)return{build:"",contextField:"",importLines:[],specs:""};for(const n of e)l(n.exportName,`container export "${n.exportName}"`),l(n.bindingName,`container binding "${n.bindingName}"`);const t=e.map(n=>{const i=n.schedulingPolicy!==void 0||n.maxInstances===void 0?"":`, maxInstances: ${String(n.maxInstances)}`;return` { binding: "${n.bindingName}", exportName: "${n.exportName}"${i} },`}).join(`
|
|
186
188
|
`);return{build:`
|
|
187
189
|
const containers = createContainerContext(env, LUNORA_CONTAINERS, ${r?JSON.stringify(r):"undefined"}, this.getCurrentTraceparent(), this.getCurrentSampleErrors());
|
|
188
190
|
`,contextField:`
|
|
@@ -191,14 +193,14 @@ ${n}`},X=(e,r)=>{if(e.length===0)return{build:"",contextField:"",importLines:[],
|
|
|
191
193
|
const LUNORA_CONTAINERS: ReadonlyArray<ContainerBindingSpec> = [
|
|
192
194
|
${t}
|
|
193
195
|
];
|
|
194
|
-
`}},
|
|
195
|
-
export class ${
|
|
196
|
+
`}},ee=(e,r={})=>{if(e.length===0)return"";const t=r.lazy===!0,n=e.map(a=>{l(a.exportName,`workflow export "${a.exportName}"`),l(a.className,`workflow class "${a.className}"`);const c=t?`async () => (await import("../workflows.js")).${a.exportName}`:a.exportName;return`/** WorkflowEntrypoint for the \`${a.exportName}\` definition, reached as \`ctx.exports.${a.className}\`. */
|
|
197
|
+
export class ${a.className} extends LunoraWorkflow<WorkflowParamsOf<typeof ${a.exportName}>, WorkflowOutputOf<typeof ${a.exportName}>> {
|
|
196
198
|
public constructor(ctx: ConstructorParameters<typeof LunoraWorkflow>[0], env: Record<string, unknown>) {
|
|
197
|
-
super(ctx, env, ${c}, "${
|
|
199
|
+
super(ctx, env, ${c}, "${a.exportName}");
|
|
198
200
|
}
|
|
199
201
|
}
|
|
200
202
|
`}).join(`
|
|
201
|
-
`),
|
|
203
|
+
`),i=e.map(a=>a.exportName).join(", ");return`${f}/**
|
|
202
204
|
* WorkflowEntrypoint classes for the workflows declared in
|
|
203
205
|
* \`lunora/workflows.ts\`. Re-export them from your worker entry — wrangler
|
|
204
206
|
* requires each \`workflows[].class_name\` to be exported by the worker:
|
|
@@ -207,7 +209,7 @@ export class ${i.className} extends LunoraWorkflow<WorkflowParamsOf<typeof ${i.e
|
|
|
207
209
|
*/
|
|
208
210
|
import LunoraWorkflow from "@lunora/workflow/do";
|
|
209
211
|
|
|
210
|
-
import ${t?"type ":""}{ ${
|
|
212
|
+
import ${t?"type ":""}{ ${i} } from "../workflows.js";
|
|
211
213
|
|
|
212
214
|
/** Params type carried by a \`defineWorkflow\` definition (its phantom \`__params\`), so each entrypoint keeps the authored \`ctx.params\` type. */
|
|
213
215
|
type WorkflowParamsOf<Definition> = Definition extends { __params?: infer Params }
|
|
@@ -219,10 +221,10 @@ type WorkflowParamsOf<Definition> = Definition extends { __params?: infer Params
|
|
|
219
221
|
/** Output type carried by a \`defineWorkflow\` definition (its phantom \`__output\`), so each entrypoint keeps the authored return type. */
|
|
220
222
|
type WorkflowOutputOf<Definition> = Definition extends { __output?: infer Output } ? Output : unknown;
|
|
221
223
|
|
|
222
|
-
${n}`},
|
|
224
|
+
${n}`},te=(e,r={})=>{if(e.length===0)return"";const n=e.filter(o=>o.voice).length>0,i=r.lazy===!0&&!n,a=e.map(o=>{l(o.exportName,`agent export "${o.exportName}"`),l(o.className,`agent class "${o.className}"`);const d=`/** WorkflowEntrypoint for the \`${o.exportName}\` agent, reached as \`ctx.exports.${o.className}\`. */
|
|
223
225
|
export class ${o.className} extends LunoraWorkflow<AgentRunInput, AgentRunResult> {
|
|
224
226
|
public constructor(ctx: ConstructorParameters<typeof LunoraWorkflow>[0], env: Record<string, unknown>) {
|
|
225
|
-
super(ctx, env, ${
|
|
227
|
+
super(ctx, env, ${i?`async () => {
|
|
226
228
|
const [{ compileAgentWorkflow }, { ${o.exportName}: definition }] = await Promise.all([import("@lunora/agent"), import("../agents.js")]);
|
|
227
229
|
|
|
228
230
|
return compileAgentWorkflow(definition, "${o.exportName}");
|
|
@@ -238,7 +240,7 @@ export class ${p} extends VoiceSessionDO {
|
|
|
238
240
|
}
|
|
239
241
|
`;return`${d}${k}`}).join(`
|
|
240
242
|
`),c=e.map(o=>o.exportName).join(", ");let u='import { compileAgentWorkflow } from "@lunora/agent/core";';return n?u=`import { compileAgentWorkflow } from "@lunora/agent/core";
|
|
241
|
-
import { VoiceSessionDO } from "@lunora/agent";`:
|
|
243
|
+
import { VoiceSessionDO } from "@lunora/agent";`:i&&(u=""),`${f}/**
|
|
242
244
|
* WorkflowEntrypoint classes for the agents declared in \`lunora/agents.ts\`.
|
|
243
245
|
* Each \`defineAgent\` compiles a replay-safe tool-loop onto a Cloudflare
|
|
244
246
|
* Workflow. Re-export them from your worker entry — wrangler requires each
|
|
@@ -249,11 +251,11 @@ import { VoiceSessionDO } from "@lunora/agent";`:s&&(u=""),`${f}/**
|
|
|
249
251
|
import LunoraWorkflow from "@lunora/workflow/do";
|
|
250
252
|
${u===""?"":`${u}
|
|
251
253
|
`}import type { AgentRunInput, AgentRunResult } from "@lunora/agent/core";
|
|
252
|
-
${
|
|
254
|
+
${i?"":`
|
|
253
255
|
import { ${c} } from "../agents.js";
|
|
254
256
|
`}
|
|
255
|
-
${
|
|
256
|
-
`),{routes:
|
|
257
|
+
${a}`},h=e=>e.env===void 0?"the top level":`env.${e.env}`,v=(e,r)=>{const t=e.filter(s=>s.mode==="push"),n=new Map(t.map(s=>[s.bindingName,s])),i=new Map(e.map(s=>[s.name,s])),a=new Map(t.map(s=>[s.name,s])),c=new Map,u=[];for(const s of r){const o=n.get(s.binding);if(o===void 0||s.queue===o.name)continue;const d=i.get(s.queue);if(d!==void 0){u.push(`${h(s)} maps \`${s.binding}\` to "${s.queue}", the declared name of queue \`${d.exportName}\` — batches for "${s.queue}" go to \`${d.exportName}\`, never \`${o.exportName}\`.`);continue}const p=a.get(s.queue);if(p===void 0)a.set(s.queue,o),c.set(s.queue,s);else if(p!==o){const g=c.get(s.queue);u.push(`"${s.queue}" is aliased to \`${p.exportName}\` by ${g===void 0?"an earlier producer":h(g)} and to \`${o.exportName}\` by ${h(s)} — batches for it go to \`${p.exportName}\`.`)}}return{conflicts:u,routes:a}},ne=(e,r)=>v(e,r).conflicts.map(t=>({cacheKey:`queue_alias_conflict:${t}`,categories:["SCHEMA"],description:"Codegen routes a delivered batch by its queue name. A wrangler.jsonc producer that maps a queue's binding to another name adds that name as a route, so it must not be another queue's declared name or an alias another scope gives a different queue.",detail:t,facing:"INTERNAL",level:"WARN",metadata:{},name:"queue_alias_conflict",remediation:"Give each queue a distinct name in every `env.<name>` block of wrangler.jsonc, then rerun codegen.",title:"Queue name routes to a different handler than wrangler.jsonc implies"})),re=(e,r=[])=>{const t=e.filter(c=>c.mode==="push");if(t.length===0)return"";for(const c of t)l(c.exportName,`queue export "${c.exportName}"`);const n=[...Map.groupBy(t,c=>c.filePath)].map(([c,u])=>`import { ${u.map(s=>s.exportName).join(", ")} } from "../${c}.js";`).join(`
|
|
258
|
+
`),{routes:i}=v(e,r),a=[...i].map(([c,u])=>` ${JSON.stringify(c)}: { binding: ${JSON.stringify(u.bindingName)}, definition: ${u.exportName}, exportName: ${JSON.stringify(u.exportName)} },`).join(`
|
|
257
259
|
`);return`${f}/**
|
|
258
260
|
* Push-consumer registry for the queues declared in \`lunora/queues.ts\`. The
|
|
259
261
|
* composed worker's \`queue(batch, env, ctx)\` entry routes each delivered batch
|
|
@@ -266,9 +268,9 @@ ${n}
|
|
|
266
268
|
|
|
267
269
|
/** Wrangler queue name (declared, or a per-environment rename) → { binding, definition, exportName } for batch routing. */
|
|
268
270
|
export const LUNORA_QUEUE_REGISTRY: QueueRegistry = {
|
|
269
|
-
${
|
|
271
|
+
${a}
|
|
270
272
|
};
|
|
271
|
-
`},
|
|
273
|
+
`},oe=e=>{if(e.length===0)return{build:"",contextField:"",importLines:[],specs:""};for(const t of e)l(t.exportName,`workflow export "${t.exportName}"`),l(t.className,`workflow class "${t.className}"`);const r=e.map(t=>` { className: "${t.className}", exportName: "${t.exportName}" },`).join(`
|
|
272
274
|
`);return{build:`
|
|
273
275
|
const workflows = createWorkflowContext(env, LUNORA_WORKFLOWS, this.state.exports);
|
|
274
276
|
`,contextField:`
|
|
@@ -277,7 +279,7 @@ ${i}
|
|
|
277
279
|
const LUNORA_WORKFLOWS: ReadonlyArray<WorkflowBindingSpec> = [
|
|
278
280
|
${r}
|
|
279
281
|
];
|
|
280
|
-
`}},
|
|
282
|
+
`}},se=e=>{if(e.length===0)return{build:"",contextField:"",importLines:[],specs:""};for(const t of e)l(t.exportName,`queue export "${t.exportName}"`),l(t.bindingName,`queue binding "${t.bindingName}"`);const r=e.map(t=>` { binding: "${t.bindingName}", exportName: "${t.exportName}", name: ${JSON.stringify(t.name)} },`).join(`
|
|
281
283
|
`);return{build:`
|
|
282
284
|
const queues = createQueueContext(env, LUNORA_QUEUES);
|
|
283
285
|
`,contextField:`
|
|
@@ -286,7 +288,7 @@ ${r}
|
|
|
286
288
|
const LUNORA_QUEUES: ReadonlyArray<QueueBindingSpec> = [
|
|
287
289
|
${r}
|
|
288
290
|
];
|
|
289
|
-
`}},
|
|
291
|
+
`}},ae=(e,r)=>{if(e.length===0)return{build:"",contextField:"",importLines:[],specs:""};const t=e.map(n=>{l(n.exportName,`topic export "${n.exportName}"`);const i=L(r,n.exportName).map(a=>`{ binding: "${a.bindingName}", exportName: "${a.exportName}" }`).join(", ");return` { exportName: "${n.exportName}", subscriptions: [${i}] },`}).join(`
|
|
290
292
|
`);return{build:`
|
|
291
293
|
const topics = createTopicContext(env, LUNORA_TOPICS);
|
|
292
294
|
`,contextField:`
|
|
@@ -295,7 +297,7 @@ ${r}
|
|
|
295
297
|
const LUNORA_TOPICS: ReadonlyArray<TopicBindingSpec> = [
|
|
296
298
|
${t}
|
|
297
299
|
];
|
|
298
|
-
`}},
|
|
300
|
+
`}},ie=(e,r)=>{if(e.length===0)return{build:"",importLines:[],specs:""};const t=e.map(n=>(l(n.name,`service "${n.name}"`),l(n.binding,`service binding "${n.binding}"`),` { binding: "${n.binding}", name: "${n.name}"${n.rpcEntrypoint===void 0?"":", rpc: true"} },`)).join(`
|
|
299
301
|
`);return{build:`
|
|
300
302
|
const services = createServices(env, LUNORA_SERVICES);
|
|
301
303
|
`,importLines:[`import type { ServiceBindingSpec } from "${r}";`,`import { createServices } from "${r}";`],specs:`
|
|
@@ -303,7 +305,7 @@ ${t}
|
|
|
303
305
|
const LUNORA_SERVICES: ReadonlyArray<ServiceBindingSpec> = [
|
|
304
306
|
${t}
|
|
305
307
|
];
|
|
306
|
-
`}},b="(config.scheduler?.(env) ?? schedulerStub) as SchedulerLike",
|
|
308
|
+
`}},b="(config.scheduler?.(env) ?? schedulerStub) as SchedulerLike",ce=(e,r)=>{if(e.length===0)return{build:"",contextField:"",importLines:[],schedulerSource:b,specs:"",stampsOutbox:!1};for(const n of e)l(n.exportName,`agent export "${n.exportName}"`),l(n.className,`agent class "${n.className}"`);const t=e.map(n=>` { className: "${n.className}", exportName: "${n.exportName}"${n.publicRun===!0?", publicRun: true":""} },`).join(`
|
|
307
309
|
`);return{build:`
|
|
308
310
|
const agents = createAgentContext(env, LUNORA_AGENTS, { exports: this.state.exports, shardKey: this.currentShardKey() });
|
|
309
311
|
`,contextField:r?`
|
|
@@ -314,14 +316,14 @@ ${t}
|
|
|
314
316
|
const LUNORA_AGENTS: ReadonlyArray<AgentBindingSpec> = [
|
|
315
317
|
${t}
|
|
316
318
|
];
|
|
317
|
-
`}},N=(e,r,t,n,
|
|
318
|
-
${
|
|
319
|
+
`}},N=(e,r,t,n,i)=>({constant:`
|
|
320
|
+
${i}
|
|
319
321
|
const ${e} = ${$(n,r)};
|
|
320
322
|
`,override:`
|
|
321
323
|
protected override ${t}(): ${r} {
|
|
322
324
|
return ${e};
|
|
323
325
|
}
|
|
324
|
-
`}),
|
|
326
|
+
`}),ue=(e,r)=>{if(e.length===0)return{constant:"",override:""};const t={...r.length===0?{}:{eventTypes:r.map(n=>n.type)},workflows:e.map(n=>({className:n.className,exportName:n.exportName,name:n.name}))};return N("LUNORA_WORKFLOWS_INFO","WorkflowsResult","workflowsMetadata",t,"/** Read-only declared-workflow metadata (discovered from `lunora/workflows.ts`) served via `__lunora_admin__:listWorkflows` for the studio's workflows view. */")},le=(e,r)=>{if(e.length===0||r.length===0)return{constant:"",override:""};for(const t of r)if(l(t.exportName,"workflow event export name"),!w.test(t.filePath))throw new R("INTERNAL",`@lunora/codegen: refusing to emit import for unsafe workflow event file path: ${JSON.stringify(t.filePath)}`);return{constant:`
|
|
325
327
|
/** Declared workflow events (\`defineWorkflowEvent\` exports), loaded by type when an admin \`sendWorkflowEvent\` parses its payload. */
|
|
326
328
|
const LUNORA_WORKFLOW_EVENTS: ReadonlyMap<string, () => Promise<{ payload: { parse: (value: unknown) => unknown } }>> = new Map([
|
|
327
329
|
${r.map(t=>` [${JSON.stringify(t.type)}, () => import("../${t.filePath}.js").then((module) => module.${t.exportName})],`).join(`
|
|
@@ -331,7 +333,7 @@ ${r.map(t=>` [${JSON.stringify(t.type)}, () => import("../${t.filePath}.js").
|
|
|
331
333
|
protected override async workflowEvent(type: string): Promise<{ payload: { parse: (value: unknown) => unknown } } | undefined> {
|
|
332
334
|
return LUNORA_WORKFLOW_EVENTS.get(type)?.();
|
|
333
335
|
}
|
|
334
|
-
`}},
|
|
336
|
+
`}},de=e=>{if(e.length===0)return{constant:"",override:""};const r={queues:e.map(t=>({binding:t.bindingName,...t.tuning.deadLetterQueue===void 0?{}:{deadLetterQueue:t.tuning.deadLetterQueue},exportName:t.exportName,mode:t.mode,name:t.name,...t.topic===void 0?{}:{topic:t.topic}}))};return N("LUNORA_QUEUES_INFO","QueuesResult","queuesMetadata",r,"/** Read-only declared-queue metadata (discovered from `lunora/queues.ts`) served via `__lunora_admin__:listQueues` for the studio's queues view. */")},I=["attach","cancelPayment","cancelSubscription","capturePayment","check","createCheckout","createPortalSession","handleWebhook","listBalances","listSubscriptions","refundPayment","resumeSubscription","track","updateSubscription"],B=["provider","store"],me=e=>e?{imports:['import type { LunoraDatabaseLike as LunoraPaymentDbLike, LunoraPayment, PaymentsFromContextOptions } from "@lunora/payment";','import { paymentsFromContext } from "@lunora/payment";'],build:`
|
|
335
337
|
const paymentsByContext = new WeakMap<object, LunoraPayment>();
|
|
336
338
|
`,configField:`
|
|
337
339
|
payment?: (env: Record<string, unknown>) => PaymentsFromContextOptions;`,contextField:`
|
|
@@ -346,4 +348,4 @@ ${r.map(t=>` [${JSON.stringify(t.type)}, () => import("../${t.filePath}.js").
|
|
|
346
348
|
}
|
|
347
349
|
|
|
348
350
|
return payments;
|
|
349
|
-
},`,stub:y("paymentStub: LunoraPayment","ctx.payments: no payment configured. Pass `payment` to createShardDO().",I,{cast:" as unknown as LunoraPayment",sync:!0})}:{build:"",configField:"",contextField:"",imports:[],stub:""},
|
|
351
|
+
},`,stub:y("paymentStub: LunoraPayment","ctx.payments: no payment configured. Pass `payment` to createShardDO().",I,{cast:" as unknown as LunoraPayment",getters:B,sync:!0})}:{build:"",configField:"",contextField:"",imports:[],stub:""},pe=(e,r,t,n,i)=>["AdvisoryFinding","DatabaseWriterLike","DataMigrationLike","DispatchBookmark","ExportRow",...n?["FlagsResult"]:[],"ImportShardResult","KeyRange","MaskPoliciesResult","MigrationRunResult","QueryReadScope",...t?["QueuesResult"]:[],"RelatedPage","RunShardApplyCdcArgs","RunShardExportArgs","RunShardFindRelatedArgs","RunShardImportArgs","RunShardMigrationArgs","RlsPoliciesResult","RunShardRankBeforeArgs","RunShardRankPageArgs","RunShardWriteArgs","RunShardWriteResult","SchedulerLike","SensitiveScope",...i?["SearchBackfillProgress"]:[],"TransactionHeadroomTracker","SchemaLike","ShardDOState","DeliveryAuthorization","ShardRankPageResult","SqlExec","StorageRulesResult","StudioFeaturesResult","SubscriptionIdentity","SystemReaderStorageLike","TelemetrySink",...e?["VectorBackfillProgress"]:[],...r?["WorkflowsResult"]:[],...e?["WriteHook"]:[]];export{G as a,Y as b,J as c,se as d,z as e,ae as f,ie as g,Z as h,oe as i,ce as j,me as k,ue as l,le as m,de as n,H as o,pe as p,K as q,y as r,V as s,te as t,X as u,ee as v,ne as w,re as x};
|