@lunora/codegen 1.0.0-alpha.31 → 1.0.0-alpha.311

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 (122) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/index.d.mts +4467 -2142
  4. package/dist/index.d.ts +4467 -2142
  5. package/dist/index.mjs +1 -35
  6. package/dist/packem_shared/AGENTS_FILENAME-B6-kjzM3.mjs +1 -0
  7. package/dist/packem_shared/CAPABILITY_PROBES-brcmKenl.mjs +25 -0
  8. package/dist/packem_shared/CONTAINERS_FILENAME-dFRtAyIe.mjs +1 -0
  9. package/dist/packem_shared/CodegenDiagnosticError-BUXlG3P-.mjs +1 -0
  10. package/dist/packem_shared/DEFAULT_TARGET-BnQiNNKu.mjs +1 -0
  11. package/dist/packem_shared/FLAGS_FILENAME-Bf0MSlHH.mjs +1 -0
  12. package/dist/packem_shared/GENERATED_HEADER-Ck_WOHzE.mjs +1 -0
  13. package/dist/packem_shared/LUNORA_ERROR_CODES-C2s0xWQD.mjs +1 -0
  14. package/dist/packem_shared/MUTATORS_FILENAME-qVDmv8st.mjs +1 -0
  15. package/dist/packem_shared/NOTIFY_FILENAME-CLoeWMb5.mjs +1 -0
  16. package/dist/packem_shared/OPENRPC_VERSION-CCY7xqSL.mjs +3 -0
  17. package/dist/packem_shared/PROJECT_CONFIG_FILENAMES-DzOu-lSc.mjs +1 -0
  18. package/dist/packem_shared/QUEUES_FILENAME-CsRy4VTF.mjs +1 -0
  19. package/dist/packem_shared/SCHEMA_SNAPSHOT_FILENAME-CSjCtmZi.mjs +11 -0
  20. package/dist/packem_shared/SCHEMA_SNAPSHOT_VERSION-C0oHwiJZ.mjs +2 -0
  21. package/dist/packem_shared/SDK_LANGUAGES-Df_CnJx5.mjs +372 -0
  22. package/dist/packem_shared/SHAPES_FILENAME-DkBUN9dK.mjs +1 -0
  23. package/dist/packem_shared/SchemaSnapshotParseError-BRJT7c2k.mjs +18 -0
  24. package/dist/packem_shared/WORKFLOWS_FILENAME-CdeS224T.mjs +1 -0
  25. package/dist/packem_shared/attribution-hVBriwzy.mjs +1 -0
  26. package/dist/packem_shared/buildOpenApiDocument-DFv-RYZU.mjs +3 -0
  27. package/dist/packem_shared/capabilitiesUsedBy-QgSZyE0T.mjs +1 -0
  28. package/dist/packem_shared/chain-CRDaTj2c.mjs +1 -0
  29. package/dist/packem_shared/classify-procedure-call-BAj0D1u2.mjs +1 -0
  30. package/dist/packem_shared/context-property-calls-CQWCNUVH.mjs +1 -0
  31. package/dist/packem_shared/context-root-LyOsqj_o.mjs +1 -0
  32. package/dist/packem_shared/createCodegenProject-V51_yBw3.mjs +1 -0
  33. package/dist/packem_shared/database-calls-BPpefKqO.mjs +1 -0
  34. package/dist/packem_shared/declared-output-Iaar469J.mjs +1 -0
  35. package/dist/packem_shared/describeErrorLevelFindings-vzaGS9KL.mjs +1 -0
  36. package/dist/packem_shared/discoverAuthApiCalls-xs0ONfI-.mjs +1 -0
  37. package/dist/packem_shared/discoverCrons-DBnCama4.mjs +1 -0
  38. package/dist/packem_shared/discoverFunctions-CbxZGGj0.mjs +1 -0
  39. package/dist/packem_shared/discoverHttpRoutes-DgfoyNcf.mjs +1 -0
  40. package/dist/packem_shared/discoverHyperdriveCalls-CwnXgjFJ.mjs +1 -0
  41. package/dist/packem_shared/discoverInserts-mHOX_dJR.mjs +1 -0
  42. package/dist/packem_shared/discoverMaskProcedures-BTePIpmk.mjs +1 -0
  43. package/dist/packem_shared/discoverMigrations-C9mLIhGZ.mjs +1 -0
  44. package/dist/packem_shared/discoverNondeterministicCalls-9ZDpRptb.mjs +1 -0
  45. package/dist/packem_shared/discoverQueries-CfxkjP5X.mjs +1 -0
  46. package/dist/packem_shared/discoverR2sqlCalls-XBhs4XRZ.mjs +1 -0
  47. package/dist/packem_shared/discoverRlsMetadata-Cb8JR1b4.mjs +1 -0
  48. package/dist/packem_shared/discoverRlsProcedures-TskedRMh.mjs +1 -0
  49. package/dist/packem_shared/discoverSandboxUsage-w6Q3RvxZ.mjs +1 -0
  50. package/dist/packem_shared/discoverSchema-BtsX-CN9.mjs +1 -0
  51. package/dist/packem_shared/discoverStorageRulesMetadata-BPJplDfz.mjs +1 -0
  52. package/dist/packem_shared/dispatch-namespace-DwTjD7BU.mjs +1 -0
  53. package/dist/packem_shared/emitAgents-CVN1D17z.mjs +1 -0
  54. package/dist/packem_shared/emitApi-Zx6VPN-7.mjs +135 -0
  55. package/dist/packem_shared/emitApp-BOUdd-2R.mjs +955 -0
  56. package/dist/packem_shared/emitCrons-BQW2lviZ.mjs +96 -0
  57. package/dist/packem_shared/emitDataModel-BskFt9Wv.mjs +114 -0
  58. package/dist/packem_shared/emitDrizzleSchema-DitcRZ1a.mjs +15 -0
  59. package/dist/packem_shared/emitFunctions-BeKgL3dl.mjs +241 -0
  60. package/dist/packem_shared/emitServer-D1vA5_X1.mjs +1 -0
  61. package/dist/packem_shared/emitShard-D_dkDtuY.mjs +1 -0
  62. package/dist/packem_shared/exported-procedure-chains-DKK5HoK3.mjs +1 -0
  63. package/dist/packem_shared/fingerprintSchemaSources-eVG9aVt0.mjs +1 -0
  64. package/dist/packem_shared/formatAdvisories-BCVASH7N.mjs +2 -0
  65. package/dist/packem_shared/handler-reference-vIeqkhV_.mjs +1 -0
  66. package/dist/packem_shared/index-CkS96b8a.mjs +1 -0
  67. package/dist/packem_shared/isD1GlobalTable-udvHAAzD.mjs +1 -0
  68. package/dist/packem_shared/isTestPath-B81lOULB.mjs +1 -0
  69. package/dist/packem_shared/isTypedSchema-CKzc3ioR.mjs +4 -0
  70. package/dist/packem_shared/json-data-Chfs2Cz5.mjs +1 -0
  71. package/dist/packem_shared/loadProjectConfig-NO0dVJSl.mjs +1 -0
  72. package/dist/packem_shared/module-specifiers-WF8iAydP.mjs +1 -0
  73. package/dist/packem_shared/modules-CjOcuQnK.mjs +1 -0
  74. package/dist/packem_shared/parse-validator-IDBKIT7M.mjs +1 -0
  75. package/dist/packem_shared/platform-8oj7iXQy.mjs +1 -0
  76. package/dist/packem_shared/project-config-file-BV7RR-l6.mjs +1 -0
  77. package/dist/packem_shared/qualifiers-DEdXn5wP.mjs +1 -0
  78. package/dist/packem_shared/readPackageDependencies-RHhGiz0k.mjs +1 -0
  79. package/dist/packem_shared/readServiceBindings-DvqIThzd.mjs +1 -0
  80. package/dist/packem_shared/redact-Cy14LEnc.mjs +1 -0
  81. package/dist/packem_shared/reserved-words-CW1QFbTd.mjs +1 -0
  82. package/dist/packem_shared/schema-BgM8A3XV.mjs +1 -0
  83. package/dist/packem_shared/schemaFromIr-BWFnvCVg.mjs +1 -0
  84. package/dist/packem_shared/server-DAvi_bv_.mjs +368 -0
  85. package/dist/packem_shared/shard-Av4rUyYS.mjs +1454 -0
  86. package/dist/packem_shared/shard-runtime-CkTgY8tL.mjs +326 -0
  87. package/dist/packem_shared/shared-DnCokNcE.mjs +13 -0
  88. package/dist/packem_shared/unwrap-handler-return-CJrkfrSH.mjs +1 -0
  89. package/package.json +17 -8
  90. package/dist/packem_shared/CONTAINERS_FILENAME-DjpXMqhp.mjs +0 -224
  91. package/dist/packem_shared/CodegenDiagnosticError-DyQ5FwkM.mjs +0 -24
  92. package/dist/packem_shared/FLAGS_FILENAME-BjpS5w08.mjs +0 -139
  93. package/dist/packem_shared/GENERATED_HEADER-f6nMvllu.mjs +0 -3274
  94. package/dist/packem_shared/LUNORA_ERROR_CODES-CySpQPD3.mjs +0 -61
  95. package/dist/packem_shared/MUTATORS_FILENAME-BZOfUhlY.mjs +0 -81
  96. package/dist/packem_shared/OPENRPC_VERSION-u5SqDDGk.mjs +0 -60
  97. package/dist/packem_shared/QUEUES_FILENAME-BF0iUmx7.mjs +0 -119
  98. package/dist/packem_shared/SCHEMA_SNAPSHOT_FILENAME-Ca-TlVEc.mjs +0 -3481
  99. package/dist/packem_shared/SCHEMA_SNAPSHOT_VERSION-D0ARY6rL.mjs +0 -249
  100. package/dist/packem_shared/SHAPES_FILENAME-DOhPGi-6.mjs +0 -94
  101. package/dist/packem_shared/WORKFLOWS_FILENAME-CCC_42o3.mjs +0 -124
  102. package/dist/packem_shared/buildOpenApiDocument-AgKWmlry.mjs +0 -183
  103. package/dist/packem_shared/discover-ast-CT6BgBr4.mjs +0 -13
  104. package/dist/packem_shared/discoverAuthApiCalls-URDoTADN.mjs +0 -62
  105. package/dist/packem_shared/discoverCrons-DdZOeroL.mjs +0 -257
  106. package/dist/packem_shared/discoverFunctions-BJdF7lRs.mjs +0 -514
  107. package/dist/packem_shared/discoverHttpRoutes-CcwP-Rkr.mjs +0 -131
  108. package/dist/packem_shared/discoverInserts-BpFhM32L.mjs +0 -61
  109. package/dist/packem_shared/discoverMaskProcedures-DT-v8wvj.mjs +0 -273
  110. package/dist/packem_shared/discoverMigrations-cG1idBVM.mjs +0 -97
  111. package/dist/packem_shared/discoverNondeterministicCalls-CEOjmfk4.mjs +0 -122
  112. package/dist/packem_shared/discoverQueries-DeVBQVAG.mjs +0 -62
  113. package/dist/packem_shared/discoverR2sqlCalls-CWCAU-xJ.mjs +0 -80
  114. package/dist/packem_shared/discoverRlsMetadata-BL0oukaK.mjs +0 -280
  115. package/dist/packem_shared/discoverSchema-CeXJWVKV.mjs +0 -874
  116. package/dist/packem_shared/discoverStorageRulesMetadata-CFHByjIl.mjs +0 -97
  117. package/dist/packem_shared/emitApp-BUCrHOeI.mjs +0 -685
  118. package/dist/packem_shared/formatAdvisories-C9wNBNvL.mjs +0 -113
  119. package/dist/packem_shared/parse-validator-D6zI2i85.mjs +0 -134
  120. package/dist/packem_shared/paths-BRd6JHuF.mjs +0 -11
  121. package/dist/packem_shared/redact-oTmsol5A.mjs +0 -33
  122. package/dist/packem_shared/schemaFromIr-DTYsLBaA.mjs +0 -57
