@lunora/codegen 1.0.0-alpha.2 → 1.0.0-alpha.200

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 (89) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +1 -1
  3. package/__assets__/package-og.svg +1 -1
  4. package/dist/index.d.mts +3476 -875
  5. package/dist/index.d.ts +3476 -875
  6. package/dist/index.mjs +1 -28
  7. package/dist/packem_shared/AGENTS_FILENAME-B78F7DuQ.mjs +1 -0
  8. package/dist/packem_shared/CONTAINERS_FILENAME-CQoUu7n7.mjs +1 -0
  9. package/dist/packem_shared/CodegenDiagnosticError-BUXlG3P-.mjs +1 -0
  10. package/dist/packem_shared/DEFAULT_TARGET-DtzlGawL.mjs +1 -0
  11. package/dist/packem_shared/FLAGS_FILENAME-CoTJH0-7.mjs +1 -0
  12. package/dist/packem_shared/GENERATED_HEADER-CEgr9fSF.mjs +1 -0
  13. package/dist/packem_shared/LUNORA_ERROR_CODES-C2s0xWQD.mjs +1 -0
  14. package/dist/packem_shared/MUTATORS_FILENAME-B7EXNAFK.mjs +1 -0
  15. package/dist/packem_shared/NOTIFY_FILENAME-Bgq52CnU.mjs +1 -0
  16. package/dist/packem_shared/OPENRPC_VERSION-D6-0Hn3B.mjs +3 -0
  17. package/dist/packem_shared/PROJECT_CONFIG_FILENAMES-D29yBg5X.mjs +1 -0
  18. package/dist/packem_shared/QUEUES_FILENAME-Q3CF3uYr.mjs +1 -0
  19. package/dist/packem_shared/SCHEMA_SNAPSHOT_FILENAME-BpSBAMAb.mjs +9 -0
  20. package/dist/packem_shared/SCHEMA_SNAPSHOT_VERSION-C0oHwiJZ.mjs +2 -0
  21. package/dist/packem_shared/SDK_LANGUAGES-CFyux-74.mjs +371 -0
  22. package/dist/packem_shared/SHAPES_FILENAME-Bvd5kgsF.mjs +1 -0
  23. package/dist/packem_shared/SchemaSnapshotParseError-lUWe6lPo.mjs +18 -0
  24. package/dist/packem_shared/WORKFLOWS_FILENAME-BaSbufF2.mjs +1 -0
  25. package/dist/packem_shared/buildOpenApiDocument-DCGde3iO.mjs +3 -0
  26. package/dist/packem_shared/chain-BWtZ1NER.mjs +1 -0
  27. package/dist/packem_shared/classify-procedure-call-BIlyTUBD.mjs +1 -0
  28. package/dist/packem_shared/context-property-calls-H37QsE0Q.mjs +1 -0
  29. package/dist/packem_shared/describeErrorLevelFindings-D23VSkFP.mjs +1 -0
  30. package/dist/packem_shared/discoverAuthApiCalls-DoblmzUW.mjs +1 -0
  31. package/dist/packem_shared/discoverCrons-CMu0sA8k.mjs +1 -0
  32. package/dist/packem_shared/discoverFunctions-DRf4ucil.mjs +1 -0
  33. package/dist/packem_shared/discoverHttpRoutes-_ME7hLcW.mjs +1 -0
  34. package/dist/packem_shared/discoverHyperdriveCalls-DP3Vb0HC.mjs +1 -0
  35. package/dist/packem_shared/discoverInserts-COk-Sm_n.mjs +1 -0
  36. package/dist/packem_shared/discoverMaskProcedures-CNkhbP5z.mjs +1 -0
  37. package/dist/packem_shared/discoverMigrations-B_sYrTyE.mjs +1 -0
  38. package/dist/packem_shared/discoverNondeterministicCalls-Dy6k2aPS.mjs +1 -0
  39. package/dist/packem_shared/discoverQueries-BQXP4BZ0.mjs +1 -0
  40. package/dist/packem_shared/discoverR2sqlCalls-FaK1-wbV.mjs +1 -0
  41. package/dist/packem_shared/discoverRlsMetadata-DwULXx5T.mjs +1 -0
  42. package/dist/packem_shared/discoverRlsProcedures-D_J8cH-m.mjs +1 -0
  43. package/dist/packem_shared/discoverSandboxUsage-DskdDbkM.mjs +1 -0
  44. package/dist/packem_shared/discoverSchema-DoZtXwLg.mjs +1 -0
  45. package/dist/packem_shared/discoverStorageRulesMetadata-C3ywuLJd.mjs +1 -0
  46. package/dist/packem_shared/emit-BuaY_1hY.mjs +2659 -0
  47. package/dist/packem_shared/emitApp-nInCbDo8.mjs +838 -0
  48. package/dist/packem_shared/exported-procedure-chains-Bqdp4ywr.mjs +1 -0
  49. package/dist/packem_shared/formatAdvisories-DwmUKYuc.mjs +2 -0
  50. package/dist/packem_shared/index-C4eKBBMk.mjs +1 -0
  51. package/dist/packem_shared/isD1GlobalTable-udvHAAzD.mjs +1 -0
  52. package/dist/packem_shared/isTypedSchema-B_qlBbE-.mjs +2 -0
  53. package/dist/packem_shared/listLunoraSourceFiles-D4xthUf-.mjs +1 -0
  54. package/dist/packem_shared/module-specifiers-WF8iAydP.mjs +1 -0
  55. package/dist/packem_shared/parse-validator-tdRHHDzh.mjs +1 -0
  56. package/dist/packem_shared/paths-C-9fwEgQ.mjs +1 -0
  57. package/dist/packem_shared/queries-CPlxXagL.mjs +1 -0
  58. package/dist/packem_shared/readPackageDependencies-C6h6FZuP.mjs +1 -0
  59. package/dist/packem_shared/redact-Cy14LEnc.mjs +1 -0
  60. package/dist/packem_shared/schemaFromIr-BWFnvCVg.mjs +1 -0
  61. package/dist/packem_shared/unwrap-handler-return-Da99uRXX.mjs +1 -0
  62. package/package.json +17 -7
  63. package/dist/packem_shared/CONTAINERS_FILENAME-0K-pjNb8.mjs +0 -224
  64. package/dist/packem_shared/CodegenDiagnosticError-54jWDxA9.mjs +0 -22
  65. package/dist/packem_shared/LUNORA_ERROR_CODES-CySpQPD3.mjs +0 -61
  66. package/dist/packem_shared/buildOpenApiDocument-yHVN66Xd.mjs +0 -183
  67. package/dist/packem_shared/buildOpenRpcDocument-BZGY1-jT.mjs +0 -60
  68. package/dist/packem_shared/buildSchemaSnapshot-DzLDbWk3.mjs +0 -233
  69. package/dist/packem_shared/createCodegenProject-DGJm0_Pk.mjs +0 -895
  70. package/dist/packem_shared/discover-ast-CT6BgBr4.mjs +0 -13
  71. package/dist/packem_shared/discoverAuthApiCalls-C35R6z0T.mjs +0 -62
  72. package/dist/packem_shared/discoverCrons-BL6iGuJ3.mjs +0 -254
  73. package/dist/packem_shared/discoverFunctions-DEgAcRuD.mjs +0 -460
  74. package/dist/packem_shared/discoverHttpRoutes-C978pBiG.mjs +0 -131
  75. package/dist/packem_shared/discoverInserts-CRQdXvHO.mjs +0 -39
  76. package/dist/packem_shared/discoverMaskProcedures-B64zA740.mjs +0 -217
  77. package/dist/packem_shared/discoverMigrations-Doj_-BAA.mjs +0 -91
  78. package/dist/packem_shared/discoverNondeterministicCalls-4KiPQxQU.mjs +0 -122
  79. package/dist/packem_shared/discoverQueries-BkIi0dBD.mjs +0 -62
  80. package/dist/packem_shared/discoverRlsMetadata-DpRB1HMe.mjs +0 -280
  81. package/dist/packem_shared/discoverSchema-BBulgGbH.mjs +0 -542
  82. package/dist/packem_shared/discoverStorageRulesMetadata-DAqJUxUv.mjs +0 -97
  83. package/dist/packem_shared/discoverWorkflows-DRDQdhfq.mjs +0 -84
  84. package/dist/packem_shared/emitApi-hRVC-kE7.mjs +0 -2426
  85. package/dist/packem_shared/emitApp-CzZ6GbrD.mjs +0 -593
  86. package/dist/packem_shared/lintSchema-DicbOHvH.mjs +0 -68
  87. package/dist/packem_shared/parse-validator-tuQtHrsr.mjs +0 -132
  88. package/dist/packem_shared/paths-BRd6JHuF.mjs +0 -11
  89. 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