@lunora/codegen 1.0.0-alpha.48 → 1.0.0-alpha.49
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
CHANGED
|
@@ -22,10 +22,10 @@ export { SHAPES_FILENAME, discoverShapes } from './packem_shared/SHAPES_FILENAME
|
|
|
22
22
|
export { default as discoverStorageRulesMetadata } from './packem_shared/discoverStorageRulesMetadata-CnHl2rXD.mjs';
|
|
23
23
|
export { WORKFLOWS_FILENAME, discoverWorkflows } from './packem_shared/WORKFLOWS_FILENAME-Dtuzvluc.mjs';
|
|
24
24
|
export { G as GENERATED_HEADER, e as emitAgents, a as emitApi, b as emitCollections, c as emitContainers, d as emitCrons, f as emitDataModel, g as emitDrizzleSchema, h as emitFunctions, i as emitServer, j as emitShard, k as emitVectors, l as emitWorkflows, m as emitWranglerCronTriggers } from './packem_shared/emit-ClTbCLy4.mjs';
|
|
25
|
-
export { emitApp } from './packem_shared/emitApp-
|
|
25
|
+
export { emitApp } from './packem_shared/emitApp-CzzrjVqH.mjs';
|
|
26
26
|
export { buildOpenApiDocument, emitOpenApi, emitOpenApiModule } from './packem_shared/buildOpenApiDocument-B7mEdzA2.mjs';
|
|
27
27
|
export { OPENRPC_VERSION, buildOpenRpcDocument, emitOpenRpc, emitOpenRpcModule } from './packem_shared/OPENRPC_VERSION-7A2weq2u.mjs';
|
|
28
|
-
export { SCHEMA_SNAPSHOT_FILENAME, createCodegenProject, refreshCodegenProject, runCodegen } from './packem_shared/SCHEMA_SNAPSHOT_FILENAME-
|
|
28
|
+
export { SCHEMA_SNAPSHOT_FILENAME, createCodegenProject, refreshCodegenProject, runCodegen } from './packem_shared/SCHEMA_SNAPSHOT_FILENAME-G5dkcxPR.mjs';
|
|
29
29
|
export { SCHEMA_SNAPSHOT_VERSION, SchemaSnapshotParseError, buildSchemaSnapshot, diffSchemaSnapshots, evaluateSchemaDrift, parseSchemaSnapshot, serializeSchemaSnapshot } from './packem_shared/SCHEMA_SNAPSHOT_VERSION-D0ARY6rL.mjs';
|
|
30
30
|
export { schemaFromIr } from './packem_shared/schemaFromIr-DTYsLBaA.mjs';
|
|
31
31
|
export { LUNORA_ERROR_CODES, validatorIrToJsonSchema } from './packem_shared/LUNORA_ERROR_CODES-DvTLozCu.mjs';
|
|
@@ -29,7 +29,7 @@ import { discoverShapes } from './SHAPES_FILENAME-DOhPGi-6.mjs';
|
|
|
29
29
|
import discoverStorageRulesMetadata from './discoverStorageRulesMetadata-CnHl2rXD.mjs';
|
|
30
30
|
import { e as enclosingExportName$2 } from './discover-ast-CT6BgBr4.mjs';
|
|
31
31
|
import { discoverWorkflows } from './WORKFLOWS_FILENAME-Dtuzvluc.mjs';
|
|
32
|
-
import { emitApp } from './emitApp-
|
|
32
|
+
import { emitApp } from './emitApp-CzzrjVqH.mjs';
|
|
33
33
|
import { buildOpenApiDocument, emitOpenApiModule } from './buildOpenApiDocument-B7mEdzA2.mjs';
|
|
34
34
|
import { buildOpenRpcDocument, emitOpenRpcModule } from './OPENRPC_VERSION-7A2weq2u.mjs';
|
|
35
35
|
import { buildSchemaSnapshot, serializeSchemaSnapshot } from './SCHEMA_SNAPSHOT_VERSION-D0ARY6rL.mjs';
|
|
@@ -41,6 +41,7 @@ const buildImportLines = (options) => {
|
|
|
41
41
|
const runtimeValueImports = [
|
|
42
42
|
...hasGlobal || hasHyperdriveGlobal ? ["createCrossShardRelationCapabilities"] : [],
|
|
43
43
|
"createWorker",
|
|
44
|
+
"resolveLogArchiveFromEnv",
|
|
44
45
|
...hasFramework ? ["withFrameworkWorker"] : []
|
|
45
46
|
].join(", ");
|
|
46
47
|
return [
|
|
@@ -351,6 +352,11 @@ const buildWorkerOptionLines = (options) => [
|
|
|
351
352
|
// with no manual `createKvIntrospector` call. A deployment with no KV binding
|
|
352
353
|
// yields an empty namespace list rather than crashing.
|
|
353
354
|
...options.hasKv ? [` options.kvIntrospector = createKvIntrospectorFromEnv(env);`] : [],
|
|
355
|
+
// The studio's Logs → Archive feed is wired zero-config: when the operator sets
|
|
356
|
+
// `LUNORA_LOG_ARCHIVE_TABLE` (the R2 Data Catalog table `pipelineLogSink` writes
|
|
357
|
+
// to), the durable archive becomes readable; unset ⇒ `undefined` ⇒ the feed
|
|
358
|
+
// reports "not configured". The R2 SQL credentials come from `R2_SQL_*` env vars.
|
|
359
|
+
` options.logArchive = resolveLogArchiveFromEnv(env);`,
|
|
354
360
|
...options.hasAuth ? [
|
|
355
361
|
` if (this.authDeclaration) {
|
|
356
362
|
options.authHandler = (request) => {
|