package/LICENSE.md CHANGED
@@ -103,3 +103,9 @@ Unless required by applicable law or agreed to in writing, software distributed
103
103
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
104
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
105
  specific language governing permissions and limitations under the License.
106
+
107
+ <!-- DEPENDENCIES -->
108
+ <!-- /DEPENDENCIES -->
109
+
110
+ <!-- TYPE_DEPENDENCIES -->
111
+ <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  ---
36
36
 
37
- The Lunora code generator. It parses your `lunora/schema.ts` plus every function file under `lunora/`, then writes `lunora/_generated/` so the rest of your app gets typed access to its own backend. The core outputs are `api.ts` (the `api` / `internal` function references), `server.ts` (the `query` / `mutation` / `action` / `internalQuery` / `internalMutation` / `internalAction` / `definePolicy` procedure builders bound to your schema), and `dataModel.ts` (the `Doc` / `Id` types). It also emits `app.ts`, `functions.ts`, `shard.ts`, Drizzle schemas, and — when the relevant features are used — `crons.ts`, `containers.ts`, `workflows.ts`, `vectors.ts`, `seed.ts`, and OpenAPI/OpenRPC specs.
37
+ The Lunora code generator. It parses your `lunora/schema.ts` plus every function file under `lunora/`, then writes `lunora/_generated/` so the rest of your app gets typed access to its own backend. The core outputs are `api.ts` (the `api` / `internal` function references), `server.ts` (the `query` / `mutation` / `action` / `internalQuery` / `internalMutation` / `internalAction` / `definePolicy` procedure builders bound to your schema), and `dataModel.ts` (the `Doc` / `Id` types). It also emits `app.ts`, `functions.ts`, `shard.ts`, the Drizzle schemas (`drizzle.shard.ts` / `drizzle.global.ts` — your tables as Drizzle `sqliteTable` objects, split by whether they are `.global()`, for when you need raw Drizzle rather than `ctx.db`), and — when the relevant features are used — `crons.ts`, `containers.ts`, `workflows.ts`, `vectors.ts`, `seed.ts`, and OpenAPI/OpenRPC specs.
38
38
 
39
39
  Most apps never call this package directly — the `lunora codegen` CLI command and the `@lunora/vite` plugin invoke it for you.
40
40