@lunora/codegen 1.0.0-alpha.52 → 1.0.0-alpha.53
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 +5 -5
- package/dist/packem_shared/{GENERATED_HEADER-D5mkGdTx.mjs → GENERATED_HEADER-C8tAvxqP.mjs} +1 -1
- package/dist/packem_shared/{OPENRPC_VERSION-Dnru3-Tg.mjs → OPENRPC_VERSION-DvDChMhC.mjs} +1 -1
- package/dist/packem_shared/{SCHEMA_SNAPSHOT_FILENAME-7_LhHIAy.mjs → SCHEMA_SNAPSHOT_FILENAME--TKFIHmr.mjs} +4 -4
- package/dist/packem_shared/{buildOpenApiDocument-BH50tL6w.mjs → buildOpenApiDocument-DCQSLuFc.mjs} +1 -1
- package/dist/packem_shared/{emit-B4LUyyg7.mjs → emit-DIbr7U31.mjs} +8 -3
- package/dist/packem_shared/{emitApp-BJ6weBMT.mjs → emitApp-DbMM8iHe.mjs} +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -22,11 +22,11 @@ export { default as discoverSchema } from './packem_shared/discoverSchema-BJp5_T
|
|
|
22
22
|
export { SHAPES_FILENAME, discoverShapes } from './packem_shared/SHAPES_FILENAME-DOhPGi-6.mjs';
|
|
23
23
|
export { default as discoverStorageRulesMetadata } from './packem_shared/discoverStorageRulesMetadata-BqMhuEjo.mjs';
|
|
24
24
|
export { WORKFLOWS_FILENAME, discoverWorkflows } from './packem_shared/WORKFLOWS_FILENAME-Dtuzvluc.mjs';
|
|
25
|
-
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-
|
|
26
|
-
export { emitApp } from './packem_shared/emitApp-
|
|
27
|
-
export { buildOpenApiDocument, emitOpenApi, emitOpenApiModule } from './packem_shared/buildOpenApiDocument-
|
|
28
|
-
export { OPENRPC_VERSION, buildOpenRpcDocument, emitOpenRpc, emitOpenRpcModule } from './packem_shared/OPENRPC_VERSION-
|
|
29
|
-
export { SCHEMA_SNAPSHOT_FILENAME, createCodegenProject, refreshCodegenProject, runCodegen } from './packem_shared/SCHEMA_SNAPSHOT_FILENAME
|
|
25
|
+
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-DIbr7U31.mjs';
|
|
26
|
+
export { emitApp } from './packem_shared/emitApp-DbMM8iHe.mjs';
|
|
27
|
+
export { buildOpenApiDocument, emitOpenApi, emitOpenApiModule } from './packem_shared/buildOpenApiDocument-DCQSLuFc.mjs';
|
|
28
|
+
export { OPENRPC_VERSION, buildOpenRpcDocument, emitOpenRpc, emitOpenRpcModule } from './packem_shared/OPENRPC_VERSION-DvDChMhC.mjs';
|
|
29
|
+
export { SCHEMA_SNAPSHOT_FILENAME, createCodegenProject, refreshCodegenProject, runCodegen } from './packem_shared/SCHEMA_SNAPSHOT_FILENAME--TKFIHmr.mjs';
|
|
30
30
|
export { SCHEMA_SNAPSHOT_VERSION, SchemaSnapshotParseError, buildSchemaSnapshot, diffSchemaSnapshots, evaluateSchemaDrift, parseSchemaSnapshot, serializeSchemaSnapshot } from './packem_shared/SCHEMA_SNAPSHOT_VERSION-D0ARY6rL.mjs';
|
|
31
31
|
export { schemaFromIr } from './packem_shared/schemaFromIr-DTYsLBaA.mjs';
|
|
32
32
|
export { LUNORA_ERROR_CODES, validatorIrToJsonSchema } from './packem_shared/LUNORA_ERROR_CODES-DvTLozCu.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@lunora/agent/component';
|
|
2
2
|
import '@lunora/errors';
|
|
3
|
-
export { G as GENERATED_HEADER, n as buildStorageColumns, e as emitAgents, a as emitApi, b as emitCollections, c as emitContainers, d as emitCrons, f as emitDataModel, g as emitDrizzleSchema, h as emitFunctions, o as emitQueues, p as emitSeed, i as emitServer, j as emitShard, k as emitVectors, l as emitWorkflows, m as emitWranglerCronTriggers } from './emit-
|
|
3
|
+
export { G as GENERATED_HEADER, n as buildStorageColumns, e as emitAgents, a as emitApi, b as emitCollections, c as emitContainers, d as emitCrons, f as emitDataModel, g as emitDrizzleSchema, h as emitFunctions, o as emitQueues, p as emitSeed, i as emitServer, j as emitShard, k as emitVectors, l as emitWorkflows, m as emitWranglerCronTriggers } from './emit-DIbr7U31.mjs';
|
|
4
4
|
import './paths-BRd6JHuF.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GENERATED_HEADER } from './emit-
|
|
1
|
+
import { G as GENERATED_HEADER } from './emit-DIbr7U31.mjs';
|
|
2
2
|
import { s as sanitizeNamespace } from './paths-BRd6JHuF.mjs';
|
|
3
3
|
import { argsObjectSchema, LUNORA_ERROR_CODES } from './LUNORA_ERROR_CODES-DvTLozCu.mjs';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ import discoverAuthApiCalls from './discoverAuthApiCalls-Dhwgf4J4.mjs';
|
|
|
10
10
|
import { discoverContainers } from './CONTAINERS_FILENAME-DjpXMqhp.mjs';
|
|
11
11
|
import discoverCrons from './discoverCrons-UbQLLmMS.mjs';
|
|
12
12
|
import { diagnosticAt } from './CodegenDiagnosticError-DyQ5FwkM.mjs';
|
|
13
|
-
import { C as CAPABILITIES, n as buildStorageColumns, f as emitDataModel, a as emitApi, i as emitServer, h as emitFunctions, j as emitShard, b as emitCollections, c as emitContainers, l as emitWorkflows, e as emitAgents, o as emitQueues, d as emitCrons, k as emitVectors, g as emitDrizzleSchema, p as emitSeed, m as emitWranglerCronTriggers } from './emit-
|
|
13
|
+
import { C as CAPABILITIES, n as buildStorageColumns, f as emitDataModel, a as emitApi, i as emitServer, h as emitFunctions, j as emitShard, b as emitCollections, c as emitContainers, l as emitWorkflows, e as emitAgents, o as emitQueues, d as emitCrons, k as emitVectors, g as emitDrizzleSchema, p as emitSeed, m as emitWranglerCronTriggers } from './emit-DIbr7U31.mjs';
|
|
14
14
|
import { discoverFlagKeys } from './FLAGS_FILENAME-D5igzqwR.mjs';
|
|
15
15
|
import discoverHttpRoutes from './discoverHttpRoutes-CVXWZkzo.mjs';
|
|
16
16
|
import discoverInserts from './discoverInserts-DdWnXmLS.mjs';
|
|
@@ -30,9 +30,9 @@ import { discoverShapes } from './SHAPES_FILENAME-DOhPGi-6.mjs';
|
|
|
30
30
|
import discoverStorageRulesMetadata from './discoverStorageRulesMetadata-BqMhuEjo.mjs';
|
|
31
31
|
import { e as enclosingExportName$2 } from './discover-ast-CT6BgBr4.mjs';
|
|
32
32
|
import { discoverWorkflows } from './WORKFLOWS_FILENAME-Dtuzvluc.mjs';
|
|
33
|
-
import { emitApp } from './emitApp-
|
|
34
|
-
import { buildOpenApiDocument, emitOpenApiModule } from './buildOpenApiDocument-
|
|
35
|
-
import { buildOpenRpcDocument, emitOpenRpcModule } from './OPENRPC_VERSION-
|
|
33
|
+
import { emitApp } from './emitApp-DbMM8iHe.mjs';
|
|
34
|
+
import { buildOpenApiDocument, emitOpenApiModule } from './buildOpenApiDocument-DCQSLuFc.mjs';
|
|
35
|
+
import { buildOpenRpcDocument, emitOpenRpcModule } from './OPENRPC_VERSION-DvDChMhC.mjs';
|
|
36
36
|
import { buildSchemaSnapshot, serializeSchemaSnapshot } from './SCHEMA_SNAPSHOT_VERSION-D0ARY6rL.mjs';
|
|
37
37
|
|
|
38
38
|
const HTTP_VERBS$1 = /* @__PURE__ */ new Set(["delete", "get", "head", "options", "patch", "post", "put"]);
|
package/dist/packem_shared/{buildOpenApiDocument-BH50tL6w.mjs → buildOpenApiDocument-DCQSLuFc.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GENERATED_HEADER } from './emit-
|
|
1
|
+
import { G as GENERATED_HEADER } from './emit-DIbr7U31.mjs';
|
|
2
2
|
import { s as sanitizeNamespace } from './paths-BRd6JHuF.mjs';
|
|
3
3
|
import { LUNORA_ERROR_CODES, objectSchema, argsObjectSchema, validatorIrToJsonSchema } from './LUNORA_ERROR_CODES-DvTLozCu.mjs';
|
|
4
4
|
|
|
@@ -1832,8 +1832,12 @@ const emitNotifyFragments = (hasNotify) => {
|
|
|
1832
1832
|
return EMPTY_HELPER_FRAGMENTS;
|
|
1833
1833
|
}
|
|
1834
1834
|
return {
|
|
1835
|
+
// Threads the request's `ctx.log` / `ctx.metrics` into the facade so a send
|
|
1836
|
+
// emits the `notify.send` / `notify.skipped` observability signals. Because
|
|
1837
|
+
// `log`/`metrics` are built LATER in the context builder, this fragment is
|
|
1838
|
+
// injected after them (see `notifyBuild` below), NOT inside `everyContextBuild`.
|
|
1835
1839
|
build: `
|
|
1836
|
-
const { notify, push } = createNotify(notifyConfig, env);
|
|
1840
|
+
const { notify, push } = createNotify(notifyConfig, env, { log, metrics });
|
|
1837
1841
|
`,
|
|
1838
1842
|
configField: "",
|
|
1839
1843
|
contextField: `
|
|
@@ -3090,9 +3094,10 @@ ${schema.tables.map(
|
|
|
3090
3094
|
const secretsBuild = `
|
|
3091
3095
|
const secrets = createSecrets(env);
|
|
3092
3096
|
`;
|
|
3093
|
-
const everyContextBuild = `${accessFragments.build}${kvFragments.build}${flagsFragments.build}${
|
|
3097
|
+
const everyContextBuild = `${accessFragments.build}${kvFragments.build}${flagsFragments.build}${analyticsFragments.build}${envFragments.build}${secretsBuild}`;
|
|
3094
3098
|
const everyContextField = `${accessFragments.contextField}${kvFragments.contextField}${flagsFragments.contextField}${notifyFragments.contextField}${analyticsFragments.contextField}${envFragments.contextField}
|
|
3095
3099
|
secrets,`;
|
|
3100
|
+
const notifyBuild = notifyFragments.build;
|
|
3096
3101
|
const actionOnlyHasAny = hasImages || hasHyperdrive || hasBrowser || hasR2sql || hasPipelines || hasX402;
|
|
3097
3102
|
const actionOnlyBlock = actionOnlyHasAny ? `
|
|
3098
3103
|
// ActionCtx-only helpers (external, non-deterministic I/O): constructed
|
|
@@ -3590,7 +3595,7 @@ ${facadeBlock}${paymentsBuild}
|
|
|
3590
3595
|
// writing mutation's trace from the shared per-request field.
|
|
3591
3596
|
const trace = this.makeTracer(logFunctionPath, observability, options.identity ? undefined : this.getCurrentTrace());
|
|
3592
3597
|
const metrics = this.makeMetrics(logFunctionPath, observability);
|
|
3593
|
-
|
|
3598
|
+
${notifyBuild}
|
|
3594
3599
|
// \`ctx.now\`: the wall-clock instant (epoch ms) this function began,
|
|
3595
3600
|
// captured ONCE so the whole handler body sees a single stable value.
|
|
3596
3601
|
// Query/mutation handlers must be deterministic (they may be re-run on
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as APP_METHOD_CAPABILITIES, G as GENERATED_HEADER } from './emit-
|
|
1
|
+
import { A as APP_METHOD_CAPABILITIES, G as GENERATED_HEADER } from './emit-DIbr7U31.mjs';
|
|
2
2
|
|
|
3
3
|
const hasFlagKey = (key) => `has${key.charAt(0).toUpperCase()}${key.slice(1)}`;
|
|
4
4
|
const LONG_TAIL = APP_METHOD_CAPABILITIES.map(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/codegen",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.53",
|
|
4
4
|
"description": "Code generator for Lunora: emits _generated/{api,server,dataModel}.ts from your schema",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@lunora/advisor": "1.0.0-alpha.33",
|
|
50
50
|
"@lunora/agent": "1.0.0-alpha.9",
|
|
51
|
-
"@lunora/container": "1.0.0-alpha.
|
|
51
|
+
"@lunora/container": "1.0.0-alpha.15",
|
|
52
52
|
"@lunora/errors": "1.0.0-alpha.7",
|
|
53
53
|
"@lunora/queue": "1.0.0-alpha.9",
|
|
54
54
|
"@lunora/scheduler": "1.0.0-alpha.11",
|